@bsgoal/common 1.5.5 → 1.5.6
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
CHANGED
|
@@ -202,18 +202,25 @@ const ze = { class: "bsgoal-base-form" }, Pe = { class: "base_form" }, je = { ke
|
|
|
202
202
|
* 全局只读
|
|
203
203
|
*/
|
|
204
204
|
readonlys: {
|
|
205
|
-
type: Boolean,
|
|
205
|
+
type: [Boolean],
|
|
206
206
|
default: !1
|
|
207
|
+
},
|
|
208
|
+
/**
|
|
209
|
+
* 空字段 默认值
|
|
210
|
+
*/
|
|
211
|
+
none: {
|
|
212
|
+
type: [String],
|
|
213
|
+
default: "无"
|
|
207
214
|
}
|
|
208
215
|
},
|
|
209
216
|
emits: ["on-form", "on-clear", "on-change", "on-fold"],
|
|
210
217
|
setup(e, { expose: s, emit: l }) {
|
|
211
218
|
const i = e, r = B(null), a = Ee.align, c = B({});
|
|
212
219
|
pe(() => {
|
|
213
|
-
const { configOptions: p, values: b } = i,
|
|
214
|
-
|
|
215
|
-
const { value:
|
|
216
|
-
[t.INPUT, t.INPUT_TEXT_AREA].includes(
|
|
220
|
+
const { configOptions: p, values: b, none: C = "" } = i, h = u(p), y = u(b);
|
|
221
|
+
h.forEach((O) => {
|
|
222
|
+
const { value: S = "", prop: R = "", type: F = "" } = O;
|
|
223
|
+
[t.INPUT, t.INPUT_TEXT_AREA].includes(F), c.value[R] = y[R] || S || C;
|
|
217
224
|
});
|
|
218
225
|
});
|
|
219
226
|
const _ = q(() => {
|