diff --git a/docs/examples-docs/cell.md b/docs/examples-docs/cell.md index 7256d2327..a2fc16453 100644 --- a/docs/examples-docs/cell.md +++ b/docs/examples-docs/cell.md @@ -69,18 +69,6 @@ export default { ``` ::: -#### 带*号,标明必填 - -传入`required`属性 - -:::demo 带*号,标明必填 -```html - - - -``` -::: - #### 标题带描述信息 传入`label`属性,属性值为描述信息的值。 diff --git a/docs/examples-docs/toast.md b/docs/examples-docs/toast.md index 731b57245..9cc8d7b65 100644 --- a/docs/examples-docs/toast.md +++ b/docs/examples-docs/toast.md @@ -38,9 +38,9 @@ export default { type: 'success', message: leftSec.toString() }); - window.setInterval(() => { + const id = window.setInterval(() => { if (leftSec <= 1) { - window.clearInterval(); + window.clearInterval(id); toast.message = '跳转中...' return; } @@ -106,9 +106,9 @@ export default { type: 'success', message: leftSec.toString() }); - window.setInterval(() => { + const id = window.setInterval(() => { if (leftSec <= 1) { - window.clearInterval(); + window.clearInterval(id); toast.message = '跳转中...' return; } @@ -134,10 +134,10 @@ import { Toast } from 'src/index'; export default { methods: { showToast() { - this.toast = Toast('我是提示文案,建议不超过十五字~'); + Toast('我是提示文案,建议不超过十五字~'); }, closeToast() { - this.toast.clear(); + Toast.clear(); } } }; @@ -212,5 +212,5 @@ export default { | forbidClick | 不允许背景点击 | Boolean | false | true, false| | duration | 时长(ms) | Number | 3000ms | -| -### instanceOfToast.clear() +### Toast.clear() 关闭toast。 diff --git a/packages/cell/src/cell.vue b/packages/cell/src/cell.vue index 26362c5c9..edc8a998c 100644 --- a/packages/cell/src/cell.vue +++ b/packages/cell/src/cell.vue @@ -1,7 +1,7 @@