@weitutech/by-components-v3 1.1.22 → 1.1.24
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/by-component-v3.css +1 -1
- package/dist/by-component-v3.js +241 -28
- package/dist/by-component-v3.umd.cjs +1 -1
- package/dist/types/packages/common-input/index.d.ts +4 -0
- package/dist/types/packages/common-input/src/index.vue.d.ts +25 -0
- package/dist/types/packages/common-input/src/types.d.ts +37 -0
- package/dist/types/packages/dialog/src/dialog.vue.d.ts +1 -1
- package/dist/types/packages/form/src/form.vue.d.ts +50 -0
- package/dist/types/packages/form/src/props.d.ts +2 -2
- package/dist/types/src/views/tests/CommonInputTest.vue.d.ts +2 -0
- package/package.json +1 -1
package/dist/by-component-v3.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted, watch, resolveComponent, createElementBlock, openBlock, createVNode, createElementVNode, mergeProps, Fragment, renderList, normalizeClass, toDisplayString, createTextVNode, computed, nextTick, onBeforeUnmount, createBlock, createCommentVNode, withCtx, renderSlot, useSlots, toRefs,
|
|
1
|
+
import { defineComponent, ref, onMounted, watch, resolveComponent, createElementBlock, openBlock, createVNode, createElementVNode, mergeProps, Fragment, renderList, normalizeClass, toDisplayString, createTextVNode, computed, nextTick, onBeforeUnmount, createBlock, createCommentVNode, withCtx, renderSlot, useAttrs as useAttrs$1, unref, useSlots, toRefs, isVNode, reactive, inject, provide, h as h$2, onUnmounted, TransitionGroup, Teleport as Teleport$1, onActivated, onDeactivated, getCurrentInstance, readonly, getCurrentScope, onScopeDispose, shallowRef, watchEffect, customRef, isRef, warn as warn$1, normalizeStyle, toRef, Transition, withDirectives, resolveDynamicComponent, vShow, withModifiers, onUpdated, cloneVNode, Text as Text$2, Comment, onBeforeMount, withKeys, createSlots, normalizeProps, guardReactiveProps, toRaw, vModelCheckbox, vModelRadio, onBeforeUpdate, vModelText, toHandlers, markRaw, effectScope, resolveDirective, toHandlerKey, render, createApp, shallowReactive } from "vue";
|
|
2
2
|
function cloneDeep$1(obj) {
|
|
3
3
|
if (obj === null || typeof obj !== "object") {
|
|
4
4
|
return obj;
|
|
@@ -4011,10 +4011,10 @@ hooks$a.HTML5_FMT = {
|
|
|
4011
4011
|
MONTH: "YYYY-MM"
|
|
4012
4012
|
// <input type="month" />
|
|
4013
4013
|
};
|
|
4014
|
-
const _hoisted_1$
|
|
4015
|
-
const _hoisted_2$
|
|
4016
|
-
const _hoisted_3$
|
|
4017
|
-
const _sfc_main$
|
|
4014
|
+
const _hoisted_1$8 = { class: "b-picker wrapper" };
|
|
4015
|
+
const _hoisted_2$6 = { class: "btn" };
|
|
4016
|
+
const _hoisted_3$6 = ["onClick"];
|
|
4017
|
+
const _sfc_main$2K = /* @__PURE__ */ defineComponent({
|
|
4018
4018
|
__name: "datePicker",
|
|
4019
4019
|
props: {
|
|
4020
4020
|
modelValue: { default: () => [] },
|
|
@@ -4111,18 +4111,18 @@ const _sfc_main$2J = /* @__PURE__ */ defineComponent({
|
|
|
4111
4111
|
);
|
|
4112
4112
|
return (_ctx, _cache) => {
|
|
4113
4113
|
const _component_el_date_picker = resolveComponent("el-date-picker");
|
|
4114
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
4114
|
+
return openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
4115
4115
|
createVNode(_component_el_date_picker, mergeProps({ style: { "width": "70%" } }, props2, {
|
|
4116
4116
|
modelValue: props2.modelValue,
|
|
4117
4117
|
"onUpdate:modelValue": handleChange
|
|
4118
4118
|
}), null, 16, ["modelValue"]),
|
|
4119
|
-
createElementVNode("div", _hoisted_2$
|
|
4119
|
+
createElementVNode("div", _hoisted_2$6, [
|
|
4120
4120
|
(openBlock(true), createElementBlock(Fragment, null, renderList(shortcuts.value, (item) => {
|
|
4121
4121
|
return openBlock(), createElementBlock("span", {
|
|
4122
4122
|
key: item.key,
|
|
4123
4123
|
class: normalizeClass(["item", { item_active: item.key === active.value }]),
|
|
4124
4124
|
onClick: ($event) => handleClick(item)
|
|
4125
|
-
}, toDisplayString(item.label), 11, _hoisted_3$
|
|
4125
|
+
}, toDisplayString(item.label), 11, _hoisted_3$6);
|
|
4126
4126
|
}), 128))
|
|
4127
4127
|
])
|
|
4128
4128
|
]);
|
|
@@ -4136,9 +4136,9 @@ const _export_sfc$1 = (sfc, props2) => {
|
|
|
4136
4136
|
}
|
|
4137
4137
|
return target;
|
|
4138
4138
|
};
|
|
4139
|
-
const CustomDatePicker = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
4140
|
-
const _hoisted_1$
|
|
4141
|
-
const _sfc_main$
|
|
4139
|
+
const CustomDatePicker = /* @__PURE__ */ _export_sfc$1(_sfc_main$2K, [["__scopeId", "data-v-3d5f0e97"]]);
|
|
4140
|
+
const _hoisted_1$7 = { class: "drawer_query_btn b-fold-search" };
|
|
4141
|
+
const _sfc_main$2J = /* @__PURE__ */ defineComponent({
|
|
4142
4142
|
__name: "foldSearch",
|
|
4143
4143
|
props: {
|
|
4144
4144
|
unfold: { type: Boolean, default: false }
|
|
@@ -4163,7 +4163,7 @@ const _sfc_main$2I = /* @__PURE__ */ defineComponent({
|
|
|
4163
4163
|
emit("change", show.value);
|
|
4164
4164
|
};
|
|
4165
4165
|
return (_ctx, _cache) => {
|
|
4166
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
4166
|
+
return openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
4167
4167
|
createElementVNode("div", { onClick: drawer2 }, [
|
|
4168
4168
|
show.value == true ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
4169
4169
|
_cache[0] || (_cache[0] = createElementVNode("span", { style: { "color": "#3aa1ff", "vertical-align": "middle" } }, "收起", -1)),
|
|
@@ -4187,7 +4187,7 @@ const _sfc_main$2I = /* @__PURE__ */ defineComponent({
|
|
|
4187
4187
|
};
|
|
4188
4188
|
}
|
|
4189
4189
|
});
|
|
4190
|
-
const FoldSearch = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
4190
|
+
const FoldSearch = /* @__PURE__ */ _export_sfc$1(_sfc_main$2J, [["__scopeId", "data-v-04f92519"]]);
|
|
4191
4191
|
const DoubleUnicodePrefixReg = /^[\uD800-\uDBFF]$/;
|
|
4192
4192
|
const DoubleUnicodeSuffixReg = /^[\uDC00-\uDFFF]$/;
|
|
4193
4193
|
const DoubleUnicodeReg = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
|
|
@@ -28458,19 +28458,19 @@ var OutputFormat;
|
|
|
28458
28458
|
({
|
|
28459
28459
|
format: OutputFormat.AllSegment
|
|
28460
28460
|
});
|
|
28461
|
-
const _hoisted_1$
|
|
28461
|
+
const _hoisted_1$6 = {
|
|
28462
28462
|
key: 0,
|
|
28463
28463
|
class: "by_selector_row by_selector_column-c"
|
|
28464
28464
|
};
|
|
28465
|
-
const _hoisted_2$
|
|
28465
|
+
const _hoisted_2$5 = {
|
|
28466
28466
|
class: "by_select_cell",
|
|
28467
28467
|
style: { "padding-left": "20px" }
|
|
28468
28468
|
};
|
|
28469
|
-
const _hoisted_3$
|
|
28469
|
+
const _hoisted_3$5 = {
|
|
28470
28470
|
key: 1,
|
|
28471
28471
|
class: "by_suffix-input_unit"
|
|
28472
28472
|
};
|
|
28473
|
-
const _hoisted_4$
|
|
28473
|
+
const _hoisted_4$5 = {
|
|
28474
28474
|
key: 1,
|
|
28475
28475
|
class: "by_suffix-input_unit"
|
|
28476
28476
|
};
|
|
@@ -28479,7 +28479,7 @@ const _hoisted_5$3 = {
|
|
|
28479
28479
|
class: "by_pagination-container"
|
|
28480
28480
|
};
|
|
28481
28481
|
const _hoisted_6$3 = { class: "by_page-info" };
|
|
28482
|
-
const _sfc_main$
|
|
28482
|
+
const _sfc_main$2I = /* @__PURE__ */ defineComponent({
|
|
28483
28483
|
__name: "index",
|
|
28484
28484
|
props: {
|
|
28485
28485
|
modelValue: { default: "" },
|
|
@@ -28937,7 +28937,7 @@ const _sfc_main$2H = /* @__PURE__ */ defineComponent({
|
|
|
28937
28937
|
createElementVNode("div", {
|
|
28938
28938
|
class: normalizeClass(["by_consult-select-container", { by_shrink: !open.value }])
|
|
28939
28939
|
}, [
|
|
28940
|
-
open.value && _ctx.showSearchBar ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
28940
|
+
open.value && _ctx.showSearchBar ? (openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
28941
28941
|
createElementVNode("div", null, [
|
|
28942
28942
|
createVNode(_component_el_radio_group, {
|
|
28943
28943
|
modelValue: select.value,
|
|
@@ -28958,7 +28958,7 @@ const _sfc_main$2H = /* @__PURE__ */ defineComponent({
|
|
|
28958
28958
|
_: 1
|
|
28959
28959
|
}, 8, ["modelValue", "disabled"])
|
|
28960
28960
|
]),
|
|
28961
|
-
createElementVNode("div", _hoisted_2$
|
|
28961
|
+
createElementVNode("div", _hoisted_2$5, [
|
|
28962
28962
|
createVNode(_component_el_input, {
|
|
28963
28963
|
modelValue: keyword.value,
|
|
28964
28964
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => keyword.value = $event),
|
|
@@ -29009,7 +29009,7 @@ const _sfc_main$2H = /* @__PURE__ */ defineComponent({
|
|
|
29009
29009
|
size: _ctx.size,
|
|
29010
29010
|
style: { "width": "180px", "margin-left": "5px" }
|
|
29011
29011
|
}, _ctx.suffixInputOptions || {}, { onInput: handleSuffixInputChange }), null, 16, ["modelValue", "placeholder", "size"])) : createCommentVNode("", true),
|
|
29012
|
-
_ctx.showSuffixInput && _ctx.suffixInputUnit ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
29012
|
+
_ctx.showSuffixInput && _ctx.suffixInputUnit ? (openBlock(), createElementBlock("span", _hoisted_3$5, toDisplayString(_ctx.suffixInputUnit), 1)) : createCommentVNode("", true),
|
|
29013
29013
|
renderSlot(_ctx.$slots, "suffixSlot")
|
|
29014
29014
|
]),
|
|
29015
29015
|
_: 3
|
|
@@ -29048,7 +29048,7 @@ const _sfc_main$2H = /* @__PURE__ */ defineComponent({
|
|
|
29048
29048
|
size: _ctx.size,
|
|
29049
29049
|
style: { "width": "180px", "margin-left": "5px" }
|
|
29050
29050
|
}, _ctx.suffixInputOptions || {}, { onInput: handleSuffixInputChange }), null, 16, ["modelValue", "placeholder", "size"])) : createCommentVNode("", true),
|
|
29051
|
-
_ctx.showSuffixInput && _ctx.suffixInputUnit ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
29051
|
+
_ctx.showSuffixInput && _ctx.suffixInputUnit ? (openBlock(), createElementBlock("span", _hoisted_4$5, toDisplayString(_ctx.suffixInputUnit), 1)) : createCommentVNode("", true),
|
|
29052
29052
|
renderSlot(_ctx.$slots, "suffixSlot")
|
|
29053
29053
|
]),
|
|
29054
29054
|
_: 3
|
|
@@ -29109,8 +29109,8 @@ const _sfc_main$2H = /* @__PURE__ */ defineComponent({
|
|
|
29109
29109
|
};
|
|
29110
29110
|
}
|
|
29111
29111
|
});
|
|
29112
|
-
_sfc_main$
|
|
29113
|
-
app.component("ByCommonSelector", _sfc_main$
|
|
29112
|
+
_sfc_main$2I.install = (app) => {
|
|
29113
|
+
app.component("ByCommonSelector", _sfc_main$2I);
|
|
29114
29114
|
};
|
|
29115
29115
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
29116
29116
|
var arrow_down_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
@@ -29437,6 +29437,26 @@ var document_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defin
|
|
|
29437
29437
|
}
|
|
29438
29438
|
});
|
|
29439
29439
|
var document_default = document_vue_vue_type_script_setup_true_lang_default;
|
|
29440
|
+
var edit_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
29441
|
+
name: "Edit",
|
|
29442
|
+
__name: "edit",
|
|
29443
|
+
setup(__props) {
|
|
29444
|
+
return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
|
|
29445
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
29446
|
+
viewBox: "0 0 1024 1024"
|
|
29447
|
+
}, [
|
|
29448
|
+
createElementVNode("path", {
|
|
29449
|
+
fill: "currentColor",
|
|
29450
|
+
d: "M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"
|
|
29451
|
+
}),
|
|
29452
|
+
createElementVNode("path", {
|
|
29453
|
+
fill: "currentColor",
|
|
29454
|
+
d: "m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"
|
|
29455
|
+
})
|
|
29456
|
+
]));
|
|
29457
|
+
}
|
|
29458
|
+
});
|
|
29459
|
+
var edit_default = edit_vue_vue_type_script_setup_true_lang_default;
|
|
29440
29460
|
var full_screen_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
29441
29461
|
name: "FullScreen",
|
|
29442
29462
|
__name: "full-screen",
|
|
@@ -29825,6 +29845,191 @@ var zoom_out_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defin
|
|
|
29825
29845
|
}
|
|
29826
29846
|
});
|
|
29827
29847
|
var zoom_out_default = zoom_out_vue_vue_type_script_setup_true_lang_default;
|
|
29848
|
+
const _hoisted_1$5 = { class: "by-common-input-container" };
|
|
29849
|
+
const _hoisted_2$4 = { class: "batch-input-container" };
|
|
29850
|
+
const _hoisted_3$4 = { class: "popover-title" };
|
|
29851
|
+
const _hoisted_4$4 = { class: "popover-footer" };
|
|
29852
|
+
const _sfc_main$2H = /* @__PURE__ */ defineComponent({
|
|
29853
|
+
...{
|
|
29854
|
+
name: "ByCommonInput",
|
|
29855
|
+
inheritAttrs: false
|
|
29856
|
+
},
|
|
29857
|
+
__name: "index",
|
|
29858
|
+
props: {
|
|
29859
|
+
modelValue: { default: "" },
|
|
29860
|
+
value: {},
|
|
29861
|
+
showBatchInput: { type: Boolean, default: false },
|
|
29862
|
+
batchInputPopoverTitle: { default: "批量输入" },
|
|
29863
|
+
batchInputPlaceholder: { default: "多个请用换行、逗号、分号、空格分隔" },
|
|
29864
|
+
batchInputPopoverWidth: { default: "300" },
|
|
29865
|
+
size: { default: "small" }
|
|
29866
|
+
},
|
|
29867
|
+
emits: ["update:modelValue", "input", "change", "blur", "focus", "batch-input"],
|
|
29868
|
+
setup(__props, { emit: __emit }) {
|
|
29869
|
+
const props2 = __props;
|
|
29870
|
+
const emit = __emit;
|
|
29871
|
+
const attrs = useAttrs$1();
|
|
29872
|
+
const localValue = ref(props2.modelValue ?? props2.value ?? "");
|
|
29873
|
+
const popoverVisible = ref(false);
|
|
29874
|
+
const batchInputContent = ref("");
|
|
29875
|
+
const actualSize = computed(() => {
|
|
29876
|
+
const attrSize = attrs.size;
|
|
29877
|
+
const size = attrSize || props2.size;
|
|
29878
|
+
return size === "mini" ? "small" : size;
|
|
29879
|
+
});
|
|
29880
|
+
const syncFromProps = (value) => {
|
|
29881
|
+
const next = value ?? "";
|
|
29882
|
+
if (next !== localValue.value) {
|
|
29883
|
+
localValue.value = next;
|
|
29884
|
+
}
|
|
29885
|
+
};
|
|
29886
|
+
watch(
|
|
29887
|
+
() => props2.modelValue,
|
|
29888
|
+
(val) => syncFromProps(val),
|
|
29889
|
+
{ immediate: true }
|
|
29890
|
+
);
|
|
29891
|
+
watch(
|
|
29892
|
+
() => props2.value,
|
|
29893
|
+
(val) => {
|
|
29894
|
+
if (val !== void 0) {
|
|
29895
|
+
syncFromProps(val);
|
|
29896
|
+
}
|
|
29897
|
+
}
|
|
29898
|
+
);
|
|
29899
|
+
const emitValue = (value) => {
|
|
29900
|
+
emit("update:modelValue", value);
|
|
29901
|
+
emit("input", value);
|
|
29902
|
+
};
|
|
29903
|
+
const handleInput = (value) => {
|
|
29904
|
+
localValue.value = value;
|
|
29905
|
+
emitValue(value);
|
|
29906
|
+
};
|
|
29907
|
+
const handleChange = (value) => {
|
|
29908
|
+
emit("change", value);
|
|
29909
|
+
};
|
|
29910
|
+
const handleBlur = (event) => {
|
|
29911
|
+
emit("blur", event);
|
|
29912
|
+
};
|
|
29913
|
+
const handleFocus = (event) => {
|
|
29914
|
+
emit("focus", event);
|
|
29915
|
+
};
|
|
29916
|
+
const handleOpenBatchInput = () => {
|
|
29917
|
+
if (localValue.value) {
|
|
29918
|
+
batchInputContent.value = String(localValue.value).split(",").map((item) => item.trim()).filter((item) => item).join("\n");
|
|
29919
|
+
} else {
|
|
29920
|
+
batchInputContent.value = "";
|
|
29921
|
+
}
|
|
29922
|
+
};
|
|
29923
|
+
const parseBatchContent = (content) => {
|
|
29924
|
+
return content.split(/[\n,,;;\s]+/).map((item) => item.trim()).filter((item) => item);
|
|
29925
|
+
};
|
|
29926
|
+
const handleBatchInputConfirm = () => {
|
|
29927
|
+
popoverVisible.value = false;
|
|
29928
|
+
const trimmed = batchInputContent.value.trim();
|
|
29929
|
+
if (trimmed) {
|
|
29930
|
+
const items = parseBatchContent(trimmed);
|
|
29931
|
+
const processedContent = items.join(",");
|
|
29932
|
+
localValue.value = processedContent;
|
|
29933
|
+
emitValue(processedContent);
|
|
29934
|
+
emit("change", processedContent);
|
|
29935
|
+
emit("batch-input", batchInputContent.value, processedContent);
|
|
29936
|
+
} else {
|
|
29937
|
+
localValue.value = "";
|
|
29938
|
+
emitValue("");
|
|
29939
|
+
emit("change", "");
|
|
29940
|
+
emit("batch-input", "", "");
|
|
29941
|
+
}
|
|
29942
|
+
};
|
|
29943
|
+
const handleCancel = () => {
|
|
29944
|
+
popoverVisible.value = false;
|
|
29945
|
+
batchInputContent.value = "";
|
|
29946
|
+
};
|
|
29947
|
+
return (_ctx, _cache) => {
|
|
29948
|
+
const _component_el_input = resolveComponent("el-input");
|
|
29949
|
+
const _component_el_button = resolveComponent("el-button");
|
|
29950
|
+
const _component_el_icon = resolveComponent("el-icon");
|
|
29951
|
+
const _component_el_popover = resolveComponent("el-popover");
|
|
29952
|
+
return openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
29953
|
+
createVNode(_component_el_input, mergeProps({
|
|
29954
|
+
"model-value": localValue.value,
|
|
29955
|
+
size: actualSize.value
|
|
29956
|
+
}, _ctx.$attrs, {
|
|
29957
|
+
"onUpdate:modelValue": handleInput,
|
|
29958
|
+
onChange: handleChange,
|
|
29959
|
+
onBlur: handleBlur,
|
|
29960
|
+
onFocus: handleFocus
|
|
29961
|
+
}), null, 16, ["model-value", "size"]),
|
|
29962
|
+
_ctx.showBatchInput ? (openBlock(), createBlock(_component_el_popover, {
|
|
29963
|
+
key: 0,
|
|
29964
|
+
visible: popoverVisible.value,
|
|
29965
|
+
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => popoverVisible.value = $event),
|
|
29966
|
+
placement: "bottom-end",
|
|
29967
|
+
width: _ctx.batchInputPopoverWidth,
|
|
29968
|
+
trigger: "click",
|
|
29969
|
+
"popper-class": "batch-input-popover"
|
|
29970
|
+
}, {
|
|
29971
|
+
reference: withCtx(() => [
|
|
29972
|
+
createVNode(_component_el_button, {
|
|
29973
|
+
class: "batch-input-btn",
|
|
29974
|
+
size: actualSize.value,
|
|
29975
|
+
onClick: handleOpenBatchInput
|
|
29976
|
+
}, {
|
|
29977
|
+
default: withCtx(() => [
|
|
29978
|
+
createVNode(_component_el_icon, null, {
|
|
29979
|
+
default: withCtx(() => [
|
|
29980
|
+
createVNode(unref(edit_default))
|
|
29981
|
+
]),
|
|
29982
|
+
_: 1
|
|
29983
|
+
})
|
|
29984
|
+
]),
|
|
29985
|
+
_: 1
|
|
29986
|
+
}, 8, ["size"])
|
|
29987
|
+
]),
|
|
29988
|
+
default: withCtx(() => [
|
|
29989
|
+
createElementVNode("div", _hoisted_2$4, [
|
|
29990
|
+
createElementVNode("div", _hoisted_3$4, toDisplayString(_ctx.batchInputPopoverTitle), 1),
|
|
29991
|
+
createVNode(_component_el_input, {
|
|
29992
|
+
modelValue: batchInputContent.value,
|
|
29993
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => batchInputContent.value = $event),
|
|
29994
|
+
type: "textarea",
|
|
29995
|
+
rows: 10,
|
|
29996
|
+
placeholder: _ctx.batchInputPlaceholder,
|
|
29997
|
+
class: "batch-input-textarea"
|
|
29998
|
+
}, null, 8, ["modelValue", "placeholder"]),
|
|
29999
|
+
createElementVNode("div", _hoisted_4$4, [
|
|
30000
|
+
createVNode(_component_el_button, {
|
|
30001
|
+
size: "small",
|
|
30002
|
+
onClick: handleCancel
|
|
30003
|
+
}, {
|
|
30004
|
+
default: withCtx(() => _cache[2] || (_cache[2] = [
|
|
30005
|
+
createTextVNode("取消")
|
|
30006
|
+
])),
|
|
30007
|
+
_: 1,
|
|
30008
|
+
__: [2]
|
|
30009
|
+
}),
|
|
30010
|
+
createVNode(_component_el_button, {
|
|
30011
|
+
size: "small",
|
|
30012
|
+
type: "primary",
|
|
30013
|
+
onClick: handleBatchInputConfirm
|
|
30014
|
+
}, {
|
|
30015
|
+
default: withCtx(() => _cache[3] || (_cache[3] = [
|
|
30016
|
+
createTextVNode("确定")
|
|
30017
|
+
])),
|
|
30018
|
+
_: 1,
|
|
30019
|
+
__: [3]
|
|
30020
|
+
})
|
|
30021
|
+
])
|
|
30022
|
+
])
|
|
30023
|
+
]),
|
|
30024
|
+
_: 1
|
|
30025
|
+
}, 8, ["visible", "width"])) : createCommentVNode("", true)
|
|
30026
|
+
]);
|
|
30027
|
+
};
|
|
30028
|
+
}
|
|
30029
|
+
});
|
|
30030
|
+
_sfc_main$2H.install = (app) => {
|
|
30031
|
+
app.component("ByCommonInput", _sfc_main$2H);
|
|
30032
|
+
};
|
|
29828
30033
|
function _isSlot$6(s2) {
|
|
29829
30034
|
return typeof s2 === "function" || Object.prototype.toString.call(s2) === "[object Object]" && !isVNode(s2);
|
|
29830
30035
|
}
|
|
@@ -30131,9 +30336,16 @@ const _sfc_main$2G = /* @__PURE__ */ defineComponent({
|
|
|
30131
30336
|
"onUpdate:modelValue": ($event) => handleValueChange($event, item.field, item)
|
|
30132
30337
|
}), null);
|
|
30133
30338
|
};
|
|
30339
|
+
const ElCommonInput = (item) => {
|
|
30340
|
+
return createVNode(_sfc_main$2H, mergeProps(item.attrs, {
|
|
30341
|
+
"size": getSize(item),
|
|
30342
|
+
"modelValue": props2.modelValue[item.field],
|
|
30343
|
+
"onUpdate:modelValue": ($event) => handleValueChange($event, item.field, item)
|
|
30344
|
+
}), null);
|
|
30345
|
+
};
|
|
30134
30346
|
const ElCommonSelector = (item) => {
|
|
30135
30347
|
const suffixInputField = item.suffixInputField || `${item.field}_suffix`;
|
|
30136
|
-
return createVNode(_sfc_main$
|
|
30348
|
+
return createVNode(_sfc_main$2I, mergeProps(item.attrs, {
|
|
30137
30349
|
"options": item.options || [],
|
|
30138
30350
|
"value": props2.modelValue[item.field],
|
|
30139
30351
|
"onInput": ($event) => handleValueChange($event, item.field, item),
|
|
@@ -30215,7 +30427,7 @@ const _sfc_main$2G = /* @__PURE__ */ defineComponent({
|
|
|
30215
30427
|
const name = slots[item.field] ? slotsName : "default";
|
|
30216
30428
|
return createVNode("div", null, [slots[name] ? slots[name]() : null]);
|
|
30217
30429
|
};
|
|
30218
|
-
const components2 = /* @__PURE__ */ new Map([["input", ElInput2], ["inputNumber", ElInputNumber2], ["select", ElSelect2], ["treeSelect", ElTreeSelect2], ["cascader", ElCascader2], ["switch", ElSwitch2], ["radio", ElRadio2], ["checkbox", ElCheckbox2], ["datepicker", ElDatePicker2], ["customDatePicker", DatePicker2], ["search", SearchBtn], ["custom", ElCustom], ["formButtons", FormButtons], ["commonSelector", ElCommonSelector]]);
|
|
30430
|
+
const components2 = /* @__PURE__ */ new Map([["input", ElInput2], ["inputNumber", ElInputNumber2], ["select", ElSelect2], ["treeSelect", ElTreeSelect2], ["cascader", ElCascader2], ["switch", ElSwitch2], ["radio", ElRadio2], ["checkbox", ElCheckbox2], ["datepicker", ElDatePicker2], ["customDatePicker", DatePicker2], ["search", SearchBtn], ["custom", ElCustom], ["formButtons", FormButtons], ["commonSelector", ElCommonSelector], ["commonInput", ElCommonInput]]);
|
|
30219
30431
|
const DynamicComponent = (item) => components2.get(item.type)(item);
|
|
30220
30432
|
const showFold = computed(() => {
|
|
30221
30433
|
return (item) => {
|
|
@@ -30340,7 +30552,7 @@ const _sfc_main$2G = /* @__PURE__ */ defineComponent({
|
|
|
30340
30552
|
};
|
|
30341
30553
|
}
|
|
30342
30554
|
});
|
|
30343
|
-
const ZshForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$2G, [["__scopeId", "data-v-
|
|
30555
|
+
const ZshForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$2G, [["__scopeId", "data-v-663c11ac"]]);
|
|
30344
30556
|
const _hoisted_1$4 = {
|
|
30345
30557
|
id: "pager",
|
|
30346
30558
|
class: "pager fixed bottom-0 right-0 w-full flex justify-center items-center z-50"
|
|
@@ -162465,7 +162677,8 @@ const components = {
|
|
|
162465
162677
|
ByPager: BasePager,
|
|
162466
162678
|
ByTable,
|
|
162467
162679
|
ByToolBar: _sfc_main$2,
|
|
162468
|
-
ByCommonSelector: _sfc_main$
|
|
162680
|
+
ByCommonSelector: _sfc_main$2I,
|
|
162681
|
+
ByCommonInput: _sfc_main$2H,
|
|
162469
162682
|
ByBatchQuerySelector: _sfc_main$1,
|
|
162470
162683
|
ByDialog: _sfc_main
|
|
162471
162684
|
};
|