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
@@ -31,6 +31,14 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
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 BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
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 BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
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 BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
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 BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
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>;
@@ -4,6 +4,7 @@ import FormCreateCtr from '@form-create/ant-design-vue';
4
4
  import { UpOutlined, DownOutlined, SearchOutlined } from '@ant-design/icons-vue';
5
5
  import ASelect from 'ant-design-vue/lib/select';
6
6
  import { cloneDeep } from 'lodash-es';
7
+ import Modal from 'ant-design-vue/lib/modal';
7
8
 
8
9
  const searchResetBtnProps = {
9
10
  showExpandBtn: {
@@ -38,6 +39,16 @@ const searchResetBtnProps = {
38
39
  type: String,
39
40
  default: '',
40
41
  },
42
+ setDefaultConfirm: {
43
+ type: Boolean,
44
+ default: true,
45
+ },
46
+ setDefaultConfirmConfig: {
47
+ type: Object,
48
+ default() {
49
+ return {};
50
+ },
51
+ },
41
52
  gutter: {
42
53
  type: Array,
43
54
  default() {
@@ -347,6 +358,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
347
358
  showSetDefaultBtn: props.showSetDefaultBtn,
348
359
  setDefaultText: props.setDefaultText,
349
360
  setDefaultId: props.setDefaultId,
361
+ setDefaultConfirm: props.setDefaultConfirm,
362
+ setDefaultConfirmConfig: props.setDefaultConfirmConfig,
350
363
  collapseText: props.collapseText,
351
364
  gutter: props.gutter,
352
365
  loading: props.loading
@@ -364,14 +377,33 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
364
377
  emits("expand", value);
365
378
  },
366
379
  setDefault() {
367
- if (props.setDefaultId) {
380
+ if (!props.setDefaultId) {
381
+ throw new Error("\u8BF7\u5148\u8BBE\u7F6E\u5B58\u50A8\u7684ID\uFF0C\u5426\u5219\u65E0\u6CD5\u5B58\u50A8\u5230 LocalStorage\uFF01");
382
+ }
383
+ function setDefault() {
368
384
  window.localStorage.setItem(
369
385
  props.setDefaultId,
370
386
  JSON.stringify(fApi.value.formData())
371
387
  );
388
+ emits("setDefault", fApi.value.formData());
389
+ updateRulesDefault(fApi.value.formData());
390
+ }
391
+ if (props.setDefaultConfirm) {
392
+ let defaultConfig = {
393
+ title: "\u786E\u5B9A\u8BBE\u7F6E\u5F53\u524D\u67E5\u8BE2\u6761\u4EF6\u4E3A\u9ED8\u8BA4\u67E5\u8BE2\u5417\uFF1F",
394
+ okText: "\u786E\u8BA4",
395
+ cancelText: "\u53D6\u6D88"
396
+ };
397
+ Modal.confirm({
398
+ ...defaultConfig,
399
+ ...props.setDefaultConfirmConfig,
400
+ onOk() {
401
+ setDefault();
402
+ }
403
+ });
404
+ } else {
405
+ setDefault();
372
406
  }
373
- emits("setDefault", fApi.value.formData());
374
- updateRulesDefault(fApi.value.formData());
375
407
  }
376
408
  }
377
409
  }
@@ -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";
@@ -1,5 +1,5 @@
1
1
  import { withInstall } from 'bm-admin-ui/es/utils/with-install';
2
- import { defineComponent, getCurrentInstance, reactive, ref, watch, resolveComponent, openBlock, createBlock, unref, mergeProps, isRef, withCtx, createElementVNode, withModifiers, createVNode, createTextVNode, toDisplayString, h } from 'vue';
2
+ import { defineComponent, getCurrentInstance, reactive, ref, watch, resolveComponent, openBlock, createBlock, unref, mergeProps, isRef, withCtx, createElementVNode, withModifiers, createVNode, createElementBlock, createTextVNode, toDisplayString, createCommentVNode, h } from 'vue';
3
3
  import ASelect from 'ant-design-vue/lib/select';
4
4
 
5
5
  var _export_sfc = (sfc, props) => {
@@ -16,7 +16,8 @@ const _hoisted_3 = ["onClick"];
16
16
  const _hoisted_4 = /* @__PURE__ */ createElementVNode("span", { class: "checkbox-label" }, "\u5168\u9009", -1);
17
17
  const _hoisted_5 = ["onClick"];
18
18
  const _hoisted_6 = /* @__PURE__ */ createElementVNode("span", { class: "checkbox-label" }, "\u53CD\u9009", -1);
19
- const _hoisted_7 = { class: "blue" };
19
+ const _hoisted_7 = { key: 0 };
20
+ const _hoisted_8 = { class: "blue" };
20
21
  const _sfc_main = /* @__PURE__ */ defineComponent({
21
22
  __name: "selectAll",
22
23
  props: {
@@ -26,7 +27,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
26
27
  },
27
28
  showSelectAll: {
28
29
  type: Boolean,
29
- default: false
30
+ default: true
30
31
  }
31
32
  },
32
33
  emits: ["onSelectAll", "update:value", "onChange"],
@@ -37,7 +38,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
37
38
  search: {
38
39
  indeterminate: false,
39
40
  checkedAll: false,
40
- checkedReverse: false
41
+ checkedReverse: false,
42
+ searchList: []
41
43
  }
42
44
  });
43
45
  let selectValue = ref([]);
@@ -49,7 +51,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
49
51
  state.search = {
50
52
  indeterminate: false,
51
53
  checkedAll: false,
52
- checkedReverse: false
54
+ checkedReverse: false,
55
+ searchList: []
53
56
  };
54
57
  }
55
58
  },
