bm-admin-ui 1.0.50-alpha → 1.0.52-alpha

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.
Files changed (103) hide show
  1. package/es/components/button/index.d.ts +1 -1
  2. package/es/components/button/src/button.vue.d.ts +1 -1
  3. package/es/components/edit-form/index.d.ts +150 -0
  4. package/es/components/edit-form/index.js +1186 -0
  5. package/es/components/edit-form/src/composables/api.d.ts +13 -0
  6. package/es/components/edit-form/src/composables/config.d.ts +13 -0
  7. package/es/components/edit-form/src/composables/event.d.ts +10 -0
  8. package/es/components/edit-form/src/composables/utils.d.ts +12 -0
  9. package/es/components/edit-form/src/edit-form.vue.d.ts +148 -0
  10. package/es/components/edit-form/src/group.vue.d.ts +6 -0
  11. package/es/components/edit-form/src/props.d.ts +17 -0
  12. package/es/components/edit-form/src/types.d.ts +77 -0
  13. package/es/components/editor/index.d.ts +9 -9
  14. package/es/components/editor/src/editor.vue.d.ts +9 -9
  15. package/es/components/feedback/index.d.ts +7 -7
  16. package/es/components/feedback/src/bmAlert.vue.d.ts +4 -4
  17. package/es/components/feedback/src/bmModal.vue.d.ts +3 -3
  18. package/es/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +4 -4
  19. package/es/components/form-create/index.js +17 -11
  20. package/es/components/form-designer/index.js +39 -20
  21. package/es/components/index.d.ts +1 -0
  22. package/es/components/index.js +1 -0
  23. package/es/components/input-tags-display/index.d.ts +3 -3
  24. package/es/components/input-tags-display/src/input-tags-display.vue.d.ts +3 -3
  25. package/es/components/search-filter/index.d.ts +4 -4
  26. package/es/components/search-filter/src/search-filter.vue.d.ts +4 -4
  27. package/es/components/select-all/index.d.ts +13 -13
  28. package/es/components/select-all/src/selectAll.vue.d.ts +13 -13
  29. package/es/components/shops-filter/index.d.ts +1 -1
  30. package/es/components/shops-filter/src/shops-filter.vue.d.ts +1 -1
  31. package/es/components/staffs-selector/index.d.ts +3 -3
  32. package/es/components/staffs-selector/index.js +2 -2
  33. package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +3 -3
  34. package/es/components/timeline/index.d.ts +1 -1
  35. package/es/components/timeline/src/timeline-item.vue.d.ts +1 -1
  36. package/lib/components/button/index.d.ts +1 -1
  37. package/lib/components/button/src/button.vue.d.ts +1 -1
  38. package/lib/components/edit-form/index.d.ts +150 -0
  39. package/lib/components/edit-form/index.js +1195 -0
  40. package/lib/components/edit-form/src/composables/api.d.ts +13 -0
  41. package/lib/components/edit-form/src/composables/config.d.ts +13 -0
  42. package/lib/components/edit-form/src/composables/event.d.ts +10 -0
  43. package/lib/components/edit-form/src/composables/utils.d.ts +12 -0
  44. package/lib/components/edit-form/src/edit-form.vue.d.ts +148 -0
  45. package/lib/components/edit-form/src/group.vue.d.ts +6 -0
  46. package/lib/components/edit-form/src/props.d.ts +17 -0
  47. package/lib/components/edit-form/src/types.d.ts +77 -0
  48. package/lib/components/editor/index.d.ts +9 -9
  49. package/lib/components/editor/src/editor.vue.d.ts +9 -9
  50. package/lib/components/feedback/index.d.ts +7 -7
  51. package/lib/components/feedback/src/bmAlert.vue.d.ts +4 -4
  52. package/lib/components/feedback/src/bmModal.vue.d.ts +3 -3
  53. package/lib/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +4 -4
  54. package/lib/components/form-create/index.js +17 -11
  55. package/lib/components/form-designer/index.js +29 -10
  56. package/lib/components/index.d.ts +1 -0
  57. package/lib/components/index.js +7 -0
  58. package/lib/components/input-tags-display/index.d.ts +3 -3
  59. package/lib/components/input-tags-display/src/input-tags-display.vue.d.ts +3 -3
  60. package/lib/components/search-filter/index.d.ts +4 -4
  61. package/lib/components/search-filter/src/search-filter.vue.d.ts +4 -4
  62. package/lib/components/select-all/index.d.ts +13 -13
  63. package/lib/components/select-all/src/selectAll.vue.d.ts +13 -13
  64. package/lib/components/shops-filter/index.d.ts +1 -1
  65. package/lib/components/shops-filter/src/shops-filter.vue.d.ts +1 -1
  66. package/lib/components/staffs-selector/index.d.ts +3 -3
  67. package/lib/components/staffs-selector/index.js +1 -1
  68. package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +3 -3
  69. package/lib/components/timeline/index.d.ts +1 -1
  70. package/lib/components/timeline/src/timeline-item.vue.d.ts +1 -1
  71. package/package.json +1 -1
  72. package/theme-chalk/edit-form.css +1 -0
  73. package/theme-chalk/index.css +1 -1
  74. package/types/components/button/index.d.ts +1 -1
  75. package/types/components/button/src/button.vue.d.ts +1 -1
  76. package/types/components/edit-form/index.d.ts +150 -0
  77. package/types/components/edit-form/src/composables/api.d.ts +13 -0
  78. package/types/components/edit-form/src/composables/config.d.ts +13 -0
  79. package/types/components/edit-form/src/composables/event.d.ts +10 -0
  80. package/types/components/edit-form/src/composables/utils.d.ts +12 -0
  81. package/types/components/edit-form/src/edit-form.vue.d.ts +148 -0
  82. package/types/components/edit-form/src/group.vue.d.ts +6 -0
  83. package/types/components/edit-form/src/props.d.ts +17 -0
  84. package/types/components/edit-form/src/types.d.ts +77 -0
  85. package/types/components/editor/index.d.ts +9 -9
  86. package/types/components/editor/src/editor.vue.d.ts +9 -9
  87. package/types/components/feedback/index.d.ts +7 -7
  88. package/types/components/feedback/src/bmAlert.vue.d.ts +4 -4
  89. package/types/components/feedback/src/bmModal.vue.d.ts +3 -3
  90. package/types/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +4 -4
  91. package/types/components/index.d.ts +1 -0
  92. package/types/components/input-tags-display/index.d.ts +3 -3
  93. package/types/components/input-tags-display/src/input-tags-display.vue.d.ts +3 -3
  94. package/types/components/search-filter/index.d.ts +4 -4
  95. package/types/components/search-filter/src/search-filter.vue.d.ts +4 -4
  96. package/types/components/select-all/index.d.ts +13 -13
  97. package/types/components/select-all/src/selectAll.vue.d.ts +13 -13
  98. package/types/components/shops-filter/index.d.ts +1 -1
  99. package/types/components/shops-filter/src/shops-filter.vue.d.ts +1 -1
  100. package/types/components/staffs-selector/index.d.ts +3 -3
  101. package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +3 -3
  102. package/types/components/timeline/index.d.ts +1 -1
  103. package/types/components/timeline/src/timeline-item.vue.d.ts +1 -1
