bm-admin-ui 1.0.88-alpha → 1.0.90-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 (88) hide show
  1. package/es/components/attachment/index.d.ts +3 -3
  2. package/es/components/attachment/src/attachment.vue.d.ts +3 -3
  3. package/es/components/breadcrumb/index.d.ts +7 -7
  4. package/es/components/breadcrumb/src/breadcrumb.vue.d.ts +7 -7
  5. package/es/components/button/index.d.ts +6 -6
  6. package/es/components/button/src/button.vue.d.ts +6 -6
  7. package/es/components/edit-form/index.d.ts +4 -4
  8. package/es/components/edit-form/index.js +2 -2
  9. package/es/components/edit-form/src/edit-form.vue.d.ts +4 -4
  10. package/es/components/feedback/index.d.ts +12 -12
  11. package/es/components/feedback/src/bmAlert.vue.d.ts +6 -6
  12. package/es/components/feedback/src/bmModal.vue.d.ts +6 -6
  13. package/es/components/flow-designer/index.js +1 -1
  14. package/es/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +8 -8
  15. package/es/components/form-create/index.js +389 -98
  16. package/es/components/form-designer/index.js +180 -122
  17. package/es/components/search-filter/index.d.ts +28 -0
  18. package/es/components/search-filter/index.js +35 -3
  19. package/es/components/search-filter/src/form-select-all.vue.d.ts +6 -6
  20. package/es/components/search-filter/src/search-filter.d.ts +16 -0
  21. package/es/components/search-filter/src/search-filter.vue.d.ts +28 -0
  22. package/es/components/search-filter/src/search-reset-btn.vue.d.ts +29 -3
  23. package/es/components/select-all/index.d.ts +8 -6
  24. package/es/components/select-all/index.js +32 -15
  25. package/es/components/select-all/src/selectAll.vue.d.ts +8 -6
  26. package/es/components/staffs-selector/index.d.ts +8 -8
  27. package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +8 -8
  28. package/es/components/videoView/index.d.ts +1 -1
  29. package/es/components/videoView/src/videoView.vue.d.ts +1 -1
  30. package/es/utils/uniqueId.js +2 -2
  31. package/lib/components/attachment/index.d.ts +3 -3
  32. package/lib/components/attachment/src/attachment.vue.d.ts +3 -3
  33. package/lib/components/breadcrumb/index.d.ts +7 -7
  34. package/lib/components/breadcrumb/src/breadcrumb.vue.d.ts +7 -7
  35. package/lib/components/button/index.d.ts +6 -6
  36. package/lib/components/button/src/button.vue.d.ts +6 -6
  37. package/lib/components/edit-form/index.d.ts +4 -4
  38. package/lib/components/edit-form/index.js +2 -2
  39. package/lib/components/edit-form/src/edit-form.vue.d.ts +4 -4
  40. package/lib/components/feedback/index.d.ts +12 -12
  41. package/lib/components/feedback/src/bmAlert.vue.d.ts +6 -6
  42. package/lib/components/feedback/src/bmModal.vue.d.ts +6 -6
  43. package/lib/components/flow-designer/index.js +1 -1
  44. package/lib/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +8 -8
  45. package/lib/components/form-create/index.js +389 -98
  46. package/lib/components/form-designer/index.js +174 -116
  47. package/lib/components/search-filter/index.d.ts +28 -0
  48. package/lib/components/search-filter/index.js +36 -3
  49. package/lib/components/search-filter/src/form-select-all.vue.d.ts +6 -6
  50. package/lib/components/search-filter/src/search-filter.d.ts +16 -0
  51. package/lib/components/search-filter/src/search-filter.vue.d.ts +28 -0
  52. package/lib/components/search-filter/src/search-reset-btn.vue.d.ts +29 -3
  53. package/lib/components/select-all/index.d.ts +8 -6
  54. package/lib/components/select-all/index.js +31 -14
  55. package/lib/components/select-all/src/selectAll.vue.d.ts +8 -6
  56. package/lib/components/staffs-selector/index.d.ts +8 -8
  57. package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +8 -8
  58. package/lib/components/videoView/index.d.ts +1 -1
  59. package/lib/components/videoView/src/videoView.vue.d.ts +1 -1
  60. package/lib/utils/uniqueId.js +2 -2
  61. package/package.json +34 -34
  62. package/theme-chalk/edit-form.css +1 -1
  63. package/theme-chalk/form-designer.css +1 -1
  64. package/theme-chalk/index.css +1 -1
  65. package/theme-chalk/select-all.css +1 -1
  66. package/types/components/attachment/index.d.ts +3 -3
  67. package/types/components/attachment/src/attachment.vue.d.ts +3 -3
  68. package/types/components/breadcrumb/index.d.ts +7 -7
  69. package/types/components/breadcrumb/src/breadcrumb.vue.d.ts +7 -7
  70. package/types/components/button/index.d.ts +6 -6
  71. package/types/components/button/src/button.vue.d.ts +6 -6
  72. package/types/components/edit-form/index.d.ts +4 -4
  73. package/types/components/edit-form/src/edit-form.vue.d.ts +4 -4
  74. package/types/components/feedback/index.d.ts +12 -12
  75. package/types/components/feedback/src/bmAlert.vue.d.ts +6 -6
  76. package/types/components/feedback/src/bmModal.vue.d.ts +6 -6
  77. package/types/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +8 -8
  78. package/types/components/search-filter/index.d.ts +28 -0
  79. package/types/components/search-filter/src/form-select-all.vue.d.ts +6 -6
  80. package/types/components/search-filter/src/search-filter.d.ts +16 -0
  81. package/types/components/search-filter/src/search-filter.vue.d.ts +28 -0
  82. package/types/components/search-filter/src/search-reset-btn.vue.d.ts +29 -3
  83. package/types/components/select-all/index.d.ts +8 -6
  84. package/types/components/select-all/src/selectAll.vue.d.ts +8 -6
  85. package/types/components/staffs-selector/index.d.ts +8 -8
  86. package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +8 -8
  87. package/types/components/videoView/index.d.ts +1 -1
  88. package/types/components/videoView/src/videoView.vue.d.ts +1 -1
