From 6a0858d3f87c1765006a002237f38211d2c949ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=A4=A9=E4=BD=91?= <66231260+You-Hw-Y@users.noreply.github.com> Date: Mon, 15 Jan 2024 00:47:12 -0800 Subject: [PATCH] docs(time-picker): [time-picker] optimize docs and demos (#1273) * fix(switch): [switch] amend demo and api bug of switch * feat(switch): [switch] amend demo and API bug of switch * feat(switch): [switch] amend demo and API bug of switch * docs(time-picker): [time-picker] optimize docs and demos * docs(time-picker): [time-picker] optimize docs and demos --- examples/sites/demos/pc/app/time-picker/event.vue | 6 +++--- .../demos/pc/app/time-picker/webdoc/time-picker.js | 11 +++++------ packages/renderless/src/picker/index.ts | 8 +++++--- packages/theme/src/index.less | 2 +- 4 files changed, 14 insertions(+), 13 deletions(-) diff --git a/examples/sites/demos/pc/app/time-picker/event.vue b/examples/sites/demos/pc/app/time-picker/event.vue index 6684f6e98..76b1d5910 100644 --- a/examples/sites/demos/pc/app/time-picker/event.vue +++ b/examples/sites/demos/pc/app/time-picker/event.vue @@ -29,13 +29,13 @@ export default { this.$refs.timePickerRef.$el.querySelector('input').focus() }, blur() { - Modal.message('blur事件') + Modal.message({ message: 'blur事件', status: 'info' }) }, change() { - Modal.message('change事件') + Modal.message({ message: 'change事件', status: 'info' }) }, focus() { - Modal.message('focus事件') + Modal.message({ message: 'focus事件', status: 'info' }) } } } diff --git a/examples/sites/demos/pc/app/time-picker/webdoc/time-picker.js b/examples/sites/demos/pc/app/time-picker/webdoc/time-picker.js index c092fdf5a..e0c47d68a 100644 --- a/examples/sites/demos/pc/app/time-picker/webdoc/time-picker.js +++ b/examples/sites/demos/pc/app/time-picker/webdoc/time-picker.js @@ -59,7 +59,7 @@ export default { 'name': { 'zh-CN': '步长', 'en-US': 'Step' }, 'desc': { 'zh-CN': - '
通过 step
设置步长,默认值为 { hour: 1, minute: 1, second: 1 }
,其中 hour
的设置范围是 0-23
,minute
、second
的设置范围是 0-60
。可单独设置其中的一项或多项值,未设置的默认值为 1
。
通过 step
设置步长,默认值为 { hour: 1, minute: 1, second: 1 }
,其中 hour
的设置范围是 0-23
,minute
、second
的设置范围是 0-59
。可单独设置其中的一项或多项值,未设置的默认值为 1
。
Set the step size through step
. The default value is {hour: 1, minute: 1, second: 1}
, where the setting range of hour
is 0-23
, minute
, second
is 0-60
. One or more of these values can be set separately, and the unset default value is 1
.