@@ -0,0 +1,13 @@
1
+ import type { Ref } from 'vue';
2
+ import type { FormInstance } from 'ant-design-vue';
3
+ export default function useApi(formRef: Ref<FormInstance | null>): {
4
+ clearValidate: (nameList?: (string | number | (string | number)[]) | undefined) => void;
5
+ resetFields: (nameList?: (string | number | (string | number)[]) | undefined) => void;
6
+ scrollToField: (name: string | number | (string | number)[], options?: ScrollOptions | undefined) => void;
7
+ validate: (nameList?: (string | number | (string | number)[])[] | undefined) => Promise<{
8
+ [key: string]: any;
9
+ }>;
10
+ validateFields: (nameList?: (string | number | (string | number)[])[] | undefined) => Promise<{
11
+ [key: string]: any;
12
+ }>;
13
+ };
@@ -0,0 +1,13 @@
1
+ import type { Control } from '../types';
2
+ import type { EditFormProps } from '../props';
3
+ import type { ComputedRef } from 'vue';
4
+ export default function useConfig(props: EditFormProps, colCount: ComputedRef<number>): {
5
+ config: ComputedRef<{
6
+ rows: Control[][];
7
+ hide?: boolean | undefined;
8
+ visibleControl?: ((form: Record<string, any>) => boolean) | undefined;
9
+ slot?: string | undefined;
10
+ title?: string | undefined;
11
+ class?: string | undefined;
12
+ }[]>;
13
+ };
@@ -0,0 +1,10 @@
1
+ import type { Ref } from 'vue';
2
+ import type { Control } from '../types';
3
+ export default function useEvent(tmpForm: Ref<Record<string, any>>, emits: any): {
4
+ onFormItemChange: (e: any, item: Control, selectedOptions?: any[] | undefined) => void;
5
+ onFormItemClick: (e: any, item: Control) => void;
6
+ onFormItemBlur: (e: any, item: Control) => void;
7
+ onFormItemPressEnter: (e: any, item: Control) => void;
8
+ onFormItemKeyup: (e: any, item: Control) => void;
9
+ onFormItemFocus: (e: any, item: Control) => void;
10
+ };
@@ -0,0 +1,12 @@
1
+ import type { Control } from '../types';
2
+ import type { EditFormProps } from '../props';
3
+ import type { ComputedRef, Ref } from 'vue';
4
+ export default function useUtils(props: EditFormProps, colCount: ComputedRef<number>, tmpForm: Ref<Record<string, any>>): {
5
+ getValueOfOption: (key: string | undefined, defaultKey: 'label' | 'value', option: any) => string;
6
+ getPopupContainer: (e: any) => any;
7
+ getColsConfig: (type: 'labelCol' | 'wrapperCol', item: Control, index?: number | undefined) => {
8
+ flex?: string | undefined;
9
+ } | undefined;
10
+ getControlWidth: (item: Control) => string;
11
+ getShowValue: (item: Control) => string | number;
12
+ };
@@ -0,0 +1,148 @@
1
+ import type { FormInstance } from 'ant-design-vue';
2
+ declare const _default: import("vue").DefineComponent<{
3
+ config: {
4
+ type: import("vue").PropType<import("./types").FormConfig>;
5
+ default(): {};
6
+ };
7
+ form: {
8
+ type: import("vue").PropType<Record<string, any> | null>;
9
+ default(): {};
10
+ };
11
+ groupRules: {
12
+ type: import("vue").PropType<Record<string, import("ant-design-vue/lib/form").RuleObject | import("ant-design-vue/lib/form").RuleObject[] | undefined>>;
13
+ default(): never[];
14
+ };
15
+ }, {
16
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
17
+ config: {
18
+ type: import("vue").PropType<import("./types").FormConfig>;
19
+ default(): {};
20
+ };
21
+ form: {
22
+ type: import("vue").PropType<Record<string, any> | null>;
23
+ default(): {};
24
+ };
25
+ groupRules: {
26
+ type: import("vue").PropType<Record<string, import("ant-design-vue/lib/form").RuleObject | import("ant-design-vue/lib/form").RuleObject[] | undefined>>;
27
+ default(): never[];
28
+ };
29
+ }>> & {
30
+ "onUpdate:form"?: ((...args: any[]) => any) | undefined;
31
+ "onChange:formItem"?: ((...args: any[]) => any) | undefined;
32
+ "onClick:formItem"?: ((...args: any[]) => any) | undefined;
33
+ "onBlur:formItem"?: ((...args: any[]) => any) | undefined;
34
+ "onPressEnter:formItem"?: ((...args: any[]) => any) | undefined;
35
+ "onKeyup:formItem"?: ((...args: any[]) => any) | undefined;
36
+ "onFocus:formItem"?: ((...args: any[]) => any) | undefined;
37
+ }>>;
38
+ emits: {
39
+ (e: 'update:form', value: any): void;
40
+ (e: 'change:formItem', value: any, prop: string, selectedOptions?: any[] | undefined): void;
41
+ (e: 'click:formItem', value: any, prop: string): void;
42
+ (e: 'blur:formItem', value: any, prop: string): void;
43
+ (e: 'pressEnter:formItem', value: any, prop: string): void;
44
+ (e: 'keyup:formItem', value: any, prop: string): void;
45
+ (e: 'focus:formItem', value: any, prop: string): void;
46
+ };
47
+ tmpForm: import("vue").Ref<Record<string, any>>;
48
+ formRef: import("vue").Ref<FormInstance | null>;
49
+ colCount: import("vue").ComputedRef<2 | 3 | 1>;
50
+ getValueOfOption: (key: string | undefined, defaultKey: "label" | "value", option: any) => string;
51
+ getPopupContainer: (e: any) => any;
52
+ getColsConfig: (type: "labelCol" | "wrapperCol", item: import("./types").Control, index?: number | undefined) => {
53
+ flex?: string | undefined;
54
+ } | undefined;
55
+ getControlWidth: (item: import("./types").Control) => string;
56
+ getShowValue: (item: import("./types").Control) => string | number;
57
+ config: import("vue").ComputedRef<{
58
+ rows: import("./types").Control[][];
59
+ hide?: boolean | undefined;
60
+ visibleControl?: ((form: Record<string, any>) => boolean) | undefined;
61
+ slot?: string | undefined;
62
+ title?: string | undefined;
63
+ class?: string | undefined;
64
+ }[]>;
65
+ onFormItemChange: (e: any, item: import("./types").Control, selectedOptions?: any[] | undefined) => void;
66
+ onFormItemClick: (e: any, item: import("./types").Control) => void;
67
+ onFormItemBlur: (e: any, item: import("./types").Control) => void;
68
+ onFormItemPressEnter: (e: any, item: import("./types").Control) => void;
69
+ onFormItemKeyup: (e: any, item: import("./types").Control) => void;
70
+ onFormItemFocus: (e: any, item: import("./types").Control) => void;
71
+ clearValidate: (nameList?: (string | number | (string | number)[]) | undefined) => void;
72
+ resetFields: (nameList?: (string | number | (string | number)[]) | undefined) => void;
73
+ scrollToField: (name: string | number | (string | number)[], options?: ScrollOptions | undefined) => void;
74
+ validate: (nameList?: (string | number | (string | number)[])[] | undefined) => Promise<{
75
+ [key: string]: any;
76
+ }>;
77
+ validateFields: (nameList?: (string | number | (string | number)[])[] | undefined) => Promise<{
78
+ [key: string]: any;
79
+ }>;
80
+ updateSlot: (key: string, value: any) => void;
81
+ QuestionCircleOutlined: import("@ant-design/icons-vue/lib/icons/QuestionCircleOutlined").QuestionCircleOutlinedIconType;
82
+ ClockCircleOutlined: import("@ant-design/icons-vue/lib/icons/ClockCircleOutlined").ClockCircleOutlinedIconType;
83
+ CalendarOutlined: import("@ant-design/icons-vue/lib/icons/CalendarOutlined").CalendarOutlinedIconType;
84
+ Group: import("vue").DefineComponent<{}, {
85
+ formItemContext: import("ant-design-vue/lib/form/FormItemContext").FormItemContext;
86
+ onFieldChange: () => void;
87
+ onFieldBlur: () => void;
88
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
89
+ BmOverTooltips: import("../../../utils/with-install").SFCWithInstall<{
90
+ name: string;
91
+ props: {
92
+ title: {
93
+ type: StringConstructor;
94
+ default: undefined;
95
+ };
96
+ labelTitle: {
97
+ type: StringConstructor;
98
+ default: undefined;
99
+ };
100
+ line: {
101
+ type: NumberConstructor;
102
+ default: number;
103
+ };
104
+ width: {
105
+ type: (NumberConstructor | StringConstructor)[];
106
+ default: number;
107
+ };
108
+ showAlways: {
109
+ type: BooleanConstructor;
110
+ default: boolean;
111
+ };
112
+ };
113
+ setup(props: any, context: any): {
114
+ mySelf: import("vue").Ref<any>;
115
+ handleVisibleChange: (val: any) => void;
116
+ getPopupContainer: () => HTMLElement;
117
+ mSlots: import("vue").Ref<{}>;
118
+ isShow: import("vue").Ref<boolean>;
119
+ openShow: import("vue").Ref<boolean>;
120
+ };
121
+ }>;
122
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:form" | "change:formItem" | "click:formItem" | "blur:formItem" | "pressEnter:formItem" | "keyup:formItem" | "focus:formItem")[], "update:form" | "change:formItem" | "click:formItem" | "blur:formItem" | "pressEnter:formItem" | "keyup:formItem" | "focus:formItem", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
123
+ config: {
124
+ type: import("vue").PropType<import("./types").FormConfig>;
125
+ default(): {};
126
+ };
127
+ form: {
128
+ type: import("vue").PropType<Record<string, any> | null>;
129
+ default(): {};
130
+ };
131
+ groupRules: {
132
+ type: import("vue").PropType<Record<string, import("ant-design-vue/lib/form").RuleObject | import("ant-design-vue/lib/form").RuleObject[] | undefined>>;
133
+ default(): never[];
134
+ };
135
+ }>> & {
136
+ "onUpdate:form"?: ((...args: any[]) => any) | undefined;
137
+ "onChange:formItem"?: ((...args: any[]) => any) | undefined;
138
+ "onClick:formItem"?: ((...args: any[]) => any) | undefined;
139
+ "onBlur:formItem"?: ((...args: any[]) => any) | undefined;
140
+ "onPressEnter:formItem"?: ((...args: any[]) => any) | undefined;
141
+ "onKeyup:formItem"?: ((...args: any[]) => any) | undefined;
142
+ "onFocus:formItem"?: ((...args: any[]) => any) | undefined;
143
+ }, {
144
+ config: import("./types").FormConfig;
145
+ form: Record<string, any> | null;
146
+ groupRules: Record<string, import("ant-design-vue/lib/form").RuleObject | import("ant-design-vue/lib/form").RuleObject[] | undefined>;
147
+ }>;
148
+ export default _default;
@@ -0,0 +1,6 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {
2
+ formItemContext: import("ant-design-vue/lib/form/FormItemContext").FormItemContext;
3
+ onFieldChange: () => void;
4
+ onFieldBlur: () => void;
5
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
6
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import type { ExtractPropTypes, PropType } from 'vue';
2
+ import type { FormConfig } from './types';
3
+ export declare const editFormProps: () => {
4
+ config: {
5
+ type: PropType<FormConfig>;
6
+ default(): {};
7
+ };
8
+ form: {
9
+ type: PropType<Record<string, any> | null>;
10
+ default(): {};
11
+ };
12
+ groupRules: {
13
+ type: PropType<Record<string, import("ant-design-vue/lib/form").RuleObject | import("ant-design-vue/lib/form").RuleObject[] | undefined>>;
14
+ default(): never[];
15
+ };
16
+ };
17
+ export declare type EditFormProps = Partial<ExtractPropTypes<ReturnType<typeof editFormProps>>>;
@@ -0,0 +1,77 @@
1
+ import type { FormItemProps, SelectProps, InputProps, InputNumberProps, TextAreaProps, CheckboxGroupProps, CheckboxProps, RadioGroupProps, RadioProps, CascaderProps, DatePickerProps, TimePickerProps } from 'ant-design-vue';
2
+ export declare type LayoutCol = {
3
+ flex: string;
4
+ };
5
+ export declare type Rule = FormItemProps['rules'];
6
+ declare type CustomControl = {
7
+ hide?: boolean;
8
+ visibleControl?: (form: Record<string, any>) => boolean;
9
+ slot?: string;
10
+ slotBefore?: string;
11
+ slotAfter?: string;
12
+ prop: string;
13
+ type: 'slot' | 'switch' | 'select' | 'input' | 'inputNumber' | 'textarea' | 'checkbox' | 'radio' | 'cascader' | 'datePicker' | 'timePicker' | 'rangePicker' | 'group' | 'text' | 'multiText' | 'selectText' | 'placeholder' | 'empty';
14
+ label?: string;
15
+ placeholder?: string;
16
+ disabled?: boolean;
17
+ disabledControl?: (form: Record<string, any>) => boolean;
18
+ required?: boolean;
19
+ tip?: string;
20
+ tipPlacement?: string;
21
+ tipWidth?: string;
22
+ colon?: boolean;
23
+ labelCol?: LayoutCol;
24
+ wrapperCol?: LayoutCol;
25
+ newRow?: boolean;
26
+ singleRow?: boolean;
27
+ wholeRow?: boolean;
28
+ specialRow?: boolean;
29
+ align?: 'left' | 'right';
30
+ formItemClass?: string;
31
+ class?: string;
32
+ getClass?: (form: Record<string, any>, prop: string) => string;
33
+ style?: Record<string, any>;
34
+ getStyle?: (form: Record<string, any>, prop: string) => any;
35
+ textFormatter?: (form?: Record<string, any>) => string | number | false;
36
+ getPopupContainer?: (triggerNode?: HTMLElement) => HTMLElement;
37
+ group?: Record<string, any>[];
38
+ noUseVModel?: boolean;
39
+ options?: any;
40
+ optionValueName?: string;
41
+ optionLabelName?: string;
42
+ optionChildrenName?: string;
43
+ inputType?: string;
44
+ positionIndex?: number;
45
+ onChange?: (e: any, form: Record<string, any>, selectedOptions?: any[]) => void;
46
+ onClick?: (e: any, form: Record<string, any>) => void;
47
+ onBlur?: (e: any, form: Record<string, any>) => void;
48
+ onPressEnter?: (e: any, form: Record<string, any>) => void;
49
+ onKeyup?: (e: any, form: Record<string, any>) => void;
50
+ onFocus?: (e: any, form: Record<string, any>) => void;
51
+ };
52
+ declare type CustomControlKeys = keyof CustomControl;
53
+ export declare type ControlPropsUse = Omit<SelectProps, CustomControlKeys> & Omit<InputProps, CustomControlKeys> & Omit<InputNumberProps, CustomControlKeys> & Omit<TextAreaProps, CustomControlKeys> & Omit<CheckboxGroupProps, CustomControlKeys> & Omit<CheckboxProps, CustomControlKeys> & Omit<RadioGroupProps, CustomControlKeys> & Omit<RadioProps, CustomControlKeys> & Omit<CascaderProps, CustomControlKeys> & Omit<DatePickerProps, CustomControlKeys> & Omit<TimePickerProps, CustomControlKeys>;
54
+ export declare type Control = ControlPropsUse & CustomControl;
55
+ export declare type Block = {
56
+ hide?: boolean;
57
+ visibleControl?: (form: Record<string, any>) => boolean;
58
+ slot?: string;
59
+ title?: string;
60
+ rows?: Control[];
61
+ class?: string;
62
+ };
63
+ export declare type FormConfig = {
64
+ global: {
65
+ layout?: 'vertical' | 'horizontal';
66
+ autocomplete?: boolean;
67
+ colCount?: 1 | 2 | 3;
68
+ cols: {
69
+ labelCol?: LayoutCol;
70
+ wrapperCol?: LayoutCol;
71
+ }[];
72
+ getPopupContainer?: (triggerNode?: HTMLElement) => HTMLElement;
73
+ };
74
+ rules?: Record<string, Rule>;
75
+ config: Block[];
76
+ };
77
+ export {};
@@ -60,11 +60,11 @@ declare const BmEditor: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
60
60
  default: (...args: any[]) => any;
61
61
  };
