@nutui/nutui 4.3.4 → 4.3.6
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/CHANGELOG.md +40 -1
- package/dist/nutui.es.js +1 -1
- package/dist/nutui.js +5358 -5629
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/audio/Audio.js +2 -1
- package/dist/packages/audiooperate/AudioOperate.js +2 -1
- package/dist/packages/cell/Cell.js +89 -80
- package/dist/packages/cellgroup/CellGroup.js +44 -21
- package/dist/packages/checkbox/Checkbox.js +1 -1
- package/dist/packages/{common-DRG0ue26.js → common-BH7uB7Cn.js} +4 -2
- package/dist/packages/countdown/Countdown.js +130 -173
- package/dist/packages/form/Form.js +5 -5
- package/dist/packages/formitem/FormItem.js +5 -5
- package/dist/packages/grid/Grid.js +68 -5
- package/dist/packages/griditem/GridItem.js +61 -81
- package/dist/packages/input/Input.js +1 -1
- package/dist/packages/inputnumber/InputNumber.js +7 -7
- package/dist/packages/invoice/Invoice.js +4 -4
- package/dist/packages/picker/Picker.js +1 -1
- package/dist/packages/radio/Radio.js +112 -1
- package/dist/packages/radiogroup/RadioGroup.js +60 -1
- package/dist/packages/range/Range.js +1 -1
- package/dist/packages/rate/Rate.js +1 -1
- package/dist/packages/searchbar/Searchbar.js +1 -1
- package/dist/packages/skeleton/Skeleton.js +88 -123
- package/dist/packages/step/Step.js +64 -83
- package/dist/packages/steps/Steps.js +44 -40
- package/dist/packages/switch/Switch.js +1 -1
- package/dist/packages/tabpane/TabPane.js +2 -1
- package/dist/packages/tabs/Tabs.js +2 -1
- package/dist/packages/textarea/Textarea.js +1 -1
- package/dist/packages/types-BMA1Y94E.js +4 -0
- package/dist/packages/types-BXlnzugj.js +4 -0
- package/dist/packages/types-CJeZIBld.js +4 -0
- package/dist/packages/uploader/Uploader.js +1 -1
- package/dist/smartips/web-types.json +446 -26
- package/dist/types/__VUE/audio/index.vue.d.ts +2 -2
- package/dist/types/__VUE/audio/types.d.ts +2 -0
- package/dist/types/__VUE/audiooperate/index.vue.d.ts +1 -1
- package/dist/types/__VUE/cell/cell.vue.d.ts +113 -0
- package/dist/types/__VUE/cell/index.d.ts +6 -0
- package/dist/types/__VUE/cellgroup/cell-group.vue.d.ts +55 -0
- package/dist/types/__VUE/cellgroup/index.d.ts +5 -0
- package/dist/types/__VUE/countdown/countdown.vue.d.ts +108 -0
- package/dist/types/__VUE/countdown/index.d.ts +5 -0
- package/dist/types/__VUE/countdown/util.d.ts +14 -0
- package/dist/types/__VUE/form/common.d.ts +1 -0
- package/dist/types/__VUE/grid/grid.vue.d.ts +87 -0
- package/dist/types/__VUE/grid/index.d.ts +6 -0
- package/dist/types/__VUE/grid/types.d.ts +2 -0
- package/dist/types/__VUE/griditem/grid-item.vue.d.ts +64 -0
- package/dist/types/__VUE/griditem/index.d.ts +5 -0
- package/dist/types/__VUE/navbar/navbar.vue.d.ts +1 -1
- package/dist/types/__VUE/picker/Column.vue.d.ts +2 -2
- package/dist/types/__VUE/radio/index.d.ts +6 -0
- package/dist/types/__VUE/radio/radio.vue.d.ts +74 -0
- package/dist/types/__VUE/radiogroup/index.d.ts +5 -0
- package/dist/types/__VUE/radiogroup/radio-group.vue.d.ts +66 -0
- package/dist/types/__VUE/skeleton/index.d.ts +5 -0
- package/dist/types/__VUE/skeleton/skeleton.vue.d.ts +102 -0
- package/dist/types/__VUE/step/index.d.ts +5 -0
- package/dist/types/__VUE/step/step.vue.d.ts +55 -0
- package/dist/types/__VUE/steps/index.d.ts +6 -0
- package/dist/types/__VUE/steps/steps.vue.d.ts +64 -0
- package/dist/types/__VUE/swiper/index.vue.d.ts +2 -2
- package/dist/types/__VUE/tabs/index.vue.d.ts +1 -1
- package/dist/types/__VUE/tabs/types.d.ts +1 -0
- package/dist/types/__VUE/uploader/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +21 -11
- package/dist/types/utils/Interceptor.d.ts +2 -2
- package/dist/types/utils/index.d.ts +2 -0
- package/dist/types/utils/useRelation/useParent.d.ts +1 -1
- package/package.json +1 -1
- package/dist/packages/common-Chr7cC9o.js +0 -145
- package/dist/packages/index.vue_vue_type_script_lang-CTQUvlgN.js +0 -99
- package/dist/packages/index.vue_vue_type_script_lang-CaSiRl9x.js +0 -46
- package/dist/types/__VUE/audiooperate/types.d.ts +0 -1
- package/dist/types/__VUE/cell/index.vue.d.ts +0 -120
- package/dist/types/__VUE/cellgroup/index.vue.d.ts +0 -33
- package/dist/types/__VUE/countdown/index.vue.d.ts +0 -125
- package/dist/types/__VUE/grid/common.d.ts +0 -73
- package/dist/types/__VUE/grid/index.vue.d.ts +0 -84
- package/dist/types/__VUE/griditem/index.vue.d.ts +0 -47
- package/dist/types/__VUE/radio/index.vue.d.ts +0 -64
- package/dist/types/__VUE/radiogroup/index.vue.d.ts +0 -49
- package/dist/types/__VUE/skeleton/index.vue.d.ts +0 -117
- package/dist/types/__VUE/step/index.vue.d.ts +0 -42
- package/dist/types/__VUE/steps/index.vue.d.ts +0 -48
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { toRef, toRefs, inject, computed, h } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-DQf3CENX.js";
|
|
3
|
-
import { CheckNormal, CheckChecked } from "@nutui/icons-vue";
|
|
4
|
-
import { p as pxCheck } from "./pxCheck-DN6FYV6q.js";
|
|
5
|
-
import { R as RADIO_KEY } from "./types-BODurTjN.js";
|
|
6
|
-
import { u as useFormDisabled } from "./common-DRG0ue26.js";
|
|
7
|
-
const { componentName, create } = createComponent("radio");
|
|
8
|
-
const _sfc_main = create({
|
|
9
|
-
components: {
|
|
10
|
-
CheckNormal,
|
|
11
|
-
CheckChecked
|
|
12
|
-
},
|
|
13
|
-
props: {
|
|
14
|
-
disabled: {
|
|
15
|
-
type: Boolean,
|
|
16
|
-
default: false
|
|
17
|
-
},
|
|
18
|
-
shape: {
|
|
19
|
-
type: String,
|
|
20
|
-
default: "round"
|
|
21
|
-
},
|
|
22
|
-
label: {
|
|
23
|
-
type: [String, Number, Boolean],
|
|
24
|
-
default: ""
|
|
25
|
-
},
|
|
26
|
-
iconSize: {
|
|
27
|
-
type: [String, Number],
|
|
28
|
-
default: ""
|
|
29
|
-
},
|
|
30
|
-
size: {
|
|
31
|
-
type: String,
|
|
32
|
-
default: "normal"
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
setup(props, { slots }) {
|
|
36
|
-
const disabled = useFormDisabled(toRef(props, "disabled"));
|
|
37
|
-
const { size } = toRefs(props);
|
|
38
|
-
let parent = inject(RADIO_KEY, null);
|
|
39
|
-
const isCurValue = computed(() => {
|
|
40
|
-
return parent.label.value === props.label;
|
|
41
|
-
});
|
|
42
|
-
const color = computed(() => {
|
|
43
|
-
return !disabled.value ? isCurValue.value ? "nut-radio__icon" : "nut-radio__icon--unchecked" : "nut-radio__icon--disable";
|
|
44
|
-
});
|
|
45
|
-
const renderIcon = () => {
|
|
46
|
-
const { iconSize } = props;
|
|
47
|
-
const iconNodeMap = {
|
|
48
|
-
CheckNormal: slots.icon ? slots.icon : CheckNormal,
|
|
49
|
-
Checked: slots.checkedIcon ? slots.checkedIcon : CheckChecked
|
|
50
|
-
};
|
|
51
|
-
const iconNode = !isCurValue.value ? iconNodeMap.CheckNormal : iconNodeMap.Checked;
|
|
52
|
-
const size2 = pxCheck(iconSize);
|
|
53
|
-
return h(iconNode, {
|
|
54
|
-
width: size2,
|
|
55
|
-
height: size2,
|
|
56
|
-
class: color.value
|
|
57
|
-
});
|
|
58
|
-
};
|
|
59
|
-
const renderLabel = () => {
|
|
60
|
-
var _a;
|
|
61
|
-
return h(
|
|
62
|
-
"view",
|
|
63
|
-
{
|
|
64
|
-
class: `${componentName}__label ${disabled.value ? `${componentName}__label--disabled` : ""}`
|
|
65
|
-
},
|
|
66
|
-
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
67
|
-
);
|
|
68
|
-
};
|
|
69
|
-
const renderButton = () => {
|
|
70
|
-
var _a;
|
|
71
|
-
return h(
|
|
72
|
-
"view",
|
|
73
|
-
{
|
|
74
|
-
class: `${componentName}__button ${isCurValue.value && `${componentName}__button--active`} ${componentName}__button--${size.value} ${props.disabled ? `${componentName}__button--disabled` : ""}`
|
|
75
|
-
},
|
|
76
|
-
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
77
|
-
);
|
|
78
|
-
};
|
|
79
|
-
const handleClick = () => {
|
|
80
|
-
if (isCurValue.value || disabled.value)
|
|
81
|
-
return;
|
|
82
|
-
parent.updateValue(props.label);
|
|
83
|
-
};
|
|
84
|
-
const reverseState = computed(() => parent.position.value === "left");
|
|
85
|
-
return () => {
|
|
86
|
-
return h(
|
|
87
|
-
"view",
|
|
88
|
-
{
|
|
89
|
-
class: `${componentName} ${componentName}--${props.shape} ${reverseState.value ? `${componentName}--reverse` : ""}`,
|
|
90
|
-
onClick: handleClick
|
|
91
|
-
},
|
|
92
|
-
[props.shape === "button" ? renderButton() : [renderIcon(), renderLabel()]]
|
|
93
|
-
);
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
export {
|
|
98
|
-
_sfc_main as _
|
|
99
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { provide, readonly, computed, watch, h } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-DQf3CENX.js";
|
|
3
|
-
import { R as RADIO_KEY } from "./types-BODurTjN.js";
|
|
4
|
-
const { componentName, create } = createComponent("radio-group");
|
|
5
|
-
const _sfc_main = create({
|
|
6
|
-
props: {
|
|
7
|
-
modelValue: {
|
|
8
|
-
type: [Number, String, Boolean],
|
|
9
|
-
default: ""
|
|
10
|
-
},
|
|
11
|
-
direction: {
|
|
12
|
-
type: String,
|
|
13
|
-
default: "vertical"
|
|
14
|
-
},
|
|
15
|
-
textPosition: {
|
|
16
|
-
type: String,
|
|
17
|
-
default: "right"
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
emits: ["change", "update:modelValue"],
|
|
21
|
-
setup(props, { emit, slots }) {
|
|
22
|
-
const updateValue = (value) => emit("update:modelValue", value);
|
|
23
|
-
provide(RADIO_KEY, {
|
|
24
|
-
label: readonly(computed(() => props.modelValue)),
|
|
25
|
-
position: readonly(computed(() => props.textPosition)),
|
|
26
|
-
updateValue
|
|
27
|
-
});
|
|
28
|
-
watch(
|
|
29
|
-
() => props.modelValue,
|
|
30
|
-
(value) => emit("change", value)
|
|
31
|
-
);
|
|
32
|
-
return () => {
|
|
33
|
-
var _a;
|
|
34
|
-
return h(
|
|
35
|
-
"view",
|
|
36
|
-
{
|
|
37
|
-
class: `${componentName} ${componentName}--${props.direction}`
|
|
38
|
-
},
|
|
39
|
-
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
40
|
-
);
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
export {
|
|
45
|
-
_sfc_main as _
|
|
46
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type AudioOperateType = 'play' | 'back' | 'forward' | 'mute';
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import type { PropType, CSSProperties } from 'vue';
|
|
2
|
-
import { CellSize } from './types';
|
|
3
|
-
|
|
4
|
-
declare type Install<T> = T & {
|
|
5
|
-
install(app: import('vue').App): void;
|
|
6
|
-
};
|
|
7
|
-
declare const _default: Install< import("vue").DefineComponent<{
|
|
8
|
-
title: {
|
|
9
|
-
type: StringConstructor;
|
|
10
|
-
default: string;
|
|
11
|
-
};
|
|
12
|
-
subTitle: {
|
|
13
|
-
type: StringConstructor;
|
|
14
|
-
default: string;
|
|
15
|
-
};
|
|
16
|
-
desc: {
|
|
17
|
-
type: StringConstructor;
|
|
18
|
-
default: string;
|
|
19
|
-
};
|
|
20
|
-
descTextAlign: {
|
|
21
|
-
type: StringConstructor;
|
|
22
|
-
default: string;
|
|
23
|
-
};
|
|
24
|
-
isLink: {
|
|
25
|
-
type: BooleanConstructor;
|
|
26
|
-
default: boolean;
|
|
27
|
-
};
|
|
28
|
-
to: (ObjectConstructor | StringConstructor)[];
|
|
29
|
-
replace: {
|
|
30
|
-
type: BooleanConstructor;
|
|
31
|
-
default: boolean;
|
|
32
|
-
};
|
|
33
|
-
roundRadius: {
|
|
34
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
35
|
-
default: string;
|
|
36
|
-
};
|
|
37
|
-
url: {
|
|
38
|
-
type: StringConstructor;
|
|
39
|
-
default: string;
|
|
40
|
-
};
|
|
41
|
-
center: {
|
|
42
|
-
type: BooleanConstructor;
|
|
43
|
-
default: boolean;
|
|
44
|
-
};
|
|
45
|
-
size: {
|
|
46
|
-
type: PropType<CellSize>;
|
|
47
|
-
default: string;
|
|
48
|
-
};
|
|
49
|
-
}, {
|
|
50
|
-
handleClick: (event: Event) => void;
|
|
51
|
-
classes: import("vue").ComputedRef<{
|
|
52
|
-
[x: string]: string | boolean | Record<string, any> | undefined;
|
|
53
|
-
}>;
|
|
54
|
-
baseStyle: import("vue").ComputedRef<{
|
|
55
|
-
borderRadius: string | undefined;
|
|
56
|
-
}>;
|
|
57
|
-
descStyle: import("vue").ComputedRef<CSSProperties>;
|
|
58
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
59
|
-
title: {
|
|
60
|
-
type: StringConstructor;
|
|
61
|
-
default: string;
|
|
62
|
-
};
|
|
63
|
-
subTitle: {
|
|
64
|
-
type: StringConstructor;
|
|
65
|
-
default: string;
|
|
66
|
-
};
|
|
67
|
-
desc: {
|
|
68
|
-
type: StringConstructor;
|
|
69
|
-
default: string;
|
|
70
|
-
};
|
|
71
|
-
descTextAlign: {
|
|
72
|
-
type: StringConstructor;
|
|
73
|
-
default: string;
|
|
74
|
-
};
|
|
75
|
-
isLink: {
|
|
76
|
-
type: BooleanConstructor;
|
|
77
|
-
default: boolean;
|
|
78
|
-
};
|
|
79
|
-
to: (ObjectConstructor | StringConstructor)[];
|
|
80
|
-
replace: {
|
|
81
|
-
type: BooleanConstructor;
|
|
82
|
-
default: boolean;
|
|
83
|
-
};
|
|
84
|
-
roundRadius: {
|
|
85
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
86
|
-
default: string;
|
|
87
|
-
};
|
|
88
|
-
url: {
|
|
89
|
-
type: StringConstructor;
|
|
90
|
-
default: string;
|
|
91
|
-
};
|
|
92
|
-
center: {
|
|
93
|
-
type: BooleanConstructor;
|
|
94
|
-
default: boolean;
|
|
95
|
-
};
|
|
96
|
-
size: {
|
|
97
|
-
type: PropType<CellSize>;
|
|
98
|
-
default: string;
|
|
99
|
-
};
|
|
100
|
-
}>> & {
|
|
101
|
-
onClick?: ((...args: any[]) => any) | undefined;
|
|
102
|
-
}, {
|
|
103
|
-
size: CellSize;
|
|
104
|
-
title: string;
|
|
105
|
-
desc: string;
|
|
106
|
-
replace: boolean;
|
|
107
|
-
center: boolean;
|
|
108
|
-
subTitle: string;
|
|
109
|
-
descTextAlign: string;
|
|
110
|
-
isLink: boolean;
|
|
111
|
-
roundRadius: string | number;
|
|
112
|
-
url: string;
|
|
113
|
-
}, {}>>;
|
|
114
|
-
export default _default;
|
|
115
|
-
|
|
116
|
-
declare module 'vue' {
|
|
117
|
-
interface GlobalComponents {
|
|
118
|
-
NutCell: typeof _default;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
declare type Install<T> = T & {
|
|
3
|
-
install(app: import('vue').App): void;
|
|
4
|
-
};
|
|
5
|
-
declare const _default: Install< import("vue").DefineComponent<{
|
|
6
|
-
title: {
|
|
7
|
-
type: StringConstructor;
|
|
8
|
-
default: string;
|
|
9
|
-
};
|
|
10
|
-
desc: {
|
|
11
|
-
type: StringConstructor;
|
|
12
|
-
default: string;
|
|
13
|
-
};
|
|
14
|
-
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
-
title: {
|
|
16
|
-
type: StringConstructor;
|
|
17
|
-
default: string;
|
|
18
|
-
};
|
|
19
|
-
desc: {
|
|
20
|
-
type: StringConstructor;
|
|
21
|
-
default: string;
|
|
22
|
-
};
|
|
23
|
-
}>>, {
|
|
24
|
-
title: string;
|
|
25
|
-
desc: string;
|
|
26
|
-
}, {}>>;
|
|
27
|
-
export default _default;
|
|
28
|
-
|
|
29
|
-
declare module 'vue' {
|
|
30
|
-
interface GlobalComponents {
|
|
31
|
-
NutCellGroup: typeof _default;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
declare type Install<T> = T & {
|
|
3
|
-
install(app: import('vue').App): void;
|
|
4
|
-
};
|
|
5
|
-
declare const _default: Install< import("vue").DefineComponent<{
|
|
6
|
-
modelValue: {
|
|
7
|
-
type: ObjectConstructor;
|
|
8
|
-
default: () => {};
|
|
9
|
-
};
|
|
10
|
-
paused: {
|
|
11
|
-
default: boolean;
|
|
12
|
-
type: BooleanConstructor;
|
|
13
|
-
};
|
|
14
|
-
startTime: {
|
|
15
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
16
|
-
validator(v: Date): boolean;
|
|
17
|
-
};
|
|
18
|
-
endTime: {
|
|
19
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
20
|
-
validator(v: Date): boolean;
|
|
21
|
-
};
|
|
22
|
-
millisecond: {
|
|
23
|
-
default: boolean;
|
|
24
|
-
type: BooleanConstructor;
|
|
25
|
-
};
|
|
26
|
-
format: {
|
|
27
|
-
type: StringConstructor;
|
|
28
|
-
default: string;
|
|
29
|
-
};
|
|
30
|
-
autoStart: {
|
|
31
|
-
type: BooleanConstructor;
|
|
32
|
-
default: boolean;
|
|
33
|
-
};
|
|
34
|
-
time: {
|
|
35
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
36
|
-
default: number;
|
|
37
|
-
};
|
|
38
|
-
}, {
|
|
39
|
-
slots: Readonly<{
|
|
40
|
-
[name: string]: import("vue").Slot<any> | undefined;
|
|
41
|
-
}>;
|
|
42
|
-
start: () => void;
|
|
43
|
-
pause: () => void;
|
|
44
|
-
renderTime: import("vue").ComputedRef<string | {
|
|
45
|
-
d: number;
|
|
46
|
-
h: number;
|
|
47
|
-
m: number;
|
|
48
|
-
s: number;
|
|
49
|
-
ms: number;
|
|
50
|
-
}>;
|
|
51
|
-
translate: (keyPath: string, ...args: unknown[]) => any;
|
|
52
|
-
reset: () => void;
|
|
53
|
-
time: import("vue").Ref<string | number>;
|
|
54
|
-
paused: import("vue").Ref<boolean>;
|
|
55
|
-
modelValue: import("vue").Ref<Record<string, any>>;
|
|
56
|
-
millisecond: import("vue").Ref<boolean>;
|
|
57
|
-
format: import("vue").Ref<string>;
|
|
58
|
-
autoStart: import("vue").Ref<boolean>;
|
|
59
|
-
startTime: import("vue").Ref<string | number | undefined>;
|
|
60
|
-
endTime: import("vue").Ref<string | number | undefined>;
|
|
61
|
-
onInput: import("vue").Ref<((...args: any[]) => any) | undefined>;
|
|
62
|
-
"onUpdate:modelValue": import("vue").Ref<((...args: any[]) => any) | undefined>;
|
|
63
|
-
onEnd: import("vue").Ref<((...args: any[]) => any) | undefined>;
|
|
64
|
-
onRestart: import("vue").Ref<((...args: any[]) => any) | undefined>;
|
|
65
|
-
onPaused: import("vue").Ref<((...args: any[]) => any) | undefined>;
|
|
66
|
-
onOnEnd: import("vue").Ref<((...args: any[]) => any) | undefined>;
|
|
67
|
-
onOnRestart: import("vue").Ref<((...args: any[]) => any) | undefined>;
|
|
68
|
-
onOnPaused: import("vue").Ref<((...args: any[]) => any) | undefined>;
|
|
69
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "end" | "paused" | "update:modelValue" | "restart" | "onEnd" | "onRestart" | "onPaused")[], "input" | "end" | "paused" | "update:modelValue" | "restart" | "onEnd" | "onRestart" | "onPaused", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
70
|
-
modelValue: {
|
|
71
|
-
type: ObjectConstructor;
|
|
72
|
-
default: () => {};
|
|
73
|
-
};
|
|
74
|
-
paused: {
|
|
75
|
-
default: boolean;
|
|
76
|
-
type: BooleanConstructor;
|
|
77
|
-
};
|
|
78
|
-
startTime: {
|
|
79
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
80
|
-
validator(v: Date): boolean;
|
|
81
|
-
};
|
|
82
|
-
endTime: {
|
|
83
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
84
|
-
validator(v: Date): boolean;
|
|
85
|
-
};
|
|
86
|
-
millisecond: {
|
|
87
|
-
default: boolean;
|
|
88
|
-
type: BooleanConstructor;
|
|
89
|
-
};
|
|
90
|
-
format: {
|
|
91
|
-
type: StringConstructor;
|
|
92
|
-
default: string;
|
|
93
|
-
};
|
|
94
|
-
autoStart: {
|
|
95
|
-
type: BooleanConstructor;
|
|
96
|
-
default: boolean;
|
|
97
|
-
};
|
|
98
|
-
time: {
|
|
99
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
100
|
-
default: number;
|
|
101
|
-
};
|
|
102
|
-
}>> & {
|
|
103
|
-
onInput?: ((...args: any[]) => any) | undefined;
|
|
104
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
105
|
-
onEnd?: ((...args: any[]) => any) | undefined;
|
|
106
|
-
onRestart?: ((...args: any[]) => any) | undefined;
|
|
107
|
-
onPaused?: ((...args: any[]) => any) | undefined;
|
|
108
|
-
onOnEnd?: ((...args: any[]) => any) | undefined;
|
|
109
|
-
onOnRestart?: ((...args: any[]) => any) | undefined;
|
|
110
|
-
onOnPaused?: ((...args: any[]) => any) | undefined;
|
|
111
|
-
}, {
|
|
112
|
-
time: string | number;
|
|
113
|
-
paused: boolean;
|
|
114
|
-
modelValue: Record<string, any>;
|
|
115
|
-
millisecond: boolean;
|
|
116
|
-
format: string;
|
|
117
|
-
autoStart: boolean;
|
|
118
|
-
}, {}>>;
|
|
119
|
-
export default _default;
|
|
120
|
-
|
|
121
|
-
declare module 'vue' {
|
|
122
|
-
interface GlobalComponents {
|
|
123
|
-
NutCountdown: typeof _default;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import type { ExtractPropTypes, SetupContext, RenderFunction } from 'vue';
|
|
2
|
-
export declare const GRID_KEY: unique symbol;
|
|
3
|
-
export type GridDirection = 'horizontal' | 'vertical';
|
|
4
|
-
export declare const gridProps: {
|
|
5
|
-
columnNum: {
|
|
6
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
7
|
-
default: number;
|
|
8
|
-
};
|
|
9
|
-
border: {
|
|
10
|
-
type: BooleanConstructor;
|
|
11
|
-
default: boolean;
|
|
12
|
-
};
|
|
13
|
-
gutter: {
|
|
14
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
15
|
-
default: number;
|
|
16
|
-
};
|
|
17
|
-
center: {
|
|
18
|
-
type: BooleanConstructor;
|
|
19
|
-
default: boolean;
|
|
20
|
-
};
|
|
21
|
-
square: {
|
|
22
|
-
type: BooleanConstructor;
|
|
23
|
-
default: boolean;
|
|
24
|
-
};
|
|
25
|
-
reverse: {
|
|
26
|
-
type: BooleanConstructor;
|
|
27
|
-
default: boolean;
|
|
28
|
-
};
|
|
29
|
-
direction: {
|
|
30
|
-
type: import("vue").PropType<GridDirection>;
|
|
31
|
-
};
|
|
32
|
-
clickable: {
|
|
33
|
-
type: BooleanConstructor;
|
|
34
|
-
default: boolean;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
export type GridProps = ExtractPropTypes<typeof gridProps>;
|
|
38
|
-
export declare const component: {
|
|
39
|
-
props: {
|
|
40
|
-
columnNum: {
|
|
41
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
42
|
-
default: number;
|
|
43
|
-
};
|
|
44
|
-
border: {
|
|
45
|
-
type: BooleanConstructor;
|
|
46
|
-
default: boolean;
|
|
47
|
-
};
|
|
48
|
-
gutter: {
|
|
49
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
50
|
-
default: number;
|
|
51
|
-
};
|
|
52
|
-
center: {
|
|
53
|
-
type: BooleanConstructor;
|
|
54
|
-
default: boolean;
|
|
55
|
-
};
|
|
56
|
-
square: {
|
|
57
|
-
type: BooleanConstructor;
|
|
58
|
-
default: boolean;
|
|
59
|
-
};
|
|
60
|
-
reverse: {
|
|
61
|
-
type: BooleanConstructor;
|
|
62
|
-
default: boolean;
|
|
63
|
-
};
|
|
64
|
-
direction: {
|
|
65
|
-
type: import("vue").PropType<GridDirection>;
|
|
66
|
-
};
|
|
67
|
-
clickable: {
|
|
68
|
-
type: BooleanConstructor;
|
|
69
|
-
default: boolean;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
setup(props: GridProps, { slots }: SetupContext): RenderFunction;
|
|
73
|
-
};
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
declare type Install<T> = T & {
|
|
3
|
-
install(app: import('vue').App): void;
|
|
4
|
-
};
|
|
5
|
-
declare const _default: Install< import("vue").DefineComponent<{
|
|
6
|
-
columnNum: {
|
|
7
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
8
|
-
default: number;
|
|
9
|
-
};
|
|
10
|
-
border: {
|
|
11
|
-
type: BooleanConstructor;
|
|
12
|
-
default: boolean;
|
|
13
|
-
};
|
|
14
|
-
gutter: {
|
|
15
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
16
|
-
default: number;
|
|
17
|
-
};
|
|
18
|
-
center: {
|
|
19
|
-
type: BooleanConstructor;
|
|
20
|
-
default: boolean;
|
|
21
|
-
};
|
|
22
|
-
square: {
|
|
23
|
-
type: BooleanConstructor;
|
|
24
|
-
default: boolean;
|
|
25
|
-
};
|
|
26
|
-
reverse: {
|
|
27
|
-
type: BooleanConstructor;
|
|
28
|
-
default: boolean;
|
|
29
|
-
};
|
|
30
|
-
direction: {
|
|
31
|
-
type: import("vue").PropType<import("./common").GridDirection>;
|
|
32
|
-
};
|
|
33
|
-
clickable: {
|
|
34
|
-
type: BooleanConstructor;
|
|
35
|
-
default: boolean;
|
|
36
|
-
};
|
|
37
|
-
}, import("vue").RenderFunction, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
38
|
-
columnNum: {
|
|
39
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
40
|
-
default: number;
|
|
41
|
-
};
|
|
42
|
-
border: {
|
|
43
|
-
type: BooleanConstructor;
|
|
44
|
-
default: boolean;
|
|
45
|
-
};
|
|
46
|
-
gutter: {
|
|
47
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
48
|
-
default: number;
|
|
49
|
-
};
|
|
50
|
-
center: {
|
|
51
|
-
type: BooleanConstructor;
|
|
52
|
-
default: boolean;
|
|
53
|
-
};
|
|
54
|
-
square: {
|
|
55
|
-
type: BooleanConstructor;
|
|
56
|
-
default: boolean;
|
|
57
|
-
};
|
|
58
|
-
reverse: {
|
|
59
|
-
type: BooleanConstructor;
|
|
60
|
-
default: boolean;
|
|
61
|
-
};
|
|
62
|
-
direction: {
|
|
63
|
-
type: import("vue").PropType<import("./common").GridDirection>;
|
|
64
|
-
};
|
|
65
|
-
clickable: {
|
|
66
|
-
type: BooleanConstructor;
|
|
67
|
-
default: boolean;
|
|
68
|
-
};
|
|
69
|
-
}>>, {
|
|
70
|
-
square: boolean;
|
|
71
|
-
reverse: boolean;
|
|
72
|
-
center: boolean;
|
|
73
|
-
border: boolean;
|
|
74
|
-
gutter: string | number;
|
|
75
|
-
columnNum: string | number;
|
|
76
|
-
clickable: boolean;
|
|
77
|
-
}, {}>>;
|
|
78
|
-
export default _default;
|
|
79
|
-
|
|
80
|
-
declare module 'vue' {
|
|
81
|
-
interface GlobalComponents {
|
|
82
|
-
NutGrid: typeof _default;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
declare type Install<T> = T & {
|
|
3
|
-
install(app: import('vue').App): void;
|
|
4
|
-
};
|
|
5
|
-
declare const _default: Install< import("vue").DefineComponent<{
|
|
6
|
-
text: {
|
|
7
|
-
type: StringConstructor;
|
|
8
|
-
};
|
|
9
|
-
to: {
|
|
10
|
-
type: (ObjectConstructor | StringConstructor)[];
|
|
11
|
-
};
|
|
12
|
-
url: {
|
|
13
|
-
type: StringConstructor;
|
|
14
|
-
default: string;
|
|
15
|
-
};
|
|
16
|
-
replace: {
|
|
17
|
-
type: BooleanConstructor;
|
|
18
|
-
default: boolean;
|
|
19
|
-
};
|
|
20
|
-
}, any, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
-
text: {
|
|
22
|
-
type: StringConstructor;
|
|
23
|
-
};
|
|
24
|
-
to: {
|
|
25
|
-
type: (ObjectConstructor | StringConstructor)[];
|
|
26
|
-
};
|
|
27
|
-
url: {
|
|
28
|
-
type: StringConstructor;
|
|
29
|
-
default: string;
|
|
30
|
-
};
|
|
31
|
-
replace: {
|
|
32
|
-
type: BooleanConstructor;
|
|
33
|
-
default: boolean;
|
|
34
|
-
};
|
|
35
|
-
}>> & {
|
|
36
|
-
onClick?: ((...args: any[]) => any) | undefined;
|
|
37
|
-
}, {
|
|
38
|
-
replace: boolean;
|
|
39
|
-
url: string;
|
|
40
|
-
}, {}>>;
|
|
41
|
-
export default _default;
|
|
42
|
-
|
|
43
|
-
declare module 'vue' {
|
|
44
|
-
interface GlobalComponents {
|
|
45
|
-
NutGridItem: typeof _default;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
2
|
-
import { RadioShape, RadioButtonSize } from './types';
|
|
3
|
-
|
|
4
|
-
declare type Install<T> = T & {
|
|
5
|
-
install(app: import('vue').App): void;
|
|
6
|
-
};
|
|
7
|
-
declare const _default: Install< import("vue").DefineComponent<{
|
|
8
|
-
disabled: {
|
|
9
|
-
type: BooleanConstructor;
|
|
10
|
-
default: boolean;
|
|
11
|
-
};
|
|
12
|
-
shape: {
|
|
13
|
-
type: PropType<RadioShape>;
|
|
14
|
-
default: string;
|
|
15
|
-
};
|
|
16
|
-
label: {
|
|
17
|
-
type: (NumberConstructor | BooleanConstructor | StringConstructor)[];
|
|
18
|
-
default: string;
|
|
19
|
-
};
|
|
20
|
-
iconSize: {
|
|
21
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
22
|
-
default: string;
|
|
23
|
-
};
|
|
24
|
-
size: {
|
|
25
|
-
type: PropType<RadioButtonSize>;
|
|
26
|
-
default: string;
|
|
27
|
-
};
|
|
28
|
-
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
29
|
-
[key: string]: any;
|
|
30
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
|
-
disabled: {
|
|
32
|
-
type: BooleanConstructor;
|
|
33
|
-
default: boolean;
|
|
34
|
-
};
|
|
35
|
-
shape: {
|
|
36
|
-
type: PropType<RadioShape>;
|
|
37
|
-
default: string;
|
|
38
|
-
};
|
|
39
|
-
label: {
|
|
40
|
-
type: (NumberConstructor | BooleanConstructor | StringConstructor)[];
|
|
41
|
-
default: string;
|
|
42
|
-
};
|
|
43
|
-
iconSize: {
|
|
44
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
45
|
-
default: string;
|
|
46
|
-
};
|
|
47
|
-
size: {
|
|
48
|
-
type: PropType<RadioButtonSize>;
|
|
49
|
-
default: string;
|
|
50
|
-
};
|
|
51
|
-
}>>, {
|
|
52
|
-
shape: RadioShape;
|
|
53
|
-
disabled: boolean;
|
|
54
|
-
size: RadioButtonSize;
|
|
55
|
-
label: string | number | boolean;
|
|
56
|
-
iconSize: string | number;
|
|
57
|
-
}, {}>>;
|
|
58
|
-
export default _default;
|
|
59
|
-
|
|
60
|
-
declare module 'vue' {
|
|
61
|
-
interface GlobalComponents {
|
|
62
|
-
NutRadio: typeof _default;
|
|
63
|
-
}
|
|
64
|
-
}
|