@airpower/web 0.2.40 → 0.2.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/dist/main.js +63 -61
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -9782,7 +9782,7 @@ const _hoisted_5$6 = {
|
|
|
9782
9782
|
class: "footer"
|
|
9783
9783
|
};
|
|
9784
9784
|
const _hoisted_6$4 = { class: "status" };
|
|
9785
|
-
const _hoisted_7$
|
|
9785
|
+
const _hoisted_7$3 = {
|
|
9786
9786
|
key: 0,
|
|
9787
9787
|
class: "control"
|
|
9788
9788
|
};
|
|
@@ -10121,7 +10121,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
10121
10121
|
createElementVNode("div", _hoisted_6$4, [
|
|
10122
10122
|
renderSlot(_ctx.$slots, "status", {}, void 0, true)
|
|
10123
10123
|
]),
|
|
10124
|
-
!__props.hideButtons ? (openBlock(), createElementBlock("div", _hoisted_7$
|
|
10124
|
+
!__props.hideButtons ? (openBlock(), createElementBlock("div", _hoisted_7$3, [
|
|
10125
10125
|
renderSlot(_ctx.$slots, "leftCtrl", {}, void 0, true),
|
|
10126
10126
|
!__props.hideConfirm ? (openBlock(), createBlock(unref(_sfc_main$v), {
|
|
10127
10127
|
key: 0,
|
|
@@ -13960,7 +13960,6 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
13960
13960
|
const _component_el_icon = resolveComponent("el-icon");
|
|
13961
13961
|
const _component_el_input = resolveComponent("el-input");
|
|
13962
13962
|
return openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
13963
|
-
createTextVNode(toDisplayString(formConfig.value) + " ", 1),
|
|
13964
13963
|
formConfig.value && formConfig.value.dateType !== void 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
13965
13964
|
formConfig.value.dateType !== unref(DateTimeType).TIME ? (openBlock(), createBlock(_component_el_date_picker, {
|
|
13966
13965
|
key: 0,
|
|
@@ -14328,7 +14327,7 @@ const _hoisted_3$6 = { class: "web-page-panel-box" };
|
|
|
14328
14327
|
const _hoisted_4$4 = { class: "web-page-header" };
|
|
14329
14328
|
const _hoisted_5$3 = { class: "web-page-title" };
|
|
14330
14329
|
const _hoisted_6$2 = { class: "web-page-goto" };
|
|
14331
|
-
const _hoisted_7$
|
|
14330
|
+
const _hoisted_7$2 = { class: "web-page-jumper" };
|
|
14332
14331
|
const _hoisted_8$1 = {
|
|
14333
14332
|
key: 1,
|
|
14334
14333
|
class: "web-page-total"
|
|
@@ -14488,7 +14487,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
14488
14487
|
}, 1032, ["disabled", "style", "type", "onClick"]);
|
|
14489
14488
|
}), 128))
|
|
14490
14489
|
]),
|
|
14491
|
-
createElementVNode("div", _hoisted_7$
|
|
14490
|
+
createElementVNode("div", _hoisted_7$2, [
|
|
14492
14491
|
createVNode(unref(ElInput), {
|
|
14493
14492
|
modelValue: currentPage.value,
|
|
14494
14493
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => currentPage.value = $event),
|
|
@@ -14539,7 +14538,7 @@ const _hoisted_4$3 = {
|
|
|
14539
14538
|
};
|
|
14540
14539
|
const _hoisted_5$2 = { class: "panel-right" };
|
|
14541
14540
|
const _hoisted_6$1 = { class: "panel-body" };
|
|
14542
|
-
const _hoisted_7 = {
|
|
14541
|
+
const _hoisted_7$1 = {
|
|
14543
14542
|
key: 1,
|
|
14544
14543
|
class: "panel-footer"
|
|
14545
14544
|
};
|
|
@@ -14629,7 +14628,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
14629
14628
|
createElementVNode("div", _hoisted_6$1, [
|
|
14630
14629
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
14631
14630
|
]),
|
|
14632
|
-
!__props.hideFooter ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
14631
|
+
!__props.hideFooter ? (openBlock(), createElementBlock("div", _hoisted_7$1, [
|
|
14633
14632
|
createElementVNode("div", _hoisted_8, [
|
|
14634
14633
|
renderSlot(_ctx.$slots, "footerLeft", {}, void 0, true)
|
|
14635
14634
|
]),
|
|
@@ -17373,15 +17372,16 @@ function useTableColumn(params) {
|
|
|
17373
17372
|
const _hoisted_1$2 = { class: "a-table-toolbar" };
|
|
17374
17373
|
const _hoisted_2$2 = { class: "a-table-toolbar-left" };
|
|
17375
17374
|
const _hoisted_3$2 = { class: "a-table-toolbar-right" };
|
|
17376
|
-
const _hoisted_4$1 = {
|
|
17375
|
+
const _hoisted_4$1 = { class: "a-table-toolbar-search" };
|
|
17376
|
+
const _hoisted_5$1 = {
|
|
17377
17377
|
key: 0,
|
|
17378
17378
|
style: { "color": "#aaa", "margin-right": "3px" }
|
|
17379
17379
|
};
|
|
17380
|
-
const
|
|
17380
|
+
const _hoisted_6 = {
|
|
17381
17381
|
key: 9,
|
|
17382
17382
|
style: { "color": "#aaa" }
|
|
17383
17383
|
};
|
|
17384
|
-
const
|
|
17384
|
+
const _hoisted_7 = { class: "ctrlRow" };
|
|
17385
17385
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
17386
17386
|
__name: "Table",
|
|
17387
17387
|
props: {
|
|
@@ -18032,55 +18032,57 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
18032
18032
|
]),
|
|
18033
18033
|
createElementVNode("div", _hoisted_3$2, [
|
|
18034
18034
|
renderSlot(_ctx.$slots, "beforeSearch"),
|
|
18035
|
-
(
|
|
18036
|
-
|
|
18037
|
-
|
|
18038
|
-
|
|
18039
|
-
!item.hide ? (openBlock(), createElementBlock("div", {
|
|
18040
|
-
key: 0,
|
|
18041
|
-
style: normalizeStyle({ width: `${item.width || 160}px` }),
|
|
18042
|
-
class: "a-table-toolbar-search-item"
|
|
18035
|
+
createElementVNode("div", _hoisted_4$1, [
|
|
18036
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(searchFieldList.value, (item) => {
|
|
18037
|
+
return openBlock(), createElementBlock(Fragment, {
|
|
18038
|
+
key: item.key
|
|
18043
18039
|
}, [
|
|
18044
|
-
|
|
18045
|
-
|
|
18046
|
-
|
|
18047
|
-
|
|
18048
|
-
|
|
18049
|
-
|
|
18050
|
-
|
|
18051
|
-
|
|
18052
|
-
|
|
18053
|
-
|
|
18054
|
-
|
|
18055
|
-
|
|
18056
|
-
|
|
18057
|
-
|
|
18058
|
-
|
|
18059
|
-
|
|
18060
|
-
|
|
18061
|
-
|
|
18062
|
-
|
|
18063
|
-
|
|
18064
|
-
|
|
18065
|
-
|
|
18066
|
-
|
|
18067
|
-
|
|
18068
|
-
|
|
18069
|
-
|
|
18070
|
-
|
|
18071
|
-
|
|
18072
|
-
|
|
18073
|
-
|
|
18074
|
-
|
|
18075
|
-
placeholder:
|
|
18076
|
-
|
|
18077
|
-
|
|
18078
|
-
|
|
18079
|
-
|
|
18080
|
-
|
|
18081
|
-
|
|
18082
|
-
|
|
18083
|
-
|
|
18040
|
+
!item.hide ? (openBlock(), createElementBlock("div", {
|
|
18041
|
+
key: 0,
|
|
18042
|
+
style: normalizeStyle({ width: `${item.width || 160}px` }),
|
|
18043
|
+
class: "a-table-toolbar-search-item"
|
|
18044
|
+
}, [
|
|
18045
|
+
renderSlot(_ctx.$slots, item.key, { data: searchFilter.value }, () => [
|
|
18046
|
+
unref(getDictionary)(__props.entity, item.key) ? (openBlock(), createBlock(unref(ElSelect), {
|
|
18047
|
+
key: 0,
|
|
18048
|
+
modelValue: searchFilter.value[item.key],
|
|
18049
|
+
"onUpdate:modelValue": ($event) => searchFilter.value[item.key] = $event,
|
|
18050
|
+
clearable: item.clearable !== false,
|
|
18051
|
+
filterable: item.filterable,
|
|
18052
|
+
placeholder: `${unref(getFieldLabel)(__props.entity, item.key)}...`,
|
|
18053
|
+
onChange: _cache[2] || (_cache[2] = ($event) => onSearch()),
|
|
18054
|
+
onClear: ($event) => searchFilter.value[item.key] = void 0
|
|
18055
|
+
}, {
|
|
18056
|
+
default: withCtx(() => {
|
|
18057
|
+
var _a;
|
|
18058
|
+
return [
|
|
18059
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList((_a = unref(getDictionary)(__props.entity, item.key)) == null ? void 0 : _a.toArray(), (enumItem) => {
|
|
18060
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
18061
|
+
!enumItem.disabled ? (openBlock(), createBlock(unref(ElOption), {
|
|
18062
|
+
key: enumItem.key.toString(),
|
|
18063
|
+
label: enumItem.label,
|
|
18064
|
+
value: enumItem.key
|
|
18065
|
+
}, null, 8, ["label", "value"])) : createCommentVNode("", true)
|
|
18066
|
+
], 64);
|
|
18067
|
+
}), 256))
|
|
18068
|
+
];
|
|
18069
|
+
}),
|
|
18070
|
+
_: 2
|
|
18071
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "clearable", "filterable", "placeholder", "onClear"])) : (openBlock(), createBlock(unref(ElInput), {
|
|
18072
|
+
key: 1,
|
|
18073
|
+
modelValue: searchFilter.value[item.key],
|
|
18074
|
+
"onUpdate:modelValue": ($event) => searchFilter.value[item.key] = $event,
|
|
18075
|
+
clearable: item.clearable !== false,
|
|
18076
|
+
placeholder: `${unref(getFieldLabel)(__props.entity, item.key)}...`,
|
|
18077
|
+
onBlur: _cache[3] || (_cache[3] = ($event) => onSearch()),
|
|
18078
|
+
onClear: onSearch,
|
|
18079
|
+
onKeydown: withKeys(onSearch, ["enter"])
|
|
18080
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "clearable", "placeholder"]))
|
|
18081
|
+
])
|
|
18082
|
+
], 4)) : createCommentVNode("", true)
|
|
18083
|
+
], 64);
|
|
18084
|
+
}), 128))
|
|
18085
|
+
]),
|
|
18084
18086
|
__props.showExport ? (openBlock(), createBlock(unref(_sfc_main$v), {
|
|
18085
18087
|
key: 0,
|
|
18086
18088
|
permission: __props.exportPermission || unref(PermissionUtil).get(__props.entity, unref(PermissionAction).EXPORT),
|
|
@@ -18157,7 +18159,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
18157
18159
|
data: getRowEntity(scope),
|
|
18158
18160
|
index: scope.$index
|
|
18159
18161
|
}, () => [
|
|
18160
|
-
item.prefixText ? (openBlock(), createElementBlock("span",
|
|
18162
|
+
item.prefixText ? (openBlock(), createElementBlock("span", _hoisted_5$1, toDisplayString(item.prefixText), 1)) : createCommentVNode("", true),
|
|
18161
18163
|
unref(getDictionary)(__props.entity, item.key) ? (openBlock(), createBlock(unref(EnumColumn), {
|
|
18162
18164
|
key: 1,
|
|
18163
18165
|
column: item,
|
|
@@ -18189,7 +18191,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
18189
18191
|
key: 8,
|
|
18190
18192
|
class: normalizeClass([item.wrap ? "" : "nowrap", "a-table-column"])
|
|
18191
18193
|
}, toDisplayString(getStringValue(getValue(scope, item.key)) ?? item.emptyValue), 3)),
|
|
18192
|
-
item.suffixText ? (openBlock(), createElementBlock("span",
|
|
18194
|
+
item.suffixText ? (openBlock(), createElementBlock("span", _hoisted_6, toDisplayString(item.suffixText), 1)) : createCommentVNode("", true)
|
|
18193
18195
|
]) : createCommentVNode("", true)
|
|
18194
18196
|
]),
|
|
18195
18197
|
_: 2
|
|
@@ -18205,7 +18207,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
18205
18207
|
createTextVNode(toDisplayString(unref(WebI18n).get().Operation), 1)
|
|
18206
18208
|
]),
|
|
18207
18209
|
default: withCtx((scope) => [
|
|
18208
|
-
createElementVNode("div",
|
|
18210
|
+
createElementVNode("div", _hoisted_7, [
|
|
18209
18211
|
scope.$index >= 0 ? renderSlot(_ctx.$slots, "customRow", {
|
|
18210
18212
|
key: 0,
|
|
18211
18213
|
data: getRowEntity(scope),
|