feat:【element-plus】form schema 支持 InputTag 组件
This commit is contained in:
@@ -66,6 +66,12 @@ const ElInputNumber = defineAsyncComponent(() =>
|
|||||||
import('element-plus/es/components/input-number/style/css'),
|
import('element-plus/es/components/input-number/style/css'),
|
||||||
]).then(([res]) => res.ElInputNumber),
|
]).then(([res]) => res.ElInputNumber),
|
||||||
);
|
);
|
||||||
|
const ElInputTag = defineAsyncComponent(() =>
|
||||||
|
Promise.all([
|
||||||
|
import('element-plus/es/components/input-tag/index'),
|
||||||
|
import('element-plus/es/components/input-tag/style/css'),
|
||||||
|
]).then(([res]) => res.ElInputTag),
|
||||||
|
);
|
||||||
const ElRadio = defineAsyncComponent(() =>
|
const ElRadio = defineAsyncComponent(() =>
|
||||||
Promise.all([
|
Promise.all([
|
||||||
import('element-plus/es/components/radio/index'),
|
import('element-plus/es/components/radio/index'),
|
||||||
@@ -175,6 +181,7 @@ export type ComponentType =
|
|||||||
| 'ImageUpload'
|
| 'ImageUpload'
|
||||||
| 'Input'
|
| 'Input'
|
||||||
| 'InputNumber'
|
| 'InputNumber'
|
||||||
|
| 'InputTag'
|
||||||
| 'RadioGroup'
|
| 'RadioGroup'
|
||||||
| 'RangePicker'
|
| 'RangePicker'
|
||||||
| 'RichTextarea'
|
| 'RichTextarea'
|
||||||
@@ -266,6 +273,7 @@ async function initComponentAdapter() {
|
|||||||
}),
|
}),
|
||||||
Input: withDefaultPlaceholder(ElInput, 'input'),
|
Input: withDefaultPlaceholder(ElInput, 'input'),
|
||||||
InputNumber: withDefaultPlaceholder(ElInputNumber, 'input'),
|
InputNumber: withDefaultPlaceholder(ElInputNumber, 'input'),
|
||||||
|
InputTag: withDefaultPlaceholder(ElInputTag, 'input'),
|
||||||
RadioGroup: (props, { attrs, slots }) => {
|
RadioGroup: (props, { attrs, slots }) => {
|
||||||
let defaultSlot;
|
let defaultSlot;
|
||||||
if (Reflect.has(slots, 'default')) {
|
if (Reflect.has(slots, 'default')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user