diff --git a/examples/sites/demos/pc/app/dialog-box/webdoc/dialog-box.js b/examples/sites/demos/pc/app/dialog-box/webdoc/dialog-box.js index 365aff795..d2e141607 100644 --- a/examples/sites/demos/pc/app/dialog-box/webdoc/dialog-box.js +++ b/examples/sites/demos/pc/app/dialog-box/webdoc/dialog-box.js @@ -5,7 +5,10 @@ export default { { 'demoId': 'basic-usage', 'name': { 'zh-CN': '基本用法', 'en-US': 'Basic Usage' }, - 'desc': { 'zh-CN': '详细用法参考如下示例', 'en-US': 'For details, see the following example.' }, + 'desc': { + 'zh-CN': '通过设置:visible属性控制弹窗显示。', + 'en-US': 'Set pop-up display through: visible.' + }, 'codeFiles': ['basic-usage.vue'] }, { @@ -13,9 +16,9 @@ export default { 'name': { 'zh-CN': '二级弹窗', 'en-US': 'Level-2 pop-up window' }, 'desc': { 'zh-CN': - '

通过 default 默认插槽和底部操作区按钮实现二级弹窗。设置 append-to-body 属性后,二级弹窗的实体 DOM 结构将追加到 body 元素上。

\n', + '

通过设置#default默认插槽和底部操作区按钮实现二级弹窗。设置 append-to-body 属性后,二级弹窗的实体DOM结构将追加到body元素上。

\n', 'en-US': - '

The default slot and buttons in the operation area at the bottom are used to implement the level-2 pop-up window. After the append-to-body attribute is set, the entity DOM structure of the level-2 pop-up window is appended to the body element.

\n' + '

The #default slot and buttons in the operation area at the bottom are used to implement the level-2 pop-up window. After the append-to-body attribute is set, the entity DOM structure of the level-2 pop-up window is appended to the body element.

\n' }, 'codeFiles': ['secondary-dialog.vue'] }, @@ -23,10 +26,9 @@ export default { 'demoId': 'custom-dialog-title', 'name': { 'zh-CN': '自定义标题', 'en-US': 'Custom Title' }, 'desc': { - 'zh-CN': - '

title 属性可以设置弹窗标题外,还可以通过 title 插槽自定义弹窗标题区的内容。

\n', + 'zh-CN': '

通过设置title 或者#title插槽设置弹窗标题内容。

\n', 'en-US': - '

In addition to the title attribute, you can set the pop-up window title and customize the content in the pop-up window title area through the title slot.

\n' + '

Set the pop-up title content through thetitleattribute or #titleslot.

\n' }, 'codeFiles': ['custom-dialog-title.vue'] }, @@ -34,8 +36,9 @@ export default { 'demoId': 'custom-dialog-content', 'name': { 'zh-CN': '自定义内容', 'en-US': 'Custom Content' }, 'desc': { - 'zh-CN': '

通过 default 默认插槽自定义弹窗主体部分的内容。

\n', - 'en-US': '

The default slot is used to customize the content of the main part of the pop-up window.

\n' + 'zh-CN': '

通过设置#default默认插槽自定义弹窗主体部分的内容。

\n', + 'en-US': + '

The#defaultslot is used to customize the content of the main part of the pop-up window.

\n' }, 'codeFiles': ['custom-dialog-content.vue'] }, @@ -43,7 +46,7 @@ export default { 'demoId': 'custom-dialog-footer', 'name': { 'zh-CN': '自定义底部', 'en-US': 'Custom bottom' }, 'desc': { - 'zh-CN': '

通过 footer 插槽自定义弹窗底部操作区内容。

\n', + 'zh-CN': '

通过设置#footer 插槽自定义弹窗底部操作区内容。

\n', 'en-US': '

Customize the content in the operation area at the bottom of the pop-up window through the footer slot.

\n' }, @@ -54,9 +57,9 @@ export default { 'name': { 'zh-CN': '隐藏关闭按钮', 'en-US': 'Hide the close button' }, 'desc': { 'zh-CN': - '

默认弹窗右上角会显示关闭图标,单击可以关闭弹窗。若设置 show-close 为 false 后,将隐藏关闭图标,要实现关闭弹窗的功能可以通过底部操作区按钮的 click 事件切换 visible 属性的值为 false 。

\n', + '

通过设置:show-close 属性设置 false后,隐藏关闭图标,默认弹窗右上角显示关闭图标。底部click按钮事件可切换visible属性值设置弹窗显示。

\n', 'en-US': - '

The close icon is displayed in the upper right corner of the default pop-up window. You can click this icon to close the pop-up window. If show-close is set to false, the close icon is hidden. To close the pop-up window, you can switch the value of visible to false by clicking the button in the operation area.

\n' + '

After setting the:show-closeproperty tofalse, hide the close icon and the default pop-up window will display the close icon in the upper right corner. The bottomclickbutton event can switch tovisibleproperty value setting pop-up display.

\n' }, 'codeFiles': ['hidden-close-buttons.vue'] }, @@ -65,9 +68,9 @@ export default { 'name': { 'zh-CN': '禁用 ESC 关闭', 'en-US': 'Disable ESC.' }, 'desc': { 'zh-CN': - '

默认弹窗打开后,可以按下 Esc 键关闭弹窗,设置 close-on-press-escape 为 false 后将禁用该功能。

\n', + '

通过设置:close-on-press-escapefalse后可禁用按下Esc键关闭弹窗。

\n', 'en-US': - '

After the default pop-up window is opened, you can press Esc to close the pop-up window. If close-on-press-escape is set to false, this function is disabled.

\n' + '

By setting:close-on-pressure-scapetofalse, pressing theEsckey can be disabled to close pop ups.

\n' }, 'codeFiles': ['close-on-press-escape.vue'] }, @@ -75,9 +78,9 @@ export default { 'demoId': 'dialog-top-height', 'name': { 'zh-CN': '弹窗距离顶部的高度', 'en-US': 'Height between the pop-up window and the top' }, 'desc': { - 'zh-CN': '

通过 top 属性指定弹窗距离窗口顶部的高度,默认为屏高的 15% 。

\n', + 'zh-CN': '

通过设置top属性指定弹窗距离窗口顶部的高度,默认为屏高的 15% 。

\n', 'en-US': - '

The top attribute specifies the height of the pop-up window from the top of the window. The default value is 15% of the screen height.

\n' + '

Thetopattribute specifies the height of the pop-up window from the top of the window. The default value is 15% of the screen height.

\n' }, 'codeFiles': ['dialog-top-height.vue'] }, @@ -85,8 +88,8 @@ export default { 'demoId': 'dialog-width', 'name': { 'zh-CN': '弹窗的宽度', 'en-US': 'Wideness of the pop-up window' }, 'desc': { - 'zh-CN': '

通过 width 属性指定弹窗的宽度。

\n', - 'en-US': '

The width attribute specifies the width of the pop-up window.

\n' + 'zh-CN': '

通过设置width属性指定弹窗的宽度。

\n', + 'en-US': '

Thewidthattribute specifies the width of the pop-up window.

\n' }, 'codeFiles': ['dialog-width.vue'] }, @@ -95,9 +98,9 @@ export default { 'name': { 'zh-CN': '点击遮罩时不关闭弹窗', 'en-US': 'The pop-up window is not closed when the mask is clicked.' }, 'desc': { 'zh-CN': - '

默认弹窗打开后,可以单击遮罩层关闭弹窗,设置 close-on-click-modal 为 false 后将禁用该功能。

\n', + '

通过设置:close-on-click-modal属性为false后可禁用单击遮罩层关闭弹窗。

\n', 'en-US': - '

After the default pop-up window is opened, you can click the mask layer to close the pop-up window. If close-on-click-modal is set to false, this function is disabled.

\n' + '

By setting the:close-on-click-modalproperty tofalse, clicking on the mask layer to close the pop-up window can be disabled.

\n' }, 'codeFiles': ['close-on-click-modal.vue'] }, @@ -105,10 +108,8 @@ export default { 'demoId': 'no-modal', 'name': { 'zh-CN': '不启用遮罩层', 'en-US': 'Disable the mask layer' }, 'desc': { - 'zh-CN': - '

默认弹窗打开时会显示遮罩层,设置 modal 为 false 后将不启用遮罩层。无遮罩层时,单击弹窗外部区域仍然可以关闭弹窗。

\n', - 'en-US': - '

The mask layer is displayed when the pop-up window is opened by default. If modal is set to false, the mask layer is not enabled. If there is no mask layer, you can click the outer area of the pop-up window to close the pop-up window.

\n' + 'zh-CN': '

通过设置:modal属性为false不启用遮罩层。

\n', + 'en-US': '

Set the:modalattribute tofalseto not enable mask layers.

\n' }, 'codeFiles': ['no-modal.vue'] }, @@ -117,9 +118,9 @@ export default { 'name': { 'zh-CN': '右侧弹窗', 'en-US': 'Right pop-up window' }, 'desc': { 'zh-CN': - '

设置 right-slide 属性为 true 后,弹窗将从窗口右侧弹出。\n设置 modal-append-to-body 属性默认为 true 遮罩层应用在 body 上。

\n', + '

通过设置:right-slide属性为true,弹窗将从窗口右侧弹出。modal-append-to-body 属性默认true遮罩层应用在body

\n', 'en-US': - '

After right-slide is set to true, a pop-up window is displayed from the right of the window. \nSet the modal-append-to-body attribute to true by default. The mask layer is applied to the body.

\n' + '

By setting the:right-slideattribute totrue, a pop-up window will pop up from the right side of the window< Code>modal apply to bodyProperties default totrueMask layer applied tobody

' }, 'codeFiles': ['right-dialog.vue'] }, @@ -127,9 +128,8 @@ export default { 'demoId': 'hidden-header', 'name': { 'zh-CN': '隐藏标题区域', 'en-US': 'Hidden title area' }, 'desc': { - 'zh-CN': '

弹窗默认有标题区域,设置 show-header 为 false 后,将隐藏标题区域。

\n', - 'en-US': - '

The pop-up window has a title area by default. If show-header is set to false, the title area is hidden.

\n' + 'zh-CN': '

通过设置:show-headerfalse,将隐藏标题区域。

\n', + 'en-US': '

By using:show-headerasfalse, the title area will be hidden.

\n' }, 'codeFiles': ['hidden-header.vue'] }, @@ -138,9 +138,9 @@ export default { 'name': { 'zh-CN': '弹出时禁用滚动', 'en-US': 'Disable scrolling when pop-up' }, 'desc': { 'zh-CN': - '

弹窗弹出后,背景页面默认仍然是不可以滚动的。

通过设置 lock-scroll: false,遮罩后的内容可以滚动,body保持原来的滚动条,且鼠标移动和点击可以传递到遮罩层后的元素上。

\n', + '

通过设置:lock-scrolltrue,允许滚动遮罩内容,禁止滚动背景内容,单击遮罩层可关闭弹窗。设置:lock-scrollfalse,允许滚动遮罩内容、背景内容。

\n', 'en-US': - '

After a pop-up window is displayed, the background page cannot be scrolled by default.

By setting lock-scroll: false, the masked content can be scrolled, and the body remains the original scroll bar, and mouse movements and clicks can be passed to the element behind the mask layer.

\n' + '

By setting:lock-scrolltotrue, allow scrolling of mask content and prohibit scrolling of background content,Click on the mask layer to close the pop-up window.Set:lock-scrolltofalse,allowing scrolling of mask content and background content.

\n' }, 'codeFiles': ['lock-scroll.vue'] }, @@ -148,9 +148,9 @@ export default { 'demoId': 'center', 'name': { 'zh-CN': '头部和底部水平居中', 'en-US': 'The head and bottom are horizontally centered' }, 'desc': { - 'zh-CN': '

头部标题默认显示在区域左侧,设置 center 为 true 后,将居中显示。

\n', + 'zh-CN': '

通过设置:center属性为true头部标题居中显示。(默认显示在区域左侧)

\n', 'en-US': - 'The

header is displayed on the left of the area by default. If center is set to true, the header is displayed in the center.

\n' + '

By setting the:centerattribute totrue, the header title is displayed in the center. The default display is on the left side of the area.

\n' }, 'codeFiles': ['center.vue'] }, @@ -159,9 +159,9 @@ export default { 'name': { 'zh-CN': '可拖拽的弹窗', 'en-US': 'Dragable pop-up window' }, 'desc': { 'zh-CN': - '

默认弹窗不可拖拽,设置 draggable 属性为 true 后,鼠标移入标题区域单击可拖拽,拖拽事件有 @drag-startdrag-movedrag-end

\n', + '

通过设置:draggable属性为true,鼠标点击标题区域拖拽。具体事件:@drag-start@drag-move@drag-end

\n', 'en-US': - '

By default, the pop-up window cannot be dragged. Set draggable to true and move the cursor to the title area to drag the pop-up window. Drag events include @drag-start, drag-move, and drag-end.

\n' + '

By setting the:draggableattribute totrue, click and drag in the title area with the mouse.Specific events:@drag-start@drag-move@drag-end.

\n' }, 'codeFiles': ['draggable.vue'] }, @@ -169,10 +169,9 @@ export default { 'demoId': 'fullscreen', 'name': { 'zh-CN': '全屏弹窗', 'en-US': 'Full-screen pop-up window' }, 'desc': { - 'zh-CN': - '

设置 fullscreen 属性为 true 可显示全屏弹窗,默认弹窗宽度是 500px,此时设置宽度是不生效的。

\n', + 'zh-CN': '

通过设置:fullscreen属性为true显示全屏弹窗。

\n', 'en-US': - '

Set fullscreen to true to display the full-screen pop-up window. The default pop-up window width is 500px. In this case, the width setting does not take effect.

\n' + '

Display full screen pop ups by setting the:fullscreenattribute totrue.

\n' }, 'codeFiles': ['fullscreen.vue'] }, @@ -181,9 +180,9 @@ export default { 'name': { 'zh-CN': '弹出与关闭事件', 'en-US': 'Pop-up and Close Event' }, 'desc': { 'zh-CN': - '

open :对话框打开时触发,opened :对话框打开动画结束时触发,close :对话框关闭时触发,closed :对话框关闭动画结束时触发。

\n', + '

通过设置事件@open:对话框打开时触发@opened:对话框打开动画结束时触发@close:对话框关闭时触发@closed:对话框关闭动画结束时触发。

\n', 'en-US': - '

open: triggered when the dialog box is opened. opened: triggered when the animation ends. close: triggered when the dialog box is closed. closed: triggered when the animation ends.

\n' + '

By setting the event@open: triggered when the dialog box is opened@opened: triggered when the animation ends when the dialog box is opened@close: triggered when the dialog box is closed@closed: triggered when the animation ends when the dialog box is closed.

\n' }, 'codeFiles': ['open-close-events.vue'] }, @@ -191,10 +190,9 @@ export default { 'demoId': 'form-in-dialog', 'name': { 'zh-CN': '弹窗表单', 'en-US': 'Pop-up Window Form' }, 'desc': { - 'zh-CN': - '

通过 default 默认插槽实现嵌套表单以及表单提交的逻辑。

\n

默认关闭弹窗的时候重置表单,设置is-form-reset 为false,则关闭弹窗的时候不重置表格

', + 'zh-CN': '

通过设置:is-form-reset属性为false,关闭弹窗不重置数据。

', 'en-US': - '

The default slot is used to implement nested forms and form submission logic.

\n

By default, the form is reset when the pop-up window is closed. If is-form-reset is set to false, the form is not reset when the pop-up window is closed.

' + '

By setting the:is-form-resetattribute to false, close the pop-up window without resetting the data.

' }, 'codeFiles': ['form-in-dialog.vue'] }, @@ -203,8 +201,9 @@ export default { 'name': { 'zh-CN': '关闭时销毁主体元素', 'en-US': '' }, 'desc': { 'zh-CN': - '

通过 destroy-on-close 控制是否在关闭时销毁 Dialog-box 对话框内的所有元素,默认值为 false。

', - 'en-US': '' + '

通过设置:destroy-on-close属性为true在关闭弹窗时销毁Dialog-box对话框内的所有元素,默认值为false

', + 'en-US': + '

By setting the:destroy-on-closeattribute totrue, all elements in thedialog boxdialog box are destroyed when the pop-up window is closed, with the default value beingfalse.

' }, 'codeFiles': ['destroy-on-close.vue'] } @@ -213,141 +212,141 @@ export default { { 'name': 'dialog-box', 'type': 'component', - 'properties': [ + 'props': [ { 'name': 'visible', 'type': 'boolean', - 'defaultValue': '该属性的默认值为 true', + 'defaultValue': 'true', 'desc': { 'zh-CN': '控制弹出框显示与关闭', - 'en-US': - 'If this parameter is set to true, the header and bottom of the dialog box are automatically centered.' + 'en-US': 'Control pop-up display and closing' }, 'demoId': 'basic-usage' }, { 'name': 'center', 'type': 'boolean', - 'defaultValue': '该属性的默认值为 false', + 'defaultValue': 'false', 'desc': { 'zh-CN': '设置为 true 时 弹出框的头部与底部内容会自动居中', - 'en-US': 'Close the pop-up window. The form data is reset by default.' + 'en-US': 'When set to true, the head and bottom content of the pop-up box will automatically center' }, 'demoId': 'center' }, { 'name': 'is-form-reset', 'type': 'boolean', - 'defaultValue': '该属性的默认值为 true', - 'desc': { 'zh-CN': '关闭弹窗,默认重置表单数据', 'en-US': 'Whether to display the close button' }, + 'defaultValue': 'true', + 'desc': { + 'zh-CN': '关闭弹窗,默认重置表单数据', + 'en-US': 'Close the pop-up window and reset the form data by default' + }, 'demoId': 'form-in-dialog' }, { 'name': 'show-close', 'type': 'boolean', - 'defaultValue': '该属性的默认值为 true', + 'defaultValue': 'true', 'desc': { 'zh-CN': '是否显示关闭按钮', - 'en-US': 'Indicates whether to enable the drag function for pop-up windows. The default value is false.' + 'en-US': 'Is the close button displayed' }, 'demoId': 'hidden-close-buttons' }, { 'name': 'draggable', 'type': 'boolean', - 'defaultValue': '该属性的默认值为 false', + 'defaultValue': 'false', 'desc': { - 'zh-CN': '是否开启弹窗的拖拽功能,默认值为 false 。', - 'en-US': 'Whether the dialog box is displayed in full screen mode' + 'zh-CN': '是否开启弹窗的拖拽功能,默认值为 false', + 'en-US': 'Whether to enable the drag and drop function of pop ups, with a default value of false' }, 'demoId': 'draggable' }, { 'name': 'fullscreen', 'type': 'boolean', - 'defaultValue': '该属性的默认值为 false', - 'desc': { 'zh-CN': '弹出框是否全屏', 'en-US': 'Whether to enable the mask layer' }, + 'defaultValue': 'false', + 'desc': { 'zh-CN': '弹出框是否全屏', 'en-US': 'Is the pop-up full screen' }, 'demoId': 'fullscreen' }, { 'name': 'modal', 'type': 'boolean', - 'defaultValue': '该属性的默认值为 true', + 'defaultValue': 'true', 'desc': { 'zh-CN': '是否启用遮罩层', - 'en-US': - 'Indicates whether pop-up windows can be closed by clicking the mask layer. The default value is true. You can set modal-closable="false" on the tag. The pop-up windows cannot be closed by clicking the mask layer.' + 'en-US': 'Is the mask layer enabled' }, 'demoId': 'no-modal' }, { 'name': 'close-on-click-modal', 'type': 'boolean', - 'defaultValue': '该属性的默认值为 true', + 'defaultValue': 'true', 'desc': { - 'zh-CN': - '是否可以通过点击遮罩层关闭弹窗,默认为 true ,可以在标签上设置:modal-closable="false"不能通过点击遮罩层关闭弹窗。', - 'en-US': 'Specifies whether the mask layer can be disabled by pressing ESC.' + 'zh-CN': '是否可以通过点击遮罩层关闭弹窗', + 'en-US': 'Close the pop-up window by clicking on the mask layer' }, 'demoId': 'close-on-click-modal' }, { 'name': 'close-on-press-escape', 'type': 'boolean', - 'defaultValue': '该属性的默认值为 true', + 'defaultValue': 'true', 'desc': { 'zh-CN': '是否可以通过 ESC 键关闭遮罩层', 'en-US': - 'Indicates whether the mask layer is applied to the body. If the value is false, the mask layer is applied to the parent element of DialogBox.' + 'Indicates whether the mask layer is applied to the body. If the value is false, the mask layer is applied to the parent element of DialogBox' }, 'demoId': 'close-on-press-escape' }, { 'name': 'modal-append-to-body', 'type': 'boolean', - 'defaultValue': '该属性的默认值为 true', + 'defaultValue': 'true', 'desc': { 'zh-CN': '遮罩层是否应用到 body 上,为 false 时遮罩层会应用到 DialogBox 的父元素上', 'en-US': - 'Indicates whether the DialogBox itself is inserted into the body. This attribute must be specified and set to true for nested Dialogs.' + 'Indicates whether the DialogBox itself is inserted into the body. This attribute must be specified and set to true for nested Dialogs' }, 'demoId': 'right-dialog' }, { 'name': 'append-to-body', 'type': 'boolean', - 'defaultValue': '该属性的默认值为 false', + 'defaultValue': 'false', 'desc': { 'zh-CN': 'DialogBox 本身是否插入到 body 上,嵌套的 Dialog 必须指定该属性并赋值为 true', - 'en-US': 'Indicates whether to enable the pop-up slide-out function. The default value is false.' + 'en-US': 'Indicates whether to enable the pop-up slide-out function. The default value is false' }, 'demoId': 'secondary-dialog' }, { 'name': 'right-slide', 'type': 'boolean', - 'defaultValue': '该属性的默认值为 false', + 'defaultValue': 'false', 'desc': { 'zh-CN': '是否开启弹出右侧滑出功能,默认值为 false 。', - 'en-US': 'Whether to disable the scroll bar when a log is displayed.' + 'en-US': 'Whether to disable the scroll bar when a log is displayed' }, 'demoId': 'right-dialog' }, { 'name': 'lock-scroll', 'type': 'boolean', - 'defaultValue': '该属性的默认值为 true', + 'defaultValue': 'true', 'desc': { 'zh-CN': 'Dialog弹出时是否禁用滚动条', - 'en-US': 'Indicates whether to display the pop-up header. The default value is true.' + 'en-US': 'Indicates whether to display the pop-up header. The default value is true' }, 'demoId': 'lock-scroll' }, { 'name': 'show-header', 'type': 'boolean', - 'defaultValue': '该属性的默认值为 true', - 'desc': { 'zh-CN': '是否显示弹窗头部 header,默认值为 true 。', 'en-US': 'Pop-up dialog box title.' }, + 'defaultValue': 'true', + 'desc': { 'zh-CN': '是否显示弹窗头部 header,默认值为 true 。', 'en-US': 'Pop-up dialog box title' }, 'demoId': 'hidden-header' }, { @@ -357,25 +356,25 @@ export default { 'desc': { 'zh-CN': '弹出框标题。', 'en-US': - 'Height between the pop-up box and the top of the window. The default value is 15% of the screen height.' + 'Height between the pop-up box and the top of the window. The default value is 15% of the screen height' }, 'demoId': 'custom-dialog-title' }, { 'name': 'top', 'type': 'string', - 'defaultValue': '该属性的默认值为 15vh', + 'defaultValue': '15vh', 'desc': { 'zh-CN': '设置弹出框距离窗口顶部的高度,默认为屏高的 15%', - 'en-US': 'Display and close pop-up boxes.' + 'en-US': 'Display and close pop-up boxes' }, 'demoId': 'dialog-top-height' }, { 'name': 'width', 'type': 'string', - 'defaultValue': '该属性的默认值为 500px', - 'desc': { 'zh-CN': '弹出框的宽度。', 'en-US': 'Wideness of the dialog box that is displayed.' }, + 'defaultValue': '500px', + 'desc': { 'zh-CN': '弹出框的宽度。', 'en-US': 'Wideness of the dialog box that is displayed' }, 'demoId': 'dialog-width' }, { diff --git a/examples/sites/demos/pc/app/modal/webdoc/modal.js b/examples/sites/demos/pc/app/modal/webdoc/modal.js index 2dce39731..a47fbf285 100644 --- a/examples/sites/demos/pc/app/modal/webdoc/modal.js +++ b/examples/sites/demos/pc/app/modal/webdoc/modal.js @@ -7,7 +7,7 @@ export default { 'name': { 'zh-CN': '基本用法', 'en-US': 'Basic Usage' }, 'desc': { 'zh-CN': - '

通过 Modal.alert 方法设置弹出框,通过 Modal.confirm 方法设置确认弹出框。函数返回一个 Promise 对象,其中属性 vm 可用来关闭当前模态框。

', + '

通过Modal.alert方法设置弹出框,通过Modal.confirm方法设置确认弹出框。函数返回一个Promise对象,其中属性vm可用来关闭当前模态框。

', 'en-US': '

You can use the Modal.alert method to set a pop-up box, and use the Modal.confirm method to set a confirmation pop-up box. The function returns a Promise object, where the property vm can be used to close the current Modal.

' }, @@ -15,28 +15,28 @@ export default { }, { 'demoId': 'fullscreen', - 'name': { 'zh-CN': '最大化显示', 'en-US': 'Maximized display' }, + 'name': { 'zh-CN': '最大化显示', 'en-US': 'Maximized Display' }, 'desc': { - 'zh-CN': '

通过 fullscreen 设置是否最大化显示。

', - 'en-US': '

You can use the fullscreen attribute to set whether to maximize the display.

' + 'zh-CN': '

通过:fullscreen设置是否最大化显示。

', + 'en-US': '

You can use the :fullscreen attribute to set whether to maximize the display.

' }, 'codeFiles': ['fullscreen.vue'] }, { 'demoId': 'esc-closable', - 'name': { 'zh-CN': '按 Esc 键关闭弹出框', 'en-US': 'Press Esc to close the dialog box.' }, + 'name': { 'zh-CN': '按 Esc 键关闭弹出框', 'en-US': 'Press Esc To Close The Dialog Box.' }, 'desc': { - 'zh-CN': '

通过 esc-closable 设置是否允许按 Esc 键关闭窗口。

', + 'zh-CN': '

通过:esc-closable设置是否允许按 Esc 键关闭窗口。

', 'en-US': - '

You can use the esc-closable attribute to set whether to close a window by pressing the Esc key.

' + '

You can use the :esc-closable attribute to set whether to close a window by pressing the Esc key.

' }, 'codeFiles': ['esc-closable.vue'] }, { 'demoId': 'duration', - 'name': { 'zh-CN': '自动关闭延时', 'en-US': 'Automatic shutdown delay' }, + 'name': { 'zh-CN': '自动关闭延时', 'en-US': 'Automatic Shutdown Delay' }, 'desc': { - 'zh-CN': "

通过 duration 设置自动关闭的延迟时间,仅当 type='message' 有效。

", + 'zh-CN': "

通过duration设置自动关闭的延迟时间,仅当type='message'有效。

", 'en-US': '

You can use the duration attribute to set the delay time for automatic closing. This parameter is valid only for type=message.

' }, @@ -44,10 +44,9 @@ export default { }, { 'demoId': 'id', - 'name': { 'zh-CN': '防止重复提示', 'en-US': 'Prevent repeated prompts' }, + 'name': { 'zh-CN': '防止重复提示', 'en-US': 'Prevent Repeated Prompts' }, 'desc': { - 'zh-CN': - "

如果不想窗口重复点击,可以设置唯一的 id 防止重复提示,仅当 type='message' 有效

", + 'zh-CN': "

通过设置唯一的id防止重复提示,仅当type='message'有效

。", 'en-US': '

If you do not want to click the window repeatedly, you can set a unique id to prevent repeated prompts. This parameter is valid only for type=message.

' }, @@ -55,31 +54,31 @@ export default { }, { 'demoId': 'lock-scroll', - 'name': { 'zh-CN': '锁住滚动条', 'en-US': 'Lock the scroll bar' }, + 'name': { 'zh-CN': '锁住滚动条', 'en-US': 'Lock The Scroll Bar' }, 'desc': { - 'zh-CN': '

通过 lock-scroll 设置是否锁住滚动条,不允许页面滚动。

', - 'en-US': '

You can use the lock-scroll attribute to set whether to lock the scroll bar.

' + 'zh-CN': '

通过:lock-scroll设置是否锁住滚动条,不允许页面滚动。

', + 'en-US': '

You can use the :lock-scroll attribute to set whether to lock the scroll bar.

' }, 'codeFiles': ['lock-scroll.vue'] }, { 'demoId': 'lock-view', - 'name': { 'zh-CN': '锁住页面', 'en-US': 'Lock the page' }, + 'name': { 'zh-CN': '锁住页面', 'en-US': 'Lock The Page' }, 'desc': { 'zh-CN': - '

通过 mask 设置是否显示遮罩层,通过 lock-view 设置是否锁住页面,不允许窗口之外的任何操作。

', + '

通过:mask设置是否显示遮罩层,通过:lock-view设置是否锁住页面,不允许窗口之外的任何操作。

', 'en-US': - '

You can use the lock-view attribute to set whether to lock the page. Operations outside the window are not allowed.

' + '

You can use the :lock-view attribute to set whether to lock the page. Operations outside the window are not allowed.

' }, 'codeFiles': ['lock-view.vue'] }, { 'demoId': 'mask-closable', - 'name': { 'zh-CN': '点击遮罩层关闭窗口', 'en-US': 'Click the mask layer to close the window.' }, + 'name': { 'zh-CN': '点击遮罩层关闭窗口', 'en-US': 'Click The Mask Layer To Close The Window.' }, 'desc': { - 'zh-CN': '

通过 mask-closable 设置是否允许点击遮罩层关闭窗口。

', + 'zh-CN': '

通过:mask-closable设置是否允许点击遮罩层关闭窗口。

', 'en-US': - '

You can use the mask-closable attribute to set whether to allow clicking the mask layer to close the window.

' + '

You can use the :mask-closable attribute to set whether to allow clicking the mask layer to close the window.

' }, 'codeFiles': ['mask-closable.vue'] }, @@ -87,102 +86,107 @@ export default { 'demoId': 'message', 'name': { 'zh-CN': '自定义内容', 'en-US': 'Custom Content' }, 'desc': { - 'zh-CN': '

通过 message 设置窗口的内容。

', - 'en-US': '

You can set the content of the window through the message attribute.

' + 'zh-CN': '

通过:message设置窗口的内容。

', + 'en-US': '

You can set the content of the window through the :message attribute.

' }, 'codeFiles': ['message.vue'] }, { 'demoId': 'footer-btn-content', - 'name': { 'zh-CN': '自定义底部按钮内容', 'en-US': 'Custom bottom button' }, + 'name': { 'zh-CN': '自定义底部按钮内容', 'en-US': 'Custom Bottom Button Content' }, 'desc': { 'zh-CN': - '

通过 confirm-content 设置确认按钮内容,通过cancel-content 设置取消按钮内容。

\n', + '

通过:confirm-content设置确认按钮内容,通过:cancel-content设置取消按钮内容。

\n', 'en-US': - '

You can set the width and height of a window by using width and height. You can set whether to allow dragging to adjust the window size by using resize.

' + '

Set the content of the confirm button through:confirm-content, and set the content of the cancel button through:cancel-content.

' }, 'codeFiles': ['footer-btn-content.vue'] }, { 'demoId': 'footer-btn-props', - 'name': { 'zh-CN': '自定义底部按钮', 'en-US': 'Minimum width of the window after the window is resized' }, + 'name': { 'zh-CN': '自定义底部按钮', 'en-US': 'Customize Bottom Button' }, 'desc': { 'zh-CN': - '

通过 confirm-btn-props 设置确认按钮,通过 cancel-btn-props 设置取消按钮。

\n', + '

通过:confirm-btn-props设置确认按钮,通过:cancel-btn-props设置取消按钮。

\n', 'en-US': - '

Set the confirmation button via confirm-btn-props and the cancel button via cancel-btn-props.

' + '

Set the confirmation button via :confirm-btn-props and the cancel button via :cancel-btn-props.

' }, 'codeFiles': ['footer-btn-props.vue'] }, { 'demoId': 'resize', - 'name': { 'zh-CN': '调整窗口大小', 'en-US': 'Minimum height of the window after the window is resized' }, + 'name': { 'zh-CN': '调整窗口大小', 'en-US': 'Resize The Window' }, 'desc': { 'zh-CN': - '

通过 width 设置窗口宽度,height 设置高度,通过 resize 设置是否允许拖动调整窗口大小。

', + '

通过:width设置窗口宽度,:height设置高度,通过:resize设置是否允许拖动调整窗口大小。

', 'en-US': - '

Use width to set the window width, height to set the height, and resize to set whether to allow dragging to resize the window.

' + '

Use :width to set the window width, :height to set the height, and :resize to set whether to allow dragging to resize the window.

' }, 'codeFiles': ['resize.vue'] }, { 'demoId': 'min-width', - 'name': { 'zh-CN': '调整窗口大小后窗口显示的最小宽度', 'en-US': 'The bottom is not displayed.' }, + 'name': { + 'zh-CN': '调整窗口大小后窗口显示的最小宽度', + 'en-US': 'The Minimum Width Of The Window Displayed After Adjusting Its Size' + }, 'desc': { 'zh-CN': - '

配置 resize 可拖拽属性为 true后,可通过 min-width 属性设置拖拽后窗口的最小宽度。

', + '

通过设置:resize可拖拽属性为true后,可通过:min-width属性设置拖拽后窗口的最小宽度。

', 'en-US': - '

You can use the showFooter attribute to set whether to display the bottom. The default value is true.

' + '

By setting the:resizedrag property totrue, the minimum width of the window after dragging can be set through the:min-widthproperty.

' }, 'codeFiles': ['min-width.vue'] }, { 'demoId': 'min-height', - 'name': { 'zh-CN': '调整窗口大小后窗口显示的最小高度', 'en-US': 'The header is not displayed.' }, + 'name': { + 'zh-CN': '调整窗口大小后窗口显示的最小高度', + 'en-US': 'The Minimum Height Displayed By The Window After Adjusting Its Size' + }, 'desc': { 'zh-CN': - '

配置 resize 可拖拽属性为 true后,可通过 min-height 属性设置拖拽后窗口的最小高度。

', + '

通过设置:resize可拖拽属性为true后,可通过:min-height属性设置拖拽后窗口的最小高度。

', 'en-US': - '

You can use the showHeader attribute to set whether to display the header. The default value is true.

' + '

By setting the:resizedrag property totrue, the minimum height of the window after dragging can be set through the:min-heightproperty.

' }, 'codeFiles': ['min-height.vue'] }, { 'demoId': 'showFooter', - 'name': { 'zh-CN': '不显示底部', 'en-US': 'Message Status' }, + 'name': { 'zh-CN': '不显示底部', 'en-US': 'Do Not Display Bottom' }, 'desc': { - 'zh-CN': '

通过 show-footer 设置是否显示底部。

', - 'en-US': - '

You can set the message status through the status attribute. The value can be info | success | warning | error | loading .

' + 'zh-CN': '

通过 :show-footer 设置是否显示底部。

', + 'en-US': '

Set whether to display the bottom through:show-root.

' }, 'codeFiles': ['showFooter.vue'] }, { 'demoId': 'showHeader', - 'name': { 'zh-CN': '不显示头部', 'en-US': 'Title' }, + 'name': { 'zh-CN': '不显示头部', 'en-US': 'Do Not Display The Head' }, 'desc': { - 'zh-CN': '

通过 show-header 设置是否显示头部。

', - 'en-US': '

You can set the title of the window through the title attribute.

' + 'zh-CN': '

通过 :show-header 设置是否显示头部。

', + 'en-US': '

Set whether to display the header through:show-header.

' }, 'codeFiles': ['showHeader.vue'] }, { 'demoId': 'status', - 'name': { 'zh-CN': '消息状态', 'en-US': 'Position from the top' }, + 'name': { 'zh-CN': '消息状态', 'en-US': 'Position From The Top' }, 'desc': { 'zh-CN': - '

通过 status 设置消息状态,可选值有 infosuccesswarningerrorloading

', + '

通过:status设置消息状态,可选值有infosuccesswarningerrorloading

', 'en-US': - '

You can use the top attribute to set the position of a message from the top of the message. This parameter is valid only for type=message.

' + '

Set the message status through:status, with optional values includinginfosuccesswarningerrorloading.

' }, 'codeFiles': ['status.vue'] }, { 'demoId': 'message-closable', - 'name': { 'zh-CN': '关闭消息弹窗', 'en-US': 'Close message pop-up window' }, + 'name': { 'zh-CN': '关闭消息弹窗', 'en-US': 'Close Message Pop-Up Window' }, 'desc': { - 'zh-CN': '

通过 message-closable 设置消息可手动关闭。

', - 'en-US': '

Messages can be closed manually by setting message-closable.

' + 'zh-CN': '

通过:message-closable设置消息可手动关闭。

', + 'en-US': '

Messages can be closed manually by setting :message-closable.

' }, 'codeFiles': ['message-closable.vue'] }, @@ -190,8 +194,8 @@ export default { 'demoId': 'title', 'name': { 'zh-CN': '标题', 'en-US': 'Title' }, 'desc': { - 'zh-CN': '

通过 title 设置窗口的标题。

', - 'en-US': '

Set the title of the window via title.

' + 'zh-CN': '

通过:title设置窗口的标题。

', + 'en-US': '

Set the title of the window via:title.

' }, 'codeFiles': ['title.vue'] }, @@ -199,7 +203,7 @@ export default { 'demoId': 'top', 'name': { 'zh-CN': '距离顶部的位置', 'en-US': 'Position from top' }, 'desc': { - 'zh-CN': "

通过 top 设置消息距离顶部的位置,仅当 type='message' 有效。

", + 'zh-CN': "

通过top设置消息距离顶部的位置,仅当 type='message' 有效。

", 'en-US': "

Set the position of the message from the top via top, which is only valid when type='message'.

" }, @@ -207,57 +211,57 @@ export default { }, { 'demoId': 'type', - 'name': { 'zh-CN': '窗口类型', 'en-US': 'Custom Stacking Sequence' }, + 'name': { 'zh-CN': '窗口类型', 'en-US': 'Custom Window Type' }, 'desc': { - 'zh-CN': '

通过 type 设置窗口类型。

', - 'en-US': '

Set the window type via type.

' + 'zh-CN': '

通过:type设置窗口类型。

', + 'en-US': '

Set the window type via :type.

' }, 'codeFiles': ['type.vue'] }, { 'demoId': 'value', - 'name': { 'zh-CN': '绑定值', 'en-US': 'Cancel button event' }, + 'name': { 'zh-CN': '绑定值', 'en-US': 'Bind Value' }, 'desc': { - 'zh-CN': '

通过 modalValue/v-model 绑定值,控制弹窗是否显示。

', + 'zh-CN': '

通过:modalValue/v-model绑定值,控制弹窗是否显示。

', 'en-US': - '

Bind the value through modalValue/v-model to control whether the pop-up window is displayed.

' + '

Bind the value through :modalValue/v-model to control whether the pop-up window is displayed.

' }, 'codeFiles': ['value.vue'] }, { 'demoId': 'z-index', - 'name': { 'zh-CN': '自定义堆叠顺序', 'en-US': 'Close button event' }, + 'name': { 'zh-CN': '自定义堆叠顺序', 'en-US': 'Custom Stacking Order' }, 'desc': { - 'zh-CN': '

通过 z-index 设置自定义堆叠顺序。

', - 'en-US': '

Set a custom stacking order via z-index.

' + 'zh-CN': '

通过:z-index设置自定义堆叠顺序。

', + 'en-US': '

Set a custom stacking order via :z-index.

' }, 'codeFiles': ['z-index.vue'] }, { 'demoId': 'is-form-reset', - 'name': { 'zh-CN': '关闭弹窗,是否重置表单数据', 'en-US': 'Bottom slot' }, + 'name': { 'zh-CN': '关闭弹窗,是否重置表单数据', 'en-US': 'Do Not Reset Data After Closing Pop Ups' }, 'desc': { - 'zh-CN': - '

嵌套表单使用时,关闭弹窗后,默认会重置表单数据,设置 is-form-resetfalse,则关闭弹窗后不重置表单。

', - 'en-US': '

You can set the bottom slot through slot="footer" .

' + 'zh-CN': '

通过设置:is-form-reset属性为false,关闭弹窗后不重置数据。

', + 'en-US': + '

By setting the:is-form-resetattribute tofalse, the data will not be reset after closing the pop-up window.

' }, 'codeFiles': ['is-form-reset.vue'] }, { 'demoId': 'footer-slot', - 'name': { 'zh-CN': '底部插槽', 'en-US': '' }, + 'name': { 'zh-CN': '底部插槽', 'en-US': 'Bottom Slot' }, 'desc': { - 'zh-CN': '

可通过 footer 插槽设置底部内容。

', - 'en-US': '

The bottom content can be set through the footer slot.' + 'zh-CN': '

通过#footer插槽设置底部内容。

', + 'en-US': '

The bottom content can be set through the #footer slot.' }, 'codeFiles': ['footer-slot.vue'] }, { 'demoId': 'grid', - 'name': { 'zh-CN': '嵌套表格', 'en-US': 'Nested tables' }, + 'name': { 'zh-CN': '嵌套表格', 'en-US': 'Nested Tables' }, 'desc': { - 'zh-CN': '

可通过默认插槽插槽嵌套表格组件。

', - 'en-US': 'Table components can be nested via default slot slots.' + 'zh-CN': '

通过#default插槽嵌套表格组件。

', + 'en-US': 'Table components can be nested via #default slot.' }, 'codeFiles': ['grid.vue'] }, @@ -280,7 +284,7 @@ export default { { 'name': 'modal', 'type': 'component', - 'properties': [ + 'props': [ { 'name': 'cancel-btn-props', 'type': 'Button.props', @@ -289,7 +293,7 @@ export default { 'desc': { 'zh-CN': '自定义取消按钮的 props ,可选值与 Button 组件一致', 'en-US': - 'Customize the props of the cancel button. The optional values ​​are consistent with the Button component.' + 'Customize the props of the cancel button. The optional values ​​are consistent with the Button component' }, 'demoId': 'footer-btn-props' }, @@ -432,7 +436,7 @@ export default { 'defaultValue': '', 'desc': { 'zh-CN': '窗口的内容', - 'en-US': 'window contents' + 'en-US': 'Window contents' }, 'demoId': 'message' }, diff --git a/examples/sites/demos/pc/app/numeric/webdoc/numeric.js b/examples/sites/demos/pc/app/numeric/webdoc/numeric.js index ee7da4e78..008092443 100644 --- a/examples/sites/demos/pc/app/numeric/webdoc/numeric.js +++ b/examples/sites/demos/pc/app/numeric/webdoc/numeric.js @@ -6,7 +6,7 @@ export default { 'demoId': 'basic-usage', 'name': { 'zh-CN': '基本用法', 'en-US': 'Basic Usage' }, 'desc': { - 'zh-CN': '通过 v-model 属性绑定输入值,', + 'zh-CN': '通过设置v-model属性绑定输入值。', 'en-US': 'Bind input value through v-model attribute' }, 'codeFiles': ['basic-usage.vue'] @@ -16,9 +16,9 @@ export default { 'name': { 'zh-CN': '最值与数值循环', 'en-US': 'Extremum and loop' }, 'desc': { 'zh-CN': - '

通过 max 属性设置计数器允许的最大值; min 属性设置计数器允许的最小值; circulate 属性设置向上到达最大值后从最小值开始,或反过来。

\n', + '

通过设置:max属性计数器允许的最大值,设置:min属性计数器允许的最小值,设置circulate属性当计数器的数值为最大值,继续计数,是否从最小值开始计数。

\n', 'en-US': - '

You can set the maximum value allowed by the counter by setting the max attribute, and set the minimum value allowed by the counter by setting the min attribute. Set the circulate property to start from the minimum value after reaching the maximum value up, or vice versa.

\n' + '

By setting the maximum value allowed by the:maxattribute counter, setting the minimum value allowed by the:minattribute counter, and setting thecycleattribute, when the counter value reaches the maximum value, continue counting, whether to start counting from the minimum value.

\n' }, 'codeFiles': ['max-min.vue'] }, @@ -26,8 +26,9 @@ export default { 'demoId': 'about-step', 'name': { 'zh-CN': '步长', 'en-US': 'Step' }, 'desc': { - 'zh-CN': '

通过 step 属性设置计数器的步长。

\n', - 'en-US': '

You can set the step of the counter through the step attribute.

\n' + 'zh-CN': '

通过设置:step属性为计数器的加减数值。

\n', + 'en-US': + '

Set the addition and subtraction values of the counter through the:stepattribute.

\n' }, 'codeFiles': ['about-step.vue'] }, @@ -35,8 +36,8 @@ export default { 'demoId': 'precision', 'name': { 'zh-CN': '数值精度', 'en-US': 'Numeric precision' }, 'desc': { - 'zh-CN': '

通过 precision 属性设置计数器的精度值。

\n', - 'en-US': '

You can set the precision value of the counter through the precision attribute.

\n' + 'zh-CN': '

通过设置:precision属性为计数器的精度值。

\n', + 'en-US': '

Set the precision value of the counter through the:precisionattribute.

\n' }, 'codeFiles': ['precision.vue'] }, @@ -44,8 +45,8 @@ export default { 'demoId': 'dynamic-disabled', 'name': { 'zh-CN': '禁用', 'en-US': 'Disabled' }, 'desc': { - 'zh-CN': '

通过 disabled 设置是否禁用计数器。

', - 'en-US': 'Disable the counter by setting disabled.' + 'zh-CN': '

通过设置:disabled是否禁用计数器。

', + 'en-US': 'Disable the counter by setting disabled.' }, 'codeFiles': ['dynamic-disabled.vue'] }, @@ -54,9 +55,9 @@ export default { 'name': { 'zh-CN': '可清空', 'en-US': 'Clearable' }, 'desc': { 'zh-CN': - '通过 allow-empty 属性设置计数器内容的可清空特性,默认为 false,表示不可清空。', + '通过设置:allow-empty属性计数器内容的可清空特性,默认为 false,表示不可清空。', 'en-US': - '

You can use the allow-empty property to set the clearability of counter contents. The default value is false, indicating that the data cannot be cleared.

\n' + '

You can use the :allow-empty property to set the clearability of counter contents. The default value is false, indicating that the data cannot be cleared.

\n' }, 'codeFiles': ['allow-empty.vue'] }, @@ -65,9 +66,9 @@ export default { 'name': { 'zh-CN': '尺寸', 'en-US': 'Size' }, 'desc': { 'zh-CN': - '

通过 size 属性设置计数器尺寸,可选值有 medium | small | mini

\n', + '

通过设置:size 属性为计数器尺寸,可选值有mediumsmallmini

\n', 'en-US': - '

You can set the counter size through the size attribute. The value can be medium | small | mini.

\n' + '

You can set the counter size through the:sizeattribute.The value can be mediumsmallmini.

\n' }, 'codeFiles': ['numeric-size.vue'] }, @@ -76,9 +77,9 @@ export default { 'name': { 'zh-CN': '加减按钮', 'en-US': 'Control Button' }, 'desc': { 'zh-CN': - '

通过 controls 属性设置计数器是否显示加减按钮; controls-position 属性设置加减按钮显示的位置。加减按钮默认分列两侧显示。

\n', + '

通过设置:controls 属性计数器是否显示加减按钮,设置:controls-position 属性加减按钮显示的位置。加减按钮默认分列两侧显示。

\n', 'en-US': - '

You can set whether the counter has a control button through the controls attribute.

\n' + '

By setting whether the: controlsattribute counter displays add/subtract buttons, set the position where the: controls positionattribute add/subtract buttons are displayed. The addition and subtraction buttons are displayed on both sides of the column by default.

\n' }, 'codeFiles': ['controls.vue'] }, @@ -86,9 +87,9 @@ export default { 'demoId': 'mouse-wheel', 'name': { 'zh-CN': '鼠标滚轮滚动改变值', 'en-US': 'Mouse wheel scrolling change value' }, 'desc': { - 'zh-CN': '

通过 mouse-wheel 属性控制鼠标滚动滑轮时是否改变数值。

\n', + 'zh-CN': '

通过设置:mouse-wheel属性控制鼠标滚动滑轮时是否改变数值。

\n', 'en-US': - '

You can use the mouseWheel attribute to control whether the scroll wheel can change the value.

\n' + '

You can use the :mouseWheel attribute to control whether the scroll wheel can change the value.

\n' }, 'codeFiles': ['mouse-wheel.vue'] }, @@ -96,9 +97,9 @@ export default { 'demoId': 'unit', 'name': { 'zh-CN': '单位', 'en-US': 'Unit' }, 'desc': { - 'zh-CN': '

通过 unit 属性设置计数器的单位,设置单位后,加减按钮将不可用。

\n', + 'zh-CN': '

通过设置:unit属性为计数器的单位,设置单位后,加减按钮将不可用。

\n', 'en-US': - '

Set the unit of the counter by using the "unit" property. After setting the unit, the increase and decrease buttons will be disabled.

\n' + '

Set the unit of the counter by using the :unitproperty. After setting the unit, the increase and decrease buttons will be disabled.

\n' }, 'codeFiles': ['unit.vue'] }, @@ -106,8 +107,8 @@ export default { 'demoId': 'change-event', 'name': { 'zh-CN': '值改变事件', 'en-US': 'Value change event' }, 'desc': { - 'zh-CN': '

通过 change 监听数值改变事件。

\n', - 'en-US': 'The change event is triggered when the value of the text box is changed.

\n' + 'zh-CN': '

通过设置@change监听数值改变事件。

\n', + 'en-US': 'The @change event is triggered when the value of the text box is changed.

\n' }, 'codeFiles': ['change-event.vue'] }, @@ -115,8 +116,8 @@ export default { 'demoId': 'focus-event', 'name': { 'zh-CN': '聚焦事件', 'en-US': 'Focus Event' }, 'desc': { - 'zh-CN': '

通过 focus 监听输入框获得焦点事件。

\n', - 'en-US': 'The focus event is triggered when the text box is focused.

\n' + 'zh-CN': '

通过设置@focus监听输入框获得焦点事件。

\n', + 'en-US': 'The @focus event is triggered when the text box is focused.

\n' }, 'codeFiles': ['focus-event.vue'] }, @@ -124,8 +125,8 @@ export default { 'demoId': 'blur-event', 'name': { 'zh-CN': '失焦事件', 'en-US': 'Out of Focus Event' }, 'desc': { - 'zh-CN': '

通过 blur 监听输入框失去焦点事件。

\n', - 'en-US': '

The blur event is triggered when the text box loses focus.

\n' + 'zh-CN': '

通过设置@blur监听输入框失去焦点事件。

\n', + 'en-US': '

The@blurevent is triggered when the text box loses focus.

\n' }, 'codeFiles': ['blur-event.vue'] } @@ -134,14 +135,14 @@ export default { { 'name': 'numeric', 'type': 'component', - 'properties': [ + 'props': [ { 'name': 'allow-empty', 'type': 'boolean', 'defaultValue': 'false', 'desc': { 'zh-CN': '内容可清空', - 'en-US': 'The counter can be cleared.' + 'en-US': 'The counter can be cleared' }, 'demoId': 'allow-empty' }, @@ -151,7 +152,7 @@ export default { 'defaultValue': 'false', 'desc': { 'zh-CN': '向上到达最大值后,是否从最小值开始,或反过来', - 'en-US': 'When the maximum value is reached, start from the minimum value, or vice versa.' + 'en-US': 'When the maximum value is reached, start from the minimum value, or vice versa' }, 'demoId': 'max-min' }, @@ -235,7 +236,7 @@ export default { 'defaultValue': 'true', 'desc': { 'zh-CN': '鼠标滚动滑轮是否改变数值', - 'en-US': 'Whether to change the value of the scroll wheel.' + 'en-US': 'Whether to change the value of the scroll wheel' }, 'demoId': 'mouse-wheel' }, @@ -304,7 +305,7 @@ export default { 'type': 'string', 'defaultValue': '', 'desc': { - 'zh-CN': '数值的单位。在设置单位时,加减按钮将不可用。', + 'zh-CN': '数值的单位。在设置单位时,加减按钮将不可用', 'en-US': 'Unit of measurement. When setting the unit, the increase and decrease buttons will be disabled' }, 'demoId': 'unit' @@ -314,8 +315,8 @@ export default { 'type': 'number', 'defaultValue': '0', 'desc': { - 'zh-CN': '设置输入组件的默认值,默认为 0。', - 'en-US': 'Set the default value of the input component. The default value is 0.' + 'zh-CN': '设置输入组件的默认值,默认为 0', + 'en-US': 'Set the default value of the input component. The default value is 0' }, 'demoId': 'basic-usage' } diff --git a/examples/sites/demos/pc/app/tree-menu/webdoc/tree-menu.js b/examples/sites/demos/pc/app/tree-menu/webdoc/tree-menu.js index a282bac52..d27056370 100644 --- a/examples/sites/demos/pc/app/tree-menu/webdoc/tree-menu.js +++ b/examples/sites/demos/pc/app/tree-menu/webdoc/tree-menu.js @@ -6,8 +6,8 @@ export default { 'demoId': 'basic-usage', 'name': { 'zh-CN': '基本用法', 'en-US': 'Basic Usage' }, 'desc': { - 'zh-CN': '

不配置数据源时,默认从框架服务读取数据。

\n', - 'en-US': '

If no data is configured, data is read from the framework service by default.

\n' + 'zh-CN': '

通过引用组件标签即可,默认从框架服务读取数据 。

\n', + 'en-US': '

By referencing component labels, data is read from the framework service by default.

\n' }, 'codeFiles': ['basic-usage.vue'] },