@vtj/ui 0.11.16 → 0.12.0-alpha.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 +24 -22
- package/dist/index.umd.js +3 -3
- package/package.json +5 -5
- package/types/components/dialog-form/DialogForm.d.ts +8 -8
- package/types/components/form/Form.d.ts +1 -1
- package/types/components/grid/renderers/components/PickerEdit.d.ts +94 -73
- package/types/components/picker/Picker.d.ts +94 -73
- package/types/components/query-form/QueryForm.d.ts +16 -16
- package/types/version.d.ts +2 -2
package/dist/index.mjs
CHANGED
@@ -9,10 +9,10 @@ import { VXETable as jt, VxeTableFilterModule as yl, VxeTableEditModule as bl, V
|
|
9
9
|
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
10
10
|
* @name @vtj/ui
|
11
11
|
* @author CHC chenhuachun1549@dingtalk.com
|
12
|
-
* @version 0.
|
12
|
+
* @version 0.12.0-alpha.1
|
13
13
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
14
14
|
*/
|
15
|
-
const t2 = "0.
|
15
|
+
const t2 = "0.12.0-alpha.1", Dl = {
|
16
16
|
default: 14,
|
17
17
|
small: 12,
|
18
18
|
large: 18
|
@@ -6430,38 +6430,40 @@ async function gu(o, t) {
|
|
6430
6430
|
return n ? typeof n == "function" ? await n(t) || [] : n : [];
|
6431
6431
|
}
|
6432
6432
|
function hu(o, t, n, e, r) {
|
6433
|
-
const a = L([]), l = z(() => !e || !r ? {} : Fo(o.cascader).reduce((
|
6434
|
-
|
6433
|
+
const a = L([]), l = z(() => !e || !r ? {} : Fo(o.cascader).reduce((d, f) => (d[f] = fn(r, f), d), {}));
|
6434
|
+
re(
|
6435
6435
|
[l, () => o.options],
|
6436
|
-
async ([
|
6437
|
-
n.value && (a.value = await gu(o,
|
6436
|
+
async ([c, d]) => {
|
6437
|
+
n.value && (a.value = await gu(o, c), e?.exposed?.reset && o.name);
|
6438
6438
|
},
|
6439
6439
|
{
|
6440
6440
|
immediate: !0
|
6441
6441
|
}
|
6442
|
-
)
|
6442
|
+
);
|
6443
|
+
const i = o.props || {};
|
6444
|
+
return {
|
6443
6445
|
editor: z(() => {
|
6444
6446
|
const {
|
6445
|
-
editor:
|
6446
|
-
placeholder:
|
6447
|
-
label:
|
6448
|
-
disabled:
|
6449
|
-
readonly:
|
6450
|
-
} = o,
|
6451
|
-
...
|
6452
|
-
placeholder:
|
6453
|
-
disabled:
|
6454
|
-
readonly:
|
6447
|
+
editor: c = "text",
|
6448
|
+
placeholder: d,
|
6449
|
+
label: f = "...",
|
6450
|
+
disabled: m,
|
6451
|
+
readonly: g
|
6452
|
+
} = o, p = {
|
6453
|
+
...i,
|
6454
|
+
placeholder: d || (d === null ? void 0 : `请输入${f}`),
|
6455
|
+
disabled: m,
|
6456
|
+
readonly: g,
|
6455
6457
|
options: a.value,
|
6456
6458
|
onFocus: () => t("focus"),
|
6457
6459
|
onBlur: () => t("blur"),
|
6458
|
-
onChange: (
|
6459
|
-
},
|
6460
|
-
component:
|
6460
|
+
onChange: (y, _) => t("change", y, _)
|
6461
|
+
}, h = typeof c == "string" ? Wo[c] : {
|
6462
|
+
component: c,
|
6461
6463
|
props: {}
|
6462
6464
|
};
|
6463
|
-
return fa({},
|
6464
|
-
props:
|
6465
|
+
return fa({}, h, {
|
6466
|
+
props: p
|
6465
6467
|
});
|
6466
6468
|
})
|
6467
6469
|
};
|