From a479f14b63c50dac4029f586fbf563511ad33822 Mon Sep 17 00:00:00 2001 From: xuqingkai Date: Thu, 17 Aug 2023 10:52:30 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E2=9C=8F=EF=B8=8F=20=20=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/component/datetimePickerView.md | 18 +++++++++--------- docs/component/noticeBar.md | 2 +- docs/component/rate.md | 8 ++++---- docs/component/switch.md | 4 ++-- docs/component/tag.md | 6 +++--- docs/component/toast.md | 2 +- docs/component/tooltip.md | 8 ++++---- docs/component/transition.md | 12 ++++++------ 8 files changed, 30 insertions(+), 30 deletions(-) diff --git a/docs/component/datetimePickerView.md b/docs/component/datetimePickerView.md index 19bebe76..e47d3ff2 100644 --- a/docs/component/datetimePickerView.md +++ b/docs/component/datetimePickerView.md @@ -5,12 +5,12 @@ ## 基本用法 -`v-model` 设置绑定值,默认为 'datetime' 类型,展示年月日时分,绑定值为 `时间戳` 类型,如果为 'time' 类型,绑定值为字符串。 +`v-model` 设置绑定值,默认为 `datetime` 类型,展示年月日时分,绑定值为 `时间戳` 类型,如果为 `time` 类型,绑定值为字符串。 ```html - + ``` ```typescript import { useToast } from '@/uni_modules/wot-design-uni' @@ -24,7 +24,7 @@ function onChange1({ value }) { ## date 类型 -'date' 类型只展示年月日。 +`date` 类型只展示年月日。 ```html @@ -34,7 +34,7 @@ const value = ref(Date.now()) ``` ## year-month 类型 -'year-month' 类型只展示年月。 +`year-month` 类型只展示年月。 ```html @@ -45,13 +45,13 @@ const value = ref(Date.now()) ## time 类型 -'time' 类型只展示时分。 +`time` 类型只展示时分。 ```html ``` ```typescript -const value = ref(Date.now()) +const value4 = ref('11:12') ``` ## 修改内部格式 @@ -126,6 +126,6 @@ const filter = (type, values) => { | 事件名称 | 说明 | 参数 | 最低版本 | |--------|------|-----|---------| -| bind:change | 切换选项时触发 | 选中的值 `{ value }`,value 为当前选中日期的时间戳,'time' 类型则为字符串 | - | -| bind:pickstart | 当滚动选择开始时候触发事件 | - | - | - | -| bind:pickend | 当滚动选择结束时候触发事件 | - | - | - | +| change | 切换选项时触发 | 选中的值 `{ value }`,value 为当前选中日期的时间戳,'time' 类型则为字符串 | - | +| pickstart | 当滚动选择开始时候触发事件 | - | - | - | +| pickend | 当滚动选择结束时候触发事件 | - | - | - | diff --git a/docs/component/noticeBar.md b/docs/component/noticeBar.md index f8b7618b..02694247 100644 --- a/docs/component/noticeBar.md +++ b/docs/component/noticeBar.md @@ -98,7 +98,7 @@ | 事件名称 | 说明 | 参数 | 最低版本 | | ---------- | -------------- | ---- | -------- | -| bind:close | 关闭按钮点击时 | - | - | +| close | 关闭按钮点击时 | - | - | ## Slot diff --git a/docs/component/rate.md b/docs/component/rate.md index 62df41a3..c0932241 100644 --- a/docs/component/rate.md +++ b/docs/component/rate.md @@ -5,10 +5,10 @@ ## 基本用法 -设置`value`分数,设置`num`总分数,默认为5分,监听 `change` 事件获取新值。 +设置`v-model`分数,设置`num`总分数,默认为5分,监听 `change` 事件获取新值。 ```html - + ``` ```typescript @@ -33,7 +33,7 @@ function changeValue({ value }) { 设置 `disabled` 属性和`disabled-color` ```html - + ``` ## 修改颜色 @@ -82,7 +82,7 @@ function changeValue({ value }) { | 事件名称 | 说明 | 参数 | 最低版本 | |---------|-----|-----|---------| -| bind:change | 点击icon,修改分值事件 | `{ value }` | - | +| change | 点击icon,修改分值事件 | `{ value }` | - | ## 外部样式类 diff --git a/docs/component/switch.md b/docs/component/switch.md index e0991c4e..7b6ecf19 100644 --- a/docs/component/switch.md +++ b/docs/component/switch.md @@ -48,7 +48,7 @@ const checked = ref(true) 设置 `before-change` 属性,修改前钩子,接收 { value, resolve } 参数,`resolve(true)` 表示修改通过,`resolve(false)` 表示不修改。 ```html - + ``` ```typescript @@ -86,7 +86,7 @@ const beforeChange = ({ value, resolve }) => { | 事件名称 | 说明 | 参数 | 最低版本 | |--------|------|-----|---------| -| bind:change | 值修改事件 | `{ value }` | - | +| change | 值修改事件 | `{ value }` | - | ## 外部样式类 diff --git a/docs/component/tag.md b/docs/component/tag.md index bb265e4f..6433e8de 100644 --- a/docs/component/tag.md +++ b/docs/component/tag.md @@ -168,9 +168,9 @@ function handleClose(order) { | 事件名称 | 说明 | 参数 | 最低版本 | | ------------ | -------------------------- | ----------- | -------- | -| bind:click | 标签点击时触发 | event | - | -| bind:close | 点击关闭按钮时触发 | event | - | -| bind:confirm | 新增标签输入内容确定后触发 | `{ value }` | - | +| click | 标签点击时触发 | event | - | +| close | 点击关闭按钮时触发 | event | - | +| confirm | 新增标签输入内容确定后触发 | `{ value }` | - | ## Slots diff --git a/docs/component/toast.md b/docs/component/toast.md index df1067ea..b8fac3e1 100644 --- a/docs/component/toast.md +++ b/docs/component/toast.md @@ -8,7 +8,7 @@ ```html -toast +toast ``` ```typescript diff --git a/docs/component/tooltip.md b/docs/component/tooltip.md index 5b8a561e..74517d22 100644 --- a/docs/component/tooltip.md +++ b/docs/component/tooltip.md @@ -28,7 +28,7 @@ ```html - + top @@ -136,9 +136,9 @@ Tooltip 组件通过属性`show-close` 控制是否显示关闭按钮。 | 事件名称 | 说明 | 回调参数 | 最低版本 | | ----------- | ---------------- | -------- | -------- | -| bind:open | 显示时触发 | - | - | -| bind:close | 隐藏时触发 | - | - | -| bind:change | 显隐值变化时触发 | - | - | +| open | 显示时触发 | - | - | +| close | 隐藏时触发 | - | - | +| change | 显隐值变化时触发 | - | - | ## Methods diff --git a/docs/component/transition.md b/docs/component/transition.md index ebfa8b95..54dcf3f0 100644 --- a/docs/component/transition.md +++ b/docs/component/transition.md @@ -85,12 +85,12 @@ | 事件名称 | 说明 | 参数 | 最低版本 | | ---------------- | ---------- | ---- | -------- | -| bind:beforeenter | 进入前触发 | - | - | -| bind:enter | 进入时触发 | - | - | -| bind:afterenter | 进入后触发 | - | - | -| bind:beforeleave | 离开前触发 | - | - | -| bind:leave | 离开时触发 | - | - | -| bind:afterleave | 离开后触发 | - | - | +| beforeenter | 进入前触发 | - | - | +| enter | 进入时触发 | - | - | +| afterenter | 进入后触发 | - | - | +| beforeleave | 离开前触发 | - | - | +| leave | 离开时触发 | - | - | +| afterleave | 离开后触发 | - | - | ## 外部样式类