asiaint-lowcode 3.0.71 → 3.0.73
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/asiaint-lowcode.js +1 -1
- package/dist/asiaint-lowcode.umd.cjs +94 -94
- package/dist/index.d.ts +1 -0
- package/dist/lazy/{Card-CUvW3dt0.js → Card-BSLPnj0t.js} +1 -1
- package/dist/lazy/{Cascader-BvpNT-Em.js → Cascader-DbhMXzZV.js} +1 -1
- package/dist/lazy/{Checkbox-SUjz3hXe.js → Checkbox-CugjGjO9.js} +2 -2
- package/dist/lazy/{Collapse-CzJoT_Vt.js → Collapse-vmX3PUGx.js} +1 -1
- package/dist/lazy/{Component-COX34ZpZ.js → Component-0yrWAeoC.js} +1 -1
- package/dist/lazy/{Component-aCdVMOfw.js → Component-B0QFEwWr.js} +1 -1
- package/dist/lazy/{Component-BDQU89Ai.js → Component-BG11YH1L.js} +6 -7
- package/dist/lazy/{Component-CBmPuHTM.js → Component-DYYKdz9f.js} +1 -1
- package/dist/lazy/{Component-Bv4emHeZ.js → Component-DmRET3rE.js} +1 -1
- package/dist/lazy/{Component-BcqtcP-J.js → Component-OVhYSWDw.js} +1 -1
- package/dist/lazy/{CurdCard-BXeTPux9.js → CurdCard-DYgLc5Ux.js} +1 -1
- package/dist/lazy/{Custom-Cb8OB7hi.js → Custom-D7UjpkOW.js} +1 -1
- package/dist/lazy/{FormList-DTRKSIxW.js → FormList-D40CRggh.js} +1 -1
- package/dist/lazy/{Grid-IpcAX4h3.js → Grid-SH-t5UKW.js} +1 -1
- package/dist/lazy/{Inline-DEBEcRs7.js → Inline-BeKoTPJ_.js} +1 -1
- package/dist/lazy/{JsonEdit-BvWJq_Qw.js → JsonEdit-DYvUy8q6.js} +1 -1
- package/dist/lazy/{LogList-CUlwErog.js → LogList-D0JGptci.js} +1 -1
- package/dist/lazy/{ObjGroup-D3BSRhyd.js → ObjGroup-DHQJdcpe.js} +1 -1
- package/dist/lazy/{OfferDetails-DHiirJkh.js → OfferDetails-DSgaH1Gs.js} +1 -1
- package/dist/lazy/{Progress-CJdG7L2p.js → Progress-CogcTWsd.js} +1 -1
- package/dist/lazy/{Radio-tg2Opn2u.js → Radio-9tV-vmZH.js} +2 -2
- package/dist/lazy/{SearchSelect-BQAzG-_t.js → SearchSelect-DLgYdGsW.js} +2 -2
- package/dist/lazy/Select-BfKuShpB.js +119 -0
- package/dist/lazy/{Table-U5fbGZxs.js → Table-BeIhsi28.js} +1 -1
- package/dist/lazy/{Tabs-CREkJMea.js → Tabs-DHYb7Jot.js} +1 -1
- package/dist/lazy/{Wrapper-BWpnZIqz.js → Wrapper-CfglrkCe.js} +1 -1
- package/dist/lazy/{index-BuyTbIWC.js → index-COoXTzR3.js} +1577 -1558
- package/dist/lazy/{useSelect-6xXJTQum.js → useSelect-v7E0loNK.js} +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/dist/lazy/Select-Chx-hOhn.js +0 -83
package/package.json
CHANGED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { defineComponent as k, mergeModels as D, computed as f, useModel as S, inject as y, resolveComponent as v, resolveDirective as F, openBlock as s, createElementBlock as i, toDisplayString as b, createBlock as g, mergeProps as A, withCtx as h, withDirectives as j, Fragment as w, renderList as I, unref as K, createTextVNode as N } from "vue";
|
|
2
|
-
import { u as P } from "./index-BuyTbIWC.js";
|
|
3
|
-
import { u as $ } from "./useSelect-6xXJTQum.js";
|
|
4
|
-
const E = { key: 0 }, L = { style: { "min-height": "32px" } }, q = /* @__PURE__ */ k({
|
|
5
|
-
__name: "Select",
|
|
6
|
-
props: /* @__PURE__ */ D({
|
|
7
|
-
options: { default: () => [] },
|
|
8
|
-
multiple: { type: Boolean, default: !1 },
|
|
9
|
-
mode: { default: "static" },
|
|
10
|
-
labelKey: { default: "label" },
|
|
11
|
-
valueKey: { default: "value" },
|
|
12
|
-
disabledKey: { default: "disabled" },
|
|
13
|
-
env: {},
|
|
14
|
-
apiParams: {},
|
|
15
|
-
dependentFields: {},
|
|
16
|
-
name: { default: "" },
|
|
17
|
-
onChange: {},
|
|
18
|
-
read: { type: Boolean },
|
|
19
|
-
filters: {},
|
|
20
|
-
refreshFlag: { type: Boolean },
|
|
21
|
-
clearable: { type: Boolean, default: !0 }
|
|
22
|
-
}, {
|
|
23
|
-
modelValue: { type: [String, Number, Boolean, Array] },
|
|
24
|
-
modelModifiers: {}
|
|
25
|
-
}),
|
|
26
|
-
emits: ["update:modelValue"],
|
|
27
|
-
setup(c) {
|
|
28
|
-
const a = c, V = f(() => a.clearable === null || a.clearable === void 0 ? !0 : !!a.clearable), d = S(c, "modelValue"), p = P(), m = y("ruleModule", void 0), C = y("pageMethodMap", {}), M = (e) => {
|
|
29
|
-
const { valueKey: t = "value", multiple: n, name: o } = a;
|
|
30
|
-
let r = {};
|
|
31
|
-
if (n && Array.isArray(e) ? r = u.value.filter((l) => e.includes(l[t])) : r = u.value.find((l) => l[t] === e) || {}, p.selectData && o && p.updateSelectData(o, r), a.onChange && m)
|
|
32
|
-
try {
|
|
33
|
-
m[a.onChange](C, e, r);
|
|
34
|
-
} catch (l) {
|
|
35
|
-
console.error(l);
|
|
36
|
-
}
|
|
37
|
-
}, { currentOptions: u, loading: B } = $(a), _ = f(() => {
|
|
38
|
-
var t;
|
|
39
|
-
if (a.multiple)
|
|
40
|
-
return u.value.filter(
|
|
41
|
-
(o) => d.value.includes(o[a.valueKey])
|
|
42
|
-
).map((o) => o[a.labelKey]).join(",");
|
|
43
|
-
const e = (t = u.value.find((n) => n[a.valueKey] === d.value)) == null ? void 0 : t[a.labelKey];
|
|
44
|
-
return !e || `${e}`.trim().length === 0 ? "--" : e;
|
|
45
|
-
});
|
|
46
|
-
return (e, t) => {
|
|
47
|
-
const n = v("el-option"), o = v("el-select"), r = F("loading");
|
|
48
|
-
return e.read ? (s(), i("span", E, b(_.value), 1)) : (s(), g(o, A({
|
|
49
|
-
key: 1,
|
|
50
|
-
modelValue: d.value,
|
|
51
|
-
"onUpdate:modelValue": t[0] || (t[0] = (l) => d.value = l)
|
|
52
|
-
}, e.$attrs, {
|
|
53
|
-
onChange: M,
|
|
54
|
-
multiple: e.multiple,
|
|
55
|
-
clearable: V.value,
|
|
56
|
-
filterable: "",
|
|
57
|
-
"fallback-placements": ["bottom"]
|
|
58
|
-
}), {
|
|
59
|
-
default: h(() => [
|
|
60
|
-
j((s(), i("div", L, [
|
|
61
|
-
(s(!0), i(w, null, I(K(u), (l) => (s(), g(n, {
|
|
62
|
-
key: l[e.valueKey],
|
|
63
|
-
label: l[e.labelKey],
|
|
64
|
-
value: l[e.valueKey],
|
|
65
|
-
disabled: l[e.disabledKey]
|
|
66
|
-
}, {
|
|
67
|
-
default: h(() => [
|
|
68
|
-
N(b(l[e.labelKey]), 1)
|
|
69
|
-
]),
|
|
70
|
-
_: 2
|
|
71
|
-
}, 1032, ["label", "value", "disabled"]))), 128))
|
|
72
|
-
])), [
|
|
73
|
-
[r, K(B)]
|
|
74
|
-
])
|
|
75
|
-
]),
|
|
76
|
-
_: 1
|
|
77
|
-
}, 16, ["modelValue", "multiple", "clearable"]));
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
export {
|
|
82
|
-
q as default
|
|
83
|
-
};
|