From 749d74e21f64bd73764cc158f9d35aea372a436f Mon Sep 17 00:00:00 2001 From: tanjinzhou <415800467@qq.com> Date: Fri, 20 Mar 2020 18:38:47 +0800 Subject: [PATCH 01/41] fix: table error when use template #1914 --- components/table/Table.jsx | 6 ++++-- components/vc-table/index.js | 7 +++++++ components/vc-table/src/TableHeaderRow.jsx | 6 ++++-- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/components/table/Table.jsx b/components/table/Table.jsx index 4fa86790d..5b13508f1 100755 --- a/components/table/Table.jsx +++ b/components/table/Table.jsx @@ -490,13 +490,15 @@ export default { return getPopupContainer; } // Use undefined to let rc component use default logic. - return scroll && table ? () => table.tableNode : undefined; + return scroll && table ? () => table.getTableNode() : undefined; }, scrollToFirstRow() { const { scroll } = this.$props; if (scroll && scroll.scrollToFirstRowOnChange !== false) { scrollTo(0, { - getContainer: () => this.$refs.vcTable.bodyTable, + getContainer: () => { + return this.$refs.vcTable.getBodyTable(); + }, }); } }, diff --git a/components/vc-table/index.js b/components/vc-table/index.js index 614c47784..57a299952 100644 --- a/components/vc-table/index.js +++ b/components/vc-table/index.js @@ -20,6 +20,12 @@ const Table = { ColumnGroup, props: T.props, methods: { + getTableNode() { + return this.$refs.table.tableNode; + }, + getBodyTable() { + return this.$refs.table.ref_bodyTable; + }, normalize(elements = []) { const columns = []; elements.forEach(element => { @@ -63,6 +69,7 @@ const Table = { columns, }, on: getListeners(this), + ref: 'table', }; return ; }, diff --git a/components/vc-table/src/TableHeaderRow.jsx b/components/vc-table/src/TableHeaderRow.jsx index 107691b05..38c93f839 100644 --- a/components/vc-table/src/TableHeaderRow.jsx +++ b/components/vc-table/src/TableHeaderRow.jsx @@ -51,8 +51,10 @@ const TableHeaderRow = { } headerCellProps.class = classNames( - customProps.class || customProps.className, - column.class || column.className, + customProps.class, + customProps.className, + column.class, + column.className, { [`${prefixCls}-align-${column.align}`]: !!column.align, [`${prefixCls}-row-cell-ellipsis`]: !!column.ellipsis, From a87f5564ccbf3130461127f2ff38de4a85346bcc Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Sat, 21 Mar 2020 16:14:33 +0800 Subject: [PATCH 02/41] fix: weekpicker can not custom trigger picker #1915 --- components/date-picker/WeekPicker.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/date-picker/WeekPicker.jsx b/components/date-picker/WeekPicker.jsx index e1f1e7d5d..550f4e8cf 100644 --- a/components/date-picker/WeekPicker.jsx +++ b/components/date-picker/WeekPicker.jsx @@ -224,10 +224,11 @@ export default { openChange: this.handleOpenChange, }, style: popupStyle, + scopedSlots: { default: input, ...$scopedSlots }, }; return ( - {input} + ); }, From 36d95b18fddbfeb0c0716fce12a7117b39c6886b Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Sat, 21 Mar 2020 17:29:53 +0800 Subject: [PATCH 03/41] fix: input-search custom button not work #1916 --- components/input/Search.jsx | 5 +++-- components/input/__tests__/__snapshots__/demo.test.js.snap | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/components/input/Search.jsx b/components/input/Search.jsx index 62b72fe1a..34d4ac6dd 100644 --- a/components/input/Search.jsx +++ b/components/input/Search.jsx @@ -5,8 +5,8 @@ import Icon from '../icon'; import inputProps from './inputProps'; import Button from '../button'; import { cloneElement } from '../_util/vnode'; -import { getOptionProps, getComponentFromProp, getListeners } from '../_util/props-util'; import PropTypes from '../_util/vue-types'; +import { getOptionProps, getComponentFromProp, getListeners } from '../_util/props-util'; import { ConfigConsumerProps } from '../config-provider'; export default { @@ -18,7 +18,8 @@ export default { }, props: { ...inputProps, - enterButton: PropTypes.any.def(false), + // 不能设置默认值 https://github.com/vueComponent/ant-design-vue/issues/1916 + enterButton: PropTypes.any, }, inject: { configProvider: { default: () => ConfigConsumerProps }, diff --git a/components/input/__tests__/__snapshots__/demo.test.js.snap b/components/input/__tests__/__snapshots__/demo.test.js.snap index 6de4a46b2..958ab7a6f 100644 --- a/components/input/__tests__/__snapshots__/demo.test.js.snap +++ b/components/input/__tests__/__snapshots__/demo.test.js.snap @@ -56,7 +56,7 @@ exports[`renders ./antdv-demo/docs/input/demo/password-input.md correctly 1`] = exports[`renders ./antdv-demo/docs/input/demo/presuffix.md correctly 1`] = `


RMB
`; -exports[`renders ./antdv-demo/docs/input/demo/search-input.md correctly 1`] = `






`; +exports[`renders ./antdv-demo/docs/input/demo/search-input.md correctly 1`] = `






`; exports[`renders ./antdv-demo/docs/input/demo/search-input-loading.md correctly 1`] = `


