keli-ui 0.2.3 → 0.2.4
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.
package/dist/keli-ui.js
CHANGED
|
@@ -35545,7 +35545,6 @@ const getTitle = (type) => {
|
|
|
35545
35545
|
return type;
|
|
35546
35546
|
};
|
|
35547
35547
|
let alert = (params) => {
|
|
35548
|
-
console.log(params);
|
|
35549
35548
|
if (isNotEmpty(params.callback) || isNotEmpty(params.catch)) {
|
|
35550
35549
|
ElMessageBox.confirm(params.msg, getTitle(params.type), {
|
|
35551
35550
|
confirmButtonText: "OK",
|
|
@@ -36401,7 +36400,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
36401
36400
|
}
|
|
36402
36401
|
return target;
|
|
36403
36402
|
};
|
|
36404
|
-
const ToolBarClient = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-
|
|
36403
|
+
const ToolBarClient = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-d81813fb"]]);
|
|
36405
36404
|
const _hoisted_1$d = { class: "ke-table-render-client" };
|
|
36406
36405
|
const _hoisted_2$9 = {
|
|
36407
36406
|
key: 1,
|
|
@@ -36897,7 +36896,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
36897
36896
|
};
|
|
36898
36897
|
}
|
|
36899
36898
|
});
|
|
36900
|
-
const ToolBarMobile = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-
|
|
36899
|
+
const ToolBarMobile = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-f3dd7c43"]]);
|
|
36901
36900
|
const customFormatter = (options) => {
|
|
36902
36901
|
if (isEmpty(options.cellValue) || isEmpty(options.tabObj))
|
|
36903
36902
|
return options.cellValue;
|
|
@@ -38656,7 +38655,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
38656
38655
|
};
|
|
38657
38656
|
}
|
|
38658
38657
|
});
|
|
38659
|
-
const KeliQuerySelect = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-
|
|
38658
|
+
const KeliQuerySelect = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-d1b8eb49"]]);
|
|
38660
38659
|
KeliQuerySelect.install = (app) => {
|
|
38661
38660
|
app.component(KeliQuerySelect.__name, KeliQuerySelect);
|
|
38662
38661
|
};
|
|
@@ -38681,6 +38680,31 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
38681
38680
|
_sfc_main$n.install = (app) => {
|
|
38682
38681
|
app.component(_sfc_main$n.__name, _sfc_main$n);
|
|
38683
38682
|
};
|
|
38683
|
+
const useMittHook = (fieldName, mittId) => {
|
|
38684
|
+
if (!mittId) {
|
|
38685
|
+
return {
|
|
38686
|
+
registerMitt: () => {
|
|
38687
|
+
},
|
|
38688
|
+
offMitt: () => {
|
|
38689
|
+
}
|
|
38690
|
+
};
|
|
38691
|
+
}
|
|
38692
|
+
const registerMitt = (func) => {
|
|
38693
|
+
if (mittId && emitter) {
|
|
38694
|
+
emitter.on(fieldName + mittId, (_eventData) => {
|
|
38695
|
+
if (func) {
|
|
38696
|
+
func(_eventData);
|
|
38697
|
+
}
|
|
38698
|
+
});
|
|
38699
|
+
}
|
|
38700
|
+
};
|
|
38701
|
+
const offMitt = () => {
|
|
38702
|
+
if (mittId && emitter) {
|
|
38703
|
+
emitter.off(fieldName + mittId);
|
|
38704
|
+
}
|
|
38705
|
+
};
|
|
38706
|
+
return { registerMitt, offMitt };
|
|
38707
|
+
};
|
|
38684
38708
|
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
38685
38709
|
__name: "FormCascaderAsync",
|
|
38686
38710
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -38695,6 +38719,11 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
38695
38719
|
fieldTitle: {
|
|
38696
38720
|
required: true,
|
|
38697
38721
|
type: String
|
|
38722
|
+
},
|
|
38723
|
+
mittId: {
|
|
38724
|
+
type: null,
|
|
38725
|
+
required: false,
|
|
38726
|
+
default: () => null
|
|
38698
38727
|
}
|
|
38699
38728
|
}, {
|
|
38700
38729
|
"value": {},
|
|
@@ -38703,13 +38732,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
38703
38732
|
emits: /* @__PURE__ */ mergeModels([
|
|
38704
38733
|
"update:value",
|
|
38705
38734
|
"getComponentValue",
|
|
38706
|
-
"valueChange",
|
|
38707
38735
|
"setShow"
|
|
38708
38736
|
], ["update:value"]),
|
|
38709
38737
|
setup(__props, { emit: __emit }) {
|
|
38710
38738
|
const props = __props;
|
|
38711
38739
|
const emits = __emit;
|
|
38712
38740
|
const valueRef = useModel(__props, "value");
|
|
38741
|
+
const { registerMitt, offMitt } = useMittHook(props.detail.field, props.mittId);
|
|
38713
38742
|
const cascaderProps = {
|
|
38714
38743
|
lazy: true,
|
|
38715
38744
|
lazyLoad: async (node, resolve) => {
|
|
@@ -38754,6 +38783,20 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
38754
38783
|
}
|
|
38755
38784
|
}
|
|
38756
38785
|
};
|
|
38786
|
+
const setValue = (value) => {
|
|
38787
|
+
valueRef.value = value;
|
|
38788
|
+
};
|
|
38789
|
+
const receiveBroadcasts = (eventData) => {
|
|
38790
|
+
if (props.detail.noticeReceive) {
|
|
38791
|
+
props.detail.noticeReceive(eventData, setValue);
|
|
38792
|
+
}
|
|
38793
|
+
};
|
|
38794
|
+
onMounted(() => {
|
|
38795
|
+
registerMitt(receiveBroadcasts);
|
|
38796
|
+
});
|
|
38797
|
+
onUnmounted(() => {
|
|
38798
|
+
offMitt();
|
|
38799
|
+
});
|
|
38757
38800
|
return (_ctx, _cache) => {
|
|
38758
38801
|
const _component_el_cascader = resolveComponent("el-cascader");
|
|
38759
38802
|
return openBlock(), createBlock(_component_el_cascader, mergeProps({
|
|
@@ -38783,6 +38826,11 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
38783
38826
|
fieldTitle: {
|
|
38784
38827
|
required: true,
|
|
38785
38828
|
type: String
|
|
38829
|
+
},
|
|
38830
|
+
mittId: {
|
|
38831
|
+
type: null,
|
|
38832
|
+
required: false,
|
|
38833
|
+
default: () => null
|
|
38786
38834
|
}
|
|
38787
38835
|
}, {
|
|
38788
38836
|
"value": {
|
|
@@ -38800,6 +38848,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
38800
38848
|
const props = __props;
|
|
38801
38849
|
const emits = __emit;
|
|
38802
38850
|
const checkData = useModel(__props, "value");
|
|
38851
|
+
const { registerMitt, offMitt } = useMittHook(props.detail.field, props.mittId);
|
|
38803
38852
|
const options = reactive({
|
|
38804
38853
|
loading: false,
|
|
38805
38854
|
load: false,
|
|
@@ -38853,9 +38902,21 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
38853
38902
|
});
|
|
38854
38903
|
}
|
|
38855
38904
|
};
|
|
38905
|
+
const setValue = (value) => {
|
|
38906
|
+
checkData.value = value;
|
|
38907
|
+
};
|
|
38908
|
+
const receiveBroadcasts = (eventData) => {
|
|
38909
|
+
if (props.detail.noticeReceive) {
|
|
38910
|
+
props.detail.noticeReceive(eventData, setValue);
|
|
38911
|
+
}
|
|
38912
|
+
};
|
|
38856
38913
|
onMounted(() => {
|
|
38914
|
+
registerMitt(receiveBroadcasts);
|
|
38857
38915
|
getOptions();
|
|
38858
38916
|
});
|
|
38917
|
+
onUnmounted(() => {
|
|
38918
|
+
offMitt();
|
|
38919
|
+
});
|
|
38859
38920
|
return (_ctx, _cache) => {
|
|
38860
38921
|
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
38861
38922
|
const _component_el_checkbox_group = resolveComponent("el-checkbox-group");
|
|
@@ -38896,6 +38957,11 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
38896
38957
|
detail: {
|
|
38897
38958
|
required: true,
|
|
38898
38959
|
type: Object
|
|
38960
|
+
},
|
|
38961
|
+
mittId: {
|
|
38962
|
+
type: null,
|
|
38963
|
+
required: false,
|
|
38964
|
+
default: () => null
|
|
38899
38965
|
}
|
|
38900
38966
|
}, {
|
|
38901
38967
|
"value": {},
|
|
@@ -38904,25 +38970,28 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
38904
38970
|
emits: /* @__PURE__ */ mergeModels(["update:value", "valueChange"], ["update:value"]),
|
|
38905
38971
|
setup(__props, { emit: __emit }) {
|
|
38906
38972
|
const props = __props;
|
|
38907
|
-
const emits = __emit;
|
|
38908
38973
|
const valueRef = useModel(__props, "value");
|
|
38909
|
-
const
|
|
38910
|
-
var _a, _b, _c, _d;
|
|
38911
|
-
if (((_a = props.detail) == null ? void 0 : _a.noticeField) && ((_b = props.detail) == null ? void 0 : _b.noticeField.length) > 0) {
|
|
38912
|
-
emits(
|
|
38913
|
-
"valueChange",
|
|
38914
|
-
(_c = props.detail) == null ? void 0 : _c.noticeField,
|
|
38915
|
-
(_d = props.detail) == null ? void 0 : _d.field,
|
|
38916
|
-
valueRef
|
|
38917
|
-
);
|
|
38918
|
-
}
|
|
38919
|
-
};
|
|
38974
|
+
const { registerMitt, offMitt } = useMittHook(props.detail.field, props.mittId);
|
|
38920
38975
|
const getShowText = (cell) => {
|
|
38921
38976
|
if (cell.renderText) {
|
|
38922
38977
|
return cell.renderText;
|
|
38923
38978
|
}
|
|
38924
38979
|
return cell.text;
|
|
38925
38980
|
};
|
|
38981
|
+
const setValue = (value) => {
|
|
38982
|
+
valueRef.value = value;
|
|
38983
|
+
};
|
|
38984
|
+
const receiveBroadcasts = (eventData) => {
|
|
38985
|
+
if (props.detail.noticeReceive) {
|
|
38986
|
+
props.detail.noticeReceive(eventData, setValue);
|
|
38987
|
+
}
|
|
38988
|
+
};
|
|
38989
|
+
onMounted(() => {
|
|
38990
|
+
registerMitt(receiveBroadcasts);
|
|
38991
|
+
});
|
|
38992
|
+
onUnmounted(() => {
|
|
38993
|
+
offMitt();
|
|
38994
|
+
});
|
|
38926
38995
|
return (_ctx, _cache) => {
|
|
38927
38996
|
var _a;
|
|
38928
38997
|
const _component_el_date_picker = resolveComponent("el-date-picker");
|
|
@@ -38932,8 +39001,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
38932
39001
|
}, ((_a = props.detail) == null ? void 0 : _a.componentParams) ? props.detail.componentParams : {}, {
|
|
38933
39002
|
format: "YYYY-MM-DD",
|
|
38934
39003
|
style: { "width": "100%" },
|
|
38935
|
-
"value-format": "YYYY-MM-DD"
|
|
38936
|
-
onChange: handleChange
|
|
39004
|
+
"value-format": "YYYY-MM-DD"
|
|
38937
39005
|
}), {
|
|
38938
39006
|
default: withCtx((cell) => [
|
|
38939
39007
|
createElementVNode("div", _hoisted_1$3, [
|
|
@@ -38946,7 +39014,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
38946
39014
|
};
|
|
38947
39015
|
}
|
|
38948
39016
|
});
|
|
38949
|
-
const FormDatePickerClient = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-
|
|
39017
|
+
const FormDatePickerClient = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-dd842b4b"]]);
|
|
38950
39018
|
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
38951
39019
|
__name: "FormDatePickerMobile",
|
|
38952
39020
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -38964,6 +39032,11 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
38964
39032
|
fieldTitle: {
|
|
38965
39033
|
required: true,
|
|
38966
39034
|
type: String
|
|
39035
|
+
},
|
|
39036
|
+
mittId: {
|
|
39037
|
+
type: null,
|
|
39038
|
+
required: false,
|
|
39039
|
+
default: () => null
|
|
38967
39040
|
}
|
|
38968
39041
|
}, {
|
|
38969
39042
|
"value": {
|
|
@@ -38977,6 +39050,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
38977
39050
|
setup(__props) {
|
|
38978
39051
|
const props = __props;
|
|
38979
39052
|
const valueRef = useModel(__props, "value");
|
|
39053
|
+
const { registerMitt, offMitt } = useMittHook(props.detail.field, props.mittId);
|
|
38980
39054
|
const pickerText = computed(() => {
|
|
38981
39055
|
if (isEmpty(props.value)) {
|
|
38982
39056
|
return "";
|
|
@@ -38997,6 +39071,20 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
38997
39071
|
valueRef.value = `${currentDate.value[0]}-${currentDate.value[1]}-${currentDate.value[2]}`;
|
|
38998
39072
|
showPicker.value = false;
|
|
38999
39073
|
};
|
|
39074
|
+
const setValue = (value) => {
|
|
39075
|
+
valueRef.value = value;
|
|
39076
|
+
};
|
|
39077
|
+
const receiveBroadcasts = (eventData) => {
|
|
39078
|
+
if (props.detail.noticeReceive) {
|
|
39079
|
+
props.detail.noticeReceive(eventData, setValue);
|
|
39080
|
+
}
|
|
39081
|
+
};
|
|
39082
|
+
onMounted(() => {
|
|
39083
|
+
registerMitt(receiveBroadcasts);
|
|
39084
|
+
});
|
|
39085
|
+
onUnmounted(() => {
|
|
39086
|
+
offMitt();
|
|
39087
|
+
});
|
|
39000
39088
|
return (_ctx, _cache) => {
|
|
39001
39089
|
const _component_van_cell = resolveComponent("van-cell");
|
|
39002
39090
|
const _component_van_date_picker = resolveComponent("van-date-picker");
|
|
@@ -39048,6 +39136,11 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
39048
39136
|
detail: {
|
|
39049
39137
|
required: true,
|
|
39050
39138
|
type: Object
|
|
39139
|
+
},
|
|
39140
|
+
mittId: {
|
|
39141
|
+
type: null,
|
|
39142
|
+
required: false,
|
|
39143
|
+
default: () => null
|
|
39051
39144
|
}
|
|
39052
39145
|
},
|
|
39053
39146
|
setup(__props) {
|
|
@@ -39084,6 +39177,11 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
39084
39177
|
detail: {
|
|
39085
39178
|
required: true,
|
|
39086
39179
|
type: Object
|
|
39180
|
+
},
|
|
39181
|
+
mittId: {
|
|
39182
|
+
type: null,
|
|
39183
|
+
required: false,
|
|
39184
|
+
default: () => null
|
|
39087
39185
|
}
|
|
39088
39186
|
}, {
|
|
39089
39187
|
"value": {},
|
|
@@ -39097,19 +39195,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
39097
39195
|
], ["update:value"]),
|
|
39098
39196
|
setup(__props, { emit: __emit }) {
|
|
39099
39197
|
const props = __props;
|
|
39100
|
-
const emits = __emit;
|
|
39101
39198
|
const valueRef = useModel(__props, "value");
|
|
39102
|
-
const
|
|
39103
|
-
var _a, _b, _c, _d;
|
|
39104
|
-
if (((_a = props.detail) == null ? void 0 : _a.noticeField) && ((_b = props.detail) == null ? void 0 : _b.noticeField.length) > 0) {
|
|
39105
|
-
emits(
|
|
39106
|
-
"valueChange",
|
|
39107
|
-
(_c = props.detail) == null ? void 0 : _c.noticeField,
|
|
39108
|
-
(_d = props.detail) == null ? void 0 : _d.field,
|
|
39109
|
-
valueRef
|
|
39110
|
-
);
|
|
39111
|
-
}
|
|
39112
|
-
};
|
|
39199
|
+
const { registerMitt, offMitt } = useMittHook(props.detail.field, props.mittId);
|
|
39113
39200
|
const getShowText = (cell) => {
|
|
39114
39201
|
if (cell.renderText) {
|
|
39115
39202
|
return cell.renderText;
|
|
@@ -39150,6 +39237,20 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
39150
39237
|
}
|
|
39151
39238
|
}
|
|
39152
39239
|
];
|
|
39240
|
+
const setValue = (value) => {
|
|
39241
|
+
valueRef.value = value;
|
|
39242
|
+
};
|
|
39243
|
+
const receiveBroadcasts = (eventData) => {
|
|
39244
|
+
if (props.detail.noticeReceive) {
|
|
39245
|
+
props.detail.noticeReceive(eventData, setValue);
|
|
39246
|
+
}
|
|
39247
|
+
};
|
|
39248
|
+
onMounted(() => {
|
|
39249
|
+
registerMitt(receiveBroadcasts);
|
|
39250
|
+
});
|
|
39251
|
+
onUnmounted(() => {
|
|
39252
|
+
offMitt();
|
|
39253
|
+
});
|
|
39153
39254
|
return (_ctx, _cache) => {
|
|
39154
39255
|
var _a;
|
|
39155
39256
|
const _component_el_date_picker = resolveComponent("el-date-picker");
|
|
@@ -39161,8 +39262,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
39161
39262
|
format: "YYYY-MM-DD HH:mm:ss",
|
|
39162
39263
|
style: { "width": "100%" },
|
|
39163
39264
|
type: "datetime",
|
|
39164
|
-
"value-format": "YYYY-MM-DD HH:mm:ss"
|
|
39165
|
-
onChange: handleChange
|
|
39265
|
+
"value-format": "YYYY-MM-DD HH:mm:ss"
|
|
39166
39266
|
}), {
|
|
39167
39267
|
default: withCtx((cell) => [
|
|
39168
39268
|
createElementVNode("div", _hoisted_1$2, [
|
|
@@ -39175,7 +39275,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
39175
39275
|
};
|
|
39176
39276
|
}
|
|
39177
39277
|
});
|
|
39178
|
-
const FormDateTimePickerClient = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-
|
|
39278
|
+
const FormDateTimePickerClient = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-f3731a0d"]]);
|
|
39179
39279
|
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
39180
39280
|
__name: "FormDateTimePickerMobile",
|
|
39181
39281
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -39193,6 +39293,11 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
39193
39293
|
fieldTitle: {
|
|
39194
39294
|
required: true,
|
|
39195
39295
|
type: String
|
|
39296
|
+
},
|
|
39297
|
+
mittId: {
|
|
39298
|
+
type: null,
|
|
39299
|
+
required: false,
|
|
39300
|
+
default: () => null
|
|
39196
39301
|
}
|
|
39197
39302
|
}, {
|
|
39198
39303
|
"value": {
|
|
@@ -39206,6 +39311,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
39206
39311
|
setup(__props) {
|
|
39207
39312
|
const props = __props;
|
|
39208
39313
|
const valueRef = useModel(__props, "value");
|
|
39314
|
+
const { registerMitt, offMitt } = useMittHook(props.detail.field, props.mittId);
|
|
39209
39315
|
const pickerText = computed(() => {
|
|
39210
39316
|
if (props.value) {
|
|
39211
39317
|
return dayjs(props.value).format("YYYY-MM-DD HH:mm:ss");
|
|
@@ -39228,6 +39334,20 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
39228
39334
|
valueRef.value = `${currentDate.value[0]}-${currentDate.value[1]}-${currentDate.value[2]} ${currentTime.value[0]}:${currentTime.value[1]}:${currentTime.value[2]}`;
|
|
39229
39335
|
showPicker.value = false;
|
|
39230
39336
|
};
|
|
39337
|
+
const setValue = (value) => {
|
|
39338
|
+
valueRef.value = value;
|
|
39339
|
+
};
|
|
39340
|
+
const receiveBroadcasts = (eventData) => {
|
|
39341
|
+
if (props.detail.noticeReceive) {
|
|
39342
|
+
props.detail.noticeReceive(eventData, setValue);
|
|
39343
|
+
}
|
|
39344
|
+
};
|
|
39345
|
+
onMounted(() => {
|
|
39346
|
+
registerMitt(receiveBroadcasts);
|
|
39347
|
+
});
|
|
39348
|
+
onUnmounted(() => {
|
|
39349
|
+
offMitt();
|
|
39350
|
+
});
|
|
39231
39351
|
return (_ctx, _cache) => {
|
|
39232
39352
|
const _component_van_cell = resolveComponent("van-cell");
|
|
39233
39353
|
const _component_van_date_picker = resolveComponent("van-date-picker");
|
|
@@ -40888,6 +41008,11 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
40888
41008
|
detail: {
|
|
40889
41009
|
required: true,
|
|
40890
41010
|
type: Object
|
|
41011
|
+
},
|
|
41012
|
+
mittId: {
|
|
41013
|
+
type: null,
|
|
41014
|
+
required: false,
|
|
41015
|
+
default: () => null
|
|
40891
41016
|
}
|
|
40892
41017
|
},
|
|
40893
41018
|
emits: [
|
|
@@ -40919,28 +41044,34 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
40919
41044
|
state.value.splice(index2, 1);
|
|
40920
41045
|
};
|
|
40921
41046
|
const handleChange = () => {
|
|
40922
|
-
var _a, _b, _c, _d;
|
|
40923
41047
|
emits("update:value", state.value);
|
|
40924
|
-
if (((_a = props.detail) == null ? void 0 : _a.noticeField) && ((_b = props.detail) == null ? void 0 : _b.noticeField.length) > 0) {
|
|
40925
|
-
emits(
|
|
40926
|
-
"valueChange",
|
|
40927
|
-
(_c = props.detail) == null ? void 0 : _c.noticeField,
|
|
40928
|
-
(_d = props.detail) == null ? void 0 : _d.field,
|
|
40929
|
-
state.value
|
|
40930
|
-
);
|
|
40931
|
-
}
|
|
40932
41048
|
modalOpen.value = false;
|
|
40933
41049
|
};
|
|
40934
41050
|
const handleCancel = () => {
|
|
40935
41051
|
state.value = JSON.parse(oldValue);
|
|
40936
41052
|
modalOpen.value = false;
|
|
40937
41053
|
};
|
|
41054
|
+
const { registerMitt, offMitt } = useMittHook(props.detail.field, props.mittId);
|
|
40938
41055
|
watch(
|
|
40939
41056
|
() => props.value,
|
|
40940
41057
|
(newValue) => {
|
|
40941
41058
|
state.value = Array.isArray(newValue) ? newValue : [];
|
|
40942
41059
|
}
|
|
40943
41060
|
);
|
|
41061
|
+
const setValue = (value) => {
|
|
41062
|
+
emits("update:value", value);
|
|
41063
|
+
};
|
|
41064
|
+
const receiveBroadcasts = (eventData) => {
|
|
41065
|
+
if (props.detail.noticeReceive) {
|
|
41066
|
+
props.detail.noticeReceive(eventData, setValue);
|
|
41067
|
+
}
|
|
41068
|
+
};
|
|
41069
|
+
onMounted(() => {
|
|
41070
|
+
registerMitt(receiveBroadcasts);
|
|
41071
|
+
});
|
|
41072
|
+
onUnmounted(() => {
|
|
41073
|
+
offMitt();
|
|
41074
|
+
});
|
|
40944
41075
|
return (_ctx, _cache) => {
|
|
40945
41076
|
var _a;
|
|
40946
41077
|
const _component_el_button = resolveComponent("el-button");
|
|
@@ -41132,6 +41263,11 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
41132
41263
|
detail: {
|
|
41133
41264
|
required: true,
|
|
41134
41265
|
type: Object
|
|
41266
|
+
},
|
|
41267
|
+
mittId: {
|
|
41268
|
+
type: null,
|
|
41269
|
+
required: false,
|
|
41270
|
+
default: () => null
|
|
41135
41271
|
}
|
|
41136
41272
|
}, {
|
|
41137
41273
|
"value": {},
|
|
@@ -41145,19 +41281,22 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
41145
41281
|
], ["update:value"]),
|
|
41146
41282
|
setup(__props, { emit: __emit }) {
|
|
41147
41283
|
const props = __props;
|
|
41148
|
-
const
|
|
41284
|
+
const { registerMitt, offMitt } = useMittHook(props.detail.field, props.mittId);
|
|
41149
41285
|
const inputValue = useModel(__props, "value");
|
|
41150
|
-
const
|
|
41151
|
-
|
|
41152
|
-
|
|
41153
|
-
|
|
41154
|
-
|
|
41155
|
-
|
|
41156
|
-
(_d = props.detail) == null ? void 0 : _d.field,
|
|
41157
|
-
inputValue
|
|
41158
|
-
);
|
|
41286
|
+
const setValue = (value) => {
|
|
41287
|
+
inputValue.value = value;
|
|
41288
|
+
};
|
|
41289
|
+
const receiveBroadcasts = (eventData) => {
|
|
41290
|
+
if (props.detail.noticeReceive) {
|
|
41291
|
+
props.detail.noticeReceive(eventData, setValue);
|
|
41159
41292
|
}
|
|
41160
41293
|
};
|
|
41294
|
+
onMounted(() => {
|
|
41295
|
+
registerMitt(receiveBroadcasts);
|
|
41296
|
+
});
|
|
41297
|
+
onUnmounted(() => {
|
|
41298
|
+
offMitt();
|
|
41299
|
+
});
|
|
41161
41300
|
return (_ctx, _cache) => {
|
|
41162
41301
|
var _a, _b;
|
|
41163
41302
|
const _component_el_input = resolveComponent("el-input");
|
|
@@ -41165,7 +41304,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
41165
41304
|
modelValue: inputValue.value,
|
|
41166
41305
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
|
|
41167
41306
|
placeholder: (_a = props.detail) == null ? void 0 : _a.placeholder
|
|
41168
|
-
}, ((_b = props.detail) == null ? void 0 : _b.componentParams) ? props.detail.componentParams : {}
|
|
41307
|
+
}, ((_b = props.detail) == null ? void 0 : _b.componentParams) ? props.detail.componentParams : {}), createSlots({ _: 2 }, [
|
|
41169
41308
|
__props.detail.componentParams && __props.detail.componentParams.prepend ? {
|
|
41170
41309
|
name: "prepend",
|
|
41171
41310
|
fn: withCtx(() => [
|
|
@@ -41187,31 +41326,6 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
41187
41326
|
_sfc_main$e.install = (app) => {
|
|
41188
41327
|
app.component(_sfc_main$e.__name, _sfc_main$e);
|
|
41189
41328
|
};
|
|
41190
|
-
const useMittHook = (fieldName, mittId) => {
|
|
41191
|
-
if (!mittId) {
|
|
41192
|
-
return {
|
|
41193
|
-
registerMitt: () => {
|
|
41194
|
-
},
|
|
41195
|
-
offMitt: () => {
|
|
41196
|
-
}
|
|
41197
|
-
};
|
|
41198
|
-
}
|
|
41199
|
-
const registerMitt = (func) => {
|
|
41200
|
-
if (mittId && emitter) {
|
|
41201
|
-
emitter.on(fieldName + mittId, (_eventData) => {
|
|
41202
|
-
if (func) {
|
|
41203
|
-
func(_eventData);
|
|
41204
|
-
}
|
|
41205
|
-
});
|
|
41206
|
-
}
|
|
41207
|
-
};
|
|
41208
|
-
const offMitt = () => {
|
|
41209
|
-
if (mittId && emitter) {
|
|
41210
|
-
emitter.off(fieldName + mittId);
|
|
41211
|
-
}
|
|
41212
|
-
};
|
|
41213
|
-
return { registerMitt, offMitt };
|
|
41214
|
-
};
|
|
41215
41329
|
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
41216
41330
|
__name: "FormInputNumber",
|
|
41217
41331
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -41243,22 +41357,15 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
41243
41357
|
], ["update:value"]),
|
|
41244
41358
|
setup(__props, { emit: __emit }) {
|
|
41245
41359
|
const props = __props;
|
|
41246
|
-
const
|
|
41247
|
-
const valueState = useModel(__props, "value");
|
|
41360
|
+
const valueRef = useModel(__props, "value");
|
|
41248
41361
|
const { registerMitt, offMitt } = useMittHook(props.detail.field, props.mittId);
|
|
41249
|
-
const
|
|
41250
|
-
|
|
41251
|
-
if (((_a = props.detail) == null ? void 0 : _a.noticeField) && ((_b = props.detail) == null ? void 0 : _b.noticeField.length) > 0) {
|
|
41252
|
-
emits(
|
|
41253
|
-
"valueChange",
|
|
41254
|
-
(_c = props.detail) == null ? void 0 : _c.noticeField,
|
|
41255
|
-
(_d = props.detail) == null ? void 0 : _d.field,
|
|
41256
|
-
valueState
|
|
41257
|
-
);
|
|
41258
|
-
}
|
|
41362
|
+
const setValue = (value) => {
|
|
41363
|
+
valueRef.value = value;
|
|
41259
41364
|
};
|
|
41260
41365
|
const receiveBroadcasts = (eventData) => {
|
|
41261
|
-
|
|
41366
|
+
if (props.detail.noticeReceive) {
|
|
41367
|
+
props.detail.noticeReceive(eventData, setValue);
|
|
41368
|
+
}
|
|
41262
41369
|
};
|
|
41263
41370
|
onMounted(() => {
|
|
41264
41371
|
registerMitt(receiveBroadcasts);
|
|
@@ -41269,11 +41376,11 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
41269
41376
|
return (_ctx, _cache) => {
|
|
41270
41377
|
const _component_el_input_number = resolveComponent("el-input-number");
|
|
41271
41378
|
return openBlock(), createBlock(_component_el_input_number, mergeProps({
|
|
41272
|
-
modelValue:
|
|
41273
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
41379
|
+
modelValue: valueRef.value,
|
|
41380
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => valueRef.value = $event),
|
|
41274
41381
|
placeholder: __props.detail.placeholder,
|
|
41275
41382
|
class: "full"
|
|
41276
|
-
}, props.detail.componentParams ? props.detail.componentParams : {}
|
|
41383
|
+
}, props.detail.componentParams ? props.detail.componentParams : {}), createSlots({ _: 2 }, [
|
|
41277
41384
|
__props.detail.componentParams && __props.detail.componentParams.prefix ? {
|
|
41278
41385
|
name: "prefix",
|
|
41279
41386
|
fn: withCtx(() => [
|
|
@@ -41292,7 +41399,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
41292
41399
|
};
|
|
41293
41400
|
}
|
|
41294
41401
|
});
|
|
41295
|
-
const KeFormInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
41402
|
+
const KeFormInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-86ef0363"]]);
|
|
41296
41403
|
KeFormInputNumber.install = (app) => {
|
|
41297
41404
|
app.component(KeFormInputNumber.__name, KeFormInputNumber);
|
|
41298
41405
|
};
|
|
@@ -41308,6 +41415,11 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
41308
41415
|
detail: {
|
|
41309
41416
|
required: true,
|
|
41310
41417
|
type: Object
|
|
41418
|
+
},
|
|
41419
|
+
mittId: {
|
|
41420
|
+
type: null,
|
|
41421
|
+
required: false,
|
|
41422
|
+
default: () => null
|
|
41311
41423
|
}
|
|
41312
41424
|
}, {
|
|
41313
41425
|
"value": {
|
|
@@ -41317,7 +41429,23 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
41317
41429
|
}),
|
|
41318
41430
|
emits: ["update:value"],
|
|
41319
41431
|
setup(__props) {
|
|
41432
|
+
const props = __props;
|
|
41320
41433
|
const valueRef = useModel(__props, "value");
|
|
41434
|
+
const { registerMitt, offMitt } = useMittHook(props.detail.field, props.mittId);
|
|
41435
|
+
const setValue = (value) => {
|
|
41436
|
+
valueRef.value = value;
|
|
41437
|
+
};
|
|
41438
|
+
const receiveBroadcasts = (eventData) => {
|
|
41439
|
+
if (props.detail.noticeReceive) {
|
|
41440
|
+
props.detail.noticeReceive(eventData, setValue);
|
|
41441
|
+
}
|
|
41442
|
+
};
|
|
41443
|
+
onMounted(() => {
|
|
41444
|
+
registerMitt(receiveBroadcasts);
|
|
41445
|
+
});
|
|
41446
|
+
onUnmounted(() => {
|
|
41447
|
+
offMitt();
|
|
41448
|
+
});
|
|
41321
41449
|
return (_ctx, _cache) => {
|
|
41322
41450
|
const _component_el_radio = resolveComponent("el-radio");
|
|
41323
41451
|
const _component_el_radio_group = resolveComponent("el-radio-group");
|
|
@@ -42095,7 +42223,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
42095
42223
|
};
|
|
42096
42224
|
}
|
|
42097
42225
|
});
|
|
42098
|
-
const FormRenderMobile = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-
|
|
42226
|
+
const FormRenderMobile = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-121f69cc"]]);
|
|
42099
42227
|
const KeFormRender = isMobileDevice.value ? FormRenderMobile : FormRenderClient;
|
|
42100
42228
|
KeFormRender.install = (app) => {
|
|
42101
42229
|
app.component(KeFormRender.__name, KeFormRender);
|
|
@@ -42112,6 +42240,11 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
42112
42240
|
detail: {
|
|
42113
42241
|
required: true,
|
|
42114
42242
|
type: Object
|
|
42243
|
+
},
|
|
42244
|
+
mittId: {
|
|
42245
|
+
type: null,
|
|
42246
|
+
required: false,
|
|
42247
|
+
default: () => null
|
|
42115
42248
|
}
|
|
42116
42249
|
}, {
|
|
42117
42250
|
"value": {},
|
|
@@ -42124,19 +42257,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
42124
42257
|
], ["update:value"]),
|
|
42125
42258
|
setup(__props, { emit: __emit }) {
|
|
42126
42259
|
const props = __props;
|
|
42127
|
-
const emits = __emit;
|
|
42128
42260
|
const valueRef = useModel(__props, "value");
|
|
42129
|
-
const
|
|
42130
|
-
var _a, _b, _c, _d;
|
|
42131
|
-
if (((_a = props.detail) == null ? void 0 : _a.noticeField) && ((_b = props.detail) == null ? void 0 : _b.noticeField.length) > 0) {
|
|
42132
|
-
emits(
|
|
42133
|
-
"valueChange",
|
|
42134
|
-
(_c = props.detail) == null ? void 0 : _c.noticeField,
|
|
42135
|
-
(_d = props.detail) == null ? void 0 : _d.field,
|
|
42136
|
-
valueRef
|
|
42137
|
-
);
|
|
42138
|
-
}
|
|
42139
|
-
};
|
|
42261
|
+
const { registerMitt, offMitt } = useMittHook(props.detail.field, props.mittId);
|
|
42140
42262
|
const multipleClear = async () => {
|
|
42141
42263
|
var _a;
|
|
42142
42264
|
await sleep(0.1);
|
|
@@ -42144,9 +42266,21 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
42144
42266
|
valueRef.value = [];
|
|
42145
42267
|
}
|
|
42146
42268
|
};
|
|
42269
|
+
const setValue = (value) => {
|
|
42270
|
+
valueRef.value = value;
|
|
42271
|
+
};
|
|
42272
|
+
const receiveBroadcasts = (eventData) => {
|
|
42273
|
+
if (props.detail.noticeReceive) {
|
|
42274
|
+
props.detail.noticeReceive(eventData, setValue);
|
|
42275
|
+
}
|
|
42276
|
+
};
|
|
42147
42277
|
onMounted(() => {
|
|
42278
|
+
registerMitt(receiveBroadcasts);
|
|
42148
42279
|
multipleClear();
|
|
42149
42280
|
});
|
|
42281
|
+
onUnmounted(() => {
|
|
42282
|
+
offMitt();
|
|
42283
|
+
});
|
|
42150
42284
|
return (_ctx, _cache) => {
|
|
42151
42285
|
var _a;
|
|
42152
42286
|
const _component_el_option = resolveComponent("el-option");
|
|
@@ -42156,10 +42290,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
42156
42290
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => valueRef.value = $event),
|
|
42157
42291
|
multiple: (_a = __props.detail) == null ? void 0 : _a.multiple,
|
|
42158
42292
|
placeholder: __props.detail.placeholder
|
|
42159
|
-
}, __props.detail.componentParams ? __props.detail.componentParams : {}, {
|
|
42160
|
-
clearable: "",
|
|
42161
|
-
onChange: handleChange
|
|
42162
|
-
}), {
|
|
42293
|
+
}, __props.detail.componentParams ? __props.detail.componentParams : {}, { clearable: "" }), {
|
|
42163
42294
|
default: withCtx(() => {
|
|
42164
42295
|
var _a2;
|
|
42165
42296
|
return [
|
|
@@ -42194,6 +42325,11 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
42194
42325
|
fieldTitle: {
|
|
42195
42326
|
required: true,
|
|
42196
42327
|
type: String
|
|
42328
|
+
},
|
|
42329
|
+
mittId: {
|
|
42330
|
+
type: null,
|
|
42331
|
+
required: false,
|
|
42332
|
+
default: () => null
|
|
42197
42333
|
}
|
|
42198
42334
|
}, {
|
|
42199
42335
|
"value": {
|
|
@@ -42209,6 +42345,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
42209
42345
|
__props,
|
|
42210
42346
|
"value"
|
|
42211
42347
|
);
|
|
42348
|
+
const { registerMitt, offMitt } = useMittHook(props.detail.field, props.mittId);
|
|
42212
42349
|
const pickerText = ref();
|
|
42213
42350
|
const showPicker = ref(false);
|
|
42214
42351
|
const checkboxRefs = ref([]);
|
|
@@ -42260,9 +42397,21 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
42260
42397
|
immediate: true
|
|
42261
42398
|
}
|
|
42262
42399
|
);
|
|
42400
|
+
const setValue = (value) => {
|
|
42401
|
+
valueRef.value = value;
|
|
42402
|
+
};
|
|
42403
|
+
const receiveBroadcasts = (eventData) => {
|
|
42404
|
+
if (props.detail.noticeReceive) {
|
|
42405
|
+
props.detail.noticeReceive(eventData, setValue);
|
|
42406
|
+
}
|
|
42407
|
+
};
|
|
42263
42408
|
onMounted(() => {
|
|
42409
|
+
registerMitt(receiveBroadcasts);
|
|
42264
42410
|
multipleClear();
|
|
42265
42411
|
});
|
|
42412
|
+
onUnmounted(() => {
|
|
42413
|
+
offMitt();
|
|
42414
|
+
});
|
|
42266
42415
|
return (_ctx, _cache) => {
|
|
42267
42416
|
var _a;
|
|
42268
42417
|
const _component_van_field = resolveComponent("van-field");
|
|
@@ -42375,7 +42524,7 @@ KeFormSelect.install = (app) => {
|
|
|
42375
42524
|
app.component(KeFormSelect.__name, KeFormSelect);
|
|
42376
42525
|
};
|
|
42377
42526
|
const useSelectAsync = (params) => {
|
|
42378
|
-
const { emits, props
|
|
42527
|
+
const { emits, props } = params;
|
|
42379
42528
|
const loading = ref(false);
|
|
42380
42529
|
let load = false;
|
|
42381
42530
|
let isLoadFail2 = false;
|
|
@@ -42451,38 +42600,12 @@ const useSelectAsync = (params) => {
|
|
|
42451
42600
|
}
|
|
42452
42601
|
loading.value = false;
|
|
42453
42602
|
};
|
|
42454
|
-
const handleChange = async () => {
|
|
42455
|
-
var _a, _b, _c, _d;
|
|
42456
|
-
if (((_a = props.detail) == null ? void 0 : _a.noticeField) && ((_b = props.detail) == null ? void 0 : _b.noticeField.length) > 0) {
|
|
42457
|
-
await nextTick();
|
|
42458
|
-
emits(
|
|
42459
|
-
"valueChange",
|
|
42460
|
-
(_c = props.detail) == null ? void 0 : _c.noticeField,
|
|
42461
|
-
(_d = props.detail) == null ? void 0 : _d.field,
|
|
42462
|
-
valueRef.value
|
|
42463
|
-
);
|
|
42464
|
-
}
|
|
42465
|
-
};
|
|
42466
|
-
const registerMitt = () => {
|
|
42467
|
-
if (props.mittId) {
|
|
42468
|
-
emitter.on(props.detail.field + props.mittId, (_eventData) => {
|
|
42469
|
-
getOptions();
|
|
42470
|
-
});
|
|
42471
|
-
}
|
|
42472
|
-
};
|
|
42473
|
-
const offMitt = () => {
|
|
42474
|
-
if (props.mittId) {
|
|
42475
|
-
emitter.off(props.detail.field + props.mittId);
|
|
42476
|
-
}
|
|
42477
|
-
};
|
|
42478
42603
|
return {
|
|
42479
42604
|
getOptions,
|
|
42480
42605
|
optionsData,
|
|
42481
42606
|
loading,
|
|
42482
|
-
handleChange,
|
|
42483
|
-
init
|
|
42484
|
-
registerMitt,
|
|
42485
|
-
offMitt
|
|
42607
|
+
// handleChange,
|
|
42608
|
+
init
|
|
42486
42609
|
};
|
|
42487
42610
|
};
|
|
42488
42611
|
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
@@ -42516,22 +42639,30 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
42516
42639
|
const props = __props;
|
|
42517
42640
|
const emits = __emit;
|
|
42518
42641
|
const valueRef = useModel(__props, "value");
|
|
42642
|
+
const { registerMitt, offMitt } = useMittHook(props.detail.field, props.mittId);
|
|
42519
42643
|
const {
|
|
42520
42644
|
loading,
|
|
42521
42645
|
getOptions,
|
|
42522
42646
|
optionsData,
|
|
42523
|
-
|
|
42524
|
-
init,
|
|
42525
|
-
registerMitt,
|
|
42526
|
-
offMitt
|
|
42647
|
+
init
|
|
42527
42648
|
} = useSelectAsync({
|
|
42528
42649
|
emits,
|
|
42529
|
-
props
|
|
42530
|
-
valueRef
|
|
42650
|
+
props
|
|
42531
42651
|
});
|
|
42652
|
+
const setValue = (value) => {
|
|
42653
|
+
valueRef.value = value;
|
|
42654
|
+
};
|
|
42655
|
+
const receiveBroadcasts = (eventData) => {
|
|
42656
|
+
if (props.detail.noticeReceive) {
|
|
42657
|
+
props.detail.noticeReceive(eventData, setValue);
|
|
42658
|
+
}
|
|
42659
|
+
};
|
|
42532
42660
|
onMounted(() => {
|
|
42533
42661
|
init();
|
|
42534
|
-
registerMitt()
|
|
42662
|
+
registerMitt((_eventData) => {
|
|
42663
|
+
receiveBroadcasts(_eventData);
|
|
42664
|
+
getOptions();
|
|
42665
|
+
});
|
|
42535
42666
|
});
|
|
42536
42667
|
onUnmounted(() => {
|
|
42537
42668
|
offMitt();
|
|
@@ -42548,7 +42679,6 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
42548
42679
|
}, props.detail.componentParams ? props.detail.componentParams : {}, {
|
|
42549
42680
|
loading: unref(loading),
|
|
42550
42681
|
placeholder: (_a = props.detail) == null ? void 0 : _a.placeholder,
|
|
42551
|
-
onChange: unref(handleChange),
|
|
42552
42682
|
onFocus: unref(getOptions)
|
|
42553
42683
|
}), {
|
|
42554
42684
|
default: withCtx(() => [
|
|
@@ -42562,7 +42692,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
42562
42692
|
}), 128))
|
|
42563
42693
|
]),
|
|
42564
42694
|
_: 1
|
|
42565
|
-
}, 16, ["modelValue", "multiple", "loading", "placeholder", "
|
|
42695
|
+
}, 16, ["modelValue", "multiple", "loading", "placeholder", "onFocus"])), [
|
|
42566
42696
|
[_directive_loading, unref(loading)]
|
|
42567
42697
|
]);
|
|
42568
42698
|
};
|
|
@@ -42605,18 +42735,15 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
42605
42735
|
const props = __props;
|
|
42606
42736
|
const emits = __emit;
|
|
42607
42737
|
const valueRef = useModel(__props, "value");
|
|
42738
|
+
const { registerMitt, offMitt } = useMittHook(props.detail.field, props.mittId);
|
|
42608
42739
|
const {
|
|
42609
42740
|
loading,
|
|
42610
42741
|
getOptions,
|
|
42611
42742
|
optionsData,
|
|
42612
|
-
|
|
42613
|
-
init,
|
|
42614
|
-
registerMitt,
|
|
42615
|
-
offMitt
|
|
42743
|
+
init
|
|
42616
42744
|
} = useSelectAsync({
|
|
42617
42745
|
emits,
|
|
42618
|
-
props
|
|
42619
|
-
valueRef
|
|
42746
|
+
props
|
|
42620
42747
|
});
|
|
42621
42748
|
const pickerText = ref("");
|
|
42622
42749
|
const pickerValue = ref([]);
|
|
@@ -42637,7 +42764,6 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
42637
42764
|
showPicker.value = false;
|
|
42638
42765
|
pickerValue.value = selectedValues;
|
|
42639
42766
|
valueRef.value = selectedValues[0];
|
|
42640
|
-
handleChange();
|
|
42641
42767
|
};
|
|
42642
42768
|
const showPopup = () => {
|
|
42643
42769
|
showPicker.value = true;
|
|
@@ -42663,9 +42789,20 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
42663
42789
|
immediate: true
|
|
42664
42790
|
}
|
|
42665
42791
|
);
|
|
42792
|
+
const setValue = (value) => {
|
|
42793
|
+
valueRef.value = value;
|
|
42794
|
+
};
|
|
42795
|
+
const receiveBroadcasts = (eventData) => {
|
|
42796
|
+
if (props.detail.noticeReceive) {
|
|
42797
|
+
props.detail.noticeReceive(eventData, setValue);
|
|
42798
|
+
}
|
|
42799
|
+
};
|
|
42666
42800
|
onMounted(() => {
|
|
42667
42801
|
init();
|
|
42668
|
-
registerMitt()
|
|
42802
|
+
registerMitt((_eventData) => {
|
|
42803
|
+
receiveBroadcasts(_eventData);
|
|
42804
|
+
getOptions();
|
|
42805
|
+
});
|
|
42669
42806
|
});
|
|
42670
42807
|
onUnmounted(() => {
|
|
42671
42808
|
offMitt();
|
|
@@ -42739,6 +42876,11 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
42739
42876
|
fieldTitle: {
|
|
42740
42877
|
required: true,
|
|
42741
42878
|
type: String
|
|
42879
|
+
},
|
|
42880
|
+
mittId: {
|
|
42881
|
+
type: null,
|
|
42882
|
+
required: false,
|
|
42883
|
+
default: () => null
|
|
42742
42884
|
}
|
|
42743
42885
|
}, {
|
|
42744
42886
|
"value": {},
|
|
@@ -42754,6 +42896,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
42754
42896
|
const props = __props;
|
|
42755
42897
|
const emits = __emit;
|
|
42756
42898
|
const valueRef = useModel(__props, "value");
|
|
42899
|
+
const { registerMitt, offMitt } = useMittHook(props.detail.field, props.mittId);
|
|
42757
42900
|
const optionsData = ref([]);
|
|
42758
42901
|
const loading = ref(false);
|
|
42759
42902
|
const remoteMethod = async (queryStr) => {
|
|
@@ -42794,17 +42937,20 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
42794
42937
|
optionsData.value = result.code === 0 ? result.data : [];
|
|
42795
42938
|
loading.value = false;
|
|
42796
42939
|
};
|
|
42797
|
-
const
|
|
42798
|
-
|
|
42799
|
-
|
|
42800
|
-
|
|
42801
|
-
|
|
42802
|
-
|
|
42803
|
-
(_d = props.detail) == null ? void 0 : _d.field,
|
|
42804
|
-
valueRef.value
|
|
42805
|
-
);
|
|
42940
|
+
const setValue = (value) => {
|
|
42941
|
+
valueRef.value = value;
|
|
42942
|
+
};
|
|
42943
|
+
const receiveBroadcasts = (eventData) => {
|
|
42944
|
+
if (props.detail.noticeReceive) {
|
|
42945
|
+
props.detail.noticeReceive(eventData, setValue);
|
|
42806
42946
|
}
|
|
42807
42947
|
};
|
|
42948
|
+
onMounted(() => {
|
|
42949
|
+
registerMitt(receiveBroadcasts);
|
|
42950
|
+
});
|
|
42951
|
+
onUnmounted(() => {
|
|
42952
|
+
offMitt();
|
|
42953
|
+
});
|
|
42808
42954
|
return (_ctx, _cache) => {
|
|
42809
42955
|
var _a;
|
|
42810
42956
|
const _component_el_option = resolveComponent("el-option");
|
|
@@ -42819,8 +42965,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
42819
42965
|
}, props.detail.componentParams ? props.detail.componentParams : {}, {
|
|
42820
42966
|
loading: loading.value,
|
|
42821
42967
|
placeholder: (_a = props.detail) == null ? void 0 : _a.placeholder,
|
|
42822
|
-
"remote-method": remoteMethod
|
|
42823
|
-
onChange: handleChange
|
|
42968
|
+
"remote-method": remoteMethod
|
|
42824
42969
|
}), {
|
|
42825
42970
|
default: withCtx(() => [
|
|
42826
42971
|
(openBlock(true), createElementBlock(Fragment, null, renderList(optionsData.value, (item) => {
|
|
@@ -42850,6 +42995,11 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
42850
42995
|
detail: {
|
|
42851
42996
|
required: true,
|
|
42852
42997
|
type: Object
|
|
42998
|
+
},
|
|
42999
|
+
mittId: {
|
|
43000
|
+
type: null,
|
|
43001
|
+
required: false,
|
|
43002
|
+
default: () => null
|
|
42853
43003
|
}
|
|
42854
43004
|
}, {
|
|
42855
43005
|
"value": { type: Boolean },
|
|
@@ -42858,40 +43008,39 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
42858
43008
|
emits: /* @__PURE__ */ mergeModels([
|
|
42859
43009
|
"update:value",
|
|
42860
43010
|
"getComponentValue",
|
|
42861
|
-
"valueChange",
|
|
42862
43011
|
"setShow"
|
|
42863
43012
|
], ["update:value"]),
|
|
42864
43013
|
setup(__props, { emit: __emit }) {
|
|
42865
43014
|
const props = __props;
|
|
42866
|
-
const emits = __emit;
|
|
42867
43015
|
const valueRef = useModel(__props, "value");
|
|
42868
|
-
const
|
|
42869
|
-
var _a, _b, _c, _d;
|
|
42870
|
-
await nextTick();
|
|
42871
|
-
if (Array.isArray((_a = props.detail) == null ? void 0 : _a.noticeField) && ((_b = props.detail) == null ? void 0 : _b.noticeField.length) > 0) {
|
|
42872
|
-
emits(
|
|
42873
|
-
"valueChange",
|
|
42874
|
-
(_c = props.detail) == null ? void 0 : _c.noticeField,
|
|
42875
|
-
(_d = props.detail) == null ? void 0 : _d.field,
|
|
42876
|
-
valueRef.value
|
|
42877
|
-
);
|
|
42878
|
-
}
|
|
42879
|
-
};
|
|
43016
|
+
const { registerMitt, offMitt } = useMittHook(props.detail.field, props.mittId);
|
|
42880
43017
|
const setDefaultValue = async () => {
|
|
42881
43018
|
await sleep(0.1);
|
|
42882
43019
|
if (!valueRef.value) {
|
|
42883
43020
|
valueRef.value = false;
|
|
42884
43021
|
}
|
|
42885
43022
|
};
|
|
43023
|
+
const setValue = (value) => {
|
|
43024
|
+
valueRef.value = value;
|
|
43025
|
+
};
|
|
43026
|
+
const receiveBroadcasts = (eventData) => {
|
|
43027
|
+
if (props.detail.noticeReceive) {
|
|
43028
|
+
props.detail.noticeReceive(eventData, setValue);
|
|
43029
|
+
}
|
|
43030
|
+
};
|
|
42886
43031
|
onMounted(() => {
|
|
43032
|
+
registerMitt(receiveBroadcasts);
|
|
42887
43033
|
setDefaultValue();
|
|
42888
43034
|
});
|
|
43035
|
+
onUnmounted(() => {
|
|
43036
|
+
offMitt();
|
|
43037
|
+
});
|
|
42889
43038
|
return (_ctx, _cache) => {
|
|
42890
43039
|
const _component_el_switch = resolveComponent("el-switch");
|
|
42891
43040
|
return openBlock(), createBlock(_component_el_switch, mergeProps({
|
|
42892
43041
|
modelValue: valueRef.value,
|
|
42893
43042
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => valueRef.value = $event)
|
|
42894
|
-
}, __props.detail.componentParams
|
|
43043
|
+
}, __props.detail.componentParams), null, 16, ["modelValue"]);
|
|
42895
43044
|
};
|
|
42896
43045
|
}
|
|
42897
43046
|
});
|
|
@@ -42926,20 +43075,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
42926
43075
|
], ["update:value"]),
|
|
42927
43076
|
setup(__props, { emit: __emit }) {
|
|
42928
43077
|
const props = __props;
|
|
42929
|
-
const emits = __emit;
|
|
42930
43078
|
const { registerMitt, offMitt } = useMittHook(props.detail.field, props.mittId);
|
|
42931
43079
|
const valueRef = useModel(__props, "value");
|
|
42932
|
-
const handleChange = () => {
|
|
42933
|
-
var _a, _b, _c, _d;
|
|
42934
|
-
if (((_a = props.detail) == null ? void 0 : _a.noticeField) && ((_b = props.detail) == null ? void 0 : _b.noticeField.length) > 0) {
|
|
42935
|
-
emits(
|
|
42936
|
-
"valueChange",
|
|
42937
|
-
(_c = props.detail) == null ? void 0 : _c.noticeField,
|
|
42938
|
-
(_d = props.detail) == null ? void 0 : _d.field,
|
|
42939
|
-
valueRef
|
|
42940
|
-
);
|
|
42941
|
-
}
|
|
42942
|
-
};
|
|
42943
43080
|
const multipleClear = async () => {
|
|
42944
43081
|
var _a;
|
|
42945
43082
|
await sleep(0.1);
|
|
@@ -42959,6 +43096,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
42959
43096
|
});
|
|
42960
43097
|
return (_ctx, _cache) => {
|
|
42961
43098
|
var _a;
|
|
43099
|
+
const _component_el_text = resolveComponent("el-text");
|
|
42962
43100
|
const _component_el_col = resolveComponent("el-col");
|
|
42963
43101
|
const _component_el_row = resolveComponent("el-row");
|
|
42964
43102
|
const _component_el_option = resolveComponent("el-option");
|
|
@@ -42970,8 +43108,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
42970
43108
|
multiple: (_a = __props.detail) == null ? void 0 : _a.multiple,
|
|
42971
43109
|
placeholder: __props.detail.placeholder,
|
|
42972
43110
|
"value-key": __props.detail.componentParams.keyField,
|
|
42973
|
-
clearable: ""
|
|
42974
|
-
onChange: handleChange
|
|
43111
|
+
clearable: ""
|
|
42975
43112
|
}), {
|
|
42976
43113
|
header: withCtx(() => [
|
|
42977
43114
|
createVNode(_component_el_row, null, {
|
|
@@ -42984,7 +43121,12 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
42984
43121
|
span: item.span
|
|
42985
43122
|
}, {
|
|
42986
43123
|
default: withCtx(() => [
|
|
42987
|
-
|
|
43124
|
+
createVNode(_component_el_text, { truncated: "" }, {
|
|
43125
|
+
default: withCtx(() => [
|
|
43126
|
+
createTextVNode(toDisplayString(item.label), 1)
|
|
43127
|
+
]),
|
|
43128
|
+
_: 2
|
|
43129
|
+
}, 1024)
|
|
42988
43130
|
]),
|
|
42989
43131
|
_: 2
|
|
42990
43132
|
}, 1032, ["span"]);
|
|
@@ -43017,7 +43159,12 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
43017
43159
|
span: optionSlot.span
|
|
43018
43160
|
}, {
|
|
43019
43161
|
default: withCtx(() => [
|
|
43020
|
-
|
|
43162
|
+
createVNode(_component_el_text, { truncated: "" }, {
|
|
43163
|
+
default: withCtx(() => [
|
|
43164
|
+
createTextVNode(toDisplayString(item[optionSlot.field]), 1)
|
|
43165
|
+
]),
|
|
43166
|
+
_: 2
|
|
43167
|
+
}, 1024)
|
|
43021
43168
|
]),
|
|
43022
43169
|
_: 2
|
|
43023
43170
|
}, 1032, ["span"]);
|
|
@@ -43068,28 +43215,37 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
43068
43215
|
const props = __props;
|
|
43069
43216
|
const emits = __emit;
|
|
43070
43217
|
const valueRef = useModel(__props, "value");
|
|
43218
|
+
const { registerMitt, offMitt } = useMittHook(props.detail.field, props.mittId);
|
|
43071
43219
|
const {
|
|
43072
43220
|
loading,
|
|
43073
43221
|
getOptions,
|
|
43074
43222
|
optionsData,
|
|
43075
|
-
|
|
43076
|
-
init,
|
|
43077
|
-
registerMitt,
|
|
43078
|
-
offMitt
|
|
43223
|
+
init
|
|
43079
43224
|
} = useSelectAsync({
|
|
43080
43225
|
emits,
|
|
43081
|
-
props
|
|
43082
|
-
valueRef
|
|
43226
|
+
props
|
|
43083
43227
|
});
|
|
43228
|
+
const setValue = (value) => {
|
|
43229
|
+
valueRef.value = value;
|
|
43230
|
+
};
|
|
43231
|
+
const receiveBroadcasts = (eventData) => {
|
|
43232
|
+
if (props.detail.noticeReceive) {
|
|
43233
|
+
props.detail.noticeReceive(eventData, setValue);
|
|
43234
|
+
}
|
|
43235
|
+
};
|
|
43084
43236
|
onMounted(() => {
|
|
43085
43237
|
init();
|
|
43086
|
-
registerMitt()
|
|
43238
|
+
registerMitt((_eventData) => {
|
|
43239
|
+
receiveBroadcasts(_eventData);
|
|
43240
|
+
getOptions();
|
|
43241
|
+
});
|
|
43087
43242
|
});
|
|
43088
43243
|
onUnmounted(() => {
|
|
43089
43244
|
offMitt();
|
|
43090
43245
|
});
|
|
43091
43246
|
return (_ctx, _cache) => {
|
|
43092
43247
|
var _a;
|
|
43248
|
+
const _component_el_text = resolveComponent("el-text");
|
|
43093
43249
|
const _component_el_col = resolveComponent("el-col");
|
|
43094
43250
|
const _component_el_row = resolveComponent("el-row");
|
|
43095
43251
|
const _component_el_option = resolveComponent("el-option");
|
|
@@ -43103,7 +43259,6 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
43103
43259
|
loading: unref(loading),
|
|
43104
43260
|
placeholder: (_a = __props.detail) == null ? void 0 : _a.placeholder,
|
|
43105
43261
|
"value-key": __props.detail.componentParams.keyField,
|
|
43106
|
-
onChange: unref(handleChange),
|
|
43107
43262
|
onFocus: unref(getOptions)
|
|
43108
43263
|
}), {
|
|
43109
43264
|
header: withCtx(() => [
|
|
@@ -43117,7 +43272,12 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
43117
43272
|
span: item.span
|
|
43118
43273
|
}, {
|
|
43119
43274
|
default: withCtx(() => [
|
|
43120
|
-
|
|
43275
|
+
createVNode(_component_el_text, { truncated: "" }, {
|
|
43276
|
+
default: withCtx(() => [
|
|
43277
|
+
createTextVNode(toDisplayString(item.label), 1)
|
|
43278
|
+
]),
|
|
43279
|
+
_: 2
|
|
43280
|
+
}, 1024)
|
|
43121
43281
|
]),
|
|
43122
43282
|
_: 2
|
|
43123
43283
|
}, 1032, ["span"]);
|
|
@@ -43148,7 +43308,12 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
43148
43308
|
span: optionSlot.span
|
|
43149
43309
|
}, {
|
|
43150
43310
|
default: withCtx(() => [
|
|
43151
|
-
|
|
43311
|
+
createVNode(_component_el_text, { truncated: "" }, {
|
|
43312
|
+
default: withCtx(() => [
|
|
43313
|
+
createTextVNode(toDisplayString(item[optionSlot.field]), 1)
|
|
43314
|
+
]),
|
|
43315
|
+
_: 2
|
|
43316
|
+
}, 1024)
|
|
43152
43317
|
]),
|
|
43153
43318
|
_: 2
|
|
43154
43319
|
}, 1032, ["span"]);
|
|
@@ -43163,7 +43328,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
43163
43328
|
}), 128))
|
|
43164
43329
|
]),
|
|
43165
43330
|
_: 1
|
|
43166
|
-
}, 16, ["modelValue", "multiple", "loading", "placeholder", "value-key", "
|
|
43331
|
+
}, 16, ["modelValue", "multiple", "loading", "placeholder", "value-key", "onFocus"])), [
|
|
43167
43332
|
[_directive_loading, unref(loading)]
|
|
43168
43333
|
]);
|
|
43169
43334
|
};
|
|
@@ -43233,6 +43398,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
43233
43398
|
detail: {
|
|
43234
43399
|
required: true,
|
|
43235
43400
|
type: Object
|
|
43401
|
+
},
|
|
43402
|
+
mittId: {
|
|
43403
|
+
type: null,
|
|
43404
|
+
required: false,
|
|
43405
|
+
default: () => null
|
|
43236
43406
|
}
|
|
43237
43407
|
}, {
|
|
43238
43408
|
"value": {},
|
|
@@ -43241,34 +43411,36 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
43241
43411
|
emits: /* @__PURE__ */ mergeModels([
|
|
43242
43412
|
"update:value",
|
|
43243
43413
|
"getComponentValue",
|
|
43244
|
-
"valueChange",
|
|
43245
43414
|
"setShow"
|
|
43246
43415
|
], ["update:value"]),
|
|
43247
43416
|
setup(__props, { emit: __emit }) {
|
|
43248
43417
|
const props = __props;
|
|
43249
|
-
const
|
|
43250
|
-
const
|
|
43251
|
-
const
|
|
43252
|
-
|
|
43253
|
-
|
|
43254
|
-
|
|
43255
|
-
|
|
43256
|
-
|
|
43257
|
-
(_d = props.detail) == null ? void 0 : _d.field,
|
|
43258
|
-
inputValue
|
|
43259
|
-
);
|
|
43418
|
+
const valueRef = useModel(__props, "value");
|
|
43419
|
+
const { registerMitt, offMitt } = useMittHook(props.detail.field, props.mittId);
|
|
43420
|
+
const setValue = (value) => {
|
|
43421
|
+
valueRef.value = value;
|
|
43422
|
+
};
|
|
43423
|
+
const receiveBroadcasts = (eventData) => {
|
|
43424
|
+
if (props.detail.noticeReceive) {
|
|
43425
|
+
props.detail.noticeReceive(eventData, setValue);
|
|
43260
43426
|
}
|
|
43261
43427
|
};
|
|
43428
|
+
onMounted(() => {
|
|
43429
|
+
registerMitt(receiveBroadcasts);
|
|
43430
|
+
});
|
|
43431
|
+
onUnmounted(() => {
|
|
43432
|
+
offMitt();
|
|
43433
|
+
});
|
|
43262
43434
|
return (_ctx, _cache) => {
|
|
43263
43435
|
var _a, _b, _c;
|
|
43264
43436
|
const _component_el_input = resolveComponent("el-input");
|
|
43265
43437
|
return openBlock(), createBlock(_component_el_input, mergeProps({
|
|
43266
|
-
modelValue:
|
|
43267
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
43438
|
+
modelValue: valueRef.value,
|
|
43439
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => valueRef.value = $event),
|
|
43268
43440
|
autosize: { minRows: 2 },
|
|
43269
43441
|
placeholder: ((_a = props.detail) == null ? void 0 : _a.placeholder) ? props.detail.placeholder : `请输入${(_b = props.detail) == null ? void 0 : _b.title}`,
|
|
43270
43442
|
type: "textarea"
|
|
43271
|
-
}, ((_c = props.detail) == null ? void 0 : _c.componentParams) ? props.detail.componentParams : {}
|
|
43443
|
+
}, ((_c = props.detail) == null ? void 0 : _c.componentParams) ? props.detail.componentParams : {}), null, 16, ["modelValue", "placeholder"]);
|
|
43272
43444
|
};
|
|
43273
43445
|
}
|
|
43274
43446
|
});
|