62
62
  }>> & {
63
- onReady?: ((...args: any[]) => any) | undefined;
64
- onChange?: ((...args: any[]) => any) | undefined;
65
- onBlur?: ((...args: any[]) => any) | undefined;
66
63
  onFocus?: ((...args: any[]) => any) | undefined;
64
+ onBlur?: ((...args: any[]) => any) | undefined;
65
+ onChange?: ((...args: any[]) => any) | undefined;
67
66
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
67
+ onReady?: ((...args: any[]) => any) | undefined;
68
68
  onGetCount?: ((...args: any[]) => any) | undefined;
69
69
  }>>;
70
70
  defaultOptions: {
@@ -105,7 +105,7 @@ declare const BmEditor: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
105
105
  placeholder: string;
106
106
  readOnly: boolean;
107
107
  };
108
- emits: (event: "ready" | "change" | "blur" | "focus" | "update:value" | "getCount", ...args: any[]) => void;
108
+ emits: (event: "focus" | "ready" | "change" | "blur" | "update:value" | "getCount", ...args: any[]) => void;
109
109
  state: {
110
110
  editorOption: {};
111
111
  quill: null;
@@ -256,7 +256,7 @@ declare const BmEditor: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
256
256
  pictureFileTypes: import("vue").Ref<string[]>;
257
257
  };
