zzz-pc-view 0.0.129 → 0.0.131
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/package.json +1 -1
- package/src/index.es.js +55 -41
- package/src/index.umd.js +2 -2
package/package.json
CHANGED
package/src/index.es.js
CHANGED
|
@@ -5108,7 +5108,7 @@ class CurdApi {
|
|
|
5108
5108
|
}),
|
|
5109
5109
|
// 处理响应数据
|
|
5110
5110
|
(response2) => {
|
|
5111
|
-
response2 = this.Target.bindList(response2);
|
|
5111
|
+
response2 = this.Target.bindList(response2 ?? []);
|
|
5112
5112
|
const { treeKey } = this;
|
|
5113
5113
|
if (treeKey) {
|
|
5114
5114
|
response2 = createBySelf(
|
|
@@ -5946,7 +5946,7 @@ class CurdHandler extends FilterHandler {
|
|
|
5946
5946
|
* @param {number} total - 列表数据的总数。
|
|
5947
5947
|
*/
|
|
5948
5948
|
setList(list2, total) {
|
|
5949
|
-
this.listRef.value = list2;
|
|
5949
|
+
this.listRef.value = list2.length > 0 && list2[0] instanceof this.CurdTarget ? this.CurdTarget.bindList(list2) : list2;
|
|
5950
5950
|
this.totalRef.value = total;
|
|
5951
5951
|
}
|
|
5952
5952
|
/**
|
|
@@ -5969,10 +5969,10 @@ class CurdHandler extends FilterHandler {
|
|
|
5969
5969
|
const data = await this.listRequestUtil.requestData(
|
|
5970
5970
|
api2.getListByPage(this.pagination, query)
|
|
5971
5971
|
);
|
|
5972
|
-
this.setList(
|
|
5972
|
+
this.setList(data.list || [], data.total);
|
|
5973
5973
|
} else {
|
|
5974
5974
|
const data = await this.listRequestUtil.requestData(api2.getList(query));
|
|
5975
|
-
this.setList(
|
|
5975
|
+
this.setList(data || [], (data == null ? void 0 : data.length) ?? 0);
|
|
5976
5976
|
}
|
|
5977
5977
|
} catch (e) {
|
|
5978
5978
|
if (e.code !== ABORTED_CODE) {
|
|
@@ -12269,8 +12269,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
12269
12269
|
}
|
|
12270
12270
|
});
|
|
12271
12271
|
const _hoisted_1$a = { class: "flex column wrapper data-wrapper" };
|
|
12272
|
-
const _hoisted_2$
|
|
12273
|
-
const _hoisted_3$
|
|
12272
|
+
const _hoisted_2$7 = { class: "flex flex-wrap gap-10 data-wrapper-header" };
|
|
12273
|
+
const _hoisted_3$5 = { class: "flex gap-10 data-wrapper-footer" };
|
|
12274
12274
|
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
12275
12275
|
__name: "DataWrapperView",
|
|
12276
12276
|
props: {
|
|
@@ -12280,7 +12280,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
12280
12280
|
return (_ctx, _cache) => {
|
|
12281
12281
|
const _component_el_scrollbar = resolveComponent("el-scrollbar");
|
|
12282
12282
|
return openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
12283
|
-
createElementVNode("div", _hoisted_2$
|
|
12283
|
+
createElementVNode("div", _hoisted_2$7, [
|
|
12284
12284
|
renderSlot(_ctx.$slots, "header")
|
|
12285
12285
|
]),
|
|
12286
12286
|
createVNode(_component_el_scrollbar, {
|
|
@@ -12292,7 +12292,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
12292
12292
|
]),
|
|
12293
12293
|
_: 3
|
|
12294
12294
|
}, 8, ["view-class"]),
|
|
12295
|
-
createElementVNode("div", _hoisted_3$
|
|
12295
|
+
createElementVNode("div", _hoisted_3$5, [
|
|
12296
12296
|
renderSlot(_ctx.$slots, "footer")
|
|
12297
12297
|
]),
|
|
12298
12298
|
renderSlot(_ctx.$slots, "extra")
|
|
@@ -12480,12 +12480,12 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
12480
12480
|
}
|
|
12481
12481
|
});
|
|
12482
12482
|
const _hoisted_1$9 = { class: "flex gap-layout wrapper" };
|
|
12483
|
-
const _hoisted_2$
|
|
12483
|
+
const _hoisted_2$6 = {
|
|
12484
12484
|
key: 0,
|
|
12485
12485
|
class: "curd-list-aside"
|
|
12486
12486
|
};
|
|
12487
|
-
const _hoisted_3$
|
|
12488
|
-
const _hoisted_4$
|
|
12487
|
+
const _hoisted_3$4 = { class: "flex-1 fit-size curd-list-content" };
|
|
12488
|
+
const _hoisted_4$4 = {
|
|
12489
12489
|
key: 1,
|
|
12490
12490
|
class: "curd-list-aside"
|
|
12491
12491
|
};
|
|
@@ -12515,7 +12515,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
12515
12515
|
]),
|
|
12516
12516
|
body: withCtx(() => [
|
|
12517
12517
|
createElementVNode("div", _hoisted_1$9, [
|
|
12518
|
-
_ctx.viewHandler.displayFilterConfigMap[unref(ZDecorators).FilterKey.PositionEnum.LEFT] ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
12518
|
+
_ctx.viewHandler.displayFilterConfigMap[unref(ZDecorators).FilterKey.PositionEnum.LEFT] ? (openBlock(), createElementBlock("div", _hoisted_2$6, [
|
|
12519
12519
|
createVNode(_sfc_main$m, {
|
|
12520
12520
|
"view-handler": _ctx.viewHandler,
|
|
12521
12521
|
position: unref(ZDecorators).FilterKey.PositionEnum.LEFT,
|
|
@@ -12529,7 +12529,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
12529
12529
|
class: "flex column wrapper"
|
|
12530
12530
|
}, {
|
|
12531
12531
|
default: withCtx(() => [
|
|
12532
|
-
createElementVNode("div", _hoisted_3$
|
|
12532
|
+
createElementVNode("div", _hoisted_3$4, [
|
|
12533
12533
|
createVNode(_sfc_main$i, { "view-handler": _ctx.viewHandler }, null, 8, ["view-handler"])
|
|
12534
12534
|
])
|
|
12535
12535
|
]),
|
|
@@ -12538,7 +12538,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
12538
12538
|
[_directive_loading, _ctx.viewHandler.listLoadStatus]
|
|
12539
12539
|
])
|
|
12540
12540
|
]),
|
|
12541
|
-
_ctx.viewHandler.displayFilterConfigMap[unref(ZDecorators).FilterKey.PositionEnum.RIGHT] ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
12541
|
+
_ctx.viewHandler.displayFilterConfigMap[unref(ZDecorators).FilterKey.PositionEnum.RIGHT] ? (openBlock(), createElementBlock("div", _hoisted_4$4, [
|
|
12542
12542
|
createVNode(_sfc_main$m, {
|
|
12543
12543
|
"view-handler": _ctx.viewHandler,
|
|
12544
12544
|
position: unref(ZDecorators).FilterKey.PositionEnum.RIGHT,
|
|
@@ -12925,6 +12925,12 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
12925
12925
|
}
|
|
12926
12926
|
});
|
|
12927
12927
|
const _hoisted_1$6 = {
|
|
12928
|
+
key: 0,
|
|
12929
|
+
class: "flex column wrapper"
|
|
12930
|
+
};
|
|
12931
|
+
const _hoisted_2$5 = { key: 0 };
|
|
12932
|
+
const _hoisted_3$3 = { class: "flex-1 fit-size" };
|
|
12933
|
+
const _hoisted_4$3 = {
|
|
12928
12934
|
key: 1,
|
|
12929
12935
|
class: "wrapper z-form"
|
|
12930
12936
|
};
|
|
@@ -12962,33 +12968,41 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
12962
12968
|
class: "align-right"
|
|
12963
12969
|
}, null, 8, ["view-handler", "save-btn-option", "show-save-and-continue-btn"])
|
|
12964
12970
|
]),
|
|
12965
|
-
default: withCtx(() =>
|
|
12966
|
-
|
|
12967
|
-
|
|
12968
|
-
|
|
12969
|
-
|
|
12970
|
-
|
|
12971
|
-
"
|
|
12972
|
-
|
|
12973
|
-
|
|
12974
|
-
|
|
12975
|
-
|
|
12976
|
-
|
|
12977
|
-
|
|
12978
|
-
|
|
12979
|
-
|
|
12980
|
-
|
|
12981
|
-
|
|
12982
|
-
|
|
12983
|
-
|
|
12984
|
-
|
|
12985
|
-
|
|
12986
|
-
|
|
12987
|
-
|
|
12988
|
-
|
|
12989
|
-
|
|
12990
|
-
|
|
12991
|
-
|
|
12971
|
+
default: withCtx(() => {
|
|
12972
|
+
var _a2, _b2, _c2, _d2, _e2, _f2;
|
|
12973
|
+
return [
|
|
12974
|
+
withDirectives((openBlock(), createElementBlock("div", {
|
|
12975
|
+
style: normalizeStyle({ height: _ctx.formHeight })
|
|
12976
|
+
}, [
|
|
12977
|
+
_ctx.viewHandler.editorData ? (openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
12978
|
+
((_b2 = (_a2 = _ctx.viewHandler.formParam) == null ? void 0 : _a2.steps) == null ? void 0 : _b2[_ctx.viewHandler.formStepIndex]) ? (openBlock(), createElementBlock("div", _hoisted_2$5, [
|
|
12979
|
+
createElementVNode("h4", null, toDisplayString((_d2 = (_c2 = _ctx.viewHandler.formParam) == null ? void 0 : _c2.steps) == null ? void 0 : _d2[_ctx.viewHandler.formStepIndex].label), 1),
|
|
12980
|
+
createElementVNode("span", null, toDisplayString((_f2 = (_e2 = _ctx.viewHandler.formParam) == null ? void 0 : _e2.steps) == null ? void 0 : _f2[_ctx.viewHandler.formStepIndex].desc), 1)
|
|
12981
|
+
])) : createCommentVNode("", true),
|
|
12982
|
+
createElementVNode("div", _hoisted_3$3, [
|
|
12983
|
+
createVNode(_component_el_scrollbar, { "view-class": "dialog-editor-form-scrollbar-view" }, {
|
|
12984
|
+
default: withCtx(() => [
|
|
12985
|
+
createVNode(_sfc_main$b, { "view-handler": _ctx.viewHandler }, null, 8, ["view-handler"])
|
|
12986
|
+
]),
|
|
12987
|
+
_: 1
|
|
12988
|
+
})
|
|
12989
|
+
])
|
|
12990
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_4$3, [
|
|
12991
|
+
createElementVNode("div", {
|
|
12992
|
+
ref: unref(skeletonRow).setSkeletonContainer,
|
|
12993
|
+
class: "wrapper"
|
|
12994
|
+
}, [
|
|
12995
|
+
createVNode(_component_el_skeleton, {
|
|
12996
|
+
rows: unref(skeletonRow).rows,
|
|
12997
|
+
animated: ""
|
|
12998
|
+
}, null, 8, ["rows"])
|
|
12999
|
+
], 512)
|
|
13000
|
+
]))
|
|
13001
|
+
], 4)), [
|
|
13002
|
+
[_directive_loading, _ctx.viewHandler.saveEditorDataLoadStatus]
|
|
13003
|
+
])
|
|
13004
|
+
];
|
|
13005
|
+
}),
|
|
12992
13006
|
_: 3
|
|
12993
13007
|
}, 8, ["title", "modelValue", "onOpened", "onClosed"]);
|
|
12994
13008
|
};
|