@keyblade/pro-components 1.13.8-alpha.2 → 1.13.8-alpha.20
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/components.d.ts +5 -0
- package/es/global-props.d.ts +13 -0
- package/es/global-props.js +4 -0
- package/es/index.d.ts +7 -1
- package/es/index.js +31 -22
- package/es/inerface.d.ts +2 -0
- package/es/pro-calendar/calendar.vue.d.ts +75 -0
- package/es/pro-calendar/calendar.vue.js +158 -0
- package/es/pro-calendar/calendar.vue3.js +5 -0
- package/es/pro-calendar/enum.d.ts +6 -0
- package/es/pro-calendar/enum.js +4 -0
- package/es/pro-calendar/header.vue.d.ts +27 -0
- package/es/pro-calendar/header.vue.js +135 -0
- package/es/pro-calendar/header.vue2.js +4 -0
- package/es/pro-calendar/hooks/useCellClassName.d.ts +12 -0
- package/es/pro-calendar/hooks/useCellClassName.js +41 -0
- package/es/pro-calendar/index.d.ts +118 -0
- package/es/pro-calendar/index.js +11 -0
- package/es/pro-calendar/inerface.d.ts +87 -0
- package/es/pro-calendar/month.d.ts +5 -0
- package/es/pro-calendar/month.js +43 -0
- package/es/pro-calendar/month.vue.d.ts +22 -0
- package/es/pro-calendar/month.vue.js +127 -0
- package/es/pro-calendar/month.vue2.js +4 -0
- package/es/pro-calendar/week.vue.d.ts +3 -0
- package/es/pro-calendar/week.vue.js +34 -0
- package/es/pro-calendar/week.vue2.js +4 -0
- package/es/pro-calendar/year.vue.d.ts +3 -0
- package/es/pro-calendar/year.vue.js +112 -0
- package/es/pro-calendar/year.vue2.js +4 -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 +3 -3
- package/es/pro-date-range-picker/pro-date-range-picker.vue2.js +70 -56
- package/es/pro-footer-bar/index.d.ts +38 -0
- package/es/pro-footer-bar/index.js +11 -0
- package/es/pro-footer-bar/index.vue.d.ts +24 -0
- package/es/pro-footer-bar/index.vue.js +7 -0
- package/es/pro-footer-bar/index.vue2.js +44 -0
- package/es/pro-footer-bar/inerface.d.ts +7 -0
- 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/pro-image-upload/image-upload.vue.d.ts +1 -1
- package/es/pro-image-upload/index.d.ts +3 -3
- package/es/pro-layout/hooks.d.ts +1 -1
- package/es/pro-layout/hooks.js +84 -84
- package/es/pro-layout/pro-layout.vue.js +35 -37
- package/es/pro-menu/index.d.ts +11 -80
- package/es/pro-menu/interface.d.ts +19 -0
- package/es/pro-menu/menu-item.vue.d.ts +25 -0
- package/es/pro-menu/menu-item.vue.js +35 -0
- package/es/pro-menu/menu-item.vue2.js +4 -0
- package/es/pro-menu/pro-menu-item.vue.d.ts +7 -0
- package/es/pro-menu/pro-menu-item.vue.js +63 -0
- package/es/pro-menu/pro-menu-item.vue2.js +4 -0
- package/es/pro-menu/pro-menu.vue.d.ts +7 -55
- package/es/pro-menu/pro-menu.vue.js +28 -114
- package/es/pro-menu/sub-menu.vue.d.ts +22 -0
- package/es/pro-menu/sub-menu.vue.js +54 -0
- package/es/pro-menu/sub-menu.vue2.js +4 -0
- package/es/pro-menu/util.d.ts +9 -0
- package/es/pro-menu/util.js +7 -0
- package/es/pro-page-container/index.d.ts +36 -130
- package/es/pro-page-container/index.js +7 -6
- package/es/pro-page-container/inerface.d.ts +12 -0
- package/es/pro-page-container/pro-page-container.vue.d.ts +21 -79
- package/es/pro-page-container/pro-page-container.vue.js +38 -36
- package/es/pro-table/index.d.ts +7 -5
- package/es/pro-table/index.js +5 -4
- package/es/pro-table/index.vue.d.ts +10 -3
- package/es/pro-table/index.vue.js +30 -20
- package/es/pro-table/index.vue3.js +5 -0
- package/es/pro-table/interface.d.ts +1 -0
- package/es/pro-textarea/index.d.ts +25 -0
- package/es/pro-textarea/index.js +11 -0
- package/es/pro-textarea/index.vue.d.ts +4 -0
- package/es/pro-textarea/index.vue.js +7 -0
- package/es/pro-textarea/index.vue2.js +40 -0
- package/es/pro-textarea/inerface.d.ts +43 -0
- package/es/style.css +1 -1
- package/package.json +1 -1
- package/es/pro-table/index.vue2.js +0 -4
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as x, ref as s, computed as P, resolveComponent as D, createElementBlock as A, openBlock as H, normalizeClass as L, createVNode as i, mergeProps as u, withCtx as k, createTextVNode as M, toDisplayString as U, nextTick as F } from "vue";
|
|
2
2
|
import o from "dayjs";
|
|
3
|
-
import {
|
|
4
|
-
|
|
3
|
+
import { conclude as S } from "vue-global-config";
|
|
4
|
+
import { globalProps as C } from "../global-props.js";
|
|
5
|
+
import { range as V } from "./pro-date-range-picker.js";
|
|
6
|
+
const $ = "keyblade-pro-date-range-picker", O = /* @__PURE__ */ x({
|
|
5
7
|
__name: "pro-date-range-picker",
|
|
6
8
|
props: {
|
|
7
9
|
modelValue: {},
|
|
@@ -13,122 +15,134 @@ const I = "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(T, { emit: _ }) {
|
|
23
|
+
const e = T, v = _, m = s(), c = s(), h = s(), b = s(), n = s(), p = P({
|
|
21
24
|
get: () => e.modelValue[e.startField],
|
|
22
25
|
set: (t) => {
|
|
23
|
-
|
|
26
|
+
t ? m.value = "success" : m.value = void 0, v("update:modelValue", {
|
|
24
27
|
...e.modelValue,
|
|
25
28
|
[e.startField]: t
|
|
26
29
|
});
|
|
27
30
|
}
|
|
28
|
-
}),
|
|
31
|
+
}), y = P({
|
|
29
32
|
get: () => e.modelValue[e.endField],
|
|
30
33
|
set: (t) => {
|
|
31
|
-
|
|
34
|
+
t ? c.value = "success" : c.value = void 0, v("update:modelValue", {
|
|
32
35
|
...e.modelValue,
|
|
33
36
|
[e.endField]: t
|
|
34
37
|
});
|
|
35
38
|
}
|
|
36
|
-
}),
|
|
39
|
+
}), E = (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
|
+
}, R = (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
|
+
}, B = (t) => {
|
|
45
48
|
if (!e.modelValue[e.startField] || !t || !e.intraday) {
|
|
46
|
-
|
|
49
|
+
n.value = {};
|
|
47
50
|
return;
|
|
48
51
|
}
|
|
49
52
|
const a = o(e.modelValue[e.startField]), d = o(t);
|
|
50
53
|
if (!a.isSame(d, "day")) {
|
|
51
|
-
|
|
54
|
+
n.value = {};
|
|
52
55
|
return;
|
|
53
56
|
}
|
|
54
|
-
const l = a.hour(), r = a.minute(),
|
|
55
|
-
|
|
56
|
-
disabledHours: () =>
|
|
57
|
-
disabledMinutes: (
|
|
58
|
-
disabledSeconds: (
|
|
57
|
+
const l = a.hour(), r = a.minute(), N = a.second();
|
|
58
|
+
n.value = {
|
|
59
|
+
disabledHours: () => V(0, l),
|
|
60
|
+
disabledMinutes: (f) => f === l ? V(0, r) : [],
|
|
61
|
+
disabledSeconds: (f, q) => f === l && q === r ? V(0, N) : []
|
|
59
62
|
};
|
|
60
|
-
},
|
|
63
|
+
}, w = () => {
|
|
61
64
|
setTimeout(() => {
|
|
62
65
|
const t = e.modelValue[e.endField], a = e.modelValue[e.startField];
|
|
63
|
-
o(a).isAfter(o(t)) && (
|
|
66
|
+
a && o(a).isAfter(o(t)) && (p.value = t), !t && a && F(() => {
|
|
64
67
|
var l;
|
|
65
|
-
const d = (l =
|
|
68
|
+
const d = (l = b.value) == null ? void 0 : l.$el.parentElement.querySelector("input");
|
|
66
69
|
d && d.click();
|
|
67
70
|
});
|
|
68
71
|
});
|
|
69
|
-
},
|
|
72
|
+
}, I = () => {
|
|
70
73
|
setTimeout(() => {
|
|
71
|
-
e.modelValue[e.endField] && !e.modelValue[e.startField] &&
|
|
74
|
+
e.modelValue[e.endField] && !e.modelValue[e.startField] && F(() => {
|
|
72
75
|
var a;
|
|
73
|
-
const t = (a =
|
|
76
|
+
const t = (a = h.value) == null ? void 0 : a.$el.parentElement.querySelector("input");
|
|
74
77
|
t && t.click();
|
|
75
78
|
});
|
|
76
79
|
});
|
|
77
|
-
}
|
|
80
|
+
}, g = P(() => {
|
|
81
|
+
var t, a;
|
|
82
|
+
return {
|
|
83
|
+
...S([e.datePickerProps, (t = C.dateRangePicker) == null ? void 0 : t.datePickerProps, {}]),
|
|
84
|
+
timePickerProps: S([e.timePickerProps, (a = C.dateRangePicker) == null ? void 0 : a.timePickerProps], {})
|
|
85
|
+
};
|
|
86
|
+
});
|
|
78
87
|
return (t, a) => {
|
|
79
|
-
const d =
|
|
80
|
-
return
|
|
81
|
-
class:
|
|
88
|
+
const d = D("a-date-picker"), l = D("a-form-item");
|
|
89
|
+
return H(), A("div", {
|
|
90
|
+
class: L($)
|
|
82
91
|
}, [
|
|
83
|
-
|
|
92
|
+
i(l, u(t.formItemProps, {
|
|
93
|
+
"validate-status": m.value,
|
|
84
94
|
field: t.startField,
|
|
85
95
|
"hide-label": t.hideLabel
|
|
86
96
|
}), {
|
|
87
|
-
default:
|
|
88
|
-
|
|
97
|
+
default: k(() => [
|
|
98
|
+
i(d, u({
|
|
89
99
|
ref_key: "startDatePickerRef",
|
|
90
|
-
ref:
|
|
91
|
-
modelValue:
|
|
92
|
-
"onUpdate:modelValue": a[0] || (a[0] = (r) =>
|
|
93
|
-
},
|
|
100
|
+
ref: h,
|
|
101
|
+
modelValue: p.value,
|
|
102
|
+
"onUpdate:modelValue": a[0] || (a[0] = (r) => p.value = r)
|
|
103
|
+
}, g.value, {
|
|
94
104
|
placeholder: t.startPlaceholder,
|
|
95
|
-
"disabled-date": (r) =>
|
|
96
|
-
onChange:
|
|
105
|
+
"disabled-date": (r) => E(r),
|
|
106
|
+
onChange: w
|
|
97
107
|
}), null, 16, ["modelValue", "placeholder", "disabled-date"])
|
|
98
108
|
]),
|
|
99
109
|
_: 1
|
|
100
|
-
}, 16, ["field", "hide-label"]),
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
110
|
+
}, 16, ["validate-status", "field", "hide-label"]),
|
|
111
|
+
i(l, {
|
|
112
|
+
"hide-label": "",
|
|
113
|
+
style: { "max-height": "32px", top: "0px" }
|
|
114
|
+
}, {
|
|
115
|
+
default: k(() => [
|
|
116
|
+
M(U(t.separator), 1)
|
|
104
117
|
]),
|
|
105
118
|
_: 1
|
|
106
119
|
}),
|
|
107
|
-
|
|
120
|
+
i(l, u(t.formItemProps, {
|
|
121
|
+
"validate-status": c.value,
|
|
108
122
|
field: t.endField,
|
|
109
123
|
"hide-label": "",
|
|
110
124
|
style: { "margin-right": "0px" }
|
|
111
|
-
}, {
|
|
112
|
-
default:
|
|
113
|
-
|
|
125
|
+
}), {
|
|
126
|
+
default: k(() => [
|
|
127
|
+
i(d, u({
|
|
114
128
|
ref_key: "endDatePickerRef",
|
|
115
|
-
ref:
|
|
116
|
-
modelValue:
|
|
117
|
-
"onUpdate:modelValue": a[1] || (a[1] = (r) =>
|
|
118
|
-
},
|
|
129
|
+
ref: b,
|
|
130
|
+
modelValue: y.value,
|
|
131
|
+
"onUpdate:modelValue": a[1] || (a[1] = (r) => y.value = r)
|
|
132
|
+
}, g.value, {
|
|
119
133
|
placeholder: t.endPlaceholder,
|
|
120
|
-
"disabled-date": (r) =>
|
|
121
|
-
"disabled-time": () =>
|
|
122
|
-
onSelect:
|
|
123
|
-
onChange:
|
|
134
|
+
"disabled-date": (r) => R(r),
|
|
135
|
+
"disabled-time": () => n.value,
|
|
136
|
+
onSelect: B,
|
|
137
|
+
onChange: I
|
|
124
138
|
}), null, 16, ["modelValue", "placeholder", "disabled-date", "disabled-time"])
|
|
125
139
|
]),
|
|
126
140
|
_: 1
|
|
127
|
-
},
|
|
141
|
+
}, 16, ["validate-status", "field"])
|
|
128
142
|
]);
|
|
129
143
|
};
|
|
130
144
|
}
|
|
131
145
|
});
|
|
132
146
|
export {
|
|
133
|
-
|
|
147
|
+
O as default
|
|
134
148
|
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
declare const ProFooterBar: {
|
|
3
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./inerface').ProFooterBarProps> & Readonly<{
|
|
4
|
+
onBack?: (() => any) | undefined;
|
|
5
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
6
|
+
back: () => any;
|
|
7
|
+
}, import('vue').PublicProps, {
|
|
8
|
+
backText: string;
|
|
9
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
10
|
+
P: {};
|
|
11
|
+
B: {};
|
|
12
|
+
D: {};
|
|
13
|
+
C: {};
|
|
14
|
+
M: {};
|
|
15
|
+
Defaults: {};
|
|
16
|
+
}, Readonly<import('./inerface').ProFooterBarProps> & Readonly<{
|
|
17
|
+
onBack?: (() => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, {
|
|
19
|
+
backText: string;
|
|
20
|
+
}>;
|
|
21
|
+
__isFragment?: never;
|
|
22
|
+
__isTeleport?: never;
|
|
23
|
+
__isSuspense?: never;
|
|
24
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./inerface').ProFooterBarProps> & Readonly<{
|
|
25
|
+
onBack?: (() => any) | undefined;
|
|
26
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
27
|
+
back: () => any;
|
|
28
|
+
}, string, {
|
|
29
|
+
backText: string;
|
|
30
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
31
|
+
$slots: {
|
|
32
|
+
default?(_: {}): any;
|
|
33
|
+
};
|
|
34
|
+
}) & {
|
|
35
|
+
install: (app: App) => void;
|
|
36
|
+
};
|
|
37
|
+
export { ProFooterBar };
|
|
38
|
+
export default ProFooterBar;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import r from "./index.vue.js";
|
|
2
|
+
import { Button as t, Space as e } from "@arco-design/web-vue";
|
|
3
|
+
const n = Object.assign(r, {
|
|
4
|
+
install: (o) => {
|
|
5
|
+
o.use(t), o.use(e), o.component("KbProFooterBar", r);
|
|
6
|
+
}
|
|
7
|
+
});
|
|
8
|
+
export {
|
|
9
|
+
n as ProFooterBar,
|
|
10
|
+
n as default
|
|
11
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ProFooterBarProps } from './inerface';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: HTMLDivElement;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<ProFooterBarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
12
|
+
back: () => any;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<ProFooterBarProps> & Readonly<{
|
|
14
|
+
onBack?: (() => any) | undefined;
|
|
15
|
+
}>, {
|
|
16
|
+
backText: string;
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
18
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { defineComponent as u, computed as f, resolveComponent as t, createElementBlock as B, openBlock as _, normalizeClass as b, createVNode as a, withCtx as n, withDirectives as h, renderSlot as v, createTextVNode as x, toDisplayString as C, vShow as g } from "vue";
|
|
2
|
+
import { globalProps as c } from "../global-props.js";
|
|
3
|
+
const w = "keyblade-pro-footer-bar", S = /* @__PURE__ */ u({
|
|
4
|
+
__name: "index",
|
|
5
|
+
props: {
|
|
6
|
+
hideBack: { type: Boolean },
|
|
7
|
+
backText: { default: "返回" },
|
|
8
|
+
onBack: {}
|
|
9
|
+
},
|
|
10
|
+
emits: ["back"],
|
|
11
|
+
setup(r, { emit: s }) {
|
|
12
|
+
const l = r, i = s, p = () => {
|
|
13
|
+
var e, o;
|
|
14
|
+
i("back"), (o = (e = c.footerBar) == null ? void 0 : e.onBack) == null || o.call(e);
|
|
15
|
+
}, d = f(() => {
|
|
16
|
+
var e;
|
|
17
|
+
return l.hideBack || ((e = c.footerBar) == null ? void 0 : e.hideBack);
|
|
18
|
+
});
|
|
19
|
+
return (e, o) => {
|
|
20
|
+
const m = t("a-button"), k = t("a-space");
|
|
21
|
+
return _(), B("div", {
|
|
22
|
+
class: b(w)
|
|
23
|
+
}, [
|
|
24
|
+
a(k, null, {
|
|
25
|
+
default: n(() => [
|
|
26
|
+
h(a(m, { onClick: p }, {
|
|
27
|
+
default: n(() => [
|
|
28
|
+
x(C(e.backText), 1)
|
|
29
|
+
]),
|
|
30
|
+
_: 1
|
|
31
|
+
}, 512), [
|
|
32
|
+
[g, !d.value]
|
|
33
|
+
]),
|
|
34
|
+
v(e.$slots, "default", {}, void 0, !0)
|
|
35
|
+
]),
|
|
36
|
+
_: 3
|
|
37
|
+
})
|
|
38
|
+
]);
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
export {
|
|
43
|
+
S as default
|
|
44
|
+
};
|
|
@@ -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
|
+
};
|
|
@@ -609,9 +609,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
609
609
|
onCropperImgLoad?: ((value: File) => any) | undefined;
|
|
610
610
|
}>, {
|
|
611
611
|
name: string;
|
|
612
|
-
accept: string[];
|
|
613
612
|
disabled: boolean;
|
|
614
613
|
multiple: boolean;
|
|
614
|
+
accept: string[];
|
|
615
615
|
singleLimit: number;
|
|
616
616
|
hideInnerBeforeUploadLoading: boolean;
|
|
617
617
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
@@ -528,9 +528,9 @@ declare const ProImageUpload: {
|
|
|
528
528
|
cropperImgLoad: (value: File) => any;
|
|
529
529
|
}, import('vue').PublicProps, {
|
|
530
530
|
name: string;
|
|
531
|
-
accept: string[];
|
|
532
531
|
disabled: boolean;
|
|
533
532
|
multiple: boolean;
|
|
533
|
+
accept: string[];
|
|
534
534
|
singleLimit: number;
|
|
535
535
|
hideInnerBeforeUploadLoading: boolean;
|
|
536
536
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
@@ -1103,9 +1103,9 @@ declare const ProImageUpload: {
|
|
|
1103
1103
|
isUploadComplete: import('vue').ComputedRef<boolean>;
|
|
1104
1104
|
}, {}, {}, {}, {
|
|
1105
1105
|
name: string;
|
|
1106
|
-
accept: string[];
|
|
1107
1106
|
disabled: boolean;
|
|
1108
1107
|
multiple: boolean;
|
|
1108
|
+
accept: string[];
|
|
1109
1109
|
singleLimit: number;
|
|
1110
1110
|
hideInnerBeforeUploadLoading: boolean;
|
|
1111
1111
|
}>;
|
|
@@ -1640,9 +1640,9 @@ declare const ProImageUpload: {
|
|
|
1640
1640
|
cropperImgLoad: (value: File) => any;
|
|
1641
1641
|
}, string, {
|
|
1642
1642
|
name: string;
|
|
1643
|
-
accept: string[];
|
|
1644
1643
|
disabled: boolean;
|
|
1645
1644
|
multiple: boolean;
|
|
1645
|
+
accept: string[];
|
|
1646
1646
|
singleLimit: number;
|
|
1647
1647
|
hideInnerBeforeUploadLoading: boolean;
|
|
1648
1648
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
package/es/pro-layout/hooks.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { IProMenuItem } from '../pro-menu';
|
|
|
2
2
|
import { IProTab } from '../pro-reuse-tabs';
|
|
3
3
|
import { ProLayoutMenuType } from './enum.ts';
|
|
4
4
|
import { IProLayoutProps } from './type.ts';
|
|
5
|
-
export declare
|
|
5
|
+
export declare const useHooks: (props: IProLayoutProps) => {
|
|
6
6
|
topMenuItems: import('vue').Ref<{
|
|
7
7
|
name: string;
|
|
8
8
|
path: string;
|