258
258
  };
259
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("ready" | "change" | "blur" | "focus" | "update:value" | "getCount")[], "ready" | "change" | "blur" | "focus" | "update:value" | "getCount", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
259
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "ready" | "change" | "blur" | "update:value" | "getCount")[], "focus" | "ready" | "change" | "blur" | "update:value" | "getCount", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
260
260
  value: import("vue-types").VueTypeValidableDef<string> & {
261
261
  default: string;
262
262
  } & {
@@ -287,15 +287,15 @@ declare const BmEditor: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
287
287
  default: (...args: any[]) => any;
288
288
  };
289
289
  }>> & {
290
- onReady?: ((...args: any[]) => any) | undefined;
291
- onChange?: ((...args: any[]) => any) | undefined;
292
- onBlur?: ((...args: any[]) => any) | undefined;
293
290
  onFocus?: ((...args: any[]) => any) | undefined;
291
+ onBlur?: ((...args: any[]) => any) | undefined;
292
+ onChange?: ((...args: any[]) => any) | undefined;
294
293
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
294
+ onReady?: ((...args: any[]) => any) | undefined;
295
295
  onGetCount?: ((...args: any[]) => any) | undefined;
296
296
  }, {
297
- disabled: boolean;
298
297
  value: string;
298
+ disabled: boolean;
299
299
  options: {
300
300
  [key: string]: any;
301
301
  };
@@ -60,11 +60,11 @@ declare const _default: import("vue").DefineComponent<{
60
60
  default: (...args: any[]) => any;
61
61
  };
62
62
  }>> & {
63
- onReady?: ((...args: any[]) => any) | undefined;
64
- onChange?: ((...args: any[]) => any) | undefined;
65
- onBlur?: ((...args: any[]) => any) | undefined;
66
63
  onFocus?: ((...args: any[]) => any) | undefined;
64
+ onBlur?: ((...args: any[]) => any) | undefined;
65
+ onChange?: ((...args: any[]) => any) | undefined;
67
66
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
67
+ onReady?: ((...args: any[]) => any) | undefined;
68
68
  onGetCount?: ((...args: any[]) => any) | undefined;
69
69
  }>>;
