@rft-rc/recycle-ui 0.0.2 → 0.0.3-rc.11
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/README.md +38 -34
- package/dist/components/button/index.d.ts.map +1 -1
- package/dist/components/button/index.vue.d.ts +25 -6
- package/dist/components/button/index.vue.d.ts.map +1 -1
- package/dist/components/calendar/index.d.ts +5 -0
- package/dist/components/calendar/index.d.ts.map +1 -0
- package/dist/components/calendar/index.vue.d.ts +64 -0
- package/dist/components/calendar/index.vue.d.ts.map +1 -0
- package/dist/components/calendar/panel-content.vue.d.ts +38 -0
- package/dist/components/calendar/panel-content.vue.d.ts.map +1 -0
- package/dist/components/card/index.vue.d.ts +2 -2
- package/dist/components/card/index.vue.d.ts.map +1 -1
- package/dist/components/checkbox/button.vue.d.ts +51 -0
- package/dist/components/checkbox/button.vue.d.ts.map +1 -0
- package/dist/components/checkbox/group.vue.d.ts +58 -0
- package/dist/components/checkbox/group.vue.d.ts.map +1 -0
- package/dist/components/checkbox/index.d.ts +8 -0
- package/dist/components/checkbox/index.d.ts.map +1 -0
- package/dist/components/checkbox/index.vue.d.ts +60 -0
- package/dist/components/checkbox/index.vue.d.ts.map +1 -0
- package/dist/components/descriptions/index.d.ts +12 -0
- package/dist/components/descriptions/index.d.ts.map +1 -1
- package/dist/components/descriptions/index.vue.d.ts +3 -0
- package/dist/components/descriptions/index.vue.d.ts.map +1 -1
- package/dist/components/descriptions/item.vue.d.ts +3 -0
- package/dist/components/descriptions/item.vue.d.ts.map +1 -1
- package/dist/components/dropdown/index.d.ts +8 -0
- package/dist/components/dropdown/index.d.ts.map +1 -0
- package/dist/components/dropdown/index.vue.d.ts +49 -0
- package/dist/components/dropdown/index.vue.d.ts.map +1 -0
- package/dist/components/dropdown/item.vue.d.ts +24 -0
- package/dist/components/dropdown/item.vue.d.ts.map +1 -0
- package/dist/components/dropdown/menu.vue.d.ts +32 -0
- package/dist/components/dropdown/menu.vue.d.ts.map +1 -0
- package/dist/components/dropdown/types.d.ts +2 -0
- package/dist/components/dropdown/types.d.ts.map +1 -0
- package/dist/components/form/index.d.ts +8 -0
- package/dist/components/form/index.d.ts.map +1 -0
- package/dist/components/form/index.vue.d.ts +76 -0
- package/dist/components/form/index.vue.d.ts.map +1 -0
- package/dist/components/form/item.vue.d.ts +49 -0
- package/dist/components/form/item.vue.d.ts.map +1 -0
- package/dist/components/icon/index.d.ts +1 -1
- package/dist/components/icon/index.d.ts.map +1 -1
- package/dist/components/icon/index.vue.d.ts +1 -1
- package/dist/components/icon/index.vue.d.ts.map +1 -1
- package/dist/components/input/index.d.ts +5 -0
- package/dist/components/input/index.d.ts.map +1 -0
- package/dist/components/input/index.vue.d.ts +158 -0
- package/dist/components/input/index.vue.d.ts.map +1 -0
- package/dist/components/popup/index.d.ts +5 -0
- package/dist/components/popup/index.d.ts.map +1 -0
- package/dist/components/popup/index.vue.d.ts +70 -0
- package/dist/components/popup/index.vue.d.ts.map +1 -0
- package/dist/components/radio/button.vue.d.ts +42 -0
- package/dist/components/radio/button.vue.d.ts.map +1 -0
- package/dist/components/radio/group.vue.d.ts +50 -0
- package/dist/components/radio/group.vue.d.ts.map +1 -0
- package/dist/components/radio/index.d.ts +8 -0
- package/dist/components/radio/index.d.ts.map +1 -0
- package/dist/components/radio/index.vue.d.ts +48 -0
- package/dist/components/radio/index.vue.d.ts.map +1 -0
- package/dist/components/search-area/index.vue.d.ts +51 -11
- package/dist/components/search-area/index.vue.d.ts.map +1 -1
- package/dist/components/toast/index.vue.d.ts +2 -2
- package/dist/components/toast/index.vue.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +3190 -492
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +4 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +15 -4
package/README.md
CHANGED
|
@@ -1,34 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
createApp
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
1
|
+
---
|
|
2
|
+
toc: content
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
## recycle-ui
|
|
6
|
+
|
|
7
|
+
基于 Vue 3 的组件库,使用 dumi 搭建文档站。
|
|
8
|
+
|
|
9
|
+
### 启动文档(开发)
|
|
10
|
+
```bash
|
|
11
|
+
pnpm i
|
|
12
|
+
pnpm docs:dev
|
|
13
|
+
# 或 npm i && npm run docs:dev
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
打开浏览器访问本地提示地址(默认 8000/5173 等端口)。
|
|
17
|
+
|
|
18
|
+
### 构建文档(生产)
|
|
19
|
+
```bash
|
|
20
|
+
pnpm docs:build
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### 构建组件库
|
|
24
|
+
```bash
|
|
25
|
+
pnpm build
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### 使用
|
|
29
|
+
```ts
|
|
30
|
+
import { createApp } from 'vue';
|
|
31
|
+
import { RcButton } from '@rft-rc/recycle-ui';
|
|
32
|
+
// 引入样式(确保与文档站一致)
|
|
33
|
+
import '@rft-rc/recycle-ui/style.css';
|
|
34
|
+
createApp({}).component('RcButton', RcButton);
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/button/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,MAAM,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/button/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,MAAM,MAAM,aAAa,CAAC;AAOjC,wBAAgB,OAAO,CAAC,GAAG,EAAE,GAAG,YAK/B;AAGD,eAAe,MAAM,CAAC"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
type ButtonType = 'default' | 'primary' | 'success' | 'warning' | 'danger';
|
|
2
2
|
type ButtonSize = 'mini' | 'small' | 'medium' | 'large';
|
|
3
|
+
type ButtonMode = 'outline' | 'text';
|
|
4
|
+
type FormType = 'submit' | 'reset' | 'button';
|
|
3
5
|
interface Props {
|
|
4
6
|
type?: ButtonType;
|
|
5
7
|
size?: ButtonSize;
|
|
6
|
-
|
|
8
|
+
/** 按钮模式:outline 中空模式,text 文本模式 */
|
|
9
|
+
mode?: ButtonMode;
|
|
7
10
|
block?: boolean;
|
|
8
11
|
/** 按钮文本,提供时可不写默认插槽 */
|
|
9
12
|
label?: string;
|
|
@@ -11,24 +14,40 @@ interface Props {
|
|
|
11
14
|
round?: number | string | boolean;
|
|
12
15
|
disabled?: boolean;
|
|
13
16
|
loading?: boolean;
|
|
17
|
+
/** 前置图标名称 */
|
|
18
|
+
preIcon?: string;
|
|
19
|
+
/** 后置图标名称 */
|
|
20
|
+
suffixIcon?: string;
|
|
21
|
+
/** 表单按钮类型:submit 提交表单(支持回车提交),button 提交表单(不支持回车提交),reset 重置表单 */
|
|
22
|
+
formType?: FormType;
|
|
23
|
+
/** 按钮宽度;number 表示 px,string 支持百分比等(如 '100%', '200px', '50vw') */
|
|
24
|
+
width?: number | string;
|
|
14
25
|
}
|
|
15
|
-
declare var __VLS_1: {};
|
|
26
|
+
declare var __VLS_1: {}, __VLS_6: {}, __VLS_8: {};
|
|
16
27
|
type __VLS_Slots = {} & {
|
|
17
|
-
|
|
28
|
+
preIcon?: (props: typeof __VLS_1) => any;
|
|
29
|
+
} & {
|
|
30
|
+
default?: (props: typeof __VLS_6) => any;
|
|
31
|
+
} & {
|
|
32
|
+
suffixIcon?: (props: typeof __VLS_8) => any;
|
|
18
33
|
};
|
|
19
34
|
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
20
35
|
click: (ev: MouseEvent) => any;
|
|
21
36
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
22
37
|
onClick?: ((ev: MouseEvent) => any) | undefined;
|
|
23
38
|
}>, {
|
|
24
|
-
type: ButtonType;
|
|
25
39
|
size: ButtonSize;
|
|
26
|
-
|
|
27
|
-
block: boolean;
|
|
40
|
+
type: ButtonType;
|
|
28
41
|
label: string;
|
|
42
|
+
mode: ButtonMode;
|
|
43
|
+
block: boolean;
|
|
29
44
|
round: number | string | boolean;
|
|
30
45
|
disabled: boolean;
|
|
31
46
|
loading: boolean;
|
|
47
|
+
preIcon: string;
|
|
48
|
+
suffixIcon: string;
|
|
49
|
+
formType: FormType;
|
|
50
|
+
width: number | string;
|
|
32
51
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
33
52
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
34
53
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/button/index.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/button/index.vue"],"names":[],"mappings":"AA2OA,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AA,MAAM,eAAe;;;;;UA5OZ,UAAU;UADV,UAAU;WAMT,MAAM;UAHP,UAAU;WACT,OAAO;WAIP,MAAM,GAAG,MAAM,GAAG,OAAO;cACtB,OAAO;aACR,OAAO;aAEP,MAAM;gBAEH,MAAM;cAER,QAAQ;WAEX,MAAM,GAAG,MAAM;6EAmOvB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/calendar/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,QAAQ,MAAM,aAAa,CAAC;AAQnC,wBAAgB,OAAO,CAAC,GAAG,EAAE,GAAG,YAM/B;AAED,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
type CalendarValue = string | [string, string] | null;
|
|
2
|
+
interface DayItem {
|
|
3
|
+
date: Date;
|
|
4
|
+
type: string;
|
|
5
|
+
text: string;
|
|
6
|
+
bottomInfo?: string;
|
|
7
|
+
}
|
|
8
|
+
type CalendarMode = 'default' | 'popup';
|
|
9
|
+
interface Props {
|
|
10
|
+
/** 当前选中的日期,格式为 YYYY-MM-DD */
|
|
11
|
+
modelValue?: CalendarValue;
|
|
12
|
+
/** 是否支持区间选择:true/false 或数字(表示区间可选的最大天数) */
|
|
13
|
+
range?: boolean | number;
|
|
14
|
+
/** 显示模式:default 直接展示,popup 输入框模式(点击后弹出日历) */
|
|
15
|
+
mode?: CalendarMode;
|
|
16
|
+
/** 输入框占位符 */
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
/** 是否显示标题栏 */
|
|
19
|
+
showTitle?: boolean;
|
|
20
|
+
/** 标题栏文字 */
|
|
21
|
+
title?: string;
|
|
22
|
+
/** 最小可选日期 */
|
|
23
|
+
minDate?: string;
|
|
24
|
+
/** 最大可选日期 */
|
|
25
|
+
maxDate?: string;
|
|
26
|
+
/** 禁用日期函数 */
|
|
27
|
+
disabledDate?: (date: Date) => boolean;
|
|
28
|
+
/** 日期格式化函数 */
|
|
29
|
+
formatter?: (day: DayItem) => {
|
|
30
|
+
text?: string;
|
|
31
|
+
bottomInfo?: string;
|
|
32
|
+
};
|
|
33
|
+
/** 区间模式下是否显示底部按钮(确定/取消),为 false 时区间完整后自动确认 */
|
|
34
|
+
showFooter?: boolean;
|
|
35
|
+
/** 区间模式下,结束日期是否自动加一天(选中日期为结束日期时,实际返回的结束日期会加一天) */
|
|
36
|
+
endDateOffset?: boolean;
|
|
37
|
+
}
|
|
38
|
+
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
39
|
+
"update:modelValue": (value: CalendarValue) => any;
|
|
40
|
+
confirm: (value: CalendarValue) => any;
|
|
41
|
+
change: (value: CalendarValue) => any;
|
|
42
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
43
|
+
"onUpdate:modelValue"?: ((value: CalendarValue) => any) | undefined;
|
|
44
|
+
onConfirm?: ((value: CalendarValue) => any) | undefined;
|
|
45
|
+
onChange?: ((value: CalendarValue) => any) | undefined;
|
|
46
|
+
}>, {
|
|
47
|
+
title: string;
|
|
48
|
+
mode: CalendarMode;
|
|
49
|
+
placeholder: string;
|
|
50
|
+
modelValue: CalendarValue;
|
|
51
|
+
showTitle: boolean;
|
|
52
|
+
range: boolean | number;
|
|
53
|
+
minDate: string;
|
|
54
|
+
maxDate: string;
|
|
55
|
+
disabledDate: (date: Date) => boolean;
|
|
56
|
+
formatter: (day: DayItem) => {
|
|
57
|
+
text?: string;
|
|
58
|
+
bottomInfo?: string;
|
|
59
|
+
};
|
|
60
|
+
showFooter: boolean;
|
|
61
|
+
endDateOffset: boolean;
|
|
62
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
63
|
+
export default _default;
|
|
64
|
+
//# sourceMappingURL=index.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/calendar/index.vue"],"names":[],"mappings":"AAoiBA,KAAK,aAAa,GAAG,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;AAEtD,UAAU,OAAO;IACf,IAAI,EAAE,IAAI,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,KAAK,YAAY,GAAG,SAAS,GAAG,OAAO,CAAC;AAExC,UAAU,KAAK;IACb,6BAA6B;IAC7B,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,2CAA2C;IAC3C,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IACzB,6CAA6C;IAC7C,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,aAAa;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa;IACb,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC;IACvC,cAAc;IACd,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACrE,8CAA8C;IAC9C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kDAAkD;IAClD,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;;;;;;;;;;WAbS,MAAM;UANP,YAAY;iBAEL,MAAM;gBANP,aAAa;eAQd,OAAO;WANX,OAAO,GAAG,MAAM;aAUd,MAAM;aAEN,MAAM;kBAED,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO;eAE1B,CAAC,GAAG,EAAE,OAAO,KAAK;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE;gBAEvD,OAAO;mBAEJ,OAAO;;AA+lBzB,wBAQG"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
interface DayItem {
|
|
2
|
+
date: Date;
|
|
3
|
+
type: string;
|
|
4
|
+
text: string;
|
|
5
|
+
bottomInfo?: string;
|
|
6
|
+
}
|
|
7
|
+
interface Props {
|
|
8
|
+
showTitle?: boolean;
|
|
9
|
+
title?: string;
|
|
10
|
+
range?: boolean;
|
|
11
|
+
selectedDate: string | null;
|
|
12
|
+
rangeStart: string | null;
|
|
13
|
+
rangeEnd: string | null;
|
|
14
|
+
minDate?: string;
|
|
15
|
+
maxDate?: string;
|
|
16
|
+
disabledDate?: (date: Date) => boolean;
|
|
17
|
+
formatter?: (day: DayItem) => {
|
|
18
|
+
text?: string;
|
|
19
|
+
bottomInfo?: string;
|
|
20
|
+
};
|
|
21
|
+
showFooter?: boolean;
|
|
22
|
+
maxRangeDays?: number;
|
|
23
|
+
}
|
|
24
|
+
declare const _default: import("vue").DefineComponent<Props, {
|
|
25
|
+
yearScrollRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
26
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
27
|
+
clear: () => any;
|
|
28
|
+
"select-day": (day: DayItem) => any;
|
|
29
|
+
confirm: () => any;
|
|
30
|
+
"shortcut-select": (range: [string, string]) => any;
|
|
31
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
32
|
+
onClear?: (() => any) | undefined;
|
|
33
|
+
"onSelect-day"?: ((day: DayItem) => any) | undefined;
|
|
34
|
+
onConfirm?: (() => any) | undefined;
|
|
35
|
+
"onShortcut-select"?: ((range: [string, string]) => any) | undefined;
|
|
36
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
37
|
+
export default _default;
|
|
38
|
+
//# sourceMappingURL=panel-content.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"panel-content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/calendar/panel-content.vue"],"names":[],"mappings":"AAisCA,UAAU,OAAO;IACf,IAAI,EAAE,IAAI,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,UAAU,KAAK;IACb,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC;IACvC,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACrE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;;;;;;;;;;;;;;AAmmCD,wBAQG"}
|
|
@@ -37,11 +37,11 @@ type __VLS_Slots = {} & {
|
|
|
37
37
|
action?: (props: typeof __VLS_9) => any;
|
|
38
38
|
};
|
|
39
39
|
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
40
|
-
|
|
40
|
+
color: string;
|
|
41
41
|
title: string;
|
|
42
|
+
round: number | string;
|
|
42
43
|
width: string | number;
|
|
43
44
|
gap: number | string;
|
|
44
|
-
color: string;
|
|
45
45
|
topBgColor: string;
|
|
46
46
|
status: string;
|
|
47
47
|
statusColor: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/card/index.vue"],"names":[],"mappings":"AAyLA,UAAU,KAAK;IACb,mBAAmB;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mCAAmC;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0BAA0B;IAC1B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,WAAW;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mCAAmC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+BAA+B;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,8BAA8B;IAC9B,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,iBAAiB;IACjB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,iBAAiB;IACjB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC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
3
|
+
modelValue?: string | number | boolean;
|
|
4
|
+
/** Checkbox 的 value */
|
|
5
|
+
label?: string | number | boolean;
|
|
6
|
+
/** 是否禁用 */
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
/** 原生 name 属性 */
|
|
9
|
+
name?: string;
|
|
10
|
+
/** 是否默认选中 */
|
|
11
|
+
checked?: boolean;
|
|
12
|
+
/** 选中时的值 */
|
|
13
|
+
trueLabel?: string | number;
|
|
14
|
+
/** 没有选中时的值 */
|
|
15
|
+
falseLabel?: string | number;
|
|
16
|
+
};
|
|
17
|
+
declare var __VLS_1: {};
|
|
18
|
+
type __VLS_Slots = {} & {
|
|
19
|
+
default?: (props: typeof __VLS_1) => any;
|
|
20
|
+
};
|
|
21
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
22
|
+
checkboxRef: import("vue").Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
23
|
+
focus: () => void;
|
|
24
|
+
blur: () => void;
|
|
25
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
26
|
+
"update:modelValue": (value: string | number | boolean) => any;
|
|
27
|
+
change: (value: string | number | boolean) => any;
|
|
28
|
+
blur: (event: FocusEvent) => any;
|
|
29
|
+
focus: (event: FocusEvent) => any;
|
|
30
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
31
|
+
"onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
|
|
32
|
+
onChange?: ((value: string | number | boolean) => any) | undefined;
|
|
33
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
34
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
35
|
+
}>, {
|
|
36
|
+
name: string;
|
|
37
|
+
label: string | number | boolean;
|
|
38
|
+
disabled: boolean;
|
|
39
|
+
modelValue: string | number | boolean;
|
|
40
|
+
checked: boolean;
|
|
41
|
+
trueLabel: string | number;
|
|
42
|
+
falseLabel: string | number;
|
|
43
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
44
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
45
|
+
export default _default;
|
|
46
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
47
|
+
new (): {
|
|
48
|
+
$slots: S;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=button.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.vue.d.ts","sourceRoot":"","sources":["../../../src/components/checkbox/button.vue"],"names":[],"mappings":"AAgZA,KAAK,WAAW,GAAG;IACjB,oCAAoC;IACpC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IACvC,uBAAuB;IACvB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IAClC,WAAW;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iBAAiB;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY;IACZ,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,cAAc;IACd,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC9B,CAAC;AAuQF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAiC/C,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;UAjTZ,MAAM;WAJL,MAAM,GAAG,MAAM,GAAG,OAAO;cAEtB,OAAO;gBAJL,MAAM,GAAG,MAAM,GAAG,OAAO;aAQ5B,OAAO;eAEL,MAAM,GAAG,MAAM;gBAEd,MAAM,GAAG,MAAM;6EAoT5B,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { type ComputedRef } from 'vue';
|
|
2
|
+
export interface CheckboxGroupContext {
|
|
3
|
+
modelValue: ComputedRef<(string | number | boolean)[]>;
|
|
4
|
+
changeEvent: (value: (string | number | boolean)[]) => void;
|
|
5
|
+
size?: 'large' | 'default' | 'small';
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
name?: string;
|
|
8
|
+
fill?: string;
|
|
9
|
+
textColor?: string;
|
|
10
|
+
min?: number;
|
|
11
|
+
max?: number;
|
|
12
|
+
}
|
|
13
|
+
type __VLS_Props = {
|
|
14
|
+
/** 绑定值 */
|
|
15
|
+
modelValue?: (string | number | boolean)[];
|
|
16
|
+
/** Checkbox 按钮组尺寸,仅对按钮样式的 Checkbox 有效 */
|
|
17
|
+
size?: 'large' | 'default' | 'small';
|
|
18
|
+
/** 是否禁用 */
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
/** 按钮形式的 Checkbox 激活时的文本颜色 */
|
|
21
|
+
textColor?: string;
|
|
22
|
+
/** 按钮形式的 Checkbox 激活时的填充色和边框色 */
|
|
23
|
+
fill?: string;
|
|
24
|
+
/** 原生 name 属性 */
|
|
25
|
+
name?: string;
|
|
26
|
+
/** 可被勾选的 checkbox 的最小数量 */
|
|
27
|
+
min?: number;
|
|
28
|
+
/** 可被勾选的 checkbox 的最大数量 */
|
|
29
|
+
max?: number;
|
|
30
|
+
};
|
|
31
|
+
declare var __VLS_1: {};
|
|
32
|
+
type __VLS_Slots = {} & {
|
|
33
|
+
default?: (props: typeof __VLS_1) => any;
|
|
34
|
+
};
|
|
35
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
36
|
+
"update:modelValue": (value: (string | number | boolean)[]) => any;
|
|
37
|
+
change: (value: (string | number | boolean)[]) => any;
|
|
38
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
39
|
+
"onUpdate:modelValue"?: ((value: (string | number | boolean)[]) => any) | undefined;
|
|
40
|
+
onChange?: ((value: (string | number | boolean)[]) => any) | undefined;
|
|
41
|
+
}>, {
|
|
42
|
+
name: string;
|
|
43
|
+
fill: string;
|
|
44
|
+
size: "large" | "default" | "small";
|
|
45
|
+
disabled: boolean;
|
|
46
|
+
modelValue: (string | number | boolean)[];
|
|
47
|
+
min: number;
|
|
48
|
+
max: number;
|
|
49
|
+
textColor: string;
|
|
50
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
51
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
52
|
+
export default _default;
|
|
53
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
54
|
+
new (): {
|
|
55
|
+
$slots: S;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=group.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group.vue.d.ts","sourceRoot":"","sources":["../../../src/components/checkbox/group.vue"],"names":[],"mappings":"AAiGA,OAAO,EAAoC,KAAK,WAAW,EAAE,MAAM,KAAK,CAAC;AAIzE,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,WAAW,CAAC,CAAC,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,EAAE,CAAC,CAAC;IACvD,WAAW,EAAE,CAAC,KAAK,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,EAAE,KAAK,IAAI,CAAC;IAC5D,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,OAAO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AAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { App } from 'vue';
|
|
2
|
+
import Checkbox from './index.vue';
|
|
3
|
+
import CheckboxGroup from './group.vue';
|
|
4
|
+
import CheckboxButton from './button.vue';
|
|
5
|
+
export declare function install(app: App): App<any>;
|
|
6
|
+
export { CheckboxGroup, CheckboxButton };
|
|
7
|
+
export default Checkbox;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/checkbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,aAAa,MAAM,aAAa,CAAC;AACxC,OAAO,cAAc,MAAM,cAAc,CAAC;AAM1C,wBAAgB,OAAO,CAAC,GAAG,EAAE,GAAG,YAQ/B;AAED,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,CAAC;AACzC,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** 绑定值,使用 CheckboxGroup 时不需要单独设置 */
|
|
3
|
+
modelValue?: string | number | boolean;
|
|
4
|
+
/** Checkbox 的 value */
|
|
5
|
+
label?: string | number | boolean;
|
|
6
|
+
/** 是否禁用 */
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
/** 是否显示边框 */
|
|
9
|
+
border?: boolean;
|
|
10
|
+
/** Checkbox 的尺寸,仅在 border 为真时有效 */
|
|
11
|
+
size?: 'large' | 'default' | 'small';
|
|
12
|
+
/** 原生 name 属性 */
|
|
13
|
+
name?: string;
|
|
14
|
+
/** 设置 indeterminate 状态,只负责样式控制 */
|
|
15
|
+
indeterminate?: boolean;
|
|
16
|
+
/** 是否默认选中 */
|
|
17
|
+
checked?: boolean;
|
|
18
|
+
/** 选中时的值 */
|
|
19
|
+
trueLabel?: string | number;
|
|
20
|
+
/** 没有选中时的值 */
|
|
21
|
+
falseLabel?: string | number;
|
|
22
|
+
};
|
|
23
|
+
declare var __VLS_4: {};
|
|
24
|
+
type __VLS_Slots = {} & {
|
|
25
|
+
default?: (props: typeof __VLS_4) => any;
|
|
26
|
+
};
|
|
27
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
28
|
+
checkboxRef: import("vue").Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
29
|
+
focus: () => void;
|
|
30
|
+
blur: () => void;
|
|
31
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
32
|
+
"update:modelValue": (value: string | number | boolean) => any;
|
|
33
|
+
change: (value: string | number | boolean) => any;
|
|
34
|
+
blur: (event: FocusEvent) => any;
|
|
35
|
+
focus: (event: FocusEvent) => any;
|
|
36
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
37
|
+
"onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
|
|
38
|
+
onChange?: ((value: string | number | boolean) => any) | undefined;
|
|
39
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
40
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
41
|
+
}>, {
|
|
42
|
+
name: string;
|
|
43
|
+
size: "large" | "default" | "small";
|
|
44
|
+
label: string | number | boolean;
|
|
45
|
+
disabled: boolean;
|
|
46
|
+
modelValue: string | number | boolean;
|
|
47
|
+
border: boolean;
|
|
48
|
+
indeterminate: boolean;
|
|
49
|
+
checked: boolean;
|
|
50
|
+
trueLabel: string | number;
|
|
51
|
+
falseLabel: string | number;
|
|
52
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
53
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
54
|
+
export default _default;
|
|
55
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
56
|
+
new (): {
|
|
57
|
+
$slots: S;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=index.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/checkbox/index.vue"],"names":[],"mappings":"AAweA,KAAK,WAAW,GAAG;IACjB,oCAAoC;IACpC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IACvC,uBAAuB;IACvB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IAClC,WAAW;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa;IACb,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,mCAAmC;IACnC,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;IACrC,iBAAiB;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kCAAkC;IAClC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,aAAa;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY;IACZ,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,cAAc;IACd,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC9B,CAAC;AAyRF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AA+B/C,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;UAnUZ,MAAM;UAFN,OAAO,GAAG,SAAS,GAAG,OAAO;WAN5B,MAAM,GAAG,MAAM,GAAG,OAAO;cAEtB,OAAO;gBAJL,MAAM,GAAG,MAAM,GAAG,OAAO;YAM7B,OAAO;mBAMA,OAAO;aAEb,OAAO;eAEL,MAAM,GAAG,MAAM;gBAEd,MAAM,GAAG,MAAM;6EAoU5B,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -7,6 +7,7 @@ export declare const RcDescriptions: {
|
|
|
7
7
|
column?: number | string;
|
|
8
8
|
gap?: number | string;
|
|
9
9
|
labelWidth?: number | string | "";
|
|
10
|
+
labelPosition?: "left" | "top";
|
|
10
11
|
data?: Array<Record<string, any>>;
|
|
11
12
|
keyMap?: {
|
|
12
13
|
key: string;
|
|
@@ -15,6 +16,7 @@ export declare const RcDescriptions: {
|
|
|
15
16
|
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
16
17
|
data: Array<Record<string, any>>;
|
|
17
18
|
labelWidth: number | string | "";
|
|
19
|
+
labelPosition: "left" | "top";
|
|
18
20
|
column: number | string;
|
|
19
21
|
gap: number | string;
|
|
20
22
|
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
@@ -29,6 +31,7 @@ export declare const RcDescriptions: {
|
|
|
29
31
|
column?: number | string;
|
|
30
32
|
gap?: number | string;
|
|
31
33
|
labelWidth?: number | string | "";
|
|
34
|
+
labelPosition?: "left" | "top";
|
|
32
35
|
data?: Array<Record<string, any>>;
|
|
33
36
|
keyMap?: {
|
|
34
37
|
key: string;
|
|
@@ -37,6 +40,7 @@ export declare const RcDescriptions: {
|
|
|
37
40
|
}> & Readonly<{}>, {}, {}, {}, {}, {
|
|
38
41
|
data: Array<Record<string, any>>;
|
|
39
42
|
labelWidth: number | string | "";
|
|
43
|
+
labelPosition: "left" | "top";
|
|
40
44
|
column: number | string;
|
|
41
45
|
gap: number | string;
|
|
42
46
|
}>;
|
|
@@ -48,6 +52,7 @@ export declare const RcDescriptions: {
|
|
|
48
52
|
column?: number | string;
|
|
49
53
|
gap?: number | string;
|
|
50
54
|
labelWidth?: number | string | "";
|
|
55
|
+
labelPosition?: "left" | "top";
|
|
51
56
|
data?: Array<Record<string, any>>;
|
|
52
57
|
keyMap?: {
|
|
53
58
|
key: string;
|
|
@@ -56,6 +61,7 @@ export declare const RcDescriptions: {
|
|
|
56
61
|
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
57
62
|
data: Array<Record<string, any>>;
|
|
58
63
|
labelWidth: number | string | "";
|
|
64
|
+
labelPosition: "left" | "top";
|
|
59
65
|
column: number | string;
|
|
60
66
|
gap: number | string;
|
|
61
67
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
@@ -71,11 +77,13 @@ export declare const RcDescriptionsItem: {
|
|
|
71
77
|
value?: any;
|
|
72
78
|
labelWidth?: string | number;
|
|
73
79
|
span?: number | string;
|
|
80
|
+
labelPosition?: "left" | "top";
|
|
74
81
|
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
75
82
|
label: string | number;
|
|
76
83
|
span: number | string;
|
|
77
84
|
value: any;
|
|
78
85
|
labelWidth: string | number;
|
|
86
|
+
labelPosition: "left" | "top";
|
|
79
87
|
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
80
88
|
P: {};
|
|
81
89
|
B: {};
|
|
@@ -88,11 +96,13 @@ export declare const RcDescriptionsItem: {
|
|
|
88
96
|
value?: any;
|
|
89
97
|
labelWidth?: string | number;
|
|
90
98
|
span?: number | string;
|
|
99
|
+
labelPosition?: "left" | "top";
|
|
91
100
|
}> & Readonly<{}>, {}, {}, {}, {}, {
|
|
92
101
|
label: string | number;
|
|
93
102
|
span: number | string;
|
|
94
103
|
value: any;
|
|
95
104
|
labelWidth: string | number;
|
|
105
|
+
labelPosition: "left" | "top";
|
|
96
106
|
}>;
|
|
97
107
|
__isFragment?: never;
|
|
98
108
|
__isTeleport?: never;
|
|
@@ -102,11 +112,13 @@ export declare const RcDescriptionsItem: {
|
|
|
102
112
|
value?: any;
|
|
103
113
|
labelWidth?: string | number;
|
|
104
114
|
span?: number | string;
|
|
115
|
+
labelPosition?: "left" | "top";
|
|
105
116
|
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
106
117
|
label: string | number;
|
|
107
118
|
span: number | string;
|
|
108
119
|
value: any;
|
|
109
120
|
labelWidth: string | number;
|
|
121
|
+
labelPosition: "left" | "top";
|
|
110
122
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
111
123
|
$slots: {
|
|
112
124
|
label?: (props: {}) => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/descriptions/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,YAAY,MAAM,aAAa,CAAC;AAMvC,wBAAgB,OAAO,CAAC,GAAG,EAAE,GAAG,YAO/B;AAED,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/descriptions/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,YAAY,MAAM,aAAa,CAAC;AAMvC,wBAAgB,OAAO,CAAC,GAAG,EAAE,GAAG,YAO/B;AAED,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAe,CAAC;AAC3C,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAmB,CAAC;AAEnD,eAAe,YAAY,CAAC"}
|
|
@@ -10,6 +10,8 @@ type __VLS_Props = {
|
|
|
10
10
|
gap?: number | string;
|
|
11
11
|
/** label 固定宽度,数字代表 px,也可直接传入 '120px' */
|
|
12
12
|
labelWidth?: number | string | '';
|
|
13
|
+
/** 标签位置,left 左侧,top 顶部 */
|
|
14
|
+
labelPosition?: 'left' | 'top';
|
|
13
15
|
/** 直接通过数据渲染 */
|
|
14
16
|
data?: Array<Record<string, any>>;
|
|
15
17
|
/** data 的字段映射,如 { key: 'label', value: 'value' } */
|
|
@@ -24,6 +26,7 @@ type __VLS_Slots = {} & {
|
|
|
24
26
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
25
27
|
data: Array<Record<string, any>>;
|
|
26
28
|
labelWidth: number | string | "";
|
|
29
|
+
labelPosition: "left" | "top";
|
|
27
30
|
column: number | string;
|
|
28
31
|
gap: number | string;
|
|
29
32
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/descriptions/index.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.vue.d.ts","s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AG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -4,6 +4,8 @@ type __VLS_Props = {
|
|
|
4
4
|
labelWidth?: string | number;
|
|
5
5
|
/** 跨越的列数,默认 1,可传字符串数字 */
|
|
6
6
|
span?: number | string;
|
|
7
|
+
/** 标签位置,left 左侧,top 顶部。优先级高于父组件的 label-position */
|
|
8
|
+
labelPosition?: 'left' | 'top';
|
|
7
9
|
};
|
|
8
10
|
declare var __VLS_1: {}, __VLS_3: {};
|
|
9
11
|
type __VLS_Slots = {} & {
|
|
@@ -16,6 +18,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
|
|
|
16
18
|
span: number | string;
|
|
17
19
|
value: any;
|
|
18
20
|
labelWidth: string | number;
|
|
21
|
+
labelPosition: "left" | "top";
|
|
19
22
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
23
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
21
24
|
export default _default;
|