@nutui/nutui 4.3.3 → 4.3.4
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 +20 -0
- package/dist/nutui.es.js +1 -1
- package/dist/nutui.js +4461 -4666
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/{Interceptor-WYVtGbGC.js → Interceptor-DlY2h6Y7.js} +2 -2
- package/dist/packages/actionsheet/ActionSheet.js +3 -3
- package/dist/packages/address/Address.js +5 -5
- package/dist/packages/addresslist/AddressList.js +4 -4
- package/dist/packages/animate/Animate.js +1 -1
- package/dist/packages/audio/Audio.js +2 -2
- package/dist/packages/audiooperate/AudioOperate.js +3 -3
- package/dist/packages/avatar/Avatar.js +2 -2
- package/dist/packages/avatarcropper/AvatarCropper.js +5 -5
- package/dist/packages/avatargroup/AvatarGroup.js +3 -3
- package/dist/packages/backtop/Backtop.js +2 -2
- package/dist/packages/badge/Badge.js +2 -2
- package/dist/packages/barrage/Barrage.js +2 -2
- package/dist/packages/button/Button.js +1 -1
- package/dist/packages/calendar/Calendar.js +6 -6
- package/dist/packages/calendarcard/CalendarCard.js +3 -3
- package/dist/packages/card/Card.js +2 -2
- package/dist/packages/cascader/Cascader.js +4 -4
- package/dist/packages/category/Category.js +4 -4
- package/dist/packages/categorypane/CategoryPane.js +5 -5
- package/dist/packages/cell/Cell.js +4 -4
- package/dist/packages/cellgroup/CellGroup.js +2 -2
- package/dist/packages/checkbox/Checkbox.js +4 -4
- package/dist/packages/checkboxgroup/CheckboxGroup.js +2 -2
- package/dist/packages/circleprogress/CircleProgress.js +2 -2
- package/dist/packages/col/Col.js +2 -2
- package/dist/packages/collapse/Collapse.js +2 -2
- package/dist/packages/collapseitem/CollapseItem.js +3 -3
- package/dist/packages/comment/Comment.js +4 -4
- package/dist/packages/{common-4inKawxR.js → common-Chr7cC9o.js} +2 -2
- package/dist/packages/{common-FZL3qC99.js → common-DRG0ue26.js} +1 -1
- package/dist/packages/configprovider/ConfigProvider.js +1 -1
- package/dist/packages/countdown/Countdown.js +4 -4
- package/dist/packages/countup/Countup.js +9 -9
- package/dist/packages/{date-djiVNSnJ.js → date-DHXcwF1m.js} +2 -2
- package/dist/packages/datepicker/DatePicker.js +3 -3
- package/dist/packages/dialog/Dialog.js +8 -8
- package/dist/packages/divider/Divider.js +1 -1
- package/dist/packages/drag/Drag.js +3 -3
- package/dist/packages/ecard/Ecard.js +3 -3
- package/dist/packages/elevator/Elevator.js +2 -2
- package/dist/packages/ellipsis/Ellipsis.js +4 -4
- package/dist/packages/empty/Empty.js +67 -52
- package/dist/packages/fixednav/FixedNav.js +3 -3
- package/dist/packages/form/Form.js +4 -4
- package/dist/packages/formitem/FormItem.js +4 -4
- package/dist/packages/grid/Grid.js +2 -2
- package/dist/packages/griditem/GridItem.js +5 -5
- package/dist/packages/image/Image.js +3 -3
- package/dist/packages/imagepreview/ImagePreview.js +8 -8
- package/dist/packages/{index-s3RgMhc7.js → index-CFigyH92.js} +1 -1
- package/dist/packages/{index--uVlasFu.js → index-Do4_KY74.js} +2 -2
- package/dist/packages/{index-BqB5dTeo.js → index-uHBD4dfS.js} +2 -2
- package/dist/packages/{index.vue_vue_type_script_lang-n0HbjvfF.js → index.vue_vue_type_script_lang-CTQUvlgN.js} +4 -4
- package/dist/packages/{index.vue_vue_type_script_lang-54PRh3YM.js → index.vue_vue_type_script_lang-CaSiRl9x.js} +2 -2
- package/dist/packages/indicator/Indicator.js +56 -50
- package/dist/packages/infiniteloading/InfiniteLoading.js +6 -6
- package/dist/packages/input/Input.js +3 -3
- package/dist/packages/inputnumber/InputNumber.js +3 -3
- package/dist/packages/invoice/Invoice.js +3 -3
- package/dist/packages/layout/Layout.js +2 -2
- package/dist/packages/list/List.js +3 -3
- package/dist/packages/locale/lang/en-US.js +1 -1
- package/dist/packages/locale/lang/id-ID.js +1 -1
- package/dist/packages/locale/lang/index.js +2 -2
- package/dist/packages/locale/lang/zh-CN.js +1 -1
- package/dist/packages/locale/lang/zh-TW.js +1 -1
- package/dist/packages/menu/Menu.js +5 -5
- package/dist/packages/menuitem/MenuItem.js +5 -5
- package/dist/packages/{mountComponent-uInXoTMp.js → mountComponent-DBQ88Fjz.js} +1 -1
- package/dist/packages/navbar/Navbar.js +1 -1
- package/dist/packages/noticebar/Noticebar.js +3 -3
- package/dist/packages/notify/Notify.js +3 -3
- package/dist/packages/numberkeyboard/NumberKeyboard.js +4 -4
- package/dist/packages/overlay/Overlay.js +3 -3
- package/dist/packages/pagination/Pagination.js +3 -3
- package/dist/packages/picker/Picker.js +7 -10
- package/dist/packages/popover/Popover.js +5 -5
- package/dist/packages/popup/Popup.js +2 -2
- package/dist/packages/price/Price.js +1 -1
- package/dist/packages/progress/Progress.js +1 -1
- package/dist/packages/pullrefresh/PullRefresh.js +7 -7
- package/dist/packages/radio/Radio.js +1 -1
- package/dist/packages/radiogroup/RadioGroup.js +1 -1
- package/dist/packages/range/Range.js +6 -6
- package/dist/packages/rate/Rate.js +5 -5
- package/dist/packages/row/Row.js +2 -2
- package/dist/packages/searchbar/Searchbar.js +5 -5
- package/dist/packages/shortpassword/ShortPassword.js +5 -5
- package/dist/packages/sidenavbar/SideNavbar.js +2 -2
- package/dist/packages/sidenavbaritem/SideNavbarItem.js +2 -2
- package/dist/packages/signature/Signature.js +3 -3
- package/dist/packages/skeleton/Skeleton.js +13 -13
- package/dist/packages/sku/Sku.js +4 -4
- package/dist/packages/space/Space.js +1 -1
- package/dist/packages/step/Step.js +3 -3
- package/dist/packages/steps/Steps.js +2 -2
- package/dist/packages/sticky/Sticky.js +4 -4
- package/dist/packages/subsidenavbar/SubSideNavbar.js +2 -2
- package/dist/packages/swipe/Swipe.js +3 -3
- package/dist/packages/swipegroup/SwipeGroup.js +2 -2
- package/dist/packages/swiper/Swiper.js +7 -7
- package/dist/packages/swiperitem/SwiperItem.js +3 -3
- package/dist/packages/switch/Switch.js +68 -86
- package/dist/packages/tabbar/Tabbar.js +78 -78
- package/dist/packages/tabbaritem/TabbarItem.js +89 -113
- package/dist/packages/table/Table.js +3 -3
- package/dist/packages/tabpane/TabPane.js +2 -2
- package/dist/packages/tabs/Tabs.js +9 -9
- package/dist/packages/tag/Tag.js +1 -1
- package/dist/packages/textarea/Textarea.js +113 -127
- package/dist/packages/timedetail/TimeDetail.js +2 -2
- package/dist/packages/timepannel/TimePannel.js +2 -2
- package/dist/packages/timeselect/TimeSelect.js +4 -4
- package/dist/packages/toast/Toast.js +6 -6
- package/dist/packages/tour/Tour.js +3 -3
- package/dist/packages/trendarrow/TrendArrow.js +51 -83
- package/dist/packages/uploader/Uploader.js +5 -5
- package/dist/packages/{useChildren-GU_NVfD8.js → useChildren-BZ4-J79J.js} +2 -2
- package/dist/packages/useParent-D6DiuxZZ.js +21 -0
- package/dist/packages/{util-4Jkyw4BJ.js → util-DnfK0Qan.js} +2 -2
- package/dist/packages/video/Video.js +16 -16
- package/dist/packages/watermark/Watermark.js +2 -2
- package/dist/smartips/web-types.json +1 -1
- package/dist/types/__VUE/empty/empty.vue.d.ts +62 -0
- package/dist/types/__VUE/empty/index.d.ts +6 -0
- package/dist/types/__VUE/indicator/index.d.ts +6 -0
- package/dist/types/__VUE/indicator/indicator.vue.d.ts +65 -0
- package/dist/types/__VUE/switch/index.d.ts +5 -0
- package/dist/types/__VUE/switch/switch.vue.d.ts +109 -0
- package/dist/types/__VUE/tabbar/index.d.ts +5 -0
- package/dist/types/__VUE/tabbar/tabbar.vue.d.ts +83 -0
- package/dist/types/__VUE/tabbaritem/index.d.ts +5 -0
- package/dist/types/__VUE/tabbaritem/tabbar-item.vue.d.ts +65 -0
- package/dist/types/__VUE/tabs/index.vue.d.ts +12 -12
- package/dist/types/__VUE/textarea/index.d.ts +5 -0
- package/dist/types/__VUE/textarea/textarea.vue.d.ts +104 -0
- package/dist/types/__VUE/trendarrow/index.d.ts +5 -0
- package/dist/types/__VUE/trendarrow/trend-arrow.vue.d.ts +96 -0
- package/dist/types/index.d.ts +15 -8
- package/dist/types/utils/throttle.d.ts +1 -1
- package/dist/types/utils/useRelation/useParent.d.ts +1 -0
- package/package.json +1 -1
- package/dist/packages/useParent-KIxqkovs.js +0 -16
- package/dist/types/__VUE/empty/index.vue.d.ts +0 -53
- package/dist/types/__VUE/indicator/index.vue.d.ts +0 -69
- package/dist/types/__VUE/switch/index.vue.d.ts +0 -118
- package/dist/types/__VUE/tabbar/index.vue.d.ts +0 -85
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +0 -60
- package/dist/types/__VUE/textarea/index.vue.d.ts +0 -127
- package/dist/types/__VUE/trendarrow/index.vue.d.ts +0 -102
- /package/dist/packages/{_plugin-vue_export-helper-yVxbj29m.js → _plugin-vue_export-helper-1tPrXgE0.js} +0 -0
- /package/dist/packages/{component-TCzwHGVq.js → component-DQf3CENX.js} +0 -0
- /package/dist/packages/{index-cp6Ms_Qe.js → index-B1qsj2XR.js} +0 -0
- /package/dist/packages/{index-xDfQLRen.js → index-BvmDLUYP.js} +0 -0
- /package/dist/packages/{index-084nl_oE.js → index-I8tfW3Kf.js} +0 -0
- /package/dist/packages/{index-Ii9XdkPy.js → index-aiGQ-EiA.js} +0 -0
- /package/dist/packages/locale/lang/{baseLang-7uiEiO-2.js → baseLang-Bnfy6fTl.js} +0 -0
- /package/dist/packages/{pxCheck-OnXlN1NC.js → pxCheck-DN6FYV6q.js} +0 -0
- /package/dist/packages/{raf-MQjoO-Ag.js → raf-c01wDYCo.js} +0 -0
- /package/dist/packages/{renderIcon--EgZu5_5.js → renderIcon-BfOvhG7i.js} +0 -0
- /package/dist/packages/{types-RCVUm7Nb.js → types-1HzUV14W.js} +0 -0
- /package/dist/packages/{types-zeKkNDAq.js → types-48N1bMrT.js} +0 -0
- /package/dist/packages/{types-Ww4ErYJT.js → types-BKDaJvHp.js} +0 -0
- /package/dist/packages/{types-odSRziQJ.js → types-BODurTjN.js} +0 -0
- /package/dist/packages/{types-qOrhXtA_.js → types-BWhKcf4T.js} +0 -0
- /package/dist/packages/{types-4IflWeQO.js → types-BomhFk3T.js} +0 -0
- /package/dist/packages/{types-j71K23JP.js → types-CkPfROfI.js} +0 -0
- /package/dist/packages/{types-9wCQwtH3.js → types-DUkJysbi.js} +0 -0
- /package/dist/packages/{types-Cq2YypZn.js → types-MuhxzCWc.js} +0 -0
- /package/dist/packages/{with-install-p59gYYU_.js → with-install-Ch3FF0uS.js} +0 -0
|
@@ -18,19 +18,19 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { reactive, ref, computed, watch, nextTick, onMounted, toRefs, openBlock, createElementBlock, createElementVNode, createCommentVNode, withDirectives, vShow, normalizeClass, toDisplayString, normalizeStyle, withModifiers } from "vue";
|
|
21
|
-
import { c as createComponent } from "../component-
|
|
22
|
-
import { u as useLocale } from "../index-
|
|
23
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
21
|
+
import { c as createComponent } from "../component-DQf3CENX.js";
|
|
22
|
+
import { u as useLocale } from "../index-CFigyH92.js";
|
|
23
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
24
24
|
function throttle(fn, delay) {
|
|
25
25
|
let timer = null;
|
|
26
26
|
let startTime = Date.now();
|
|
27
|
-
return function() {
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
return function(...args) {
|
|
28
|
+
const now = Date.now();
|
|
29
|
+
const remaining = delay - (now - startTime);
|
|
30
30
|
if (timer)
|
|
31
31
|
clearTimeout(timer);
|
|
32
32
|
if (remaining <= 0) {
|
|
33
|
-
fn
|
|
33
|
+
fn(...args);
|
|
34
34
|
startTime = Date.now();
|
|
35
35
|
} else {
|
|
36
36
|
timer = setTimeout(fn, remaining);
|
|
@@ -49,17 +49,17 @@ const _sfc_main = create({
|
|
|
49
49
|
type: Object,
|
|
50
50
|
default: {
|
|
51
51
|
autoplay: false,
|
|
52
|
-
|
|
52
|
+
// 是否自动播放
|
|
53
53
|
volume: 0.5,
|
|
54
54
|
poster: "",
|
|
55
55
|
loop: false,
|
|
56
56
|
controls: true,
|
|
57
57
|
muted: false,
|
|
58
|
-
|
|
58
|
+
// 是否静音
|
|
59
59
|
disabled: false,
|
|
60
|
-
|
|
60
|
+
// 禁止操作
|
|
61
61
|
playsinline: false,
|
|
62
|
-
|
|
62
|
+
// 行内展示
|
|
63
63
|
touchPlay: false,
|
|
64
64
|
preload: ""
|
|
65
65
|
},
|
|
@@ -77,9 +77,9 @@ const _sfc_main = create({
|
|
|
77
77
|
const state = reactive({
|
|
78
78
|
videoElm: null,
|
|
79
79
|
initial: true,
|
|
80
|
-
|
|
80
|
+
// 控制封面的显示
|
|
81
81
|
showToolbox: false,
|
|
82
|
-
|
|
82
|
+
// 控制控制器和标题的显示
|
|
83
83
|
// 视频容器元素
|
|
84
84
|
player: {
|
|
85
85
|
$player: null,
|
|
@@ -109,12 +109,12 @@ const _sfc_main = create({
|
|
|
109
109
|
state: {
|
|
110
110
|
controlShow: true,
|
|
111
111
|
vol: 0.5,
|
|
112
|
-
|
|
112
|
+
// 音量
|
|
113
113
|
currentTime: 0,
|
|
114
|
-
|
|
114
|
+
// 当前时间
|
|
115
115
|
fullScreen: false,
|
|
116
116
|
playing: false,
|
|
117
|
-
|
|
117
|
+
// 是否正在播放
|
|
118
118
|
isLoading: false,
|
|
119
119
|
isEnd: false,
|
|
120
120
|
isError: false,
|
|
@@ -18,8 +18,8 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { reactive, watch, computed, toRefs, openBlock, createElementBlock, normalizeClass, normalizeStyle } from "vue";
|
|
21
|
-
import { c as createComponent } from "../component-
|
|
22
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
21
|
+
import { c as createComponent } from "../component-DQf3CENX.js";
|
|
22
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
23
23
|
const { componentName, create } = createComponent("watermark");
|
|
24
24
|
const _sfc_main = create({
|
|
25
25
|
props: {
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { WithInstall } from '../../utils';
|
|
2
|
+
import { EmptyImage } from './types';
|
|
3
|
+
export type EmptyProps = Partial<{
|
|
4
|
+
image: EmptyImage;
|
|
5
|
+
imageSize: number | string;
|
|
6
|
+
description: string;
|
|
7
|
+
}>;
|
|
8
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
9
|
+
image: string;
|
|
10
|
+
imageSize: string | number;
|
|
11
|
+
description: string;
|
|
12
|
+
}>>, {
|
|
13
|
+
image: string;
|
|
14
|
+
imageSize: string;
|
|
15
|
+
description: string;
|
|
16
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
17
|
+
image: string;
|
|
18
|
+
imageSize: string | number;
|
|
19
|
+
description: string;
|
|
20
|
+
}>>, {
|
|
21
|
+
image: string;
|
|
22
|
+
imageSize: string;
|
|
23
|
+
description: string;
|
|
24
|
+
}>>>, {
|
|
25
|
+
image: string;
|
|
26
|
+
description: string;
|
|
27
|
+
imageSize: string | number;
|
|
28
|
+
}, {}>, {
|
|
29
|
+
image?(_: {}): any;
|
|
30
|
+
description?(_: {}): any;
|
|
31
|
+
default?(_: {}): any;
|
|
32
|
+
}>;
|
|
33
|
+
declare const _nut_default: WithInstall<typeof _default>;
|
|
34
|
+
export default _nut_default;
|
|
35
|
+
|
|
36
|
+
declare module 'vue' {
|
|
37
|
+
interface GlobalComponents {
|
|
38
|
+
NutEmpty: typeof _default;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
42
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
43
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
44
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
45
|
+
} : {
|
|
46
|
+
type: import('vue').PropType<T[K]>;
|
|
47
|
+
required: true;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
type __VLS_WithDefaults<P, D> = {
|
|
51
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
52
|
+
default: D[K];
|
|
53
|
+
}> : P[K];
|
|
54
|
+
};
|
|
55
|
+
type __VLS_Prettify<T> = {
|
|
56
|
+
[K in keyof T]: T[K];
|
|
57
|
+
} & {};
|
|
58
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
59
|
+
new (): {
|
|
60
|
+
$slots: S;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import Empty from './empty.vue';
|
|
2
|
+
import type { ComponentPublicInstance } from 'vue';
|
|
3
|
+
export type { EmptyProps } from './empty.vue';
|
|
4
|
+
export type { EmptyImage } from './types';
|
|
5
|
+
export type EmptyInstance = ComponentPublicInstance & InstanceType<typeof Empty>;
|
|
6
|
+
export { Empty, Empty as default };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import Indicator from './indicator.vue';
|
|
2
|
+
import type { ComponentPublicInstance } from 'vue';
|
|
3
|
+
export type { IndicatorProps } from './indicator.vue';
|
|
4
|
+
export type { IndicatorAlign } from './types';
|
|
5
|
+
export type IndicatorInstance = ComponentPublicInstance & InstanceType<typeof Indicator>;
|
|
6
|
+
export { Indicator, Indicator as default };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { WithInstall } from '../../utils';
|
|
2
|
+
import type { IndicatorAlign } from './types';
|
|
3
|
+
export type IndicatorProps = Partial<{
|
|
4
|
+
size: number;
|
|
5
|
+
current: number;
|
|
6
|
+
block: boolean;
|
|
7
|
+
align: IndicatorAlign;
|
|
8
|
+
fillZero: boolean;
|
|
9
|
+
}>;
|
|
10
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
11
|
+
size: number;
|
|
12
|
+
current: number;
|
|
13
|
+
block: boolean;
|
|
14
|
+
align: IndicatorAlign;
|
|
15
|
+
fillZero: boolean;
|
|
16
|
+
}>>, {
|
|
17
|
+
size: number;
|
|
18
|
+
current: number;
|
|
19
|
+
block: boolean;
|
|
20
|
+
align: string;
|
|
21
|
+
fillZero: boolean;
|
|
22
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
23
|
+
size: number;
|
|
24
|
+
current: number;
|
|
25
|
+
block: boolean;
|
|
26
|
+
align: IndicatorAlign;
|
|
27
|
+
fillZero: boolean;
|
|
28
|
+
}>>, {
|
|
29
|
+
size: number;
|
|
30
|
+
current: number;
|
|
31
|
+
block: boolean;
|
|
32
|
+
align: string;
|
|
33
|
+
fillZero: boolean;
|
|
34
|
+
}>>>, {
|
|
35
|
+
size: number;
|
|
36
|
+
block: boolean;
|
|
37
|
+
align: IndicatorAlign;
|
|
38
|
+
current: number;
|
|
39
|
+
fillZero: boolean;
|
|
40
|
+
}, {}>;
|
|
41
|
+
declare const _nut_default: WithInstall<typeof _default>;
|
|
42
|
+
export default _nut_default;
|
|
43
|
+
|
|
44
|
+
declare module 'vue' {
|
|
45
|
+
interface GlobalComponents {
|
|
46
|
+
NutIndicator: typeof _default;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
50
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
51
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
52
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
53
|
+
} : {
|
|
54
|
+
type: import('vue').PropType<T[K]>;
|
|
55
|
+
required: true;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
type __VLS_WithDefaults<P, D> = {
|
|
59
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
60
|
+
default: D[K];
|
|
61
|
+
}> : P[K];
|
|
62
|
+
};
|
|
63
|
+
type __VLS_Prettify<T> = {
|
|
64
|
+
[K in keyof T]: T[K];
|
|
65
|
+
} & {};
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import type { WithInstall } from '../../utils';
|
|
2
|
+
export type SwitchProps = Partial<{
|
|
3
|
+
modelValue: string | number | boolean;
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
activeColor: string;
|
|
6
|
+
inactiveColor: string;
|
|
7
|
+
activeText: string;
|
|
8
|
+
inactiveText: string;
|
|
9
|
+
activeValue: string | number | boolean;
|
|
10
|
+
inactiveValue: string | number | boolean;
|
|
11
|
+
loading: boolean;
|
|
12
|
+
disable: boolean;
|
|
13
|
+
}>;
|
|
14
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
15
|
+
modelValue: string | number | boolean;
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
activeColor: string;
|
|
18
|
+
inactiveColor: string;
|
|
19
|
+
activeText: string;
|
|
20
|
+
inactiveText: string;
|
|
21
|
+
activeValue: string | number | boolean;
|
|
22
|
+
inactiveValue: string | number | boolean;
|
|
23
|
+
loading: boolean;
|
|
24
|
+
disable: boolean;
|
|
25
|
+
}>>, {
|
|
26
|
+
modelValue: boolean;
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
activeColor: string;
|
|
29
|
+
inactiveColor: string;
|
|
30
|
+
activeText: string;
|
|
31
|
+
inactiveText: string;
|
|
32
|
+
activeValue: boolean;
|
|
33
|
+
inactiveValue: boolean;
|
|
34
|
+
loading: boolean;
|
|
35
|
+
disable: boolean;
|
|
36
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
37
|
+
change: (...args: any[]) => void;
|
|
38
|
+
"update:modelValue": (...args: any[]) => void;
|
|
39
|
+
"update:loading": (...args: any[]) => void;
|
|
40
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
41
|
+
modelValue: string | number | boolean;
|
|
42
|
+
disabled: boolean;
|
|
43
|
+
activeColor: string;
|
|
44
|
+
inactiveColor: string;
|
|
45
|
+
activeText: string;
|
|
46
|
+
inactiveText: string;
|
|
47
|
+
activeValue: string | number | boolean;
|
|
48
|
+
inactiveValue: string | number | boolean;
|
|
49
|
+
loading: boolean;
|
|
50
|
+
disable: boolean;
|
|
51
|
+
}>>, {
|
|
52
|
+
modelValue: boolean;
|
|
53
|
+
disabled: boolean;
|
|
54
|
+
activeColor: string;
|
|
55
|
+
inactiveColor: string;
|
|
56
|
+
activeText: string;
|
|
57
|
+
inactiveText: string;
|
|
58
|
+
activeValue: boolean;
|
|
59
|
+
inactiveValue: boolean;
|
|
60
|
+
loading: boolean;
|
|
61
|
+
disable: boolean;
|
|
62
|
+
}>>> & {
|
|
63
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
64
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
65
|
+
"onUpdate:loading"?: ((...args: any[]) => any) | undefined;
|
|
66
|
+
}, {
|
|
67
|
+
loading: boolean;
|
|
68
|
+
disabled: boolean;
|
|
69
|
+
activeColor: string;
|
|
70
|
+
activeText: string;
|
|
71
|
+
modelValue: string | number | boolean;
|
|
72
|
+
inactiveColor: string;
|
|
73
|
+
disable: boolean;
|
|
74
|
+
inactiveText: string;
|
|
75
|
+
activeValue: string | number | boolean;
|
|
76
|
+
inactiveValue: string | number | boolean;
|
|
77
|
+
}, {}>, {
|
|
78
|
+
icon?(_: {}): any;
|
|
79
|
+
}>;
|
|
80
|
+
declare const _nut_default: WithInstall<typeof _default>;
|
|
81
|
+
export default _nut_default;
|
|
82
|
+
|
|
83
|
+
declare module 'vue' {
|
|
84
|
+
interface GlobalComponents {
|
|
85
|
+
NutSwitch: typeof _default;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
89
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
90
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
91
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
92
|
+
} : {
|
|
93
|
+
type: import('vue').PropType<T[K]>;
|
|
94
|
+
required: true;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
type __VLS_WithDefaults<P, D> = {
|
|
98
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
99
|
+
default: D[K];
|
|
100
|
+
}> : P[K];
|
|
101
|
+
};
|
|
102
|
+
type __VLS_Prettify<T> = {
|
|
103
|
+
[K in keyof T]: T[K];
|
|
104
|
+
} & {};
|
|
105
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
106
|
+
new (): {
|
|
107
|
+
$slots: S;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import type { WithInstall } from '../../utils';
|
|
2
|
+
export type TabbarProps = Partial<{
|
|
3
|
+
modelValue: number | string;
|
|
4
|
+
bottom: boolean;
|
|
5
|
+
unactiveColor: string;
|
|
6
|
+
activeColor: string;
|
|
7
|
+
safeAreaInsetBottom: boolean;
|
|
8
|
+
placeholder: boolean;
|
|
9
|
+
}>;
|
|
10
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
11
|
+
modelValue: string | number;
|
|
12
|
+
bottom: boolean;
|
|
13
|
+
unactiveColor: string;
|
|
14
|
+
activeColor: string;
|
|
15
|
+
safeAreaInsetBottom: boolean;
|
|
16
|
+
placeholder: boolean;
|
|
17
|
+
}>>, {
|
|
18
|
+
modelValue: number;
|
|
19
|
+
bottom: boolean;
|
|
20
|
+
unactiveColor: string;
|
|
21
|
+
activeColor: string;
|
|
22
|
+
safeAreaInsetBottom: boolean;
|
|
23
|
+
placeholder: boolean;
|
|
24
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
|
+
"update:modelValue": (...args: any[]) => void;
|
|
26
|
+
tabSwitch: (...args: any[]) => void;
|
|
27
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
28
|
+
modelValue: string | number;
|
|
29
|
+
bottom: boolean;
|
|
30
|
+
unactiveColor: string;
|
|
31
|
+
activeColor: string;
|
|
32
|
+
safeAreaInsetBottom: boolean;
|
|
33
|
+
placeholder: boolean;
|
|
34
|
+
}>>, {
|
|
35
|
+
modelValue: number;
|
|
36
|
+
bottom: boolean;
|
|
37
|
+
unactiveColor: string;
|
|
38
|
+
activeColor: string;
|
|
39
|
+
safeAreaInsetBottom: boolean;
|
|
40
|
+
placeholder: boolean;
|
|
41
|
+
}>>> & {
|
|
42
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
43
|
+
onTabSwitch?: ((...args: any[]) => any) | undefined;
|
|
44
|
+
}, {
|
|
45
|
+
bottom: boolean;
|
|
46
|
+
safeAreaInsetBottom: boolean;
|
|
47
|
+
placeholder: boolean;
|
|
48
|
+
activeColor: string;
|
|
49
|
+
modelValue: string | number;
|
|
50
|
+
unactiveColor: string;
|
|
51
|
+
}, {}>, {
|
|
52
|
+
default?(_: {}): any;
|
|
53
|
+
}>;
|
|
54
|
+
declare const _nut_default: WithInstall<typeof _default>;
|
|
55
|
+
export default _nut_default;
|
|
56
|
+
|
|
57
|
+
declare module 'vue' {
|
|
58
|
+
interface GlobalComponents {
|
|
59
|
+
NutTabbar: typeof _default;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
63
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
64
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
65
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
66
|
+
} : {
|
|
67
|
+
type: import('vue').PropType<T[K]>;
|
|
68
|
+
required: true;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
type __VLS_WithDefaults<P, D> = {
|
|
72
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
73
|
+
default: D[K];
|
|
74
|
+
}> : P[K];
|
|
75
|
+
};
|
|
76
|
+
type __VLS_Prettify<T> = {
|
|
77
|
+
[K in keyof T]: T[K];
|
|
78
|
+
} & {};
|
|
79
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
80
|
+
new (): {
|
|
81
|
+
$slots: S;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import TabbarItem from './tabbar-item.vue';
|
|
2
|
+
import type { ComponentPublicInstance } from 'vue';
|
|
3
|
+
export type { TabbarItemProps } from './tabbar-item.vue';
|
|
4
|
+
export type TabbarItemInstance = ComponentPublicInstance & InstanceType<typeof TabbarItem>;
|
|
5
|
+
export { TabbarItem, TabbarItem as default };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { WithInstall } from '../../utils';
|
|
2
|
+
export type TabbarItemProps = Partial<{
|
|
3
|
+
tabTitle: string;
|
|
4
|
+
name: string;
|
|
5
|
+
icon: any;
|
|
6
|
+
href: string;
|
|
7
|
+
to: string | Record<never, any>;
|
|
8
|
+
}>;
|
|
9
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
10
|
+
tabTitle: string;
|
|
11
|
+
name: string;
|
|
12
|
+
icon: any;
|
|
13
|
+
href: string;
|
|
14
|
+
to: string | Record<never, any>;
|
|
15
|
+
}>>, {
|
|
16
|
+
tabTitle: string;
|
|
17
|
+
href: string;
|
|
18
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
19
|
+
tabTitle: string;
|
|
20
|
+
name: string;
|
|
21
|
+
icon: any;
|
|
22
|
+
href: string;
|
|
23
|
+
to: string | Record<never, any>;
|
|
24
|
+
}>>, {
|
|
25
|
+
tabTitle: string;
|
|
26
|
+
href: string;
|
|
27
|
+
}>>>, {
|
|
28
|
+
tabTitle: string;
|
|
29
|
+
href: string;
|
|
30
|
+
}, {}>, {
|
|
31
|
+
icon?(_: {
|
|
32
|
+
active: boolean;
|
|
33
|
+
}): any;
|
|
34
|
+
default?(_: {}): any;
|
|
35
|
+
}>;
|
|
36
|
+
declare const _nut_default: WithInstall<typeof _default>;
|
|
37
|
+
export default _nut_default;
|
|
38
|
+
|
|
39
|
+
declare module 'vue' {
|
|
40
|
+
interface GlobalComponents {
|
|
41
|
+
NutTabbarItem: typeof _default;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
45
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
46
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
47
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
48
|
+
} : {
|
|
49
|
+
type: import('vue').PropType<T[K]>;
|
|
50
|
+
required: true;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
type __VLS_WithDefaults<P, D> = {
|
|
54
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
55
|
+
default: D[K];
|
|
56
|
+
}> : P[K];
|
|
57
|
+
};
|
|
58
|
+
type __VLS_Prettify<T> = {
|
|
59
|
+
[K in keyof T]: T[K];
|
|
60
|
+
} & {};
|
|
61
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
62
|
+
new (): {
|
|
63
|
+
$slots: S;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
@@ -91,20 +91,20 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
91
91
|
background: string;
|
|
92
92
|
}>;
|
|
93
93
|
titleStyle: import("vue").ComputedRef<{
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
94
|
+
paddingTop?: undefined;
|
|
95
|
+
paddingBottom?: undefined;
|
|
96
|
+
paddingLeft?: undefined;
|
|
97
|
+
paddingRight?: undefined;
|
|
98
98
|
} | {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
99
|
+
paddingTop: string | undefined;
|
|
100
|
+
paddingBottom: string | undefined;
|
|
101
|
+
paddingLeft?: undefined;
|
|
102
|
+
paddingRight?: undefined;
|
|
103
103
|
} | {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
104
|
+
paddingLeft: string | undefined;
|
|
105
|
+
paddingRight: string | undefined;
|
|
106
|
+
paddingTop?: undefined;
|
|
107
|
+
paddingBottom?: undefined;
|
|
108
108
|
}>;
|
|
109
109
|
tabsActiveStyle: import("vue").ComputedRef<{
|
|
110
110
|
color: string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import Textarea from './textarea.vue';
|
|
2
|
+
import type { ComponentPublicInstance } from 'vue';
|
|
3
|
+
export type { TextareaProps } from './textarea.vue';
|
|
4
|
+
export type TextareaInstance = ComponentPublicInstance & InstanceType<typeof Textarea>;
|
|
5
|
+
export { Textarea, Textarea as default };
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import type { WithInstall } from '../../utils';
|
|
2
|
+
export interface InputTarget extends HTMLInputElement {
|
|
3
|
+
composing: boolean;
|
|
4
|
+
}
|
|
5
|
+
export type TextareaProps = Partial<{
|
|
6
|
+
modelValue: string;
|
|
7
|
+
textAlign: 'left' | 'center' | 'right';
|
|
8
|
+
limitShow: boolean;
|
|
9
|
+
maxLength: string | number;
|
|
10
|
+
rows: string | number;
|
|
11
|
+
placeholder: string;
|
|
12
|
+
readonly: boolean;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
autosize: boolean | Record<string, number>;
|
|
15
|
+
autofocus: boolean;
|
|
16
|
+
}>;
|
|
17
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
18
|
+
modelValue: string;
|
|
19
|
+
textAlign: "center" | "left" | "right";
|
|
20
|
+
limitShow: boolean;
|
|
21
|
+
maxLength: string | number;
|
|
22
|
+
rows: string | number;
|
|
23
|
+
placeholder: string;
|
|
24
|
+
readonly: boolean;
|
|
25
|
+
disabled: boolean;
|
|
26
|
+
autosize: boolean | Record<string, number>;
|
|
27
|
+
autofocus: boolean;
|
|
28
|
+
}>>, {
|
|
29
|
+
modelValue: string;
|
|
30
|
+
limitShow: boolean;
|
|
31
|
+
maxLength: string;
|
|
32
|
+
rows: string;
|
|
33
|
+
placeholder: string;
|
|
34
|
+
readonly: boolean;
|
|
35
|
+
disabled: boolean;
|
|
36
|
+
autosize: boolean;
|
|
37
|
+
autofocus: boolean;
|
|
38
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
39
|
+
blur: (...args: any[]) => void;
|
|
40
|
+
change: (...args: any[]) => void;
|
|
41
|
+
focus: (...args: any[]) => void;
|
|
42
|
+
"update:modelValue": (...args: any[]) => void;
|
|
43
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
44
|
+
modelValue: string;
|
|
45
|
+
textAlign: "center" | "left" | "right";
|
|
46
|
+
limitShow: boolean;
|
|
47
|
+
maxLength: string | number;
|
|
48
|
+
rows: string | number;
|
|
49
|
+
placeholder: string;
|
|
50
|
+
readonly: boolean;
|
|
51
|
+
disabled: boolean;
|
|
52
|
+
autosize: boolean | Record<string, number>;
|
|
53
|
+
autofocus: boolean;
|
|
54
|
+
}>>, {
|
|
55
|
+
modelValue: string;
|
|
56
|
+
limitShow: boolean;
|
|
57
|
+
maxLength: string;
|
|
58
|
+
rows: string;
|
|
59
|
+
placeholder: string;
|
|
60
|
+
readonly: boolean;
|
|
61
|
+
disabled: boolean;
|
|
62
|
+
autosize: boolean;
|
|
63
|
+
autofocus: boolean;
|
|
64
|
+
}>>> & {
|
|
65
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
66
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
67
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
68
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
69
|
+
}, {
|
|
70
|
+
disabled: boolean;
|
|
71
|
+
placeholder: string;
|
|
72
|
+
modelValue: string;
|
|
73
|
+
maxLength: string | number;
|
|
74
|
+
autofocus: boolean;
|
|
75
|
+
readonly: boolean;
|
|
76
|
+
limitShow: boolean;
|
|
77
|
+
rows: string | number;
|
|
78
|
+
autosize: boolean | Record<string, number>;
|
|
79
|
+
}, {}>;
|
|
80
|
+
declare const _nut_default: WithInstall<typeof _default>;
|
|
81
|
+
export default _nut_default;
|
|
82
|
+
|
|
83
|
+
declare module 'vue' {
|
|
84
|
+
interface GlobalComponents {
|
|
85
|
+
NutTextarea: typeof _default;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
89
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
90
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
91
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
92
|
+
} : {
|
|
93
|
+
type: import('vue').PropType<T[K]>;
|
|
94
|
+
required: true;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
type __VLS_WithDefaults<P, D> = {
|
|
98
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
99
|
+
default: D[K];
|
|
100
|
+
}> : P[K];
|
|
101
|
+
};
|
|
102
|
+
type __VLS_Prettify<T> = {
|
|
103
|
+
[K in keyof T]: T[K];
|
|
104
|
+
} & {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import TrendArrow from './trend-arrow.vue';
|
|
2
|
+
import type { ComponentPublicInstance } from 'vue';
|
|
3
|
+
export type { TrendArrowProps } from './trend-arrow.vue';
|
|
4
|
+
export type TrendArrowInstance = ComponentPublicInstance & InstanceType<typeof TrendArrow>;
|
|
5
|
+
export { TrendArrow, TrendArrow as default };
|