@bsgoal/common 1.9.0 → 1.9.1
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 +12 -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 +3 -2
package/dist/index.mjs
CHANGED
|
@@ -98,14 +98,14 @@ const ye = (e) => {
|
|
|
98
98
|
};
|
|
99
99
|
be && clearTimeout(be), be = setTimeout(() => {
|
|
100
100
|
r(), i(s), i(a);
|
|
101
|
-
},
|
|
101
|
+
}, 500);
|
|
102
102
|
}, xe = {
|
|
103
103
|
/**
|
|
104
104
|
* 表单自动左对齐
|
|
105
105
|
*/
|
|
106
106
|
align: {
|
|
107
107
|
created(e) {
|
|
108
|
-
window.addEventListener("resize", () => {
|
|
108
|
+
console.log("el", e), window.addEventListener("resize", () => {
|
|
109
109
|
ye(e);
|
|
110
110
|
});
|
|
111
111
|
},
|
|
@@ -267,6 +267,14 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
|
|
|
267
267
|
bindModel: {
|
|
268
268
|
type: [Object],
|
|
269
269
|
default: () => ({})
|
|
270
|
+
},
|
|
271
|
+
/**
|
|
272
|
+
* label 位置
|
|
273
|
+
*/
|
|
274
|
+
labelPosition: {
|
|
275
|
+
type: [String],
|
|
276
|
+
default: "right",
|
|
277
|
+
validator: (e) => ["left", "rightn", "top"].includes(e)
|
|
270
278
|
}
|
|
271
279
|
},
|
|
272
280
|
emits: ["on-form", "on-clear", "on-change", "on-fold"],
|
|
@@ -393,6 +401,7 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
|
|
|
393
401
|
ref_key: "EL_FORM_REF",
|
|
394
402
|
ref: r,
|
|
395
403
|
"label-suffix": ":",
|
|
404
|
+
"label-position": e.labelPosition,
|
|
396
405
|
model: t.value
|
|
397
406
|
}, {
|
|
398
407
|
default: A(() => [
|
|
@@ -604,7 +613,7 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
|
|
|
604
613
|
})
|
|
605
614
|
]),
|
|
606
615
|
_: 3
|
|
607
|
-
}, 8, ["model"])), [
|
|
616
|
+
}, 8, ["label-position", "model"])), [
|
|
608
617
|
[c(u)]
|
|
609
618
|
])
|
|
610
619
|
])
|