@keyblade/pro-components 1.13.8-alpha.7 → 1.13.8-alpha.9
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/es/global-props.d.ts +2 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +18 -16
- package/es/inerface.d.ts +1 -0
- package/es/pro-date-range-picker/index.d.ts +8 -8
- package/es/pro-date-range-picker/{type.d.ts → inerface.d.ts} +5 -1
- package/es/pro-date-range-picker/pro-date-range-picker.vue.d.ts +1 -1
- package/es/pro-date-range-picker/pro-date-range-picker.vue.js +2 -2
- package/es/pro-date-range-picker/pro-date-range-picker.vue2.js +50 -40
- package/es/pro-form-group/index.d.ts +43 -0
- package/es/pro-form-group/index.js +12 -0
- package/es/pro-form-group/index.vue.d.ts +28 -0
- package/es/pro-form-group/index.vue.js +7 -0
- package/es/pro-form-group/index.vue2.js +43 -0
- package/es/style.css +1 -1
- package/package.json +1 -1
package/es/global-props.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { ProFooterBarProps } from './pro-footer-bar/inerface';
|
|
2
2
|
import { ProTableProps } from './pro-table/interface';
|
|
3
3
|
import { ProTextareaProps } from './pro-textarea';
|
|
4
|
+
import { ProDateRangePickerProps } from './pro-date-range-picker/inerface';
|
|
4
5
|
export interface GlobalProps {
|
|
5
6
|
footerBar?: ProFooterBarProps;
|
|
7
|
+
dateRangePicker?: ProDateRangePickerProps;
|
|
6
8
|
textarea?: ProTextareaProps;
|
|
7
9
|
table?: ProTableProps;
|
|
8
10
|
}
|
package/es/index.d.ts
CHANGED
|
@@ -18,5 +18,6 @@ export * from './pro-image-upload';
|
|
|
18
18
|
export { default as ProDateRangePicker } from './pro-date-range-picker';
|
|
19
19
|
export { default as ProTextarea } from './pro-textarea';
|
|
20
20
|
export { default as ProTable } from './pro-table';
|
|
21
|
+
export { default as ProFormGroup } from './pro-form-group';
|
|
21
22
|
export type {} from './components';
|
|
22
23
|
export * from './inerface';
|
package/es/index.js
CHANGED
|
@@ -3,33 +3,35 @@ import { ProKeepAliveRouterView as m } from "./pro-keep-alive-router-view/index.
|
|
|
3
3
|
import { ProLayout as t } from "./pro-layout/index.js";
|
|
4
4
|
import { ProMenu as i } from "./pro-menu/index.js";
|
|
5
5
|
import { ProPageContainer as s } from "./pro-page-container/index.js";
|
|
6
|
-
import { ProReuseTabs as
|
|
7
|
-
import { ProImageUpload as
|
|
8
|
-
import { ProDateRangePicker as
|
|
9
|
-
import { ProTable as
|
|
6
|
+
import { ProReuseTabs as u } from "./pro-reuse-tabs/index.js";
|
|
7
|
+
import { ProImageUpload as f } from "./pro-image-upload/index.js";
|
|
8
|
+
import { ProDateRangePicker as P } from "./pro-date-range-picker/index.js";
|
|
9
|
+
import { ProTable as a } from "./pro-table/index.js";
|
|
10
10
|
import { ProTextarea as l } from "./pro-textarea/index.js";
|
|
11
11
|
import { ProFooterBar as n } from "./pro-footer-bar/index.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
|
|
12
|
+
import { ProFormGroup as d } from "./pro-form-group/index.js";
|
|
13
|
+
import { globalProps as g } from "./global-props.js";
|
|
14
|
+
import { EImageUploadInnerBeforeUploadStep as A } from "./pro-image-upload/types.js";
|
|
15
|
+
import { defaultImageUploadOptions as D } from "./pro-image-upload/constant.js";
|
|
16
|
+
const v = {
|
|
16
17
|
install(o, r) {
|
|
17
|
-
Object.assign(
|
|
18
|
+
Object.assign(g, r || {}), o.use(e), o.use(m), o.use(t), o.use(n), o.use(i), o.use(s), o.use(u), o.use(f), o.use(P), o.use(l), o.use(a), o.use(d);
|
|
18
19
|
}
|
|
19
20
|
};
|
|
20
21
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
A as EImageUploadInnerBeforeUploadStep,
|
|
23
|
+
P as ProDateRangePicker,
|
|
23
24
|
n as ProFooterBar,
|
|
24
|
-
|
|
25
|
+
d as ProFormGroup,
|
|
26
|
+
f as ProImageUpload,
|
|
25
27
|
m as ProKeepAliveRouterView,
|
|
26
28
|
t as ProLayout,
|
|
27
29
|
i as ProMenu,
|
|
28
30
|
s as ProPageContainer,
|
|
29
31
|
e as ProPageHeader,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
+
u as ProReuseTabs,
|
|
33
|
+
a as ProTable,
|
|
32
34
|
l as ProTextarea,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
+
v as default,
|
|
36
|
+
D as defaultImageUploadOptions
|
|
35
37
|
};
|
package/es/inerface.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
2
|
declare const ProDateRangePicker: {
|
|
3
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./
|
|
4
|
-
"onUpdate:modelValue"?: ((value: import('./
|
|
3
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./inerface').IProDateRangePickerProps> & Readonly<{
|
|
4
|
+
"onUpdate:modelValue"?: ((value: import('./inerface').IModelValue) => any) | undefined;
|
|
5
5
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
6
|
-
"update:modelValue": (value: import('./
|
|
6
|
+
"update:modelValue": (value: import('./inerface').IModelValue) => any;
|
|
7
7
|
}, import('vue').PublicProps, {
|
|
8
8
|
hideLabel: boolean;
|
|
9
9
|
startField: string;
|
|
@@ -21,8 +21,8 @@ declare const ProDateRangePicker: {
|
|
|
21
21
|
C: {};
|
|
22
22
|
M: {};
|
|
23
23
|
Defaults: {};
|
|
24
|
-
}, Readonly<import('./
|
|
25
|
-
"onUpdate:modelValue"?: ((value: import('./
|
|
24
|
+
}, Readonly<import('./inerface').IProDateRangePickerProps> & Readonly<{
|
|
25
|
+
"onUpdate:modelValue"?: ((value: import('./inerface').IModelValue) => any) | undefined;
|
|
26
26
|
}>, {}, {}, {}, {}, {
|
|
27
27
|
hideLabel: boolean;
|
|
28
28
|
startField: string;
|
|
@@ -34,10 +34,10 @@ declare const ProDateRangePicker: {
|
|
|
34
34
|
__isFragment?: never;
|
|
35
35
|
__isTeleport?: never;
|
|
36
36
|
__isSuspense?: never;
|
|
37
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./
|
|
38
|
-
"onUpdate:modelValue"?: ((value: import('./
|
|
37
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./inerface').IProDateRangePickerProps> & Readonly<{
|
|
38
|
+
"onUpdate:modelValue"?: ((value: import('./inerface').IModelValue) => any) | undefined;
|
|
39
39
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
40
|
-
"update:modelValue": (value: import('./
|
|
40
|
+
"update:modelValue": (value: import('./inerface').IModelValue) => any;
|
|
41
41
|
}, string, {
|
|
42
42
|
hideLabel: boolean;
|
|
43
43
|
startField: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DatePickerInstance, FormItemInstance } from '@arco-design/web-vue';
|
|
1
|
+
import { DatePickerInstance, FormItemInstance, TimePickerInstance } from '@arco-design/web-vue';
|
|
2
2
|
export interface IModelValue {
|
|
3
3
|
[key: string]: any;
|
|
4
4
|
}
|
|
@@ -18,5 +18,9 @@ export interface IProDateRangePickerProps {
|
|
|
18
18
|
intraday?: boolean;
|
|
19
19
|
hideLabel?: boolean;
|
|
20
20
|
formItemProps?: FormItemInstance;
|
|
21
|
+
/** 日期选择器配置 */
|
|
21
22
|
datePickerProps?: DatePickerInstance;
|
|
23
|
+
/** 时间选择器配置 */
|
|
24
|
+
timePickerProps?: TimePickerInstance['$props'];
|
|
22
25
|
}
|
|
26
|
+
export type ProDateRangePickerProps = Partial<IProDateRangePickerProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IModelValue, IProDateRangePickerProps } from './
|
|
1
|
+
import { IModelValue, IProDateRangePickerProps } from './inerface';
|
|
2
2
|
declare const _default: import('vue').DefineComponent<IProDateRangePickerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
3
3
|
"update:modelValue": (value: IModelValue) => any;
|
|
4
4
|
}, string, import('vue').PublicProps, Readonly<IProDateRangePickerProps> & Readonly<{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./pro-date-range-picker.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-670ac66c"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as N, ref as c, computed as p, resolveComponent as g, createElementBlock as q, openBlock as x, normalizeClass as A, createVNode as i, mergeProps as s, withCtx as f, createTextVNode as H, toDisplayString as L, nextTick as D } from "vue";
|
|
2
2
|
import o from "dayjs";
|
|
3
|
-
import {
|
|
4
|
-
|
|
3
|
+
import { conclude as F } from "vue-global-config";
|
|
4
|
+
import { globalProps as v } from "../global-props.js";
|
|
5
|
+
import { range as P } from "./pro-date-range-picker.js";
|
|
6
|
+
const M = "keyblade-pro-date-range-picker", J = /* @__PURE__ */ N({
|
|
5
7
|
__name: "pro-date-range-picker",
|
|
6
8
|
props: {
|
|
7
9
|
modelValue: {},
|
|
@@ -13,35 +15,36 @@ const H = "keyblade-pro-date-range-picker", $ = /* @__PURE__ */ R({
|
|
|
13
15
|
intraday: { type: Boolean },
|
|
14
16
|
hideLabel: { type: Boolean, default: !0 },
|
|
15
17
|
formItemProps: {},
|
|
16
|
-
datePickerProps: {}
|
|
18
|
+
datePickerProps: {},
|
|
19
|
+
timePickerProps: {}
|
|
17
20
|
},
|
|
18
21
|
emits: ["update:modelValue"],
|
|
19
|
-
setup(
|
|
20
|
-
const e =
|
|
22
|
+
setup(S, { emit: C }) {
|
|
23
|
+
const e = S, k = C, V = c(), h = c(), n = c(), u = p({
|
|
21
24
|
get: () => e.modelValue[e.startField],
|
|
22
25
|
set: (t) => {
|
|
23
|
-
|
|
26
|
+
k("update:modelValue", {
|
|
24
27
|
...e.modelValue,
|
|
25
28
|
[e.startField]: t
|
|
26
29
|
});
|
|
27
30
|
}
|
|
28
|
-
}),
|
|
31
|
+
}), b = p({
|
|
29
32
|
get: () => e.modelValue[e.endField],
|
|
30
33
|
set: (t) => {
|
|
31
|
-
|
|
34
|
+
k("update:modelValue", {
|
|
32
35
|
...e.modelValue,
|
|
33
36
|
[e.endField]: t
|
|
34
37
|
});
|
|
35
38
|
}
|
|
36
|
-
}),
|
|
39
|
+
}), T = (t) => {
|
|
37
40
|
var l;
|
|
38
41
|
if (!e.modelValue[e.endField]) return !1;
|
|
39
42
|
let a = o(e.modelValue[e.endField]);
|
|
40
43
|
return e.intraday && !((l = e.datePickerProps) != null && l.showTime) && (a = a.add(1, "day")), o(t).isAfter(a);
|
|
41
|
-
},
|
|
44
|
+
}, _ = (t) => {
|
|
42
45
|
var d;
|
|
43
46
|
return e.modelValue[e.startField] ? (e.intraday && ((d = e.datePickerProps) != null && d.showTime) && t.setDate(t.getDate() + 1), o(t).isBefore(o(e.modelValue[e.startField]))) : !1;
|
|
44
|
-
},
|
|
47
|
+
}, E = (t) => {
|
|
45
48
|
if (!e.modelValue[e.startField] || !t || !e.intraday) {
|
|
46
49
|
n.value = {};
|
|
47
50
|
return;
|
|
@@ -51,49 +54,55 @@ const H = "keyblade-pro-date-range-picker", $ = /* @__PURE__ */ R({
|
|
|
51
54
|
n.value = {};
|
|
52
55
|
return;
|
|
53
56
|
}
|
|
54
|
-
const l = a.hour(), r = a.minute(),
|
|
57
|
+
const l = a.hour(), r = a.minute(), w = a.second();
|
|
55
58
|
n.value = {
|
|
56
|
-
disabledHours: () =>
|
|
57
|
-
disabledMinutes: (m) => m === l ?
|
|
58
|
-
disabledSeconds: (m,
|
|
59
|
+
disabledHours: () => P(0, l),
|
|
60
|
+
disabledMinutes: (m) => m === l ? P(0, r) : [],
|
|
61
|
+
disabledSeconds: (m, I) => m === l && I === r ? P(0, w) : []
|
|
59
62
|
};
|
|
60
|
-
},
|
|
63
|
+
}, R = () => {
|
|
61
64
|
setTimeout(() => {
|
|
62
65
|
const t = e.modelValue[e.endField], a = e.modelValue[e.startField];
|
|
63
66
|
o(a).isAfter(o(t)) && (u.value = t), t && !a && D(() => {
|
|
64
67
|
var l;
|
|
65
|
-
const d = (l =
|
|
68
|
+
const d = (l = h.value) == null ? void 0 : l.$el.parentElement.querySelector("input");
|
|
66
69
|
d && d.click();
|
|
67
70
|
});
|
|
68
71
|
});
|
|
69
|
-
},
|
|
72
|
+
}, B = () => {
|
|
70
73
|
setTimeout(() => {
|
|
71
74
|
e.modelValue[e.endField] && !e.modelValue[e.startField] && D(() => {
|
|
72
75
|
var a;
|
|
73
|
-
const t = (a =
|
|
76
|
+
const t = (a = V.value) == null ? void 0 : a.$el.parentElement.querySelector("input");
|
|
74
77
|
t && t.click();
|
|
75
78
|
});
|
|
76
79
|
});
|
|
77
|
-
}
|
|
80
|
+
}, y = p(() => {
|
|
81
|
+
var t, a;
|
|
82
|
+
return {
|
|
83
|
+
...F([e.datePickerProps, (t = v.dateRangePicker) == null ? void 0 : t.datePickerProps, {}]),
|
|
84
|
+
timePickerProps: F([e.timePickerProps, (a = v.dateRangePicker) == null ? void 0 : a.timePickerProps], {})
|
|
85
|
+
};
|
|
86
|
+
});
|
|
78
87
|
return (t, a) => {
|
|
79
|
-
const d =
|
|
80
|
-
return
|
|
81
|
-
class:
|
|
88
|
+
const d = g("a-date-picker"), l = g("a-form-item");
|
|
89
|
+
return x(), q("div", {
|
|
90
|
+
class: A(M)
|
|
82
91
|
}, [
|
|
83
92
|
i(l, s(t.formItemProps, {
|
|
84
93
|
field: t.startField,
|
|
85
94
|
"hide-label": t.hideLabel
|
|
86
95
|
}), {
|
|
87
|
-
default:
|
|
96
|
+
default: f(() => [
|
|
88
97
|
i(d, s({
|
|
89
98
|
ref_key: "startDatePickerRef",
|
|
90
|
-
ref:
|
|
99
|
+
ref: V,
|
|
91
100
|
modelValue: u.value,
|
|
92
101
|
"onUpdate:modelValue": a[0] || (a[0] = (r) => u.value = r)
|
|
93
|
-
},
|
|
102
|
+
}, y.value, {
|
|
94
103
|
placeholder: t.startPlaceholder,
|
|
95
|
-
"disabled-date": (r) =>
|
|
96
|
-
onChange:
|
|
104
|
+
"disabled-date": (r) => T(r),
|
|
105
|
+
onChange: R
|
|
97
106
|
}), null, 16, ["modelValue", "placeholder", "disabled-date"])
|
|
98
107
|
]),
|
|
99
108
|
_: 1
|
|
@@ -102,8 +111,8 @@ const H = "keyblade-pro-date-range-picker", $ = /* @__PURE__ */ R({
|
|
|
102
111
|
"hide-label": "",
|
|
103
112
|
style: { "max-height": "32px", top: "0px" }
|
|
104
113
|
}, {
|
|
105
|
-
default:
|
|
106
|
-
|
|
114
|
+
default: f(() => [
|
|
115
|
+
H(L(t.separator), 1)
|
|
107
116
|
]),
|
|
108
117
|
_: 1
|
|
109
118
|
}),
|
|
@@ -112,18 +121,19 @@ const H = "keyblade-pro-date-range-picker", $ = /* @__PURE__ */ R({
|
|
|
112
121
|
"hide-label": "",
|
|
113
122
|
style: { "margin-right": "0px" }
|
|
114
123
|
}), {
|
|
115
|
-
default:
|
|
124
|
+
default: f(() => [
|
|
116
125
|
i(d, s({
|
|
117
126
|
ref_key: "endDatePickerRef",
|
|
118
|
-
ref:
|
|
119
|
-
modelValue:
|
|
120
|
-
"onUpdate:modelValue": a[1] || (a[1] = (r) =>
|
|
121
|
-
},
|
|
127
|
+
ref: h,
|
|
128
|
+
modelValue: b.value,
|
|
129
|
+
"onUpdate:modelValue": a[1] || (a[1] = (r) => b.value = r)
|
|
130
|
+
}, y.value, {
|
|
122
131
|
placeholder: t.endPlaceholder,
|
|
123
|
-
"disabled-date": (r) =>
|
|
132
|
+
"disabled-date": (r) => _(r),
|
|
124
133
|
"disabled-time": () => n.value,
|
|
125
|
-
|
|
126
|
-
|
|
134
|
+
timePickerProps: { defaultValue: "00:00:00" },
|
|
135
|
+
onSelect: E,
|
|
136
|
+
onChange: B
|
|
127
137
|
}), null, 16, ["modelValue", "placeholder", "disabled-date", "disabled-time"])
|
|
128
138
|
]),
|
|
129
139
|
_: 1
|
|
@@ -133,5 +143,5 @@ const H = "keyblade-pro-date-range-picker", $ = /* @__PURE__ */ R({
|
|
|
133
143
|
}
|
|
134
144
|
});
|
|
135
145
|
export {
|
|
136
|
-
|
|
146
|
+
J as default
|
|
137
147
|
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
declare const ProFormGroup: {
|
|
3
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
4
|
+
label: string;
|
|
5
|
+
heading?: number | string;
|
|
6
|
+
extra?: string;
|
|
7
|
+
hideIcon?: boolean;
|
|
8
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
9
|
+
heading: number | string;
|
|
10
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
11
|
+
P: {};
|
|
12
|
+
B: {};
|
|
13
|
+
D: {};
|
|
14
|
+
C: {};
|
|
15
|
+
M: {};
|
|
16
|
+
Defaults: {};
|
|
17
|
+
}, Readonly<{
|
|
18
|
+
label: string;
|
|
19
|
+
heading?: number | string;
|
|
20
|
+
extra?: string;
|
|
21
|
+
hideIcon?: boolean;
|
|
22
|
+
}> & Readonly<{}>, {}, {}, {}, {}, {
|
|
23
|
+
heading: number | string;
|
|
24
|
+
}>;
|
|
25
|
+
__isFragment?: never;
|
|
26
|
+
__isTeleport?: never;
|
|
27
|
+
__isSuspense?: never;
|
|
28
|
+
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
29
|
+
label: string;
|
|
30
|
+
heading?: number | string;
|
|
31
|
+
extra?: string;
|
|
32
|
+
hideIcon?: boolean;
|
|
33
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
34
|
+
heading: number | string;
|
|
35
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
36
|
+
$slots: {
|
|
37
|
+
default?(_: {}): any;
|
|
38
|
+
};
|
|
39
|
+
}) & {
|
|
40
|
+
install: (app: App) => void;
|
|
41
|
+
};
|
|
42
|
+
export { ProFormGroup };
|
|
43
|
+
export default ProFormGroup;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import r from "./index.vue.js";
|
|
2
|
+
import { Typography as m } from "@arco-design/web-vue";
|
|
3
|
+
import { IconExclamationCircleFill as t } from "@arco-design/web-vue/es/icon";
|
|
4
|
+
const n = Object.assign(r, {
|
|
5
|
+
install: (o) => {
|
|
6
|
+
o.use(m), o.use(t), o.component("KbProFormGroup", r);
|
|
7
|
+
}
|
|
8
|
+
});
|
|
9
|
+
export {
|
|
10
|
+
n as ProFormGroup,
|
|
11
|
+
n as default
|
|
12
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
label: string;
|
|
3
|
+
/** 标题大小 */
|
|
4
|
+
heading?: number | string;
|
|
5
|
+
/** 扩展提示 */
|
|
6
|
+
extra?: string;
|
|
7
|
+
/** 隐藏icon */
|
|
8
|
+
hideIcon?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare function __VLS_template(): {
|
|
11
|
+
attrs: Partial<{}>;
|
|
12
|
+
slots: {
|
|
13
|
+
default?(_: {}): any;
|
|
14
|
+
};
|
|
15
|
+
refs: {};
|
|
16
|
+
rootEl: any;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
20
|
+
heading: number | string;
|
|
21
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { defineComponent as m, resolveComponent as o, createBlock as _, openBlock as n, normalizeClass as t, withCtx as l, createVNode as r, createElementBlock as h, createCommentVNode as f, renderSlot as u, createTextVNode as i, toDisplayString as c, withDirectives as y, vShow as g } from "vue";
|
|
2
|
+
const a = "keyblade-pro-form-group", v = /* @__PURE__ */ m({
|
|
3
|
+
__name: "index",
|
|
4
|
+
props: {
|
|
5
|
+
label: {},
|
|
6
|
+
heading: { default: 6 },
|
|
7
|
+
extra: {},
|
|
8
|
+
hideIcon: { type: Boolean }
|
|
9
|
+
},
|
|
10
|
+
setup(x) {
|
|
11
|
+
return (e, C) => {
|
|
12
|
+
const p = o("a-typography-title"), s = o("icon-exclamation-circle-fill"), d = o("a-typography");
|
|
13
|
+
return n(), _(d, {
|
|
14
|
+
class: t(a)
|
|
15
|
+
}, {
|
|
16
|
+
default: l(() => [
|
|
17
|
+
r(p, { heading: e.heading }, {
|
|
18
|
+
default: l(() => [
|
|
19
|
+
i(c(e.label), 1)
|
|
20
|
+
]),
|
|
21
|
+
_: 1
|
|
22
|
+
}, 8, ["heading"]),
|
|
23
|
+
e.extra ? (n(), h("div", {
|
|
24
|
+
key: 0,
|
|
25
|
+
class: t(`${a}-extra`)
|
|
26
|
+
}, [
|
|
27
|
+
y(r(s, {
|
|
28
|
+
class: t(`${a}-icon`)
|
|
29
|
+
}, null, 8, ["class"]), [
|
|
30
|
+
[g, !e.hideIcon]
|
|
31
|
+
]),
|
|
32
|
+
i(" " + c(e.extra), 1)
|
|
33
|
+
], 2)) : f("", !0),
|
|
34
|
+
u(e.$slots, "default", {}, void 0, !0)
|
|
35
|
+
]),
|
|
36
|
+
_: 3
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
export {
|
|
42
|
+
v as default
|
|
43
|
+
};
|
package/es/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.keyblade-pro-page-header{background:var(--color-bg-2);padding:16px 32px}.keyblade-pro-page-header .keyblade-pro-page-header-section-breadcrumb .arco-breadcrumb-item:first-child{padding-left:0}.keyblade-pro-page-header .keyblade-pro-page-header-title.arco-typography{padding-top:4px;margin-top:0}.keyblade-pro-layout{width:100%;height:100%}.keyblade-pro-layout .keyblade-pro-layout-header{position:fixed;top:0;left:0;width:100%;height:var(--4a477a1a);z-index:100;display:flex;align-items:center;justify-content:space-between;padding:0 20px;background-color:var(--color-bg-2);border-bottom:1px solid var(--color-border);transition:all .2s cubic-bezier(.34,.69,.1,1)}.keyblade-pro-layout .keyblade-pro-layout-header-left{cursor:pointer;display:flex;align-items:center}.keyblade-pro-layout .keyblade-pro-layout-header-left-logo-img{width:28px;height:28px}.keyblade-pro-layout .keyblade-pro-layout-header-left-logo-title.arco-typography{margin:0;font-size:18px}.keyblade-pro-layout .keyblade-pro-layout-header-center{flex:1}.keyblade-pro-layout .keyblade-pro-layout-sider{padding-top:var(--4a477a1a);position:fixed;top:0;left:0;z-index:99;height:100%;transition:all .2s cubic-bezier(.34,.69,.1,1)}.keyblade-pro-layout .keyblade-pro-layout-sider-content{position:relative;height:100%;overflow:auto}.keyblade-pro-layout .keyblade-pro-layout-sider-collapse-btn.arco-btn{position:absolute;right:12px;bottom:12px}.keyblade-pro-layout .keyblade-pro-layout-body{padding-top:var(--4a477a1a);padding-left:var(--3599ef93);min-height:100vh;overflow-y:hidden;background-color:var(--color-fill-2);transition:padding .2s cubic-bezier(.34,.69,.1,1)}.keyblade-pro-layout .keyblade-pro-layout-body-hide-sider{padding-left:0}.keyblade-pro-layout .keyblade-pro-layout-body-affix .arco-affix{z-index:98}.keyblade-pro-layout .keyblade-pro-layout-body-footer{display:flex;align-items:center;justify-content:center;height:40px;color:var(--color-text-2);text-align:center}.keyblade-pro-layout .keyblade-pro-layout-body-collapsed{padding-left:var(--5b478c92)}.keyblade-pro-layout-side .keyblade-pro-layout-header{z-index:98;left:var(--3599ef93);width:calc(100% - var(--3599ef93))}.keyblade-pro-layout-side .keyblade-pro-layout-header-collapsed{left:var(--5b478c92);width:calc(100% - var(--5b478c92))}.keyblade-pro-layout-side .keyblade-pro-layout-sider{padding-top:0}.keyblade-pro-layout-side .keyblade-pro-layout-sider-content-logo{position:relative;display:flex;align-items:center;padding:16px;cursor:pointer;transition:padding .3s cubic-bezier(.645,.045,.355,1)}.keyblade-pro-layout-side .keyblade-pro-layout-sider-content-logo-img{width:28px;height:28px}.keyblade-pro-layout-side .keyblade-pro-layout-sider-content-logo-title.arco-typography{margin:0;font-size:18px}.keyblade-pro-layout-side .keyblade-pro-layout-sider-collapsed .keyblade-pro-layout-sider-content-logo{padding:16px 10px}.keyblade-pro-menu .keyblade-pro-menu-item-img{width:14px;height:auto}.keyblade-pro-reuse-tabs{position:relative;background-color:var(--color-bg-2);padding:4px 20px}.keyblade-pro-page-container .keyblade-pro-page-container-content{padding:20px}.keyblade-pro-page-container-with-footer-bar .keyblade-pro-page-container-content{padding-bottom:84px}.keyblade-pro-footer-bar[data-v-f9d45b25]{z-index:11;position:fixed;width:100%;bottom:0;right:0;padding:16px 20px;background-color:var(--color-bg-3);display:flex;justify-content:flex-end;box-shadow:0 -2px 5px #0000000d}[arco-theme=dark] .keyblade-pro-footer-bar[data-v-f9d45b25]{border-top:1px solid var(--color-neutral-3)}.keyblade-pro-image-upload-cropper-dialog-cropper-wrapper[data-v-1bddf267]{width:100%;height:400px}.keyblade-pro-image-upload-cropper-dialog-operate[data-v-1bddf267]{margin-top:24px;display:flex;align-items:center;justify-content:center}.keyblade-pro-image-upload-cropper-dialog-footer[data-v-1bddf267]{margin-top:24px;display:flex;align-items:center;justify-content:flex-end}.keyblade-pro-image-upload-cropper-dialog-footer-left[data-v-1bddf267]{display:flex;align-items:center;justify-content:flex-start;margin-right:12px}.keyblade-pro-image-upload-cropper-dialog-footer-right[data-v-1bddf267]{flex:1;display:flex;align-items:center;justify-content:flex-end}.keyblade-pro-date-range-picker[data-v-
|
|
1
|
+
.keyblade-pro-page-header{background:var(--color-bg-2);padding:16px 32px}.keyblade-pro-page-header .keyblade-pro-page-header-section-breadcrumb .arco-breadcrumb-item:first-child{padding-left:0}.keyblade-pro-page-header .keyblade-pro-page-header-title.arco-typography{padding-top:4px;margin-top:0}.keyblade-pro-layout{width:100%;height:100%}.keyblade-pro-layout .keyblade-pro-layout-header{position:fixed;top:0;left:0;width:100%;height:var(--4a477a1a);z-index:100;display:flex;align-items:center;justify-content:space-between;padding:0 20px;background-color:var(--color-bg-2);border-bottom:1px solid var(--color-border);transition:all .2s cubic-bezier(.34,.69,.1,1)}.keyblade-pro-layout .keyblade-pro-layout-header-left{cursor:pointer;display:flex;align-items:center}.keyblade-pro-layout .keyblade-pro-layout-header-left-logo-img{width:28px;height:28px}.keyblade-pro-layout .keyblade-pro-layout-header-left-logo-title.arco-typography{margin:0;font-size:18px}.keyblade-pro-layout .keyblade-pro-layout-header-center{flex:1}.keyblade-pro-layout .keyblade-pro-layout-sider{padding-top:var(--4a477a1a);position:fixed;top:0;left:0;z-index:99;height:100%;transition:all .2s cubic-bezier(.34,.69,.1,1)}.keyblade-pro-layout .keyblade-pro-layout-sider-content{position:relative;height:100%;overflow:auto}.keyblade-pro-layout .keyblade-pro-layout-sider-collapse-btn.arco-btn{position:absolute;right:12px;bottom:12px}.keyblade-pro-layout .keyblade-pro-layout-body{padding-top:var(--4a477a1a);padding-left:var(--3599ef93);min-height:100vh;overflow-y:hidden;background-color:var(--color-fill-2);transition:padding .2s cubic-bezier(.34,.69,.1,1)}.keyblade-pro-layout .keyblade-pro-layout-body-hide-sider{padding-left:0}.keyblade-pro-layout .keyblade-pro-layout-body-affix .arco-affix{z-index:98}.keyblade-pro-layout .keyblade-pro-layout-body-footer{display:flex;align-items:center;justify-content:center;height:40px;color:var(--color-text-2);text-align:center}.keyblade-pro-layout .keyblade-pro-layout-body-collapsed{padding-left:var(--5b478c92)}.keyblade-pro-layout-side .keyblade-pro-layout-header{z-index:98;left:var(--3599ef93);width:calc(100% - var(--3599ef93))}.keyblade-pro-layout-side .keyblade-pro-layout-header-collapsed{left:var(--5b478c92);width:calc(100% - var(--5b478c92))}.keyblade-pro-layout-side .keyblade-pro-layout-sider{padding-top:0}.keyblade-pro-layout-side .keyblade-pro-layout-sider-content-logo{position:relative;display:flex;align-items:center;padding:16px;cursor:pointer;transition:padding .3s cubic-bezier(.645,.045,.355,1)}.keyblade-pro-layout-side .keyblade-pro-layout-sider-content-logo-img{width:28px;height:28px}.keyblade-pro-layout-side .keyblade-pro-layout-sider-content-logo-title.arco-typography{margin:0;font-size:18px}.keyblade-pro-layout-side .keyblade-pro-layout-sider-collapsed .keyblade-pro-layout-sider-content-logo{padding:16px 10px}.keyblade-pro-menu .keyblade-pro-menu-item-img{width:14px;height:auto}.keyblade-pro-reuse-tabs{position:relative;background-color:var(--color-bg-2);padding:4px 20px}.keyblade-pro-page-container .keyblade-pro-page-container-content{padding:20px}.keyblade-pro-page-container-with-footer-bar .keyblade-pro-page-container-content{padding-bottom:84px}.keyblade-pro-footer-bar[data-v-f9d45b25]{z-index:11;position:fixed;width:100%;bottom:0;right:0;padding:16px 20px;background-color:var(--color-bg-3);display:flex;justify-content:flex-end;box-shadow:0 -2px 5px #0000000d}[arco-theme=dark] .keyblade-pro-footer-bar[data-v-f9d45b25]{border-top:1px solid var(--color-neutral-3)}.keyblade-pro-image-upload-cropper-dialog-cropper-wrapper[data-v-1bddf267]{width:100%;height:400px}.keyblade-pro-image-upload-cropper-dialog-operate[data-v-1bddf267]{margin-top:24px;display:flex;align-items:center;justify-content:center}.keyblade-pro-image-upload-cropper-dialog-footer[data-v-1bddf267]{margin-top:24px;display:flex;align-items:center;justify-content:flex-end}.keyblade-pro-image-upload-cropper-dialog-footer-left[data-v-1bddf267]{display:flex;align-items:center;justify-content:flex-start;margin-right:12px}.keyblade-pro-image-upload-cropper-dialog-footer-right[data-v-1bddf267]{flex:1;display:flex;align-items:center;justify-content:flex-end}.keyblade-pro-date-range-picker[data-v-670ac66c]{display:flex;align-items:flex-start}.keyblade-pro-date-range-picker[data-v-670ac66c] .arco-form-item{margin-right:8px;margin-bottom:0}.keyblade-pro-date-range-picker[data-v-670ac66c] .arco-form-item .arco-picker:not(.arco-picker-error){background-color:var(--color-bg-1);border-color:var(--color-border-1)}.keyblade-pro-date-range-picker[data-v-670ac66c] .arco-form-item .arco-picker:not(.arco-picker-error):hover{border-color:rgb(var(--primary-6))}.keyblade-pro-table .keyblade-pro-table-header{min-height:32px;margin-bottom:12px;display:flex;align-items:center}.keyblade-pro-table .arco-table .arco-table-pagination>:first-child:not(.arco-pagination){flex:1;overflow:hidden;display:flex;flex-wrap:wrap;gap:8px 0}.keyblade-pro-textarea-word-limit[data-v-8721e63b]{overflow:inherit}.keyblade-pro-textarea-word-limit[data-v-8721e63b] .arco-textarea-word-limit{bottom:-20px}.keyblade-pro-textarea[data-v-8721e63b]:not(.arco-textarea-error){background-color:var(--color-bg-1);border:1px solid var(--color-border-1);border-radius:4px}.keyblade-pro-textarea[data-v-8721e63b]:not(.arco-textarea-error):hover{border-color:rgb(var(--primary-6))}.keyblade-pro-form-group[data-v-9f030479]{display:flex;margin:20px 0;align-items:flex-end}.keyblade-pro-form-group[data-v-9f030479] .arco-typography{margin:0 15px 0 0;display:flex;align-items:center}.keyblade-pro-form-group[data-v-9f030479] .arco-typography:before{content:"";display:block;width:4px;height:16px;margin-right:6px;background:rgb(var(--primary-6))}.keyblade-pro-form-group-extra[data-v-9f030479]{font-size:12px;color:var(--color-text-3)}.keyblade-pro-form-group-icon[data-v-9f030479]{color:rgb(var(--orange-6))}
|
package/package.json
CHANGED