diff --git a/components/_util/vnode.js b/components/_util/vnode.js index 59eb2b221..4f7e91e0c 100644 --- a/components/_util/vnode.js +++ b/components/_util/vnode.js @@ -70,6 +70,7 @@ export function cloneElement (n, nodeProps, deep) { domProps = {}, style: tempStyle = {}, class: tempCls = {}, + scopedSlots = {}, } = nodeProps if (typeof data.style === 'string') { @@ -99,6 +100,7 @@ export function cloneElement (n, nodeProps, deep) { attrs: { ...data.attrs, ...attrs }, class: cls, domProps: { ...data.domProps, ...domProps }, + scopedSlots: { ...data.scopedSlots, ...scopedSlots }, }) if (node.componentOptions) { diff --git a/components/steps/demo/customized-progress-dot.md b/components/steps/demo/customized-progress-dot.md index 57466d2a1..ee535b3c0 100644 --- a/components/steps/demo/customized-progress-dot.md +++ b/components/steps/demo/customized-progress-dot.md @@ -10,30 +10,19 @@ You can customize the display for Steps with progress dot style. ```html - ``` diff --git a/components/steps/index.en-US.md b/components/steps/index.en-US.md index 0448b8afe..2209b5f3c 100644 --- a/components/steps/index.en-US.md +++ b/components/steps/index.en-US.md @@ -6,7 +6,7 @@ The whole of the step bar. | -------- | ----------- | ---- | ------- | | current | to set the current step, counting from 0. You can overwrite this state by using `status` of `Step` | number | 0 | | direction | to specify the direction of the step bar, `horizontal` and `vertical` are currently supported | string | `horizontal` | -| progressDot | Steps with progress dot style, customize the progress dot by setting it to a function | Boolean or (iconDot, {index, status, title, description}) => vNode | false | +| progressDot | Steps with progress dot style, customize the progress dot by setting a scoped slot | Boolean or slot="progressDot" slot-scope="{index, status, title, description, prefixCls})" | false | | size | to specify the size of the step bar, `default` and `small` are currently supported | string | `default` | | status | to specify the status of current step, can be set to one of the following values: `wait` `process` `finish` `error` | string | `process` | diff --git a/components/steps/index.vue b/components/steps/index.vue index 34a9ea2ce..acf8a2d15 100644 --- a/components/steps/index.vue +++ b/components/steps/index.vue @@ -32,6 +32,7 @@ export default { const stepsProps = { props, on: this.$listeners, + scopedSlots: this.$scopedSlots, } return ( vNode | false | +| progressDot | 点状步骤条,可以设置为一个 作用域插槽 | Boolean or slot="progressDot" slot-scope="{index, status, title, description, prefixCls})" | false | | size | 指定大小,目前支持普通(`default`)和迷你(`small`) | string | default | | status | 指定当前步骤的状态,可选 `wait` `process` `finish` `error` | string | process | diff --git a/components/tabs/src/Tabs.vue b/components/tabs/src/Tabs.vue index 93605e62b..b7a30e7e3 100644 --- a/components/tabs/src/Tabs.vue +++ b/components/tabs/src/Tabs.vue @@ -1,4 +1,5 @@