@airpower/web 1.8.1 → 1.8.3
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/config/WebConfig.d.ts +0 -1
- package/dist/main.js +24 -19
- package/dist/web.css +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -558,8 +558,7 @@ var zhCn = {
|
|
|
558
558
|
tour: {
|
|
559
559
|
next: "下一步",
|
|
560
560
|
previous: "上一步",
|
|
561
|
-
finish: "结束导览"
|
|
562
|
-
close: "关闭此对话框"
|
|
561
|
+
finish: "结束导览"
|
|
563
562
|
},
|
|
564
563
|
tree: {
|
|
565
564
|
emptyText: "暂无数据"
|
|
@@ -17126,7 +17125,6 @@ function useBaseTable(serviceClass, option = {}) {
|
|
|
17126
17125
|
request.value.page = page;
|
|
17127
17126
|
onGetList();
|
|
17128
17127
|
}
|
|
17129
|
-
onGetList();
|
|
17130
17128
|
return {
|
|
17131
17129
|
entity,
|
|
17132
17130
|
service,
|
|
@@ -17289,11 +17287,12 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
17289
17287
|
underline: "never",
|
|
17290
17288
|
onClick: ($event) => props.props.onConfirm(data)
|
|
17291
17289
|
}, {
|
|
17292
|
-
default: withCtx(() =>
|
|
17290
|
+
default: withCtx(() => _cache[2] || (_cache[2] = [
|
|
17293
17291
|
createTextVNode(" 选择 ", -1)
|
|
17294
|
-
])
|
|
17295
|
-
_:
|
|
17296
|
-
|
|
17292
|
+
])),
|
|
17293
|
+
_: 2,
|
|
17294
|
+
__: [2]
|
|
17295
|
+
}, 1032, ["disabled", "onClick"])
|
|
17297
17296
|
]),
|
|
17298
17297
|
key: "0"
|
|
17299
17298
|
} : void 0
|
|
@@ -18398,6 +18397,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
18398
18397
|
function onReset() {
|
|
18399
18398
|
if (props.defaultFilter) {
|
|
18400
18399
|
searchFilter.value = props.defaultFilter;
|
|
18400
|
+
} else if (props.useHook) {
|
|
18401
|
+
searchFilter.value = props.useHook.request.value?.filter;
|
|
18401
18402
|
} else {
|
|
18402
18403
|
searchFilter.value = entityInstance.copy();
|
|
18403
18404
|
}
|
|
@@ -18422,6 +18423,10 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
18422
18423
|
hook.onSearch(request.value);
|
|
18423
18424
|
}
|
|
18424
18425
|
}
|
|
18426
|
+
if (props.defaultFilter) {
|
|
18427
|
+
searchFilter.value = props.defaultFilter;
|
|
18428
|
+
}
|
|
18429
|
+
onSearch();
|
|
18425
18430
|
return (_ctx, _cache) => {
|
|
18426
18431
|
const _directive_loading = resolveDirective("loading");
|
|
18427
18432
|
return openBlock(), createElementBlock("div", {
|
|
@@ -18665,8 +18670,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
18665
18670
|
default: withCtx(() => [
|
|
18666
18671
|
createTextVNode(toDisplayString(unref(WebI18n).get().Add), 1)
|
|
18667
18672
|
]),
|
|
18668
|
-
_:
|
|
18669
|
-
},
|
|
18673
|
+
_: 2
|
|
18674
|
+
}, 1032, ["disabled", "onClick"])) : createCommentVNode("", true),
|
|
18670
18675
|
!props.hideEdit ? (openBlock(), createBlock(unref(ElLink), {
|
|
18671
18676
|
key: 2,
|
|
18672
18677
|
disabled: unref(isEditDisabled)(getRowEntity(scope)),
|
|
@@ -18676,8 +18681,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
18676
18681
|
default: withCtx(() => [
|
|
18677
18682
|
createTextVNode(toDisplayString(unref(WebI18n).get().Update), 1)
|
|
18678
18683
|
]),
|
|
18679
|
-
_:
|
|
18680
|
-
},
|
|
18684
|
+
_: 2
|
|
18685
|
+
}, 1032, ["disabled", "onClick"])) : createCommentVNode("", true),
|
|
18681
18686
|
__props.showDetail ? (openBlock(), createBlock(unref(ElLink), {
|
|
18682
18687
|
key: 3,
|
|
18683
18688
|
disabled: unref(isDetailDisabled)(getRowEntity(scope)),
|
|
@@ -18687,8 +18692,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
18687
18692
|
default: withCtx(() => [
|
|
18688
18693
|
createTextVNode(toDisplayString(unref(WebI18n).get().Detail), 1)
|
|
18689
18694
|
]),
|
|
18690
|
-
_:
|
|
18691
|
-
},
|
|
18695
|
+
_: 2
|
|
18696
|
+
}, 1032, ["disabled", "onClick"])) : createCommentVNode("", true),
|
|
18692
18697
|
__props.showEnableAndDisable ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
|
|
18693
18698
|
getRowEntity(scope).isDisabled ? (openBlock(), createBlock(unref(ElLink), {
|
|
18694
18699
|
key: 0,
|
|
@@ -18699,8 +18704,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
18699
18704
|
default: withCtx(() => [
|
|
18700
18705
|
createTextVNode(toDisplayString(unref(WebI18n).get().Enable), 1)
|
|
18701
18706
|
]),
|
|
18702
|
-
_:
|
|
18703
|
-
},
|
|
18707
|
+
_: 2
|
|
18708
|
+
}, 1032, ["disabled", "onClick"])) : (openBlock(), createBlock(unref(ElLink), {
|
|
18704
18709
|
key: 1,
|
|
18705
18710
|
disabled: unref(isDisableChangeStatus)(getRowEntity(scope)),
|
|
18706
18711
|
type: "warning",
|
|
@@ -18710,8 +18715,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
18710
18715
|
default: withCtx(() => [
|
|
18711
18716
|
createTextVNode(toDisplayString(unref(WebI18n).get().Disable), 1)
|
|
18712
18717
|
]),
|
|
18713
|
-
_:
|
|
18714
|
-
},
|
|
18718
|
+
_: 2
|
|
18719
|
+
}, 1032, ["disabled", "onClick"]))
|
|
18715
18720
|
], 64)) : createCommentVNode("", true),
|
|
18716
18721
|
!__props.hideDelete ? (openBlock(), createBlock(unref(ElLink), {
|
|
18717
18722
|
key: 5,
|
|
@@ -18723,8 +18728,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
18723
18728
|
default: withCtx(() => [
|
|
18724
18729
|
createTextVNode(toDisplayString(unref(WebI18n).get().Delete), 1)
|
|
18725
18730
|
]),
|
|
18726
|
-
_:
|
|
18727
|
-
},
|
|
18731
|
+
_: 2
|
|
18732
|
+
}, 1032, ["disabled", "onClick"])) : createCommentVNode("", true),
|
|
18728
18733
|
scope.$index >= 0 ? renderSlot(_ctx.$slots, "endRow", {
|
|
18729
18734
|
key: 6,
|
|
18730
18735
|
data: getRowEntity(scope),
|