feat: ele 注册rate组件
parent
22bd8b8f45
commit
3055931904
|
|
@ -132,6 +132,12 @@ const ElCascader = defineAsyncComponent(() =>
|
||||||
import('element-plus/es/components/cascader/style/css'),
|
import('element-plus/es/components/cascader/style/css'),
|
||||||
]).then(([res]) => res.ElCascader),
|
]).then(([res]) => res.ElCascader),
|
||||||
);
|
);
|
||||||
|
const ElRate = defineAsyncComponent(() =>
|
||||||
|
Promise.all([
|
||||||
|
import('element-plus/es/components/rate/index'),
|
||||||
|
import('element-plus/es/components/rate/style/css'),
|
||||||
|
]).then(([res]) => res.ElRate),
|
||||||
|
);
|
||||||
|
|
||||||
const withDefaultPlaceholder = <T extends Component>(
|
const withDefaultPlaceholder = <T extends Component>(
|
||||||
component: T,
|
component: T,
|
||||||
|
|
@ -184,6 +190,7 @@ export type ComponentType =
|
||||||
| 'InputTag'
|
| 'InputTag'
|
||||||
| 'RadioGroup'
|
| 'RadioGroup'
|
||||||
| 'RangePicker'
|
| 'RangePicker'
|
||||||
|
| 'Rate'
|
||||||
| 'RichTextarea'
|
| 'RichTextarea'
|
||||||
| 'Select'
|
| 'Select'
|
||||||
| 'Space'
|
| 'Space'
|
||||||
|
|
@ -339,6 +346,7 @@ async function initComponentAdapter() {
|
||||||
slots,
|
slots,
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
Rate: ElRate,
|
||||||
DatePicker: (props, { attrs, slots }) => {
|
DatePicker: (props, { attrs, slots }) => {
|
||||||
const { name, id, type } = props;
|
const { name, id, type } = props;
|
||||||
const extraProps: Recordable<any> = {};
|
const extraProps: Recordable<any> = {};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue