diff --git a/README-zh_CN.md b/README-zh_CN.md index 5162f20e7..ec20721cd 100644 --- a/README-zh_CN.md +++ b/README-zh_CN.md @@ -1,6 +1,6 @@
@@ -20,7 +20,7 @@ Ant Design 3.X 的 Vue 实现,开发和服务于企业级后台产品。 - 提炼自企业级中后台产品的交互语言和视觉风格。 - 开箱即用的高质量 Vue 组件。 -- 全链路开发和设计工具体系。 +- 全链路开发和设计工具体系。 ## 安装 diff --git a/README.md b/README.md index 344b28b95..d9ba6b041 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ diff --git a/components/_util/props-util.js b/components/_util/props-util.js index 0e7e90219..d483cbd80 100644 --- a/components/_util/props-util.js +++ b/components/_util/props-util.js @@ -1,4 +1,4 @@ -import isPlainObject from 'lodash.isplainobject' +import isPlainObject from 'lodash/isPlainObject' const camelizeRE = /-(\w)/g const camelize = (str) => { diff --git a/components/_util/vue-types/index.js b/components/_util/vue-types/index.js index 4c9997c05..84819ce5e 100644 --- a/components/_util/vue-types/index.js +++ b/components/_util/vue-types/index.js @@ -1,4 +1,4 @@ -import isPlainObject from 'lodash.isplainobject' +import isPlainObject from 'lodash/isPlainObject' import { toType, getType, isFunction, validateType, isInteger, isArray, warn } from './utils' const VuePropTypes = { diff --git a/components/_util/vue-types/utils.js b/components/_util/vue-types/utils.js index c661d0dc2..9554a42da 100644 --- a/components/_util/vue-types/utils.js +++ b/components/_util/vue-types/utils.js @@ -1,4 +1,4 @@ -import isPlainObject from 'lodash.isplainobject' +import isPlainObject from 'lodash/isPlainObject' const ObjProto = Object.prototype const toString = ObjProto.toString diff --git a/components/align/Align.jsx b/components/align/Align.jsx index d8ae29801..1a10f09e3 100644 --- a/components/align/Align.jsx +++ b/components/align/Align.jsx @@ -4,7 +4,7 @@ import align from 'dom-align' import addEventListener from '../_util/Dom/addEventListener' import { cloneElement } from '../_util/vnode.js' import isWindow from './isWindow' -import clonedeep from 'lodash.clonedeep' +import clonedeep from 'lodash/cloneDeep' import shallowequal from 'shallowequal' function noop () { } diff --git a/components/modal/ConfirmDialog.jsx b/components/modal/ConfirmDialog.jsx index 884aa4651..41525eb12 100644 --- a/components/modal/ConfirmDialog.jsx +++ b/components/modal/ConfirmDialog.jsx @@ -8,7 +8,7 @@ import { getConfirmLocale } from './locale' export default { functional: true, render (h, context) { - const { data: props } = context + const { props } = context const { onCancel, onOk, close, zIndex, afterClose, visible } = props const iconType = props.iconType || 'question-circle' const okType = props.okType || 'primary' diff --git a/components/modal/confirm.js b/components/modal/confirm.js index a4781d986..69ac8082d 100644 --- a/components/modal/confirm.js +++ b/components/modal/confirm.js @@ -25,10 +25,13 @@ export default function confirm (config) { } function render (props) { + const confirmDialogProps = { + props, + } return new Vue({ el: el, render () { - return