@kayak-sj/design 1.0.2 → 1.0.4
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/assets/Complex-bEGviwc1.css +1 -0
- package/dist/chunks/Complex-RcZnSBVW.js +49 -0
- package/dist/chunks/{components-CYgOyNT1.js → components-4sHzMJbg.js} +295 -294
- package/dist/components/index.js +2 -2
- package/dist/components/k-form/formComponent/componentRegistry.d.ts +1 -1
- package/dist/index.js +2 -2
- package/package.json +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.k-form-complex[data-v-6c1d7b97]{flex-wrap:nowrap;align-items:center;gap:8px;width:100%;display:flex}.k-form-complex[data-v-6c1d7b97] .k-form-input,.k-form-complex[data-v-6c1d7b97] .k-form-select{flex:1 1 0;min-width:0}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { P as e } from "./components-4sHzMJbg.js";
|
|
2
|
+
import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
|
+
import { Fragment as n, createBlock as r, createElementBlock as i, defineComponent as a, mergeProps as o, openBlock as s, ref as c, renderList as l, resolveDynamicComponent as u, unref as d, watch as f } from "vue";
|
|
4
|
+
import { cloneDeep as p, isEqual as m } from "lodash-es";
|
|
5
|
+
import '../assets/Complex-bEGviwc1.css';//#region src/components/k-form/formComponent/Complex.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var h = { class: "k-form-complex" }, g = /*#__PURE__*/ t(/* @__PURE__ */ a({
|
|
7
|
+
name: "KFormComplex",
|
|
8
|
+
__name: "Complex",
|
|
9
|
+
props: {
|
|
10
|
+
modelValue: {},
|
|
11
|
+
options: { default: () => [] },
|
|
12
|
+
readonly: { type: Boolean },
|
|
13
|
+
disabled: { type: Boolean }
|
|
14
|
+
},
|
|
15
|
+
emits: ["update:modelValue"],
|
|
16
|
+
setup(t, { emit: a }) {
|
|
17
|
+
let g = t, _ = a, v = c({});
|
|
18
|
+
f(() => g.modelValue, (e) => {
|
|
19
|
+
let t = e && typeof e == "object" && !Array.isArray(e) ? p(e) : {};
|
|
20
|
+
m(t, v.value) || (v.value = t);
|
|
21
|
+
}, {
|
|
22
|
+
immediate: !0,
|
|
23
|
+
deep: !0
|
|
24
|
+
}), f(v, (e) => {
|
|
25
|
+
m(e, g.modelValue) || _("update:modelValue", p(e));
|
|
26
|
+
}, { deep: !0 });
|
|
27
|
+
function y(e, t) {
|
|
28
|
+
v.value = {
|
|
29
|
+
...v.value,
|
|
30
|
+
[e]: t
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
return (a, c) => (s(), i("div", h, [(s(!0), i(n, null, l(t.options, (n) => (s(), r(u(d(e)(n.component)), o({
|
|
34
|
+
key: n.id,
|
|
35
|
+
"model-value": v.value[n.id],
|
|
36
|
+
options: n.options,
|
|
37
|
+
readonly: t.readonly,
|
|
38
|
+
disabled: t.disabled
|
|
39
|
+
}, { ref_for: !0 }, n.componentProps, { "onUpdate:modelValue": (e) => y(n.id, e) }), null, 16, [
|
|
40
|
+
"model-value",
|
|
41
|
+
"options",
|
|
42
|
+
"readonly",
|
|
43
|
+
"disabled",
|
|
44
|
+
"onUpdate:modelValue"
|
|
45
|
+
]))), 128))]));
|
|
46
|
+
}
|
|
47
|
+
}), [["__scopeId", "data-v-6c1d7b97"]]);
|
|
48
|
+
//#endregion
|
|
49
|
+
export { g as default };
|