bm-admin-ui 1.0.62-alpha → 1.0.64-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 (50) hide show
  1. package/es/components/edit-form/index.d.ts +1 -1
  2. package/es/components/edit-form/src/edit-form.vue.d.ts +1 -1
  3. package/es/components/editor/index.d.ts +8 -8
  4. package/es/components/editor/src/editor.vue.d.ts +8 -8
  5. package/es/components/feedback/index.d.ts +4 -4
  6. package/es/components/feedback/src/bmAlert.vue.d.ts +4 -4
  7. package/es/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +4 -4
  8. package/es/components/form-create/index.js +1 -1
  9. package/es/components/form-designer/index.js +78 -58
  10. package/es/components/input-tags-display/index.d.ts +1 -1
  11. package/es/components/input-tags-display/src/input-tags-display.vue.d.ts +1 -1
  12. package/es/components/search-filter/index.d.ts +3 -3
  13. package/es/components/search-filter/src/search-filter.vue.d.ts +3 -3
  14. package/es/components/select-all/index.d.ts +10 -10
  15. package/es/components/select-all/src/selectAll.vue.d.ts +10 -10
  16. package/es/components/timeline/index.d.ts +1 -1
  17. package/es/components/timeline/src/timeline-item.vue.d.ts +1 -1
  18. package/lib/components/edit-form/index.d.ts +1 -1
  19. package/lib/components/edit-form/src/edit-form.vue.d.ts +1 -1
  20. package/lib/components/editor/index.d.ts +8 -8
  21. package/lib/components/editor/src/editor.vue.d.ts +8 -8
  22. package/lib/components/feedback/index.d.ts +4 -4
  23. package/lib/components/feedback/src/bmAlert.vue.d.ts +4 -4
  24. package/lib/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +4 -4
  25. package/lib/components/form-create/index.js +1 -1
  26. package/lib/components/form-designer/index.js +78 -58
  27. package/lib/components/input-tags-display/index.d.ts +1 -1
  28. package/lib/components/input-tags-display/src/input-tags-display.vue.d.ts +1 -1
  29. package/lib/components/search-filter/index.d.ts +3 -3
  30. package/lib/components/search-filter/src/search-filter.vue.d.ts +3 -3
  31. package/lib/components/select-all/index.d.ts +10 -10
  32. package/lib/components/select-all/src/selectAll.vue.d.ts +10 -10
  33. package/lib/components/timeline/index.d.ts +1 -1
  34. package/lib/components/timeline/src/timeline-item.vue.d.ts +1 -1
  35. package/package.json +1 -1
  36. package/types/components/edit-form/index.d.ts +1 -1
  37. package/types/components/edit-form/src/edit-form.vue.d.ts +1 -1
  38. package/types/components/editor/index.d.ts +8 -8
  39. package/types/components/editor/src/editor.vue.d.ts +8 -8
  40. package/types/components/feedback/index.d.ts +4 -4
  41. package/types/components/feedback/src/bmAlert.vue.d.ts +4 -4
  42. package/types/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +4 -4
  43. package/types/components/input-tags-display/index.d.ts +1 -1
  44. package/types/components/input-tags-display/src/input-tags-display.vue.d.ts +1 -1
  45. package/types/components/search-filter/index.d.ts +3 -3
  46. package/types/components/search-filter/src/search-filter.vue.d.ts +3 -3
  47. package/types/components/select-all/index.d.ts +10 -10
  48. package/types/components/select-all/src/selectAll.vue.d.ts +10 -10
  49. package/types/components/timeline/index.d.ts +1 -1
  50. package/types/components/timeline/src/timeline-item.vue.d.ts +1 -1
@@ -48,7 +48,7 @@ declare const BmEditForm: import("bm-admin-ui/es/utils/with-install").SFCWithIns
48
48
  tmpForm: import("vue").Ref<Record<string, any>>;
49
49
  formRef: import("vue").Ref<import("ant-design-vue").FormInstance | null>;
50
50
  colCount: import("vue").ComputedRef<2 | 3 | 1>;
51
- getValueOfOption: (key: string | undefined, defaultKey: "label" | "value", option: any) => string;
51
+ getValueOfOption: (key: string | undefined, defaultKey: "value" | "label", option: any) => string;
52
52
  getPopupContainer: (e: any) => any;
