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
@@ -78,7 +78,7 @@ declare const BmButton: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
78
78
  onMousedown: {
79
79
  type: import("vue").PropType<(event: MouseEvent) => void>;
80
80
  };
81
- }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "htmlType" | "loading" | "disabled" | "ghost" | "block" | "danger">;
81
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "loading" | "htmlType" | "ghost" | "block" | "danger">;
82
82
  $attrs: {
83
83
  [x: string]: unknown;
84
84
  };
@@ -80,7 +80,7 @@ declare const _default: import("vue").DefineComponent<{
80
80
  onMousedown: {
81
81
  type: import("vue").PropType<(event: MouseEvent) => void>;
82
82
  };
83
- }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "htmlType" | "loading" | "disabled" | "ghost" | "block" | "danger">;
83
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "loading" | "htmlType" | "ghost" | "block" | "danger">;
84
84
  $attrs: {
85
85
  [x: string]: unknown;
86
86
  };
@@ -0,0 +1,150 @@
1
+ export type { LayoutCol, Rule, Control, Block, FormConfig } from './src/types';
2
+ export type { EditFormProps } from './src/props';
3
+ declare const BmEditForm: import("bm-admin-ui/es/utils/with-install").SFCWithInstall<import("vue").DefineComponent<{
4
+ config: {
5
+ type: import("vue").PropType<import("./src/types").FormConfig>;
6
+ default(): {};
7
+ };
8
+ form: {
9
+ type: import("vue").PropType<Record<string, any> | null>;
10
+ default(): {};
11
+ };
12
+ groupRules: {
13
+ type: import("vue").PropType<Record<string, import("ant-design-vue/lib/form").RuleObject | import("ant-design-vue/lib/form").RuleObject[] | undefined>>;
14
+ default(): never[];
15
+ };
16
+ }, {
17
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
18
+ config: {
19
+ type: import("vue").PropType<import("./src/types").FormConfig>;
20
+ default(): {};
21
+ };
22
+ form: {
23
+ type: import("vue").PropType<Record<string, any> | null>;
24
+ default(): {};
25
+ };
26
+ groupRules: {
27
+ type: import("vue").PropType<Record<string, import("ant-design-vue/lib/form").RuleObject | import("ant-design-vue/lib/form").RuleObject[] | undefined>>;
28
+ default(): never[];
29
+ };
30
+ }>> & {
31
+ "onUpdate:form"?: ((...args: any[]) => any) | undefined;
32
+ "onChange:formItem"?: ((...args: any[]) => any) | undefined;
33
+ "onClick:formItem"?: ((...args: any[]) => any) | undefined;
34
+ "onBlur:formItem"?: ((...args: any[]) => any) | undefined;
35
+ "onPressEnter:formItem"?: ((...args: any[]) => any) | undefined;
36
+ "onKeyup:formItem"?: ((...args: any[]) => any) | undefined;
37
+ "onFocus:formItem"?: ((...args: any[]) => any) | undefined;
38
+ }>>;
39
+ emits: {
40
+ (e: "update:form", value: any): void;
41
+ (e: "change:formItem", value: any, prop: string, selectedOptions?: any[] | undefined): void;
42
+ (e: "click:formItem", value: any, prop: string): void;
43
+ (e: "blur:formItem", value: any, prop: string): void;
44
+ (e: "pressEnter:formItem", value: any, prop: string): void;
45
+ (e: "keyup:formItem", value: any, prop: string): void;
46
+ (e: "focus:formItem", value: any, prop: string): void;
47
+ };
48
+ tmpForm: import("vue").Ref<Record<string, any>>;
49
+ formRef: import("vue").Ref<import("ant-design-vue").FormInstance | null>;
50
+ colCount: import("vue").ComputedRef<2 | 3 | 1>;
51
+ getValueOfOption: (key: string | undefined, defaultKey: "label" | "value", option: any) => string;
52
+ getPopupContainer: (e: any) => any;
53
+ getColsConfig: (type: "labelCol" | "wrapperCol", item: import("./src/types").Control, index?: number | undefined) => {
54
+ flex?: string | undefined;
55
+ } | undefined;
56
+ getControlWidth: (item: import("./src/types").Control) => string;
57
+ getShowValue: (item: import("./src/types").Control) => string | number;
58
+ config: import("vue").ComputedRef<{
59
+ rows: import("./src/types").Control[][];
60
+ hide?: boolean | undefined;
61
+ visibleControl?: ((form: Record<string, any>) => boolean) | undefined;
62
+ slot?: string | undefined;
63
+ title?: string | undefined;
64
+ class?: string | undefined;
65
+ }[]>;
66
+ onFormItemChange: (e: any, item: import("./src/types").Control, selectedOptions?: any[] | undefined) => void;
67
+ onFormItemClick: (e: any, item: import("./src/types").Control) => void;
68
+ onFormItemBlur: (e: any, item: import("./src/types").Control) => void;
69
+ onFormItemPressEnter: (e: any, item: import("./src/types").Control) => void;
70
+ onFormItemKeyup: (e: any, item: import("./src/types").Control) => void;
71
+ onFormItemFocus: (e: any, item: import("./src/types").Control) => void;
72
+ clearValidate: (nameList?: (string | number | (string | number)[]) | undefined) => void;
73
+ resetFields: (nameList?: (string | number | (string | number)[]) | undefined) => void;
74
+ scrollToField: (name: string | number | (string | number)[], options?: ScrollOptions | undefined) => void;
75
+ validate: (nameList?: (string | number | (string | number)[])[] | undefined) => Promise<{
76
+ [key: string]: any;
77
+ }>;
78
+ validateFields: (nameList?: (string | number | (string | number)[])[] | undefined) => Promise<{
79
+ [key: string]: any;
80
+ }>;
81
+ updateSlot: (key: string, value: any) => void;
82
+ QuestionCircleOutlined: import("@ant-design/icons-vue/lib/icons/QuestionCircleOutlined").QuestionCircleOutlinedIconType;
83
+ ClockCircleOutlined: import("@ant-design/icons-vue/lib/icons/ClockCircleOutlined").ClockCircleOutlinedIconType;
84
+ CalendarOutlined: import("@ant-design/icons-vue/lib/icons/CalendarOutlined").CalendarOutlinedIconType;
85
+ Group: import("vue").DefineComponent<{}, {
86
+ formItemContext: import("ant-design-vue/lib/form/FormItemContext").FormItemContext;
87
+ onFieldChange: () => void;
88
+ onFieldBlur: () => void;
89
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
90
+ BmOverTooltips: import("bm-admin-ui/es/utils/with-install").SFCWithInstall<{
91
+ name: string;
92
+ props: {
93
+ title: {
94
+ type: StringConstructor;
95
+ default: undefined;
96
+ };
97
+ labelTitle: {
98
+ type: StringConstructor;
99
+ default: undefined;
100
+ };
101
+ line: {
102
+ type: NumberConstructor;
103
+ default: number;
104
+ };
105
+ width: {
106
+ type: (NumberConstructor | StringConstructor)[];
107
+ default: number;
108
+ };
109
+ showAlways: {
110
+ type: BooleanConstructor;
111
+ default: boolean;
112
+ };
113
+ };
114
+ setup(props: any, context: any): {
115
+ mySelf: import("vue").Ref<any>;
116
+ handleVisibleChange: (val: any) => void;
117
+ getPopupContainer: () => HTMLElement;
118
+ mSlots: import("vue").Ref<{}>;
119
+ isShow: import("vue").Ref<boolean>;
120
+ openShow: import("vue").Ref<boolean>;
121
+ };
122
+ }>;
123
+ }, 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<{
124
+ config: {
125
+ type: import("vue").PropType<import("./src/types").FormConfig>;
126
+ default(): {};
127
+ };
128
+ form: {
129
+ type: import("vue").PropType<Record<string, any> | null>;
130
+ default(): {};
131
+ };
132
+ groupRules: {
133
+ type: import("vue").PropType<Record<string, import("ant-design-vue/lib/form").RuleObject | import("ant-design-vue/lib/form").RuleObject[] | undefined>>;
134
+ default(): never[];
135
+ };
136
+ }>> & {
137
+ "onUpdate:form"?: ((...args: any[]) => any) | undefined;
138
+ "onChange:formItem"?: ((...args: any[]) => any) | undefined;
139
+ "onClick:formItem"?: ((...args: any[]) => any) | undefined;
140
+ "onBlur:formItem"?: ((...args: any[]) => any) | undefined;
141
+ "onPressEnter:formItem"?: ((...args: any[]) => any) | undefined;
142
+ "onKeyup:formItem"?: ((...args: any[]) => any) | undefined;
143
+ "onFocus:formItem"?: ((...args: any[]) => any) | undefined;
144
+ }, {
145
+ config: import("./src/types").FormConfig;
146
+ form: Record<string, any> | null;
147
+ groupRules: Record<string, import("ant-design-vue/lib/form").RuleObject | import("ant-design-vue/lib/form").RuleObject[] | undefined>;
148
+ }>>;
149
+ export { BmEditForm };
150
+ export default BmEditForm;
@@ -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
  };