forked from opentiny/tiny-vue
docs(fix):Update dialog-box docs (#1173)
* doc(fix):[carousel,color-picker,color-select-panel,config-provider,crop,dialog-box] Update doc text * docs(fix):Update dialog-box docs
This commit is contained in:
parent
5c40c29b81
commit
96668cc443
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<tiny-button @click="boxVisibility = true" :title="'弹出Dialog' + boxVisibility">弹出Dialog</tiny-button>
|
<tiny-button @click="boxVisibility = true" :title="'弹出 Dialog' + boxVisibility">弹出 Dialog</tiny-button>
|
||||||
<tiny-dialog-box v-model:visible="boxVisibility" title="消息" width="30%">
|
<tiny-dialog-box v-model:visible="boxVisibility" title="消息" width="30%">
|
||||||
<span>dialog-box内容</span>
|
<span>dialog-box内容</span>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<tiny-button @click="boxVisibility = true" :title="'弹出Dialog' + boxVisibility">弹出Dialog</tiny-button>
|
<tiny-button @click="boxVisibility = true" :title="'弹出 Dialog' + boxVisibility">弹出 Dialog</tiny-button>
|
||||||
<tiny-dialog-box v-model:visible="boxVisibility" title="消息" width="30%">
|
<tiny-dialog-box v-model:visible="boxVisibility" title="消息" width="30%">
|
||||||
<span>dialog-box内容</span>
|
<span>dialog-box内容</span>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<tiny-button @click="boxVisibility = true" :title="'弹出Dialog' + boxVisibility"
|
<tiny-button @click="boxVisibility = true" :title="'弹出 Dialog' + boxVisibility"
|
||||||
>弹出Dialog{{ boxVisibility }}</tiny-button
|
>弹出 Dialog{{ boxVisibility }}</tiny-button
|
||||||
>
|
>
|
||||||
<tiny-dialog-box v-model:visible="boxVisibility" center title="消息" width="30%">
|
<tiny-dialog-box v-model:visible="boxVisibility" center title="消息" width="30%">
|
||||||
<span>dialog-box内容</span>
|
<span>dialog-box内容</span>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<tiny-button @click="boxVisibility = true" :title="'弹出Dialog' + boxVisibility"
|
<tiny-button @click="boxVisibility = true" :title="'弹出 Dialog' + boxVisibility"
|
||||||
>弹出Dialog{{ boxVisibility }}</tiny-button
|
>弹出 Dialog{{ boxVisibility }}</tiny-button
|
||||||
>
|
>
|
||||||
<tiny-dialog-box v-model:visible="boxVisibility" center title="消息" width="30%">
|
<tiny-dialog-box v-model:visible="boxVisibility" center title="消息" width="30%">
|
||||||
<span>dialog-box内容</span>
|
<span>dialog-box内容</span>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<tiny-button @click="boxVisibility = true" :title="'弹出Dialog' + boxVisibility"
|
<tiny-button @click="boxVisibility = true" :title="'弹出 Dialog' + boxVisibility"
|
||||||
>弹出Dialog{{ boxVisibility }}</tiny-button
|
>弹出 Dialog{{ boxVisibility }}</tiny-button
|
||||||
>
|
>
|
||||||
<tiny-dialog-box v-model:visible="boxVisibility" :close-on-click-modal="false" title="消息" width="30%">
|
<tiny-dialog-box v-model:visible="boxVisibility" :close-on-click-modal="false" title="消息" width="30%">
|
||||||
<span>dialog-box内容</span>
|
<span>dialog-box内容</span>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<tiny-button @click="boxVisibility = true" :title="'弹出Dialog' + boxVisibility"
|
<tiny-button @click="boxVisibility = true" :title="'弹出 Dialog' + boxVisibility"
|
||||||
>弹出Dialog{{ boxVisibility }}</tiny-button
|
>弹出 Dialog{{ boxVisibility }}</tiny-button
|
||||||
>
|
>
|
||||||
<tiny-dialog-box v-model:visible="boxVisibility" :close-on-click-modal="false" title="消息" width="30%">
|
<tiny-dialog-box v-model:visible="boxVisibility" :close-on-click-modal="false" title="消息" width="30%">
|
||||||
<span>dialog-box内容</span>
|
<span>dialog-box内容</span>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<tiny-button @click="boxVisibility = true" :title="'弹出Dialog' + boxVisibility"
|
<tiny-button @click="boxVisibility = true" :title="'弹出 Dialog' + boxVisibility"
|
||||||
>弹出Dialog{{ boxVisibility }}</tiny-button
|
>弹出 Dialog{{ boxVisibility }}</tiny-button
|
||||||
>
|
>
|
||||||
<tiny-dialog-box :visible="boxVisibility" :close-on-press-escape="false" title="消息" width="30%" @close="close">
|
<tiny-dialog-box :visible="boxVisibility" :close-on-press-escape="false" title="消息" width="30%" @close="close">
|
||||||
<span>dialog-box内容</span>
|
<span>dialog-box内容</span>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<tiny-button @click="boxVisibility = true" :title="'弹出Dialog' + boxVisibility"
|
<tiny-button @click="boxVisibility = true" :title="'弹出 Dialog' + boxVisibility"
|
||||||
>弹出Dialog{{ boxVisibility }}</tiny-button
|
>弹出 Dialog{{ boxVisibility }}</tiny-button
|
||||||
>
|
>
|
||||||
<tiny-dialog-box :visible="boxVisibility" :close-on-press-escape="false" title="消息" width="30%" @close="close">
|
<tiny-dialog-box :visible="boxVisibility" :close-on-press-escape="false" title="消息" width="30%" @close="close">
|
||||||
<span>dialog-box内容</span>
|
<span>dialog-box内容</span>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<tiny-button @click="boxVisibility = true" :title="'弹出Dialog' + boxVisibility"
|
<tiny-button @click="boxVisibility = true" :title="'弹出 Dialog' + boxVisibility"
|
||||||
>弹出Dialog{{ boxVisibility }}</tiny-button
|
>弹出 Dialog{{ boxVisibility }}</tiny-button
|
||||||
>
|
>
|
||||||
<tiny-dialog-box v-model:visible="boxVisibility" title="消息" width="30%">
|
<tiny-dialog-box v-model:visible="boxVisibility" title="消息" width="30%">
|
||||||
<tiny-alert description="内容是Alert组件"></tiny-alert>
|
<tiny-alert description="内容是Alert组件"></tiny-alert>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<tiny-button @click="boxVisibility = true" :title="'弹出Dialog' + boxVisibility"
|
<tiny-button @click="boxVisibility = true" :title="'弹出 Dialog' + boxVisibility"
|
||||||
>弹出Dialog{{ boxVisibility }}</tiny-button
|
>弹出 Dialog{{ boxVisibility }}</tiny-button
|
||||||
>
|
>
|
||||||
<tiny-dialog-box v-model:visible="boxVisibility" title="消息" width="30%">
|
<tiny-dialog-box v-model:visible="boxVisibility" title="消息" width="30%">
|
||||||
<tiny-alert description="内容是Alert组件"></tiny-alert>
|
<tiny-alert description="内容是Alert组件"></tiny-alert>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<tiny-button @click="boxVisibility = true" :title="'弹出Dialog' + boxVisibility"
|
<tiny-button @click="boxVisibility = true" :title="'弹出 Dialog' + boxVisibility"
|
||||||
>弹出Dialog{{ boxVisibility }}</tiny-button
|
>弹出 Dialog{{ boxVisibility }}</tiny-button
|
||||||
>
|
>
|
||||||
<tiny-dialog-box v-model:visible="boxVisibility" title="消息" width="30%">
|
<tiny-dialog-box v-model:visible="boxVisibility" title="消息" width="30%">
|
||||||
<span>dialog-box内容</span>
|
<span>dialog-box内容</span>
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<tiny-button @click="boxVisibility = true" :title="'弹出Dialog' + boxVisibility"
|
<tiny-button @click="boxVisibility = true" :title="'弹出 Dialog' + boxVisibility"
|
||||||
>弹出Dialog{{ boxVisibility }}</tiny-button
|
>弹出 Dialog{{ boxVisibility }}</tiny-button
|
||||||
>
|
>
|
||||||
<tiny-dialog-box v-model:visible="boxVisibility" title="消息" width="30%">
|
<tiny-dialog-box v-model:visible="boxVisibility" title="消息" width="30%">
|
||||||
<span>dialog-box内容</span>
|
<span>dialog-box 内容</span>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<div style="width: 100%; height: 100%; background: #dddddd">自定义footer区域</div>
|
<div style="width: 100%; height: 100%; background: #dddddd">自定义 footer 区域</div>
|
||||||
</template>
|
</template>
|
||||||
</tiny-dialog-box>
|
</tiny-dialog-box>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<tiny-button @click="boxVisibility = true" :title="'弹出Dialog' + boxVisibility"
|
<tiny-button @click="boxVisibility = true" :title="'弹出 Dialog' + boxVisibility"
|
||||||
>弹出Dialog{{ boxVisibility }}</tiny-button
|
>弹出 Dialog{{ boxVisibility }}</tiny-button
|
||||||
>
|
>
|
||||||
<tiny-dialog-box v-model:visible="boxVisibility" width="30%">
|
<tiny-dialog-box v-model:visible="boxVisibility" width="30%">
|
||||||
<template #title>
|
<template #title>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<tiny-button @click="boxVisibility = true" :title="'弹出Dialog' + boxVisibility"
|
<tiny-button @click="boxVisibility = true" :title="'弹出 Dialog' + boxVisibility"
|
||||||
>弹出Dialog{{ boxVisibility }}</tiny-button
|
>弹出 Dialog{{ boxVisibility }}</tiny-button
|
||||||
>
|
>
|
||||||
<tiny-dialog-box v-model:visible="boxVisibility" width="30%">
|
<tiny-dialog-box v-model:visible="boxVisibility" width="30%">
|
||||||
<template #title>
|
<template #title>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<tiny-button @click="boxVisibility1 = true">显示在顶部</tiny-button>
|
<tiny-button @click="boxVisibility1 = true" type="info">显示在顶部</tiny-button>
|
||||||
<tiny-button @click="boxVisibility2 = true">距离顶部300px</tiny-button>
|
<tiny-button @click="boxVisibility2 = true">距离顶部 300px</tiny-button>
|
||||||
<tiny-dialog-box top="0" v-model:visible="boxVisibility1" title="消息" width="30%">
|
<tiny-dialog-box top="0" v-model:visible="boxVisibility1" title="消息" width="30%">
|
||||||
<span>dialog-box内容</span>
|
<span>dialog-box内容</span>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<tiny-button @click="boxVisibility1 = true">显示在顶部</tiny-button>
|
<tiny-button @click="boxVisibility1 = true" type="info">显示在顶部</tiny-button>
|
||||||
<tiny-button @click="boxVisibility2 = true">距离顶部300px</tiny-button>
|
<tiny-button @click="boxVisibility2 = true">距离顶部 300px</tiny-button>
|
||||||
<tiny-dialog-box top="0" v-model:visible="boxVisibility1" title="消息" width="30%">
|
<tiny-dialog-box top="0" v-model:visible="boxVisibility1" title="消息" width="30%">
|
||||||
<span>dialog-box内容</span>
|
<span>dialog-box内容</span>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<tiny-button @click="boxVisibility1 = true">宽度30%</tiny-button>
|
<tiny-button @click="boxVisibility1 = true" type="info">宽度 30%</tiny-button>
|
||||||
<tiny-button @click="boxVisibility2 = true">宽度60%</tiny-button>
|
<tiny-button @click="boxVisibility2 = true">宽度 60%</tiny-button>
|
||||||
<tiny-dialog-box v-model:visible="boxVisibility1" title="消息" width="30%" dialog-class="mydialogBox">
|
<tiny-dialog-box v-model:visible="boxVisibility1" title="消息" width="30%">
|
||||||
<span>dialog-box内容</span>
|
<span>dialog-box内容</span>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<tiny-button type="primary" @click="boxVisibility1 = false">确 定</tiny-button>
|
<tiny-button type="primary" @click="boxVisibility1 = false">确 定</tiny-button>
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<tiny-button @click="boxVisibility1 = true">宽度30%</tiny-button>
|
<tiny-button @click="boxVisibility1 = true" type="info">宽度 30%</tiny-button>
|
||||||
<tiny-button @click="boxVisibility2 = true">宽度60%</tiny-button>
|
<tiny-button @click="boxVisibility2 = true">宽度 60%</tiny-button>
|
||||||
<tiny-dialog-box v-model:visible="boxVisibility1" title="消息" width="30%" dialog-class="mydialogBox">
|
<tiny-dialog-box v-model:visible="boxVisibility1" title="消息" width="30%">
|
||||||
<span>dialog-box内容</span>
|
<span>dialog-box内容</span>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<tiny-button type="primary" @click="boxVisibility1 = false">确 定</tiny-button>
|
<tiny-button type="primary" @click="boxVisibility1 = false">确 定</tiny-button>
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<tiny-button @click="box1 = true">允许滚动背景</tiny-button>
|
<tiny-button @click="box1 = true" type="info">允许滚动背景</tiny-button>
|
||||||
|
<tiny-button @click="box2 = true">不允许滚动背景</tiny-button>
|
||||||
<tiny-dialog-box :lock-scroll="false" v-model:visible="box1" title="消息" width="30%">
|
<tiny-dialog-box :lock-scroll="false" v-model:visible="box1" title="消息" width="30%">
|
||||||
<span>不锁定被遮罩内容的滚动</span>
|
<span>不锁定被遮罩内容的滚动</span>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<tiny-button type="primary" @click="box1 = false">确 定</tiny-button>
|
<tiny-button type="primary" @click="box1 = false">确 定</tiny-button>
|
||||||
</template>
|
</template>
|
||||||
</tiny-dialog-box>
|
</tiny-dialog-box>
|
||||||
<tiny-button @click="box2 = true">不允许滚动背景</tiny-button>
|
|
||||||
<tiny-dialog-box :lock-scroll="true" v-model:visible="box2" title="消息" width="30%">
|
<tiny-dialog-box :lock-scroll="true" v-model:visible="box2" title="消息" width="30%">
|
||||||
<span>锁定被遮罩内容的滚动</span>
|
<span>锁定被遮罩内容的滚动</span>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<tiny-button @click="box1 = true">允许滚动背景</tiny-button>
|
<tiny-button @click="box1 = true" type="info">允许滚动背景</tiny-button>
|
||||||
|
<tiny-button @click="box2 = true">不允许滚动背景</tiny-button>
|
||||||
<tiny-dialog-box :lock-scroll="false" v-model:visible="box1" title="消息" width="30%">
|
<tiny-dialog-box :lock-scroll="false" v-model:visible="box1" title="消息" width="30%">
|
||||||
<span>不锁定被遮罩内容的滚动</span>
|
<span>不锁定被遮罩内容的滚动</span>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
|
@ -8,7 +9,6 @@
|
||||||
</template>
|
</template>
|
||||||
</tiny-dialog-box>
|
</tiny-dialog-box>
|
||||||
|
|
||||||
<tiny-button @click="box2 = true">不允许滚动背景</tiny-button>
|
|
||||||
<tiny-dialog-box :lock-scroll="true" v-model:visible="box2" title="消息" width="30%">
|
<tiny-dialog-box :lock-scroll="true" v-model:visible="box2" title="消息" width="30%">
|
||||||
<span>锁定被遮罩内容的滚动</span>
|
<span>锁定被遮罩内容的滚动</span>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
|
|
|
@ -175,17 +175,6 @@ export default {
|
||||||
},
|
},
|
||||||
'codeFiles': ['fullscreen.vue']
|
'codeFiles': ['fullscreen.vue']
|
||||||
},
|
},
|
||||||
{
|
|
||||||
'demoId': 'open-close-events',
|
|
||||||
'name': { 'zh-CN': '弹出与关闭事件', 'en-US': 'Pop-up and Close Event' },
|
|
||||||
'desc': {
|
|
||||||
'zh-CN':
|
|
||||||
'<p>通过设置事件<code>@open</code>:对话框打开时触发<code>@opened</code>:对话框打开动画结束时触发<code>@close</code>:对话框关闭时触发<code>@closed</code>:对话框关闭动画结束时触发。</p>\n',
|
|
||||||
'en-US':
|
|
||||||
'<p>By setting the event<code>@open</code>: triggered when the dialog box is opened<code>@opened</code>: triggered when the animation ends when the dialog box is opened<code>@close</code>: triggered when the dialog box is closed<code>@closed</code>: triggered when the animation ends when the dialog box is closed.</p>\n'
|
|
||||||
},
|
|
||||||
'codeFiles': ['open-close-events.vue']
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
'demoId': 'form-in-dialog',
|
'demoId': 'form-in-dialog',
|
||||||
'name': { 'zh-CN': '弹窗表单', 'en-US': 'Pop-up Window Form' },
|
'name': { 'zh-CN': '弹窗表单', 'en-US': 'Pop-up Window Form' },
|
||||||
|
@ -206,6 +195,17 @@ export default {
|
||||||
'<p>By setting the<code>:destroy-on-close</code>attribute to<code>true</code>, all elements in the<code>dialog box</code>dialog box are destroyed when the pop-up window is closed, with the default value being<code>false</code>.</p>'
|
'<p>By setting the<code>:destroy-on-close</code>attribute to<code>true</code>, all elements in the<code>dialog box</code>dialog box are destroyed when the pop-up window is closed, with the default value being<code>false</code>.</p>'
|
||||||
},
|
},
|
||||||
'codeFiles': ['destroy-on-close.vue']
|
'codeFiles': ['destroy-on-close.vue']
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'demoId': 'open-close-events',
|
||||||
|
'name': { 'zh-CN': '弹出与关闭事件', 'en-US': 'Pop-up and Close Event' },
|
||||||
|
'desc': {
|
||||||
|
'zh-CN':
|
||||||
|
'<p>通过设置事件<code>@open</code>:对话框打开时触发<code>@opened</code>:对话框打开动画结束时触发<code>@close</code>:对话框关闭时触发<code>@closed</code>:对话框关闭动画结束时触发。</p>\n',
|
||||||
|
'en-US':
|
||||||
|
'<p>By setting the event<code>@open</code>: triggered when the dialog box is opened<code>@opened</code>: triggered when the animation ends when the dialog box is opened<code>@close</code>: triggered when the dialog box is closed<code>@closed</code>: triggered when the animation ends when the dialog box is closed.</p>\n'
|
||||||
|
},
|
||||||
|
'codeFiles': ['open-close-events.vue']
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
apis: [
|
apis: [
|
||||||
|
@ -258,7 +258,7 @@ export default {
|
||||||
'type': 'boolean',
|
'type': 'boolean',
|
||||||
'defaultValue': 'false',
|
'defaultValue': 'false',
|
||||||
'desc': {
|
'desc': {
|
||||||
'zh-CN': '是否开启弹窗的拖拽功能,默认值为 false',
|
'zh-CN': '是否开启弹窗的拖拽功能',
|
||||||
'en-US': 'Whether to enable the drag and drop function of pop ups, with a default value of false'
|
'en-US': 'Whether to enable the drag and drop function of pop ups, with a default value of false'
|
||||||
},
|
},
|
||||||
'demoId': 'draggable'
|
'demoId': 'draggable'
|
||||||
|
@ -327,7 +327,7 @@ export default {
|
||||||
'type': 'boolean',
|
'type': 'boolean',
|
||||||
'defaultValue': 'false',
|
'defaultValue': 'false',
|
||||||
'desc': {
|
'desc': {
|
||||||
'zh-CN': '是否开启弹出右侧滑出功能,默认值为 false 。',
|
'zh-CN': '是否开启弹出右侧滑出功能',
|
||||||
'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'
|
'demoId': 'right-dialog'
|
||||||
|
@ -337,7 +337,7 @@ export default {
|
||||||
'type': 'boolean',
|
'type': 'boolean',
|
||||||
'defaultValue': 'true',
|
'defaultValue': 'true',
|
||||||
'desc': {
|
'desc': {
|
||||||
'zh-CN': 'Dialog弹出时是否禁用滚动条',
|
'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'
|
'demoId': 'lock-scroll'
|
||||||
|
@ -346,7 +346,7 @@ export default {
|
||||||
'name': 'show-header',
|
'name': 'show-header',
|
||||||
'type': 'boolean',
|
'type': 'boolean',
|
||||||
'defaultValue': 'true',
|
'defaultValue': 'true',
|
||||||
'desc': { 'zh-CN': '是否显示弹窗头部 header,默认值为 true 。', 'en-US': 'Pop-up dialog box title' },
|
'desc': { 'zh-CN': '是否显示弹窗头部 header', 'en-US': 'Pop-up dialog box title' },
|
||||||
'demoId': 'hidden-header'
|
'demoId': 'hidden-header'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -354,7 +354,7 @@ export default {
|
||||||
'type': 'string',
|
'type': 'string',
|
||||||
'defaultValue': '',
|
'defaultValue': '',
|
||||||
'desc': {
|
'desc': {
|
||||||
'zh-CN': '弹出框标题。',
|
'zh-CN': '弹出框标题',
|
||||||
'en-US':
|
'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'
|
||||||
},
|
},
|
||||||
|
@ -365,7 +365,7 @@ export default {
|
||||||
'type': 'string',
|
'type': 'string',
|
||||||
'defaultValue': '15vh',
|
'defaultValue': '15vh',
|
||||||
'desc': {
|
'desc': {
|
||||||
'zh-CN': '设置弹出框距离窗口顶部的高度,默认为屏高的 15%',
|
'zh-CN': '设置弹出框距离窗口顶部的高度',
|
||||||
'en-US': 'Display and close pop-up boxes'
|
'en-US': 'Display and close pop-up boxes'
|
||||||
},
|
},
|
||||||
'demoId': 'dialog-top-height'
|
'demoId': 'dialog-top-height'
|
||||||
|
@ -374,7 +374,7 @@ export default {
|
||||||
'name': 'width',
|
'name': 'width',
|
||||||
'type': 'string',
|
'type': 'string',
|
||||||
'defaultValue': '500px',
|
'defaultValue': '500px',
|
||||||
'desc': { 'zh-CN': '弹出框的宽度。', 'en-US': 'Wideness of the dialog box that is displayed' },
|
'desc': { 'zh-CN': '弹出框的宽度', 'en-US': 'Wideness of the dialog box that is displayed' },
|
||||||
'demoId': 'dialog-width'
|
'demoId': 'dialog-width'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -395,70 +395,70 @@ export default {
|
||||||
'events': [
|
'events': [
|
||||||
{
|
{
|
||||||
'name': 'close',
|
'name': 'close',
|
||||||
'type': 'Function()',
|
'type': '() => {}',
|
||||||
'defaultValue': '',
|
'defaultValue': '',
|
||||||
'desc': {
|
'desc': {
|
||||||
'zh-CN': 'Dialog 关闭的回调;Dialog 关闭的回调;无arguments',
|
'zh-CN': 'Dialog 关闭的回调',
|
||||||
'en-US': 'Dialog disabled callback; Dialog closing callback; No arguments'
|
'en-US': 'Dialog disabled callback; Dialog closing callback; No arguments'
|
||||||
},
|
},
|
||||||
'demoId': 'open-close-events'
|
'demoId': 'open-close-events'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'name': 'open',
|
'name': 'open',
|
||||||
'type': 'Function()',
|
'type': '() => {}',
|
||||||
'defaultValue': '',
|
'defaultValue': '',
|
||||||
'desc': {
|
'desc': {
|
||||||
'zh-CN': 'Dialog 打开的回调;Dialog 打开的回调;无arguments',
|
'zh-CN': 'Dialog 打开的回调',
|
||||||
'en-US': 'Dialog open callback; Dialog open callback; No arguments'
|
'en-US': 'Dialog open callback; Dialog open callback; No arguments'
|
||||||
},
|
},
|
||||||
'demoId': 'open-close-events'
|
'demoId': 'open-close-events'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'name': 'opened',
|
'name': 'opened',
|
||||||
'type': 'Function()',
|
'type': '() => {}',
|
||||||
'defaultValue': '',
|
'defaultValue': '',
|
||||||
'desc': {
|
'desc': {
|
||||||
'zh-CN': 'Dialog 打开动画结束时的回调;无arguments',
|
'zh-CN': 'Dialog 打开动画结束时的回调',
|
||||||
'en-US': 'Dialog: callback when the animation ends; No arguments'
|
'en-US': 'Dialog: callback when the animation ends; No arguments'
|
||||||
},
|
},
|
||||||
'demoId': 'open-close-events'
|
'demoId': 'open-close-events'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'name': 'closed',
|
'name': 'closed',
|
||||||
'type': 'Function()',
|
'type': '() => {}',
|
||||||
'defaultValue': '',
|
'defaultValue': '',
|
||||||
'desc': {
|
'desc': {
|
||||||
'zh-CN': 'Dialog 关闭动画结束时的回调;无arguments',
|
'zh-CN': 'Dialog 关闭动画结束时的回调',
|
||||||
'en-US': 'Dialog closes the callback when the animation ends. No arguments'
|
'en-US': 'Dialog closes the callback when the animation ends. No arguments'
|
||||||
},
|
},
|
||||||
'demoId': 'open-close-events'
|
'demoId': 'open-close-events'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'name': 'drag-start',
|
'name': 'drag-start',
|
||||||
'type': 'Function(arg)',
|
'type': '(arg) => {}',
|
||||||
'defaultValue': '',
|
'defaultValue': '',
|
||||||
'desc': {
|
'desc': {
|
||||||
'zh-CN': 'Dialog 拖拽开始事件;arg:event(包含弹窗的位置等信息)',
|
'zh-CN': 'Dialog 拖拽开始事件;arg包含弹窗的位置等信息',
|
||||||
'en-US': 'Dialog drag start event; arg:event (including the location of the pop-up window)'
|
'en-US': 'Dialog drag start event; arg:event (including the location of the pop-up window)'
|
||||||
},
|
},
|
||||||
'demoId': 'draggable'
|
'demoId': 'draggable'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'name': 'drag-move',
|
'name': 'drag-move',
|
||||||
'type': 'Function(arg)',
|
'type': '(arg) => {}',
|
||||||
'defaultValue': '',
|
'defaultValue': '',
|
||||||
'desc': {
|
'desc': {
|
||||||
'zh-CN': 'Dialog 拖拽移动事件;arg:event(包含弹窗的位置等信息)',
|
'zh-CN': 'Dialog 拖拽移动事件;arg包含弹窗的位置等信息',
|
||||||
'en-US': 'Dialog dragging and moving event; arg:event (including the location of the pop-up window)'
|
'en-US': 'Dialog dragging and moving event; arg:event (including the location of the pop-up window)'
|
||||||
},
|
},
|
||||||
'demoId': 'draggable'
|
'demoId': 'draggable'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'name': 'drag-end',
|
'name': 'drag-end',
|
||||||
'type': 'Function(arg)',
|
'type': '(arg) => {}',
|
||||||
'defaultValue': '',
|
'defaultValue': '',
|
||||||
'desc': {
|
'desc': {
|
||||||
'zh-CN': 'Dialog 拖拽结束事件;arg:event(包含弹窗的位置等信息)',
|
'zh-CN': 'Dialog 拖拽结束事件;arg包含弹窗的位置等信息',
|
||||||
'en-US': 'Dialog drag end event; arg:event (including the location of the pop-up window)'
|
'en-US': 'Dialog drag end event; arg:event (including the location of the pop-up window)'
|
||||||
},
|
},
|
||||||
'demoId': 'draggable'
|
'demoId': 'draggable'
|
||||||
|
|
Loading…
Reference in New Issue