From f3ffcdbc7e362483759b67ada8efecea210fd672 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Thu, 23 Feb 2023 12:21:23 +0800 Subject: [PATCH] doc: update cover --- .stylelintrc.json | 41 +++++++++++++++---- components/anchor/index.en-US.md | 2 +- components/anchor/index.zh-CN.md | 2 +- components/auto-complete/index.en-US.md | 2 +- components/auto-complete/index.zh-CN.md | 2 +- components/avatar/index.en-US.md | 2 +- components/avatar/index.zh-CN.md | 2 +- components/badge/index.en_US.md | 2 +- components/badge/index.zh-CN.md | 2 +- components/breadcrumb/index.en-US.md | 2 +- components/breadcrumb/index.zh-CN.md | 2 +- components/button/index.en-US.md | 2 +- components/button/index.zh-CN.md | 2 +- .../comment/style/{index.tsx => index.ts} | 0 components/config-provider/index.en-US.md | 2 +- components/config-provider/index.zh-CN.md | 2 +- .../date-picker/style/{index.tsx => index.ts} | 0 components/divider/index.en-US.md | 2 +- components/divider/index.zh-CN.md | 2 +- components/dropdown/index.en-US.md | 2 +- components/dropdown/index.zh-CN.md | 2 +- components/icon/index.en-US.md | 2 +- components/icon/index.zh-CN.md | 2 +- components/mentions/index.en-US.md | 2 +- components/mentions/index.zh-CN.md | 2 +- components/menu/index.en-US.md | 2 +- components/menu/index.zh-CN.md | 2 +- components/message/index.en-US.md | 2 +- components/message/index.zh-CN.md | 2 +- components/modal/index.en-US.md | 2 +- components/modal/index.zh-CN.md | 2 +- components/notification/index.en-US.md | 2 +- components/notification/index.zh-CN.md | 2 +- .../page-header/style/{index.tsx => index.ts} | 0 components/popconfirm/index.en-US.md | 2 +- components/popconfirm/index.zh-CN.md | 2 +- components/popover/index.en-US.md | 2 +- components/popover/index.zh-CN.md | 2 +- components/rate/index.en-US.md | 2 +- components/rate/index.zh-CN.md | 2 +- components/segmented/src/MotionThumb.tsx | 2 +- components/skeleton/index.en-US.md | 2 +- components/skeleton/index.zh-CN.md | 2 +- components/space/index.en-US.md | 2 +- components/space/index.zh-CN.md | 2 +- components/spin/index.en-US.md | 2 +- components/spin/index.zh-CN.md | 2 +- components/switch/index.en-US.md | 2 +- components/switch/index.zh-CN.md | 2 +- components/tag/index.en-US.md | 2 +- components/tag/index.zh-CN.md | 2 +- components/tooltip/index.en-US.md | 2 +- components/tooltip/index.zh-CN.md | 2 +- index-with-locales.js | 4 +- package.json | 12 +++--- tsconfig.json | 7 +++- 56 files changed, 95 insertions(+), 67 deletions(-) rename components/comment/style/{index.tsx => index.ts} (100%) rename components/date-picker/style/{index.tsx => index.ts} (100%) rename components/page-header/style/{index.tsx => index.ts} (100%) diff --git a/.stylelintrc.json b/.stylelintrc.json index 40ce56859..4d48dbf97 100644 --- a/.stylelintrc.json +++ b/.stylelintrc.json @@ -4,13 +4,40 @@ "stylelint-config-rational-order", "stylelint-config-prettier" ], - "plugins": ["stylelint-order", "stylelint-declaration-block-no-ignored-properties"], + "customSyntax": "postcss-less", + "plugins": ["stylelint-declaration-block-no-ignored-properties"], "rules": { - "comment-empty-line-before": null, - "function-name-case": ["lower", { "ignoreFunctions": ["/colorPalette/"] }], - "no-invalid-double-slash-comments": null, + "function-name-case": ["lower"], + "function-no-unknown": [ + true, + { + "ignoreFunctions": [ + "fade", + "fadeout", + "tint", + "darken", + "ceil", + "fadein", + "floor", + "unit", + "shade", + "lighten", + "percentage", + "-" + ] + } + ], + "import-notation": null, "no-descending-specificity": null, - "declaration-empty-line-before": null - }, - "ignoreFiles": ["components/style/color/{bezierEasing,colorPalette,tinyColor}.less"] + "no-invalid-position-at-import-rule": null, + "declaration-empty-line-before": null, + "keyframes-name-pattern": null, + "custom-property-pattern": null, + "number-max-precision": 8, + "alpha-value-notation": "number", + "color-function-notation": "legacy", + "selector-class-pattern": null, + "selector-id-pattern": null, + "selector-not-notation": null + } } diff --git a/components/anchor/index.en-US.md b/components/anchor/index.en-US.md index 253a551e1..509b1863f 100644 --- a/components/anchor/index.en-US.md +++ b/components/anchor/index.en-US.md @@ -3,7 +3,7 @@ category: Components type: Other cols: 2 title: Anchor -cover: https://gw.alipayobjects.com/zos/alicdn/_1-C1JwsC/Anchor.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*TBTSR4PyVmkAAAAAAAAAAAAADrJ8AQ/original --- Hyperlinks to scroll on one page. diff --git a/components/anchor/index.zh-CN.md b/components/anchor/index.zh-CN.md index a5ef9e128..844c794c9 100644 --- a/components/anchor/index.zh-CN.md +++ b/components/anchor/index.zh-CN.md @@ -4,7 +4,7 @@ subtitle: 锚点 cols: 2 type: 其他 title: Anchor -cover: https://gw.alipayobjects.com/zos/alicdn/_1-C1JwsC/Anchor.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*TBTSR4PyVmkAAAAAAAAAAAAADrJ8AQ/original --- 用于跳转到页面指定位置。 diff --git a/components/auto-complete/index.en-US.md b/components/auto-complete/index.en-US.md index 88c97e637..b840fda68 100644 --- a/components/auto-complete/index.en-US.md +++ b/components/auto-complete/index.en-US.md @@ -3,7 +3,7 @@ category: Components type: Data Entry cols: 2 title: AutoComplete -cover: https://gw.alipayobjects.com/zos/alicdn/qtJm4yt45/AutoComplete.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*g8THS4NpV6sAAAAAAAAAAAAADrJ8AQ/original --- Autocomplete function of input field. diff --git a/components/auto-complete/index.zh-CN.md b/components/auto-complete/index.zh-CN.md index 120664c61..251068768 100644 --- a/components/auto-complete/index.zh-CN.md +++ b/components/auto-complete/index.zh-CN.md @@ -4,7 +4,7 @@ subtitle: 自动完成 type: 数据录入 cols: 2 title: AutoComplete -cover: https://gw.alipayobjects.com/zos/alicdn/qtJm4yt45/AutoComplete.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*g8THS4NpV6sAAAAAAAAAAAAADrJ8AQ/original --- 输入框自动完成功能。 diff --git a/components/avatar/index.en-US.md b/components/avatar/index.en-US.md index 90bdf08fc..f2cf9a8a2 100644 --- a/components/avatar/index.en-US.md +++ b/components/avatar/index.en-US.md @@ -2,7 +2,7 @@ category: Components type: Data Display title: Avatar -cover: https://gw.alipayobjects.com/zos/antfincdn/aBcnbw68hP/Avatar.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*JJBSS5lBG4IAAAAAAAAAAAAADrJ8AQ/original --- Avatars can be used to represent people or objects. It supports images, `Icon`s, or letters. diff --git a/components/avatar/index.zh-CN.md b/components/avatar/index.zh-CN.md index 4eae59b5b..ee8976d26 100644 --- a/components/avatar/index.zh-CN.md +++ b/components/avatar/index.zh-CN.md @@ -3,7 +3,7 @@ category: Components subtitle: 头像 type: 数据展示 title: Avatar -cover: https://gw.alipayobjects.com/zos/antfincdn/aBcnbw68hP/Avatar.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*JJBSS5lBG4IAAAAAAAAAAAAADrJ8AQ/original --- 用来代表用户或事物,支持图片、图标或字符展示。 diff --git a/components/badge/index.en_US.md b/components/badge/index.en_US.md index 402b5eb58..143ee54cc 100644 --- a/components/badge/index.en_US.md +++ b/components/badge/index.en_US.md @@ -2,7 +2,7 @@ category: Components type: Data Display title: Badge -cover: https://gw.alipayobjects.com/zos/antfincdn/6%26GF9WHwvY/Badge.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*e0qITYqF394AAAAAAAAAAAAADrJ8AQ/original --- Small numerical value or status descriptor for UI elements. diff --git a/components/badge/index.zh-CN.md b/components/badge/index.zh-CN.md index 7c4a7fd42..557543494 100644 --- a/components/badge/index.zh-CN.md +++ b/components/badge/index.zh-CN.md @@ -3,7 +3,7 @@ category: Components type: 数据展示 title: Badge subtitle: 徽标数 -cover: https://gw.alipayobjects.com/zos/antfincdn/6%26GF9WHwvY/Badge.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*e0qITYqF394AAAAAAAAAAAAADrJ8AQ/original --- 图标右上角的圆形徽标数字。 diff --git a/components/breadcrumb/index.en-US.md b/components/breadcrumb/index.en-US.md index 504affdfe..baef76413 100644 --- a/components/breadcrumb/index.en-US.md +++ b/components/breadcrumb/index.en-US.md @@ -2,7 +2,7 @@ category: Components type: Navigation title: Breadcrumb -cover: https://gw.alipayobjects.com/zos/alicdn/9Ltop8JwH/Breadcrumb.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*I5a2Tpqs3y0AAAAAAAAAAAAADrJ8AQ/original --- A breadcrumb displays the current location within a hierarchy. It allows going back to states higher up in the hierarchy. diff --git a/components/breadcrumb/index.zh-CN.md b/components/breadcrumb/index.zh-CN.md index 548c09675..f566d5591 100644 --- a/components/breadcrumb/index.zh-CN.md +++ b/components/breadcrumb/index.zh-CN.md @@ -3,7 +3,7 @@ category: Components subtitle: 面包屑 type: 导航 title: Breadcrumb -cover: https://gw.alipayobjects.com/zos/alicdn/9Ltop8JwH/Breadcrumb.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*I5a2Tpqs3y0AAAAAAAAAAAAADrJ8AQ/original --- 显示当前页面在系统层级结构中的位置,并能向上返回。 diff --git a/components/button/index.en-US.md b/components/button/index.en-US.md index 0de3dc711..8bfb8bf73 100644 --- a/components/button/index.en-US.md +++ b/components/button/index.en-US.md @@ -2,7 +2,7 @@ category: Components type: General title: Button -cover: https://gw.alipayobjects.com/zos/alicdn/fNUKzY1sk/Button.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*BrFMQ5s7AAQAAAAAAAAAAAAADrJ8AQ/original --- To trigger an operation. diff --git a/components/button/index.zh-CN.md b/components/button/index.zh-CN.md index 91425ae5d..ac0964f1e 100644 --- a/components/button/index.zh-CN.md +++ b/components/button/index.zh-CN.md @@ -3,7 +3,7 @@ category: Components type: 通用 title: Button subtitle: 按钮 -cover: https://gw.alipayobjects.com/zos/alicdn/fNUKzY1sk/Button.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*BrFMQ5s7AAQAAAAAAAAAAAAADrJ8AQ/original --- 按钮用于开始一个即时操作。 diff --git a/components/comment/style/index.tsx b/components/comment/style/index.ts similarity index 100% rename from components/comment/style/index.tsx rename to components/comment/style/index.ts diff --git a/components/config-provider/index.en-US.md b/components/config-provider/index.en-US.md index 000291684..08d96d60c 100644 --- a/components/config-provider/index.en-US.md +++ b/components/config-provider/index.en-US.md @@ -3,7 +3,7 @@ category: Components type: Other cols: 1 title: ConfigProvider -cover: https://gw.alipayobjects.com/zos/alicdn/kegYxl1wj/ConfigProvider.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*NVKORa7BCVwAAAAAAAAAAAAADrJ8AQ/original --- `ConfigProvider` provides a uniform configuration support for components. diff --git a/components/config-provider/index.zh-CN.md b/components/config-provider/index.zh-CN.md index 1a7e3f747..3c86cf742 100644 --- a/components/config-provider/index.zh-CN.md +++ b/components/config-provider/index.zh-CN.md @@ -4,7 +4,7 @@ subtitle: 全局化配置 cols: 1 type: 其他 title: ConfigProvider -cover: https://gw.alipayobjects.com/zos/alicdn/kegYxl1wj/ConfigProvider.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*NVKORa7BCVwAAAAAAAAAAAAADrJ8AQ/original --- 为组件提供统一的全局化配置。 diff --git a/components/date-picker/style/index.tsx b/components/date-picker/style/index.ts similarity index 100% rename from components/date-picker/style/index.tsx rename to components/date-picker/style/index.ts diff --git a/components/divider/index.en-US.md b/components/divider/index.en-US.md index 0190a6dfb..1bc42862b 100644 --- a/components/divider/index.en-US.md +++ b/components/divider/index.en-US.md @@ -2,7 +2,7 @@ category: Components type: Layout title: Divider -cover: https://gw.alipayobjects.com/zos/alicdn/5swjECahe/Divider.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*7sMiTbzvaDoAAAAAAAAAAAAADrJ8AQ/original --- A divider line separates different content. diff --git a/components/divider/index.zh-CN.md b/components/divider/index.zh-CN.md index 8e179ef01..0497c0844 100644 --- a/components/divider/index.zh-CN.md +++ b/components/divider/index.zh-CN.md @@ -3,7 +3,7 @@ category: Components type: 布局 title: Divider subtitle: 分割线 -cover: https://gw.alipayobjects.com/zos/alicdn/5swjECahe/Divider.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*7sMiTbzvaDoAAAAAAAAAAAAADrJ8AQ/original --- 区隔内容的分割线。 diff --git a/components/dropdown/index.en-US.md b/components/dropdown/index.en-US.md index 12f6b8623..b534fb9c4 100644 --- a/components/dropdown/index.en-US.md +++ b/components/dropdown/index.en-US.md @@ -2,7 +2,7 @@ category: Components type: Navigation title: Dropdown -cover: https://gw.alipayobjects.com/zos/alicdn/eedWN59yJ/Dropdown.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*mBBcQ6goljkAAAAAAAAAAAAADrJ8AQ/original --- A dropdown list. diff --git a/components/dropdown/index.zh-CN.md b/components/dropdown/index.zh-CN.md index bbe120af1..655508f9e 100644 --- a/components/dropdown/index.zh-CN.md +++ b/components/dropdown/index.zh-CN.md @@ -3,7 +3,7 @@ category: Components subtitle: 下拉菜单 type: 导航 title: Dropdown -cover: https://gw.alipayobjects.com/zos/alicdn/eedWN59yJ/Dropdown.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*mBBcQ6goljkAAAAAAAAAAAAADrJ8AQ/original --- 向下弹出的列表。 diff --git a/components/icon/index.en-US.md b/components/icon/index.en-US.md index 8cc8b7097..c26822ee0 100644 --- a/components/icon/index.en-US.md +++ b/components/icon/index.en-US.md @@ -2,7 +2,7 @@ category: Components type: General title: Icon -cover: https://gw.alipayobjects.com/zos/alicdn/rrwbSt3FQ/Icon.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*PdAYS7anRpoAAAAAAAAAAAAADrJ8AQ/original --- Semantic vector graphics. Before use icons, you need to install `@ant-design/icons-vue` package: diff --git a/components/icon/index.zh-CN.md b/components/icon/index.zh-CN.md index 2c399d028..c65534601 100644 --- a/components/icon/index.zh-CN.md +++ b/components/icon/index.zh-CN.md @@ -3,7 +3,7 @@ category: Components type: 通用 title: Icon subtitle: 图标 -cover: https://gw.alipayobjects.com/zos/alicdn/rrwbSt3FQ/Icon.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*PdAYS7anRpoAAAAAAAAAAAAADrJ8AQ/original --- 语义化的矢量图形。使用图标组件,你需要安装 `@ant-design/icons-vue` 图标组件包: diff --git a/components/mentions/index.en-US.md b/components/mentions/index.en-US.md index 698b8015c..25e1777bd 100644 --- a/components/mentions/index.en-US.md +++ b/components/mentions/index.en-US.md @@ -2,7 +2,7 @@ category: Components type: Data Entry title: Mentions -cover: https://gw.alipayobjects.com/zos/alicdn/jPE-itMFM/Mentions.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*e4bXT7Uhi9YAAAAAAAAAAAAADrJ8AQ/original --- Mention component. diff --git a/components/mentions/index.zh-CN.md b/components/mentions/index.zh-CN.md index aa9871b00..b65aa4c94 100644 --- a/components/mentions/index.zh-CN.md +++ b/components/mentions/index.zh-CN.md @@ -3,7 +3,7 @@ category: Components type: 数据录入 title: Mentions subtitle: 提及 -cover: https://gw.alipayobjects.com/zos/alicdn/jPE-itMFM/Mentions.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*e4bXT7Uhi9YAAAAAAAAAAAAADrJ8AQ/original --- 提及组件。 diff --git a/components/menu/index.en-US.md b/components/menu/index.en-US.md index daecb2add..bd9ea5acc 100644 --- a/components/menu/index.en-US.md +++ b/components/menu/index.en-US.md @@ -3,7 +3,7 @@ category: Components cols: 1 type: Navigation title: Menu -cover: https://gw.alipayobjects.com/zos/alicdn/3XZcjGpvK/Menu.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*KeyQQL5iKkkAAAAAAAAAAAAADrJ8AQ/original --- A versatile menu for navigation. diff --git a/components/menu/index.zh-CN.md b/components/menu/index.zh-CN.md index d31e9d5e8..441dcbbeb 100644 --- a/components/menu/index.zh-CN.md +++ b/components/menu/index.zh-CN.md @@ -4,7 +4,7 @@ cols: 1 type: 导航 title: Menu subtitle: 导航菜单 -cover: https://gw.alipayobjects.com/zos/alicdn/3XZcjGpvK/Menu.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*KeyQQL5iKkkAAAAAAAAAAAAADrJ8AQ/original --- 为页面和功能提供导航的菜单列表。 diff --git a/components/message/index.en-US.md b/components/message/index.en-US.md index 91f8d0ae2..3c71f1b9e 100644 --- a/components/message/index.en-US.md +++ b/components/message/index.en-US.md @@ -2,7 +2,7 @@ category: Components type: Feedback title: Message -cover: https://gw.alipayobjects.com/zos/alicdn/hAkKTIW0K/Message.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*JjZBT6N1MusAAAAAAAAAAAAADrJ8AQ/original --- Display global messages as feedback in response to user operations. diff --git a/components/message/index.zh-CN.md b/components/message/index.zh-CN.md index 49cdbe1fb..67f6ea7fb 100644 --- a/components/message/index.zh-CN.md +++ b/components/message/index.zh-CN.md @@ -3,7 +3,7 @@ category: Components type: 反馈 title: Message subtitle: 全局提示 -cover: https://gw.alipayobjects.com/zos/alicdn/hAkKTIW0K/Message.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*JjZBT6N1MusAAAAAAAAAAAAADrJ8AQ/original --- 全局展示操作反馈信息。 diff --git a/components/modal/index.en-US.md b/components/modal/index.en-US.md index c02313903..bf07cbab6 100644 --- a/components/modal/index.en-US.md +++ b/components/modal/index.en-US.md @@ -2,7 +2,7 @@ category: Components type: Feedback title: Modal -cover: https://gw.alipayobjects.com/zos/alicdn/3StSdUlSH/Modal.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*wM3qQ5XrhlcAAAAAAAAAAAAADrJ8AQ/original --- Modal dialogs. diff --git a/components/modal/index.zh-CN.md b/components/modal/index.zh-CN.md index 734507fe6..98d528576 100644 --- a/components/modal/index.zh-CN.md +++ b/components/modal/index.zh-CN.md @@ -3,7 +3,7 @@ category: Components type: 反馈 title: Modal subtitle: 对话框 -cover: https://gw.alipayobjects.com/zos/alicdn/3StSdUlSH/Modal.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*wM3qQ5XrhlcAAAAAAAAAAAAADrJ8AQ/original --- 模态对话框。 diff --git a/components/notification/index.en-US.md b/components/notification/index.en-US.md index afb0c0371..f3ab758d9 100644 --- a/components/notification/index.en-US.md +++ b/components/notification/index.en-US.md @@ -2,7 +2,7 @@ category: Components type: Feedback title: Notification -cover: https://gw.alipayobjects.com/zos/alicdn/Jxm5nw61w/Notification.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*6RWNQ78WtvEAAAAAAAAAAAAADrJ8AQ/original --- Display a notification message globally. diff --git a/components/notification/index.zh-CN.md b/components/notification/index.zh-CN.md index 09c3d7dd6..add5d32b3 100644 --- a/components/notification/index.zh-CN.md +++ b/components/notification/index.zh-CN.md @@ -3,7 +3,7 @@ category: Components type: 反馈 title: Notification subtitle: 通知提醒框 -cover: https://gw.alipayobjects.com/zos/alicdn/Jxm5nw61w/Notification.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*6RWNQ78WtvEAAAAAAAAAAAAADrJ8AQ/original --- 全局展示通知提醒信息。 diff --git a/components/page-header/style/index.tsx b/components/page-header/style/index.ts similarity index 100% rename from components/page-header/style/index.tsx rename to components/page-header/style/index.ts diff --git a/components/popconfirm/index.en-US.md b/components/popconfirm/index.en-US.md index 7a9d90e4d..3e80e0488 100644 --- a/components/popconfirm/index.en-US.md +++ b/components/popconfirm/index.en-US.md @@ -2,7 +2,7 @@ category: Components type: Feedback title: Popconfirm -cover: https://gw.alipayobjects.com/zos/alicdn/fjMCD9xRq/Popconfirm.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*sAGpRoBtTXcAAAAAAAAAAAAADrJ8AQ/original --- A simple and compact confirmation dialog of an action. diff --git a/components/popconfirm/index.zh-CN.md b/components/popconfirm/index.zh-CN.md index 5e5459b7f..edd20c56f 100644 --- a/components/popconfirm/index.zh-CN.md +++ b/components/popconfirm/index.zh-CN.md @@ -3,7 +3,7 @@ category: Components type: 反馈 title: Popconfirm subtitle: 气泡确认框 -cover: https://gw.alipayobjects.com/zos/alicdn/fjMCD9xRq/Popconfirm.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*sAGpRoBtTXcAAAAAAAAAAAAADrJ8AQ/original --- 点击元素,弹出气泡式的确认框。 diff --git a/components/popover/index.en-US.md b/components/popover/index.en-US.md index ef942fd9a..01dbe78e1 100644 --- a/components/popover/index.en-US.md +++ b/components/popover/index.en-US.md @@ -2,7 +2,7 @@ category: Components type: Data Display title: Popover -cover: https://gw.alipayobjects.com/zos/alicdn/1PNL1p_cO/Popover.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*XhL3QpRw92kAAAAAAAAAAAAADrJ8AQ/original --- The floating card popped by clicking or hovering. diff --git a/components/popover/index.zh-CN.md b/components/popover/index.zh-CN.md index da1a0ce11..4c222c2b7 100644 --- a/components/popover/index.zh-CN.md +++ b/components/popover/index.zh-CN.md @@ -3,7 +3,7 @@ category: Components type: 数据展示 title: Popover subtitle: 气泡卡片 -cover: https://gw.alipayobjects.com/zos/alicdn/1PNL1p_cO/Popover.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*XhL3QpRw92kAAAAAAAAAAAAADrJ8AQ/original --- 点击/鼠标移入元素,弹出气泡式的卡片浮层。 diff --git a/components/rate/index.en-US.md b/components/rate/index.en-US.md index 966321445..e2d7a18a0 100644 --- a/components/rate/index.en-US.md +++ b/components/rate/index.en-US.md @@ -2,7 +2,7 @@ category: Components type: Data Entry title: Rate -cover: https://gw.alipayobjects.com/zos/alicdn/R5uiIWmxe/Rate.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*oyOcTrB12_YAAAAAAAAAAAAADrJ8AQ/original --- Rate component. diff --git a/components/rate/index.zh-CN.md b/components/rate/index.zh-CN.md index 4d8acec2a..ea65ca2ae 100644 --- a/components/rate/index.zh-CN.md +++ b/components/rate/index.zh-CN.md @@ -3,7 +3,7 @@ category: Components type: 数据录入 title: Rate subtitle: 评分 -cover: https://gw.alipayobjects.com/zos/alicdn/R5uiIWmxe/Rate.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*oyOcTrB12_YAAAAAAAAAAAAADrJ8AQ/original --- 评分组件。 diff --git a/components/segmented/src/MotionThumb.tsx b/components/segmented/src/MotionThumb.tsx index 77f5a1ccb..046881926 100644 --- a/components/segmented/src/MotionThumb.tsx +++ b/components/segmented/src/MotionThumb.tsx @@ -1,4 +1,4 @@ -import { addClass, removeClass } from 'ant-design-vue/es/vc-util/Dom/class'; +import { addClass, removeClass } from '../../vc-util/Dom/class'; import type { CSSProperties, Ref, TransitionProps } from 'vue'; import { onBeforeUnmount, nextTick, Transition, watch, defineComponent, computed, ref } from 'vue'; import { anyType } from '../../_util/type'; diff --git a/components/skeleton/index.en-US.md b/components/skeleton/index.en-US.md index 9e36782be..420cc1a15 100644 --- a/components/skeleton/index.en-US.md +++ b/components/skeleton/index.en-US.md @@ -2,7 +2,7 @@ category: Components type: Feedback title: Skeleton -cover: https://gw.alipayobjects.com/zos/alicdn/KpcciCJgv/Skeleton.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*uae3QbkNCm8AAAAAAAAAAAAADrJ8AQ/original --- Provide a placeholder while you wait for content to load, or to visualise content that doesn't exist yet. diff --git a/components/skeleton/index.zh-CN.md b/components/skeleton/index.zh-CN.md index 57394137e..72687279a 100644 --- a/components/skeleton/index.zh-CN.md +++ b/components/skeleton/index.zh-CN.md @@ -3,7 +3,7 @@ category: Components type: 反馈 title: Skeleton subtitle: 骨架屏 -cover: https://gw.alipayobjects.com/zos/alicdn/KpcciCJgv/Skeleton.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*uae3QbkNCm8AAAAAAAAAAAAADrJ8AQ/original --- 在需要等待加载内容的位置提供一个占位图形组合。 diff --git a/components/space/index.en-US.md b/components/space/index.en-US.md index 92d8eaf03..331ae92ba 100644 --- a/components/space/index.en-US.md +++ b/components/space/index.en-US.md @@ -3,7 +3,7 @@ category: Components type: Layout title: Space cols: 1 -cover: https://gw.alipayobjects.com/zos/antfincdn/wc6%263gJ0Y8/Space.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*ZiJ3SbOH9SUAAAAAAAAAAAAADrJ8AQ/original --- Set components spacing. diff --git a/components/space/index.zh-CN.md b/components/space/index.zh-CN.md index 59a965372..1df699edf 100644 --- a/components/space/index.zh-CN.md +++ b/components/space/index.zh-CN.md @@ -4,7 +4,7 @@ type: 布局 subtitle: 间距 title: Space cols: 1 -cover: https://gw.alipayobjects.com/zos/antfincdn/wc6%263gJ0Y8/Space.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*ZiJ3SbOH9SUAAAAAAAAAAAAADrJ8AQ/original --- 设置组件之间的间距。 diff --git a/components/spin/index.en-US.md b/components/spin/index.en-US.md index 84cce92dc..70143dcab 100644 --- a/components/spin/index.en-US.md +++ b/components/spin/index.en-US.md @@ -2,7 +2,7 @@ category: Components type: Feedback title: Spin -cover: https://gw.alipayobjects.com/zos/alicdn/LBcJqCPRv/Spin.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*5mC5TomY4B0AAAAAAAAAAAAADrJ8AQ/original --- A spinner for displaying loading state of a page or a section. diff --git a/components/spin/index.zh-CN.md b/components/spin/index.zh-CN.md index 8735804d4..c685eb99a 100644 --- a/components/spin/index.zh-CN.md +++ b/components/spin/index.zh-CN.md @@ -3,7 +3,7 @@ category: Components type: 反馈 title: Spin subtitle: 加载中 -cover: https://gw.alipayobjects.com/zos/alicdn/8emPa3fjl/Spin.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*5mC5TomY4B0AAAAAAAAAAAAADrJ8AQ/original --- 用于页面和区块的加载中状态。 diff --git a/components/switch/index.en-US.md b/components/switch/index.en-US.md index ba51af2fe..84f0f9be4 100644 --- a/components/switch/index.en-US.md +++ b/components/switch/index.en-US.md @@ -2,7 +2,7 @@ category: Components type: Data Entry title: Switch -cover: https://gw.alipayobjects.com/zos/alicdn/zNdJQMhfm/Switch.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*rtArRpBNDZcAAAAAAAAAAAAADrJ8AQ/original --- Switching Selector. diff --git a/components/switch/index.zh-CN.md b/components/switch/index.zh-CN.md index f1fc9def3..89e5d7cac 100644 --- a/components/switch/index.zh-CN.md +++ b/components/switch/index.zh-CN.md @@ -3,7 +3,7 @@ category: Components subtitle: 开关 type: 数据录入 title: Switch -cover: https://gw.alipayobjects.com/zos/alicdn/zNdJQMhfm/Switch.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*rtArRpBNDZcAAAAAAAAAAAAADrJ8AQ/original --- 开关选择器。 diff --git a/components/tag/index.en-US.md b/components/tag/index.en-US.md index 588e00065..44f13fe2b 100644 --- a/components/tag/index.en-US.md +++ b/components/tag/index.en-US.md @@ -2,7 +2,7 @@ category: Components type: Data Display title: Tag -cover: https://gw.alipayobjects.com/zos/alicdn/cH1BOLfxC/Tag.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*_SBsSrKLg00AAAAAAAAAAAAADrJ8AQ/original --- Tag for categorizing or markup. diff --git a/components/tag/index.zh-CN.md b/components/tag/index.zh-CN.md index 2130e37a5..2a08ca12d 100644 --- a/components/tag/index.zh-CN.md +++ b/components/tag/index.zh-CN.md @@ -3,7 +3,7 @@ category: Components subtitle: 标签 type: 数据展示 title: Tag -cover: https://gw.alipayobjects.com/zos/alicdn/cH1BOLfxC/Tag.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*_SBsSrKLg00AAAAAAAAAAAAADrJ8AQ/original --- 进行标记和分类的小标签。 diff --git a/components/tooltip/index.en-US.md b/components/tooltip/index.en-US.md index 223e414dc..6a47f5b8f 100644 --- a/components/tooltip/index.en-US.md +++ b/components/tooltip/index.en-US.md @@ -2,7 +2,7 @@ category: Components type: Data Display title: Tooltip -cover: https://gw.alipayobjects.com/zos/alicdn/Vyyeu8jq2/Tooltp.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*3u9eSZO_4c0AAAAAAAAAAAAADrJ8AQ/original --- A simple text popup tip. diff --git a/components/tooltip/index.zh-CN.md b/components/tooltip/index.zh-CN.md index 194241eb2..9edce72d6 100644 --- a/components/tooltip/index.zh-CN.md +++ b/components/tooltip/index.zh-CN.md @@ -3,7 +3,7 @@ category: Components type: 数据展示 title: Tooltip subtitle: 文字提示 -cover: https://gw.alipayobjects.com/zos/alicdn/Vyyeu8jq2/Tooltp.svg +cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*3u9eSZO_4c0AAAAAAAAAAAAADrJ8AQ/original --- 警告提示,展现需要关注的信息。 diff --git a/index-with-locales.js b/index-with-locales.js index 3cb8b9f7d..131ca09cf 100644 --- a/index-with-locales.js +++ b/index-with-locales.js @@ -1,11 +1,11 @@ const antd = require('./components'); -const req = require.context('./components', true, /^\.\/locale\/.+_.+\.tsx$/); +const req = require.context('./components', true, /^\.\/locale\/.+_.+\.tsx?$/); antd.locales = {}; req.keys().forEach(mod => { - const matches = mod.match(/\/([^/]+).tsx$/); + const matches = mod.match(/\/([^/]+).tsx?$/); antd.locales[matches[1]] = req(mod).default; }); diff --git a/package.json b/package.json index 0a8f9d805..f7ef3e06c 100644 --- a/package.json +++ b/package.json @@ -19,14 +19,15 @@ "main": "lib/index.js", "module": "es/index.js", "unpkg": "dist/antd.min.js", - "typings": "lib/index.d.ts", + "typings": "es/index.d.ts", "files": [ "dist", "lib", "es", "scripts", "vetur", - "typings/global.d.ts" + "typings/global.d.ts", + "locale" ], "scripts": { "predev": "npm run version && node node_modules/esbuild/install.js", @@ -66,8 +67,7 @@ "> 0.5%", "last 2 versions", "Firefox ESR", - "not dead", - "not IE 11" + "not dead" ], "repository": { "type": "git", @@ -303,9 +303,7 @@ "*.vue", "*.md", "dist/*", - "es/**/style/*", - "lib/**/style/*", - "*.less" + "*.css" ], "vetur": { "tags": "vetur/tags.json", diff --git a/tsconfig.json b/tsconfig.json index 7b8e0b492..4fe495a19 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,7 +3,9 @@ "baseUrl": "./", "paths": { "ant-design-vue": ["components/index.ts"], - "ant-design-vue/es/*": ["components/*"] + "ant-design-vue/es/*": ["components/*"], + "ant-design-vue/lib/*": ["components/*"], + "ant-design-vue/locale/*": ["components/locale/*"] }, "lib": ["ESNext", "DOM", "DOM.Iterable"], "strictNullChecks": false, @@ -18,7 +20,8 @@ "module": "esnext", "skipLibCheck": true, "allowJs": true, - "importsNotUsedAsValues": "preserve" + "importsNotUsedAsValues": "preserve", + "stripInternal": true }, "exclude": ["node_modules", "lib", "es", "dist", "v2-doc", "scripts", "**/__tests__/**/*"] }