yc-pro-components 0.0.11 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/check-card/index.d.ts +61 -61
- package/es/components/check-card/src/index.vue.d.ts +4 -4
- package/es/components/check-card-group/index.d.ts +43 -43
- package/es/components/check-card-group/src/index.vue.d.ts +3 -3
- package/es/components/date-picker/index.d.ts +10 -10
- package/es/components/date-picker/src/index.vue.d.ts +2 -2
- package/es/components/dialog/index.d.ts +26 -26
- package/es/components/dialog/src/index.vue.d.ts +2 -2
- package/es/components/dialog-form/index.d.ts +44 -32
- package/es/components/dialog-form/src/index.vue.d.ts +22 -10
- package/es/components/display-item/index.d.ts +80 -44
- package/es/components/display-item/src/index.vue.d.ts +61 -25
- package/es/components/drawer-form/index.d.ts +63 -51
- package/es/components/drawer-form/src/index.vue.d.ts +23 -11
- package/es/components/form/index.d.ts +71 -47
- package/es/components/form/src/form-content.vue.d.ts +60 -24
- package/es/components/form/src/index.vue.d.ts +43 -19
- package/es/components/form-item/index.d.ts +129 -57
- package/es/components/form-item/src/index.vue.d.ts +46 -15
- package/es/components/form-item/src/index.vue2.mjs +1 -0
- package/es/components/header/index.d.ts +19 -19
- package/es/components/header/src/index.vue.d.ts +1 -1
- package/es/components/input-tag/index.d.ts +20 -20
- package/es/components/input-tag/src/index.vue.d.ts +8 -8
- package/es/components/layout/index.d.ts +30 -30
- package/es/components/layout/src/index.vue.d.ts +10 -10
- package/es/components/page/index.d.ts +751 -469
- package/es/components/page/src/index.vue.d.ts +263 -161
- package/es/components/page/src/index.vue2.mjs +1 -1
- package/es/components/pagination/index.d.ts +42 -42
- package/es/components/pagination/src/index.vue.d.ts +3 -3
- package/es/components/radio/index.d.ts +35 -35
- package/es/components/radio/src/index.vue.d.ts +27 -27
- package/es/components/render/index.d.ts +6 -6
- package/es/components/render/src/index.vue.d.ts +2 -2
- package/es/components/search/index.d.ts +284 -162
- package/es/components/search/src/index.vue.d.ts +95 -53
- package/es/components/search/src/index.vue2.mjs +14 -4
- package/es/components/search/src/type.d.ts +9 -0
- package/es/components/sidebar/index.d.ts +15 -15
- package/es/components/sidebar/src/index.vue.d.ts +5 -5
- package/es/components/steps-form/index.d.ts +23 -23
- package/es/components/steps-form/src/index.vue.d.ts +2 -2
- package/es/components/table/index.d.ts +54 -54
- package/es/components/table/src/index.vue.d.ts +18 -18
- package/es/components/table/src/table-action-bar.vue2.mjs +1 -1
- package/es/components/table/src/table-column-drag-sort.vue.d.ts +18 -18
- package/es/components/table/src/table-column.vue.d.ts +76 -40
- package/es/components/utils/index.d.ts +2 -2
- package/es/components/yc-dialog/index.d.ts +24 -24
- package/es/components/yc-download-dialog/index.d.ts +19 -19
- package/es/components/yc-download-dialog/src/index.vue.d.ts +1 -1
- package/es/components/yc-form-container-header/index.d.ts +12 -12
- package/es/components/yc-more-actions/index.d.ts +46 -46
- package/es/components/yc-more-actions/src/index.vue.d.ts +3 -3
- package/es/components/yc-plus-page/src/index.vue.d.ts +588 -529
- package/es/components/yc-plus-page/src/index.vue.mjs +1 -1
- package/es/components/yc-plus-page/src/index.vue2.mjs +8 -2
- package/es/components/yc-segmented/index.d.ts +2 -2
- package/es/components/yc-segmented/src/index.d.ts +2 -2
- package/es/components/yc-select-v2/src/index.vue.d.ts +3 -3
- package/es/components/yc-status-dialog/src/index.vue.d.ts +1 -1
- package/es/components/yc-tabs-with-filter/index.d.ts +16 -16
- package/es/components/yc-text/src/index.vue.d.ts +2 -2
- package/es/constants/dict.d.ts +78 -0
- package/es/constants/dict.mjs +3 -0
- package/es/constants/index.d.ts +1 -0
- package/es/constants/index.mjs +1 -0
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/index.mjs +1 -0
- package/es/hooks/useDictInjection.d.ts +38 -0
- package/es/hooks/useDictInjection.mjs +18 -0
- package/es/hooks/useGetOptions.mjs +118 -30
- package/es/hooks/usePlusFormReset.d.ts +286 -214
- package/es/index.css +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.mjs +2 -0
- package/es/types/plus.d.ts +74 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/yc-components/index.d.ts +1 -1
- package/es/yc-components/version.d.ts +1 -1
- package/index.css +9 -5
- package/index.js +187 -65
- package/index.min.css +1 -1
- package/index.min.js +7 -7
- package/index.min.mjs +7 -7
- package/index.mjs +187 -67
- package/lib/components/check-card/index.d.ts +61 -61
- package/lib/components/check-card/src/index.vue.d.ts +4 -4
- package/lib/components/check-card-group/index.d.ts +43 -43
- package/lib/components/check-card-group/src/index.vue.d.ts +3 -3
- package/lib/components/date-picker/index.d.ts +10 -10
- package/lib/components/date-picker/src/index.vue.d.ts +2 -2
- package/lib/components/dialog/index.d.ts +26 -26
- package/lib/components/dialog/src/index.vue.d.ts +2 -2
- package/lib/components/dialog-form/index.d.ts +44 -32
- package/lib/components/dialog-form/src/index.vue.d.ts +22 -10
- package/lib/components/display-item/index.d.ts +80 -44
- package/lib/components/display-item/src/index.vue.d.ts +61 -25
- package/lib/components/drawer-form/index.d.ts +63 -51
- package/lib/components/drawer-form/src/index.vue.d.ts +23 -11
- package/lib/components/form/index.d.ts +71 -47
- package/lib/components/form/src/form-content.vue.d.ts +60 -24
- package/lib/components/form/src/index.vue.d.ts +43 -19
- package/lib/components/form-item/index.d.ts +129 -57
- package/lib/components/form-item/src/index.vue.d.ts +46 -15
- package/lib/components/form-item/src/index.vue2.js +1 -0
- package/lib/components/header/index.d.ts +19 -19
- package/lib/components/header/src/index.vue.d.ts +1 -1
- package/lib/components/input-tag/index.d.ts +20 -20
- package/lib/components/input-tag/src/index.vue.d.ts +8 -8
- package/lib/components/layout/index.d.ts +30 -30
- package/lib/components/layout/src/index.vue.d.ts +10 -10
- package/lib/components/page/index.d.ts +751 -469
- package/lib/components/page/src/index.vue.d.ts +263 -161
- package/lib/components/page/src/index.vue2.js +1 -1
- package/lib/components/pagination/index.d.ts +42 -42
- package/lib/components/pagination/src/index.vue.d.ts +3 -3
- package/lib/components/radio/index.d.ts +35 -35
- package/lib/components/radio/src/index.vue.d.ts +27 -27
- package/lib/components/render/index.d.ts +6 -6
- package/lib/components/render/src/index.vue.d.ts +2 -2
- package/lib/components/search/index.d.ts +284 -162
- package/lib/components/search/src/index.vue.d.ts +95 -53
- package/lib/components/search/src/index.vue2.js +13 -3
- package/lib/components/search/src/type.d.ts +9 -0
- package/lib/components/sidebar/index.d.ts +15 -15
- package/lib/components/sidebar/src/index.vue.d.ts +5 -5
- package/lib/components/steps-form/index.d.ts +23 -23
- package/lib/components/steps-form/src/index.vue.d.ts +2 -2
- package/lib/components/table/index.d.ts +54 -54
- package/lib/components/table/src/index.vue.d.ts +18 -18
- package/lib/components/table/src/table-action-bar.vue2.js +1 -1
- package/lib/components/table/src/table-column-drag-sort.vue.d.ts +18 -18
- package/lib/components/table/src/table-column.vue.d.ts +76 -40
- package/lib/components/utils/index.d.ts +2 -2
- package/lib/components/yc-dialog/index.d.ts +24 -24
- package/lib/components/yc-download-dialog/index.d.ts +19 -19
- package/lib/components/yc-download-dialog/src/index.vue.d.ts +1 -1
- package/lib/components/yc-form-container-header/index.d.ts +12 -12
- package/lib/components/yc-more-actions/index.d.ts +46 -46
- package/lib/components/yc-more-actions/src/index.vue.d.ts +3 -3
- package/lib/components/yc-plus-page/src/index.vue.d.ts +588 -529
- package/lib/components/yc-plus-page/src/index.vue.js +1 -1
- package/lib/components/yc-plus-page/src/index.vue2.js +8 -2
- package/lib/components/yc-segmented/index.d.ts +2 -2
- package/lib/components/yc-segmented/src/index.d.ts +2 -2
- package/lib/components/yc-select-v2/src/index.vue.d.ts +3 -3
- package/lib/components/yc-status-dialog/src/index.vue.d.ts +1 -1
- package/lib/components/yc-tabs-with-filter/index.d.ts +16 -16
- package/lib/components/yc-text/src/index.vue.d.ts +2 -2
- package/lib/constants/dict.d.ts +78 -0
- package/lib/constants/dict.js +5 -0
- package/lib/constants/index.d.ts +1 -0
- package/lib/constants/index.js +2 -0
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/index.js +2 -0
- package/lib/hooks/useDictInjection.d.ts +38 -0
- package/lib/hooks/useDictInjection.js +20 -0
- package/lib/hooks/useGetOptions.js +117 -29
- package/lib/hooks/usePlusFormReset.d.ts +286 -214
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +4 -0
- package/lib/types/plus.d.ts +74 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/yc-components/index.d.ts +1 -1
- package/lib/yc-components/version.d.ts +1 -1
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/ja.js +1 -1
- package/locale/ja.min.js +1 -1
- package/locale/ja.min.mjs +1 -1
- package/locale/ja.mjs +1 -1
- package/locale/ko.js +1 -1
- package/locale/ko.min.js +1 -1
- package/locale/ko.min.mjs +1 -1
- package/locale/ko.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/locale/zh-tw.js +1 -1
- package/locale/zh-tw.min.js +1 -1
- package/locale/zh-tw.min.mjs +1 -1
- package/locale/zh-tw.mjs +1 -1
- package/package.json +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/plus-page.css +1 -1
- package/theme-chalk/src/page.scss +1 -1
|
@@ -28,6 +28,11 @@ export interface PlusFormItemProps {
|
|
|
28
28
|
* @default{ label: 'label'; value: 'value' }
|
|
29
29
|
*/
|
|
30
30
|
optionsMap?: PlusColumn['optionsMap'];
|
|
31
|
+
/**
|
|
32
|
+
* @desc 自动字典注入
|
|
33
|
+
* @version v0.2.0
|
|
34
|
+
*/
|
|
35
|
+
autoDict?: PlusColumn['autoDict'];
|
|
31
36
|
index?: number;
|
|
32
37
|
/**
|
|
33
38
|
* @version v0.1.18
|
|
@@ -53,6 +58,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
53
58
|
fieldChildrenSlot: undefined;
|
|
54
59
|
renderErrorMessage: undefined;
|
|
55
60
|
optionsMap: undefined;
|
|
61
|
+
autoDict: undefined;
|
|
56
62
|
clearable: boolean;
|
|
57
63
|
index: number;
|
|
58
64
|
}>, {
|
|
@@ -407,14 +413,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
407
413
|
fieldChildrenSlot: undefined;
|
|
408
414
|
renderErrorMessage: undefined;
|
|
409
415
|
optionsMap: undefined;
|
|
416
|
+
autoDict: undefined;
|
|
410
417
|
clearable: boolean;
|
|
411
418
|
index: number;
|
|
412
419
|
}>>> & {
|
|
413
|
-
"onUpdate:modelValue"?: ((value: FieldValueType) => any) | undefined;
|
|
414
420
|
onChange?: ((value: FieldValueType) => any) | undefined;
|
|
421
|
+
"onUpdate:modelValue"?: ((value: FieldValueType) => any) | undefined;
|
|
415
422
|
}, {
|
|
416
423
|
index: number;
|
|
417
|
-
modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
418
424
|
label: string | ComputedRef<string>;
|
|
419
425
|
tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
420
426
|
style?: CSSProperties | undefined;
|
|
@@ -441,7 +447,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
441
447
|
};
|
|
442
448
|
rows: number;
|
|
443
449
|
autocomplete: string;
|
|
444
|
-
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "
|
|
450
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
445
451
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
446
452
|
step: string | number;
|
|
447
453
|
format: string | ProgressFn | undefined;
|
|
@@ -452,13 +458,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
452
458
|
autosize: InputAutoSize;
|
|
453
459
|
} & Mutable<Omit< AutocompleteProps, OmitTypes> & Omit< CascaderProps, OmitTypes> & Omit< CheckboxGroupProps, OmitTypes> & Omit< ColorPickerProps, OmitTypes> & Omit< DatePickerProps, OmitTypes> & Omit< InputProps, OmitTypes> & Omit< InputNumberProps, OmitTypes> & Omit< RadioGroupProps, OmitTypes> & Omit< RateProps, OmitTypes> & Omit< ISelectProps, OmitTypes> & Omit< SliderProps, OmitTypes> & Omit< SwitchProps, OmitTypes> & Omit< TimePickerDefaultProps, OmitTypes> & Omit< TimeSelectProps, OmitTypes> & Omit< PlusRadioProps, OmitTypes> & Omit< PlusDatePickerProps, OmitTypes> & Omit< PlusInputTagProps, OmitTypes> & Omit< TextProps, OmitTypes> & Omit< ImageProps, OmitTypes> & Omit< LinkProps, OmitTypes> & Omit< TagProps, OmitTypes> & Omit< ProgressProps, OmitTypes>>>>;
|
|
454
460
|
options: OptionsType;
|
|
461
|
+
modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
455
462
|
fieldSlots: {
|
|
456
463
|
[slotName: string]: (data?: any) => RenderTypes;
|
|
457
464
|
};
|
|
458
465
|
fieldChildrenSlot: (option?: OptionsRow<undefined> | undefined) => RenderTypes;
|
|
459
466
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
460
467
|
clearable: boolean;
|
|
461
|
-
valueType: "input" | "select" | "textarea" | "switch" | "text" | TableValueType | "
|
|
468
|
+
valueType: "input" | "select" | "textarea" | "switch" | "text" | TableValueType | "rate" | "input-number" | "slider" | "checkbox" | "cascader" | "plus-date-picker" | "plus-input-tag" | "transfer" | "radio" | "select-v2" | "plus-radio" | "autocomplete" | "color-picker" | "date-picker" | "time-picker" | "time-select" | "tree-select";
|
|
462
469
|
renderField: (value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes;
|
|
463
470
|
renderLabel: (label: string, props: PlusColumn) => RenderTypes;
|
|
464
471
|
renderErrorMessage: (props: PlusColumn & {
|
|
@@ -470,6 +477,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
470
477
|
label?: string | undefined;
|
|
471
478
|
value?: string | undefined;
|
|
472
479
|
};
|
|
480
|
+
autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise<OptionsRow<undefined>[]>) | {
|
|
481
|
+
store?: any;
|
|
482
|
+
method?: string | undefined;
|
|
483
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
484
|
+
dictCode?: string | undefined;
|
|
485
|
+
};
|
|
473
486
|
}, {}>, Partial<Record<string, (_: {
|
|
474
487
|
label: string;
|
|
475
488
|
fieldProps: RecordType;
|
|
@@ -478,12 +491,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
478
491
|
fieldInstance?: any;
|
|
479
492
|
valueIsReady?: Ref<boolean> | undefined;
|
|
480
493
|
prop: string;
|
|
481
|
-
modelValue: string | number | boolean | string[] | [string, string] |
|
|
494
|
+
modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
482
495
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
483
|
-
tooltip: string |
|
|
496
|
+
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
484
497
|
style?: CSSProperties | undefined;
|
|
485
498
|
class?: any;
|
|
486
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
499
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
487
500
|
style?: CSSProperties | undefined;
|
|
488
501
|
class?: any;
|
|
489
502
|
} & RecordType>>;
|
|
@@ -503,17 +516,23 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
503
516
|
label?: string | undefined;
|
|
504
517
|
value?: string | undefined;
|
|
505
518
|
} | undefined;
|
|
519
|
+
autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise<OptionsRow<undefined>[]>) | {
|
|
520
|
+
store?: any;
|
|
521
|
+
method?: string | undefined;
|
|
522
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
523
|
+
dictCode?: string | undefined;
|
|
524
|
+
} | undefined;
|
|
506
525
|
clearable: boolean;
|
|
507
526
|
index: number;
|
|
508
527
|
}) => any>> & Partial<Record<string, (_: {
|
|
509
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "
|
|
528
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
510
529
|
readonly label: string | ComputedRef<string>;
|
|
511
|
-
readonly modelValue: string | number | boolean | string[] | [string, string] |
|
|
530
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
512
531
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
513
|
-
readonly tooltip: string |
|
|
532
|
+
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
514
533
|
style?: CSSProperties | undefined;
|
|
515
534
|
class?: any;
|
|
516
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
535
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
517
536
|
style?: CSSProperties | undefined;
|
|
518
537
|
class?: any;
|
|
519
538
|
} & RecordType>>;
|
|
@@ -535,7 +554,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
535
554
|
};
|
|
536
555
|
rows: number;
|
|
537
556
|
autocomplete: string;
|
|
538
|
-
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "
|
|
557
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
539
558
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
540
559
|
step: string | number;
|
|
541
560
|
format: string | ProgressFn | undefined;
|
|
@@ -562,6 +581,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
562
581
|
label?: string | undefined;
|
|
563
582
|
value?: string | undefined;
|
|
564
583
|
} | undefined;
|
|
584
|
+
readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise<OptionsRow<undefined>[]>) | {
|
|
585
|
+
store?: any;
|
|
586
|
+
method?: string | undefined;
|
|
587
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
588
|
+
dictCode?: string | undefined;
|
|
589
|
+
} | undefined;
|
|
565
590
|
readonly clearable: boolean;
|
|
566
591
|
readonly index: number;
|
|
567
592
|
} & {
|
|
@@ -574,12 +599,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
574
599
|
fieldInstance?: any;
|
|
575
600
|
valueIsReady?: Ref<boolean> | undefined;
|
|
576
601
|
prop: string;
|
|
577
|
-
modelValue: string | number | boolean | string[] | [string, string] |
|
|
602
|
+
modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
578
603
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
579
|
-
tooltip: string |
|
|
604
|
+
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
580
605
|
style?: CSSProperties | undefined;
|
|
581
606
|
class?: any;
|
|
582
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
607
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
583
608
|
style?: CSSProperties | undefined;
|
|
584
609
|
class?: any;
|
|
585
610
|
} & RecordType>>;
|
|
@@ -599,6 +624,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
599
624
|
label?: string | undefined;
|
|
600
625
|
value?: string | undefined;
|
|
601
626
|
} | undefined;
|
|
627
|
+
autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise<OptionsRow<undefined>[]>) | {
|
|
628
|
+
store?: any;
|
|
629
|
+
method?: string | undefined;
|
|
630
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
631
|
+
dictCode?: string | undefined;
|
|
632
|
+
} | undefined;
|
|
602
633
|
clearable: boolean;
|
|
603
634
|
index: number;
|
|
604
635
|
}) => any>> & {
|
|
@@ -33,6 +33,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
33
33
|
fieldChildrenSlot: { type: Function, default: void 0 },
|
|
34
34
|
renderErrorMessage: { type: Function, default: void 0 },
|
|
35
35
|
optionsMap: { default: void 0 },
|
|
36
|
+
autoDict: { type: [Boolean, Function, Object], default: void 0 },
|
|
36
37
|
index: { default: 0 },
|
|
37
38
|
clearable: { type: Boolean, default: true }
|
|
38
39
|
},
|
|
@@ -3,6 +3,10 @@ import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOpt
|
|
|
3
3
|
export * from './src/type';
|
|
4
4
|
export declare const PlusHeader: {
|
|
5
5
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
6
|
+
trigger: {
|
|
7
|
+
type: PropType<"hover" | "click">;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
6
10
|
fixed: {
|
|
7
11
|
type: PropType<boolean>;
|
|
8
12
|
default: boolean;
|
|
@@ -11,10 +15,6 @@ export declare const PlusHeader: {
|
|
|
11
15
|
type: PropType<string>;
|
|
12
16
|
default: string;
|
|
13
17
|
};
|
|
14
|
-
trigger: {
|
|
15
|
-
type: PropType<"click" | "hover">;
|
|
16
|
-
default: string;
|
|
17
|
-
};
|
|
18
18
|
logo: {
|
|
19
19
|
type: PropType<string>;
|
|
20
20
|
default: string;
|
|
@@ -67,6 +67,10 @@ export declare const PlusHeader: {
|
|
|
67
67
|
value: string;
|
|
68
68
|
}) => void;
|
|
69
69
|
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
70
|
+
trigger: {
|
|
71
|
+
type: PropType<"hover" | "click">;
|
|
72
|
+
default: string;
|
|
73
|
+
};
|
|
70
74
|
fixed: {
|
|
71
75
|
type: PropType<boolean>;
|
|
72
76
|
default: boolean;
|
|
@@ -75,10 +79,6 @@ export declare const PlusHeader: {
|
|
|
75
79
|
type: PropType<string>;
|
|
76
80
|
default: string;
|
|
77
81
|
};
|
|
78
|
-
trigger: {
|
|
79
|
-
type: PropType<"click" | "hover">;
|
|
80
|
-
default: string;
|
|
81
|
-
};
|
|
82
82
|
logo: {
|
|
83
83
|
type: PropType<string>;
|
|
84
84
|
default: string;
|
|
@@ -126,9 +126,9 @@ export declare const PlusHeader: {
|
|
|
126
126
|
value: string;
|
|
127
127
|
}) => any) | undefined;
|
|
128
128
|
}, {
|
|
129
|
+
trigger: "hover" | "click";
|
|
129
130
|
fixed: boolean;
|
|
130
131
|
title: string;
|
|
131
|
-
trigger: "click" | "hover";
|
|
132
132
|
logo: string;
|
|
133
133
|
logoutText: string;
|
|
134
134
|
userInfo: {
|
|
@@ -151,6 +151,10 @@ export declare const PlusHeader: {
|
|
|
151
151
|
M: {};
|
|
152
152
|
Defaults: {};
|
|
153
153
|
}, Readonly< ExtractPropTypes<{
|
|
154
|
+
trigger: {
|
|
155
|
+
type: PropType<"hover" | "click">;
|
|
156
|
+
default: string;
|
|
157
|
+
};
|
|
154
158
|
fixed: {
|
|
155
159
|
type: PropType<boolean>;
|
|
156
160
|
default: boolean;
|
|
@@ -159,10 +163,6 @@ export declare const PlusHeader: {
|
|
|
159
163
|
type: PropType<string>;
|
|
160
164
|
default: string;
|
|
161
165
|
};
|
|
162
|
-
trigger: {
|
|
163
|
-
type: PropType<"click" | "hover">;
|
|
164
|
-
default: string;
|
|
165
|
-
};
|
|
166
166
|
logo: {
|
|
167
167
|
type: PropType<string>;
|
|
168
168
|
default: string;
|
|
@@ -210,9 +210,9 @@ export declare const PlusHeader: {
|
|
|
210
210
|
value: string;
|
|
211
211
|
}) => any) | undefined;
|
|
212
212
|
}, {}, {}, {}, {}, {
|
|
213
|
+
trigger: "hover" | "click";
|
|
213
214
|
fixed: boolean;
|
|
214
215
|
title: string;
|
|
215
|
-
trigger: "click" | "hover";
|
|
216
216
|
logo: string;
|
|
217
217
|
logoutText: string;
|
|
218
218
|
userInfo: {
|
|
@@ -232,6 +232,10 @@ export declare const PlusHeader: {
|
|
|
232
232
|
__isTeleport?: undefined;
|
|
233
233
|
__isSuspense?: undefined;
|
|
234
234
|
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
235
|
+
trigger: {
|
|
236
|
+
type: PropType<"hover" | "click">;
|
|
237
|
+
default: string;
|
|
238
|
+
};
|
|
235
239
|
fixed: {
|
|
236
240
|
type: PropType<boolean>;
|
|
237
241
|
default: boolean;
|
|
@@ -240,10 +244,6 @@ export declare const PlusHeader: {
|
|
|
240
244
|
type: PropType<string>;
|
|
241
245
|
default: string;
|
|
242
246
|
};
|
|
243
|
-
trigger: {
|
|
244
|
-
type: PropType<"click" | "hover">;
|
|
245
|
-
default: string;
|
|
246
|
-
};
|
|
247
247
|
logo: {
|
|
248
248
|
type: PropType<string>;
|
|
249
249
|
default: string;
|
|
@@ -296,9 +296,9 @@ export declare const PlusHeader: {
|
|
|
296
296
|
value: string;
|
|
297
297
|
}) => void;
|
|
298
298
|
}, string, {
|
|
299
|
+
trigger: "hover" | "click";
|
|
299
300
|
fixed: boolean;
|
|
300
301
|
title: string;
|
|
301
|
-
trigger: "click" | "hover";
|
|
302
302
|
logo: string;
|
|
303
303
|
logoutText: string;
|
|
304
304
|
userInfo: {
|
|
@@ -30,9 +30,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
30
30
|
value: string;
|
|
31
31
|
}) => any) | undefined;
|
|
32
32
|
}, {
|
|
33
|
+
trigger: "hover" | "click";
|
|
33
34
|
fixed: boolean;
|
|
34
35
|
title: string;
|
|
35
|
-
trigger: "click" | "hover";
|
|
36
36
|
logo: string;
|
|
37
37
|
logoutText: string;
|
|
38
38
|
userInfo: {
|
|
@@ -7,17 +7,17 @@ import { PlusInputTagProps } from './src/index.vue';
|
|
|
7
7
|
|
|
8
8
|
export type { PlusInputTagProps };
|
|
9
9
|
export declare const PlusInputTag: DefineComponent<{
|
|
10
|
-
|
|
11
|
-
type: PropType<
|
|
12
|
-
default: () =>
|
|
10
|
+
trigger: {
|
|
11
|
+
type: PropType<("blur" | "space" | "enter") | ("blur" | "space" | "enter")[]>;
|
|
12
|
+
default: () => string[];
|
|
13
13
|
};
|
|
14
14
|
disabled: {
|
|
15
15
|
type: PropType<boolean>;
|
|
16
16
|
default: boolean;
|
|
17
17
|
};
|
|
18
|
-
|
|
19
|
-
type: PropType<
|
|
20
|
-
default: () =>
|
|
18
|
+
modelValue: {
|
|
19
|
+
type: PropType<string[]>;
|
|
20
|
+
default: () => never[];
|
|
21
21
|
};
|
|
22
22
|
inputProps: {
|
|
23
23
|
type: PropType<Partial< Mutable<InputProps> & {
|
|
@@ -70,7 +70,7 @@ export declare const PlusInputTag: DefineComponent<{
|
|
|
70
70
|
};
|
|
71
71
|
readonly type: EpPropFinalized<StringConstructor, unknown, unknown, "text", boolean>;
|
|
72
72
|
readonly resize: {
|
|
73
|
-
readonly type: PropType<EpPropMergeType<StringConstructor, "
|
|
73
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "both" | "none" | "horizontal" | "vertical", unknown>>;
|
|
74
74
|
readonly required: false;
|
|
75
75
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
76
76
|
__epPropKey: true;
|
|
@@ -167,7 +167,7 @@ export declare const PlusInputTag: DefineComponent<{
|
|
|
167
167
|
};
|
|
168
168
|
readonly type: EpPropFinalized<StringConstructor, unknown, unknown, "text", boolean>;
|
|
169
169
|
readonly resize: {
|
|
170
|
-
readonly type: PropType<EpPropMergeType<StringConstructor, "
|
|
170
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "both" | "none" | "horizontal" | "vertical", unknown>>;
|
|
171
171
|
readonly required: false;
|
|
172
172
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
173
173
|
__epPropKey: true;
|
|
@@ -438,7 +438,7 @@ export declare const PlusInputTag: DefineComponent<{
|
|
|
438
438
|
};
|
|
439
439
|
readonly type: EpPropFinalized<StringConstructor, unknown, unknown, "text", boolean>;
|
|
440
440
|
readonly resize: {
|
|
441
|
-
readonly type: PropType<EpPropMergeType<StringConstructor, "
|
|
441
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "both" | "none" | "horizontal" | "vertical", unknown>>;
|
|
442
442
|
readonly required: false;
|
|
443
443
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
444
444
|
__epPropKey: true;
|
|
@@ -558,7 +558,7 @@ export declare const PlusInputTag: DefineComponent<{
|
|
|
558
558
|
};
|
|
559
559
|
readonly type: EpPropFinalized<StringConstructor, unknown, unknown, "text", boolean>;
|
|
560
560
|
readonly resize: {
|
|
561
|
-
readonly type: PropType<EpPropMergeType<StringConstructor, "
|
|
561
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "both" | "none" | "horizontal" | "vertical", unknown>>;
|
|
562
562
|
readonly required: false;
|
|
563
563
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
564
564
|
__epPropKey: true;
|
|
@@ -655,7 +655,7 @@ export declare const PlusInputTag: DefineComponent<{
|
|
|
655
655
|
};
|
|
656
656
|
readonly type: EpPropFinalized<StringConstructor, unknown, unknown, "text", boolean>;
|
|
657
657
|
readonly resize: {
|
|
658
|
-
readonly type: PropType<EpPropMergeType<StringConstructor, "
|
|
658
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "both" | "none" | "horizontal" | "vertical", unknown>>;
|
|
659
659
|
readonly required: false;
|
|
660
660
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
661
661
|
__epPropKey: true;
|
|
@@ -1203,17 +1203,17 @@ export declare const PlusInputTag: DefineComponent<{
|
|
|
1203
1203
|
enter: (value: string, event: MouseEvent) => void;
|
|
1204
1204
|
space: (value: string, event: MouseEvent) => void;
|
|
1205
1205
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
1206
|
-
|
|
1207
|
-
type: PropType<
|
|
1208
|
-
default: () =>
|
|
1206
|
+
trigger: {
|
|
1207
|
+
type: PropType<("blur" | "space" | "enter") | ("blur" | "space" | "enter")[]>;
|
|
1208
|
+
default: () => string[];
|
|
1209
1209
|
};
|
|
1210
1210
|
disabled: {
|
|
1211
1211
|
type: PropType<boolean>;
|
|
1212
1212
|
default: boolean;
|
|
1213
1213
|
};
|
|
1214
|
-
|
|
1215
|
-
type: PropType<
|
|
1216
|
-
default: () =>
|
|
1214
|
+
modelValue: {
|
|
1215
|
+
type: PropType<string[]>;
|
|
1216
|
+
default: () => never[];
|
|
1217
1217
|
};
|
|
1218
1218
|
inputProps: {
|
|
1219
1219
|
type: PropType<Partial< Mutable<InputProps> & {
|
|
@@ -1242,16 +1242,16 @@ export declare const PlusInputTag: DefineComponent<{
|
|
|
1242
1242
|
default: boolean;
|
|
1243
1243
|
};
|
|
1244
1244
|
}>> & {
|
|
1245
|
-
"onUpdate:modelValue"?: ((data: string[]) => any) | undefined;
|
|
1246
1245
|
onBlur?: ((value: string, event: FocusEvent) => any) | undefined;
|
|
1247
1246
|
onChange?: ((data: string[]) => any) | undefined;
|
|
1248
1247
|
onEnter?: ((value: string, event: MouseEvent) => any) | undefined;
|
|
1248
|
+
"onUpdate:modelValue"?: ((data: string[]) => any) | undefined;
|
|
1249
1249
|
onRemove?: ((tag: string) => any) | undefined;
|
|
1250
1250
|
onSpace?: ((value: string, event: MouseEvent) => any) | undefined;
|
|
1251
1251
|
}, {
|
|
1252
|
-
modelValue: string[];
|
|
1253
|
-
disabled: boolean;
|
|
1254
1252
|
trigger: ("blur" | "space" | "enter") | ("blur" | "space" | "enter")[];
|
|
1253
|
+
disabled: boolean;
|
|
1254
|
+
modelValue: string[];
|
|
1255
1255
|
inputProps: Partial< Mutable<InputProps> & {
|
|
1256
1256
|
style?: CSSProperties | undefined;
|
|
1257
1257
|
class?: any;
|
|
@@ -65,7 +65,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
|
|
|
65
65
|
};
|
|
66
66
|
readonly type: EpPropFinalized<StringConstructor, unknown, unknown, "text", boolean>;
|
|
67
67
|
readonly resize: {
|
|
68
|
-
readonly type: PropType<EpPropMergeType<StringConstructor, "
|
|
68
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "both" | "none" | "horizontal" | "vertical", unknown>>;
|
|
69
69
|
readonly required: false;
|
|
70
70
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
71
71
|
__epPropKey: true;
|
|
@@ -162,7 +162,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
|
|
|
162
162
|
};
|
|
163
163
|
readonly type: EpPropFinalized<StringConstructor, unknown, unknown, "text", boolean>;
|
|
164
164
|
readonly resize: {
|
|
165
|
-
readonly type: PropType<EpPropMergeType<StringConstructor, "
|
|
165
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "both" | "none" | "horizontal" | "vertical", unknown>>;
|
|
166
166
|
readonly required: false;
|
|
167
167
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
168
168
|
__epPropKey: true;
|
|
@@ -433,7 +433,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
|
|
|
433
433
|
};
|
|
434
434
|
readonly type: EpPropFinalized<StringConstructor, unknown, unknown, "text", boolean>;
|
|
435
435
|
readonly resize: {
|
|
436
|
-
readonly type: PropType<EpPropMergeType<StringConstructor, "
|
|
436
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "both" | "none" | "horizontal" | "vertical", unknown>>;
|
|
437
437
|
readonly required: false;
|
|
438
438
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
439
439
|
__epPropKey: true;
|
|
@@ -553,7 +553,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
|
|
|
553
553
|
};
|
|
554
554
|
readonly type: EpPropFinalized<StringConstructor, unknown, unknown, "text", boolean>;
|
|
555
555
|
readonly resize: {
|
|
556
|
-
readonly type: PropType<EpPropMergeType<StringConstructor, "
|
|
556
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "both" | "none" | "horizontal" | "vertical", unknown>>;
|
|
557
557
|
readonly required: false;
|
|
558
558
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
559
559
|
__epPropKey: true;
|
|
@@ -650,7 +650,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
|
|
|
650
650
|
};
|
|
651
651
|
readonly type: EpPropFinalized<StringConstructor, unknown, unknown, "text", boolean>;
|
|
652
652
|
readonly resize: {
|
|
653
|
-
readonly type: PropType<EpPropMergeType<StringConstructor, "
|
|
653
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "both" | "none" | "horizontal" | "vertical", unknown>>;
|
|
654
654
|
readonly required: false;
|
|
655
655
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
656
656
|
__epPropKey: true;
|
|
@@ -1207,16 +1207,16 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
|
|
|
1207
1207
|
formatTag: undefined;
|
|
1208
1208
|
retainInputValue: boolean;
|
|
1209
1209
|
}>>> & {
|
|
1210
|
-
"onUpdate:modelValue"?: ((data: string[]) => any) | undefined;
|
|
1211
1210
|
onBlur?: ((value: string, event: FocusEvent) => any) | undefined;
|
|
1212
1211
|
onChange?: ((data: string[]) => any) | undefined;
|
|
1213
1212
|
onEnter?: ((value: string, event: MouseEvent) => any) | undefined;
|
|
1213
|
+
"onUpdate:modelValue"?: ((data: string[]) => any) | undefined;
|
|
1214
1214
|
onRemove?: ((tag: string) => any) | undefined;
|
|
1215
1215
|
onSpace?: ((value: string, event: MouseEvent) => any) | undefined;
|
|
1216
1216
|
}, {
|
|
1217
|
-
modelValue: string[];
|
|
1218
|
-
disabled: boolean;
|
|
1219
1217
|
trigger: TriggerType | TriggerType[];
|
|
1218
|
+
disabled: boolean;
|
|
1219
|
+
modelValue: string[];
|
|
1220
1220
|
inputProps: Partial<Mutable<InputProps> & {
|
|
1221
1221
|
style?: CSSProperties | undefined;
|
|
1222
1222
|
class?: any;
|