diff --git a/packages/devui-vue/docs/components/ripple/index.md b/packages/devui-vue/docs/components/ripple/index.md index 3212227f78..3bd30f57eb 100644 --- a/packages/devui-vue/docs/components/ripple/index.md +++ b/packages/devui-vue/docs/components/ripple/index.md @@ -1,219 +1,210 @@ -# Ripple 水波纹指令 - -`v-ripple` 指令 用于用户动作交互场景, 可以应用于任何块级元素 `注:只能作用于块级元素` - -### 使用 - -:::demo 用户 可以在组件 或者 HTML 元素上任意使用 `v-ripple` 指令 使用基本的 `v-ripple` 指令, `v-ripple` 接收 一个对象 - -```vue - - -``` - -::: - -### 自定义色彩 - -### 通过修改文本颜色来动态改变 - -:::demo - -```vue - -``` - -::: - - -### 应用于其他组件 - -Button 组件 - -:::demo - -```vue - -``` - -::: - -Card 组件 - -:::demo -```vue - - -``` - -::: - - - -### API - -| 参数 | 类型 | 默认 | 说明 | -| :-------------: | :-------: | :---------: | :-------------------------------- | -| color | `string` | `#00000050` | 可选,默认当前文本颜色 | -| initial-opacity | `number` | `0.1` | 可选,初始交互效果透明度大小 | -| final-opacity | `number` | `0.1` | 可选,结束交互效果长按透明度大小 | -| duration | `number` | `0.4s` | 可选,持续时间 | -| easing | `string` | `ease-out` | 可选,缓动动画 | -| delay-time | `number` | `75ms` | 可选,延迟 debouceTime 时间后调用 | -| disabled | `boolean` | `false` | 可选,禁止水波效果 | +# Ripple 水波纹指令 + +`v-ripple` 指令 用于用户动作交互场景, 可以应用于任何块级元素 `注:只能作用于块级元素` + +### 使用 + +:::demo 用户 可以在组件 或者 HTML 元素上任意使用 `v-ripple` 指令 使用基本的 `v-ripple` 指令, `v-ripple` 接收 一个对象 + +```vue + + +``` + +::: + +### 自定义色彩 + +### 通过修改文本颜色来动态改变 + +:::demo + +```vue + +``` + +::: + + +### 应用于其他组件 + +Button 组件 + +:::demo + +```vue + +``` + +::: + +Card 组件 + +:::demo +```vue + + +``` + +::: + + + +### API + +| 参数 | 类型 | 默认 | 说明 | +| :-------------: | :-------: | :---------: | :-------------------------------- | +| color | `string` | `#00000050` | 可选,默认当前文本颜色 | +| initial-opacity | `number` | `0.1` | 可选,初始交互效果透明度大小 | +| final-opacity | `number` | `0.1` | 可选,结束交互效果长按透明度大小 | +| duration | `number` | `0.4s` | 可选,持续时间 | +| easing | `string` | `ease-out` | 可选,缓动动画 | +| delay-time | `number` | `75ms` | 可选,延迟 debouceTime 时间后调用 | +| disabled | `boolean` | `false` | 可选,禁止水波效果 | diff --git a/packages/devui-vue/docs/en-US/components/ripple/index.md b/packages/devui-vue/docs/en-US/components/ripple/index.md index 193770a83f..dfae7982b3 100644 --- a/packages/devui-vue/docs/en-US/components/ripple/index.md +++ b/packages/devui-vue/docs/en-US/components/ripple/index.md @@ -1,221 +1,211 @@ -# RippleDirective - -`v-ripple`The v-ripple directive is used to show action from a user. It can be applied to any block level element.`tips: It can be applied to any block level element.` - -### When to Use - -:::demo User can be use Basic ripple functionality can be enabled just by using v-ripple directive on a component or an HTML element `v-ripple`Basic ripple functionality `v-ripple` Directive `v-ripple` Accept an object - -```vue - - -``` - -::: - -### Custom color - -### Change the ripple color dynamically by changing the text color or the ripple color - -:::demo - -```vue - -``` - -::: - - -### Ripple in components - -### Some components provide the ripple prop that allows you to control the ripple effect. - -Button Component - -:::demo - -```vue - -``` - -::: - -Card Component - -:::demo -```vue - - -``` - -::: - - - -### API - -| 参数 | 类型 | 默认 | 说明 | -| :-------------: | :-------: | :---------: | :---------------------------------------------------------------------------- | -| color | `string` | `#00000050` | Choose Default current text color | -| initial-opacity | `number` | `0.1` | Choose Initial interaction Opacity size | -| final-opacity | `number` | `0.1` | Choose, end the interactive effect and press the Opacity size for a long time | -| duration | `number` | `0.4s` | Choose, duration | -| easing | `string` | `ease-out` | Choose, animation easing | -| delay-time | `number` | `75ms` | Choose, slow animation is delayed after debouceTime time. | -| disabled | `boolean` | `false` | Choose, disabled ripple effect | +# RippleDirective + +`v-ripple`The v-ripple directive is used to show action from a user. It can be applied to any block level element.`tips: It can be applied to any block level element.` + +### When to Use + +:::demo User can be use Basic ripple functionality can be enabled just by using v-ripple directive on a component or an HTML element `v-ripple`Basic ripple functionality `v-ripple` Directive `v-ripple` Accept an object + +```vue + + +``` + +::: + +### Custom color + +### Change the ripple color dynamically by changing the text color or the ripple color + +:::demo + +```vue + +``` + +::: + + +### Ripple in components + +### Some components provide the ripple prop that allows you to control the ripple effect. + +Button Component + +:::demo + +```vue + +``` + +::: + +Card Component + +:::demo +```vue + + +``` + +::: + + + +### API + +| 参数 | 类型 | 默认 | 说明 | +| :-------------: | :-------: | :---------: | :---------------------------------------------------------------------------- | +| color | `string` | `#00000050` | Choose Default current text color | +| initial-opacity | `number` | `0.1` | Choose Initial interaction Opacity size | +| final-opacity | `number` | `0.1` | Choose, end the interactive effect and press the Opacity size for a long time | +| duration | `number` | `0.4s` | Choose, duration | +| easing | `string` | `ease-out` | Choose, animation easing | +| delay-time | `number` | `75ms` | Choose, slow animation is delayed after debouceTime time. | +| disabled | `boolean` | `false` | Choose, disabled ripple effect |