From 71c5c0e626eca9d9ca60563b6d1ec4e045c1dc85 Mon Sep 17 00:00:00 2001 From: zcj <18137693952@163.com> Date: Tue, 13 Sep 2022 21:16:29 +0800 Subject: [PATCH 1/3] =?UTF-8?q?docs(card):=20=E6=96=87=E6=A1=A3=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E5=8E=BB=E9=99=A4=20icon=20css=E7=9A=84=E5=BC=95?= =?UTF-8?q?=E5=85=A5=EF=BC=8C=E5=8E=BB=E9=99=A4=E6=9C=AA=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E7=9A=84css=E6=A0=B7=E5=BC=8F=E4=BB=A3=E7=A0=81=E3=80=82=20(cl?= =?UTF-8?q?ose=20#1231)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../devui-vue/docs/components/card/index.md | 56 ------------------- 1 file changed, 56 deletions(-) diff --git a/packages/devui-vue/docs/components/card/index.md b/packages/devui-vue/docs/components/card/index.md index 96f882e674..6d746d366f 100644 --- a/packages/devui-vue/docs/components/card/index.md +++ b/packages/devui-vue/docs/components/card/index.md @@ -30,7 +30,6 @@ - ### Card 参数 | 参数 | 类型 | 默认 | 说明 | 跳转 Demo | From 2e8c22cce700e2ada79d88093ac7feba0cc315ef Mon Sep 17 00:00:00 2001 From: zcj <18137693952@163.com> Date: Tue, 13 Sep 2022 21:26:46 +0800 Subject: [PATCH 2/3] =?UTF-8?q?docs(card):=20=E6=96=87=E6=A1=A3=20props?= =?UTF-8?q?=EF=BC=9Aalign=E3=80=81shadow=20=E7=B1=BB=E5=9E=8B=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../devui-vue/docs/components/card/index.md | 24 +++++++++++++++---- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/packages/devui-vue/docs/components/card/index.md b/packages/devui-vue/docs/components/card/index.md index 6d746d366f..2a3f267e1b 100644 --- a/packages/devui-vue/docs/components/card/index.md +++ b/packages/devui-vue/docs/components/card/index.md @@ -238,11 +238,11 @@ ### Card 参数 -| 参数 | 类型 | 默认 | 说明 | 跳转 Demo | -| :----- | :------------------------------- | :-------- | :----------------------------------------------------------- | :------------------------ | -| src | `string` | '' | 可选,图片路径 | [使用图片](#使用图片) | -| align | `'start'\|'end'\|'spaceBetween'` | `'start'` | 可选,操作区域对齐方式,分别对应起始对齐,尾部对齐,拉伸对齐 | [自定义区域](#自定义区域) | -| shadow | `'always'\|'hover'\|'never'` | `'hover'` | 可选,设置增强阴影显示时机 | [阴影效果](#阴影效果) | +| 参数 | 类型 | 默认 | 说明 | 跳转 Demo | +| :----- |:----------------------------| :-------- | :----------------------------------------------------------- | :------------------------ | +| src | `string` | '' | 可选,图片路径 | [使用图片](#使用图片) | +| align | [IAlignType](#ialigntype) | `'start'` | 可选,操作区域对齐方式,分别对应起始对齐,尾部对齐,拉伸对齐 | [自定义区域](#自定义区域) | +| shadow | [IShadowType](#ishadowtype) | `'hover'` | 可选,设置增强阴影显示时机 | [阴影效果](#阴影效果) | ### Card 插槽 @@ -254,3 +254,17 @@ | title | 卡片的主要内容描述,一般定义为卡片名称 | | subtitle | 对标题的补充,可包含标签等信息 | | actions | 决策作用,可以包含操作文本或者操作图标 | + +### Card 类型定义 + +#### IAlignType + +```ts +type IAlignType = 'start' | 'end' | 'spaceBetween'; +``` + +#### IShadowType + +```ts +type IShadowType = 'alway' | 'hover' | 'never'; +``` From f561ceb533ba8c499b620390c59a17b8260a270d Mon Sep 17 00:00:00 2001 From: zcj <18137693952@163.com> Date: Tue, 13 Sep 2022 21:32:01 +0800 Subject: [PATCH 3/3] =?UTF-8?q?fix(card):=20props.shadow=20=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=20alway=20=E4=BF=AE=E6=AD=A3=E4=B8=BA=20always?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/devui-vue/devui/card/src/card-types.ts | 2 +- packages/devui-vue/docs/components/card/index.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/devui-vue/devui/card/src/card-types.ts b/packages/devui-vue/devui/card/src/card-types.ts index 08e2c5e3a9..382baa7cac 100644 --- a/packages/devui-vue/devui/card/src/card-types.ts +++ b/packages/devui-vue/devui/card/src/card-types.ts @@ -10,7 +10,7 @@ export const cardProps = { default: '', }, shadow: { - type: String as PropType<'alway' | 'hover' | 'never'>, + type: String as PropType<'always' | 'hover' | 'never'>, default: 'hover', }, } as const; diff --git a/packages/devui-vue/docs/components/card/index.md b/packages/devui-vue/docs/components/card/index.md index 2a3f267e1b..33d468b10a 100644 --- a/packages/devui-vue/docs/components/card/index.md +++ b/packages/devui-vue/docs/components/card/index.md @@ -266,5 +266,5 @@ type IAlignType = 'start' | 'end' | 'spaceBetween'; #### IShadowType ```ts -type IShadowType = 'alway' | 'hover' | 'never'; +type IShadowType = 'always' | 'hover' | 'never'; ```