sard-uniapp 1.8.1 → 1.9.0
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 -14
- package/changelog.md +20 -2
- package/components/_template/_template.d.ts +7 -22
- package/components/accordion/accordion.d.ts +6 -21
- package/components/accordion-item/accordion-item.d.ts +6 -21
- package/components/action-sheet/action-sheet.d.ts +10 -33
- package/components/alert/alert.d.ts +8 -27
- package/components/alert/common.d.ts +1 -1
- package/components/alert/index.scss +6 -2
- package/components/avatar/avatar.d.ts +4 -23
- package/components/avatar/common.d.ts +1 -1
- package/components/back-top/back-top.d.ts +7 -28
- package/components/back-top/usePageBackTop.d.ts +1 -1
- package/components/back-top/useScrollViewBackTop.d.ts +1 -1
- package/components/badge/badge.d.ts +5 -26
- package/components/button/button.d.ts +13 -66
- package/components/button/common.d.ts +3 -3
- package/components/button/index.scss +3 -2
- package/components/calendar/calendar.d.ts +5 -30
- package/components/calendar/common.d.ts +1 -1
- package/components/calendar-input/calendar-input.d.ts +6 -35
- package/components/calendar-input/common.d.ts +1 -1
- package/components/calendar-month/calendar-month.d.ts +4 -21
- package/components/card/card.d.ts +6 -21
- package/components/cascader/cascader.d.ts +8 -27
- package/components/cascader-input/cascader-input.d.ts +9 -30
- package/components/check-icon/check-icon.d.ts +3 -26
- package/components/checkbox/checkbox.d.ts +10 -29
- package/components/checkbox/common.d.ts +1 -1
- package/components/checkbox-group/checkbox-group.d.ts +11 -32
- package/components/checkbox-input/checkbox-input.d.ts +6 -29
- package/components/col/col.d.ts +3 -18
- package/components/collapse/collapse.d.ts +3 -18
- package/components/config/index.d.ts +91 -52
- package/components/config/index.js +4 -0
- package/components/count-down/count-down.d.ts +9 -32
- package/components/count-to/count-to.d.ts +2 -29
- package/components/datetime-picker/datetime-picker.d.ts +5 -26
- package/components/datetime-picker-input/datetime-picker-input.d.ts +6 -29
- package/components/dialog/common.d.ts +1 -1
- package/components/dialog/dialog.d.ts +15 -44
- package/components/dialog-agent/common.d.ts +1 -1
- package/components/dialog-agent/dialog-agent.d.ts +3 -36
- package/components/dropdown/common.d.ts +1 -1
- package/components/dropdown/dropdown.d.ts +4 -31
- package/components/dropdown-item/dropdown-item.d.ts +8 -27
- package/components/empty/empty.d.ts +4 -23
- package/components/fab/fab.d.ts +6 -33
- package/components/fab/fab.vue +2 -2
- package/components/floating-bubble/common.d.ts +1 -1
- package/components/floating-bubble/floating-bubble.d.ts +9 -32
- package/components/form/Validator.d.ts +3 -3
- package/components/form/common.d.ts +2 -10
- package/components/form/form.d.ts +9 -42
- package/components/form-item/form-item.d.ts +6 -27
- package/components/grid/common.d.ts +1 -1
- package/components/grid/grid.d.ts +5 -26
- package/components/grid-item/grid-item.d.ts +6 -21
- package/components/icon/icon.d.ts +2 -25
- package/components/indexes/indexes.d.ts +7 -22
- package/components/indexes-anchor/indexes-anchor.d.ts +3 -18
- package/components/indexes-nav/indexes-nav.d.ts +6 -21
- package/components/input/common.d.ts +2 -2
- package/components/input/input.d.ts +17 -60
- package/components/keyboard/common.d.ts +1 -1
- package/components/keyboard/keyboard.d.ts +9 -28
- package/components/list/common.d.ts +1 -1
- package/components/list/list.d.ts +3 -18
- package/components/list-item/list-item.d.ts +8 -27
- package/components/load-more/load-more.d.ts +8 -27
- package/components/loading/common.d.ts +1 -1
- package/components/loading/loading.d.ts +5 -28
- package/components/locale/index.d.ts +1 -1
- package/components/marquee/common.d.ts +1 -1
- package/components/marquee/marquee.d.ts +5 -28
- package/components/menu/menu.d.ts +5 -26
- package/components/menu-item/menu-item.d.ts +4 -21
- package/components/navbar/navbar.d.ts +3 -18
- package/components/navbar-item/navbar-item.d.ts +6 -21
- package/components/notice-bar/common.d.ts +1 -1
- package/components/notice-bar/notice-bar.d.ts +9 -34
- package/components/notify/common.d.ts +2 -2
- package/components/notify/notify.d.ts +8 -35
- package/components/notify-agent/common.d.ts +2 -2
- package/components/notify-agent/notify-agent.d.ts +3 -32
- package/components/overlay/overlay.d.ts +7 -26
- package/components/pagination/common.d.ts +1 -1
- package/components/pagination/pagination.d.ts +8 -37
- package/components/password-input/common.d.ts +1 -1
- package/components/password-input/password-input.d.ts +6 -31
- package/components/picker/picker.d.ts +5 -28
- package/components/picker-input/picker-input.d.ts +6 -31
- package/components/popout/common.d.ts +1 -1
- package/components/popout/popout.d.ts +15 -44
- package/components/popout-input/popout-input.d.ts +6 -23
- package/components/popout-input/popout-input.vue +1 -1
- package/components/popover/common.d.ts +3 -3
- package/components/popover/popover.d.ts +9 -40
- package/components/popover-reference/popover-reference.d.ts +6 -21
- package/components/popup/common.d.ts +1 -1
- package/components/popup/popup.d.ts +11 -50
- package/components/progress-bar/progress-bar.d.ts +4 -25
- package/components/progress-circle/progress-circle.d.ts +4 -25
- package/components/pull-down-refresh/pull-down-refresh.d.ts +10 -39
- package/components/qrcode/common.d.ts +2 -2
- package/components/qrcode/qrcode.d.ts +3 -38
- package/components/radio/common.d.ts +1 -1
- package/components/radio/radio.d.ts +6 -21
- package/components/radio-group/radio-group.d.ts +9 -30
- package/components/radio-input/common.d.ts +1 -1
- package/components/radio-input/radio-input.d.ts +6 -31
- package/components/rate/rate.d.ts +5 -32
- package/components/result/common.d.ts +1 -1
- package/components/result/result.d.ts +5 -24
- package/components/row/row.d.ts +3 -18
- package/components/sard-uniapp/sard-uniapp.d.ts +1 -1
- package/components/search/common.d.ts +1 -1
- package/components/search/search.d.ts +17 -38
- package/components/share-sheet/share-sheet.d.ts +10 -33
- package/components/skeleton/skeleton.d.ts +4 -25
- package/components/skeleton-avatar/skeleton-avatar.d.ts +1 -18
- package/components/skeleton-block/skeleton-block.d.ts +1 -18
- package/components/skeleton-paragraph/skeleton-paragraph.d.ts +1 -18
- package/components/skeleton-title/skeleton-title.d.ts +1 -18
- package/components/slider/slider.d.ts +10 -35
- package/components/stepper/common.d.ts +2 -2
- package/components/stepper/stepper.d.ts +9 -46
- package/components/steps/common.d.ts +1 -1
- package/components/steps/steps.d.ts +2 -35
- package/components/style/functions.scss +22 -0
- package/components/style/mixins/bem.scss +3 -2
- package/components/style/mixins/border.scss +5 -3
- package/components/style/variables.scss +6 -6
- package/components/swiper-dot/common.d.ts +1 -1
- package/components/swiper-dot/swiper-dot.d.ts +3 -30
- package/components/switch/switch.d.ts +7 -32
- package/components/tab/tab.d.ts +6 -21
- package/components/tabbar/tabbar.d.ts +7 -26
- package/components/tabbar-item/tabbar-item.d.ts +6 -21
- package/components/table/common.d.ts +52 -0
- package/components/table/common.js +3 -0
- package/components/table/index.d.ts +1 -0
- package/components/table/index.js +1 -0
- package/components/table/index.scss +10 -0
- package/components/table/table.d.ts +13 -0
- package/components/table/table.vue +101 -0
- package/components/table/variables-dark.scss +8 -0
- package/components/table/variables.scss +12 -0
- package/components/table-cell/index.scss +90 -0
- package/components/table-cell/table-cell.d.ts +10 -0
- package/components/table-cell/table-cell.vue +57 -0
- package/components/table-fixation/index.scss +21 -0
- package/components/table-fixation/table-fixation.d.ts +14 -0
- package/components/table-fixation/table-fixation.vue +112 -0
- package/components/table-row/index.scss +15 -0
- package/components/table-row/table-row.d.ts +10 -0
- package/components/table-row/table-row.vue +46 -0
- package/components/tabs/common.d.ts +1 -1
- package/components/tabs/tabs.d.ts +7 -26
- package/components/tag/common.d.ts +2 -2
- package/components/tag/index.scss +2 -1
- package/components/tag/tag.d.ts +9 -30
- package/components/timeline/timeline.d.ts +3 -18
- package/components/timeline-item/timeline-item.d.ts +3 -18
- package/components/toast/common.d.ts +2 -2
- package/components/toast/toast.d.ts +8 -37
- package/components/toast-agent/common.d.ts +2 -2
- package/components/toast-agent/toast-agent.d.ts +4 -35
- package/components/tree/common.d.ts +1 -1
- package/components/tree/tree.d.ts +3 -30
- package/components/tree-branch/tree-branch.d.ts +1 -18
- package/components/tree-node/tree-node.d.ts +1 -18
- package/components/upload/common.d.ts +3 -11
- package/components/upload/upload.d.ts +9 -42
- package/components/upload/upload.vue +0 -1
- package/components/upload-preview/upload-preview.d.ts +6 -27
- package/components/upload-preview/upload-preview.vue +0 -1
- package/dark.scss +1 -0
- package/global.d.ts +3 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/index.scss +1 -0
- package/package.json +118 -17
- package/use/useLuckyGrid.d.ts +1 -1
- package/use/useLuckyWheel.d.ts +1 -1
- package/use/useTransition.d.ts +2 -2
- package/use/useZIndex.d.ts +1 -1
- package/utils/bem.d.ts +1 -1
- package/utils/dom.js +1 -1
- package/utils/utils.js +0 -1
|
@@ -1,56 +1,23 @@
|
|
|
1
1
|
import { type UploadProps, type UploadSlots, type UploadFile, type UploadFileItem } from './common';
|
|
2
|
-
declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
maxCount: number;
|
|
8
|
-
maxSize: number;
|
|
9
|
-
removable: boolean;
|
|
10
|
-
validateEvent: boolean;
|
|
11
|
-
}, "sourceType" | "sizeType">>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
-
"update:model-value": (value: UploadFileItem[]) => void;
|
|
13
|
-
remove: (index: number, item: UploadFileItem) => void;
|
|
14
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<UploadProps>, Omit<{
|
|
15
|
-
accept: "video" | "image" | undefined;
|
|
16
|
-
sourceType: () => ("album" | "camera")[] | undefined;
|
|
17
|
-
sizeType: () => ("original" | "compressed")[] | undefined;
|
|
18
|
-
maxDuration: number;
|
|
19
|
-
maxCount: number;
|
|
20
|
-
maxSize: number;
|
|
21
|
-
removable: boolean;
|
|
22
|
-
validateEvent: boolean;
|
|
23
|
-
}, "sourceType" | "sizeType">>>> & {
|
|
2
|
+
declare function __VLS_template(): Readonly<UploadSlots> & UploadSlots;
|
|
3
|
+
declare const __VLS_component: import("vue").DefineComponent<UploadProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
4
|
+
"update:model-value": (value: UploadFileItem[]) => any;
|
|
5
|
+
remove: (index: number, item: UploadFileItem) => any;
|
|
6
|
+
}, string, import("vue").PublicProps, Readonly<UploadProps> & Readonly<{
|
|
24
7
|
"onUpdate:model-value"?: ((value: UploadFileItem[]) => any) | undefined;
|
|
25
8
|
onRemove?: ((index: number, item: UploadFileItem) => any) | undefined;
|
|
26
|
-
}
|
|
27
|
-
accept: "
|
|
9
|
+
}>, {
|
|
10
|
+
accept: "image" | "video";
|
|
28
11
|
maxDuration: number;
|
|
29
12
|
maxCount: number;
|
|
30
13
|
maxSize: number | ((file: UploadFile) => boolean);
|
|
31
14
|
removable: boolean;
|
|
32
15
|
validateEvent: boolean;
|
|
33
|
-
}, {}
|
|
16
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
34
18
|
export default _default;
|
|
35
|
-
type __VLS_WithDefaults<P, D> = {
|
|
36
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
37
|
-
default: D[K];
|
|
38
|
-
}> : P[K];
|
|
39
|
-
};
|
|
40
|
-
type __VLS_Prettify<T> = {
|
|
41
|
-
[K in keyof T]: T[K];
|
|
42
|
-
} & {};
|
|
43
19
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
44
20
|
new (): {
|
|
45
21
|
$slots: S;
|
|
46
22
|
};
|
|
47
23
|
};
|
|
48
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
49
|
-
type __VLS_TypePropsToOption<T> = {
|
|
50
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
51
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
52
|
-
} : {
|
|
53
|
-
type: import('vue').PropType<T[K]>;
|
|
54
|
-
required: true;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
@@ -1,32 +1,11 @@
|
|
|
1
1
|
import { type UploadPreviewProps } from '../upload/common';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
remove: (index: number) => void;
|
|
7
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<UploadPreviewProps>, {
|
|
8
|
-
status: import("../upload/common").UploadStatus | undefined;
|
|
9
|
-
}>>> & {
|
|
2
|
+
declare const _default: import("vue").DefineComponent<UploadPreviewProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
3
|
+
remove: (index: number) => any;
|
|
4
|
+
"image-click": (index: number) => any;
|
|
5
|
+
}, string, import("vue").PublicProps, Readonly<UploadPreviewProps> & Readonly<{
|
|
10
6
|
onRemove?: ((index: number) => any) | undefined;
|
|
11
7
|
"onImage-click"?: ((index: number) => any) | undefined;
|
|
12
|
-
}
|
|
8
|
+
}>, {
|
|
13
9
|
status: import("../upload/common").UploadStatus;
|
|
14
|
-
}, {}>;
|
|
10
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
11
|
export default _default;
|
|
16
|
-
type __VLS_WithDefaults<P, D> = {
|
|
17
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
18
|
-
default: D[K];
|
|
19
|
-
}> : P[K];
|
|
20
|
-
};
|
|
21
|
-
type __VLS_Prettify<T> = {
|
|
22
|
-
[K in keyof T]: T[K];
|
|
23
|
-
} & {};
|
|
24
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
25
|
-
type __VLS_TypePropsToOption<T> = {
|
|
26
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
27
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
28
|
-
} : {
|
|
29
|
-
type: import('vue').PropType<T[K]>;
|
|
30
|
-
required: true;
|
|
31
|
-
};
|
|
32
|
-
};
|
package/dark.scss
CHANGED
package/global.d.ts
CHANGED
|
@@ -84,6 +84,9 @@ declare module 'vue' {
|
|
|
84
84
|
SarTab: typeof import('./components/tab/tab').default
|
|
85
85
|
SarTabbar: typeof import('./components/tabbar/tabbar').default
|
|
86
86
|
SarTabbarItem: typeof import('./components/tabbar-item/tabbar-item').default
|
|
87
|
+
SarTable: typeof import('./components/table/table').default
|
|
88
|
+
SarTableRow: typeof import('./components/table-row/table-row').default
|
|
89
|
+
SarTableCell: typeof import('./components/table-cell/table-cell').default
|
|
87
90
|
SarTabs: typeof import('./components/tabs/tabs').default
|
|
88
91
|
SarTag: typeof import('./components/tag/tag').default
|
|
89
92
|
SarTimeline: typeof import('./components/timeline/timeline').default
|
package/index.d.ts
CHANGED
|
@@ -68,6 +68,7 @@ export * from './components/steps';
|
|
|
68
68
|
export * from './components/swiper-dot';
|
|
69
69
|
export * from './components/switch';
|
|
70
70
|
export * from './components/tabbar';
|
|
71
|
+
export * from './components/table';
|
|
71
72
|
export * from './components/tabs';
|
|
72
73
|
export * from './components/tag';
|
|
73
74
|
export * from './components/timeline';
|
package/index.js
CHANGED
|
@@ -68,6 +68,7 @@ export * from './components/steps';
|
|
|
68
68
|
export * from './components/swiper-dot';
|
|
69
69
|
export * from './components/switch';
|
|
70
70
|
export * from './components/tabbar';
|
|
71
|
+
export * from './components/table';
|
|
71
72
|
export * from './components/tabs';
|
|
72
73
|
export * from './components/tag';
|
|
73
74
|
export * from './components/timeline';
|
package/index.scss
CHANGED
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
@use './components/swiper-dot/variables.scss' as *;
|
|
60
60
|
@use './components/switch/variables.scss' as *;
|
|
61
61
|
@use './components/tabbar/variables.scss' as *;
|
|
62
|
+
@use './components/table/variables.scss' as *;
|
|
62
63
|
@use './components/tabs/variables.scss' as *;
|
|
63
64
|
@use './components/tag/variables.scss' as *;
|
|
64
65
|
@use './components/timeline/variables.scss' as *;
|
package/package.json
CHANGED
|
@@ -1,19 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "sard-uniapp",
|
|
3
3
|
"name": "sard-uniapp",
|
|
4
|
-
"
|
|
5
|
-
"version": "1.8.1",
|
|
6
|
-
"type": "module",
|
|
4
|
+
"version": "1.9.0",
|
|
7
5
|
"description": "sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库",
|
|
8
|
-
"keywords": [
|
|
9
|
-
"uniapp",
|
|
10
|
-
"UI",
|
|
11
|
-
"vue3",
|
|
12
|
-
"typescript"
|
|
13
|
-
],
|
|
14
|
-
"files": [
|
|
15
|
-
"*"
|
|
16
|
-
],
|
|
17
6
|
"main": "index.js",
|
|
18
7
|
"scripts": {
|
|
19
8
|
"dev": "sard dev",
|
|
@@ -22,24 +11,136 @@
|
|
|
22
11
|
"build": "sard build",
|
|
23
12
|
"deploy": "sard deploy",
|
|
24
13
|
"release": "sard release",
|
|
25
|
-
"test": "vitest"
|
|
14
|
+
"test": "vitest",
|
|
15
|
+
"buildAndRelease": "npm run build && npm run release",
|
|
16
|
+
"push": "git push origin && git push gitee && git push origin --tags && git push gitee --tags",
|
|
17
|
+
"prepare": "husky install",
|
|
18
|
+
"newComponent": "tsx ./scripts/new-component.ts",
|
|
19
|
+
"eslint": "eslint",
|
|
20
|
+
"prettier": "prettier . --write",
|
|
21
|
+
"prettier:check": "prettier . --check",
|
|
22
|
+
"commit": "commit",
|
|
23
|
+
"dev:app": "uni -p app",
|
|
24
|
+
"dev:app-android": "uni -p app-android",
|
|
25
|
+
"dev:app-ios": "uni -p app-ios",
|
|
26
|
+
"dev:custom": "uni -p",
|
|
27
|
+
"dev:h5": "uni",
|
|
28
|
+
"dev:h5:ssr": "uni --ssr",
|
|
29
|
+
"dev:mp-alipay": "uni -p mp-alipay",
|
|
30
|
+
"dev:mp-baidu": "uni -p mp-baidu",
|
|
31
|
+
"dev:mp-jd": "uni -p mp-jd",
|
|
32
|
+
"dev:mp-kuaishou": "uni -p mp-kuaishou",
|
|
33
|
+
"dev:mp-lark": "uni -p mp-lark",
|
|
34
|
+
"dev:mp-qq": "uni -p mp-qq",
|
|
35
|
+
"dev:mp-toutiao": "uni -p mp-toutiao",
|
|
36
|
+
"dev:mp-weixin": "uni -p mp-weixin",
|
|
37
|
+
"dev:mp-xhs": "uni -p mp-xhs",
|
|
38
|
+
"dev:quickapp-webview": "uni -p quickapp-webview",
|
|
39
|
+
"dev:quickapp-webview-huawei": "uni -p quickapp-webview-huawei",
|
|
40
|
+
"dev:quickapp-webview-union": "uni -p quickapp-webview-union",
|
|
41
|
+
"build:app": "uni build -p app",
|
|
42
|
+
"build:app-android": "uni build -p app-android",
|
|
43
|
+
"build:app-ios": "uni build -p app-ios",
|
|
44
|
+
"build:custom": "uni build -p",
|
|
45
|
+
"build:h5": "uni build",
|
|
46
|
+
"build:h5:ssr": "uni build --ssr",
|
|
47
|
+
"build:mp-alipay": "uni build -p mp-alipay",
|
|
48
|
+
"build:mp-baidu": "uni build -p mp-baidu",
|
|
49
|
+
"build:mp-jd": "uni build -p mp-jd",
|
|
50
|
+
"build:mp-kuaishou": "uni build -p mp-kuaishou",
|
|
51
|
+
"build:mp-lark": "uni build -p mp-lark",
|
|
52
|
+
"build:mp-qq": "uni build -p mp-qq",
|
|
53
|
+
"build:mp-toutiao": "uni build -p mp-toutiao",
|
|
54
|
+
"build:mp-weixin": "uni build -p mp-weixin",
|
|
55
|
+
"build:mp-xhs": "uni build -p mp-xhs",
|
|
56
|
+
"build:quickapp-webview": "uni build -p quickapp-webview",
|
|
57
|
+
"build:quickapp-webview-huawei": "uni build -p quickapp-webview-huawei",
|
|
58
|
+
"build:quickapp-webview-union": "uni build -p quickapp-webview-union"
|
|
59
|
+
},
|
|
60
|
+
"lint-staged": {
|
|
61
|
+
"**/*.{ts,tsx,js,jsx,mjs,cjs,vue}": "eslint --fix",
|
|
62
|
+
"**/*.{ts,tsx,js,jsx,mjs,cjs,vue,scss,css,less,md}": "prettier --write"
|
|
26
63
|
},
|
|
27
64
|
"peerDependencies": {
|
|
28
65
|
"@dcloudio/types": "^3.4.8",
|
|
29
66
|
"vue": "^3.4.27"
|
|
30
67
|
},
|
|
31
68
|
"devDependencies": {
|
|
32
|
-
"@
|
|
33
|
-
"@
|
|
69
|
+
"@commitlint/cli": "^17.8.1",
|
|
70
|
+
"@commitlint/config-conventional": "^17.8.1",
|
|
71
|
+
"@commitlint/prompt-cli": "^17.8.1",
|
|
72
|
+
"@dcloudio/types": "^3.4.14",
|
|
73
|
+
"@dcloudio/uni-app": "3.0.0-alpha-4030120241021001",
|
|
74
|
+
"@dcloudio/uni-app-plus": "3.0.0-alpha-4030120241021001",
|
|
75
|
+
"@dcloudio/uni-automator": "3.0.0-alpha-4030120241021001",
|
|
76
|
+
"@dcloudio/uni-cli-shared": "3.0.0-alpha-4030120241021001",
|
|
77
|
+
"@dcloudio/uni-components": "3.0.0-alpha-4030120241021001",
|
|
78
|
+
"@dcloudio/uni-h5": "3.0.0-alpha-4030120241021001",
|
|
79
|
+
"@dcloudio/uni-mp-alipay": "3.0.0-alpha-4030120241021001",
|
|
80
|
+
"@dcloudio/uni-mp-baidu": "3.0.0-alpha-4030120241021001",
|
|
81
|
+
"@dcloudio/uni-mp-jd": "3.0.0-alpha-4030120241021001",
|
|
82
|
+
"@dcloudio/uni-mp-kuaishou": "3.0.0-alpha-4030120241021001",
|
|
83
|
+
"@dcloudio/uni-mp-lark": "3.0.0-alpha-4030120241021001",
|
|
84
|
+
"@dcloudio/uni-mp-qq": "3.0.0-alpha-4030120241021001",
|
|
85
|
+
"@dcloudio/uni-mp-toutiao": "3.0.0-alpha-4030120241021001",
|
|
86
|
+
"@dcloudio/uni-mp-weixin": "3.0.0-alpha-4030120241021001",
|
|
87
|
+
"@dcloudio/uni-mp-xhs": "3.0.0-alpha-4030120241021001",
|
|
88
|
+
"@dcloudio/uni-quickapp-webview": "3.0.0-alpha-4030120241021001",
|
|
89
|
+
"@dcloudio/uni-stacktracey": "3.0.0-alpha-4030120241021001",
|
|
90
|
+
"@dcloudio/vite-plugin-uni": "3.0.0-alpha-4030120241021001",
|
|
91
|
+
"@esbuild/darwin-x64": "^0.21.5",
|
|
92
|
+
"@gunny/perf-test": "^0.1.3",
|
|
93
|
+
"@rollup/rollup-darwin-x64": "^4.24.0",
|
|
94
|
+
"@types/inquirer": "^9.0.7",
|
|
95
|
+
"@types/lodash-es": "^4.17.12",
|
|
96
|
+
"@types/node": "^22.10.1",
|
|
97
|
+
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
98
|
+
"@typescript-eslint/parser": "^5.62.0",
|
|
99
|
+
"@vitejs/plugin-vue": "^4.6.2",
|
|
34
100
|
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
|
101
|
+
"@vue/runtime-core": "^3.5.12",
|
|
35
102
|
"@vue/test-utils": "^2.4.6",
|
|
36
103
|
"canvas": "^2.11.2",
|
|
37
|
-
"
|
|
38
|
-
"
|
|
104
|
+
"consola": "^3.2.3",
|
|
105
|
+
"conventional-changelog-cli": "^4.1.0",
|
|
106
|
+
"eslint": "^9.16.0",
|
|
107
|
+
"eslint-config-prettier": "^8.10.0",
|
|
108
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
109
|
+
"eslint-plugin-vue": "^9.32.0",
|
|
110
|
+
"glob": "^11.0.0",
|
|
111
|
+
"globals": "^15.13.0",
|
|
112
|
+
"husky": "^9.1.7",
|
|
113
|
+
"inquirer": "^9.3.7",
|
|
114
|
+
"lint-staged": "^13.3.0",
|
|
115
|
+
"lodash-es": "^4.17.21",
|
|
116
|
+
"prettier": "^2.8.8",
|
|
117
|
+
"region-data": "^1.2.3",
|
|
118
|
+
"sard-cli": "^1.0.3",
|
|
119
|
+
"sass": "^1.43.4",
|
|
120
|
+
"tel-area-code": "^1.0.1",
|
|
121
|
+
"ts-custom-error": "^3.3.1",
|
|
122
|
+
"tsx": "^4.19.2",
|
|
123
|
+
"typescript": "~5.6.2",
|
|
124
|
+
"typescript-eslint": "^8.17.0",
|
|
125
|
+
"vite": "5.4.11",
|
|
126
|
+
"vite-plugin-eslint": "^1.8.1",
|
|
127
|
+
"vitest": "^1.6.0",
|
|
128
|
+
"vue": "^3.5.12",
|
|
129
|
+
"vue-i18n": "^9.14.1",
|
|
130
|
+
"vue-tsc": "^2.0.29"
|
|
39
131
|
},
|
|
40
132
|
"author": "wuzhitao",
|
|
41
133
|
"license": "MIT",
|
|
42
134
|
"repository": "https://github.com/sutras/sard-uniapp",
|
|
135
|
+
"keywords": [
|
|
136
|
+
"uniapp",
|
|
137
|
+
"UI",
|
|
138
|
+
"vue3",
|
|
139
|
+
"typescript"
|
|
140
|
+
],
|
|
141
|
+
"files": [
|
|
142
|
+
"*"
|
|
143
|
+
],
|
|
43
144
|
"dcloudext": {
|
|
44
145
|
"type": "component-vue",
|
|
45
146
|
"category": [
|
package/use/useLuckyGrid.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export declare function useLuckyGrid(options?: UseLuckyGridOptions): {
|
|
|
18
18
|
column: number;
|
|
19
19
|
}>;
|
|
20
20
|
play: () => void;
|
|
21
|
-
stop: (index?: number
|
|
21
|
+
stop: (index?: number) => void;
|
|
22
22
|
pause: () => void;
|
|
23
23
|
reset: () => void;
|
|
24
24
|
playing: import("vue").ComputedRef<boolean>;
|
package/use/useLuckyWheel.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare function useLuckyWheel(options?: UseLuckyWheelOptions): {
|
|
|
7
7
|
degrees: import("vue").ComputedRef<number>;
|
|
8
8
|
sectorDegrees: import("vue").ComputedRef<number>;
|
|
9
9
|
play: () => void;
|
|
10
|
-
stop: (index?: number
|
|
10
|
+
stop: (index?: number) => void;
|
|
11
11
|
pause: () => void;
|
|
12
12
|
reset: () => void;
|
|
13
13
|
playing: import("vue").ComputedRef<boolean>;
|
package/use/useTransition.d.ts
CHANGED
|
@@ -13,6 +13,6 @@ export interface UseTransitionOptions {
|
|
|
13
13
|
}
|
|
14
14
|
export declare function useTransition(options?: UseTransitionOptions): {
|
|
15
15
|
onTransitionEnd: () => void;
|
|
16
|
-
realVisible: import("vue").Ref<boolean>;
|
|
17
|
-
transitionClass: import("vue").Ref<string>;
|
|
16
|
+
realVisible: import("vue").Ref<boolean, boolean>;
|
|
17
|
+
transitionClass: import("vue").Ref<string, string>;
|
|
18
18
|
};
|
package/use/useZIndex.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function useZIndex(): readonly [import("vue").Ref<number>, () => void];
|
|
1
|
+
export declare function useZIndex(): readonly [import("vue").Ref<number, number>, () => void];
|
package/utils/bem.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export interface BemConfig {
|
|
|
4
4
|
elementSeparator: string;
|
|
5
5
|
modifierSeparator: string;
|
|
6
6
|
}
|
|
7
|
-
type IsType = boolean | number | string | null;
|
|
7
|
+
type IsType = boolean | number | string | null | undefined | object;
|
|
8
8
|
export declare function createBemStruct(config: BemConfig): (block: string | number) => {
|
|
9
9
|
b(): string;
|
|
10
10
|
e(element: string | number | undefined, is?: IsType): string;
|
package/utils/dom.js
CHANGED
package/utils/utils.js
CHANGED
|
@@ -617,7 +617,6 @@ export function classNames(...args) {
|
|
|
617
617
|
}
|
|
618
618
|
return result;
|
|
619
619
|
}
|
|
620
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
621
620
|
export const noop = () => { };
|
|
622
621
|
// 将嵌套数据结构转换为多维数组
|
|
623
622
|
export function nestedToMulti(nested, values, fieldKeys) {
|