diff --git a/examples/sites/demos/apis/popeditor.js b/examples/sites/demos/apis/popeditor.js index c88cd88acc..f92c876a13 100644 --- a/examples/sites/demos/apis/popeditor.js +++ b/examples/sites/demos/apis/popeditor.js @@ -344,6 +344,20 @@ export default { mode: ['pc'], pcDemo: 'title' }, + { + name: 'lock-scroll', + type: 'boolean', + defaultValue: 'true', + desc: { + 'zh-CN': '设置弹出面板的锁定滚动', + 'en-US': 'Set the lock scroll of the pop-up panel.' + }, + meta: { + stable: '3.24.0' + }, + mode: ['pc'], + pcDemo: 'condition-layout' + }, { name: 'trigger', type: "'default' | 'cell' | 'row'", diff --git a/examples/sites/demos/pc/app/popeditor/condition-layout-composition-api.vue b/examples/sites/demos/pc/app/popeditor/condition-layout-composition-api.vue index 01abc9c43a..c60fc237cf 100644 --- a/examples/sites/demos/pc/app/popeditor/condition-layout-composition-api.vue +++ b/examples/sites/demos/pc/app/popeditor/condition-layout-composition-api.vue @@ -8,6 +8,7 @@ text-field="name" value-field="id" :conditions="conditions" + :lock-scroll="false" > diff --git a/examples/sites/demos/pc/app/popeditor/condition-layout.spec.ts b/examples/sites/demos/pc/app/popeditor/condition-layout.spec.ts index 072b7f12cf..ab6aeec907 100644 --- a/examples/sites/demos/pc/app/popeditor/condition-layout.spec.ts +++ b/examples/sites/demos/pc/app/popeditor/condition-layout.spec.ts @@ -11,6 +11,7 @@ test('PopEditor 布局与配置', async ({ page }) => { const rightLayout = dialogBox.locator('.tiny-popeditor-body__right') await textBox.click() + await expect(page.locator('body')).not.toHaveClass(/dialog-box__scroll-lock/) await expect(dialogBox).toBeVisible() await expect(leftLayout).toBeVisible() await expect(rightLayout).toBeVisible() diff --git a/examples/sites/demos/pc/app/popeditor/condition-layout.vue b/examples/sites/demos/pc/app/popeditor/condition-layout.vue index 6bbfbcd4c9..882ee8b079 100644 --- a/examples/sites/demos/pc/app/popeditor/condition-layout.vue +++ b/examples/sites/demos/pc/app/popeditor/condition-layout.vue @@ -8,6 +8,7 @@ text-field="name" value-field="id" :conditions="conditions" + :lock-scroll="false" > diff --git a/examples/sites/demos/pc/app/popeditor/webdoc/popeditor.js b/examples/sites/demos/pc/app/popeditor/webdoc/popeditor.js index 1b87c29a32..b53853754d 100644 --- a/examples/sites/demos/pc/app/popeditor/webdoc/popeditor.js +++ b/examples/sites/demos/pc/app/popeditor/webdoc/popeditor.js @@ -38,9 +38,9 @@ export default { }, desc: { 'zh-CN': - '
通过 conditions
项目里属性里的 span
配置栅格,labelWidth
配置 label 宽度,component
配置自定义组件,并通过 attrs
配置组件属性。
通过 conditions
项目里属性里的 span
配置栅格,labelWidth
配置 label 宽度,component
配置自定义组件,并通过 attrs
配置组件属性。lock-scroll
配置弹出窗口时是否禁用滚动条。
Set span
in the attributes of the condition
project to configure the grid and labelWidth
to configure the label width. component
Configure custom components and set component attributes through attrs
Set span
in the attributes of the condition
project to configure the grid and labelWidth
to configure the label width. component
Configure custom components and set component attributes through attrs
.lock-scroll
Configure whether to disable the scrollbar when a pop-up window appears.