paas-component-library 1.1.5 → 1.1.7
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/paas-ui.js
CHANGED
|
@@ -40834,6 +40834,7 @@ function bQ(e, r, s, c, l, u) {
|
|
|
40834
40834
|
"before-upload": u.beforeUpload,
|
|
40835
40835
|
name: s.multiple ? "files" : "file",
|
|
40836
40836
|
placeholder: s.placeholder,
|
|
40837
|
+
multiple: s.multiple,
|
|
40837
40838
|
style: { width: "100%" }
|
|
40838
40839
|
}, {
|
|
40839
40840
|
default: O(() => [...r[2] ||= [i("p", { class: "ant-upload-drag-icon" }, [i("i", { class: "anticon anticon-inbox" })], -1), i("p", { class: "ant-upload-text" }, "点击或拖拽文件到此区域上传", -1)]]),
|
|
@@ -40842,12 +40843,13 @@ function bQ(e, r, s, c, l, u) {
|
|
|
40842
40843
|
"fileList",
|
|
40843
40844
|
"before-upload",
|
|
40844
40845
|
"name",
|
|
40845
|
-
"placeholder"
|
|
40846
|
+
"placeholder",
|
|
40847
|
+
"multiple"
|
|
40846
40848
|
])]),
|
|
40847
40849
|
_: 1
|
|
40848
40850
|
}, 16, ["open", "title"]);
|
|
40849
40851
|
}
|
|
40850
|
-
var xQ = /* @__PURE__ */ F(yQ, [["render", bQ], ["__scopeId", "data-v-
|
|
40852
|
+
var xQ = /* @__PURE__ */ F(yQ, [["render", bQ], ["__scopeId", "data-v-7d140d36"]]);
|
|
40851
40853
|
P.default.extend(me.default), P.default.extend(he.default), P.default.locale("zh-cn");
|
|
40852
40854
|
var SQ = {
|
|
40853
40855
|
name: "FormDate",
|
|
@@ -51138,10 +51140,16 @@ function b$(e, n, r, i, a, o) {
|
|
|
51138
51140
|
}
|
|
51139
51141
|
var x$ = /* @__PURE__ */ F(y$, [["render", b$], ["__scopeId", "data-v-541aea24"]]), S$ = {
|
|
51140
51142
|
name: "MenuItemNode",
|
|
51141
|
-
props: {
|
|
51142
|
-
|
|
51143
|
-
|
|
51144
|
-
|
|
51143
|
+
props: {
|
|
51144
|
+
node: {
|
|
51145
|
+
type: Object,
|
|
51146
|
+
required: !0
|
|
51147
|
+
},
|
|
51148
|
+
readonly: {
|
|
51149
|
+
type: Boolean,
|
|
51150
|
+
default: !1
|
|
51151
|
+
}
|
|
51152
|
+
},
|
|
51145
51153
|
methods: {
|
|
51146
51154
|
stop(e) {
|
|
51147
51155
|
e && e.stopPropagation && e.stopPropagation();
|
|
@@ -51177,7 +51185,7 @@ function D$(n, s, c, l, u, d) {
|
|
|
51177
51185
|
}, {
|
|
51178
51186
|
title: O(() => [i("div", {
|
|
51179
51187
|
class: "menu-title clickable",
|
|
51180
|
-
onClick: s[3] ||= k((e) => d.toggleOpen(c.node), ["stop"])
|
|
51188
|
+
onClick: s[3] ||= k((e) => !c.readonly && d.toggleOpen(c.node), ["stop"])
|
|
51181
51189
|
}, [i("span", C$, [o(m, { trigger: "contextmenu" }, {
|
|
51182
51190
|
overlay: O(() => [o(p, null, {
|
|
51183
51191
|
default: O(() => [
|
|
@@ -51243,7 +51251,7 @@ function D$(n, s, c, l, u, d) {
|
|
|
51243
51251
|
//#region src/components/PaasTreePanel/index.vue
|
|
51244
51252
|
var O$ = {
|
|
51245
51253
|
name: "PaasTreePanel",
|
|
51246
|
-
components: { MenuItemNode: /* @__PURE__ */ F(S$, [["render", D$], ["__scopeId", "data-v-
|
|
51254
|
+
components: { MenuItemNode: /* @__PURE__ */ F(S$, [["render", D$], ["__scopeId", "data-v-e55ff356"]]) },
|
|
51247
51255
|
computed: { see() {
|
|
51248
51256
|
return this.$store?.forms?.see || !1;
|
|
51249
51257
|
} },
|
|
@@ -51263,6 +51271,14 @@ var O$ = {
|
|
|
51263
51271
|
listToTree: {
|
|
51264
51272
|
type: Boolean,
|
|
51265
51273
|
default: !0
|
|
51274
|
+
},
|
|
51275
|
+
url: {
|
|
51276
|
+
type: String,
|
|
51277
|
+
default: "/system/sys-group/list"
|
|
51278
|
+
},
|
|
51279
|
+
readonly: {
|
|
51280
|
+
type: Boolean,
|
|
51281
|
+
default: !1
|
|
51266
51282
|
}
|
|
51267
51283
|
},
|
|
51268
51284
|
emits: ["update:modelValue", "change"],
|
|
@@ -51301,7 +51317,7 @@ var O$ = {
|
|
|
51301
51317
|
return e ? Array.isArray(e) ? e.filter(Boolean).map(String) : typeof e == "string" ? e.includes(",") ? e.split(",").filter(Boolean).map(String) : [e] : [String(e)] : [];
|
|
51302
51318
|
},
|
|
51303
51319
|
getTreeData() {
|
|
51304
|
-
this.$post(
|
|
51320
|
+
this.$post(this.url, {
|
|
51305
51321
|
page: {
|
|
51306
51322
|
current: 1,
|
|
51307
51323
|
size: 1e6
|
|
@@ -51431,8 +51447,11 @@ var O$ = {
|
|
|
51431
51447
|
});
|
|
51432
51448
|
}
|
|
51433
51449
|
}
|
|
51434
|
-
}, k$ = {
|
|
51435
|
-
|
|
51450
|
+
}, k$ = {
|
|
51451
|
+
key: 0,
|
|
51452
|
+
style: { "text-align": "center" }
|
|
51453
|
+
};
|
|
51454
|
+
function A$(i, s, c, l, u, d) {
|
|
51436
51455
|
let f = C("menu-item-node"), p = C("a-menu"), h = C("a-button"), g = C("a-input"), _ = C("a-form-item"), y = C("a-form"), b = C("a-modal");
|
|
51437
51456
|
return v(), r("div", null, [
|
|
51438
51457
|
o(p, {
|
|
@@ -51448,6 +51467,7 @@ function A$(n, s, c, l, u, d) {
|
|
|
51448
51467
|
})
|
|
51449
51468
|
}, {
|
|
51450
51469
|
default: O(() => [(v(!0), r(e, null, x(u.treeData, (e) => (v(), t(f, {
|
|
51470
|
+
readonly: c.readonly,
|
|
51451
51471
|
key: e.value,
|
|
51452
51472
|
node: e,
|
|
51453
51473
|
onSelect: d.handleSelectFromNode,
|
|
@@ -51455,6 +51475,7 @@ function A$(n, s, c, l, u, d) {
|
|
|
51455
51475
|
onDelete: d.confirmDeleteGroup,
|
|
51456
51476
|
onAddChild: d.openAddChildOf
|
|
51457
51477
|
}, null, 8, [
|
|
51478
|
+
"readonly",
|
|
51458
51479
|
"node",
|
|
51459
51480
|
"onSelect",
|
|
51460
51481
|
"onEdit",
|
|
@@ -51470,15 +51491,16 @@ function A$(n, s, c, l, u, d) {
|
|
|
51470
51491
|
"onOpenChange",
|
|
51471
51492
|
"style"
|
|
51472
51493
|
]),
|
|
51473
|
-
|
|
51494
|
+
c.readonly ? n("", !0) : (v(), r("div", k$, [o(h, {
|
|
51474
51495
|
type: "link",
|
|
51475
|
-
onClick: s[0] ||= k((e) => d.openAddGroup(
|
|
51496
|
+
onClick: s[0] ||= k((e) => d.openAddGroup(i.node), ["stop"]),
|
|
51476
51497
|
style: { margin: "0 10px 10px 10px" }
|
|
51477
51498
|
}, {
|
|
51478
51499
|
default: O(() => [...s[4] ||= [a(" 添加根级 ", -1)]]),
|
|
51479
51500
|
_: 1
|
|
51480
|
-
})]),
|
|
51481
|
-
|
|
51501
|
+
})])),
|
|
51502
|
+
c.readonly ? n("", !0) : (v(), t(b, {
|
|
51503
|
+
key: 1,
|
|
51482
51504
|
open: u.groupModalVisible,
|
|
51483
51505
|
"onUpdate:open": s[3] ||= (e) => u.groupModalVisible = e,
|
|
51484
51506
|
closable: !0,
|
|
@@ -51517,10 +51539,10 @@ function A$(n, s, c, l, u, d) {
|
|
|
51517
51539
|
_: 1
|
|
51518
51540
|
}, 8, ["model"])]),
|
|
51519
51541
|
_: 1
|
|
51520
|
-
}, 8, ["open", "title"])
|
|
51542
|
+
}, 8, ["open", "title"]))
|
|
51521
51543
|
]);
|
|
51522
51544
|
}
|
|
51523
|
-
var j$ = /* @__PURE__ */ F(O$, [["render", A$], ["__scopeId", "data-v-
|
|
51545
|
+
var j$ = /* @__PURE__ */ F(O$, [["render", A$], ["__scopeId", "data-v-a8a7f058"]]), M$ = s({
|
|
51524
51546
|
name: "PaasIcon",
|
|
51525
51547
|
props: { icon: {
|
|
51526
51548
|
type: String,
|