@kayak-sj/design 1.0.47 → 1.0.49
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-DIKmdv9F.css +1 -0
- package/dist/chunks/Complex-C7w3K3P5.js +54 -0
- package/dist/chunks/{components-CvNzOcPk.js → components-MlPbHyef.js} +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/k-form/formComponent/Complex.d.ts +6 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/styles/element-plus/_overrides.scss +5 -5
- package/dist/assets/Complex-bEGviwc1.css +0 -1
- package/dist/chunks/Complex-CmH6Cx2G.js +0 -49
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.k-form-complex[data-v-f767d9ba]{flex-wrap:nowrap;align-items:center;gap:8px;width:100%;display:flex}.k-form-complex[data-v-f767d9ba] .k-form-input,.k-form-complex[data-v-f767d9ba] .k-form-select{flex:none;min-width:0}.k-form-complex[data-v-f767d9ba] .k-form-select .el-select{width:var(--k-form-complex-select-width,120px)}.k-form-complex[data-v-f767d9ba] .k-form-input .el-input{width:var(--k-form-complex-input-width,120px)}.k-form-complex--stretch[data-v-f767d9ba] .k-form-input,.k-form-complex--stretch[data-v-f767d9ba] .k-form-select{flex:1 1 0}.k-form-complex--stretch[data-v-f767d9ba] .k-form-select .el-select,.k-form-complex--stretch[data-v-f767d9ba] .k-form-input .el-input{width:100%}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { P as e } from "./components-MlPbHyef.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, normalizeClass as s, openBlock as c, ref as l, renderList as u, resolveDynamicComponent as d, unref as f, watch as p } from "vue";
|
|
4
|
+
import { cloneDeep as m, isEqual as h } from "lodash-es";
|
|
5
|
+
import '../assets/Complex-DIKmdv9F.css';//#endregion
|
|
6
|
+
//#region src/components/k-form/formComponent/Complex.vue
|
|
7
|
+
var g = /*#__PURE__*/ t(/* @__PURE__ */ a({
|
|
8
|
+
name: "KFormComplex",
|
|
9
|
+
__name: "Complex",
|
|
10
|
+
props: {
|
|
11
|
+
modelValue: {},
|
|
12
|
+
options: { default: () => [] },
|
|
13
|
+
readonly: { type: Boolean },
|
|
14
|
+
disabled: { type: Boolean },
|
|
15
|
+
stretch: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: !1
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
emits: ["update:modelValue"],
|
|
21
|
+
setup(t, { emit: a }) {
|
|
22
|
+
let g = t, _ = a, v = l({});
|
|
23
|
+
p(() => g.modelValue, (e) => {
|
|
24
|
+
let t = e && typeof e == "object" && !Array.isArray(e) ? m(e) : {};
|
|
25
|
+
h(t, v.value) || (v.value = t);
|
|
26
|
+
}, {
|
|
27
|
+
immediate: !0,
|
|
28
|
+
deep: !0
|
|
29
|
+
}), p(v, (e) => {
|
|
30
|
+
h(e, g.modelValue) || _("update:modelValue", m(e));
|
|
31
|
+
}, { deep: !0 });
|
|
32
|
+
function y(e, t) {
|
|
33
|
+
v.value = {
|
|
34
|
+
...v.value,
|
|
35
|
+
[e]: t
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
return (a, l) => (c(), i("div", { class: s(["k-form-complex", { "k-form-complex--stretch": t.stretch }]) }, [(c(!0), i(n, null, u(t.options, (n) => (c(), r(d(f(e)(n.component)), o({
|
|
39
|
+
key: n.id,
|
|
40
|
+
"model-value": v.value[n.id],
|
|
41
|
+
options: n.options,
|
|
42
|
+
readonly: t.readonly,
|
|
43
|
+
disabled: t.disabled
|
|
44
|
+
}, { ref_for: !0 }, n.componentProps, { "onUpdate:modelValue": (e) => y(n.id, e) }), null, 16, [
|
|
45
|
+
"model-value",
|
|
46
|
+
"options",
|
|
47
|
+
"readonly",
|
|
48
|
+
"disabled",
|
|
49
|
+
"onUpdate:modelValue"
|
|
50
|
+
]))), 128))], 2));
|
|
51
|
+
}
|
|
52
|
+
}), [["__scopeId", "data-v-f767d9ba"]]);
|
|
53
|
+
//#endregion
|
|
54
|
+
export { g as default };
|
|
@@ -2703,7 +2703,7 @@ var pr = {
|
|
|
2703
2703
|
InputMixInput: tn,
|
|
2704
2704
|
InputMixSelect: ln,
|
|
2705
2705
|
RadioInput: Cn,
|
|
2706
|
-
Complex: v(() => import("./Complex-
|
|
2706
|
+
Complex: v(() => import("./Complex-C7w3K3P5.js")),
|
|
2707
2707
|
ScrollSelect: Tn,
|
|
2708
2708
|
Upload: _r,
|
|
2709
2709
|
Tag: An,
|
package/dist/components/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as e, B as t, C as n, D as r, E as i, F as a, G as o, H as s, I as c, L as l, M as u, N as d, O as f, R as p, S as m, T as h, U as g, V as _, W as v, _ as y, b, c as x, d as S, f as C, g as w, h as T, i as E, j as D, k as O, l as k, m as A, n as j, o as M, p as N, r as P, s as F, t as I, u as L, v as R, w as z, x as B, y as V, z as H } from "../chunks/components-
|
|
1
|
+
import { A as e, B as t, C as n, D as r, E as i, F as a, G as o, H as s, I as c, L as l, M as u, N as d, O as f, R as p, S as m, T as h, U as g, V as _, W as v, _ as y, b, c as x, d as S, f as C, g as w, h as T, i as E, j as D, k as O, l as k, m as A, n as j, o as M, p as N, r as P, s as F, t as I, u as L, v as R, w as z, x as B, y as V, z as H } from "../chunks/components-MlPbHyef.js";
|
|
2
2
|
import { a as U, d as W, i as G, l as K, n as q, r as J, u as Y } from "../chunks/editorValue-DSKvW8ty.js";
|
|
3
3
|
export { s as DICT_KEY, I as KAffix, j as KBreadcrumb, o as KButton, b as KCard, P as KCascader, _ as KCheckbox, E as KColorPicker, t as KDatePicker, g as KDialog, v as KDialogHeader, u as KForm, e as KHandlePage, z as KIcon, H as KInput, n as KLinkButton, B as KLongPage, m as KPagination, V as KPanel, R as KPanelQuery, l as KRadio, p as KSelect, y as KTable, c as KTimePicker, a as KUpload, q as countEditorHtmlWords, J as countEditorWords, M as createUploadFileItem, S as exportKTableReport, C as exportKTableReportData, h as getAllLucideKebabNames, G as getEditorHtml, U as getEditorWordCount, Y as getUploadConfig, F as hasUploadSubmitFields, w as mapGroupDictToOptions, i as pascalToKebab, d as registerFormComponents, r as resolveLucideIcon, K as toKEditorValue, f as toLucidePascalName, x as toUploadFiles, k as toUploadSubmitFields, W as updateUploadConfig, L as useExportKTableReport, O as useHandlePageInit, D as useKFormTemplateRef, N as useKTableCrossPageSelection, A as useKTableTemplateRef, T as withQueryFieldOptions };
|
|
@@ -15,6 +15,11 @@ type __VLS_Props = FormComponentBaseProps & {
|
|
|
15
15
|
options?: ComplexSubField[];
|
|
16
16
|
/** 字段级禁用,透传给所有子控件 */
|
|
17
17
|
disabled?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* 是否让 Input / Select 均分剩余宽度。
|
|
20
|
+
* 默认 false:按内容/子控件自身 width 排布(适合「是 + 周 + 共 N 期」一类短组合)。
|
|
21
|
+
*/
|
|
22
|
+
stretch?: boolean;
|
|
18
23
|
};
|
|
19
24
|
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
25
|
"update:modelValue": (value: Record<string, unknown>) => any;
|
|
@@ -22,6 +27,7 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {
|
|
|
22
27
|
"onUpdate:modelValue"?: ((value: Record<string, unknown>) => any) | undefined;
|
|
23
28
|
}>, {
|
|
24
29
|
options: import('..').FieldOption[] & ComplexSubField[];
|
|
30
|
+
stretch: boolean;
|
|
25
31
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
26
32
|
declare const _default: typeof __VLS_export;
|
|
27
33
|
export default _default;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, B as t, C as n, D as r, E as i, F as a, G as o, H as s, I as c, L as l, M as u, N as d, O as f, R as ee, S as te, T as ne, U as re, V as ie, W as ae, _ as oe, a as se, b as ce, c as le, d as ue, f as de, g as fe, h as pe, i as me, j as p, k as m, l as h, m as g, n as _, o as v, p as y, r as b, s as x, t as S, u as C, v as w, w as T, x as E, y as D, z as O } from "./chunks/components-
|
|
1
|
+
import { A as e, B as t, C as n, D as r, E as i, F as a, G as o, H as s, I as c, L as l, M as u, N as d, O as f, R as ee, S as te, T as ne, U as re, V as ie, W as ae, _ as oe, a as se, b as ce, c as le, d as ue, f as de, g as fe, h as pe, i as me, j as p, k as m, l as h, m as g, n as _, o as v, p as y, r as b, s as x, t as S, u as C, v as w, w as T, x as E, y as D, z as O } from "./chunks/components-MlPbHyef.js";
|
|
2
2
|
import { a as k, d as A, i as j, l as M, n as N, r as P, u as F } from "./chunks/editorValue-DSKvW8ty.js";
|
|
3
3
|
import { computed as I, toValue as L } from "vue";
|
|
4
4
|
//#region src/components/k-form/composables/useFormSchema.ts
|
package/package.json
CHANGED
|
@@ -288,9 +288,9 @@
|
|
|
288
288
|
padding: 14px var(--k-form-padding-x);
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
-
&__body {
|
|
292
|
-
|
|
293
|
-
}
|
|
291
|
+
// &__body {
|
|
292
|
+
// padding: var(--k-form-padding-y) var(--k-form-padding-x);
|
|
293
|
+
// }
|
|
294
294
|
}
|
|
295
295
|
|
|
296
296
|
// ── 折叠面板 ──────────────────────────────────────────
|
|
@@ -364,8 +364,8 @@
|
|
|
364
364
|
--el-messagebox-content-font-size: var(--k-form-control-font-size);
|
|
365
365
|
}
|
|
366
366
|
|
|
367
|
-
// ── Tab
|
|
368
|
-
.el-tabs {
|
|
367
|
+
// ── Tab(页内分段导航;仅默认下划线样式,不污染 card / border-card)────────────────
|
|
368
|
+
.el-tabs:not(.el-tabs--card):not(.el-tabs--border-card) {
|
|
369
369
|
--el-tabs-header-height: 44px;
|
|
370
370
|
|
|
371
371
|
background-color: var(--k-color-bg-surface);
|
|
@@ -1 +0,0 @@
|
|
|
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}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { P as e } from "./components-CvNzOcPk.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 };
|