`; From 60bb3ae50c06255a3d150afa7a13d84121c0d500 Mon Sep 17 00:00:00 2001 From: Amour1688 <31695475+Amour1688@users.noreply.github.com> Date: Mon, 23 Mar 2020 11:00:24 +0800 Subject: [PATCH 04/41] chore: simple demo (#1918) --- examples/App.vue | 26 ++++++++++++ examples/index.html | 81 +++++++++++++++++++++++++++++++++++ examples/index.js | 11 +++++ package.json | 8 +--- webpack.config.js | 100 ++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 220 insertions(+), 6 deletions(-) create mode 100644 examples/App.vue create mode 100644 examples/index.html create mode 100644 examples/index.js create mode 100644 webpack.config.js diff --git a/examples/App.vue b/examples/App.vue new file mode 100644 index 000000000..b65964f0e --- /dev/null +++ b/examples/App.vue @@ -0,0 +1,26 @@ + + + diff --git a/examples/index.html b/examples/index.html new file mode 100644 index 000000000..926b1c727 --- /dev/null +++ b/examples/index.html @@ -0,0 +1,81 @@ + + + + + + + + + + + Ant Design Vue + + + + + + + +
+ + + + + + + diff --git a/examples/index.js b/examples/index.js new file mode 100644 index 000000000..2b0f85e96 --- /dev/null +++ b/examples/index.js @@ -0,0 +1,11 @@ +import 'babel-polyfill'; +import Vue from 'vue'; +import App from './App.vue'; +import { Button } from 'ant-design-vue'; + +Vue.use(Button); + +new Vue({ + el: '#app', + render: h => h(App), +}); diff --git a/package.json b/package.json index 51612cbfb..49f98e5b5 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "scripts" ], "scripts": { - "dev": "node build/dev.js", + "dev": "webpack-dev-server", "start": "cross-env PORT=3001 NODE_ENV=development webpack-dev-server --config build/webpack.dev.conf.js", "test": "cross-env NODE_ENV=test jest --config .jest.js", "compile": "node antd-tools/cli/run.js compile", @@ -109,7 +109,6 @@ "gulp": "^4.0.1", "gulp-babel": "^7.0.0", "gulp-strip-code": "^0.1.4", - "highlight.js": "^9.12.0", "html-webpack-plugin": "^3.2.0", "husky": "^4.0.0", "istanbul-instrumenter-loader": "^3.0.0", @@ -123,8 +122,6 @@ "less-loader": "^5.0.0", "less-plugin-npm-import": "^2.1.0", "lint-staged": "^10.0.0", - "markdown-it": "^10.0.0", - "markdown-it-anchor": "^5.0.0", "marked": "0.3.18", "merge2": "^1.2.1", "mini-css-extract-plugin": "^0.9.0", @@ -137,7 +134,6 @@ "postcss-loader": "^3.0.0", "prettier": "^1.18.2", "pretty-quick": "^2.0.0", - "prismjs": "^1.19.0", "querystring": "^0.2.0", "raw-loader": "^4.0.0", "reqwest": "^2.0.5", @@ -215,4 +211,4 @@ "lib/**/style/*", "*.less" ] -} +} \ No newline at end of file diff --git a/webpack.config.js b/webpack.config.js new file mode 100644 index 000000000..a7cf884b6 --- /dev/null +++ b/webpack.config.js @@ -0,0 +1,100 @@ +const HtmlWebpackPlugin = require('html-webpack-plugin'); +const VueLoaderPlugin = require('vue-loader/lib/plugin'); +const webpack = require('webpack'); +const WebpackBar = require('webpackbar'); +const path = require('path'); + +module.exports = { + mode: 'development', + entry: { + app: './examples/index.js', + }, + module: { + rules: [ + { + test: /\.vue$/, + loader: 'vue-loader', + }, + { + test: /\.(js|jsx)$/, + loader: 'babel-loader', + options: { + presets: [ + [ + 'env', + { + targets: { + browsers: [ + 'last 2 versions', + 'Firefox ESR', + '> 1%', + 'ie >= 9', + 'iOS >= 8', + 'Android >= 4', + ], + }, + }, + ], + ], + plugins: [ + // libraryDirectory is "", because webpack alias doesn't seem to allow '/' + ['import', { libraryName: 'ant-design-vue', style: true, libraryDirectory: '' }], + 'transform-vue-jsx', + 'transform-object-assign', + 'transform-object-rest-spread', + 'transform-class-properties', + ], + }, + }, + { + test: /\.(png|jpg|gif|svg)$/, + loader: 'file-loader', + options: { + name: '[name].[ext]?[hash]', + }, + }, + { + test: /\.less$/, + use: [ + { loader: 'vue-style-loader' }, + { + loader: 'css-loader', + options: { sourceMap: true }, + }, + { loader: 'less-loader', options: { sourceMap: true, javascriptEnabled: true } }, + ], + }, + { + test: /\.css$/, + use: ['vue-style-loader', 'css-loader'], + }, + ], + }, + resolve: { + alias: { + 'ant-design-vue': path.join(__dirname, './components'), + }, + extensions: ['.js', '.jsx', '.vue'], + }, + devServer: { + host: 'localhost', + port: 3000, + historyApiFallback: { + rewrites: [{ from: /./, to: '/index.html' }], + }, + disableHostCheck: true, + hot: true, + open: true, + }, + devtool: '#source-map', + plugins: [ + new webpack.HotModuleReplacementPlugin(), + new HtmlWebpackPlugin({ + template: 'examples/index.html', + filename: 'index.html', + inject: true, + }), + new VueLoaderPlugin(), + new WebpackBar(), + ], +}; From 4f4f2a62dbc35ef37e6a78c8428570bf2e2799c1 Mon Sep 17 00:00:00 2001 From: tanjinzhou <415800467@qq.com> Date: Tue, 24 Mar 2020 17:48:04 +0800 Subject: [PATCH 05/41] fix: table expandIcon not work #1937 --- components/table/Table.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/table/Table.jsx b/components/table/Table.jsx index 5b13508f1..5fed3809a 100755 --- a/components/table/Table.jsx +++ b/components/table/Table.jsx @@ -1209,8 +1209,8 @@ export default { const vcTableProps = { key: 'table', props: { - ...restProps, expandIcon: this.renderExpandIcon(prefixCls), + ...restProps, customRow: (record, index) => this.onRow(prefixCls, record, index), components: this.sComponents, prefixCls, From ff812128e5276707727645dfaa1a40fa0473d540 Mon Sep 17 00:00:00 2001 From: tanjinzhou <415800467@qq.com> Date: Tue, 24 Mar 2020 17:48:41 +0800 Subject: [PATCH 06/41] style: scripts eslint --- scripts/syncStyleFromAntd.js | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/syncStyleFromAntd.js b/scripts/syncStyleFromAntd.js index d5def3630..6ec1019b4 100644 --- a/scripts/syncStyleFromAntd.js +++ b/scripts/syncStyleFromAntd.js @@ -30,6 +30,7 @@ async function syncFiles(data = []) { if (!fs.existsSync(toPath)) { fse.ensureDirSync(toPath); } + // eslint-disable-next-line no-console console.log('update style: ', path.join(toPath, itemData.name.replace('.tsx', '.js'))); const content = Base64.decode(itemData.content); fs.writeFileSync(path.join(toPath, itemData.name.replace('.tsx', '.js')), content); From 185241472aefdbd38433847eb5e17edd965907a8 Mon Sep 17 00:00:00 2001 From: tanjinzhou <415800467@qq.com> Date: Tue, 24 Mar 2020 18:33:19 +0800 Subject: [PATCH 07/41] chore: update dev config --- examples/index.html | 51 --------------------------------------------- examples/index.js | 5 +++-- webpack.config.js | 2 -- 3 files changed, 3 insertions(+), 55 deletions(-) diff --git a/examples/index.html b/examples/index.html index 926b1c727..4f11be55b 100644 --- a/examples/index.html +++ b/examples/index.html @@ -22,60 +22,9 @@ display: none; } -
- - - - - diff --git a/examples/index.js b/examples/index.js index 2b0f85e96..b678b8d03 100644 --- a/examples/index.js +++ b/examples/index.js @@ -1,9 +1,10 @@ import 'babel-polyfill'; import Vue from 'vue'; import App from './App.vue'; -import { Button } from 'ant-design-vue'; +import Antd from 'ant-design-vue'; +import 'ant-design-vue/style.js'; -Vue.use(Button); +Vue.use(Antd); new Vue({ el: '#app', diff --git a/webpack.config.js b/webpack.config.js index a7cf884b6..e6c8875c5 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -37,8 +37,6 @@ module.exports = { ], ], plugins: [ - // libraryDirectory is "", because webpack alias doesn't seem to allow '/' - ['import', { libraryName: 'ant-design-vue', style: true, libraryDirectory: '' }], 'transform-vue-jsx', 'transform-object-assign', 'transform-object-rest-spread', From 0036db2ea6c10abbf5fb6ff5818b46f767e4cfd5 Mon Sep 17 00:00:00 2001 From: XiongAmao Date: Thu, 26 Mar 2020 11:46:59 +0800 Subject: [PATCH 08/41] fix(types): update [message] types (#1933) --- types/message.d.ts | 42 +++++++++++++++++++++++++++++++----------- 1 file changed, 31 insertions(+), 11 deletions(-) diff --git a/types/message.d.ts b/types/message.d.ts index ef82d6950..46bb4a495 100644 --- a/types/message.d.ts +++ b/types/message.d.ts @@ -2,12 +2,26 @@ // Definitions by: akki-jat // Definitions: https://github.com/vueComponent/ant-design-vue/types +import { VNode, CreateElement } from 'vue' + +export interface ThenableArgument { + (val: any): void; +} +export interface MessageType { + (): void; + then: (fill: ThenableArgument, reject: ThenableArgument) => Promise; + promise: Promise; +} +export type ConfigType = string | VNode | ((h: CreateElement) => VNode); +export type ConfigDuration = number | (() => void); +export type ConfigOnClose = () => void; + export interface MessageOptions { /** * content of the message * @type any (string | VNode | (h) => VNode) */ - content: any; + content: ConfigType; /** * time(seconds) before auto-dismiss, don't dismiss if set to 0 @@ -26,13 +40,13 @@ export interface MessageOptions { * Customized Icon * @type any (string | VNode | (h) => VNode) */ - icon?: any; + icon?: ConfigType; /** * Specify a function that will be called when the message is closed * @type Function */ - onClose?: () => void; + onClose?: ConfigOnClose; key?: string | number; } @@ -65,14 +79,20 @@ export interface MessageConfigOptions { top?: string; } -export declare class Message { - success(content: any, duration?: number, onClose?: () => void): Promise; - warning(content: any, duration?: number, onClose?: () => void): Promise; - warn(content: any, duration?: number, onClose?: () => void): Promise; - info(content: any, duration?: number, onClose?: () => void): Promise; - error(content: any, duration?: number, onClose?: () => void): Promise; - loading(content: any, duration?: number, onClose?: () => void): Promise; - open: (config: MessageOptions) => Promise; +export declare interface Message { + success(content: MessageOptions): MessageType; + success(content: ConfigType, duration?: ConfigDuration, onClose?: ConfigOnClose): MessageType; + warning(content: MessageOptions): MessageType; + warning(content: ConfigType, duration?: ConfigDuration, onClose?: ConfigOnClose): MessageType; + warn(content: MessageOptions): MessageType; + warn(content: ConfigType, duration?: ConfigDuration, onClose?: ConfigOnClose): MessageType; + info(content: MessageOptions): MessageType; + info(content: ConfigType, duration?: ConfigDuration, onClose?: ConfigOnClose): MessageType; + error(content: MessageOptions): MessageType; + error(content: ConfigType, duration?: ConfigDuration, onClose?: ConfigOnClose): MessageType; + loading(content: MessageOptions): MessageType; + loading(content: ConfigType, duration?: ConfigDuration, onClose?: ConfigOnClose): MessageType; + open: (config: MessageOptions) => MessageType; config: (options: MessageConfigOptions) => void; destroy: () => void; } From ff9f408879b939455c97b1fd8918ff2058e9a36e Mon Sep 17 00:00:00 2001 From: tanjinzhou <415800467@qq.com> Date: Thu, 26 Mar 2020 17:24:13 +0800 Subject: [PATCH 09/41] fix: tabs keydown event trigger twice #1947 --- components/_util/vnode.js | 10 ++++++---- components/tabs/TabBar.jsx | 29 +++++++++++++++++++++++------ components/tabs/tabs.jsx | 7 +------ 3 files changed, 30 insertions(+), 16 deletions(-) diff --git a/components/_util/vnode.js b/components/_util/vnode.js index 9cc6cd6d8..c39e87a57 100644 --- a/components/_util/vnode.js +++ b/components/_util/vnode.js @@ -1,5 +1,6 @@ import { filterEmpty, parseStyleText } from './props-util'; import classNames from 'classnames'; +import { warning } from '../vc-util/warning'; export function cloneVNode(vnode, deep) { const componentOptions = vnode.componentOptions; @@ -62,6 +63,11 @@ export function cloneElement(n, nodeProps = {}, deep) { return null; } const node = cloneVNode(ele, deep); + // 函数式组件不支持clone https://github.com/vueComponent/ant-design-vue/pull/1947 + warning( + !(node.fnOptions && node.fnOptions.functional), + `can not use cloneElement for functional component (${node.tag})`, + ); const { props = {}, key, on = {}, children, directives = [] } = nodeProps; const data = node.data || {}; let cls = {}; @@ -127,10 +133,6 @@ export function cloneElement(n, nodeProps = {}, deep) { node.data.on = { ...(node.data.on || {}), ...on }; } - if (node.fnOptions && node.fnOptions.functional) { - node.data.on = { ...(node.data.on || {}), ...on }; - } - if (key !== undefined) { node.key = key; node.data.key = key; diff --git a/components/tabs/TabBar.jsx b/components/tabs/TabBar.jsx index aba267d77..17b3f0cf3 100644 --- a/components/tabs/TabBar.jsx +++ b/components/tabs/TabBar.jsx @@ -1,9 +1,25 @@ import Icon from '../icon'; import ScrollableInkTabBar from '../vc-tabs/src/ScrollableInkTabBar'; import { cloneElement } from '../_util/vnode'; +import PropTypes from '../_util/vue-types'; +import { getListeners } from '../_util/props-util'; const TabBar = { - functional: true, - render(h, context) { + name: 'TabBar', + inheritAttrs: false, + props: { + prefixCls: PropTypes.string, + tabBarStyle: PropTypes.object, + tabBarExtraContent: PropTypes.any, + type: PropTypes.oneOf(['line', 'card', 'editable-card']), + tabPosition: PropTypes.oneOf(['top', 'right', 'bottom', 'left']).def('top'), + tabBarPosition: PropTypes.oneOf(['top', 'right', 'bottom', 'left']), + size: PropTypes.oneOf(['default', 'small', 'large']), + animated: PropTypes.oneOfType([PropTypes.bool, PropTypes.object]), + renderTabBar: PropTypes.func, + panels: PropTypes.array.def([]), + activeKey: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), + }, + render() { const { tabBarStyle, animated = true, @@ -13,7 +29,7 @@ const TabBar = { prefixCls, type = 'line', size, - } = context.props; + } = this.$props; const inkBarAnimated = typeof animated === 'object' ? animated.inkBar : animated; const isVertical = tabPosition === 'left' || tabPosition === 'right'; @@ -39,14 +55,15 @@ const TabBar = { const renderProps = { props: { - ...context.props, + ...this.$props, + ...this.$attrs, inkBarAnimated, extraContent: tabBarExtraContent, prevIcon, nextIcon, }, style: tabBarStyle, - on: context.listeners, + on: getListeners(this), class: cls, }; @@ -58,7 +75,7 @@ const TabBar = { RenderTabBar = ; } - return cloneElement(RenderTabBar, renderProps); + return cloneElement(RenderTabBar); }, }; diff --git a/components/tabs/tabs.jsx b/components/tabs/tabs.jsx index 2d04e94cd..933012779 100644 --- a/components/tabs/tabs.jsx +++ b/components/tabs/tabs.jsx @@ -26,12 +26,7 @@ export default { defaultActiveKey: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), hideAdd: PropTypes.bool.def(false), tabBarStyle: PropTypes.object, - tabBarExtraContent: PropTypes.oneOfType([ - PropTypes.string, - PropTypes.number, - PropTypes.func, - PropTypes.array, - ]), + tabBarExtraContent: PropTypes.any, destroyInactiveTabPane: PropTypes.bool.def(false), type: PropTypes.oneOf(['line', 'card', 'editable-card']), tabPosition: PropTypes.oneOf(['top', 'right', 'bottom', 'left']).def('top'), From e249b085d23366b99cd23e2b425d7f9a48ddd131 Mon Sep 17 00:00:00 2001 From: tanjinzhou <415800467@qq.com> Date: Thu, 26 Mar 2020 17:25:10 +0800 Subject: [PATCH 10/41] refactor: icon to normal component #1947 --- components/icon/index.js | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/components/icon/index.js b/components/icon/index.js index c7d5cf488..47205c834 100644 --- a/components/icon/index.js +++ b/components/icon/index.js @@ -13,7 +13,7 @@ import { import warning from '../_util/warning'; import LocaleReceiver from '../locale-provider/LocaleReceiver'; import { getTwoToneColor, setTwoToneColor } from './twoTonePrimaryColor'; -import { filterEmpty, getClass } from '../_util/props-util'; +import { filterEmpty, getListeners } from '../_util/props-util'; import Base from '../base'; // Initial setting @@ -23,7 +23,8 @@ const defaultTheme = 'outlined'; let dangerousTheme; function renderIcon(h, locale, context) { - const { props, slots, listeners, data } = context; + const { $props: props, $slots } = context; + const listeners = getListeners(context); const { // affect inner ... type, @@ -36,8 +37,7 @@ function renderIcon(h, locale, context) { rotate, tabIndex, } = props; - const slotsMap = slots(); - let children = filterEmpty(slotsMap.default); + let children = filterEmpty($slots.default); children = children.length === 0 ? undefined : children; warning( Boolean(type || Component || children), @@ -46,7 +46,6 @@ function renderIcon(h, locale, context) { ); const classString = classNames({ - ...getClass(context), [`anticon`]: true, [`anticon-${type}`]: !!type, }); @@ -131,16 +130,13 @@ function renderIcon(h, locale, context) { if (iconTabIndex === undefined && 'click' in listeners) { iconTabIndex = -1; } - const { attrs, ...restDataProps } = data; // functional component not support nativeOn,https://github.com/vuejs/vue/issues/7526 const iProps = { - ...restDataProps, attrs: { - ...attrs, 'aria-label': type && `${locale.icon}: ${type}`, tabIndex: iconTabIndex, }, - on: { ...listeners, ...data.nativeOn }, + on: listeners, class: classString, staticClass: '', }; @@ -148,7 +144,6 @@ function renderIcon(h, locale, context) { } const Icon = { - functional: true, name: 'AIcon', props: { tabIndex: PropTypes.number, @@ -161,11 +156,11 @@ const Icon = { twoToneColor: PropTypes.string, role: PropTypes.string, }, - render(h, context) { + render(h) { return ( renderIcon(h, locale, context) }} + scopedSlots={{ default: locale => renderIcon(h, locale, this) }} /> ); }, From e5f0a5f7e187d0451b4a417f06457bde8a5ee540 Mon Sep 17 00:00:00 2001 From: tanjinzhou <415800467@qq.com> Date: Thu, 26 Mar 2020 17:26:23 +0800 Subject: [PATCH 11/41] fix: countdown remove cloneElement --- components/locale-provider/LocaleReceiver.jsx | 1 + components/statistic/Countdown.jsx | 9 +-------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/components/locale-provider/LocaleReceiver.jsx b/components/locale-provider/LocaleReceiver.jsx index 2d659ce94..0251b7042 100644 --- a/components/locale-provider/LocaleReceiver.jsx +++ b/components/locale-provider/LocaleReceiver.jsx @@ -2,6 +2,7 @@ import PropTypes from '../_util/vue-types'; import defaultLocaleData from './default'; export default { + name: 'LocaleReceiver', props: { componentName: PropTypes.string.def('global'), defaultLocale: PropTypes.oneOfType([PropTypes.object, PropTypes.func]), diff --git a/components/statistic/Countdown.jsx b/components/statistic/Countdown.jsx index e333e61e6..79137efdb 100644 --- a/components/statistic/Countdown.jsx +++ b/components/statistic/Countdown.jsx @@ -1,6 +1,5 @@ import * as moment from 'moment'; import interopDefault from '../_util/interopDefault'; -import { cloneElement } from '../_util/vnode'; import { initDefaultProps, getListeners } from '../_util/props-util'; import Statistic, { StatisticProps } from './Statistic'; import { formatCountdown } from './utils'; @@ -70,13 +69,7 @@ export default { return formatCountdown(value, { ...config, format }); }, - // Countdown do not need display the timestamp - valueRenderHtml: node => - cloneElement(node, { - props: { - title: undefined, - }, - }), + valueRenderHtml: node => node, }, render() { From caabe4208f2ada4b41c35b10012a0b056d6a9b3e Mon Sep 17 00:00:00 2001 From: tanjinzhou <415800467@qq.com> Date: Thu, 26 Mar 2020 17:26:53 +0800 Subject: [PATCH 12/41] test: update snapshots --- .../__tests__/__snapshots__/demo.test.js.snap | 38 +- .../__tests__/__snapshots__/demo.test.js.snap | 16 +- .../__tests__/__snapshots__/demo.test.js.snap | 2 +- .../__tests__/__snapshots__/demo.test.js.snap | 2 +- .../__tests__/__snapshots__/demo.test.js.snap | 20 +- .../__snapshots__/index.test.js.snap | 4 +- .../__tests__/__snapshots__/demo.test.js.snap | 4 +- .../__tests__/__snapshots__/demo.test.js.snap | 30 +- .../__snapshots__/index.test.js.snap | 4 +- .../__tests__/__snapshots__/demo.test.js.snap | 8 +- .../__snapshots__/DatePicker.test.js.snap | 2 +- .../__tests__/__snapshots__/demo.test.js.snap | 24 +- .../__snapshots__/other.test.js.snap | 6 +- .../__tests__/__snapshots__/demo.test.js.snap | 2 +- .../__tests__/__snapshots__/demo.test.js.snap | 6 +- .../__tests__/__snapshots__/demo.test.js.snap | 12 +- .../__tests__/__snapshots__/demo.test.js.snap | 56 +- .../__snapshots__/index.test.js.snap | 6 +- .../__tests__/__snapshots__/demo.test.js.snap | 16 +- .../__tests__/__snapshots__/demo.test.js.snap | 32 +- .../__snapshots__/index.test.js.snap | 2 +- .../__tests__/__snapshots__/demo.test.js.snap | 12 +- .../__snapshots__/index.test.js.snap | 618 +++++++++--------- .../__snapshots__/Modal.test.js.snap | 6 +- .../__tests__/__snapshots__/demo.test.js.snap | 4 +- .../__tests__/__snapshots__/demo.test.js.snap | 22 +- .../__tests__/__snapshots__/demo.test.js.snap | 20 +- .../__tests__/__snapshots__/demo.test.js.snap | 38 +- .../__snapshots__/index.test.js.snap | 2 +- .../__tests__/__snapshots__/demo.test.js.snap | 4 +- .../__tests__/__snapshots__/demo.test.js.snap | 2 +- .../__tests__/__snapshots__/demo.test.js.snap | 28 +- .../__tests__/__snapshots__/demo.test.js.snap | 6 +- .../__snapshots__/Table.filter.test.js.snap | 2 +- .../__snapshots__/Table.sorter.test.js.snap | 2 +- .../__tests__/__snapshots__/demo.test.js.snap | 42 +- .../__tests__/__snapshots__/demo.test.js.snap | 46 +- .../__snapshots__/index.test.js.snap | 2 +- .../__tests__/__snapshots__/demo.test.js.snap | 26 +- .../__snapshots__/index.test.js.snap | 2 +- .../__tests__/__snapshots__/demo.test.js.snap | 8 +- .../__tests__/__snapshots__/demo.test.js.snap | 10 +- .../__tests__/__snapshots__/demo.test.js.snap | 80 +-- .../__tests__/__snapshots__/demo.test.js.snap | 26 +- .../__snapshots__/uploadlist.test.js.snap | 22 +- 45 files changed, 661 insertions(+), 661 deletions(-) diff --git a/components/alert/__tests__/__snapshots__/demo.test.js.snap b/components/alert/__tests__/__snapshots__/demo.test.js.snap index 43f07c28d..f626bc6e3 100644 --- a/components/alert/__tests__/__snapshots__/demo.test.js.snap +++ b/components/alert/__tests__/__snapshots__/demo.test.js.snap @@ -2,16 +2,16 @@ exports[`renders ./antdv-demo/docs/alert/demo/banner.md correctly 1`] = `
-
Warning text