@@ -8,11 +8,13 @@ var FormCreateCtr = require('@form-create/ant-design-vue');
8
8
  var iconsVue = require('@ant-design/icons-vue');
9
9
  var ASelect = require('ant-design-vue/lib/select');
10
10
  var lodashEs = require('lodash-es');
11
+ var Modal = require('ant-design-vue/lib/modal');
11
12
 
12
13
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
13
14
 
14
15
  var FormCreateCtr__default = /*#__PURE__*/_interopDefaultLegacy(FormCreateCtr);
15
16
  var ASelect__default = /*#__PURE__*/_interopDefaultLegacy(ASelect);
17
+ var Modal__default = /*#__PURE__*/_interopDefaultLegacy(Modal);
16
18
 
17
19
  const searchResetBtnProps = {
18
20
  showExpandBtn: {
@@ -47,6 +49,16 @@ const searchResetBtnProps = {
47
49
  type: String,
48
50
  default: '',
49
51
  },
52
+ setDefaultConfirm: {
53
+ type: Boolean,
54
+ default: true,
55
+ },
56
+ setDefaultConfirmConfig: {
57
+ type: Object,
58
+ default() {
59
+ return {};
60
+ },
61
+ },
50
62
  gutter: {
51
63
  type: Array,
52
64
  default() {
@@ -356,6 +368,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
356
368
  showSetDefaultBtn: props.showSetDefaultBtn,
357
369
  setDefaultText: props.setDefaultText,
358
370
  setDefaultId: props.setDefaultId,
371
+ setDefaultConfirm: props.setDefaultConfirm,
372
+ setDefaultConfirmConfig: props.setDefaultConfirmConfig,
359
373
  collapseText: props.collapseText,
360
374
  gutter: props.gutter,
361
375
  loading: props.loading
@@ -373,14 +387,33 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
373
387
  emits("expand", value);
374
388
  },
375
389
  setDefault() {
376
- if (props.setDefaultId) {
390
+ if (!props.setDefaultId) {
391
+ throw new Error("\u8BF7\u5148\u8BBE\u7F6E\u5B58\u50A8\u7684ID\uFF0C\u5426\u5219\u65E0\u6CD5\u5B58\u50A8\u5230 LocalStorage\uFF01");
392
+ }
393
+ function setDefault() {
377
394
  window.localStorage.setItem(
378
395
  props.setDefaultId,
379
396
  JSON.stringify(fApi.value.formData())
380
397
  );
398
+ emits("setDefault", fApi.value.formData());
399
+ updateRulesDefault(fApi.value.formData());
400
+ }
401
+ if (props.setDefaultConfirm) {
402
+ let defaultConfig = {
403
+ title: "\u786E\u5B9A\u8BBE\u7F6E\u5F53\u524D\u67E5\u8BE2\u6761\u4EF6\u4E3A\u9ED8\u8BA4\u67E5\u8BE2\u5417\uFF1F",
404
+ okText: "\u786E\u8BA4",
405
+ cancelText: "\u53D6\u6D88"
406
+ };
407
+ Modal__default["default"].confirm({
408
+ ...defaultConfig,
409
+ ...props.setDefaultConfirmConfig,
410
+ onOk() {
411
+ setDefault();
412
+ }
413
+ });
414
+ } else {
415
+ setDefault();
381
416
  }
382
- emits("setDefault", fApi.value.formData());
383
- updateRulesDefault(fApi.value.formData());
384
417
  }
385
418
  }
386
419
  }
@@ -32,7 +32,7 @@ declare const _default: import("vue").DefineComponent<{
32
32
  }) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
33
33
  [key: string]: any;
34
34
  }>;
