mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-11-29 18:48:32 +08:00
doc: update cover
This commit is contained in:
parent
37b5d02b6d
commit
f3ffcdbc7e
@ -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
|
||||
}
|
||||
}
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
---
|
||||
|
||||
用于跳转到页面指定位置。
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
---
|
||||
|
||||
输入框自动完成功能。
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
---
|
||||
|
||||
用来代表用户或事物,支持图片、图标或字符展示。
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
---
|
||||
|
||||
图标右上角的圆形徽标数字。
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
---
|
||||
|
||||
显示当前页面在系统层级结构中的位置,并能向上返回。
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
---
|
||||
|
||||
按钮用于开始一个即时操作。
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
---
|
||||
|
||||
为组件提供统一的全局化配置。
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
---
|
||||
|
||||
区隔内容的分割线。
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
---
|
||||
|
||||
向下弹出的列表。
|
||||
|
@ -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:
|
||||
|
@ -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` 图标组件包:
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
---
|
||||
|
||||
提及组件。
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
---
|
||||
|
||||
为页面和功能提供导航的菜单列表。
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
---
|
||||
|
||||
全局展示操作反馈信息。
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
---
|
||||
|
||||
模态对话框。
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
---
|
||||
|
||||
全局展示通知提醒信息。
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
---
|
||||
|
||||
点击元素,弹出气泡式的确认框。
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
---
|
||||
|
||||
点击/鼠标移入元素,弹出气泡式的卡片浮层。
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
---
|
||||
|
||||
评分组件。
|
||||
|
@ -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';
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
---
|
||||
|
||||
在需要等待加载内容的位置提供一个占位图形组合。
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
---
|
||||
|
||||
设置组件之间的间距。
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
---
|
||||
|
||||
用于页面和区块的加载中状态。
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
---
|
||||
|
||||
开关选择器。
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
---
|
||||
|
||||
进行标记和分类的小标签。
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
---
|
||||
|
||||
警告提示,展现需要关注的信息。
|
||||
|
@ -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;
|
||||
});
|
||||
|
||||
|
12
package.json
12
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",
|
||||
|
@ -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__/**/*"]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user