paas-component-library 1.0.90 → 1.0.92
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 +18 -12
- package/dist/paas-ui.umd.cjs +134 -134
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/PaasForm/index.vue +8 -5
- package/src/components/PaasMenu/index.vue +12 -4
- package/src/components/PaasPageSelect/index.vue +16 -6
- package/src/components/form/FormPageSelect/index.vue +1 -2
package/dist/paas-ui.js
CHANGED
|
@@ -610,7 +610,8 @@ const i9e = /* @__PURE__ */ hr(r9e, [["render", n9e]]), a9e = {
|
|
|
610
610
|
this.selectAndOpenMenu(r), this.$router.push(r.key);
|
|
611
611
|
},
|
|
612
612
|
onOpenChange(r) {
|
|
613
|
-
this
|
|
613
|
+
const e = r.find((t) => !this.openKeys.includes(t));
|
|
614
|
+
e ? this.$store.setOpenKeys([e]) : this.$store.setOpenKeys([]);
|
|
614
615
|
},
|
|
615
616
|
selectMenuClick() {
|
|
616
617
|
if (!this.selectValue) {
|
|
@@ -686,7 +687,7 @@ function h9e(r, e, t, n, i, o) {
|
|
|
686
687
|
])
|
|
687
688
|
]);
|
|
688
689
|
}
|
|
689
|
-
const d9e = /* @__PURE__ */ hr(a9e, [["render", h9e], ["__scopeId", "data-v-
|
|
690
|
+
const d9e = /* @__PURE__ */ hr(a9e, [["render", h9e], ["__scopeId", "data-v-7d7c930f"]]);
|
|
690
691
|
var p9e = typeof global == "object" && global && global.Object === Object && global, v9e = typeof self == "object" && self && self.Object === Object && self, tne = p9e || v9e || Function("return this")(), Q0 = tne.Symbol, rne = Object.prototype, m9e = rne.hasOwnProperty, g9e = rne.toString, P1 = Q0 ? Q0.toStringTag : void 0;
|
|
691
692
|
function O9e(r) {
|
|
692
693
|
var e = m9e.call(r, P1), t = r[P1];
|
|
@@ -22097,10 +22098,15 @@ const pGe = /* @__PURE__ */ hr(hGe, [["render", dGe]]), vGe = Rh({
|
|
|
22097
22098
|
name: "PaasPageSelect",
|
|
22098
22099
|
components: { VNodes: vGe, LeftOutlined: X2, RightOutlined: Y2 },
|
|
22099
22100
|
inheritAttrs: !1,
|
|
22100
|
-
// 添加此行,阻止未声明的属性传递给根元素
|
|
22101
22101
|
computed: {
|
|
22102
22102
|
see() {
|
|
22103
22103
|
return this.$store?.forms?.see || !1;
|
|
22104
|
+
},
|
|
22105
|
+
filteredAttrs() {
|
|
22106
|
+
const r = { ...this.$attrs };
|
|
22107
|
+
return Object.keys(r).forEach((e) => {
|
|
22108
|
+
(e.startsWith("on") || e.startsWith("@") || e.startsWith("on-")) && delete r[e];
|
|
22109
|
+
}), delete r.onChange, r;
|
|
22104
22110
|
}
|
|
22105
22111
|
},
|
|
22106
22112
|
props: {
|
|
@@ -22219,7 +22225,7 @@ function OGe(r, e, t, n, i, o) {
|
|
|
22219
22225
|
allowClear: !0,
|
|
22220
22226
|
placeholder: t.placeholder,
|
|
22221
22227
|
style: t.style
|
|
22222
|
-
},
|
|
22228
|
+
}, o.filteredAttrs, { onChange: o.change }), {
|
|
22223
22229
|
dropdownRender: ut(({ menuNode: b }) => [
|
|
22224
22230
|
N(s, {
|
|
22225
22231
|
value: i.filter,
|
|
@@ -22235,7 +22241,6 @@ function OGe(r, e, t, n, i, o) {
|
|
|
22235
22241
|
disabled: i.page.current <= 1,
|
|
22236
22242
|
onClick: o.up,
|
|
22237
22243
|
type: "link",
|
|
22238
|
-
ghost: "",
|
|
22239
22244
|
size: "small"
|
|
22240
22245
|
}, {
|
|
22241
22246
|
default: ut(() => [
|
|
@@ -22248,7 +22253,6 @@ function OGe(r, e, t, n, i, o) {
|
|
|
22248
22253
|
disabled: !o.hasNextPage,
|
|
22249
22254
|
onClick: o.down,
|
|
22250
22255
|
type: "link",
|
|
22251
|
-
ghost: "",
|
|
22252
22256
|
size: "small"
|
|
22253
22257
|
}, {
|
|
22254
22258
|
default: ut(() => [
|
|
@@ -22769,7 +22773,7 @@ const RGe = /* @__PURE__ */ hr(jGe, [["render", zGe]]), $Ge = {
|
|
|
22769
22773
|
filteredAttrs() {
|
|
22770
22774
|
const r = { ...this.$attrs };
|
|
22771
22775
|
return Object.keys(r).forEach((e) => {
|
|
22772
|
-
(e.startsWith("on") || e.startsWith("@")) && delete r[e];
|
|
22776
|
+
(e.startsWith("on") || e.startsWith("@") || e.startsWith("on-")) && delete r[e];
|
|
22773
22777
|
}), r;
|
|
22774
22778
|
}
|
|
22775
22779
|
},
|
|
@@ -112548,20 +112552,22 @@ const rJt = "#e5c07b", Zre = "#e06c75", nJt = "#56b6c2", iJt = "#ffffff", H0 = "
|
|
|
112548
112552
|
type: String,
|
|
112549
112553
|
default: "left"
|
|
112550
112554
|
},
|
|
112551
|
-
// 统一控制表单项的默认列跨度(基于24栅格系统)
|
|
112552
|
-
// colSpan=6 表示一行4列,colSpan=8 表示一行3列,colSpan=12 表示一行2列
|
|
112553
112555
|
colSpan: {
|
|
112554
112556
|
type: Number,
|
|
112555
112557
|
default: 24
|
|
112556
|
-
// 默认一行2个
|
|
112557
112558
|
},
|
|
112558
|
-
// 表单模式:'form' = 表单模式(确认/关闭按钮),'query' = 查询模式(查询/清空按钮)
|
|
112559
112559
|
mode: {
|
|
112560
112560
|
type: String,
|
|
112561
112561
|
default: "form",
|
|
112562
112562
|
// 默认表单模式(兼容旧代码)
|
|
112563
112563
|
validator: (r) => ["form", "query"].includes(r)
|
|
112564
112564
|
},
|
|
112565
|
+
// 表单项对齐方式:'flex-start' = 左对齐,'center' = 居中对齐
|
|
112566
|
+
justify: {
|
|
112567
|
+
type: String,
|
|
112568
|
+
default: "flex-start",
|
|
112569
|
+
validator: (r) => ["flex-start", "center"].includes(r)
|
|
112570
|
+
},
|
|
112565
112571
|
// 查询模式:是否显示"更多"按钮
|
|
112566
112572
|
showMore: {
|
|
112567
112573
|
type: Number,
|
|
@@ -112688,7 +112694,7 @@ function mJt(r, e, t, n, i, o) {
|
|
|
112688
112694
|
default: ut(() => [
|
|
112689
112695
|
N(v, {
|
|
112690
112696
|
gutter: 16,
|
|
112691
|
-
justify: t.
|
|
112697
|
+
justify: t.justify,
|
|
112692
112698
|
style: pn({ backgroundColor: "var(--background-color)", width: t.colSpan === 24 ? "65%" : "100%", margin: "0 auto" })
|
|
112693
112699
|
}, {
|
|
112694
112700
|
default: ut(() => [
|