53
53
  getColsConfig: (type: "labelCol" | "wrapperCol", item: import("./src/types").Control, index?: number | undefined) => {
54
54
  flex?: string | undefined;
@@ -47,7 +47,7 @@ declare const _default: import("vue").DefineComponent<{
47
47
  tmpForm: import("vue").Ref<Record<string, any>>;
48
48
  formRef: import("vue").Ref<FormInstance | null>;
49
49
  colCount: import("vue").ComputedRef<2 | 3 | 1>;
50
- getValueOfOption: (key: string | undefined, defaultKey: "label" | "value", option: any) => string;
50
+ getValueOfOption: (key: string | undefined, defaultKey: "value" | "label", option: any) => string;
51
51
  getPopupContainer: (e: any) => any;
52
52
  getColsConfig: (type: "labelCol" | "wrapperCol", item: import("./types").Control, index?: number | undefined) => {
53
53
  flex?: string | undefined;
@@ -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
- onFocus?: ((...args: any[]) => any) | undefined;
64
- onBlur?: ((...args: any[]) => any) | undefined;
63
+ onReady?: ((...args: any[]) => any) | undefined;
65
64
  onChange?: ((...args: any[]) => any) | undefined;
65
+ onBlur?: ((...args: any[]) => any) | undefined;
66
+ onFocus?: ((...args: any[]) => any) | undefined;
66
67
  "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: "focus" | "ready" | "change" | "blur" | "update:value" | "getCount", ...args: any[]) => void;
108
+ emits: (event: "ready" | "change" | "blur" | "focus" | "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, ("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<{
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<{
260
260
  value: import("vue-types").VueTypeValidableDef<string> & {
261
261
  default: string;
262
262
  } & {
@@ -287,11 +287,11 @@ declare const BmEditor: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
287
287
  default: (...args: any[]) => any;
288
288
  };
289
289
  }>> & {
290
- onFocus?: ((...args: any[]) => any) | undefined;
291
- onBlur?: ((...args: any[]) => any) | undefined;
290
+ onReady?: ((...args: any[]) => any) | undefined;
292
291
  onChange?: ((...args: any[]) => any) | undefined;
292
+ onBlur?: ((...args: any[]) => any) | undefined;
293
+ onFocus?: ((...args: any[]) => any) | undefined;
293
294
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
294
- onReady?: ((...args: any[]) => any) | undefined;
295
295
  onGetCount?: ((...args: any[]) => any) | undefined;
296
296
  }, {
297
297
  disabled: boolean;
@@ -60,11 +60,11 @@ declare const _default: import("vue").DefineComponent<{
60
60
  default: (...args: any[]) => any;
61
61
  };
62
62
  }>> & {
63
- onFocus?: ((...args: any[]) => any) | undefined;
64
- onBlur?: ((...args: any[]) => any) | undefined;
63
+ onReady?: ((...args: any[]) => any) | undefined;
65
64
  onChange?: ((...args: any[]) => any) | undefined;
65
+ onBlur?: ((...args: any[]) => any) | undefined;
66
+ onFocus?: ((...args: any[]) => any) | undefined;
66
67
  "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: "focus" | "ready" | "change" | "blur" | "update:value" | "getCount", ...args: any[]) => void;
108
+ emits: (event: "ready" | "change" | "blur" | "focus" | "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, ("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<{
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<{
260
260
  value: import("vue-types").VueTypeValidableDef<string> & {
261
261
  default: string;
262
262
  } & {
@@ -287,11 +287,11 @@ declare const _default: import("vue").DefineComponent<{
287
287
  default: (...args: any[]) => any;
288
288
  };
289
289
  }>> & {
290
- onFocus?: ((...args: any[]) => any) | undefined;
291
- onBlur?: ((...args: any[]) => any) | undefined;
290
+ onReady?: ((...args: any[]) => any) | undefined;
292
291
  onChange?: ((...args: any[]) => any) | undefined;
292
+ onBlur?: ((...args: any[]) => any) | undefined;
293
+ onFocus?: ((...args: any[]) => any) | undefined;
293
294
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
294
- onReady?: ((...args: any[]) => any) | undefined;
295
295
  onGetCount?: ((...args: any[]) => any) | undefined;
296
296
  }, {
297
297
  disabled: boolean;
@@ -880,7 +880,7 @@ declare const BmAlert: import("bm-admin-ui/es/utils/with-install").SFCWithInstal
880
880
  closable: boolean;
881
881
  banner: boolean;
882
882
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
883
- type: import("vue-types").VueTypeDef<"error" | "success" | "warning" | "info">;
883
+ type: import("vue-types").VueTypeDef<"success" | "error" | "warning" | "info">;
884
884
  closable: {
885
885
  type: BooleanConstructor;
886
886
  default: any;
@@ -916,7 +916,7 @@ declare const BmAlert: import("bm-admin-ui/es/utils/with-install").SFCWithInstal
916
916
  $emit: (event: string, ...args: any[]) => void;
917
917
  $el: any;
918
918
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
919
- type: import("vue-types").VueTypeDef<"error" | "success" | "warning" | "info">;
919
+ type: import("vue-types").VueTypeDef<"success" | "error" | "warning" | "info">;
920
920
  closable: {
921
921
  type: BooleanConstructor;
922
922
  default: any;
@@ -962,7 +962,7 @@ declare const BmAlert: import("bm-admin-ui/es/utils/with-install").SFCWithInstal
962
962
  $nextTick: typeof import("vue").nextTick;
963
963
  $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
964
964
  } & Readonly<import("vue").ExtractPropTypes<{
965
- type: import("vue-types").VueTypeDef<"error" | "success" | "warning" | "info">;
965
+ type: import("vue-types").VueTypeDef<"success" | "error" | "warning" | "info">;
966
966
  closable: {
967
967
  type: BooleanConstructor;
968
968
  default: any;
@@ -988,7 +988,7 @@ declare const BmAlert: import("bm-admin-ui/es/utils/with-install").SFCWithInstal
988
988
  __isTeleport?: undefined;
989
989
  __isSuspense?: undefined;
990
990
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
991
- type: import("vue-types").VueTypeDef<"error" | "success" | "warning" | "info">;
991
+ type: import("vue-types").VueTypeDef<"success" | "error" | "warning" | "info">;
992
992
  closable: {
993
993
  type: BooleanConstructor;
994
994
  default: any;
@@ -36,7 +36,7 @@ declare const _default: import("vue").DefineComponent<{
36
36
  closable: boolean;
37
37
  banner: boolean;
38
38
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
39
- type: import("vue-types").VueTypeDef<"error" | "success" | "warning" | "info">;
39
+ type: import("vue-types").VueTypeDef<"success" | "error" | "warning" | "info">;
40
40
  closable: {
41
41
  type: BooleanConstructor;
42
42
  default: any;
@@ -72,7 +72,7 @@ declare const _default: import("vue").DefineComponent<{
72
72
  $emit: (event: string, ...args: any[]) => void;
73
73
  $el: any;
74
74
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
75
- type: import("vue-types").VueTypeDef<"error" | "success" | "warning" | "info">;
75
+ type: import("vue-types").VueTypeDef<"success" | "error" | "warning" | "info">;
76
76
  closable: {
77
77
  type: BooleanConstructor;
78
78
  default: any;
@@ -118,7 +118,7 @@ declare const _default: import("vue").DefineComponent<{
118
118
  $nextTick: typeof import("vue").nextTick;
119
119
  $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
120
120
  } & Readonly<import("vue").ExtractPropTypes<{
121
- type: import("vue-types").VueTypeDef<"error" | "success" | "warning" | "info">;
121
+ type: import("vue-types").VueTypeDef<"success" | "error" | "warning" | "info">;
122
122
  closable: {
123
123
  type: BooleanConstructor;
124
124
  default: any;
@@ -144,7 +144,7 @@ declare const _default: import("vue").DefineComponent<{
144
144
  __isTeleport?: undefined;
145
145
  __isSuspense?: undefined;
146
146
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
147
- type: import("vue-types").VueTypeDef<"error" | "success" | "warning" | "info">;
147
+ type: import("vue-types").VueTypeDef<"success" | "error" | "warning" | "info">;
148
148
  closable: {
149
149
  type: BooleanConstructor;
150
150
  default: any;
@@ -63,7 +63,7 @@ declare const _default: import("vue").DefineComponent<{
63
63
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
64
64
  prefixCls: StringConstructor;
65
65
  color: {
66
- type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"default" | "error" | "success" | "warning" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
66
+ type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"default" | "success" | "error" | "warning" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
67
67
  };
68
68
  closable: {
69
69
  type: BooleanConstructor;
@@ -96,7 +96,7 @@ declare const _default: import("vue").DefineComponent<{
96
96
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
97
97
  prefixCls: StringConstructor;
98
98
  color: {
99
- type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"default" | "error" | "success" | "warning" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
99
+ type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"default" | "success" | "error" | "warning" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
100
100
  };
101
101
  closable: {
102
102
  type: BooleanConstructor;
@@ -138,7 +138,7 @@ declare const _default: import("vue").DefineComponent<{
138
138
  } & Readonly<import("vue").ExtractPropTypes<{
139
139
  prefixCls: StringConstructor;
140
140
  color: {
141
- type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"default" | "error" | "success" | "warning" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
141
+ type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"default" | "success" | "error" | "warning" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
142
142
  };
143
143
  closable: {
144
144
  type: BooleanConstructor;
@@ -161,7 +161,7 @@ declare const _default: import("vue").DefineComponent<{
161
161
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
162
162
  prefixCls: StringConstructor;
163
163
  color: {
164
- type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"default" | "error" | "success" | "warning" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
164
+ type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"default" | "success" | "error" | "warning" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
165
165
  };
166
166
  closable: {
167
167
  type: BooleanConstructor;
@@ -2742,7 +2742,7 @@ var shop = {
2742
2742
  return {
2743
2743
  type: 'ShopWidget',
2744
2744
  component: ShopWidget,
2745
- title: data.title.title,
2745
+ title: `${data.title.title}${data.config.isMain ? '(主控件)' : ''}`,
2746
2746
  field: data.field,
2747
2747
  effect: {
2748
2748
  required: data.effect.required && '请选择店铺',
@@ -3286,21 +3286,6 @@ var shop = {
3286
3286
  value: rule.config.isMain,
3287
3287
  hidden: !!parentRule,
3288
3288
  inject: true,
3289
- on: {
3290
- change({ api, self }, value) {
3291
- if (value) {
3292
- api.mergeRule(fieldsMap$1['effect.required'], {
3293
- value: true,
3294
- props: { disabled: true },
3295
- });
3296
- }
3297
- else {
3298
- api.mergeRule(fieldsMap$1['effect.required'], {
3299
- props: { disabled: false },
3300
- });
3301
- }
3302
- },
3303
- },
3304
3289
  },
3305
3290
  {
3306
3291
  type: 'switch',
@@ -4036,9 +4021,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4036
4021
  if (!cacheProps[rule.field]) {
4037
4022
  cacheProps[rule.field] = makePropRule(rule, parentRule);
4038
4023
  }
4024
+ flowConditionEffect(props.flowCondition);
4025
+ setMainShopPropDisabled(rule.field);
4039
4026
  }
4040
4027
  function propChange(field, value) {
4041
4028
  setRulePropValue(field, value, activeRule.value);
4029
+ processShopProps(field, value);
4030
+ }
4031
+ function processShopProps(field, value) {
4032
+ if (activeRule.value?.config?.config.name === "shop") {
4033
+ if (field === "config.isMain") {
4034
+ const shopProps = cacheProps[activeRule.value.field];
4035
+ const requiredRule = shopProps.find(
4036
+ (rule) => rule.field === "effect.required"
4037
+ );
4038
+ if (value) {
4039
+ requiredRule.value = true;
4040
+ }
4041
+ flowConditionEffect(props.flowCondition);
4042
+ }
4043
+ }
4042
4044
  }
4043
4045
  function setRulePropValue(field, value, rule) {
4044
4046
  field.split(".").reduce((pre, cur, index, arr) => {
@@ -4161,48 +4163,53 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4161
4163
  }
4162
4164
  return pass;
4163
4165
  }
4164
- function flowConditionEffect(activeProps2, flowCondition) {
4166
+ function flowConditionEffect(flowCondition) {
4165
4167
  if (activeRule.value.config) {
4166
- const disabled = !!flowCondition[activeRule.value.field];
4168
+ const activeProps2 = cacheProps[activeRule.value.field];
4167
4169
  const ruleName = activeRule.value.config.config.name;
4168
- if (disabled) {
4169
- const requiredRule = activeProps2?.find(
4170
- (rule) => rule.field === "effect.required"
4171
- );
4172
- if (requiredRule) {
4173
- if (!requiredRule.props) {
4174
- requiredRule.props = {};
4175
- }
4176
- requiredRule.props.disabled = true;
4177
- }
4178
- if (["radio", "checkbox"].includes(ruleName)) {
4179
- const optionsRule = activeProps2?.find(
4180
- (rule) => rule.field === "options"
4181
- );
4182
- optionsRule.props.disabled = true;
4183
- }
4184
- if (ruleName === "materialType") {
4185
- const formatRule = activeProps2?.find(
4186
- (rule) => rule.field === "config.format"
4187
- );
4188
- const multipleRule = activeProps2?.find(
4189
- (rule) => rule.field === "props.multiple"
4190
- );
4191
- formatRule.props = {
4192
- disabled: true
4193
- };
4194
- multipleRule.props = {
4195
- disabled: true
4196
- };
4197
- }
4198
- if (["people", "department"].includes(ruleName)) {
4199
- const limitRule = activeProps2?.find(
4200
- (rule) => rule.field === "props.limit"
4201
- );
4202
- limitRule.props = {
4203
- disabled: true
4204
- };
4170
+ let disabled;
4171
+ if (ruleName === "shop") {
4172
+ const isMainValue = activeProps2.find(
4173
+ (rule) => rule.field === "config.isMain"
4174
+ )?.value;
4175
+ disabled = !!flowCondition[activeRule.value.field] || isMainValue;
4176
+ } else {
4177
+ disabled = !!flowCondition[activeRule.value.field];
4178
+ }
4179
+ const requiredRule = activeProps2?.find(
4180
+ (rule) => rule.field === "effect.required"
4181
+ );
4182
+ if (requiredRule) {
4183
+ if (!requiredRule.props) {
4184
+ requiredRule.props = {};
4205
4185
  }
4186
+ requiredRule.props.disabled = disabled;
4187
+ }
4188
+ if (["radio", "checkbox"].includes(ruleName)) {
4189
+ const optionsRule = activeProps2?.find((rule) => rule.field === "options");
4190
+ optionsRule.props.disabled = disabled;
4191
+ }
4192
+ if (ruleName === "materialType") {
4193
+ const formatRule = activeProps2?.find(
4194
+ (rule) => rule.field === "config.format"
4195
+ );
4196
+ const multipleRule = activeProps2?.find(
4197
+ (rule) => rule.field === "props.multiple"
4198
+ );
4199
+ formatRule.props = {
4200
+ disabled
4201
+ };
4202
+ multipleRule.props = {
4203
+ disabled
4204
+ };
4205
+ }
4206
+ if (["people", "department"].includes(ruleName)) {
4207
+ const limitRule = activeProps2?.find(
4208
+ (rule) => rule.field === "props.limit"
4209
+ );
4210
+ limitRule.props = {
4211
+ disabled
4212
+ };
4206
4213
  }
4207
4214
  }
4208
4215
  }
@@ -4213,6 +4220,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4213
4220
  function getPopupContainer() {
4214
4221
  return document.body;
4215
4222
  }
4223
+ function getMainShop() {
4224
+ return widgetFormRules.find(
4225
+ (rule) => rule?.config?.config?.name === "shop" && rule?.config?.isMain
4226
+ );
4227
+ }
4228
+ function setMainShopPropDisabled(field) {
4229
+ const propsRules = cacheProps[field];
4230
+ const mainShopPropRule = propsRules.find(
4231
+ (rule) => rule.field === "config.isMain"
4232
+ );
4233
+ const mainShopRule = getMainShop();
4234
+ if (!mainShopPropRule.props) {
4235
+ mainShopPropRule.props = {};
4236
+ }
4237
+ mainShopPropRule.props.disabled = !!mainShopRule && !mainShopPropRule.value;
4238
+ }
4216
4239
  watch(
4217
4240
  () => props.formRules,
4218
4241
  (formRules) => {
@@ -4222,13 +4245,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4222
4245
  immediate: true
4223
4246
  }
4224
4247
  );
4225
- watch(activeProps, (activeProps2) => {
4226
- flowConditionEffect(activeProps2, props.flowCondition);
4227
- });
4228
4248
  watch(
4229
4249
  () => props.flowCondition,
4230
4250
  (flowCondition) => {
4231
- flowConditionEffect(activeProps.value, flowCondition);
4251
+ flowConditionEffect(flowCondition);
4232
4252
  },
4233
4253
  {
4234
4254
  deep: true
@@ -125,10 +125,10 @@ declare const BmTagsDisplay: import("bm-admin-ui/es/utils/with-install").SFCWith
125
125
  onAddClick?: ((...args: any[]) => any) | undefined;
126
126
  }, {
127
127
  disabled: boolean;
128
+ list: unknown[];
128
129
  placement: string;
129
130
  fieldNames: Record<string, any>;
130
131
  placeholder: string;
131
- list: unknown[];
132
132
  showEmpty: boolean;
133
133
  showEmptyBtn: boolean;
134
134
  unitStr: string;
@@ -123,10 +123,10 @@ declare const _default: import("vue").DefineComponent<{
123
123
  onAddClick?: ((...args: any[]) => any) | undefined;
124
124
  }, {
125
125
  disabled: boolean;
126
+ list: unknown[];
126
127
  placement: string;
127
128
  fieldNames: Record<string, any>;
128
129
  placeholder: string;
129
- list: unknown[];
130
130
  showEmpty: boolean;
131
131
  showEmptyBtn: boolean;
132
132
  unitStr: string;
@@ -110,9 +110,9 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
110
110
  default(): never[];
111
111
  };
112
112
  }>> & {
113
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
113
114
  onReset?: ((...args: any[]) => any) | undefined;
114
115
  onSubmit?: ((...args: any[]) => any) | undefined;
115
- "onUpdate:value"?: ((...args: any[]) => any) | undefined;
116
116
  onExpand?: ((...args: any[]) => any) | undefined;
117
117
  }>>;
118
118
  emits: (event: "submit" | "reset" | "update:value" | "expand", ...args: any[]) => void;
@@ -212,14 +212,14 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
212
212
  default(): never[];
213
213
  };
214
214
  }>> & {
215
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
215
216
  onReset?: ((...args: any[]) => any) | undefined;
216
217
  onSubmit?: ((...args: any[]) => any) | undefined;
217
- "onUpdate:value"?: ((...args: any[]) => any) | undefined;
218
218
  onExpand?: ((...args: any[]) => any) | undefined;
219
219
  }, {
220
220
  loading: boolean;
221
- labelCol: Record<string, any>;
222
221
  value: Record<string, any>;
222
+ labelCol: Record<string, any>;
223
223
  showExpandBtn: boolean;
224
224
  showSearchIcon: boolean;
225
225
  expandPlacement: "left" | "right";
@@ -110,9 +110,9 @@ declare const _default: import("vue").DefineComponent<{
110
110
  default(): never[];
111
111
  };
112
112
  }>> & {
113
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
113
114
  onReset?: ((...args: any[]) => any) | undefined;
114
115
  onSubmit?: ((...args: any[]) => any) | undefined;
115
- "onUpdate:value"?: ((...args: any[]) => any) | undefined;
116
116
  onExpand?: ((...args: any[]) => any) | undefined;
117
117
  }>>;
118
118
  emits: (event: "submit" | "reset" | "update:value" | "expand", ...args: any[]) => void;
@@ -212,14 +212,14 @@ declare const _default: import("vue").DefineComponent<{
212
212
  default(): never[];
213
213
  };
214
214
  }>> & {
215
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
215
216
  onReset?: ((...args: any[]) => any) | undefined;
216
217
  onSubmit?: ((...args: any[]) => any) | undefined;
217
- "onUpdate:value"?: ((...args: any[]) => any) | undefined;
218
218
  onExpand?: ((...args: any[]) => any) | undefined;
219
219
  }, {
220
220
  loading: boolean;
221
- labelCol: Record<string, any>;
222
221
  value: Record<string, any>;
222
+ labelCol: Record<string, any>;
223
223
  showExpandBtn: boolean;
224
224
  showSearchIcon: boolean;
225
225
  expandPlacement: "left" | "right";
@@ -30,7 +30,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
30
30
  checkedReverse: boolean;
31
31
  };
32
32
  };
33
- emit: (event: "onChange" | "update:value" | "onSelectAll", ...args: any[]) => void;
33
+ emit: (event: "update:value" | "onChange" | "onSelectAll", ...args: any[]) => void;
34
34
  selectValue: any;
35
35
  selectAll: (e: any) => void;
36
36
  reverseAll: (e: any) => false | undefined;
@@ -99,7 +99,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
99
99
  onSelect: import("vue").PropType<import("ant-design-vue/lib/vc-select/Select").SelectHandler<(string | number) | import("ant-design-vue/lib/select").LabeledValue, import("ant-design-vue/lib/select").DefaultOptionType>>;
100
100
  prefixCls: StringConstructor;
101
101
  direction: {
102
- type: import("vue").PropType<"ltr" | "rtl">;
102
+ type: import("vue").PropType<"rtl" | "ltr">;
103
103
  };
104
104
  open: {
105
105
  type: BooleanConstructor;
@@ -124,7 +124,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
124
124
  };
125
125
  children: import("vue").PropType<import("ant-design-vue/lib/_util/type").VueNode[]>;
126
126
  showAction: {
127
- type: import("vue").PropType<("click" | "focus")[]>;
127
+ type: import("vue").PropType<("focus" | "click")[]>;
128
128
  };
129
129
  id: StringConstructor;
130
130
  placement: {
@@ -262,7 +262,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
262
262
  onSelect: import("vue").PropType<import("ant-design-vue/lib/vc-select/Select").SelectHandler<(string | number) | import("ant-design-vue/lib/select").LabeledValue, import("ant-design-vue/lib/select").DefaultOptionType>>;
263
263
  prefixCls: StringConstructor;
264
264
  direction: {
265
- type: import("vue").PropType<"ltr" | "rtl">;
265
+ type: import("vue").PropType<"rtl" | "ltr">;
266
266
  };
267
267
  open: {
268
268
  type: BooleanConstructor;
@@ -287,7 +287,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
287
287
  };
288
288
  children: import("vue").PropType<import("ant-design-vue/lib/_util/type").VueNode[]>;
289
289
  showAction: {
290
- type: import("vue").PropType<("click" | "focus")[]>;
290
+ type: import("vue").PropType<("focus" | "click")[]>;
291
291
  };
292
292
  id: StringConstructor;
293
293
  placement: {
@@ -448,7 +448,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
448
448
  onSelect: import("vue").PropType<import("ant-design-vue/lib/vc-select/Select").SelectHandler<(string | number) | import("ant-design-vue/lib/select").LabeledValue, import("ant-design-vue/lib/select").DefaultOptionType>>;
449
449
  prefixCls: StringConstructor;
450
450
  direction: {
451
- type: import("vue").PropType<"ltr" | "rtl">;
451
+ type: import("vue").PropType<"rtl" | "ltr">;
452
452
  };
453
453
  open: {
454
454
  type: BooleanConstructor;
@@ -473,7 +473,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
473
473
  };
474
474
  children: import("vue").PropType<import("ant-design-vue/lib/_util/type").VueNode[]>;
475
475
  showAction: {
476
- type: import("vue").PropType<("click" | "focus")[]>;
476
+ type: import("vue").PropType<("focus" | "click")[]>;
477
477
  };
478
478
  id: StringConstructor;
479
479
  placement: {
@@ -601,7 +601,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
601
601
  onSelect: import("vue").PropType<import("ant-design-vue/lib/vc-select/Select").SelectHandler<(string | number) | import("ant-design-vue/lib/select").LabeledValue, import("ant-design-vue/lib/select").DefaultOptionType>>;
602
602
  prefixCls: StringConstructor;
603
603
  direction: {
604
- type: import("vue").PropType<"ltr" | "rtl">;
604
+ type: import("vue").PropType<"rtl" | "ltr">;
605
605
  };
606
606
  open: {
607
607
  type: BooleanConstructor;
@@ -626,7 +626,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
626
626
  };
627
627
  children: import("vue").PropType<import("ant-design-vue/lib/_util/type").VueNode[]>;
628
628
  showAction: {
629
- type: import("vue").PropType<("click" | "focus")[]>;
629
+ type: import("vue").PropType<("focus" | "click")[]>;
630
630
  };
631
631
  id: StringConstructor;
632
632
  placement: {
@@ -734,7 +734,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
734
734
  readonly OptGroup: import("ant-design-vue/lib/vc-select/OptGroup").OptionGroupFC;
735
735
  readonly SECRET_COMBOBOX_MODE_DO_NOT_USE: "SECRET_COMBOBOX_MODE_DO_NOT_USE";
736
736
  };
737
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onChange" | "update:value" | "onSelectAll")[], "onChange" | "update:value" | "onSelectAll", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
737
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "onChange" | "onSelectAll")[], "update:value" | "onChange" | "onSelectAll", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
738
738
  value: {
739
739
  type: ArrayConstructor;
740
740
  required: true;