-
Very long warning text warning text text text text text text text

Warning text without icon

-
Error text
@@ -35,14 +35,14 @@ exports[`renders ./antdv-demo/docs/alert/demo/close-text.md correctly 1`] = `
showIcon = false
-
Success Tips
-
Informational Notes
-
Warning
-
Error
-
Success TipsDetailed description and advices about successful copywriting.
-
Informational NotesAdditional description and informations about copywriting.
-
WarningThis is a warning notice about copywriting.
-
ErrorThis is an error message about copywriting.
+
Success Tips
+
Informational Notes
+
Warning
+
Error
+
Success TipsDetailed description and advices about successful copywriting.
+
Informational NotesAdditional description and informations about copywriting.
+
WarningThis is a warning notice about copywriting.
+
ErrorThis is an error message about copywriting.
`; @@ -59,31 +59,31 @@ exports[`renders ./antdv-demo/docs/alert/demo/description.md correctly 1`] = ` exports[`renders ./antdv-demo/docs/alert/demo/icon.md correctly 1`] = `
-
Success Tips
-
Informational Notes
-
Warning
-
Error
-
Success TipsDetailed description and advices about successful copywriting.
-
Informational NotesAdditional description and informations about copywriting.
-
WarningThis is a warning notice about copywriting.
-
ErrorThis is an error message about copywriting.
diff --git a/components/auto-complete/__tests__/__snapshots__/demo.test.js.snap b/components/auto-complete/__tests__/__snapshots__/demo.test.js.snap index 6a9007cd3..068c81990 100644 --- a/components/auto-complete/__tests__/__snapshots__/demo.test.js.snap +++ b/components/auto-complete/__tests__/__snapshots__/demo.test.js.snap @@ -10,7 +10,7 @@ exports[`renders ./antdv-demo/docs/auto-complete/demo/basic.md correctly 1`] = `
 
-
+


+
@@ -34,10 +34,10 @@ exports[`renders ./antdv-demo/docs/auto-complete/demo/certain-category.md correc
-
+
@@ -52,7 +52,7 @@ exports[`renders ./antdv-demo/docs/auto-complete/demo/custom.md correctly 1`] =
 
