style: vSlots to v-slots

pull/3258/head
tanjinzhou 2020-11-24 18:07:45 +08:00
parent 0a4245efa9
commit 23dc1f86b2
9 changed files with 10 additions and 10 deletions

View File

@ -374,7 +374,7 @@ export default defineComponent({
onInputSelect: this.handleCalendarInputSelect, onInputSelect: this.handleCalendarInputSelect,
class: calendarClassName, class: calendarClassName,
}; };
const calendar = <RangeCalendar {...rangeCalendarProps} vSlots={$slots} />; const calendar = <RangeCalendar {...rangeCalendarProps} v-slots={$slots} />;
// default width for showTime // default width for showTime
const pickerStyle: CSSProperties = {}; const pickerStyle: CSSProperties = {};
@ -438,7 +438,7 @@ export default defineComponent({
onMouseleave={this.onMouseLeave} onMouseleave={this.onMouseLeave}
{...getDataAndAriaProps(props)} {...getDataAndAriaProps(props)}
> >
<VcDatePicker {...vcDatePickerProps} vSlots={{ default: input, ...$slots }}></VcDatePicker> <VcDatePicker {...vcDatePickerProps} v-slots={{ default: input, ...$slots }}></VcDatePicker>
</span> </span>
); );
}, },

View File

@ -197,7 +197,7 @@ export default function createPicker<P>(
onChange: this.handleCalendarChange, onChange: this.handleCalendarChange,
class: calendarClassName, class: calendarClassName,
}; };
const calendar = <TheCalendar {...theCalendarProps} vSlots={$slots} />; const calendar = <TheCalendar {...theCalendarProps} v-slots={$slots} />;
const clearIcon = const clearIcon =
!props.disabled && props.allowClear && value ? ( !props.disabled && props.allowClear && value ? (

View File

@ -226,7 +226,7 @@ export default function wrapPicker<P>(
onCalendarChange: this.handleCalendarChange, onCalendarChange: this.handleCalendarChange,
ref: this.savePicker, ref: this.savePicker,
}; };
return <Picker {...pickerProps} vSlots={this.$slots} />; return <Picker {...pickerProps} v-slots={this.$slots} />;
}, },
}, },

View File

@ -190,7 +190,7 @@ const TreeSelect = defineComponent({
return ( return (
<VcTreeSelect <VcTreeSelect
{...VcTreeSelectProps} {...VcTreeSelectProps}
vSlots={omit(this.$slots, ['default'])} v-slots={omit(this.$slots, ['default'])}
__propsSymbol__={[]} __propsSymbol__={[]}
/> />
); );

View File

@ -10,7 +10,7 @@ for (let i = 10; i < 36; i += 1) {
key={i.toString(36) + i} key={i.toString(36) + i}
disabled={i === 10} disabled={i === 10}
title={`中文${i}`} title={`中文${i}`}
vSlots={{ default: () => `中文${i}` }} v-slots={{ default: () => `中文${i}` }}
></Option>, ></Option>,
); );
} }

View File

@ -195,6 +195,6 @@ export default defineComponent({
children: newChildren, children: newChildren,
ref: this.innerSliderRefHandler, ref: this.innerSliderRefHandler,
}; };
return <InnerSlider {...sliderProps} vSlots={this.$slots} __propsSymbol__={[]} />; return <InnerSlider {...sliderProps} v-slots={this.$slots} __propsSymbol__={[]} />;
}, },
}); });

View File

@ -101,7 +101,7 @@ const BaseTable = {
const row = ( const row = (
<ExpandableRow <ExpandableRow
{...expandableRowProps} {...expandableRowProps}
vSlots={{ v-slots={{
default: expandableRow => { default: expandableRow => {
const tableRowProps = { const tableRowProps = {
fixed, fixed,

View File

@ -565,7 +565,7 @@ export default defineComponent({
<Provider store={this.store}> <Provider store={this.store}>
<ExpandableTable <ExpandableTable
{...expandableTableProps} {...expandableTableProps}
vSlots={{ v-slots={{
default: expander => { default: expander => {
this.expander = expander; this.expander = expander;
return ( return (

View File

@ -6,7 +6,7 @@ import VcTree from '../../vc-tree';
*/ */
const TreeNode = VcTree.TreeNode; const TreeNode = VcTree.TreeNode;
function SelectNode(_, { attrs, slots }) { function SelectNode(_, { attrs, slots }) {
return <TreeNode {...attrs} vSlots={slots} />; return <TreeNode {...attrs} v-slots={slots} />;
} }
SelectNode.isTreeNode = true; SelectNode.isTreeNode = true;