From ed3f554254ec699ebbab0e9946e3e925d810848c Mon Sep 17 00:00:00 2001 From: Eiinu Date: Tue, 19 Dec 2023 23:44:28 +0800 Subject: [PATCH] chore(ecard): split demo (#2770) --- .../src/business/pages/ecard/basic.vue | 39 ++++++++++++++ .../src/business/pages/ecard/index.vue | 45 ++++------------ src/packages/__VUE/ecard/demo.vue | 51 ------------------- src/packages/__VUE/ecard/demo/basic.vue | 39 ++++++++++++++ src/packages/__VUE/ecard/demo/index.vue | 19 +++++++ src/packages/__VUE/ecard/doc.en-US.md | 48 +---------------- src/packages/__VUE/ecard/doc.md | 48 +---------------- src/packages/__VUE/ecard/doc.taro.md | 48 +---------------- 8 files changed, 114 insertions(+), 223 deletions(-) create mode 100644 packages/nutui-taro-demo/src/business/pages/ecard/basic.vue delete mode 100644 src/packages/__VUE/ecard/demo.vue create mode 100644 src/packages/__VUE/ecard/demo/basic.vue create mode 100644 src/packages/__VUE/ecard/demo/index.vue diff --git a/packages/nutui-taro-demo/src/business/pages/ecard/basic.vue b/packages/nutui-taro-demo/src/business/pages/ecard/basic.vue new file mode 100644 index 0000000000..220b018e8e --- /dev/null +++ b/packages/nutui-taro-demo/src/business/pages/ecard/basic.vue @@ -0,0 +1,39 @@ + + diff --git a/packages/nutui-taro-demo/src/business/pages/ecard/index.vue b/packages/nutui-taro-demo/src/business/pages/ecard/index.vue index ec31a8aa25..32fa0cc315 100644 --- a/packages/nutui-taro-demo/src/business/pages/ecard/index.vue +++ b/packages/nutui-taro-demo/src/business/pages/ecard/index.vue @@ -1,42 +1,19 @@ diff --git a/src/packages/__VUE/ecard/demo.vue b/src/packages/__VUE/ecard/demo.vue deleted file mode 100644 index 7409b7a9b2..0000000000 --- a/src/packages/__VUE/ecard/demo.vue +++ /dev/null @@ -1,51 +0,0 @@ - - diff --git a/src/packages/__VUE/ecard/demo/basic.vue b/src/packages/__VUE/ecard/demo/basic.vue new file mode 100644 index 0000000000..220b018e8e --- /dev/null +++ b/src/packages/__VUE/ecard/demo/basic.vue @@ -0,0 +1,39 @@ + + diff --git a/src/packages/__VUE/ecard/demo/index.vue b/src/packages/__VUE/ecard/demo/index.vue new file mode 100644 index 0000000000..3be62780bd --- /dev/null +++ b/src/packages/__VUE/ecard/demo/index.vue @@ -0,0 +1,19 @@ + + diff --git a/src/packages/__VUE/ecard/doc.en-US.md b/src/packages/__VUE/ecard/doc.en-US.md index 7a8e2b1464..5a3695e541 100644 --- a/src/packages/__VUE/ecard/doc.en-US.md +++ b/src/packages/__VUE/ecard/doc.en-US.md @@ -16,51 +16,7 @@ app.use(Ecard); ### Basic -:::demo - -```vue - - -``` - -::: +> demo: ecard basic ## API @@ -68,7 +24,7 @@ const changeStep = (num, price) => { | Attribute | Description | Type | Default | | --- | --- | --- | --- | -| modelValue | Price | number | `0` | +| model-value | Price | number | `0` | | choose-text | Main Title | string | `Select` | | other-value-text | Other Text | string | `Other Value` | | data-list | Ecard List | Array | `DataList[]` | diff --git a/src/packages/__VUE/ecard/doc.md b/src/packages/__VUE/ecard/doc.md index 0851ea19d1..d9f9af3675 100644 --- a/src/packages/__VUE/ecard/doc.md +++ b/src/packages/__VUE/ecard/doc.md @@ -16,51 +16,7 @@ app.use(Ecard); ### 基础用法 -:::demo - -```vue - - -``` - -::: +> demo: ecard basic ## API @@ -68,7 +24,7 @@ const changeStep = (num, price) => { | 参数 | 说明 | 类型 | 默认值 | | --- | --- | --- | --- | -| modelValue | 购买电子卡所需价钱 | number | `0` | +| model-value | 购买电子卡所需价钱 | number | `0` | | choose-text | 选择面值文案 | string | `请选择电子卡面值` | | other-value-text | 其他面值文案 | string | `其他面值` | | data-list | 电子卡面值列表 | Array | `DataList[]` | diff --git a/src/packages/__VUE/ecard/doc.taro.md b/src/packages/__VUE/ecard/doc.taro.md index 194f888665..3715685b0d 100644 --- a/src/packages/__VUE/ecard/doc.taro.md +++ b/src/packages/__VUE/ecard/doc.taro.md @@ -16,51 +16,7 @@ app.use(Ecard); ### 基础用法 -:::demo - -```vue - - -``` - -::: +> demo: ecard basic business ## API @@ -68,7 +24,7 @@ const changeStep = (num, price) => { | 参数 | 说明 | 类型 | 默认值 | | --- | --- | --- | --- | -| modelValue | 购买电子卡所需价钱 | number | `0` | +| model-value | 购买电子卡所需价钱 | number | `0` | | choose-text | 选择面值文案 | string | `请选择电子卡面值` | | other-value-text | 其他面值文案 | string | `其他面值` | | data-list | 电子卡面值列表 | Array | `DataList[]` |