35
- ASelect: {
35
+ readonly ASelect: {
36
36
  new (...args: any[]): {
37
37
  $: import("vue").ComponentInternalInstance;
38
38
  $data: {};
@@ -212,8 +212,8 @@ declare const _default: import("vue").DefineComponent<{
212
212
  $slots: Readonly<{
213
213
  [name: string]: import("vue").Slot;
214
214
  }>;
215
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
216
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
215
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
216
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
217
217
  $emit: (event: string, ...args: any[]) => void;
218
218
  $el: any;
219
219
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
@@ -382,7 +382,7 @@ declare const _default: import("vue").DefineComponent<{
382
382
  defaultActiveFirstOption: boolean;
383
383
  labelInValue: boolean;
384
384
  bordered: boolean;
385
- }> & {
385
+ }, {}, string> & {
386
386
  beforeCreate?: (() => void) | (() => void)[] | undefined;
387
387
  created?: (() => void) | (() => void)[] | undefined;
388
388
  beforeMount?: (() => void) | (() => void)[] | undefined;
@@ -397,7 +397,7 @@ declare const _default: import("vue").DefineComponent<{
397
397
  unmounted?: (() => void) | (() => void)[] | undefined;
398
398
  renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[] | undefined;
399
399
  renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[] | undefined;
400
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[] | undefined;
400
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void)[] | undefined;
401
401
  };
402
402
  $forceUpdate: () => void;
403
403
  $nextTick: typeof import("vue").nextTick;
@@ -721,7 +721,7 @@ declare const _default: import("vue").DefineComponent<{
721
721
  defaultActiveFirstOption: boolean;
722
722
  labelInValue: boolean;
723
723
  bordered: boolean;
724
- }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & {
724
+ }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & {
725
725
  readonly Option: import("ant-design-vue/lib/vc-select/Option").OptionFC;
726
726
  readonly OptGroup: import("ant-design-vue/lib/vc-select/OptGroup").OptionGroupFC;
727
727
  readonly SECRET_COMBOBOX_MODE_DO_NOT_USE: "SECRET_COMBOBOX_MODE_DO_NOT_USE";
@@ -32,6 +32,14 @@ export declare const searchResetBtnProps: {
32
32
  type: StringConstructor;
33
33
  default: string;
34
34
  };
35
+ setDefaultConfirm: {
36
+ type: BooleanConstructor;
37
+ default: boolean;
38
+ };
39
+ setDefaultConfirmConfig: {
40
+ type: ObjectConstructor;
41
+ default(): {};
42
+ };
35
43
  gutter: {
36
44
  type: PropType<number[]>;
37
45
  default(): number[];
@@ -74,6 +82,14 @@ export declare const searchFilterProps: {
74
82
  type: StringConstructor;
75
83
  default: string;
76
84
  };
85
+ setDefaultConfirm: {
86
+ type: BooleanConstructor;
87
+ default: boolean;
88
+ };
89
+ setDefaultConfirmConfig: {
90
+ type: ObjectConstructor;
91
+ default(): {};
92
+ };
77
93
  gutter: {
78
94
  type: PropType<number[]>;
79
95
  default(): number[];
@@ -31,6 +31,14 @@ declare const _default: import("vue").DefineComponent<{
31
31
  type: StringConstructor;
32
32
  default: string;
33
33
  };
34
+ setDefaultConfirm: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ setDefaultConfirmConfig: {
39
+ type: ObjectConstructor;
40
+ default(): {};
41
+ };
34
42
  gutter: {
35
43
  type: import("vue").PropType<number[]>;
36
44
  default(): number[];
@@ -99,6 +107,14 @@ declare const _default: import("vue").DefineComponent<{
99
107
  type: StringConstructor;
100
108
  default: string;
101
109
  };
110
+ setDefaultConfirm: {
111
+ type: BooleanConstructor;
112
+ default: boolean;
113
+ };
114
+ setDefaultConfirmConfig: {
115
+ type: ObjectConstructor;
116
+ default(): {};
117
+ };
102
118
  gutter: {
103
119
  type: import("vue").PropType<number[]>;
104
120
  default(): number[];
@@ -151,6 +167,8 @@ declare const _default: import("vue").DefineComponent<{
151
167
  showSetDefaultBtn: boolean;
152
168
  setDefaultText: string;
153
169
  setDefaultId: string;
170
+ setDefaultConfirm: boolean;
171
+ setDefaultConfirmConfig: Record<string, any>;
154
172
  collapseText: string;
155
173
  gutter: number[];
156
174
  loading: boolean;
@@ -219,6 +237,14 @@ declare const _default: import("vue").DefineComponent<{
219
237
  type: StringConstructor;
220
238
  default: string;
221
239
  };
240
+ setDefaultConfirm: {
241
+ type: BooleanConstructor;
242
+ default: boolean;
243
+ };
244
+ setDefaultConfirmConfig: {
245
+ type: ObjectConstructor;
246
+ default(): {};
247
+ };
222
248
  gutter: {
223
249
  type: import("vue").PropType<number[]>;
224
250
  default(): number[];
@@ -271,6 +297,8 @@ declare const _default: import("vue").DefineComponent<{
271
297
  showSetDefaultBtn: boolean;
272
298
  setDefaultText: string;
273
299
  setDefaultId: string;
300
+ setDefaultConfirm: boolean;
301
+ setDefaultConfirmConfig: Record<string, any>;
274
302
  gutter: number[];
275
303
  userRule: unknown[];
276
304
  ruleSpan: Record<string, any>;
@@ -31,6 +31,14 @@ declare const _default: import("vue").DefineComponent<{
31
31
  type: StringConstructor;
32
32
  default: string;
33
33
  };
34
+ setDefaultConfirm: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ setDefaultConfirmConfig: {
39
+ type: ObjectConstructor;
40
+ default(): {};
41
+ };
34
42
  gutter: {
35
43
  type: import("vue").PropType<number[]>;
36
44
  default(): number[];
@@ -73,6 +81,14 @@ declare const _default: import("vue").DefineComponent<{
73
81
  type: StringConstructor;
74
82
  default: string;
75
83
  };
84
+ setDefaultConfirm: {
85
+ type: BooleanConstructor;
86
+ default: boolean;
87
+ };
88
+ setDefaultConfirmConfig: {
89
+ type: ObjectConstructor;
90
+ default(): {};
91
+ };
76
92
  gutter: {
77
93
  type: import("vue").PropType<number[]>;
78
94
  default(): number[];
@@ -97,9 +113,9 @@ declare const _default: import("vue").DefineComponent<{
97
113
  handleSubmit: () => void;
98
114
  handleReset: () => void;
99
115
  handleSetDefault: () => void;
100
- DownOutlined: import("@ant-design/icons-vue/lib/icons/DownOutlined").DownOutlinedIconType;
101
- UpOutlined: import("@ant-design/icons-vue/lib/icons/UpOutlined").UpOutlinedIconType;
102
- SearchOutlined: import("@ant-design/icons-vue/lib/icons/SearchOutlined").SearchOutlinedIconType;
116
+ readonly DownOutlined: import("@ant-design/icons-vue/lib/icons/DownOutlined").DownOutlinedIconType;
117
+ readonly UpOutlined: import("@ant-design/icons-vue/lib/icons/UpOutlined").UpOutlinedIconType;
118
+ readonly SearchOutlined: import("@ant-design/icons-vue/lib/icons/SearchOutlined").SearchOutlinedIconType;
103
119
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("submit" | "reset" | "expand" | "setDefault")[], "submit" | "reset" | "expand" | "setDefault", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
104
120
  showExpandBtn: {
105
121
  type: BooleanConstructor;
@@ -133,6 +149,14 @@ declare const _default: import("vue").DefineComponent<{
133
149
  type: StringConstructor;
134
150
  default: string;
135
151
  };
152
+ setDefaultConfirm: {
153
+ type: BooleanConstructor;
154
+ default: boolean;
155
+ };
156
+ setDefaultConfirmConfig: {
157
+ type: ObjectConstructor;
158
+ default(): {};
159
+ };
136
160
  gutter: {
137
161
  type: import("vue").PropType<number[]>;
138
162
  default(): number[];
@@ -156,6 +180,8 @@ declare const _default: import("vue").DefineComponent<{
156
180
  showSetDefaultBtn: boolean;
157
181
  setDefaultText: string;
158
182
  setDefaultId: string;
183
+ setDefaultConfirm: boolean;
184
+ setDefaultConfirmConfig: Record<string, any>;
159
185
  gutter: number[];
160
186
  }>;
161
187
  export default _default;
@@ -28,6 +28,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
28
28
  indeterminate: boolean;
29
29
  checkedAll: boolean;
30
30
  checkedReverse: boolean;
31
+ searchList: never[];
31
32
  };
32
33
  };
33
34
  emit: (event: "onChange" | "update:value" | "onSelectAll", ...args: any[]) => void;
@@ -35,12 +36,13 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
35
36
  selectAll: (e: any) => void;
36
37
  reverseAll: (e: any) => false | undefined;
37
38
  onChange: (value: any, option: any) => void;
39
+ onSearch: (val: string | number) => void;
38
40
  VNodes: (_: any, { attrs }: {
39
41
  attrs: any;
40
42
  }) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
41
43
  [key: string]: any;
42
44
  }>;
43
- ASelect: {
45
+ readonly ASelect: {
44
46
  new (...args: any[]): {
45
47
  $: import("vue").ComponentInternalInstance;
46
48
  $data: {};
@@ -220,8 +222,8 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
220
222
  $slots: Readonly<{
221
223
  [name: string]: import("vue").Slot;
222
224
  }>;
223
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
224
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
225
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
226
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
225
227
  $emit: (event: string, ...args: any[]) => void;
226
228
  $el: any;
227
229
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
@@ -390,7 +392,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
390
392
  defaultActiveFirstOption: boolean;
391
393
  labelInValue: boolean;
392
394
  bordered: boolean;
393
- }> & {
395
+ }, {}, string> & {
394
396
  beforeCreate?: (() => void) | (() => void)[] | undefined;
395
397
  created?: (() => void) | (() => void)[] | undefined;
396
398
  beforeMount?: (() => void) | (() => void)[] | undefined;
@@ -405,7 +407,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
405
407
  unmounted?: (() => void) | (() => void)[] | undefined;
406
408
  renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[] | undefined;
407
409
  renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[] | undefined;
408
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[] | undefined;
410
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void)[] | undefined;
409
411
  };
410
412
  $forceUpdate: () => void;
411
413
  $nextTick: typeof import("vue").nextTick;
@@ -729,7 +731,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
729
731
  defaultActiveFirstOption: boolean;
730
732
  labelInValue: boolean;
731
733
  bordered: boolean;
732
- }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & {
734
+ }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & {
733
735
  readonly Option: import("ant-design-vue/lib/vc-select/Option").OptionFC;
734
736
  readonly OptGroup: import("ant-design-vue/lib/vc-select/OptGroup").OptionGroupFC;
735
737
  readonly SECRET_COMBOBOX_MODE_DO_NOT_USE: "SECRET_COMBOBOX_MODE_DO_NOT_USE";
@@ -24,7 +24,8 @@ const _hoisted_3 = ["onClick"];
24
24
  const _hoisted_4 = /* @__PURE__ */ vue.createElementVNode("span", { class: "checkbox-label" }, "\u5168\u9009", -1);
25
25
  const _hoisted_5 = ["onClick"];
26
26
  const _hoisted_6 = /* @__PURE__ */ vue.createElementVNode("span", { class: "checkbox-label" }, "\u53CD\u9009", -1);
27
- const _hoisted_7 = { class: "blue" };
27
+ const _hoisted_7 = { key: 0 };
28
+ const _hoisted_8 = { class: "blue" };
28
29
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
29
30
  __name: "selectAll",
30
31
  props: {
@@ -34,7 +35,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
34
35
  },
35
36
  showSelectAll: {
36
37
  type: Boolean,
37
- default: false
38
+ default: true
38
39
  }
39
40
  },
40
41
  emits: ["onSelectAll", "update:value", "onChange"],
@@ -45,7 +46,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
45
46
  search: {
46
47
  indeterminate: false,
47
48
  checkedAll: false,
48
- checkedReverse: false
49
+ checkedReverse: false,
50
+ searchList: []
49
51
  }
50
52
  });
51
53
  let selectValue = vue.ref([]);
@@ -57,7 +59,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
57
59
  state.search = {
58
60
  indeterminate: false,
59
61
  checkedAll: false,
60
- checkedReverse: false
62
+ checkedReverse: false,
63
+ searchList: []
61
64
  };
62
65
  }
63
66
  },
@@ -67,17 +70,20 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
67
70
  );
68
71
  const selectAll = (e) => {
69
72
  let key = "value";
73
+ let list = [];
70
74
  if (instance?.attrs.fieldNames || instance?.attrs["field-names"])
71
75
  key = (instance?.attrs).fieldNames?.value || (instance?.attrs)["field-names"].value;
72
76
  state.search.checkedAll = !state.search.checkedAll;
73
77
  state.search.indeterminate = false;
74
78
  state.search.checkedReverse = false;
79
+ if (state.search.searchList.length > 0)
80
+ list = state.search.searchList;
81
+ else
82
+ list = instance?.attrs.options;
75
83
  if (state.search.checkedAll) {
76
- selectValue.value = (instance?.attrs.options).map(
77
- (v) => {
78
- return v[key];
79
- }
80
- );
84
+ selectValue.value = list.map((v) => {
85
+ return v[key];
86
+ });
81
87
  } else {
82
88
  selectValue.value = [];
83
89
  }
@@ -120,6 +126,15 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
120
126
  option
121
127
  });
122
128
  };
129
+ const onSearch = (val) => {
130
+ if (val) {
131
+ const key = (instance?.attrs).optionFilterProp || (instance?.attrs)["option-filter-prop"] || "value";
132
+ const list = (instance?.attrs).options.filter((ele) => {
133
+ return String(ele[key]).indexOf(String(val)) > -1;
134
+ });
135
+ state.search.searchList = list;
136
+ }
137
+ };
123
138
  const VNodes = (_, { attrs }) => {
124
139
  return vue.h(attrs.vnodes);
125
140
  };
@@ -130,10 +145,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
130
145
  "onUpdate:value": _cache[4] || (_cache[4] = ($event) => vue.isRef(selectValue) ? selectValue.value = $event : selectValue = $event),
131
146
  class: "bm-select"
132
147
  }, _ctx.$attrs, {
148
+ class: { w200: !props.showSelectAll },
133
149
  mode: "multiple",
134
150
  placeholder: vue.unref(instance)?.attrs.placeholder ? vue.unref(instance)?.attrs.placeholder : "\u8BF7\u9009\u62E9",
135
151
  "get-popup-container": (nodes) => nodes.parentNode,
136
- onChange
152
+ onChange,
153
+ onSearch
137
154
  }), {
138
155
  dropdownRender: vue.withCtx(({ menuNode: menu }) => [
139
156
  vue.createElementVNode("div", _hoisted_1, [
@@ -160,16 +177,16 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
160
177
  _hoisted_6
161
178
  ], 40, _hoisted_5)
162
179
  ]),
163
- vue.createElementVNode("div", null, [
180
+ __props.showSelectAll ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7, [
164
181
  vue.createTextVNode(" \u5DF2\u9009\u62E9 "),
165
- vue.createElementVNode("span", _hoisted_7, vue.toDisplayString(vue.unref(selectValue)?.length || 0), 1),
182
+ vue.createElementVNode("span", _hoisted_8, vue.toDisplayString(vue.unref(selectValue)?.length || 0), 1),
166
183
  vue.createTextVNode(" \u9879 ")
167
- ])
184
+ ])) : vue.createCommentVNode("v-if", true)
168
185
  ]),
169
186
  vue.createVNode(VNodes, { vnodes: menu }, null, 8, ["vnodes"])
170
187
  ]),
