@bsgoal/common 1.9.0 → 1.9.2
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/index.mjs +13 -3
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/bsgoal-base-form/demo.vue +2 -2
- package/src/components/bsgoal-base-form/index.vue +16 -2
- package/src/directives/directiveBase.js +4 -2
package/dist/index.mjs
CHANGED
|
@@ -78,6 +78,7 @@ let l = class {
|
|
|
78
78
|
}, be = null;
|
|
79
79
|
const ye = (e) => {
|
|
80
80
|
const s = [], a = [], i = (u = []) => {
|
|
81
|
+
console.log("elInfoList", u);
|
|
81
82
|
const t = u.map((_) => _.width), d = Math.max(...t);
|
|
82
83
|
u.forEach((_) => {
|
|
83
84
|
const { labelEl: V } = _;
|
|
@@ -98,14 +99,14 @@ const ye = (e) => {
|
|
|
98
99
|
};
|
|
99
100
|
be && clearTimeout(be), be = setTimeout(() => {
|
|
100
101
|
r(), i(s), i(a);
|
|
101
|
-
},
|
|
102
|
+
}, 1e3);
|
|
102
103
|
}, xe = {
|
|
103
104
|
/**
|
|
104
105
|
* 表单自动左对齐
|
|
105
106
|
*/
|
|
106
107
|
align: {
|
|
107
108
|
created(e) {
|
|
108
|
-
window.addEventListener("resize", () => {
|
|
109
|
+
console.log("el", e), window.addEventListener("resize", () => {
|
|
109
110
|
ye(e);
|
|
110
111
|
});
|
|
111
112
|
},
|
|
@@ -267,6 +268,14 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
|
|
|
267
268
|
bindModel: {
|
|
268
269
|
type: [Object],
|
|
269
270
|
default: () => ({})
|
|
271
|
+
},
|
|
272
|
+
/**
|
|
273
|
+
* label 位置
|
|
274
|
+
*/
|
|
275
|
+
labelPosition: {
|
|
276
|
+
type: [String],
|
|
277
|
+
default: "right",
|
|
278
|
+
validator: (e) => ["left", "rightn", "top"].includes(e)
|
|
270
279
|
}
|
|
271
280
|
},
|
|
272
281
|
emits: ["on-form", "on-clear", "on-change", "on-fold"],
|
|
@@ -393,6 +402,7 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
|
|
|
393
402
|
ref_key: "EL_FORM_REF",
|
|
394
403
|
ref: r,
|
|
395
404
|
"label-suffix": ":",
|
|
405
|
+
"label-position": e.labelPosition,
|
|
396
406
|
model: t.value
|
|
397
407
|
}, {
|
|
398
408
|
default: A(() => [
|
|
@@ -604,7 +614,7 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
|
|
|
604
614
|
})
|
|
605
615
|
]),
|
|
606
616
|
_: 3
|
|
607
|
-
}, 8, ["model"])), [
|
|
617
|
+
}, 8, ["label-position", "model"])), [
|
|
608
618
|
[c(u)]
|
|
609
619
|
])
|
|
610
620
|
])
|