diff --git a/examples/sites/demos/pc/app/action-menu/webdoc/action-menu.cn.md b/examples/sites/demos/pc/app/action-menu/webdoc/action-menu.cn.md
index f538b4211..df957e588 100644
--- a/examples/sites/demos/pc/app/action-menu/webdoc/action-menu.cn.md
+++ b/examples/sites/demos/pc/app/action-menu/webdoc/action-menu.cn.md
@@ -4,4 +4,4 @@ title: ActionMenu 菜单按钮
# ActionMenu 菜单按钮
-> 提供一组操作按钮的组件,当按钮数量太多,自动将超出部分的按钮放置在一个下拉弹框中
+提供一组操作按钮的组件,当按钮数量太多,自动将超出部分的按钮放置在一个下拉弹框中。
diff --git a/examples/sites/demos/pc/app/action-menu/webdoc/action-menu.en.md b/examples/sites/demos/pc/app/action-menu/webdoc/action-menu.en.md
index 3352944d5..385089ee6 100644
--- a/examples/sites/demos/pc/app/action-menu/webdoc/action-menu.en.md
+++ b/examples/sites/demos/pc/app/action-menu/webdoc/action-menu.en.md
@@ -4,4 +4,4 @@ title: ActionMenu
# ActionMenu
-> Provide a set of components for operating buttons. When there are too many buttons, the excess buttons will be automatically placed in a drop-down pop-up box
+Provide a set of components for operating buttons. When there are too many buttons, the excess buttons will be automatically placed in a drop-down pop-up box.
diff --git a/examples/sites/demos/pc/app/action-menu/webdoc/action-menu.js b/examples/sites/demos/pc/app/action-menu/webdoc/action-menu.js
index b34f935c8..bb98253c6 100644
--- a/examples/sites/demos/pc/app/action-menu/webdoc/action-menu.js
+++ b/examples/sites/demos/pc/app/action-menu/webdoc/action-menu.js
@@ -48,7 +48,7 @@ export default {
'desc': {
'zh-CN': '
通过 more-text
属性设置下拉按钮文本,默认为 更多
。
',
'en-US':
- 'Set the dropdown button text through the more-text
attribute, default toMore
'
+ 'Set the dropdown button text through the more-text
attribute, default to More
'
},
'codeFiles': ['more-text.vue']
},
@@ -76,12 +76,21 @@ export default {
'demoId': 'max-show-num',
'name': { 'zh-CN': '个数限制', 'en-US': 'Number limit' },
'desc': {
- 'zh-CN': '通过 max-show-num
属性设置显示最多显示菜单按钮的个数,默认为 2。
',
+ 'zh-CN': '通过 max-show-num
属性设置最多显示菜单按钮的个数,默认为 2。
',
'en-US':
'By setting the max-show-num
attribute, the maximum number of displayed menu buttons is set to 2 by default.
'
},
'codeFiles': ['max-show-num.vue']
},
+ {
+ 'demoId': 'slot-item',
+ 'name': { 'zh-CN': '菜单项插槽', 'en-US': 'Menu Slot' },
+ 'desc': {
+ 'zh-CN': '通过 item
插槽自定义下拉选项的 HTML 模板。
',
+ 'en-US': 'Customize the HTML template for dropdown options through the item
slot.
'
+ },
+ 'codeFiles': ['slot-item.vue']
+ },
{
'demoId': 'events',
'name': { 'zh-CN': '事件', 'en-US': 'Menu Item Click Event' },
@@ -103,22 +112,13 @@ export default {
'\n'
},
'codeFiles': ['events.vue']
- },
- {
- 'demoId': 'slot-item',
- 'name': { 'zh-CN': '菜单项插槽', 'en-US': 'Menu Slot' },
- 'desc': {
- 'zh-CN': '通过 item
插槽自定义下拉选项的 HTML 模板。
',
- 'en-US': 'Customize the HTML template for dropdown options through the item
slot.
'
- },
- 'codeFiles': ['slot-item.vue']
}
],
apis: [
{
'name': 'action-menu',
'type': 'component',
- 'properties': [
+ 'props': [
{
'name': 'max-show-num',
'type': 'number',
@@ -133,7 +133,7 @@ export default {
{
'name': 'more-text',
'type': 'string',
- 'defaultValue': '更多',
+ 'defaultValue': "'更多'",
'desc': {
'zh-CN': '下拉按钮文本',
'en-US': 'Dropdown button text'
@@ -200,7 +200,7 @@ export default {
'zh-CN': '菜单项图标',
'en-US': 'Icon of a menu item'
},
- 'demId': 'icon'
+ 'demoId': 'icon'
},
{
'name': 'popper-class',
@@ -245,7 +245,7 @@ export default {
{
'name': 'text-field',
'type': 'string',
- 'defaultValue': 'label',
+ 'defaultValue': "'label'",
'desc': {
'zh-CN': '菜单按钮文本的键值',
'en-US': 'Key values for menu button text'
diff --git a/examples/sites/demos/pc/app/dropdown/hide-on-click-composition-api.vue b/examples/sites/demos/pc/app/dropdown/hide-on-click-composition-api.vue
index 6cdea16f4..bfd37c205 100644
--- a/examples/sites/demos/pc/app/dropdown/hide-on-click-composition-api.vue
+++ b/examples/sites/demos/pc/app/dropdown/hide-on-click-composition-api.vue
@@ -1,6 +1,6 @@
-
点击后不收起菜单弹框:
+
点击后不收起菜单弹框:
diff --git a/examples/sites/demos/pc/app/dropdown/hide-on-click.vue b/examples/sites/demos/pc/app/dropdown/hide-on-click.vue
index 53b80c749..7eb4de441 100644
--- a/examples/sites/demos/pc/app/dropdown/hide-on-click.vue
+++ b/examples/sites/demos/pc/app/dropdown/hide-on-click.vue
@@ -1,6 +1,6 @@
-
点击后不收起菜单弹框:
+
点击后不收起菜单弹框:
diff --git a/examples/sites/demos/pc/app/dropdown/inherit-width-composition-api.vue b/examples/sites/demos/pc/app/dropdown/inherit-width-composition-api.vue
index 79236e7d5..7a439404e 100644
--- a/examples/sites/demos/pc/app/dropdown/inherit-width-composition-api.vue
+++ b/examples/sites/demos/pc/app/dropdown/inherit-width-composition-api.vue
@@ -13,7 +13,7 @@
-
场景2:设置inherit-width
+
场景2:设置 inherit-width
更多菜单
diff --git a/examples/sites/demos/pc/app/dropdown/inherit-width.vue b/examples/sites/demos/pc/app/dropdown/inherit-width.vue
index a1acb0329..c6910aa49 100644
--- a/examples/sites/demos/pc/app/dropdown/inherit-width.vue
+++ b/examples/sites/demos/pc/app/dropdown/inherit-width.vue
@@ -13,7 +13,7 @@
-
场景2:设置inherit-width
+
场景2:设置 inherit-width
更多菜单
diff --git a/examples/sites/demos/pc/app/dropdown/options.spec.ts b/examples/sites/demos/pc/app/dropdown/options.spec.ts
index eb18d40c0..2190b3d90 100644
--- a/examples/sites/demos/pc/app/dropdown/options.spec.ts
+++ b/examples/sites/demos/pc/app/dropdown/options.spec.ts
@@ -51,7 +51,7 @@ test('配置式:使用 menu-options 和 text-field', async ({ page }) => {
const dropDownMenu = page.locator('body > .tiny-dropdown-menu')
const dropDownMenuItem = dropDownMenu.locator('.tiny-dropdown-item')
- await page.waitForTimeout(1200)
+ await page.waitForTimeout(2000)
await dropDown.hover()
await expect(dropDownMenu.first()).toBeVisible()
await expect(dropDownMenuItem.first()).toContainText('老友粉')
diff --git a/examples/sites/demos/pc/app/dropdown/slots-composition-api.vue b/examples/sites/demos/pc/app/dropdown/slots-composition-api.vue
index 6decda342..3090899cd 100644
--- a/examples/sites/demos/pc/app/dropdown/slots-composition-api.vue
+++ b/examples/sites/demos/pc/app/dropdown/slots-composition-api.vue
@@ -1,5 +1,5 @@
-
+
默认插槽
diff --git a/examples/sites/demos/pc/app/dropdown/trigger-composition-api.vue b/examples/sites/demos/pc/app/dropdown/trigger-composition-api.vue
index d7e24d517..39440a562 100644
--- a/examples/sites/demos/pc/app/dropdown/trigger-composition-api.vue
+++ b/examples/sites/demos/pc/app/dropdown/trigger-composition-api.vue
@@ -17,11 +17,11 @@
- 黄金糕
- 狮子头
- 螺蛳粉
- 双皮奶
- 蚵仔煎
+ 黄金糕
+ 狮子头
+ 螺蛳粉
+ 双皮奶
+ 蚵仔煎
@@ -36,11 +36,11 @@ import {
DropdownItem as TinyDropdownItem
} from '@opentiny/vue'
-const TinyIconPlus = iconPlus()
-const TinyIconPlusCircle = iconPlusCircle()
-const TinyIconPlusSquare = iconPlusSquare()
-const TinyIconCheckedLinear = iconCheckedLinear()
-const TinyIconCheckedSur = iconCheckedSur()
+const tinyIconPlus = iconPlus()
+const tinyIconPlusCircle = iconPlusCircle()
+const tinyIconPlusSquare = iconPlusSquare()
+const tinyIconCheckedLinear = iconCheckedLinear()
+const tinyIconCheckedSur = iconCheckedSur()