@@ -59,17 +62,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
59
62
  );
60
63
  const selectAll = (e) => {
61
64
  let key = "value";
65
+ let list = [];
62
66
  if (instance?.attrs.fieldNames || instance?.attrs["field-names"])
63
67
  key = (instance?.attrs).fieldNames?.value || (instance?.attrs)["field-names"].value;
64
68
  state.search.checkedAll = !state.search.checkedAll;
65
69
  state.search.indeterminate = false;
66
70
  state.search.checkedReverse = false;
71
+ if (state.search.searchList.length > 0)
72
+ list = state.search.searchList;
73
+ else
74
+ list = instance?.attrs.options;
67
75
  if (state.search.checkedAll) {
68
- selectValue.value = (instance?.attrs.options).map(
69
- (v) => {
70
- return v[key];
71
- }
72
- );
76
+ selectValue.value = list.map((v) => {
77
+ return v[key];
78
+ });
73
79
  } else {
74
80
  selectValue.value = [];
75
81
  }
@@ -112,6 +118,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
112
118
  option
113
119
  });
114
120
  };
121
+ const onSearch = (val) => {
122
+ if (val) {
123
+ const key = (instance?.attrs).optionFilterProp || (instance?.attrs)["option-filter-prop"] || "value";
124
+ const list = (instance?.attrs).options.filter((ele) => {
125
+ return String(ele[key]).indexOf(String(val)) > -1;
126
+ });
127
+ state.search.searchList = list;
128
+ }
129
+ };
115
130
  const VNodes = (_, { attrs }) => {
116
131
  return h(attrs.vnodes);
117
132
  };
@@ -122,10 +137,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
122
137
  "onUpdate:value": _cache[4] || (_cache[4] = ($event) => isRef(selectValue) ? selectValue.value = $event : selectValue = $event),
123
138
  class: "bm-select"
124
139
  }, _ctx.$attrs, {
140
+ class: { w200: !props.showSelectAll },
125
141
  mode: "multiple",
126
142
  placeholder: unref(instance)?.attrs.placeholder ? unref(instance)?.attrs.placeholder : "\u8BF7\u9009\u62E9",
127
143
  "get-popup-container": (nodes) => nodes.parentNode,
128
- onChange
144
+ onChange,
145
+ onSearch
129
146
  }), {
130
147
  dropdownRender: withCtx(({ menuNode: menu }) => [
131
148
  createElementVNode("div", _hoisted_1, [
@@ -152,16 +169,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
152
169
  _hoisted_6
153
170
  ], 40, _hoisted_5)
154
171
  ]),
155
- createElementVNode("div", null, [
172
+ __props.showSelectAll ? (openBlock(), createElementBlock("div", _hoisted_7, [
156
173
  createTextVNode(" \u5DF2\u9009\u62E9 "),
157
- createElementVNode("span", _hoisted_7, toDisplayString(unref(selectValue)?.length || 0), 1),
174
+ createElementVNode("span", _hoisted_8, toDisplayString(unref(selectValue)?.length || 0), 1),
158
175
  createTextVNode(" \u9879 ")
159
- ])
176
+ ])) : createCommentVNode("v-if", true)
160
177
  ]),
161
178
  createVNode(VNodes, { vnodes: menu }, null, 8, ["vnodes"])
162
179
  ]),
163
180
  _: 1
164
- }, 16, ["value", "placeholder", "get-popup-container"]);
181
+ }, 16, ["value", "class", "placeholder", "get-popup-container"]);
165
182
  };
166
183
  }
167
184
  });
@@ -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;