- + `; @@ -66,7 +66,7 @@ exports[`renders ./antdv-demo/docs/auto-complete/demo/non-case-sensitive.md corr
 
- + `; @@ -80,7 +80,7 @@ exports[`renders ./antdv-demo/docs/auto-complete/demo/options.md correctly 1`] =
 
- + `; @@ -95,7 +95,7 @@ exports[`renders ./antdv-demo/docs/auto-complete/demo/uncertain-category.md corr
 
- + diff --git a/components/avatar/__tests__/__snapshots__/demo.test.js.snap b/components/avatar/__tests__/__snapshots__/demo.test.js.snap index cb58d6b15..4986a14ff 100644 --- a/components/avatar/__tests__/__snapshots__/demo.test.js.snap +++ b/components/avatar/__tests__/__snapshots__/demo.test.js.snap @@ -11,4 +11,4 @@ exports[`renders ./antdv-demo/docs/avatar/demo/basic.md correctly 1`] = ` exports[`renders ./antdv-demo/docs/avatar/demo/dynamic.md correctly 1`] = `
U
`; -exports[`renders ./antdv-demo/docs/avatar/demo/type.md correctly 1`] = `
U USER U
`; +exports[`renders ./antdv-demo/docs/avatar/demo/type.md correctly 1`] = `
U USER U
`; diff --git a/components/badge/__tests__/__snapshots__/demo.test.js.snap b/components/badge/__tests__/__snapshots__/demo.test.js.snap index 91d2a51b0..e2f48a52e 100644 --- a/components/badge/__tests__/__snapshots__/demo.test.js.snap +++ b/components/badge/__tests__/__snapshots__/demo.test.js.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`renders ./antdv-demo/docs/badge/demo/basic.md correctly 1`] = `

0

1

2

3

4

5

6

7

8

9

0

1

2

3

4

5

6

7

8

9

0

1

2

3

4

5

6

7

8

9

0

1

2

3

4

5

6

7

8

9

0

1

2

3

4

5

6

7

8

9

0

1

2

3

4

5

6

7

8

9

`; +exports[`renders ./antdv-demo/docs/badge/demo/basic.md correctly 1`] = `

0

1

2

3

4

5

6

7

8

9

0

1

2

3

4

5

6

7

8

9

0

1

2

3

4

5

6

7

8

9

0

1

2

3

4

5

6

7

8

9

0

1

2

3

4

5

6

7

8

9

0

1

2

3

4

5

6

7

8

9

`; exports[`renders ./antdv-demo/docs/badge/demo/change.md correctly 1`] = `
diff --git a/components/calendar/__tests__/__snapshots__/demo.test.js.snap b/components/calendar/__tests__/__snapshots__/demo.test.js.snap index c8c7396c8..124d87bb1 100644 --- a/components/calendar/__tests__/__snapshots__/demo.test.js.snap +++ b/components/calendar/__tests__/__snapshots__/demo.test.js.snap @@ -7,14 +7,14 @@ exports[`renders ./antdv-demo/docs/calendar/demo/basic.md correctly 1`] = `
2016
-
+
Nov
-
+
@@ -313,14 +313,14 @@ exports[`renders ./antdv-demo/docs/calendar/demo/card.md correctly 1`] = `
2016
-
+
Nov
-
+
@@ -619,14 +619,14 @@ exports[`renders ./antdv-demo/docs/calendar/demo/notice-calendar.md correctly 1`
2016
-
+
Nov
-
+
@@ -1032,14 +1032,14 @@ exports[`renders ./antdv-demo/docs/calendar/demo/select.md correctly 1`] = `
2017
-
+
Jan
-
+
@@ -1336,14 +1336,14 @@ exports[`renders ./antdv-demo/docs/calendar/demo/select.md correctly 1`] = `
2017
-
+
Jan
-
+
diff --git a/components/calendar/__tests__/__snapshots__/index.test.js.snap b/components/calendar/__tests__/__snapshots__/index.test.js.snap index a2f3f95aa..276ec6a39 100644 --- a/components/calendar/__tests__/__snapshots__/index.test.js.snap +++ b/components/calendar/__tests__/__snapshots__/index.test.js.snap @@ -7,14 +7,14 @@ exports[`Calendar Calendar should support locale 1`] = `
2018年
-
+
Oct
-
+
diff --git a/components/card/__tests__/__snapshots__/demo.test.js.snap b/components/card/__tests__/__snapshots__/demo.test.js.snap index b3c5203b5..c5a0104f0 100644 --- a/components/card/__tests__/__snapshots__/demo.test.js.snap +++ b/components/card/__tests__/__snapshots__/demo.test.js.snap @@ -258,7 +258,7 @@ exports[`renders ./antdv-demo/docs/card/demo/tabs.md correctly 1`] = `
-
+
@@ -293,7 +293,7 @@ exports[`renders ./antdv-demo/docs/card/demo/tabs.md correctly 1`] = `
-
+
diff --git a/components/cascader/__tests__/__snapshots__/demo.test.js.snap b/components/cascader/__tests__/__snapshots__/demo.test.js.snap index 237c562f2..10d9c0437 100644 --- a/components/cascader/__tests__/__snapshots__/demo.test.js.snap +++ b/components/cascader/__tests__/__snapshots__/demo.test.js.snap @@ -1,13 +1,13 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`renders ./antdv-demo/docs/cascader/demo/basic.md correctly 1`] = ` - `; exports[`renders ./antdv-demo/docs/cascader/demo/change-on-select.md correctly 1`] = ` - `; @@ -19,9 +19,9 @@ exports[`renders ./antdv-demo/docs/cascader/demo/custom-render.md correctly 1`] Hangzhou / West Lake (752100) - `; @@ -33,55 +33,55 @@ exports[`renders ./antdv-demo/docs/cascader/demo/custom-trigger.md correctly 1`] `; exports[`renders ./antdv-demo/docs/cascader/demo/default-value.md correctly 1`] = ` -Zhejiang / Hangzhou / West LakeZhejiang / Hangzhou / West Lake `; exports[`renders ./antdv-demo/docs/cascader/demo/disabled-option.md correctly 1`] = ` - `; exports[`renders ./antdv-demo/docs/cascader/demo/fields-name.md correctly 1`] = ` - `; exports[`renders ./antdv-demo/docs/cascader/demo/hover.md correctly 1`] = ` - `; exports[`renders ./antdv-demo/docs/cascader/demo/lazy.md correctly 1`] = ` - `; exports[`renders ./antdv-demo/docs/cascader/demo/search.md correctly 1`] = ` - `; exports[`renders ./antdv-demo/docs/cascader/demo/size.md correctly 1`] = ` -










`; exports[`renders ./antdv-demo/docs/cascader/demo/suffix.md correctly 1`] = ` -
ab
`; diff --git a/components/cascader/__tests__/__snapshots__/index.test.js.snap b/components/cascader/__tests__/__snapshots__/index.test.js.snap index 02350581d..aec11236d 100644 --- a/components/cascader/__tests__/__snapshots__/index.test.js.snap +++ b/components/cascader/__tests__/__snapshots__/index.test.js.snap @@ -95,9 +95,9 @@ exports[`Cascader popup correctly with defaultValue 1`] = ` `; exports[`Cascader support controlled mode 1`] = ` -Zhejiang / Hangzhou / West LakeZhejiang / Hangzhou / West Lake `; diff --git a/components/collapse/__tests__/__snapshots__/demo.test.js.snap b/components/collapse/__tests__/__snapshots__/demo.test.js.snap index 161dfbb4d..59e673b22 100644 --- a/components/collapse/__tests__/__snapshots__/demo.test.js.snap +++ b/components/collapse/__tests__/__snapshots__/demo.test.js.snap @@ -118,7 +118,7 @@ exports[`renders ./antdv-demo/docs/collapse/demo/extra.md correctly 1`] = `
This is panel header 1
This is panel header 1
@@ -131,7 +131,7 @@ exports[`renders ./antdv-demo/docs/collapse/demo/extra.md correctly 1`] = `
This is panel header 2
This is panel header 2
@@ -140,7 +140,7 @@ exports[`renders ./antdv-demo/docs/collapse/demo/extra.md correctly 1`] = `
This is panel header 3
This is panel header 3
@@ -151,7 +151,7 @@ exports[`renders ./antdv-demo/docs/collapse/demo/extra.md correctly 1`] = `
left
-
+
diff --git a/components/date-picker/__tests__/__snapshots__/DatePicker.test.js.snap b/components/date-picker/__tests__/__snapshots__/DatePicker.test.js.snap index 7a44dd87b..88c48051a 100644 --- a/components/date-picker/__tests__/__snapshots__/DatePicker.test.js.snap +++ b/components/date-picker/__tests__/__snapshots__/DatePicker.test.js.snap @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`DatePicker prop locale should works 1`] = `
`; +exports[`DatePicker prop locale should works 1`] = `
`; diff --git a/components/date-picker/__tests__/__snapshots__/demo.test.js.snap b/components/date-picker/__tests__/__snapshots__/demo.test.js.snap index ed95ad06a..ffce69d8c 100644 --- a/components/date-picker/__tests__/__snapshots__/demo.test.js.snap +++ b/components/date-picker/__tests__/__snapshots__/demo.test.js.snap @@ -1,37 +1,37 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`renders ./antdv-demo/docs/date-picker/demo/basic.md correctly 1`] = `


~
`; +exports[`renders ./antdv-demo/docs/date-picker/demo/basic.md correctly 1`] = `


~
`; -exports[`renders ./antdv-demo/docs/date-picker/demo/date-render.md correctly 1`] = `
~
`; +exports[`renders ./antdv-demo/docs/date-picker/demo/date-render.md correctly 1`] = `
~
`; -exports[`renders ./antdv-demo/docs/date-picker/demo/disabled.md correctly 1`] = `


~
`; +exports[`renders ./antdv-demo/docs/date-picker/demo/disabled.md correctly 1`] = `


~
`; -exports[`renders ./antdv-demo/docs/date-picker/demo/disabled-date.md correctly 1`] = `


~
`; +exports[`renders ./antdv-demo/docs/date-picker/demo/disabled-date.md correctly 1`] = `


~
`; -exports[`renders ./antdv-demo/docs/date-picker/demo/extra-footer.md correctly 1`] = `
~ ~
`; +exports[`renders ./antdv-demo/docs/date-picker/demo/extra-footer.md correctly 1`] = `
~ ~
`; exports[`renders ./antdv-demo/docs/date-picker/demo/format.md correctly 1`] = ` -



~



~
`; -exports[`renders ./antdv-demo/docs/date-picker/demo/mode.md correctly 1`] = `

~
`; +exports[`renders ./antdv-demo/docs/date-picker/demo/mode.md correctly 1`] = `

~
`; exports[`renders ./antdv-demo/docs/date-picker/demo/presetted-ranges.md correctly 1`] = `
~
~
`; exports[`renders ./antdv-demo/docs/date-picker/demo/size.md correctly 1`] = `
-




~
+




~
`; -exports[`renders ./antdv-demo/docs/date-picker/demo/start-end.md correctly 1`] = `
`; +exports[`renders ./antdv-demo/docs/date-picker/demo/start-end.md correctly 1`] = `
`; exports[`renders ./antdv-demo/docs/date-picker/demo/suffix.md correctly 1`] = ` -


~


~

ab

ab

~ ab
ab
+


ab

ab

~ ab
ab
`; exports[`renders ./antdv-demo/docs/date-picker/demo/text.md correctly 1`] = ` @@ -40,4 +40,4 @@ exports[`renders ./antdv-demo/docs/date-picker/demo/text.md correctly 1`] = `
`; -exports[`renders ./antdv-demo/docs/date-picker/demo/time.md correctly 1`] = `

