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 @@