171
188
  _: 1
172
- }, 16, ["value", "placeholder", "get-popup-container"]);
189
+ }, 16, ["value", "class", "placeholder", "get-popup-container"]);
173
190
  };
174
191
  }
175
192
  });
@@ -28,6 +28,7 @@ declare const _default: import("vue").DefineComponent<{
28
28
  indeterminate: boolean;
29
29
  checkedAll: boolean;
30
30
  checkedReverse: boolean;
31
+ searchList: never[];
31
32
  };
32
33
  };
33
34
  emit: (event: "onChange" | "update:value" | "onSelectAll", ...args: any[]) => void;
@@ -35,12 +36,13 @@ declare const _default: import("vue").DefineComponent<{
35
36
  selectAll: (e: any) => void;
36
37
  reverseAll: (e: any) => false | undefined;
37
38
  onChange: (value: any, option: any) => void;
39
+ onSearch: (val: string | number) => void;
38
40
  VNodes: (_: any, { attrs }: {
39
41
  attrs: any;
40
42
  }) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
41
43
  [key: string]: any;
42
44
  }>;
43
- ASelect: {
45
+ readonly ASelect: {
44
46
  new (...args: any[]): {
45
47
  $: import("vue").ComponentInternalInstance;
46
48
  $data: {};
@@ -220,8 +222,8 @@ declare const _default: import("vue").DefineComponent<{
220
222
  $slots: Readonly<{
221
223
  [name: string]: import("vue").Slot;
222
224
  }>;
223
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
224
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
225
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
226
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
225
227
  $emit: (event: string, ...args: any[]) => void;
226
228
  $el: any;
227
229
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
@@ -390,7 +392,7 @@ declare const _default: import("vue").DefineComponent<{
390
392
  defaultActiveFirstOption: boolean;
391
393
  labelInValue: boolean;
392
394
  bordered: boolean;
393
- }> & {
395
+ }, {}, string> & {
394
396
  beforeCreate?: (() => void) | (() => void)[] | undefined;
395
397
  created?: (() => void) | (() => void)[] | undefined;
396
398
  beforeMount?: (() => void) | (() => void)[] | undefined;
@@ -405,7 +407,7 @@ declare const _default: import("vue").DefineComponent<{
405
407
  unmounted?: (() => void) | (() => void)[] | undefined;
406
408
  renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[] | undefined;
407
409
  renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[] | undefined;
408
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[] | undefined;
410
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void)[] | undefined;
409
411
  };
410
412
  $forceUpdate: () => void;
411
413
  $nextTick: typeof import("vue").nextTick;
@@ -729,7 +731,7 @@ declare const _default: import("vue").DefineComponent<{
729
731
  defaultActiveFirstOption: boolean;
730
732
  labelInValue: boolean;
731
733
  bordered: boolean;
732
- }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & {
734
+ }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & {
733
735
  readonly Option: import("ant-design-vue/lib/vc-select/Option").OptionFC;
734
736
  readonly OptGroup: import("ant-design-vue/lib/vc-select/OptGroup").OptionGroupFC;
735
737
  readonly SECRET_COMBOBOX_MODE_DO_NOT_USE: "SECRET_COMBOBOX_MODE_DO_NOT_USE";
@@ -101,7 +101,7 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
101
101
  summitSelect: () => void;
102
102
  getOptionName: (key: any) => any;
103
103
  deleteOptions: (key: any) => void;
104
- AModal: {
104
+ readonly AModal: {
105
105
  new (...args: any[]): {
106
106
  $: import("vue").ComponentInternalInstance;
107
107
  $data: {};
@@ -300,8 +300,8 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
300
300
  $slots: Readonly<{
301
301
  [name: string]: import("vue").Slot;
302
302
  }>;
303
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
304
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
303
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
304
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
305
305
  $emit: (event: string, ...args: any[]) => void;
306
306
  $el: any;
307
307
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
@@ -489,7 +489,7 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
489
489
  destroyOnClose: boolean;
490
490
  focusTriggerAfterClose: boolean;
491
491
  confirmLoading: boolean;
492
- }> & {
492
+ }, {}, string> & {
493
493
  beforeCreate?: (() => void) | (() => void)[] | undefined;
494
494
  created?: (() => void) | (() => void)[] | undefined;
495
495
  beforeMount?: (() => void) | (() => void)[] | undefined;
@@ -504,7 +504,7 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
504
504
  unmounted?: (() => void) | (() => void)[] | undefined;
505
505
  renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[] | undefined;
506
506
  renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[] | undefined;
507
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[] | undefined;
507
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void)[] | undefined;
508
508
  };
509
509
  $forceUpdate: () => void;
510
510
  $nextTick: typeof import("vue").nextTick;
@@ -869,7 +869,7 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
869
869
  destroyOnClose: boolean;
870
870
  focusTriggerAfterClose: boolean;
871
871
  confirmLoading: boolean;
872
- }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & {
872
+ }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & {
873
873
  readonly info: import("ant-design-vue/lib/modal/Modal").ModalFunc;
874
874
  readonly success: import("ant-design-vue/lib/modal/Modal").ModalFunc;
875
875
  readonly error: import("ant-design-vue/lib/modal/Modal").ModalFunc;
@@ -878,7 +878,7 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
878
878
  readonly confirm: import("ant-design-vue/lib/modal/Modal").ModalFunc;
879
879
  readonly destroyAll: () => void;
880
880
  };
881
- CloseCircleFilled: import("@ant-design/icons-vue/lib/icons/CloseCircleFilled").CloseCircleFilledIconType;
881
+ readonly CloseCircleFilled: import("@ant-design/icons-vue/lib/icons/CloseCircleFilled").CloseCircleFilledIconType;
882
882
  multipleCmp: import("vue").DefineComponent<{
883
883
  limit: {
884
884
  type: NumberConstructor;
@@ -1000,7 +1000,7 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
1000
1000
  limit: number;
1001
1001
  selected: unknown[];
1002
1002
  }>;
1003
- list: any;
1003
+ readonly list: any;
1004
1004
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:visible" | "update:select")[], "change" | "update:visible" | "update:select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1005
1005
  visible: {
1006
1006
  type: BooleanConstructor;