~
`; +exports[`renders ./antdv-demo/docs/date-picker/demo/time.md correctly 1`] = `

~
`; diff --git a/components/date-picker/__tests__/__snapshots__/other.test.js.snap b/components/date-picker/__tests__/__snapshots__/other.test.js.snap index 844dfcbf4..61c95c978 100644 --- a/components/date-picker/__tests__/__snapshots__/other.test.js.snap +++ b/components/date-picker/__tests__/__snapshots__/other.test.js.snap @@ -231,10 +231,10 @@ exports[`MonthPicker and WeekPicker render WeekPicker 1`] = `
`; -exports[`Picker format by locale date 1`] = `
`; +exports[`Picker format by locale date 1`] = `
`; -exports[`Picker format by locale dateTime 1`] = `
`; +exports[`Picker format by locale dateTime 1`] = `
`; -exports[`Picker format by locale month 1`] = `
`; +exports[`Picker format by locale month 1`] = `
`; exports[`Picker format by locale week 1`] = ``; diff --git a/components/dropdown/__tests__/__snapshots__/demo.test.js.snap b/components/dropdown/__tests__/__snapshots__/demo.test.js.snap index 3165af4ef..992db7487 100644 --- a/components/dropdown/__tests__/__snapshots__/demo.test.js.snap +++ b/components/dropdown/__tests__/__snapshots__/demo.test.js.snap @@ -17,7 +17,7 @@ exports[`renders ./antdv-demo/docs/dropdown/demo/dropdown-button.md correctly 1`
-
@@ -30,11 +30,11 @@ exports[`renders ./antdv-demo/docs/input-number/demo/disabled.md correctly 1`] = exports[`renders ./antdv-demo/docs/input-number/demo/formatter.md correctly 1`] = `
-
+
-
+
@@ -43,15 +43,15 @@ exports[`renders ./antdv-demo/docs/input-number/demo/formatter.md correctly 1`] exports[`renders ./antdv-demo/docs/input-number/demo/size.md correctly 1`] = `
-
+
-
+
-
+
diff --git a/components/input/__tests__/__snapshots__/demo.test.js.snap b/components/input/__tests__/__snapshots__/demo.test.js.snap index 958ab7a6f..d1abe25a6 100644 --- a/components/input/__tests__/__snapshots__/demo.test.js.snap +++ b/components/input/__tests__/__snapshots__/demo.test.js.snap @@ -3,10 +3,10 @@ exports[`renders ./antdv-demo/docs/input/demo/addon.md correctly 1`] = `
Http://.com
-
Http://
-
.com
+
Http://
+
.com
-
+
`; @@ -21,19 +21,19 @@ exports[`renders ./antdv-demo/docs/input/demo/autosize-textarea.md correctly 1`] exports[`renders ./antdv-demo/docs/input/demo/basic.md correctly 1`] = ``; exports[`renders ./antdv-demo/docs/input/demo/group.md correctly 1`] = ` -


Zhejiang
-

Option1
-


Option1-1
+


Zhejiang
+

Option1
+


Option1-1
Option2-2
-
+
-
Between
-

Sign Up
+
Between
+

Sign Up
-

Home
-

Home
+
`; -exports[`renders ./antdv-demo/docs/input/demo/password-input.md correctly 1`] = ``; +exports[`renders ./antdv-demo/docs/input/demo/password-input.md correctly 1`] = ``; -exports[`renders ./antdv-demo/docs/input/demo/presuffix.md correctly 1`] = `


RMB
`; +exports[`renders ./antdv-demo/docs/input/demo/presuffix.md correctly 1`] = `


RMB
`; -exports[`renders ./antdv-demo/docs/input/demo/search-input.md correctly 1`] = `






`; +exports[`renders ./antdv-demo/docs/input/demo/search-input.md correctly 1`] = `






`; -exports[`renders ./antdv-demo/docs/input/demo/search-input-loading.md correctly 1`] = `


`; +exports[`renders ./antdv-demo/docs/input/demo/search-input-loading.md correctly 1`] = `


