star-horse-lowcode 2.7.41 → 2.7.42
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/README.md +16 -0
- package/dist/assets/index.css +1 -1
- package/dist/index.cjs.js +3 -3
- package/dist/index.es.js +116 -110
- package/dist/index.umd.js +3 -3
- package/dist/types/index.d.ts +95 -26
- package/licenses.json +14194 -0
- package/package.json +1 -1
- package/src/components/types/ApiUrls.ts +158 -0
- package/src/components/types/BtnAction.ts +52 -0
- package/src/components/types/BtnAuth.ts +43 -0
- package/src/components/types/CompInfo.ts +81 -0
- package/src/components/types/DialogProps.ts +55 -0
- package/src/components/types/DyCompField.ts +23 -0
- package/src/components/types/DynamicNode.ts +42 -0
- package/src/components/types/MenusInfo.ts +45 -0
- package/src/components/types/PageFieldInfo.ts +566 -0
- package/src/components/types/PageProps.ts +25 -0
- package/src/components/types/Params.ts +93 -0
- package/src/components/types/RuleType.ts +10 -0
- package/src/components/types/SearchProps.ts +35 -0
- package/src/components/types/ShortKey.ts +30 -0
- package/src/components/types/StarHorseType.ts +18 -0
- package/src/components/types/index.ts +15 -0
package/dist/index.es.js
CHANGED
|
@@ -54405,7 +54405,7 @@ const _hoisted_2$C = {
|
|
|
54405
54405
|
};
|
|
54406
54406
|
const _hoisted_3$n = ["src"];
|
|
54407
54407
|
const _hoisted_4$d = { class: "m-message-content" };
|
|
54408
|
-
const _hoisted_5$
|
|
54408
|
+
const _hoisted_5$b = {
|
|
54409
54409
|
key: 0,
|
|
54410
54410
|
class: "m-message--title"
|
|
54411
54411
|
};
|
|
@@ -54474,7 +54474,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
54474
54474
|
}, null, 8, ["name"])) : createCommentVNode("", true)
|
|
54475
54475
|
])) : createCommentVNode("", true),
|
|
54476
54476
|
createElementVNode("div", _hoisted_4$d, [
|
|
54477
|
-
_ctx.title || _ctx.$slots.title ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
54477
|
+
_ctx.title || _ctx.$slots.title ? (openBlock(), createElementBlock("div", _hoisted_5$b, [
|
|
54478
54478
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
54479
54479
|
createTextVNode(toDisplayString(_ctx.title), 1)
|
|
54480
54480
|
])
|
|
@@ -91045,10 +91045,12 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
|
91045
91045
|
className: { type: String },
|
|
91046
91046
|
title: { type: String, default: "" },
|
|
91047
91047
|
size: { type: String, default: "20px" },
|
|
91048
|
-
width: { type: String, default: "
|
|
91049
|
-
height: { type: String, default: "
|
|
91048
|
+
width: { type: String, default: "24px" },
|
|
91049
|
+
height: { type: String, default: "22px" },
|
|
91050
91050
|
marginLeft: { type: String, default: "0.1em" },
|
|
91051
91051
|
marginRight: { type: String, default: "0.1em" },
|
|
91052
|
+
borderRadius: { type: String, default: "5px" },
|
|
91053
|
+
boorderPadding: { type: String, default: "3px" },
|
|
91052
91054
|
// 图标是否有边框
|
|
91053
91055
|
boxShow: { type: Boolean, default: false },
|
|
91054
91056
|
border: { type: Boolean, default: false },
|
|
@@ -91057,13 +91059,15 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
|
91057
91059
|
},
|
|
91058
91060
|
setup(__props) {
|
|
91059
91061
|
useCssVars((_ctx) => ({
|
|
91060
|
-
"
|
|
91061
|
-
"
|
|
91062
|
-
"
|
|
91063
|
-
"
|
|
91064
|
-
"
|
|
91065
|
-
"
|
|
91066
|
-
"
|
|
91062
|
+
"45c80940": __props.cursor,
|
|
91063
|
+
"08361c7c": __props.width,
|
|
91064
|
+
"36830d9e": __props.height,
|
|
91065
|
+
"071f1e19": __props.color,
|
|
91066
|
+
"214a428b": __props.size,
|
|
91067
|
+
"1e58e5df": __props.marginLeft,
|
|
91068
|
+
"a5cb9178": __props.marginRight,
|
|
91069
|
+
"3ce13468": __props.borderRadius,
|
|
91070
|
+
"e303508c": __props.boorderPadding
|
|
91067
91071
|
}));
|
|
91068
91072
|
const props = __props;
|
|
91069
91073
|
const iconName = computed(() => `sh-${props.iconClass}`);
|
|
@@ -91095,7 +91099,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
91095
91099
|
return target;
|
|
91096
91100
|
};
|
|
91097
91101
|
|
|
91098
|
-
const __unplugin_components_1$4 = /* @__PURE__ */ _export_sfc(_sfc_main$1P, [["__scopeId", "data-v-
|
|
91102
|
+
const __unplugin_components_1$4 = /* @__PURE__ */ _export_sfc(_sfc_main$1P, [["__scopeId", "data-v-c468c2a3"]]);
|
|
91099
91103
|
|
|
91100
91104
|
const StarHorseIcon = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
91101
91105
|
__proto__: null,
|
|
@@ -91879,19 +91883,36 @@ const _sfc_main$1M = /* @__PURE__ */ defineComponent({
|
|
|
91879
91883
|
dataForm: { type: Object, required: true },
|
|
91880
91884
|
index: { type: Object, required: true },
|
|
91881
91885
|
item: { type: Object, required: true },
|
|
91882
|
-
staticColumn: { type: String, default: "
|
|
91886
|
+
staticColumn: { type: String, default: "Y" },
|
|
91883
91887
|
primaryKey: { type: [String, Object] },
|
|
91884
91888
|
batchName: { type: String, default: "batchDataList" },
|
|
91885
91889
|
rules: { type: Object },
|
|
91886
91890
|
size: { type: String, default: Config.compSize }
|
|
91887
91891
|
},
|
|
91888
91892
|
setup(__props) {
|
|
91893
|
+
const props = __props;
|
|
91889
91894
|
const dialogProps = inject("dialogProps");
|
|
91895
|
+
const dataFormat = (val) => {
|
|
91896
|
+
const type = props.item.type;
|
|
91897
|
+
if (val) {
|
|
91898
|
+
if (type == "date" || type == "datetime") {
|
|
91899
|
+
return createDatetime(val);
|
|
91900
|
+
}
|
|
91901
|
+
if (type == "switch") {
|
|
91902
|
+
return val == "1" || val == "Y" ? "是" : "否";
|
|
91903
|
+
}
|
|
91904
|
+
if (type == "select" || type == "radio" || type == "checkbox" || type == "cascader" || type == "tselect") {
|
|
91905
|
+
return props.item.preps?.values?.find((item) => item.value == val)?.name || unref(props.item.optionList)?.find((item) => item.value == val)?.name || val;
|
|
91906
|
+
}
|
|
91907
|
+
return val;
|
|
91908
|
+
}
|
|
91909
|
+
return "--";
|
|
91910
|
+
};
|
|
91890
91911
|
return (_ctx, _cache) => {
|
|
91891
91912
|
const _component_star_horse_item = StarHorseItem;
|
|
91892
91913
|
const _component_el_form_item = ElFormItem;
|
|
91893
91914
|
return __props.staticColumn == "Y" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
91894
|
-
createTextVNode(toDisplayString(__props.dataForm[__props.item.fieldName]), 1)
|
|
91915
|
+
createTextVNode(toDisplayString(dataFormat(__props.dataForm[__props.item.fieldName])), 1)
|
|
91895
91916
|
], 64)) : (openBlock(), createBlock(_component_el_form_item, {
|
|
91896
91917
|
key: 1,
|
|
91897
91918
|
size: __props.size,
|
|
@@ -92166,7 +92187,7 @@ const _hoisted_1$Q = { class: "di animated animate__fadeIn" };
|
|
|
92166
92187
|
const _hoisted_2$A = { class: "my-header" };
|
|
92167
92188
|
const _hoisted_3$l = { class: "shdialog" };
|
|
92168
92189
|
const _hoisted_4$c = { class: "dialog-body" };
|
|
92169
|
-
const _hoisted_5$
|
|
92190
|
+
const _hoisted_5$a = {
|
|
92170
92191
|
key: 0,
|
|
92171
92192
|
class: "dialog-footer"
|
|
92172
92193
|
};
|
|
@@ -92342,7 +92363,7 @@ const _sfc_main$1K = /* @__PURE__ */ defineComponent({
|
|
|
92342
92363
|
])
|
|
92343
92364
|
]),
|
|
92344
92365
|
footer: withCtx(() => [
|
|
92345
|
-
!__props.isView ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
92366
|
+
!__props.isView ? (openBlock(), createElementBlock("span", _hoisted_5$a, [
|
|
92346
92367
|
renderSlot(_ctx.$slots, "extend", {}, void 0, true),
|
|
92347
92368
|
createVNode(_component_el_button, {
|
|
92348
92369
|
onClick: _cache[0] || (_cache[0] = ($event) => operation("merge", "close")),
|
|
@@ -92853,7 +92874,7 @@ const _sfc_main$1H = /* @__PURE__ */ defineComponent({
|
|
|
92853
92874
|
let item = props.item;
|
|
92854
92875
|
let val = scope.row[item.hideName || item.fieldName];
|
|
92855
92876
|
if (item.type == "select" || item.type == "checkbox" || item.type == "radio") {
|
|
92856
|
-
return item.preps?.values?.find((temp) => String(temp.value) == val)?.name || val;
|
|
92877
|
+
return item.preps?.values?.find((temp) => String(temp.value) == val)?.name || unref(item.optionList)?.find((temp) => String(temp.value) == val)?.name || val;
|
|
92857
92878
|
}
|
|
92858
92879
|
if (item.type == "date" || item.type == "datetime") {
|
|
92859
92880
|
return createDatetime(val);
|
|
@@ -93154,7 +93175,7 @@ const _hoisted_4$b = {
|
|
|
93154
93175
|
key: 0,
|
|
93155
93176
|
class: "item"
|
|
93156
93177
|
};
|
|
93157
|
-
const _hoisted_5$
|
|
93178
|
+
const _hoisted_5$9 = { class: "content" };
|
|
93158
93179
|
const _sfc_main$1D = /* @__PURE__ */ defineComponent({
|
|
93159
93180
|
__name: "viewDytableItem",
|
|
93160
93181
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -93197,7 +93218,7 @@ const _sfc_main$1D = /* @__PURE__ */ defineComponent({
|
|
|
93197
93218
|
}, [
|
|
93198
93219
|
sitem.formVisible || sitem.listVisible || sitem.viewVisible ? (openBlock(), createElementBlock("div", _hoisted_4$b, [
|
|
93199
93220
|
createElementVNode("label", null, toDisplayString(sitem.label) + " :", 1),
|
|
93200
|
-
createElementVNode("div", _hoisted_5$
|
|
93221
|
+
createElementVNode("div", _hoisted_5$9, [
|
|
93201
93222
|
createVNode(_component_el_tooltip, {
|
|
93202
93223
|
content: dataFormat(sitem)
|
|
93203
93224
|
}, {
|
|
@@ -94982,7 +95003,7 @@ const _hoisted_3$h = {
|
|
|
94982
95003
|
style: { "{'border-width'": "'3px', 'border-color': 'red'}" }
|
|
94983
95004
|
};
|
|
94984
95005
|
const _hoisted_4$a = ["onMousedown"];
|
|
94985
|
-
const _hoisted_5$
|
|
95006
|
+
const _hoisted_5$8 = { class: "node-item node-content" };
|
|
94986
95007
|
const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
94987
95008
|
__name: "StarHorseDraggable",
|
|
94988
95009
|
props: {
|
|
@@ -95185,7 +95206,7 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
|
95185
95206
|
onMousedown: ($event) => rangeMove($event, item)
|
|
95186
95207
|
}, null, 42, _hoisted_4$a);
|
|
95187
95208
|
}), 256)) : createCommentVNode("", true),
|
|
95188
|
-
createElementVNode("div", _hoisted_5$
|
|
95209
|
+
createElementVNode("div", _hoisted_5$8, [
|
|
95189
95210
|
createElementVNode("h3", null, toDisplayString(__props.node.name), 1)
|
|
95190
95211
|
])
|
|
95191
95212
|
])
|
|
@@ -97918,7 +97939,7 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
97918
97939
|
props: {
|
|
97919
97940
|
item: { type: Object, required: true },
|
|
97920
97941
|
rules: { type: Object },
|
|
97921
|
-
staticColumn: { type: String, default: "
|
|
97942
|
+
staticColumn: { type: String, default: "Y" },
|
|
97922
97943
|
size: { type: String, default: Config.compSize },
|
|
97923
97944
|
batchName: { type: String, default: "batchDataList" },
|
|
97924
97945
|
primaryKey: { type: [String, Object] }
|
|
@@ -97977,7 +97998,7 @@ const _hoisted_4$9 = {
|
|
|
97977
97998
|
key: 0,
|
|
97978
97999
|
class: "flex items-center"
|
|
97979
98000
|
};
|
|
97980
|
-
const _hoisted_5$
|
|
98001
|
+
const _hoisted_5$7 = { class: "flex items-center" };
|
|
97981
98002
|
const _hoisted_6$5 = {
|
|
97982
98003
|
key: 0,
|
|
97983
98004
|
class: "inner_button"
|
|
@@ -97995,7 +98016,7 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
|
97995
98016
|
title: { type: String, default: "" },
|
|
97996
98017
|
helpMsg: { type: String, default: "" },
|
|
97997
98018
|
rules: { type: Object },
|
|
97998
|
-
staticColumn: { type: String, default: "
|
|
98019
|
+
staticColumn: { type: String, default: "Y" },
|
|
97999
98020
|
size: { type: String, default: Config.compSize },
|
|
98000
98021
|
isView: { type: Boolean, default: false },
|
|
98001
98022
|
showCheckBox: { type: Boolean, default: false },
|
|
@@ -98203,7 +98224,7 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
|
98203
98224
|
createVNode(_component_star_horse_dialog, {
|
|
98204
98225
|
title: "编辑数据",
|
|
98205
98226
|
dialogVisible: unref(rowDialogVisible),
|
|
98206
|
-
boxWidth: "
|
|
98227
|
+
boxWidth: "50%",
|
|
98207
98228
|
selfFunc: true,
|
|
98208
98229
|
onMerge: mergeData,
|
|
98209
98230
|
onCloseAction: closeAction
|
|
@@ -98304,7 +98325,7 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
|
98304
98325
|
width: 400
|
|
98305
98326
|
}, null, 8, ["message"])) : createCommentVNode("", true)
|
|
98306
98327
|
])) : createCommentVNode("", true),
|
|
98307
|
-
createElementVNode("div", _hoisted_5$
|
|
98328
|
+
createElementVNode("div", _hoisted_5$7, [
|
|
98308
98329
|
!__props.isView ? (openBlock(), createElementBlock("ul", _hoisted_6$5, [
|
|
98309
98330
|
__props.importInfo?.importDataUrl && !__props.subFlag ? (openBlock(), createElementBlock("li", {
|
|
98310
98331
|
key: 0,
|
|
@@ -98473,7 +98494,7 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
|
98473
98494
|
|
|
98474
98495
|
/* unplugin-vue-components disabled */
|
|
98475
98496
|
|
|
98476
|
-
const __unplugin_components_0$3 = /* @__PURE__ */ _export_sfc(_sfc_main$1r, [["__scopeId", "data-v-
|
|
98497
|
+
const __unplugin_components_0$3 = /* @__PURE__ */ _export_sfc(_sfc_main$1r, [["__scopeId", "data-v-6627753e"]]);
|
|
98477
98498
|
|
|
98478
98499
|
const StarHorseFormList = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
98479
98500
|
__proto__: null,
|
|
@@ -98521,7 +98542,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
98521
98542
|
onAddRow: addRow,
|
|
98522
98543
|
onRemoveRow: removeRow,
|
|
98523
98544
|
helpMsg: __props.item["helpMsg"],
|
|
98524
|
-
staticColumn: __props.item.staticData
|
|
98545
|
+
staticColumn: __props.item.staticData ?? "Y",
|
|
98525
98546
|
downloadTemplateUrl: __props.item["downloadTemplateUrl"],
|
|
98526
98547
|
importInfo: __props.item["importInfo"],
|
|
98527
98548
|
defaultValues: unref(batchFieldDefaultValues)(__props.item, dataForm.value),
|
|
@@ -145593,7 +145614,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
145593
145614
|
item.type == "input" && (!item.disabled || item.disabled == "N") ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
145594
145615
|
createVNode(_component_el_select, {
|
|
145595
145616
|
size: unref(compSize),
|
|
145596
|
-
style: { "width": "90px", "height": "100%", "padding-top": "2px" },
|
|
145617
|
+
style: { "width": "90px !important", "height": "100%", "padding-top": "2px" },
|
|
145597
145618
|
modelValue: item["matchType"],
|
|
145598
145619
|
"onUpdate:modelValue": ($event) => item["matchType"] = $event,
|
|
145599
145620
|
clearable: "",
|
|
@@ -145696,7 +145717,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
145696
145717
|
|
|
145697
145718
|
/* unplugin-vue-components disabled */
|
|
145698
145719
|
|
|
145699
|
-
const __unplugin_components_0$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["__scopeId", "data-v-
|
|
145720
|
+
const __unplugin_components_0$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["__scopeId", "data-v-35ab45d7"]]);
|
|
145700
145721
|
|
|
145701
145722
|
const StarHorseSearchComp = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
145702
145723
|
__proto__: null,
|
|
@@ -146367,8 +146388,9 @@ const _hoisted_1$v = {
|
|
|
146367
146388
|
class: "inner_button"
|
|
146368
146389
|
};
|
|
146369
146390
|
const _hoisted_2$m = { key: 0 };
|
|
146370
|
-
const _hoisted_3$c =
|
|
146371
|
-
const _hoisted_4$7 = ["
|
|
146391
|
+
const _hoisted_3$c = ["onClick", "title"];
|
|
146392
|
+
const _hoisted_4$7 = { class: "flex items-center w-[100%]" };
|
|
146393
|
+
const _hoisted_5$6 = ["onClick"];
|
|
146372
146394
|
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
146373
146395
|
__name: "StarHorseButtonList",
|
|
146374
146396
|
props: {
|
|
@@ -146378,7 +146400,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
146378
146400
|
//自定义按钮
|
|
146379
146401
|
extendBtns: { type: Array },
|
|
146380
146402
|
//预检查方法,如果设置了预检查方法,必须要检查通过后,按钮事件才能继续往下执行
|
|
146381
|
-
preValidFunc: { type: Object
|
|
146403
|
+
preValidFunc: { type: Object },
|
|
146382
146404
|
btnPermissions: { type: Object, required: false }
|
|
146383
146405
|
},
|
|
146384
146406
|
emits: [
|
|
@@ -146403,10 +146425,16 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
146403
146425
|
emits("tableCompFunc", funcName);
|
|
146404
146426
|
};
|
|
146405
146427
|
const btnOperation = (funcName) => {
|
|
146406
|
-
if (props.preValidFunc && props.preValidFunc
|
|
146407
|
-
|
|
146408
|
-
if (
|
|
146409
|
-
|
|
146428
|
+
if (props.preValidFunc?.length > 0 && Array.isArray(props.preValidFunc)) {
|
|
146429
|
+
const preFunc = props.preValidFunc.find((item) => item.authority == funcName);
|
|
146430
|
+
if (preFunc) {
|
|
146431
|
+
const result = preFunc.valid?.();
|
|
146432
|
+
if (!result) {
|
|
146433
|
+
if (preFunc.msg?.length > 1) {
|
|
146434
|
+
warning$2(preFunc.msg);
|
|
146435
|
+
}
|
|
146436
|
+
return;
|
|
146437
|
+
}
|
|
146410
146438
|
}
|
|
146411
146439
|
}
|
|
146412
146440
|
if (funcName == "add") {
|
|
@@ -146499,7 +146527,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
146499
146527
|
if (props.extendBtns?.length > 0) {
|
|
146500
146528
|
let extBtns = props.extendBtns.filter((item) => item.position == "toolbar") || [];
|
|
146501
146529
|
if (extBtns?.length > 0) {
|
|
146502
|
-
for (let i
|
|
146530
|
+
for (let i = 0; i < arr.length; i++) {
|
|
146503
146531
|
let temp = arr[i];
|
|
146504
146532
|
if (extBtns.find((item) => item.btnName == temp.btnName && item.authority == temp.authority)) {
|
|
146505
146533
|
arr.splice(i, 1);
|
|
@@ -146532,7 +146560,6 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
146532
146560
|
});
|
|
146533
146561
|
return (_ctx, _cache) => {
|
|
146534
146562
|
const _component_star_horse_icon = __unplugin_components_1$4;
|
|
146535
|
-
const _component_el_button = ElButton;
|
|
146536
146563
|
const _component_el_dropdown_item = ElDropdownItem;
|
|
146537
146564
|
const _component_el_dropdown_menu = ElDropdownMenu;
|
|
146538
146565
|
const _component_el_dropdown = ElDropdown;
|
|
@@ -146545,7 +146572,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
146545
146572
|
unref(showType) == "line" && Object.keys(unref(permissions) || {}).length > 0 ? (openBlock(), createElementBlock("ul", _hoisted_1$v, [
|
|
146546
146573
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(buttonList), (item) => {
|
|
146547
146574
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
146548
|
-
item.children
|
|
146575
|
+
item.children?.length > 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
146549
146576
|
unref(permissions)[item.authority] ? (openBlock(), createBlock(_component_el_dropdown, {
|
|
146550
146577
|
key: 0,
|
|
146551
146578
|
size: unref(compSize),
|
|
@@ -146558,32 +146585,25 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
146558
146585
|
default: withCtx(() => [
|
|
146559
146586
|
(openBlock(true), createElementBlock(Fragment, null, renderList(item.children, (sitem) => {
|
|
146560
146587
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
146561
|
-
unref(permissions)[sitem.authority] ? (openBlock(), createBlock(_component_el_dropdown_item, {
|
|
146588
|
+
unref(permissions)[sitem.authority] ? (openBlock(), createBlock(_component_el_dropdown_item, {
|
|
146589
|
+
key: 0,
|
|
146590
|
+
onClick: ($event) => sitem.funcName(sitem.btnName)
|
|
146591
|
+
}, {
|
|
146562
146592
|
default: withCtx(() => [
|
|
146563
|
-
createVNode(
|
|
146564
|
-
|
|
146565
|
-
|
|
146566
|
-
|
|
146567
|
-
|
|
146568
|
-
|
|
146569
|
-
|
|
146570
|
-
}, {
|
|
146571
|
-
default: withCtx(() => [
|
|
146572
|
-
createVNode(_component_star_horse_icon, {
|
|
146573
|
-
"icon-class": item.icon || "edit",
|
|
146574
|
-
color: item.authority == "delete" || item.authority == "batchDelete" ? "var(--el-style-danger)" : "var(--star-horse-style)"
|
|
146575
|
-
}, null, 8, ["icon-class", "color"]),
|
|
146576
|
-
createTextVNode(" " + toDisplayString(sitem.btnName), 1)
|
|
146577
|
-
]),
|
|
146578
|
-
_: 2
|
|
146579
|
-
}, 1032, ["onClick", "type", "size"]),
|
|
146593
|
+
createVNode(_component_star_horse_icon, {
|
|
146594
|
+
"icon-class": item.icon || "edit",
|
|
146595
|
+
width: "27px",
|
|
146596
|
+
size: "18px",
|
|
146597
|
+
color: item.authority == "delete" || item.authority == "batchDelete" ? "#f56c6c" : "var(--star-horse-style)"
|
|
146598
|
+
}, null, 8, ["icon-class", "color"]),
|
|
146599
|
+
createTextVNode(" " + toDisplayString(sitem.btnName) + " ", 1),
|
|
146580
146600
|
sitem.helpMsg ? (openBlock(), createBlock(_sfc_main$1t, {
|
|
146581
146601
|
key: 0,
|
|
146582
146602
|
message: sitem.helpMsg
|
|
146583
146603
|
}, null, 8, ["message"])) : createCommentVNode("", true)
|
|
146584
146604
|
]),
|
|
146585
146605
|
_: 2
|
|
146586
|
-
},
|
|
146606
|
+
}, 1032, ["onClick"])) : createCommentVNode("", true)
|
|
146587
146607
|
], 64);
|
|
146588
146608
|
}), 256))
|
|
146589
146609
|
]),
|
|
@@ -146593,16 +146613,16 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
146593
146613
|
default: withCtx(() => [
|
|
146594
146614
|
createVNode(_component_star_horse_icon, {
|
|
146595
146615
|
"icon-class": item.icon,
|
|
146596
|
-
|
|
146616
|
+
width: "27px",
|
|
146617
|
+
size: "18px"
|
|
146597
146618
|
}, null, 8, ["icon-class"]),
|
|
146598
146619
|
createTextVNode(" " + toDisplayString(item.btnName) + " ", 1)
|
|
146599
146620
|
]),
|
|
146600
146621
|
_: 2
|
|
146601
146622
|
}, 1032, ["size"])) : createCommentVNode("", true)
|
|
146602
146623
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
146603
|
-
unref(permissions)[item.authority] ? (openBlock(), createElementBlock("li", _hoisted_2$m, [
|
|
146604
|
-
|
|
146605
|
-
key: 0,
|
|
146624
|
+
unref(permissions)[item.authority] && item.authority == "upload" ? (openBlock(), createElementBlock("li", _hoisted_2$m, [
|
|
146625
|
+
createVNode(_component_el_upload, {
|
|
146606
146626
|
"auto-upload": true,
|
|
146607
146627
|
"on-change": upload,
|
|
146608
146628
|
"on-error": uploadError,
|
|
@@ -146614,50 +146634,36 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
146614
146634
|
action: __props.compUrl?.importUrl,
|
|
146615
146635
|
headers: { token: unref(getToken)() },
|
|
146616
146636
|
class: "upload",
|
|
146617
|
-
name: "file"
|
|
146618
|
-
|
|
146619
|
-
default: withCtx(() => [
|
|
146620
|
-
createVNode(_component_el_button, {
|
|
146621
|
-
type: "primary",
|
|
146622
|
-
title: "",
|
|
146623
|
-
style: { "color": "var(--star-horse-white)", "margin-left": "5px" },
|
|
146624
|
-
size: unref(compSize)
|
|
146625
|
-
}, {
|
|
146626
|
-
default: withCtx(() => [
|
|
146627
|
-
createVNode(_component_star_horse_icon, {
|
|
146628
|
-
"icon-class": "excel-upload",
|
|
146629
|
-
color: "var(--star-horse-white)"
|
|
146630
|
-
}),
|
|
146631
|
-
_cache[0] || (_cache[0] = createTextVNode(" 导入 "))
|
|
146632
|
-
]),
|
|
146633
|
-
_: 1,
|
|
146634
|
-
__: [0]
|
|
146635
|
-
}, 8, ["size"])
|
|
146636
|
-
]),
|
|
146637
|
-
_: 1
|
|
146638
|
-
}, 8, ["action", "headers"])) : (openBlock(), createBlock(_component_el_button, {
|
|
146639
|
-
key: 1,
|
|
146640
|
-
onClick: ($event) => item.funcName(item.authority),
|
|
146641
|
-
title: "",
|
|
146642
|
-
type: item.authority == "delete" || item.authority == "batchDelete" ? "danger" : "primary",
|
|
146643
|
-
style: { "color": "var(--star-horse-white)", "margin-left": "5px" },
|
|
146644
|
-
size: unref(compSize)
|
|
146637
|
+
name: "file",
|
|
146638
|
+
title: "导入"
|
|
146645
146639
|
}, {
|
|
146646
146640
|
default: withCtx(() => [
|
|
146647
146641
|
createVNode(_component_star_horse_icon, {
|
|
146648
|
-
|
|
146649
|
-
|
|
146650
|
-
|
|
146651
|
-
|
|
146652
|
-
|
|
146642
|
+
title: "导入",
|
|
146643
|
+
width: "27px",
|
|
146644
|
+
size: "18px",
|
|
146645
|
+
"icon-class": "excel-upload"
|
|
146646
|
+
})
|
|
146653
146647
|
]),
|
|
146654
|
-
_:
|
|
146655
|
-
},
|
|
146648
|
+
_: 1
|
|
146649
|
+
}, 8, ["action", "headers"])
|
|
146650
|
+
])) : (openBlock(), createElementBlock("li", {
|
|
146651
|
+
key: 1,
|
|
146652
|
+
onClick: ($event) => item.funcName(item.authority),
|
|
146653
|
+
title: item.btnName
|
|
146654
|
+
}, [
|
|
146655
|
+
createVNode(_component_star_horse_icon, {
|
|
146656
|
+
"icon-class": item.icon || "edit",
|
|
146657
|
+
title: item.btnName,
|
|
146658
|
+
size: "18px",
|
|
146659
|
+
width: "27px",
|
|
146660
|
+
color: item.authority == "delete" || item.authority == "batchDelete" ? "#f56c6c" : "var(--star-horse-style)"
|
|
146661
|
+
}, null, 8, ["icon-class", "title", "color"]),
|
|
146656
146662
|
item.helpMsg ? (openBlock(), createBlock(_sfc_main$1t, {
|
|
146657
|
-
key:
|
|
146663
|
+
key: 0,
|
|
146658
146664
|
message: item.helpMsg
|
|
146659
146665
|
}, null, 8, ["message"])) : createCommentVNode("", true)
|
|
146660
|
-
]
|
|
146666
|
+
], 8, _hoisted_3$c))
|
|
146661
146667
|
], 64))
|
|
146662
146668
|
], 64);
|
|
146663
146669
|
}), 256))
|
|
@@ -146744,7 +146750,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
146744
146750
|
name: "file"
|
|
146745
146751
|
}, {
|
|
146746
146752
|
default: withCtx(() => [
|
|
146747
|
-
createElementVNode("div",
|
|
146753
|
+
createElementVNode("div", _hoisted_4$7, [
|
|
146748
146754
|
createVNode(_component_star_horse_icon, {
|
|
146749
146755
|
"icon-class": "excel-upload",
|
|
146750
146756
|
size: "14px"
|
|
@@ -146768,7 +146774,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
146768
146774
|
key: 0,
|
|
146769
146775
|
message: item.helpMsg
|
|
146770
146776
|
}, null, 8, ["message"])) : createCommentVNode("", true)
|
|
146771
|
-
], 8,
|
|
146777
|
+
], 8, _hoisted_5$6))
|
|
146772
146778
|
]),
|
|
146773
146779
|
_: 2
|
|
146774
146780
|
}, 1032, ["index"])) : createCommentVNode("", true)
|
|
@@ -146788,7 +146794,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
146788
146794
|
|
|
146789
146795
|
/* unplugin-vue-components disabled */
|
|
146790
146796
|
|
|
146791
|
-
const __unplugin_components_2 = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["__scopeId", "data-v-
|
|
146797
|
+
const __unplugin_components_2 = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["__scopeId", "data-v-a41ecf4e"]]);
|
|
146792
146798
|
|
|
146793
146799
|
const StarHorseButtonList = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
146794
146800
|
__proto__: null,
|
|
@@ -147411,8 +147417,6 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
147411
147417
|
showBatchField: { type: Boolean, default: false },
|
|
147412
147418
|
//格式化方法
|
|
147413
147419
|
dataFormat: { type: Function, default: null },
|
|
147414
|
-
/* //按钮大小
|
|
147415
|
-
configInfo.inputSize: {type: String, default: "default"},*/
|
|
147416
147420
|
//禁用事件
|
|
147417
147421
|
disableAction: { type: Boolean, default: false },
|
|
147418
147422
|
//弹窗模式
|
|
@@ -147438,14 +147442,15 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
147438
147442
|
title: { type: String },
|
|
147439
147443
|
//自定义按钮
|
|
147440
147444
|
extendBtns: { type: Array },
|
|
147445
|
+
//预检查方法,如果设置了预检查方法,必须要检查通过后,按钮事件才能继续往下执行
|
|
147446
|
+
preValidFunc: { type: Object, default: {} },
|
|
147441
147447
|
//多选
|
|
147442
147448
|
multipleSelect: { type: Boolean, default: false },
|
|
147443
|
-
//按钮操作权限
|
|
147444
|
-
// permissions: {type: Object, required: true, default: {}},
|
|
147445
147449
|
//行高
|
|
147446
147450
|
lineHeight: { type: String, default: "30px" },
|
|
147447
147451
|
//显示多选框
|
|
147448
147452
|
showSelection: { type: Boolean, default: true },
|
|
147453
|
+
//扩展表格属性
|
|
147449
147454
|
expandTable: { type: Object },
|
|
147450
147455
|
//帮助提示
|
|
147451
147456
|
helpMsg: { type: String },
|
|
@@ -148116,8 +148121,9 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
148116
148121
|
btnPermission: unref(permissions),
|
|
148117
148122
|
extendBtns: __props.extendBtns,
|
|
148118
148123
|
dialogProps: unref(dialogProps),
|
|
148119
|
-
showType: "dropdown"
|
|
148120
|
-
|
|
148124
|
+
showType: "dropdown",
|
|
148125
|
+
preValidFunc: __props.preValidFunc
|
|
148126
|
+
}, null, 8, ["compUrl", "btnPermission", "extendBtns", "dialogProps", "preValidFunc"])) : createCommentVNode("", true)
|
|
148121
148127
|
]),
|
|
148122
148128
|
createElementVNode("div", _hoisted_5$5, [
|
|
148123
148129
|
createVNode(_component_star_horse_icon, {
|
|
@@ -148442,7 +148448,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
148442
148448
|
|
|
148443
148449
|
/* unplugin-vue-components disabled */
|
|
148444
148450
|
|
|
148445
|
-
const __unplugin_components_1$1 = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["__scopeId", "data-v-
|
|
148451
|
+
const __unplugin_components_1$1 = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["__scopeId", "data-v-02d1de15"]]);
|
|
148446
148452
|
|
|
148447
148453
|
const StarHorseTableComp = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
148448
148454
|
__proto__: null,
|