diff --git a/build/config.js b/build/config.js index dd8c036d7..2d7f6e9dc 100644 --- a/build/config.js +++ b/build/config.js @@ -1,5 +1,5 @@ module.exports = { dev: { - componentName: 'icon', // dev components + componentName: 'slider', // dev components }, }; diff --git a/components/icon/index.en-US.md b/components/icon/index.en-US.md index fa4798c28..692a3012d 100644 --- a/components/icon/index.en-US.md +++ b/components/icon/index.en-US.md @@ -101,7 +101,7 @@ module.exports = { ``` ```jsx -import { Icon } from 'antd'; +import { Icon } from 'ant-design-vue'; import MessageSvg from 'path/to/message.svg'; // path to your '*.svg' file. new Vue({ diff --git a/components/icon/index.zh-CN.md b/components/icon/index.zh-CN.md index dcc292a11..8f7f4a5f9 100644 --- a/components/icon/index.zh-CN.md +++ b/components/icon/index.zh-CN.md @@ -23,7 +23,7 @@ 更多讨论可参考:[#10353](https://github.com/ant-design/ant-design/issues/10353)。 -> ⚠️ 1.2.0 之后我们全量引入了所有图标,导致 antd 默认的包体积有一定增加,我们会在不远的未来增加新的 API 来实现图标的按需使用,更多相关讨论可关注:[#12011](https://github.com/ant-design/ant-design/issues/12011)。在此之前,你可以通过来自社区同学的 [webpack 插件](https://github.com/Beven91/webpack-ant-icon-loader)将图标文件拆分。 +> ⚠️ 1.2.0 之后我们全量引入了所有图标,导致 ant-design-vue 默认的包体积有一定增加,我们会在不远的未来增加新的 API 来实现图标的按需使用,更多相关讨论可关注:[#12011](https://github.com/ant-design/ant-design/issues/12011)。在此之前,你可以通过来自社区同学的 [webpack 插件](https://github.com/Beven91/webpack-ant-icon-loader)将图标文件拆分。 其中 `theme`, `component`, `twoToneColor` 是 `1.2.x` 版本新增加的属性。最佳实践是给使用的 `` 组件传入属性 `theme` 以明确图标的主题风格。例如: diff --git a/components/slider/__tests__/__snapshots__/demo.test.js.snap b/components/slider/__tests__/__snapshots__/demo.test.js.snap index 7020d63a7..8c5ef3e9c 100644 --- a/components/slider/__tests__/__snapshots__/demo.test.js.snap +++ b/components/slider/__tests__/__snapshots__/demo.test.js.snap @@ -6,15 +6,15 @@ exports[`renders ./components/slider/demo/basic.md correctly 1`] = `
-
+
-
-
+
+
Disabled: @@ -27,15 +27,15 @@ exports[`renders ./components/slider/demo/event.md correctly 1`] = `
-
+
-
-
+
+
@@ -49,14 +49,14 @@ exports[`renders ./components/slider/demo/icon-slider.md correctly 1`] = `
-
+
-
+
-
+
-
+
-
+
@@ -84,16 +84,16 @@ exports[`renders ./components/slider/demo/input-number.md correctly 1`] = `
-
+
-
+
-
+
@@ -110,50 +110,71 @@ exports[`renders ./components/slider/demo/mark.md correctly 1`] = `
-
-
0°C26°C37°C100°C
+
+
0°C26°C37°C100°C
-
-
-
0°C26°C37°C100°C
+
+
+
0°C26°C37°C100°C

included=false

-
-
0°C26°C37°C100°C
+
+
0°C26°C37°C100°C

marks & step

-
-
0°C26°C37°C100°C
+
+
0°C26°C37°C100°C

step=null

-
-
0°C26°C37°C100°C
+
+
0°C26°C37°C100°C
`; +exports[`renders ./components/slider/demo/reverse.md correctly 1`] = ` +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Reversed: +
+`; + exports[`renders ./components/slider/demo/show-tooltip.md correctly 1`] = `
-
+
`; @@ -164,14 +185,14 @@ exports[`renders ./components/slider/demo/tip-formatter.md correctly 1`] = `
-
+
-
+
@@ -179,32 +200,32 @@ exports[`renders ./components/slider/demo/tip-formatter.md correctly 1`] = ` exports[`renders ./components/slider/demo/vertical.md correctly 1`] = `
-
+
-
+
-
+
-
-
+
+
-
+
-
-
+
+
0°C26°C37°C100°C
diff --git a/components/slider/__tests__/__snapshots__/index.test.js.snap b/components/slider/__tests__/__snapshots__/index.test.js.snap index bac9eb631..ffc02983c 100644 --- a/components/slider/__tests__/__snapshots__/index.test.js.snap +++ b/components/slider/__tests__/__snapshots__/index.test.js.snap @@ -2,7 +2,7 @@ exports[`Slider should show tooltip when hovering slider handler 1`] = `
-
+
@@ -13,7 +13,7 @@ exports[`Slider should show tooltip when hovering slider handler 1`] = ` exports[`Slider should show tooltip when hovering slider handler 2`] = `
-