star-horse-lowcode 2.7.39 → 2.7.41
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 +2 -0
- package/dist/assets/index.css +1 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.es.js +56 -22
- package/dist/index.umd.js +6 -6
- package/dist/types/index.d.ts +42 -6
- package/package.json +10 -16
package/dist/index.es.js
CHANGED
|
@@ -90389,15 +90389,21 @@ function createCondition(name, val, matchType = "eq") {
|
|
|
90389
90389
|
return { propertyName: name, value: val, operation: matchType };
|
|
90390
90390
|
}
|
|
90391
90391
|
function isJson(v) {
|
|
90392
|
-
if (
|
|
90392
|
+
if (!v) {
|
|
90393
|
+
return false;
|
|
90394
|
+
}
|
|
90395
|
+
if (v && typeof v === "string" && /^\{.*\}$/.test(v) || /^\[.*\]$/.test(v)) {
|
|
90393
90396
|
try {
|
|
90394
90397
|
JSON.parse(v);
|
|
90395
90398
|
return true;
|
|
90396
|
-
} catch {
|
|
90399
|
+
} catch (e) {
|
|
90397
90400
|
return false;
|
|
90398
90401
|
}
|
|
90399
90402
|
}
|
|
90400
|
-
|
|
90403
|
+
if (typeof v === "object" && Object.prototype.toString.call(v).toLowerCase() === "[object object]" && !v.length) {
|
|
90404
|
+
return true;
|
|
90405
|
+
}
|
|
90406
|
+
return false;
|
|
90401
90407
|
}
|
|
90402
90408
|
function formFieldMapping(fieldList) {
|
|
90403
90409
|
let defaultDatas = {};
|
|
@@ -91039,6 +91045,10 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
|
91039
91045
|
className: { type: String },
|
|
91040
91046
|
title: { type: String, default: "" },
|
|
91041
91047
|
size: { type: String, default: "20px" },
|
|
91048
|
+
width: { type: String, default: "20px" },
|
|
91049
|
+
height: { type: String, default: "20px" },
|
|
91050
|
+
marginLeft: { type: String, default: "0.1em" },
|
|
91051
|
+
marginRight: { type: String, default: "0.1em" },
|
|
91042
91052
|
// 图标是否有边框
|
|
91043
91053
|
boxShow: { type: Boolean, default: false },
|
|
91044
91054
|
border: { type: Boolean, default: false },
|
|
@@ -91047,16 +91057,20 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
|
91047
91057
|
},
|
|
91048
91058
|
setup(__props) {
|
|
91049
91059
|
useCssVars((_ctx) => ({
|
|
91050
|
-
"
|
|
91051
|
-
"
|
|
91052
|
-
"
|
|
91060
|
+
"9cd16c0a": __props.cursor,
|
|
91061
|
+
"30190e81": __props.width,
|
|
91062
|
+
"8d8c7068": __props.height,
|
|
91063
|
+
"2f02101e": __props.color,
|
|
91064
|
+
"e4230834": __props.size,
|
|
91065
|
+
"ddf5220c": __props.marginLeft,
|
|
91066
|
+
"e0025cee": __props.marginRight
|
|
91053
91067
|
}));
|
|
91054
91068
|
const props = __props;
|
|
91055
91069
|
const iconName = computed(() => `sh-${props.iconClass}`);
|
|
91056
91070
|
const svgClass = computed(() => {
|
|
91057
91071
|
let cls = props.border ? "sh_icon svg-icon icon-border" : props.boxShow ? "sh_icon svg-icon icon-cls" : "sh_icon svg-icon";
|
|
91058
91072
|
if (props.className) {
|
|
91059
|
-
return cls + props.className;
|
|
91073
|
+
return cls + " " + props.className;
|
|
91060
91074
|
} else {
|
|
91061
91075
|
return cls;
|
|
91062
91076
|
}
|
|
@@ -91081,7 +91095,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
91081
91095
|
return target;
|
|
91082
91096
|
};
|
|
91083
91097
|
|
|
91084
|
-
const __unplugin_components_1$4 = /* @__PURE__ */ _export_sfc(_sfc_main$1P, [["__scopeId", "data-v-
|
|
91098
|
+
const __unplugin_components_1$4 = /* @__PURE__ */ _export_sfc(_sfc_main$1P, [["__scopeId", "data-v-0af66a25"]]);
|
|
91085
91099
|
|
|
91086
91100
|
const StarHorseIcon = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
91087
91101
|
__proto__: null,
|
|
@@ -92841,6 +92855,9 @@ const _sfc_main$1H = /* @__PURE__ */ defineComponent({
|
|
|
92841
92855
|
if (item.type == "select" || item.type == "checkbox" || item.type == "radio") {
|
|
92842
92856
|
return item.preps?.values?.find((temp) => String(temp.value) == val)?.name || val;
|
|
92843
92857
|
}
|
|
92858
|
+
if (item.type == "date" || item.type == "datetime") {
|
|
92859
|
+
return createDatetime(val);
|
|
92860
|
+
}
|
|
92844
92861
|
if (props.commonFormat && scope.column.property) {
|
|
92845
92862
|
return props.commonFormat(scope.column.property, val, scope.row);
|
|
92846
92863
|
}
|
|
@@ -98053,13 +98070,20 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
|
98053
98070
|
temp.actions(dataForm, "oper");
|
|
98054
98071
|
}
|
|
98055
98072
|
}
|
|
98056
|
-
|
|
98057
|
-
|
|
98058
|
-
|
|
98059
|
-
|
|
98060
|
-
|
|
98061
|
-
|
|
98062
|
-
|
|
98073
|
+
nextTick(() => {
|
|
98074
|
+
const tryScroll = (attempt = 0) => {
|
|
98075
|
+
const tableEl = starHorseFormListRef.value?.$el;
|
|
98076
|
+
const scrollContainer = tableEl?.querySelector(".el-table--scrollable-y .el-scrollbar__wrap");
|
|
98077
|
+
if (scrollContainer) {
|
|
98078
|
+
if (type === 1) {
|
|
98079
|
+
scrollContainer.scrollTop = scrollContainer.scrollHeight - scrollContainer.clientHeight;
|
|
98080
|
+
}
|
|
98081
|
+
} else if (attempt < 3) {
|
|
98082
|
+
setTimeout(() => tryScroll(attempt + 1), 50);
|
|
98083
|
+
}
|
|
98084
|
+
};
|
|
98085
|
+
tryScroll();
|
|
98086
|
+
});
|
|
98063
98087
|
};
|
|
98064
98088
|
const getRowIdentity = (row) => {
|
|
98065
98089
|
return (row.xh || 0) + 1;
|
|
@@ -98327,6 +98351,12 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
|
98327
98351
|
class: "sh-columns",
|
|
98328
98352
|
stripe: true,
|
|
98329
98353
|
virtual: true,
|
|
98354
|
+
"virtual-scroll-threshold": 10,
|
|
98355
|
+
"virtual-scroll-options": {
|
|
98356
|
+
scrollSensitivity: 60,
|
|
98357
|
+
scrollDebounce: 20
|
|
98358
|
+
},
|
|
98359
|
+
"use-virtual": dataForm.value[__props.batchName]?.length > 10,
|
|
98330
98360
|
"header-cell-style": {
|
|
98331
98361
|
background: "#f2f2f2",
|
|
98332
98362
|
color: "#707070",
|
|
@@ -98421,7 +98451,7 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
|
98421
98451
|
]), 1024)
|
|
98422
98452
|
]),
|
|
98423
98453
|
_: 1
|
|
98424
|
-
}, 8, ["data", "size", "row-class-name"])), [
|
|
98454
|
+
}, 8, ["data", "size", "row-class-name", "use-virtual"])), [
|
|
98425
98455
|
[_directive_loading, loading.value]
|
|
98426
98456
|
]),
|
|
98427
98457
|
!__props.isView ? (openBlock(), createElementBlock("div", {
|
|
@@ -98443,7 +98473,7 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
|
98443
98473
|
|
|
98444
98474
|
/* unplugin-vue-components disabled */
|
|
98445
98475
|
|
|
98446
|
-
const __unplugin_components_0$3 = /* @__PURE__ */ _export_sfc(_sfc_main$1r, [["__scopeId", "data-v-
|
|
98476
|
+
const __unplugin_components_0$3 = /* @__PURE__ */ _export_sfc(_sfc_main$1r, [["__scopeId", "data-v-0d6d3622"]]);
|
|
98447
98477
|
|
|
98448
98478
|
const StarHorseFormList = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
98449
98479
|
__proto__: null,
|
|
@@ -148412,7 +148442,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
148412
148442
|
|
|
148413
148443
|
/* unplugin-vue-components disabled */
|
|
148414
148444
|
|
|
148415
|
-
const __unplugin_components_1$1 = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["__scopeId", "data-v-
|
|
148445
|
+
const __unplugin_components_1$1 = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["__scopeId", "data-v-dc9f0df4"]]);
|
|
148416
148446
|
|
|
148417
148447
|
const StarHorseTableComp = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
148418
148448
|
__proto__: null,
|
|
@@ -173408,7 +173438,9 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
173408
173438
|
}, null, 8, ["style", "icon"])) : (openBlock(), createBlock(__unplugin_components_1$4, {
|
|
173409
173439
|
key: 1,
|
|
173410
173440
|
"icon-class": formData.value[__props.field.preps["name"]],
|
|
173411
|
-
size: "
|
|
173441
|
+
size: "30px",
|
|
173442
|
+
width: "30px",
|
|
173443
|
+
height: "30px",
|
|
173412
173444
|
style: { "font-size": "50px", "color": "var(--star-horse-style)", "border-radius": "3px", "border": "1px solid var(--star-horse-light-gray)" },
|
|
173413
173445
|
cursor: "pointer"
|
|
173414
173446
|
}, null, 8, ["icon-class"]))
|
|
@@ -173443,7 +173475,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
173443
173475
|
unref(iconType) == "system" ? (openBlock(), createBlock(_component_el_icon, {
|
|
173444
173476
|
key: 0,
|
|
173445
173477
|
class: "star-icon",
|
|
173446
|
-
style: { "font-size": "
|
|
173478
|
+
style: { "font-size": "35px", "color": "var(--star-horse-style)" }
|
|
173447
173479
|
}, {
|
|
173448
173480
|
default: withCtx(() => [
|
|
173449
173481
|
(openBlock(), createBlock(resolveDynamicComponent(sdata.value)))
|
|
@@ -173453,7 +173485,9 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
173453
173485
|
key: 1,
|
|
173454
173486
|
"icon-class": sdata.value,
|
|
173455
173487
|
size: "30px",
|
|
173456
|
-
|
|
173488
|
+
width: "30px",
|
|
173489
|
+
height: "30px",
|
|
173490
|
+
style: { "color": "var(--star-horse-style)" },
|
|
173457
173491
|
cursor: "pointer"
|
|
173458
173492
|
}, null, 8, ["icon-class"]))
|
|
173459
173493
|
], 10, _hoisted_4$1);
|
|
@@ -173472,7 +173506,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
173472
173506
|
|
|
173473
173507
|
/* unplugin-vue-components disabled */
|
|
173474
173508
|
|
|
173475
|
-
const iconItem = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-
|
|
173509
|
+
const iconItem = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-c91a3886"]]);
|
|
173476
173510
|
|
|
173477
173511
|
const iconItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
173478
173512
|
__proto__: null,
|