70
70
  defaultOptions: {
@@ -105,7 +105,7 @@ declare const _default: import("vue").DefineComponent<{
105
105
  placeholder: string;
106
106
  readOnly: boolean;
107
107
  };
108
- emits: (event: "ready" | "change" | "blur" | "focus" | "update:value" | "getCount", ...args: any[]) => void;
108
+ emits: (event: "focus" | "ready" | "change" | "blur" | "update:value" | "getCount", ...args: any[]) => void;
109
109
  state: {
110
110
  editorOption: {};
111
111
  quill: null;
@@ -256,7 +256,7 @@ declare const _default: import("vue").DefineComponent<{
256
256
  pictureFileTypes: import("vue").Ref<string[]>;
257
257
  };
258
258
  };
259
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("ready" | "change" | "blur" | "focus" | "update:value" | "getCount")[], "ready" | "change" | "blur" | "focus" | "update:value" | "getCount", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
259
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "ready" | "change" | "blur" | "update:value" | "getCount")[], "focus" | "ready" | "change" | "blur" | "update:value" | "getCount", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
260
260
  value: import("vue-types").VueTypeValidableDef<string> & {
261
261
  default: string;
262
262
  } & {
@@ -287,15 +287,15 @@ declare const _default: import("vue").DefineComponent<{
287
287
  default: (...args: any[]) => any;
288
288
  };
289
289
  }>> & {
290
- onReady?: ((...args: any[]) => any) | undefined;
291
- onChange?: ((...args: any[]) => any) | undefined;
292
- onBlur?: ((...args: any[]) => any) | undefined;
293
290
  onFocus?: ((...args: any[]) => any) | undefined;
291
+ onBlur?: ((...args: any[]) => any) | undefined;
292
+ onChange?: ((...args: any[]) => any) | undefined;
294
293
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
294
+ onReady?: ((...args: any[]) => any) | undefined;
295
295
  onGetCount?: ((...args: any[]) => any) | undefined;
296
296
  }, {
297
- disabled: boolean;
298
297
  value: string;
298
+ disabled: boolean;
299
299
  options: {
300
300
  [key: string]: any;
301
301
  };
@@ -38,8 +38,8 @@ declare const BmModal: import("bm-admin-ui/es/utils/with-install").SFCWithInstal
38
38
  default: string;
39
39
  };