`; exports[`renders ./antdv-demo/docs/input/demo/size.md correctly 1`] = `
`; diff --git a/components/input/__tests__/__snapshots__/index.test.js.snap b/components/input/__tests__/__snapshots__/index.test.js.snap index 3bfb4759b..1adf6145c 100644 --- a/components/input/__tests__/__snapshots__/index.test.js.snap +++ b/components/input/__tests__/__snapshots__/index.test.js.snap @@ -2,7 +2,7 @@ exports[`Input should support maxLength 1`] = ``; -exports[`Input.Search should support suffix 1`] = `suffix`; +exports[`Input.Search should support suffix 1`] = `suffix`; exports[`TextArea should support disabled 1`] = ``; diff --git a/components/locale-provider/__tests__/__snapshots__/demo.test.js.snap b/components/locale-provider/__tests__/__snapshots__/demo.test.js.snap index 2c1b9d885..58d4cf583 100644 --- a/components/locale-provider/__tests__/__snapshots__/demo.test.js.snap +++ b/components/locale-provider/__tests__/__snapshots__/demo.test.js.snap @@ -24,7 +24,7 @@ exports[`renders ./antdv-demo/docs/locale-provider/demo/all.md correctly 1`] = `
10 / page
-
+
@@ -37,9 +37,9 @@ exports[`renders ./antdv-demo/docs/locale-provider/demo/all.md correctly 1`] = ` -
+
-
~ +
~
Click to confirm
@@ -102,14 +102,14 @@ exports[`renders ./antdv-demo/docs/locale-provider/demo/all.md correctly 1`] = `
2016
-
+
Nov
-
+
@@ -422,7 +422,7 @@ exports[`renders ./antdv-demo/docs/locale-provider/demo/basic.md correctly 1`] =
10 / page
-
+
diff --git a/components/locale-provider/__tests__/__snapshots__/index.test.js.snap b/components/locale-provider/__tests__/__snapshots__/index.test.js.snap index ab267c995..cf2d50c2f 100644 --- a/components/locale-provider/__tests__/__snapshots__/index.test.js.snap +++ b/components/locale-provider/__tests__/__snapshots__/index.test.js.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Locale Provider set moment locale when locale changes 1`] = ` -
+
@@ -179,7 +179,7 @@ exports[`Locale Provider set moment locale when locale changes 1`] = ` `; exports[`Locale Provider set moment locale when locale changes 2`] = ` -
+
@@ -357,7 +357,7 @@ exports[`Locale Provider set moment locale when locale changes 2`] = ` `; exports[`Locale Provider set moment locale when locale changes 3`] = ` -
+
@@ -553,7 +553,7 @@ exports[`Locale Provider should display the text as ar 1`] = `
10 / الصفحة
-
+
@@ -564,9 +564,9 @@ exports[`Locale Provider should display the text as ar 1`] = ` -
+
-
~ Click to confirm +
~ Click to confirm
0 عنصر
@@ -624,14 +624,14 @@ exports[`Locale Provider should display the text as ar 1`] = `
2017
-
+
سبتمبر
-
+
@@ -936,7 +936,7 @@ exports[`Locale Provider should display the text as ar 1`] = `
Name
-
Age @@ -988,7 +988,7 @@ exports[`Locale Provider should display the text as bg 1`] = `
10 / страница
-
+
@@ -999,9 +999,9 @@ exports[`Locale Provider should display the text as bg 1`] = ` -
+
-
~ Click to confirm +
~ Click to confirm
0 избор
@@ -1059,14 +1059,14 @@ exports[`Locale Provider should display the text as bg 1`] = `
2017
-
+
сеп
-
+
@@ -1371,7 +1371,7 @@ exports[`Locale Provider should display the text as bg 1`] = `
Name
-
Age @@ -1423,7 +1423,7 @@ exports[`Locale Provider should display the text as ca 1`] = `
10 / pàgina
-
+
@@ -1434,9 +1434,9 @@ exports[`Locale Provider should display the text as ca 1`] = ` -
+ -
~ Click to confirm +
~ Click to confirm
0 item
@@ -1494,14 +1494,14 @@ exports[`Locale Provider should display the text as ca 1`] = `
2017
-
+
set.
-
+
@@ -1806,7 +1806,7 @@ exports[`Locale Provider should display the text as ca 1`] = `
Name
-
Age @@ -1858,7 +1858,7 @@ exports[`Locale Provider should display the text as cs 1`] = `
10 / strana
-
+
@@ -1869,9 +1869,9 @@ exports[`Locale Provider should display the text as cs 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 položka
@@ -1929,14 +1929,14 @@ exports[`Locale Provider should display the text as cs 1`] = `
2017
-
+
zář
-
+
@@ -2241,7 +2241,7 @@ exports[`Locale Provider should display the text as cs 1`] = `
Name
-
Age @@ -2293,7 +2293,7 @@ exports[`Locale Provider should display the text as da 1`] = `
10 / side
-
+
@@ -2304,9 +2304,9 @@ exports[`Locale Provider should display the text as da 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 element
@@ -2364,14 +2364,14 @@ exports[`Locale Provider should display the text as da 1`] = `
2017
-
+
sep
-
+
@@ -2676,7 +2676,7 @@ exports[`Locale Provider should display the text as da 1`] = `
Name
-
Age @@ -2728,7 +2728,7 @@ exports[`Locale Provider should display the text as de 1`] = `
10 / Seite
-
+
@@ -2739,9 +2739,9 @@ exports[`Locale Provider should display the text as de 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 Eintrag
@@ -2799,14 +2799,14 @@ exports[`Locale Provider should display the text as de 1`] = `
2017
-
+
Sep.
-
+
@@ -3111,7 +3111,7 @@ exports[`Locale Provider should display the text as de 1`] = `
Name
-
Age @@ -3163,7 +3163,7 @@ exports[`Locale Provider should display the text as el 1`] = `
10 / σελίδα
-
+
@@ -3174,9 +3174,9 @@ exports[`Locale Provider should display the text as el 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 αντικείμενο
@@ -3234,14 +3234,14 @@ exports[`Locale Provider should display the text as el 1`] = `
2017
-
+
Σεπ
-
+
@@ -3546,7 +3546,7 @@ exports[`Locale Provider should display the text as el 1`] = `
Name
-
Age @@ -3598,7 +3598,7 @@ exports[`Locale Provider should display the text as en 1`] = `
10 / page
-
+
@@ -3609,9 +3609,9 @@ exports[`Locale Provider should display the text as en 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 item
@@ -3669,14 +3669,14 @@ exports[`Locale Provider should display the text as en 1`] = `
2017
-
+
Sep
-
+
@@ -3981,7 +3981,7 @@ exports[`Locale Provider should display the text as en 1`] = `
Name
-
Age @@ -4033,7 +4033,7 @@ exports[`Locale Provider should display the text as en-gb 1`] = `
10 / page
-
+
@@ -4044,9 +4044,9 @@ exports[`Locale Provider should display the text as en-gb 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 item
@@ -4104,14 +4104,14 @@ exports[`Locale Provider should display the text as en-gb 1`] = `
2017
-
+
Sep
-
+
@@ -4416,7 +4416,7 @@ exports[`Locale Provider should display the text as en-gb 1`] = `
Name
-
Age @@ -4468,7 +4468,7 @@ exports[`Locale Provider should display the text as es 1`] = `
10 / página
-
+
@@ -4479,9 +4479,9 @@ exports[`Locale Provider should display the text as es 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 elemento
@@ -4539,14 +4539,14 @@ exports[`Locale Provider should display the text as es 1`] = `
2017
-
+
sep.
-
+
@@ -4851,7 +4851,7 @@ exports[`Locale Provider should display the text as es 1`] = `
Name
-
Age @@ -4903,7 +4903,7 @@ exports[`Locale Provider should display the text as et 1`] = `
10 / leheküljel
-
+
@@ -4914,9 +4914,9 @@ exports[`Locale Provider should display the text as et 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 kogus
@@ -4974,14 +4974,14 @@ exports[`Locale Provider should display the text as et 1`] = `
2017
-
+
sept
-
+
@@ -5286,7 +5286,7 @@ exports[`Locale Provider should display the text as et 1`] = `
Name
-
Age @@ -5338,7 +5338,7 @@ exports[`Locale Provider should display the text as fa 1`] = `
10 / صفحه
-
+
@@ -5349,9 +5349,9 @@ exports[`Locale Provider should display the text as fa 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0
@@ -5409,14 +5409,14 @@ exports[`Locale Provider should display the text as fa 1`] = `
2017
-
+
سپتامبر
-
+
@@ -5721,7 +5721,7 @@ exports[`Locale Provider should display the text as fa 1`] = `
Name
-
Age @@ -5773,7 +5773,7 @@ exports[`Locale Provider should display the text as fi 1`] = `
10 / sivu
-
+
@@ -5784,9 +5784,9 @@ exports[`Locale Provider should display the text as fi 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 kohde
@@ -5844,14 +5844,14 @@ exports[`Locale Provider should display the text as fi 1`] = `
2017
-
+
syys
-
+
@@ -6156,7 +6156,7 @@ exports[`Locale Provider should display the text as fi 1`] = `
Name
-
Age @@ -6208,7 +6208,7 @@ exports[`Locale Provider should display the text as fr 1`] = `
10 / page
-
+
@@ -6219,9 +6219,9 @@ exports[`Locale Provider should display the text as fr 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 élément
@@ -6279,14 +6279,14 @@ exports[`Locale Provider should display the text as fr 1`] = `
2017
-
+
sept.
-
+
@@ -6591,7 +6591,7 @@ exports[`Locale Provider should display the text as fr 1`] = `
Name
-
Age @@ -6643,7 +6643,7 @@ exports[`Locale Provider should display the text as fr 2`] = `
10 / page
-
+
@@ -6654,9 +6654,9 @@ exports[`Locale Provider should display the text as fr 2`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 élément
@@ -6714,14 +6714,14 @@ exports[`Locale Provider should display the text as fr 2`] = `
2017
-
+
sept.
-
+
@@ -7026,7 +7026,7 @@ exports[`Locale Provider should display the text as fr 2`] = `
Name
-
Age @@ -7078,7 +7078,7 @@ exports[`Locale Provider should display the text as he 1`] = `
10 / עמוד
-
+
@@ -7089,9 +7089,9 @@ exports[`Locale Provider should display the text as he 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 פריט
@@ -7149,14 +7149,14 @@ exports[`Locale Provider should display the text as he 1`] = `
2017
-
+
ספט׳
-
+
@@ -7461,7 +7461,7 @@ exports[`Locale Provider should display the text as he 1`] = `
Name
-
Age @@ -7513,7 +7513,7 @@ exports[`Locale Provider should display the text as hi 1`] = `
10 / पृष्ठ
-
+
@@ -7524,9 +7524,9 @@ exports[`Locale Provider should display the text as hi 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 तत्त्व
@@ -7584,14 +7584,14 @@ exports[`Locale Provider should display the text as hi 1`] = `
2017
-
+
सित.
-
+
@@ -7896,7 +7896,7 @@ exports[`Locale Provider should display the text as hi 1`] = `
Name
-
Age @@ -7948,7 +7948,7 @@ exports[`Locale Provider should display the text as hr 1`] = `
10 / str
-
+
@@ -7959,9 +7959,9 @@ exports[`Locale Provider should display the text as hr 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 stavka
@@ -8019,14 +8019,14 @@ exports[`Locale Provider should display the text as hr 1`] = `
2017
-
+
ruj.
-
+
@@ -8331,7 +8331,7 @@ exports[`Locale Provider should display the text as hr 1`] = `
Name
-
Age @@ -8383,7 +8383,7 @@ exports[`Locale Provider should display the text as hu 1`] = `
10 / oldal
-
+
@@ -8394,9 +8394,9 @@ exports[`Locale Provider should display the text as hu 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 elem
@@ -8454,14 +8454,14 @@ exports[`Locale Provider should display the text as hu 1`] = `
2017
-
+
szept
-
+
@@ -8766,7 +8766,7 @@ exports[`Locale Provider should display the text as hu 1`] = `
Name
-
Age @@ -8818,7 +8818,7 @@ exports[`Locale Provider should display the text as hy 1`] = `
10 / էջ
-
+
@@ -8829,9 +8829,9 @@ exports[`Locale Provider should display the text as hy 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 պարագան
@@ -8889,14 +8889,14 @@ exports[`Locale Provider should display the text as hy 1`] = `
2017
-
+
szept
-
+
@@ -9201,7 +9201,7 @@ exports[`Locale Provider should display the text as hy 1`] = `
Name
-
Age @@ -9253,7 +9253,7 @@ exports[`Locale Provider should display the text as id 1`] = `
10 / halaman
-
+
@@ -9264,9 +9264,9 @@ exports[`Locale Provider should display the text as id 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 item
@@ -9324,14 +9324,14 @@ exports[`Locale Provider should display the text as id 1`] = `
2017
-
+
Sep
-
+
@@ -9636,7 +9636,7 @@ exports[`Locale Provider should display the text as id 1`] = `
Name
-
Age @@ -9688,7 +9688,7 @@ exports[`Locale Provider should display the text as is 1`] = `
10 / síðu
-
+
@@ -9699,9 +9699,9 @@ exports[`Locale Provider should display the text as is 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 færsla
@@ -9759,14 +9759,14 @@ exports[`Locale Provider should display the text as is 1`] = `
2017
-
+
sep
-
+
@@ -10071,7 +10071,7 @@ exports[`Locale Provider should display the text as is 1`] = `
Name
-
Age @@ -10123,7 +10123,7 @@ exports[`Locale Provider should display the text as it 1`] = `
10 / pagina
-
+
@@ -10134,9 +10134,9 @@ exports[`Locale Provider should display the text as it 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 elemento
@@ -10194,14 +10194,14 @@ exports[`Locale Provider should display the text as it 1`] = `
2017
-
+
set
-
+
@@ -10506,7 +10506,7 @@ exports[`Locale Provider should display the text as it 1`] = `
Name
-
Age @@ -10558,7 +10558,7 @@ exports[`Locale Provider should display the text as ja 1`] = `
10 / ページ
-
+
@@ -10569,9 +10569,9 @@ exports[`Locale Provider should display the text as ja 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 アイテム
@@ -10629,14 +10629,14 @@ exports[`Locale Provider should display the text as ja 1`] = `
2017年
-
+
9月
-
+
@@ -10941,7 +10941,7 @@ exports[`Locale Provider should display the text as ja 1`] = `
Name
-
Age @@ -10993,7 +10993,7 @@ exports[`Locale Provider should display the text as kn 1`] = `
10 / ಪುಟ
-
+
@@ -11004,9 +11004,9 @@ exports[`Locale Provider should display the text as kn 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 ವಿಷಯ
@@ -11064,14 +11064,14 @@ exports[`Locale Provider should display the text as kn 1`] = `
2017
-
+
ಸೆಪ್ಟೆಂ
-
+
@@ -11376,7 +11376,7 @@ exports[`Locale Provider should display the text as kn 1`] = `
Name
-
Age @@ -11428,7 +11428,7 @@ exports[`Locale Provider should display the text as ko 1`] = `
10 / 쪽
-
+
@@ -11439,9 +11439,9 @@ exports[`Locale Provider should display the text as ko 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 개
@@ -11499,14 +11499,14 @@ exports[`Locale Provider should display the text as ko 1`] = `
2017
-
+
9월
-
+
@@ -11811,7 +11811,7 @@ exports[`Locale Provider should display the text as ko 1`] = `
Name
-
Age @@ -11863,7 +11863,7 @@ exports[`Locale Provider should display the text as ku-iq 1`] = `
10 / rûpel
-
+
@@ -11874,9 +11874,9 @@ exports[`Locale Provider should display the text as ku-iq 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 tişt
@@ -11934,14 +11934,14 @@ exports[`Locale Provider should display the text as ku-iq 1`] = `
2017
-
+
ئەیلوول
-
+
@@ -12246,7 +12246,7 @@ exports[`Locale Provider should display the text as ku-iq 1`] = `
Name
-
Age @@ -12298,7 +12298,7 @@ exports[`Locale Provider should display the text as lv 1`] = `
10 / lappuse
-
+
@@ -12309,9 +12309,9 @@ exports[`Locale Provider should display the text as lv 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 vienumu
@@ -12369,14 +12369,14 @@ exports[`Locale Provider should display the text as lv 1`] = `
2017
-
+
sep
-
+
@@ -12681,7 +12681,7 @@ exports[`Locale Provider should display the text as lv 1`] = `
Name
-
Age @@ -12733,7 +12733,7 @@ exports[`Locale Provider should display the text as mk 1`] = `
10 / стр
-
+
@@ -12744,9 +12744,9 @@ exports[`Locale Provider should display the text as mk 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 предмет
@@ -12804,14 +12804,14 @@ exports[`Locale Provider should display the text as mk 1`] = `
2017
-
+
сеп
-
+
@@ -13116,7 +13116,7 @@ exports[`Locale Provider should display the text as mk 1`] = `
Name
-
Age @@ -13168,7 +13168,7 @@ exports[`Locale Provider should display the text as mn-mn 1`] = `
10 / хуудас
-
+
@@ -13179,9 +13179,9 @@ exports[`Locale Provider should display the text as mn-mn 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 Зүйл
@@ -13239,14 +13239,14 @@ exports[`Locale Provider should display the text as mn-mn 1`] = `
2017
-
+
9 сар
-
+
@@ -13551,7 +13551,7 @@ exports[`Locale Provider should display the text as mn-mn 1`] = `
Name
-
Age @@ -13603,7 +13603,7 @@ exports[`Locale Provider should display the text as ms-my 1`] = `
10 / halaman
-
+
@@ -13614,9 +13614,9 @@ exports[`Locale Provider should display the text as ms-my 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 item
@@ -13674,14 +13674,14 @@ exports[`Locale Provider should display the text as ms-my 1`] = `
2017
-
+
Sep
-
+
@@ -13986,7 +13986,7 @@ exports[`Locale Provider should display the text as ms-my 1`] = `
Name
-
Age @@ -14038,7 +14038,7 @@ exports[`Locale Provider should display the text as nb 1`] = `
10 / side
-
+
@@ -14049,9 +14049,9 @@ exports[`Locale Provider should display the text as nb 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 element
@@ -14109,14 +14109,14 @@ exports[`Locale Provider should display the text as nb 1`] = `
2017
-
+
sep.
-
+
@@ -14421,7 +14421,7 @@ exports[`Locale Provider should display the text as nb 1`] = `
Name
-
Age @@ -14473,7 +14473,7 @@ exports[`Locale Provider should display the text as ne-np 1`] = `
10 / page
-
+
@@ -14484,9 +14484,9 @@ exports[`Locale Provider should display the text as ne-np 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 वस्तु
@@ -14544,14 +14544,14 @@ exports[`Locale Provider should display the text as ne-np 1`] = `
2017
-
+
सेप्ट.
-
+
@@ -14856,7 +14856,7 @@ exports[`Locale Provider should display the text as ne-np 1`] = `
Name
-
Age @@ -14908,7 +14908,7 @@ exports[`Locale Provider should display the text as nl 1`] = `
10 / pagina
-
+
@@ -14919,9 +14919,9 @@ exports[`Locale Provider should display the text as nl 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 item
@@ -14979,14 +14979,14 @@ exports[`Locale Provider should display the text as nl 1`] = `
2017
-
+
sep.
-
+
@@ -15291,7 +15291,7 @@ exports[`Locale Provider should display the text as nl 1`] = `
Name
-
Age @@ -15343,7 +15343,7 @@ exports[`Locale Provider should display the text as nl-be 1`] = `
10 / pagina
-
+
@@ -15354,9 +15354,9 @@ exports[`Locale Provider should display the text as nl-be 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 item
@@ -15414,14 +15414,14 @@ exports[`Locale Provider should display the text as nl-be 1`] = `
2017
-
+
sep.
-
+
@@ -15726,7 +15726,7 @@ exports[`Locale Provider should display the text as nl-be 1`] = `
Name
-
Age @@ -15778,7 +15778,7 @@ exports[`Locale Provider should display the text as pl 1`] = `
10 / stronę
-
+
@@ -15789,9 +15789,9 @@ exports[`Locale Provider should display the text as pl 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 obiekt
@@ -15849,14 +15849,14 @@ exports[`Locale Provider should display the text as pl 1`] = `
2017
-
+
wrz
-
+
@@ -16161,7 +16161,7 @@ exports[`Locale Provider should display the text as pl 1`] = `
Name
-
Age @@ -16213,7 +16213,7 @@ exports[`Locale Provider should display the text as pt 1`] = `
10 / página
-
+
@@ -16224,9 +16224,9 @@ exports[`Locale Provider should display the text as pt 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 item
@@ -16284,14 +16284,14 @@ exports[`Locale Provider should display the text as pt 1`] = `
2017
-
+
Set
-
+
@@ -16596,7 +16596,7 @@ exports[`Locale Provider should display the text as pt 1`] = `
Name
-
Age @@ -16648,7 +16648,7 @@ exports[`Locale Provider should display the text as pt-br 1`] = `
10 / página
-
+
@@ -16659,9 +16659,9 @@ exports[`Locale Provider should display the text as pt-br 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 item
@@ -16719,14 +16719,14 @@ exports[`Locale Provider should display the text as pt-br 1`] = `
2017
-
+
Set
-
+
@@ -17031,7 +17031,7 @@ exports[`Locale Provider should display the text as pt-br 1`] = `
Name
-
Age @@ -17083,7 +17083,7 @@ exports[`Locale Provider should display the text as ro 1`] = `
10 / pagină
-
+
@@ -17094,9 +17094,9 @@ exports[`Locale Provider should display the text as ro 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 element
@@ -17154,14 +17154,14 @@ exports[`Locale Provider should display the text as ro 1`] = `
2017
-
+
sept.
-
+
@@ -17466,7 +17466,7 @@ exports[`Locale Provider should display the text as ro 1`] = `
Name
-
Age @@ -17518,7 +17518,7 @@ exports[`Locale Provider should display the text as ru 1`] = `
10 / стр.
-
+
@@ -17529,9 +17529,9 @@ exports[`Locale Provider should display the text as ru 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 элем.
@@ -17589,14 +17589,14 @@ exports[`Locale Provider should display the text as ru 1`] = `
2017
-
+
сент.
-
+
@@ -17901,7 +17901,7 @@ exports[`Locale Provider should display the text as ru 1`] = `
Name
-
Age @@ -17953,7 +17953,7 @@ exports[`Locale Provider should display the text as sk 1`] = `
10 / strana
-
+
@@ -17964,9 +17964,9 @@ exports[`Locale Provider should display the text as sk 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 položka
@@ -18024,14 +18024,14 @@ exports[`Locale Provider should display the text as sk 1`] = `
2017
-
+
sep
-
+
@@ -18336,7 +18336,7 @@ exports[`Locale Provider should display the text as sk 1`] = `
Name
-
Age @@ -18388,7 +18388,7 @@ exports[`Locale Provider should display the text as sl 1`] = `
10 / strani
-
+
@@ -18399,9 +18399,9 @@ exports[`Locale Provider should display the text as sl 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 Objekt
@@ -18459,14 +18459,14 @@ exports[`Locale Provider should display the text as sl 1`] = `
2017
-
+
sep.
-
+
@@ -18771,7 +18771,7 @@ exports[`Locale Provider should display the text as sl 1`] = `
Name
-
Age @@ -18823,7 +18823,7 @@ exports[`Locale Provider should display the text as sr 1`] = `
10 / strani
-
+
@@ -18834,9 +18834,9 @@ exports[`Locale Provider should display the text as sr 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 stavka
@@ -18894,14 +18894,14 @@ exports[`Locale Provider should display the text as sr 1`] = `
2017
-
+
sep.
-
+
@@ -19206,7 +19206,7 @@ exports[`Locale Provider should display the text as sr 1`] = `
Name
-
Age @@ -19258,7 +19258,7 @@ exports[`Locale Provider should display the text as sv 1`] = `
10 / sida
-
+
@@ -19269,9 +19269,9 @@ exports[`Locale Provider should display the text as sv 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 element
@@ -19329,14 +19329,14 @@ exports[`Locale Provider should display the text as sv 1`] = `
2017
-
+
sep
-
+
@@ -19641,7 +19641,7 @@ exports[`Locale Provider should display the text as sv 1`] = `
Name
-
Age @@ -19693,7 +19693,7 @@ exports[`Locale Provider should display the text as ta 1`] = `
10 / பக்கம்
-
+
@@ -19704,9 +19704,9 @@ exports[`Locale Provider should display the text as ta 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 தகவல்
@@ -19764,14 +19764,14 @@ exports[`Locale Provider should display the text as ta 1`] = `
2017
-
+
செப்டெம்பர்
-
+
@@ -20076,7 +20076,7 @@ exports[`Locale Provider should display the text as ta 1`] = `
Name
-
Age @@ -20128,7 +20128,7 @@ exports[`Locale Provider should display the text as th 1`] = `
10 / หน้า
-
+
@@ -20139,9 +20139,9 @@ exports[`Locale Provider should display the text as th 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 ชิ้น
@@ -20199,14 +20199,14 @@ exports[`Locale Provider should display the text as th 1`] = `
2017
-
+
ก.ย.
-
+
@@ -20511,7 +20511,7 @@ exports[`Locale Provider should display the text as th 1`] = `
Name
-
Age @@ -20563,7 +20563,7 @@ exports[`Locale Provider should display the text as tr 1`] = `
10 / sayfa
-
+
@@ -20574,9 +20574,9 @@ exports[`Locale Provider should display the text as tr 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 Öğe
@@ -20634,14 +20634,14 @@ exports[`Locale Provider should display the text as tr 1`] = `
2017
-
+
Eyl
-
+
@@ -20946,7 +20946,7 @@ exports[`Locale Provider should display the text as tr 1`] = `
Name
-
Age @@ -20998,7 +20998,7 @@ exports[`Locale Provider should display the text as uk 1`] = `
10 / сторінці
-
+
@@ -21009,9 +21009,9 @@ exports[`Locale Provider should display the text as uk 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 item
@@ -21069,14 +21069,14 @@ exports[`Locale Provider should display the text as uk 1`] = `
2017
-
+
вер
-
+
@@ -21381,7 +21381,7 @@ exports[`Locale Provider should display the text as uk 1`] = `
Name
-
Age @@ -21433,7 +21433,7 @@ exports[`Locale Provider should display the text as vi 1`] = `
10 / trang
-
+
@@ -21444,9 +21444,9 @@ exports[`Locale Provider should display the text as vi 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 mục
@@ -21504,14 +21504,14 @@ exports[`Locale Provider should display the text as vi 1`] = `
2017
-
+
Th09
-
+
@@ -21816,7 +21816,7 @@ exports[`Locale Provider should display the text as vi 1`] = `
Name
-
Age @@ -21868,7 +21868,7 @@ exports[`Locale Provider should display the text as zh-cn 1`] = `
10 条/页
-
+
@@ -21879,9 +21879,9 @@ exports[`Locale Provider should display the text as zh-cn 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 项
@@ -21939,14 +21939,14 @@ exports[`Locale Provider should display the text as zh-cn 1`] = `
2017年
-
+
9月
-
+
@@ -22251,7 +22251,7 @@ exports[`Locale Provider should display the text as zh-cn 1`] = `
Name
-
Age @@ -22303,7 +22303,7 @@ exports[`Locale Provider should display the text as zh-tw 1`] = `
10 條/頁
-
+
@@ -22314,9 +22314,9 @@ exports[`Locale Provider should display the text as zh-tw 1`] = ` - + -
~ Click to confirm +
~ Click to confirm
0 項目
@@ -22374,14 +22374,14 @@ exports[`Locale Provider should display the text as zh-tw 1`] = `
2017年
-
+
9月
-
+
@@ -22686,7 +22686,7 @@ exports[`Locale Provider should display the text as zh-tw 1`] = `
Name
-
Age diff --git a/components/modal/__tests__/__snapshots__/Modal.test.js.snap b/components/modal/__tests__/__snapshots__/Modal.test.js.snap index 9279fee03..626c1b557 100644 --- a/components/modal/__tests__/__snapshots__/Modal.test.js.snap +++ b/components/modal/__tests__/__snapshots__/Modal.test.js.snap @@ -9,7 +9,7 @@ exports[`Modal render correctly 1`] = `
@@ -64,7 +64,7 @@ exports[`renders ./antdv-demo/docs/select/demo/custom-dropdown-menu.md correctly
lucy
-
+
`; @@ -89,7 +89,7 @@ exports[`renders ./antdv-demo/docs/select/demo/label-in-value.md correctly 1`] =
Lucy (101)
-
+
`; @@ -101,10 +101,10 @@ exports[`renders ./antdv-demo/docs/select/demo/multiple.md correctly 1`] = `
`; @@ -132,7 +132,7 @@ exports[`renders ./antdv-demo/docs/select/demo/option-label-prop.md correctly 1`
`; @@ -161,7 +161,7 @@ exports[`renders ./antdv-demo/docs/select/demo/search.md correctly 1`] = ` - + `; @@ -203,7 +203,7 @@ exports[`renders ./antdv-demo/docs/select/demo/size.md correctly 1`] = `
a1
- +
@@ -214,12 +214,12 @@ exports[`renders ./antdv-demo/docs/select/demo/size.md correctly 1`] = `
  • 4
  • 5
  • -
  • @@ -1340,7 +1340,7 @@ exports[`renders ./antdv-demo/docs/table/demo/fixed-columns-header.md correctly
  • 4
  • 5
  • -
  • @@ -1683,7 +1683,7 @@ exports[`renders ./antdv-demo/docs/table/demo/grouping-columns.md correctly 1`]
    Name -
    Other @@ -1694,7 +1694,7 @@ exports[`renders ./antdv-demo/docs/table/demo/grouping-columns.md correctly 1`]
    -
    Age
    +
    Age
    Address
    @@ -1839,7 +1839,7 @@ exports[`renders ./antdv-demo/docs/table/demo/grouping-columns.md correctly 1`]
    Name -
    @@ -1956,7 +1956,7 @@ exports[`renders ./antdv-demo/docs/table/demo/grouping-columns.md correctly 1`]
  • 4
  • 5
  • -
  • @@ -1987,14 +1987,14 @@ exports[`renders ./antdv-demo/docs/table/demo/head.md correctly 1`] = ` -
    Name
    -
    Name
    +
    -
    Age
    +
    Age
    -
    Address
    -
    Address
    +
    @@ -2155,14 +2155,14 @@ exports[`renders ./antdv-demo/docs/table/demo/reset-filter.md correctly 1`] = ` -
    Name
    -
    Name
    +
    -
    Age
    +
    Age
    -
    Address
    -
    Address
    +
    diff --git a/components/tabs/__tests__/__snapshots__/demo.test.js.snap b/components/tabs/__tests__/__snapshots__/demo.test.js.snap index 029fce7c1..8edb0efd5 100644 --- a/components/tabs/__tests__/__snapshots__/demo.test.js.snap +++ b/components/tabs/__tests__/__snapshots__/demo.test.js.snap @@ -4,7 +4,7 @@ exports[`renders ./antdv-demo/docs/tabs/demo/basic.md correctly 1`] = `
    -
    +
    @@ -35,7 +35,7 @@ exports[`renders ./antdv-demo/docs/tabs/demo/basic.md correctly 1`] = ` exports[`renders ./antdv-demo/docs/tabs/demo/card.md correctly 1`] = `
    -
    +
    @@ -66,7 +66,7 @@ exports[`renders ./antdv-demo/docs/tabs/demo/card-top.md correctly 1`] = `
    -
    +
    @@ -103,18 +103,18 @@ exports[`renders ./antdv-demo/docs/tabs/demo/custom-add-trigger.md correctly 1`]
    -
    +