From f36f78766826861c9e946a3dab39286302b802b7 Mon Sep 17 00:00:00 2001 From: 07akioni <07akioni2@gmail.com> Date: Sat, 7 Nov 2020 01:02:26 +0800 Subject: [PATCH] refactor(typography): depth --- .../components/typography/enUS/index.demo-entry.md | 4 ++-- .../components/typography/enUS/text.demo.md | 6 +++--- .../components/typography/zhCN/index.demo-entry.md | 4 ++-- .../components/typography/zhCN/text.demo.md | 6 +++--- .../components/upload/enUS/drag.demo.md | 2 +- .../components/upload/zhCN/drag.demo.md | 2 +- demo/documentation/landing/Footer.vue | 2 +- demo/utils/ComponentDemo.vue | 1 - demo/utils/EditOnGithubButton.vue | 1 - src/button/src/Button.vue | 6 ------ src/typography/src/p.vue | 4 ++-- src/typography/src/styles/themed-p.cssr.js | 6 +++--- src/typography/src/styles/themed-text.cssr.js | 12 ++++++------ src/typography/src/text.vue | 2 +- vue3.md | 3 +++ 15 files changed, 28 insertions(+), 33 deletions(-) diff --git a/demo/documentation/components/typography/enUS/index.demo-entry.md b/demo/documentation/components/typography/enUS/index.demo-entry.md index 4a0f92672..35324e455 100644 --- a/demo/documentation/components/typography/enUS/index.demo-entry.md +++ b/demo/documentation/components/typography/enUS/index.demo-entry.md @@ -27,13 +27,13 @@ text |underline|`boolean`|`false`|| |delete|`boolean`|`false`|| |code|`boolean`|`false`|| -|depth|`'primary' \| 'secondary' \| 'tertiary'`|`undefined`|| +|depth|`1 \| 2 \| 3 \| '1' \| '2' \| '3'`|`undefined`|| |tag|`string`|`undefined`|What tag should be this component be rendered as. Won't work when `code` or `del` is set.| ### P Props |Name|Type|Default|Description| |-|-|-|-| -|depth|`'primary' \| 'secondary' \| 'tertiary'`|`undefined`|| +|depth|`1 \| 2 \| 3 \| '1' \| '2' \| '3'`|`undefined`|| ### H1, H2, H3, H4, H5, H6 Props diff --git a/demo/documentation/components/typography/enUS/text.demo.md b/demo/documentation/components/typography/enUS/text.demo.md index 4078be54b..21b5a522d 100644 --- a/demo/documentation/components/typography/enUS/text.demo.md +++ b/demo/documentation/components/typography/enUS/text.demo.md @@ -11,8 +11,8 @@ Use different type of text to display different kind of info. Delete  Code  Code  -Primary Depth  -Secondary Depth  -Tertiary Depth  +Primary Depth  +Secondary Depth  +Tertiary Depth  As Div ``` \ No newline at end of file diff --git a/demo/documentation/components/typography/zhCN/index.demo-entry.md b/demo/documentation/components/typography/zhCN/index.demo-entry.md index 3a042a359..8b60d98d2 100644 --- a/demo/documentation/components/typography/zhCN/index.demo-entry.md +++ b/demo/documentation/components/typography/zhCN/index.demo-entry.md @@ -27,13 +27,13 @@ text |underline|`boolean`|`false`|| |delete|`boolean`|`false`|| |code|`boolean`|`false`|| -|depth|`'primary' \| 'secondary' \| 'tertiary'`|`undefined`|| +|depth|`1 \| 2 \| 3 \| '1' \| '2' \| '3'`|`undefined`|| |tag|`string`|`undefined`|需要被渲染为什么标签,在 `code` 和 `del` 设定的情况下不生效| ### P Props |名称|类型|默认值|说明| |-|-|-|-| -|depth|`'primary' \| 'secondary' \| 'tertiary'`|`undefined`|| +|depth|`1 \| 2 \| 3 \| '1' \| '2' \| '3'`|`undefined`|| ### H1, H2, H3, H4, H5, H6 Props |名称|类型|默认值|说明| diff --git a/demo/documentation/components/typography/zhCN/text.demo.md b/demo/documentation/components/typography/zhCN/text.demo.md index 910ee71ea..609340c83 100644 --- a/demo/documentation/components/typography/zhCN/text.demo.md +++ b/demo/documentation/components/typography/zhCN/text.demo.md @@ -11,8 +11,8 @@ Delete  Code  Code  -Primary Depth  -Secondary Depth  -Tertiary Depth  +Primary Depth  +Secondary Depth  +Tertiary Depth  作为 Div ``` diff --git a/demo/documentation/components/upload/enUS/drag.demo.md b/demo/documentation/components/upload/enUS/drag.demo.md index 96e552ff3..3f61b8994 100644 --- a/demo/documentation/components/upload/enUS/drag.demo.md +++ b/demo/documentation/components/upload/enUS/drag.demo.md @@ -8,7 +8,7 @@ Click or drag file to this area to upload - Strictly prohibit from uploading sensitive information. For example, your deposit card's password or your credit card's expiration date and security code. + Strictly prohibit from uploading sensitive information. For example, your deposit card's password or your credit card's expiration date and security code. ``` diff --git a/demo/documentation/components/upload/zhCN/drag.demo.md b/demo/documentation/components/upload/zhCN/drag.demo.md index 69938f86b..cbc50c61b 100644 --- a/demo/documentation/components/upload/zhCN/drag.demo.md +++ b/demo/documentation/components/upload/zhCN/drag.demo.md @@ -8,7 +8,7 @@ 点击或者拖动文件到该区域来上传 - 请不要上传敏感数据,比如你的银行卡号和密码,信用卡号有效期和安全码 + 请不要上传敏感数据,比如你的银行卡号和密码,信用卡号有效期和安全码 ``` diff --git a/demo/documentation/landing/Footer.vue b/demo/documentation/landing/Footer.vue index 904d95f35..2533766e3 100644 --- a/demo/documentation/landing/Footer.vue +++ b/demo/documentation/landing/Footer.vue @@ -1,7 +1,7 @@