40
40
  }>> & {
41
- onClose?: ((...args: any[]) => any) | undefined;
42
41
  onOk?: ((...args: any[]) => any) | undefined;
42
+ onClose?: ((...args: any[]) => any) | undefined;
43
43
  }>>;
44
44
  caculWidth: import("vue").ComputedRef<string>;
45
45
  onOkCallback: (e: any) => void;
@@ -232,7 +232,7 @@ declare const BmModal: import("bm-admin-ui/es/utils/with-install").SFCWithInstal
232
232
  modalRender: import("vue").PropType<(arg: {
233
233
  originVNode: import("ant-design-vue/lib/_util/type").VueNode;
234
234
  }) => import("ant-design-vue/lib/_util/type").VueNode>;
235
- }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "visible" | "confirmLoading" | "closable" | "centered" | "maskClosable" | "forceRender" | "destroyOnClose" | "getContainer" | "bodyStyle" | "maskStyle" | "mask" | "keyboard" | "focusTriggerAfterClose">;
235
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "keyboard" | "visible" | "confirmLoading" | "closable" | "centered" | "maskClosable" | "forceRender" | "destroyOnClose" | "getContainer" | "bodyStyle" | "maskStyle" | "mask" | "focusTriggerAfterClose">;
236
236
  $attrs: {
237
237
  [x: string]: unknown;
238
238
  };
