@web-utils/form-ui 1.0.0-beta2 → 1.0.0-beta21
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/base.css +1 -1
- package/chunks/1chbbDUh.mjs +98 -0
- package/chunks/5HLN3g1u.mjs +51 -0
- package/chunks/B5B9au3z.mjs +180 -0
- package/chunks/BI2XOQW3.mjs +226 -0
- package/chunks/BLpnMrum.mjs +189 -0
- package/chunks/BNpqILFO.mjs +95 -0
- package/chunks/Bb43eI1f.mjs +93 -0
- package/chunks/BbrVRWUo.mjs +73 -0
- package/chunks/Bd1I-R29.mjs +53 -0
- package/chunks/Bh_CMUlo.mjs +12 -0
- package/chunks/Bv-Gn_Jd.mjs +42 -0
- package/chunks/C4MTLHn4.mjs +26 -0
- package/chunks/CI4RZnNc.mjs +26 -0
- package/chunks/CnsFNU2A.mjs +17 -0
- package/chunks/Cw8pz9hK.mjs +222 -0
- package/chunks/D4v0MyB_.mjs +106 -0
- package/chunks/D9GcEl6r.mjs +8 -0
- package/chunks/DGhMkri0.mjs +88 -0
- package/chunks/DOI7ju3i.mjs +108 -0
- package/chunks/DRDj0e_k.mjs +171 -0
- package/chunks/Dq3yxEPg.mjs +106 -0
- package/chunks/Dy5-h_Tx.mjs +108 -0
- package/chunks/RcygoTkQ.mjs +26 -0
- package/chunks/iWlTrkaC.mjs +76 -0
- package/chunks/lTFu0zgR.mjs +106 -0
- package/chunks/wfL1FAwc.mjs +1360 -0
- package/constants.d.ts +42 -0
- package/constants.mjs +3 -3
- package/element-dialog/index.d.ts +96 -0
- package/element-dialog/index.mjs +2 -92
- package/element-dialog/style.css +1 -1
- package/empty-view/index.d.ts +29 -0
- package/flex-scroll-area/index.d.ts +22 -0
- package/form-advice/index.d.ts +9 -0
- package/form-advice/index.mjs +13 -12
- package/form-cascader/index.d.ts +2 -0
- package/form-cascader/index.mjs +10 -0
- package/form-cell/index.d.ts +25 -0
- package/form-check-box-group/index.d.ts +293 -0
- package/form-check-box-group/index.mjs +1 -1
- package/form-checkbox/index.d.ts +271 -0
- package/form-checkbox/index.mjs +1 -1
- package/form-date-picker/index.d.ts +421 -0
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/index.d.ts +166 -0
- package/form-holder/index.mjs +1 -1
- package/form-holder/style.css +1 -1
- package/form-image/index.d.ts +224 -0
- package/form-image/index.mjs +1 -1
- package/form-input/index.d.ts +387 -0
- package/form-input/index.mjs +1 -1
- package/form-input/style.css +1 -0
- package/form-input-cron-expression/index.d.ts +215 -0
- package/form-input-cron-expression/index.mjs +2 -0
- package/form-input-cron-expression/style.css +1 -0
- package/form-input-email/index.d.ts +363 -0
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.d.ts +363 -0
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.d.ts +325 -0
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.d.ts +363 -0
- package/form-input-phone-number/index.mjs +1 -1
- package/form-input-tag/index.d.ts +2 -0
- package/form-input-time/index.d.ts +2 -0
- package/form-item-config-provider/index.d.ts +22 -0
- package/form-item-config-provider/index.mjs +24 -0
- package/form-item-group/index.d.ts +92 -0
- package/form-item-group/index.mjs +2 -78
- package/form-item-group/style.css +1 -1
- package/form-item-x/index.d.ts +184 -0
- package/form-item-x/index.mjs +1 -1
- package/form-item-x/style.css +1 -0
- package/form-radio-group/index.d.ts +281 -0
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.d.ts +319 -0
- package/form-rate/index.mjs +1 -1
- package/form-red-table/index.d.ts +21 -0
- package/form-red-table/index.mjs +27 -26
- package/form-row/index.d.ts +11 -0
- package/form-row/index.mjs +1 -1
- package/form-select/index.d.ts +540 -0
- package/form-select/index.mjs +1 -1
- package/form-slider/index.d.ts +348 -0
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.d.ts +337 -0
- package/form-switch/index.mjs +1 -1
- package/form-text/index.d.ts +227 -0
- package/form-text/index.mjs +1 -1
- package/form-view/index.d.ts +2 -0
- package/index.d.ts +42 -0
- package/index.mjs +39 -34
- package/month-calendar/index.d.ts +80 -0
- package/month-calendar/index.mjs +312 -0
- package/month-calendar/style.css +1 -0
- package/package.json +10 -7
- package/resolver.d.ts +9 -0
- package/resolver.mjs +29 -0
- package/table-view/index.d.ts +2 -0
- package/toolbar/index.d.ts +2 -0
- package/toolbar-button/index.d.ts +2 -0
- package/vue-cron/index.d.ts +191 -0
- package/vue-cron/index.mjs +2 -0
- package/vue-cron/style.css +1 -0
- package/web-types.json +1 -1
- package/year-calendar/index.d.ts +99 -0
- package/year-calendar/index.mjs +174 -0
- package/year-calendar/style.css +1 -0
- package/chunks/B4M_TFeR.mjs +0 -152
- package/chunks/B5BIQCcK.mjs +0 -149
- package/chunks/BHNKrW1j.mjs +0 -61
- package/chunks/BO9jWhBl.mjs +0 -46
- package/chunks/BZ8aOa78.mjs +0 -35
- package/chunks/Bsz7y4Xp.mjs +0 -73
- package/chunks/Bxj372sF.mjs +0 -53
- package/chunks/C33EmJN8.mjs +0 -32
- package/chunks/C6Li3-l7.mjs +0 -28
- package/chunks/CBcdalMX.mjs +0 -35
- package/chunks/CdRsyF0n.mjs +0 -43
- package/chunks/ClNahmiU.mjs +0 -23
- package/chunks/CstztYMu.mjs +0 -28
- package/chunks/DC9b53M6.mjs +0 -32
- package/chunks/DDVAgRED.mjs +0 -36
- package/chunks/DpJQABVD.mjs +0 -91
- package/chunks/ZsLNWI9x.mjs +0 -46
- package/chunks/jn_iQrVZ.mjs +0 -28
- package/input/style.css +0 -1
package/constants.d.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { InjectionKey } from 'vue';
|
|
2
|
+
export declare const formHolderContextKey: InjectionKey<{
|
|
3
|
+
tableForm: boolean;
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
enabledFields: string[];
|
|
6
|
+
requiredFields: string[];
|
|
7
|
+
enabledFieldsMap: Record<string, boolean | undefined>;
|
|
8
|
+
disabledFieldsMap: Record<string, boolean | undefined>;
|
|
9
|
+
requiredFieldsMap: Record<string, boolean | undefined>;
|
|
10
|
+
disabledFields: string[];
|
|
11
|
+
scrollIntoRequiredField: () => Promise<void> | any;
|
|
12
|
+
formRef: unknown;
|
|
13
|
+
validate: () => Promise<void> | any;
|
|
14
|
+
validateField: () => any;
|
|
15
|
+
resetFields: () => any;
|
|
16
|
+
scrollToField: () => any;
|
|
17
|
+
clearValidate: () => any;
|
|
18
|
+
getField: () => any;
|
|
19
|
+
setInitialValues: () => any;
|
|
20
|
+
getFields: () => any;
|
|
21
|
+
}>;
|
|
22
|
+
export declare const formItemGroupContextKey: InjectionKey<{
|
|
23
|
+
disabled: boolean;
|
|
24
|
+
enabled: boolean;
|
|
25
|
+
isDisabled: boolean;
|
|
26
|
+
size: string;
|
|
27
|
+
}>;
|
|
28
|
+
export declare const formItemConfigProviderContextKey: InjectionKey<{
|
|
29
|
+
reactive: boolean;
|
|
30
|
+
block: boolean;
|
|
31
|
+
wrapCol: boolean;
|
|
32
|
+
}>;
|
|
33
|
+
export declare const formViewContextKey: unique symbol;
|
|
34
|
+
export declare const formEntityContextKey: unique symbol;
|
|
35
|
+
export declare const formItemConfigContextKey: unique symbol;
|
|
36
|
+
export declare const flowContextKey: unique symbol;
|
|
37
|
+
export declare const toolbarContextKey: unique symbol;
|
|
38
|
+
export declare const tableViewContextKey: unique symbol;
|
|
39
|
+
export declare const pageableTableContextKey: unique symbol;
|
|
40
|
+
export declare const columnSizeContextKey: unique symbol;
|
|
41
|
+
export declare const columnsContextKey: unique symbol;
|
|
42
|
+
export declare const setColumnSizeContextKey: unique symbol;
|
package/constants.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region src/components/constants.
|
|
2
|
-
var e = Symbol("formHolder");
|
|
1
|
+
//#region src/components/constants.ts
|
|
2
|
+
var e = Symbol("formHolder"), t = Symbol("formItemGroup"), n = Symbol("formItemConfigProvider"), r = Symbol("formView"), i = Symbol("formEntity"), a = Symbol("formItemConfig"), o = Symbol("flowContext"), s = Symbol("toolbar"), c = Symbol("tableView"), l = Symbol("pageableTable"), u = Symbol("columnSize"), d = Symbol("columns"), f = Symbol("setColumnSize");
|
|
3
3
|
//#endregion
|
|
4
|
-
export { e as
|
|
4
|
+
export { u as columnSizeContextKey, d as columnsContextKey, o as flowContextKey, i as formEntityContextKey, e as formHolderContextKey, a as formItemConfigContextKey, n as formItemConfigProviderContextKey, t as formItemGroupContextKey, r as formViewContextKey, l as pageableTableContextKey, f as setColumnSizeContextKey, c as tableViewContextKey, s as toolbarContextKey };
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
2
|
+
export default _default;
|
|
3
|
+
type __VLS_WithTemplateSlots<T, S> = T & (new () => {
|
|
4
|
+
$slots: S;
|
|
5
|
+
});
|
|
6
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
7
|
+
close: () => void;
|
|
8
|
+
hide: () => void;
|
|
9
|
+
$emit: ((event: "open", ...args: any[]) => void) & ((event: "opened", ...args: any[]) => void) & ((event: "close", ...args: any[]) => void) & ((event: "closed", ...args: any[]) => void) & ((event: "open-auto-focus", ...args: any[]) => void) & ((event: "close-auto-focus", ...args: any[]) => void) & ((event: "toggle-fullscreen", ...args: any[]) => void);
|
|
10
|
+
modelValue: boolean;
|
|
11
|
+
title: string;
|
|
12
|
+
fullscreen: boolean;
|
|
13
|
+
top: string;
|
|
14
|
+
modal: boolean;
|
|
15
|
+
modalPenetrable: boolean;
|
|
16
|
+
appendToBody: boolean;
|
|
17
|
+
lockScroll: boolean;
|
|
18
|
+
openDelay: number;
|
|
19
|
+
closeDelay: number;
|
|
20
|
+
closeOnClickModal: boolean;
|
|
21
|
+
closeOnPressEscape: boolean;
|
|
22
|
+
showClose: boolean;
|
|
23
|
+
draggable: boolean;
|
|
24
|
+
overflow: boolean;
|
|
25
|
+
center: boolean;
|
|
26
|
+
alignCenter: boolean;
|
|
27
|
+
destroyOnClose: boolean;
|
|
28
|
+
headerAriaLevel: string;
|
|
29
|
+
customClass: string;
|
|
30
|
+
embed: boolean;
|
|
31
|
+
showFullscreen: boolean;
|
|
32
|
+
showFullScreen: boolean;
|
|
33
|
+
width?: string | number | undefined;
|
|
34
|
+
modalClass?: string | undefined;
|
|
35
|
+
headerClass?: string | undefined;
|
|
36
|
+
bodyClass?: string | undefined;
|
|
37
|
+
footerClass?: string | undefined;
|
|
38
|
+
appendTo?: string | Record<string, any> | undefined;
|
|
39
|
+
beforeClose?: Function | undefined;
|
|
40
|
+
closeIcon?: string | Record<string, any> | undefined;
|
|
41
|
+
zIndex?: number | undefined;
|
|
42
|
+
transition?: string | Record<string, any> | undefined;
|
|
43
|
+
height?: string | undefined;
|
|
44
|
+
$props: {
|
|
45
|
+
readonly modelValue?: boolean | undefined;
|
|
46
|
+
readonly title?: string | undefined;
|
|
47
|
+
readonly fullscreen?: boolean | undefined;
|
|
48
|
+
readonly top?: string | undefined;
|
|
49
|
+
readonly modal?: boolean | undefined;
|
|
50
|
+
readonly modalPenetrable?: boolean | undefined;
|
|
51
|
+
readonly appendToBody?: boolean | undefined;
|
|
52
|
+
readonly lockScroll?: boolean | undefined;
|
|
53
|
+
readonly openDelay?: number | undefined;
|
|
54
|
+
readonly closeDelay?: number | undefined;
|
|
55
|
+
readonly closeOnClickModal?: boolean | undefined;
|
|
56
|
+
readonly closeOnPressEscape?: boolean | undefined;
|
|
57
|
+
readonly showClose?: boolean | undefined;
|
|
58
|
+
readonly draggable?: boolean | undefined;
|
|
59
|
+
readonly overflow?: boolean | undefined;
|
|
60
|
+
readonly center?: boolean | undefined;
|
|
61
|
+
readonly alignCenter?: boolean | undefined;
|
|
62
|
+
readonly destroyOnClose?: boolean | undefined;
|
|
63
|
+
readonly headerAriaLevel?: string | undefined;
|
|
64
|
+
readonly customClass?: string | undefined;
|
|
65
|
+
readonly embed?: boolean | undefined;
|
|
66
|
+
readonly showFullscreen?: boolean | undefined;
|
|
67
|
+
readonly showFullScreen?: boolean | undefined;
|
|
68
|
+
readonly width?: string | number | undefined;
|
|
69
|
+
readonly modalClass?: string | undefined;
|
|
70
|
+
readonly headerClass?: string | undefined;
|
|
71
|
+
readonly bodyClass?: string | undefined;
|
|
72
|
+
readonly footerClass?: string | undefined;
|
|
73
|
+
readonly appendTo?: string | Record<string, any> | undefined;
|
|
74
|
+
readonly beforeClose?: Function | undefined;
|
|
75
|
+
readonly closeIcon?: string | Record<string, any> | undefined;
|
|
76
|
+
readonly zIndex?: number | undefined;
|
|
77
|
+
readonly transition?: string | Record<string, any> | undefined;
|
|
78
|
+
readonly height?: string | undefined;
|
|
79
|
+
};
|
|
80
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
81
|
+
dialog: unknown;
|
|
82
|
+
}, any>;
|
|
83
|
+
type __VLS_TemplateResult = {
|
|
84
|
+
attrs: Partial<{}>;
|
|
85
|
+
slots: {
|
|
86
|
+
header?(_: {}): any;
|
|
87
|
+
default?(_: {}): any;
|
|
88
|
+
footer?(_: {
|
|
89
|
+
close: () => void;
|
|
90
|
+
}): any;
|
|
91
|
+
};
|
|
92
|
+
refs: {
|
|
93
|
+
dialog: unknown;
|
|
94
|
+
};
|
|
95
|
+
rootEl: any;
|
|
96
|
+
};
|
package/element-dialog/index.mjs
CHANGED
|
@@ -1,92 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/components/ElementDialog.vue
|
|
4
|
-
var x = { class: "dialog-title" }, S = { class: "dialog-header-buttons" }, C = /* @__PURE__ */ Object.assign({ name: "ElementDialog" }, {
|
|
5
|
-
__name: "ElementDialog",
|
|
6
|
-
props: /* @__PURE__ */ c({
|
|
7
|
-
height: String,
|
|
8
|
-
width: String,
|
|
9
|
-
title: String,
|
|
10
|
-
embed: Boolean,
|
|
11
|
-
showClose: Boolean,
|
|
12
|
-
overflow: Boolean,
|
|
13
|
-
closeOnClickModal: Boolean,
|
|
14
|
-
destroyOnClose: Boolean,
|
|
15
|
-
draggable: {
|
|
16
|
-
type: Boolean,
|
|
17
|
-
default: !0
|
|
18
|
-
},
|
|
19
|
-
showFullscreen: Boolean,
|
|
20
|
-
showFullScreen: Boolean,
|
|
21
|
-
alignCenter: Boolean,
|
|
22
|
-
appendToBody: {
|
|
23
|
-
type: Boolean,
|
|
24
|
-
default: !0
|
|
25
|
-
}
|
|
26
|
-
}, {
|
|
27
|
-
modelValue: { type: Boolean },
|
|
28
|
-
modelModifiers: {}
|
|
29
|
-
}),
|
|
30
|
-
emits: /* @__PURE__ */ c(["toggle-fullscreen"], ["update:modelValue"]),
|
|
31
|
-
setup(c, { expose: C, emit: w }) {
|
|
32
|
-
g((e) => ({ v4eb8749a: h(j) }));
|
|
33
|
-
let T = _(c, "modelValue"), E = c, D = w, O = v("dialog"), k = f(!1), A = () => {
|
|
34
|
-
k.value = !k.value, D("toggle-fullscreen", k.value);
|
|
35
|
-
}, j = t(() => k.value ? "100%" : E.height), M = s(), N = () => {
|
|
36
|
-
E.embed ? M.parent.emit("update:visible") : O.value.handleClose();
|
|
37
|
-
};
|
|
38
|
-
return C({
|
|
39
|
-
close: N,
|
|
40
|
-
hide: N
|
|
41
|
-
}), (t, s) => {
|
|
42
|
-
let f = e;
|
|
43
|
-
return d(), n(f, {
|
|
44
|
-
ref: "dialog",
|
|
45
|
-
modelValue: T.value,
|
|
46
|
-
"onUpdate:modelValue": s[0] || (s[0] = (e) => T.value = e),
|
|
47
|
-
"append-to-body": c.appendToBody,
|
|
48
|
-
fullscreen: h(k),
|
|
49
|
-
"show-close": c.showClose,
|
|
50
|
-
"destroy-on-close": c.destroyOnClose,
|
|
51
|
-
draggable: c.draggable,
|
|
52
|
-
overflow: c.overflow,
|
|
53
|
-
"align-center": c.alignCenter,
|
|
54
|
-
style: u({ "--dialog-body-height": h(j) }),
|
|
55
|
-
width: c.width,
|
|
56
|
-
"close-on-click-modal": c.closeOnClickModal
|
|
57
|
-
}, o({
|
|
58
|
-
header: y(() => [a("div", x, m(c.title), 1), a("div", S, [c.showFullscreen || c.showFullScreen ? (d(), i("i", {
|
|
59
|
-
key: 0,
|
|
60
|
-
class: l(["dialog-header-button", {
|
|
61
|
-
"el-icon-full-screen": !h(k),
|
|
62
|
-
"el-icon-copy-document": h(k)
|
|
63
|
-
}]),
|
|
64
|
-
onClick: b(A, ["stop"])
|
|
65
|
-
}, null, 2)) : r("v-if", !0), a("i", {
|
|
66
|
-
class: "dialog-header-button el-icon-close",
|
|
67
|
-
onClick: b(N, ["stop"])
|
|
68
|
-
})])]),
|
|
69
|
-
default: y(() => [p(t.$slots, "default")]),
|
|
70
|
-
_: 2
|
|
71
|
-
}, [t.$slots.footer ? {
|
|
72
|
-
name: "footer",
|
|
73
|
-
fn: y(() => [p(t.$slots, "footer", { close: N })]),
|
|
74
|
-
key: "0"
|
|
75
|
-
} : void 0]), 1032, [
|
|
76
|
-
"modelValue",
|
|
77
|
-
"append-to-body",
|
|
78
|
-
"fullscreen",
|
|
79
|
-
"show-close",
|
|
80
|
-
"destroy-on-close",
|
|
81
|
-
"draggable",
|
|
82
|
-
"overflow",
|
|
83
|
-
"align-center",
|
|
84
|
-
"style",
|
|
85
|
-
"width",
|
|
86
|
-
"close-on-click-modal"
|
|
87
|
-
]);
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
//#endregion
|
|
92
|
-
export { C as default };
|
|
1
|
+
import { t as e } from "../chunks/B5B9au3z.mjs";
|
|
2
|
+
export { e as default };
|
package/element-dialog/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.el-dialog{border-radius:4px 4px 0 0;flex-direction:column;padding:0;display:flex}.el-dialog .dialog-title{min-height:20px}.el-dialog .el-dialog__header{color:#fff;background-color
|
|
1
|
+
:root{--dialog-header-background-color:#025cde}.el-dialog{border-radius:4px 4px 0 0;flex-direction:column;padding:0;display:flex}.el-dialog .dialog-title{min-height:20px}.el-dialog .el-dialog__header{color:#fff;background-color:var(--dialog-header-background-color);border-radius:4px 4px 0 0;justify-content:center;align-items:center;padding:6px 10px;line-height:normal;display:flex;position:relative}.el-dialog .dialog-header-buttons{display:flex;position:absolute;top:50%;right:10px;transform:translateY(-50%)}.el-dialog .dialog-header-button{cursor:pointer;padding:2px;font-size:14px}.el-dialog .dialog-header-button+.dialog-header-button{margin-left:10px}.el-dialog .dialog-header-button:hover{background-color:#0000004d;border-radius:2px}.el-dialog .dialog-header-button.el-icon-close:hover{background-color:#e34e55;border-radius:2px}.el-dialog .el-dialog__body{height:var(--dialog-body-height);flex:auto;min-height:40vh;padding:10px}.el-dialog .el-dialog__footer{border-top:1px solid #dddee3;padding:10px}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
2
|
+
export default _default;
|
|
3
|
+
type __VLS_WithTemplateSlots<T, S> = T & (new () => {
|
|
4
|
+
$slots: S;
|
|
5
|
+
});
|
|
6
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
7
|
+
height: string;
|
|
8
|
+
emptyTips: string;
|
|
9
|
+
fontSize: string;
|
|
10
|
+
icon: string;
|
|
11
|
+
iconSize: string;
|
|
12
|
+
showIcon: boolean;
|
|
13
|
+
$props: {
|
|
14
|
+
readonly height?: string | undefined;
|
|
15
|
+
readonly emptyTips?: string | undefined;
|
|
16
|
+
readonly fontSize?: string | undefined;
|
|
17
|
+
readonly icon?: string | undefined;
|
|
18
|
+
readonly iconSize?: string | undefined;
|
|
19
|
+
readonly showIcon?: boolean | undefined;
|
|
20
|
+
};
|
|
21
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
22
|
+
type __VLS_TemplateResult = {
|
|
23
|
+
attrs: Partial<{}>;
|
|
24
|
+
slots: {
|
|
25
|
+
default?(_: {}): any;
|
|
26
|
+
};
|
|
27
|
+
refs: {};
|
|
28
|
+
rootEl: HTMLDivElement;
|
|
29
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
2
|
+
export default _default;
|
|
3
|
+
type __VLS_WithTemplateSlots<T, S> = T & (new () => {
|
|
4
|
+
$slots: S;
|
|
5
|
+
});
|
|
6
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
7
|
+
scroller: Readonly<import('vue').ShallowRef<HTMLDivElement | null, HTMLDivElement | null>>;
|
|
8
|
+
computeScrollbar: () => void;
|
|
9
|
+
$emit: (event: "scroll" | "scrollbar", ...args: any[]) => void;
|
|
10
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
11
|
+
scroller: HTMLDivElement;
|
|
12
|
+
}, HTMLDivElement>;
|
|
13
|
+
type __VLS_TemplateResult = {
|
|
14
|
+
attrs: Partial<{}>;
|
|
15
|
+
slots: {
|
|
16
|
+
default?(_: {}): any;
|
|
17
|
+
};
|
|
18
|
+
refs: {
|
|
19
|
+
scroller: HTMLDivElement;
|
|
20
|
+
};
|
|
21
|
+
rootEl: HTMLDivElement;
|
|
22
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
|
+
valueColspan?: number | undefined;
|
|
3
|
+
labelColspan?: number | undefined;
|
|
4
|
+
$props: {
|
|
5
|
+
readonly valueColspan?: number | undefined;
|
|
6
|
+
readonly labelColspan?: number | undefined;
|
|
7
|
+
};
|
|
8
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLTableSectionElement>;
|
|
9
|
+
export default _default;
|
package/form-advice/index.mjs
CHANGED
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { columnSizeContextKey as e, flowContextKey as t } from "../constants.mjs";
|
|
2
|
+
import { Fragment as n, computed as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, inject as c, openBlock as l, renderList as u, toDisplayString as d, unref as f } from "vue";
|
|
2
3
|
//#region src/components/red-form/FormAdvice.vue
|
|
3
|
-
var
|
|
4
|
+
var p = ["colspan"], m = ["colspan"], h = { style: { "text-align": "right" } }, g = { style: { "margin-left": "20px" } }, _ = /* @__PURE__ */ Object.assign({ name: "FormAdvice" }, {
|
|
4
5
|
__name: "FormAdvice",
|
|
5
6
|
props: {
|
|
6
7
|
valueColspan: Number,
|
|
7
8
|
labelColspan: Number
|
|
8
9
|
},
|
|
9
|
-
setup(
|
|
10
|
-
let
|
|
11
|
-
return (
|
|
12
|
-
var
|
|
13
|
-
return
|
|
10
|
+
setup(_) {
|
|
11
|
+
let v = _, y = c(e, 0), b = c(t, null), x = r(() => v.labelColspan && v.valueColspan || v.labelColspan && !v.valueColspan ? v.labelColspan : !v.labelColspan && v.valueColspan && y.value ? y.value - v.valueColspan : 0), S = r(() => v.labelColspan && v.valueColspan ? v.valueColspan : v.labelColspan && !v.valueColspan ? y.value ? y.value - v.labelColspan : 0 : !v.labelColspan && v.valueColspan ? v.valueColspan : y.value ? y.value - 1 : 0);
|
|
12
|
+
return (e, t) => {
|
|
13
|
+
var r;
|
|
14
|
+
return l(), a("tbody", null, [(l(!0), a(n, null, u((r = f(b)) == null ? void 0 : r.formComments, (e) => (l(), a(n, null, [e.comments.length ? (l(), a("tr", { key: e.id }, [o("td", {
|
|
14
15
|
class: "label",
|
|
15
16
|
style: {
|
|
16
17
|
height: "100px",
|
|
17
18
|
"line-height": "24px"
|
|
18
19
|
},
|
|
19
|
-
colspan:
|
|
20
|
-
},
|
|
20
|
+
colspan: x.value
|
|
21
|
+
}, d(e.name), 9, p), o("td", {
|
|
21
22
|
class: "input",
|
|
22
|
-
colspan:
|
|
23
|
-
}, [
|
|
23
|
+
colspan: S.value
|
|
24
|
+
}, [o("ul", null, [(l(!0), a(n, null, u(e.comments, (e) => (l(), a("li", { key: e.id }, [o("p", null, d(e.message), 1), o("p", h, [s(d(e.personalName) + " ", 1), o("span", g, d(e.time.substring(0, 10)), 1)])]))), 128))])], 8, m)])) : i("v-if", !0)], 64))), 256))]);
|
|
24
25
|
};
|
|
25
26
|
}
|
|
26
27
|
});
|
|
27
28
|
//#endregion
|
|
28
|
-
export {
|
|
29
|
+
export { _ as default };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { t as e } from "../chunks/D9GcEl6r.mjs";
|
|
2
|
+
import { createElementBlock as t, openBlock as n } from "vue";
|
|
3
|
+
//#region src/components/form/FormCascader.vue
|
|
4
|
+
var r = { name: "FormCascader" };
|
|
5
|
+
function i(e, r, i, a, o, s) {
|
|
6
|
+
return n(), t("div");
|
|
7
|
+
}
|
|
8
|
+
var a = /* @__PURE__ */ e(r, [["render", i]]);
|
|
9
|
+
//#endregion
|
|
10
|
+
export { a as default };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
2
|
+
export default _default;
|
|
3
|
+
type __VLS_WithTemplateSlots<T, S> = T & (new () => {
|
|
4
|
+
$slots: S;
|
|
5
|
+
});
|
|
6
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
7
|
+
alignCenter: boolean;
|
|
8
|
+
isLabel: boolean;
|
|
9
|
+
colspan?: string | number | undefined;
|
|
10
|
+
rowspan?: string | number | undefined;
|
|
11
|
+
$props: {
|
|
12
|
+
readonly alignCenter?: boolean | undefined;
|
|
13
|
+
readonly isLabel?: boolean | undefined;
|
|
14
|
+
readonly colspan?: string | number | undefined;
|
|
15
|
+
readonly rowspan?: string | number | undefined;
|
|
16
|
+
};
|
|
17
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLTableCellElement>;
|
|
18
|
+
type __VLS_TemplateResult = {
|
|
19
|
+
attrs: Partial<{}>;
|
|
20
|
+
slots: {
|
|
21
|
+
default?(_: {}): any;
|
|
22
|
+
};
|
|
23
|
+
refs: {};
|
|
24
|
+
rootEl: HTMLTableCellElement;
|
|
25
|
+
};
|