@@ -835,8 +835,8 @@ declare const BmModal: import("bm-admin-ui/es/utils/with-install").SFCWithInstal
835
835
  default: string;
836
836
  };
837
837
  }>> & {
838
- onClose?: ((...args: any[]) => any) | undefined;
839
838
  onOk?: ((...args: any[]) => any) | undefined;
839
+ onClose?: ((...args: any[]) => any) | undefined;
840
840
  }, {
841
841
  size: string;
842
842
  width: string;
@@ -880,7 +880,7 @@ declare const BmAlert: import("bm-admin-ui/es/utils/with-install").SFCWithInstal
880
880
  closable: boolean;
881
881
  banner: boolean;
882
882
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
883
- type: import("vue-types").VueTypeDef<"success" | "error" | "info" | "warning">;
883
+ type: import("vue-types").VueTypeDef<"error" | "success" | "warning" | "info">;
884
884
  closable: {
885
885
  type: BooleanConstructor;
886
886
  default: any;
@@ -916,7 +916,7 @@ declare const BmAlert: import("bm-admin-ui/es/utils/with-install").SFCWithInstal
916
916
  $emit: (event: string, ...args: any[]) => void;
917
917
  $el: any;
918
918
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
919
- type: import("vue-types").VueTypeDef<"success" | "error" | "info" | "warning">;
919
+ type: import("vue-types").VueTypeDef<"error" | "success" | "warning" | "info">;
920
920
  closable: {
921
921
  type: BooleanConstructor;
922
922
  default: any;
@@ -962,7 +962,7 @@ declare const BmAlert: import("bm-admin-ui/es/utils/with-install").SFCWithInstal
962
962
  $nextTick: typeof import("vue").nextTick;
963
963
  $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
964
964
  } & Readonly<import("vue").ExtractPropTypes<{
965
- type: import("vue-types").VueTypeDef<"success" | "error" | "info" | "warning">;
965
+ type: import("vue-types").VueTypeDef<"error" | "success" | "warning" | "info">;
966
966
  closable: {
967
967
  type: BooleanConstructor;
968
968
  default: any;
@@ -988,7 +988,7 @@ declare const BmAlert: import("bm-admin-ui/es/utils/with-install").SFCWithInstal
988
988
  __isTeleport?: undefined;
989
989
  __isSuspense?: undefined;
990
990
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
991
- type: import("vue-types").VueTypeDef<"success" | "error" | "info" | "warning">;
991
+ type: import("vue-types").VueTypeDef<"error" | "success" | "warning" | "info">;
992
992
  closable: {
993
993
  type: BooleanConstructor;
994
994
  default: any;
@@ -36,7 +36,7 @@ declare const _default: import("vue").DefineComponent<{
36
36
  closable: boolean;
37
37
  banner: boolean;
38
38
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
39
- type: import("vue-types").VueTypeDef<"success" | "error" | "info" | "warning">;
39
+ type: import("vue-types").VueTypeDef<"error" | "success" | "warning" | "info">;
40
40
  closable: {
41
41
  type: BooleanConstructor;
42
42
  default: any;
@@ -72,7 +72,7 @@ declare const _default: import("vue").DefineComponent<{
72
72
  $emit: (event: string, ...args: any[]) => void;
73
73
  $el: any;
74
74
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
75
- type: import("vue-types").VueTypeDef<"success" | "error" | "info" | "warning">;
75
+ type: import("vue-types").VueTypeDef<"error" | "success" | "warning" | "info">;
76
76
  closable: {
77
77
  type: BooleanConstructor;
78
78
  default: any;
@@ -118,7 +118,7 @@ declare const _default: import("vue").DefineComponent<{
118
118
  $nextTick: typeof import("vue").nextTick;
119
119
  $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
120
120
  } & Readonly<import("vue").ExtractPropTypes<{
121
- type: import("vue-types").VueTypeDef<"success" | "error" | "info" | "warning">;
121
+ type: import("vue-types").VueTypeDef<"error" | "success" | "warning" | "info">;
122
122
  closable: {
123
123
  type: BooleanConstructor;
124
124
  default: any;
@@ -144,7 +144,7 @@ declare const _default: import("vue").DefineComponent<{
144
144
  __isTeleport?: undefined;
145
145
  __isSuspense?: undefined;
146
146
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
147
- type: import("vue-types").VueTypeDef<"success" | "error" | "info" | "warning">;
147
+ type: import("vue-types").VueTypeDef<"error" | "success" | "warning" | "info">;
148
148
  closable: {
149
149
  type: BooleanConstructor;
150
150
  default: any;
@@ -32,8 +32,8 @@ declare const _default: import("vue").DefineComponent<{
32
32
  default: string;
33
33
  };
34
34
  }>> & {
35
- onClose?: ((...args: any[]) => any) | undefined;
36
35
  onOk?: ((...args: any[]) => any) | undefined;
36
+ onClose?: ((...args: any[]) => any) | undefined;
37
37
  }>>;
38
38
  caculWidth: import("vue").ComputedRef<string>;
39
39
  onOkCallback: (e: any) => void;
@@ -226,7 +226,7 @@ declare const _default: import("vue").DefineComponent<{
226
226
  modalRender: import("vue").PropType<(arg: {
227
227
  originVNode: import("ant-design-vue/lib/_util/type").VueNode;
228
228
  }) => import("ant-design-vue/lib/_util/type").VueNode>;
229
- }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "visible" | "confirmLoading" | "closable" | "centered" | "maskClosable" | "forceRender" | "destroyOnClose" | "getContainer" | "bodyStyle" | "maskStyle" | "mask" | "keyboard" | "focusTriggerAfterClose">;
229
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "keyboard" | "visible" | "confirmLoading" | "closable" | "centered" | "maskClosable" | "forceRender" | "destroyOnClose" | "getContainer" | "bodyStyle" | "maskStyle" | "mask" | "focusTriggerAfterClose">;
230
230
  $attrs: {
231
231
  [x: string]: unknown;
232
232
  };
@@ -829,8 +829,8 @@ declare const _default: import("vue").DefineComponent<{
829
829
  default: string;
830
830
  };
831
831
  }>> & {
832
- onClose?: ((...args: any[]) => any) | undefined;
833
832
  onOk?: ((...args: any[]) => any) | undefined;
833
+ onClose?: ((...args: any[]) => any) | undefined;
834
834
  }, {
835
835
  size: string;
836
836
  width: string;
@@ -63,7 +63,7 @@ declare const _default: import("vue").DefineComponent<{
63
63
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
64
64
  prefixCls: StringConstructor;
65
65
  color: {
66
- type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"default" | "success" | "error" | "warning" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
66
+ type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"default" | "error" | "success" | "warning" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
67
67
  };
68
68
  closable: {
69
69
  type: BooleanConstructor;
@@ -96,7 +96,7 @@ declare const _default: import("vue").DefineComponent<{
96
96
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
97
97
  prefixCls: StringConstructor;
98
98
  color: {
99
- type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"default" | "success" | "error" | "warning" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
99
+ type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"default" | "error" | "success" | "warning" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
100
100
  };
101
101
  closable: {
102
102
  type: BooleanConstructor;
@@ -138,7 +138,7 @@ declare const _default: import("vue").DefineComponent<{
138
138
  } & Readonly<import("vue").ExtractPropTypes<{
139
139
  prefixCls: StringConstructor;
140
140
  color: {
141
- type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"default" | "success" | "error" | "warning" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
141
+ type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"default" | "error" | "success" | "warning" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
142
142
  };
143
143
  closable: {
144
144
  type: BooleanConstructor;
@@ -161,7 +161,7 @@ declare const _default: import("vue").DefineComponent<{
161
161
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
162
162
  prefixCls: StringConstructor;
163
163
  color: {
164
- type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"default" | "success" | "error" | "warning" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
164
+ type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"default" | "error" | "success" | "warning" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
165
165
  };
166
166
  closable: {
167
167
  type: BooleanConstructor;
@@ -1537,6 +1537,15 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
1537
1537
  createElementVNode("span", _hoisted_3$3, toDisplayString(unref(countText)), 1),
1538
1538
  createElementVNode("div", _hoisted_4$3, [
1539
1539
  unref(importFeature) && !__props.hidden ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
1540
+ createElementVNode("input", {
1541
+ ref_key: "inputRef",
1542
+ ref: inputRef,
1543
+ style: { "display": "none" },
1544
+ name: "file",
1545
+ type: "file",
1546
+ accept: "text/csv",
1547
+ onChange: handleChange
1548
+ }, null, 544),
1540
1549
  createVNode(unref(Button), {
1541
1550
  disabled: __props.disabled,
1542
1551
  onClick: handleDownload
@@ -1554,16 +1563,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
1554
1563
  createTextVNode("\u6279\u91CF\u5BFC\u5165")
1555
1564
  ]),
1556
1565
  _: 1
1557
- }, 8, ["disabled"]),
1558
- createElementVNode("input", {
1559
- ref_key: "inputRef",
1560
- ref: inputRef,
1561
- style: { "display": "none" },
1562
- name: "file",
1563
- type: "file",
1564
- accept: "text/csv",
1565
- onChange: handleChange
1566
- }, null, 544)
1566
+ }, 8, ["disabled"])
1567
1567
  ], 64)) : createCommentVNode("v-if", true),
1568
1568
  unref(deleteFeature) && !__props.hidden ? (openBlock(), createBlock(unref(Button), {
1569
1569
  key: 1,
@@ -3152,7 +3152,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
3152
3152
  } else if (name === "materialTemp") {
3153
3153
  rule2.props.disabled = formPermission.disabled;
3154
3154
  } else {
3155
- rule2.props.disabled = true;
3155
+ if (!rule2.props) {
3156
+ rule2.props = {
3157
+ disabled: true
3158
+ };
3159
+ } else {
3160
+ rule2.props.disabled = true;
3161
+ }
3156
3162
  }
3157
3163
  }
3158
3164
  if (formPermission.hidden) {