sard-uniapp 1.1.2 → 1.1.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/README.md +4 -4
- package/changelog.md +65 -31
- package/components/_template/_template.d.ts +29 -0
- package/components/_template/_template.vue +12 -11
- package/components/_template/common.d.ts +2 -6
- package/components/_template/common.js +1 -4
- package/components/accordion/accordion.d.ts +30 -0
- package/components/accordion/accordion.vue +15 -12
- package/components/accordion/common.d.ts +3 -17
- package/components/accordion/common.js +0 -14
- package/components/accordion-item/accordion-item.d.ts +29 -0
- package/components/accordion-item/accordion-item.vue +17 -12
- package/components/action-sheet/action-sheet.d.ts +39 -0
- package/components/action-sheet/action-sheet.vue +23 -12
- package/components/action-sheet/common.d.ts +4 -17
- package/components/action-sheet/common.js +1 -17
- package/components/avatar/avatar.d.ts +31 -0
- package/components/avatar/avatar.vue +22 -12
- package/components/avatar/common.d.ts +5 -15
- package/components/avatar/common.js +1 -13
- package/components/badge/badge.d.ts +34 -0
- package/components/badge/badge.vue +24 -15
- package/components/badge/common.d.ts +6 -19
- package/components/badge/common.js +1 -17
- package/components/button/button.d.ts +41 -0
- package/components/button/button.vue +25 -12
- package/components/button/common.d.ts +6 -23
- package/components/button/common.js +1 -22
- package/components/calendar/calendar.d.ts +36 -0
- package/components/calendar/calendar.vue +29 -15
- package/components/calendar/common.d.ts +5 -76
- package/components/calendar/common.js +1 -75
- package/components/calendar-input/calendar-input.d.ts +45 -0
- package/components/calendar-input/calendar-input.vue +37 -13
- package/components/calendar-input/common.d.ts +6 -39
- package/components/calendar-input/common.js +3 -22
- package/components/calendar-month/calendar-month.d.ts +24 -0
- package/components/calendar-month/calendar-month.vue +23 -11
- package/components/card/card.d.ts +29 -0
- package/components/card/card.vue +18 -14
- package/components/card/common.d.ts +5 -12
- package/components/card/common.js +1 -7
- package/components/cascader/cascader.d.ts +37 -0
- package/components/cascader/cascader.vue +19 -12
- package/components/cascader/common.d.ts +4 -13
- package/components/cascader/common.js +2 -14
- package/components/cascader-input/cascader-input.d.ts +43 -0
- package/components/cascader-input/cascader-input.vue +30 -12
- package/components/cascader-input/common.d.ts +4 -27
- package/components/cascader-input/common.js +1 -20
- package/components/checkbox/checkbox.d.ts +43 -0
- package/components/checkbox/checkbox.vue +23 -12
- package/components/checkbox/common.d.ts +12 -43
- package/components/checkbox/common.js +5 -43
- package/components/checkbox-group/checkbox-group.d.ts +40 -0
- package/components/checkbox-group/checkbox-group.vue +24 -14
- package/components/col/col.d.ts +25 -0
- package/components/col/col.vue +18 -11
- package/components/collapse/collapse.d.ts +25 -0
- package/components/collapse/collapse.vue +15 -11
- package/components/collapse/common.d.ts +2 -9
- package/components/collapse/common.js +1 -7
- package/components/config/index.d.ts +88 -86
- package/components/config/index.js +1 -0
- package/components/count-down/common.d.ts +5 -15
- package/components/count-down/common.js +1 -20
- package/components/count-down/count-down.d.ts +47 -0
- package/components/count-down/count-down.vue +16 -12
- package/components/datetime-picker/common.d.ts +4 -14
- package/components/datetime-picker/common.js +1 -16
- package/components/datetime-picker/datetime-picker.d.ts +30 -0
- package/components/datetime-picker/datetime-picker.vue +21 -13
- package/components/datetime-picker-input/common.d.ts +3 -24
- package/components/datetime-picker-input/common.js +3 -15
- package/components/datetime-picker-input/datetime-picker-input.d.ts +35 -0
- package/components/datetime-picker-input/datetime-picker-input.vue +31 -12
- package/components/dialog/common.d.ts +9 -35
- package/components/dialog/common.js +1 -41
- package/components/dialog/dialog.d.ts +56 -0
- package/components/dialog/dialog.vue +28 -12
- package/components/dialog-agent/common.d.ts +10 -39
- package/components/dialog-agent/common.js +17 -21
- package/components/dialog-agent/dialog-agent.d.ts +44 -0
- package/components/dialog-agent/dialog-agent.vue +41 -16
- package/components/dropdown/common.d.ts +11 -40
- package/components/dropdown/common.js +3 -47
- package/components/dropdown/dropdown.d.ts +43 -0
- package/components/dropdown/dropdown.vue +20 -13
- package/components/dropdown-item/dropdown-item.d.ts +37 -0
- package/components/dropdown-item/dropdown-item.vue +22 -12
- package/components/empty/common.d.ts +6 -14
- package/components/empty/common.js +1 -11
- package/components/empty/empty.d.ts +31 -0
- package/components/empty/empty.vue +18 -12
- package/components/form/common.d.ts +18 -75
- package/components/form/common.js +5 -88
- package/components/form/form.d.ts +56 -0
- package/components/form/form.vue +29 -12
- package/components/form-item/form-item.d.ts +44 -0
- package/components/form-item/form-item.vue +28 -12
- package/components/grid/common.d.ts +8 -30
- package/components/grid/common.js +1 -30
- package/components/grid/grid.d.ts +34 -0
- package/components/grid/grid.vue +24 -12
- package/components/grid-item/grid-item.d.ts +29 -0
- package/components/grid-item/grid-item.vue +20 -11
- package/components/icon/common.d.ts +4 -14
- package/components/icon/common.js +1 -18
- package/components/icon/icon.d.ts +29 -0
- package/components/icon/icon.vue +18 -12
- package/components/indexes/common.d.ts +4 -24
- package/components/indexes/common.js +0 -20
- package/components/indexes/indexes.d.ts +31 -0
- package/components/indexes/indexes.vue +14 -12
- package/components/indexes-anchor/indexes-anchor.d.ts +25 -0
- package/components/indexes-anchor/indexes-anchor.vue +14 -12
- package/components/indexes-nav/indexes-nav.d.ts +29 -0
- package/components/indexes-nav/indexes-nav.vue +14 -13
- package/components/input/common.d.ts +12 -70
- package/components/input/common.js +1 -70
- package/components/input/index.scss +1 -1
- package/components/input/input.d.ts +65 -0
- package/components/input/input.vue +64 -23
- package/components/keyboard/common.d.ts +4 -9
- package/components/keyboard/common.js +1 -11
- package/components/keyboard/keyboard.d.ts +40 -0
- package/components/keyboard/keyboard.vue +15 -12
- package/components/layout/common.d.ts +3 -17
- package/components/layout/common.js +0 -14
- package/components/list/common.d.ts +12 -34
- package/components/list/common.js +1 -28
- package/components/list/list.d.ts +25 -0
- package/components/list/list.vue +16 -11
- package/components/list-item/list-item.d.ts +35 -0
- package/components/list-item/list-item.vue +29 -15
- package/components/load-more/common.d.ts +7 -16
- package/components/load-more/common.js +2 -11
- package/components/load-more/load-more.d.ts +37 -0
- package/components/load-more/load-more.vue +21 -12
- package/components/loading/common.d.ts +7 -24
- package/components/loading/common.js +4 -26
- package/components/loading/loading.d.ts +37 -0
- package/components/loading/loading.vue +25 -12
- package/components/locale/lang/en-US.d.ts +100 -0
- package/components/locale/lang/en-US.js +100 -0
- package/components/menu/common.d.ts +3 -18
- package/components/menu/common.js +2 -20
- package/components/menu/menu.d.ts +30 -0
- package/components/menu/menu.vue +19 -12
- package/components/menu-item/menu-item.d.ts +24 -0
- package/components/menu-item/menu-item.vue +16 -11
- package/components/navbar/common.d.ts +6 -16
- package/components/navbar/common.js +1 -10
- package/components/navbar/navbar.d.ts +25 -0
- package/components/navbar/navbar.vue +17 -14
- package/components/navbar-item/navbar-item.d.ts +29 -0
- package/components/navbar-item/navbar-item.vue +12 -11
- package/components/notice-bar/common.d.ts +9 -30
- package/components/notice-bar/common.js +1 -33
- package/components/notice-bar/notice-bar.d.ts +46 -0
- package/components/notice-bar/notice-bar.vue +27 -12
- package/components/notify/common.d.ts +6 -24
- package/components/notify/common.js +1 -24
- package/components/notify/notify.d.ts +44 -0
- package/components/notify/notify.vue +24 -12
- package/components/notify-agent/common.d.ts +7 -28
- package/components/notify-agent/common.js +3 -10
- package/components/notify-agent/notify-agent.d.ts +38 -0
- package/components/notify-agent/notify-agent.vue +26 -12
- package/components/overlay/common.d.ts +4 -13
- package/components/overlay/common.js +1 -15
- package/components/overlay/overlay.d.ts +35 -0
- package/components/overlay/overlay.vue +21 -12
- package/components/pagination/common.d.ts +10 -33
- package/components/pagination/common.js +1 -39
- package/components/pagination/pagination.d.ts +50 -0
- package/components/pagination/pagination.vue +26 -12
- package/components/password-input/common.d.ts +5 -23
- package/components/password-input/common.js +1 -28
- package/components/password-input/password-input.d.ts +38 -0
- package/components/password-input/password-input.vue +26 -12
- package/components/picker/common.d.ts +4 -14
- package/components/picker/common.js +3 -17
- package/components/picker/picker.d.ts +33 -0
- package/components/picker/picker.vue +18 -12
- package/components/picker-input/common.d.ts +4 -24
- package/components/picker-input/common.js +4 -16
- package/components/picker-input/picker-input.d.ts +39 -0
- package/components/picker-input/picker-input.vue +28 -12
- package/components/popout/common.d.ts +14 -41
- package/components/popout/common.js +1 -42
- package/components/popout/popout.d.ts +59 -0
- package/components/popout/popout.vue +30 -19
- package/components/popout-input/common.d.ts +1 -11
- package/components/popout-input/common.js +1 -10
- package/components/popout-input/popout-input.d.ts +28 -0
- package/components/popout-input/popout-input.vue +19 -12
- package/components/popover/common.d.ts +17 -42
- package/components/popover/common.js +1 -47
- package/components/popover/popover.d.ts +56 -0
- package/components/popover/popover.vue +24 -12
- package/components/popover-reference/popover-reference.d.ts +29 -0
- package/components/popover-reference/popover-reference.vue +13 -12
- package/components/popup/common.d.ts +6 -22
- package/components/popup/common.js +2 -27
- package/components/popup/popup.d.ts +59 -0
- package/components/popup/popup.vue +26 -24
- package/components/progress-bar/common.d.ts +5 -20
- package/components/progress-bar/common.js +1 -23
- package/components/progress-bar/progress-bar.d.ts +34 -0
- package/components/progress-bar/progress-bar.vue +25 -12
- package/components/progress-circle/common.d.ts +5 -17
- package/components/progress-circle/common.js +1 -20
- package/components/progress-circle/progress-circle.d.ts +34 -0
- package/components/progress-circle/progress-circle.vue +22 -12
- package/components/pull-down-refresh/common.d.ts +25 -9
- package/components/pull-down-refresh/common.js +5 -8
- package/components/pull-down-refresh/pull-down-refresh.d.ts +60 -0
- package/components/pull-down-refresh/pull-down-refresh.vue +58 -41
- package/components/pull-down-refresh/{wx.wxs → touch.wxs} +1 -5
- package/components/radio/common.d.ts +11 -38
- package/components/radio/common.js +4 -42
- package/components/radio/radio.d.ts +38 -0
- package/components/radio/radio.vue +22 -13
- package/components/radio-group/radio-group.d.ts +40 -0
- package/components/radio-group/radio-group.vue +23 -13
- package/components/rate/common.d.ts +6 -32
- package/components/rate/common.js +1 -38
- package/components/rate/rate.d.ts +39 -0
- package/components/rate/rate.vue +31 -13
- package/components/result/common.d.ts +7 -17
- package/components/result/common.js +1 -16
- package/components/result/result.d.ts +31 -0
- package/components/result/result.vue +23 -12
- package/components/row/row.d.ts +25 -0
- package/components/row/row.vue +16 -12
- package/components/sard-uniapp/sard-uniapp.d.ts +2 -0
- package/components/sard-uniapp/sard-uniapp.vue +1 -1
- package/components/search/common.d.ts +7 -22
- package/components/search/common.js +1 -21
- package/components/search/search.d.ts +39 -0
- package/components/search/search.vue +27 -12
- package/components/share-sheet/common.d.ts +4 -18
- package/components/share-sheet/common.js +1 -21
- package/components/share-sheet/share-sheet.d.ts +39 -0
- package/components/share-sheet/share-sheet.vue +24 -12
- package/components/skeleton/common.d.ts +5 -53
- package/components/skeleton/common.js +1 -39
- package/components/skeleton/skeleton.d.ts +34 -0
- package/components/skeleton/skeleton.vue +24 -12
- package/components/skeleton-avatar/skeleton-avatar.d.ts +20 -0
- package/components/skeleton-avatar/skeleton-avatar.vue +17 -11
- package/components/skeleton-block/skeleton-block.d.ts +20 -0
- package/components/skeleton-block/skeleton-block.vue +16 -11
- package/components/skeleton-paragraph/skeleton-paragraph.d.ts +20 -0
- package/components/skeleton-paragraph/skeleton-paragraph.vue +17 -11
- package/components/skeleton-title/skeleton-title.d.ts +20 -0
- package/components/skeleton-title/skeleton-title.vue +16 -11
- package/components/slider/common.d.ts +10 -40
- package/components/slider/common.js +1 -42
- package/components/slider/slider.d.ts +50 -0
- package/components/slider/slider.vue +38 -19
- package/components/stepper/common.d.ts +11 -47
- package/components/stepper/common.js +1 -58
- package/components/stepper/stepper.d.ts +58 -0
- package/components/stepper/stepper.vue +33 -13
- package/components/steps/common.d.ts +9 -36
- package/components/steps/common.js +1 -45
- package/components/steps/steps.d.ts +44 -0
- package/components/steps/steps.vue +25 -12
- package/components/style/mixins/theme-dark.scss +1 -1
- package/components/swiper-dot/common.d.ts +6 -21
- package/components/swiper-dot/common.js +1 -27
- package/components/swiper-dot/swiper-dot.d.ts +35 -0
- package/components/swiper-dot/swiper-dot.vue +19 -12
- package/components/switch/common.d.ts +5 -24
- package/components/switch/common.js +1 -29
- package/components/switch/switch.d.ts +40 -0
- package/components/switch/switch.vue +27 -12
- package/components/tab/tab.d.ts +29 -0
- package/components/tab/tab.vue +18 -11
- package/components/tabbar/common.d.ts +6 -25
- package/components/tabbar/common.js +1 -25
- package/components/tabbar/tabbar.d.ts +35 -0
- package/components/tabbar/tabbar.vue +21 -12
- package/components/tabbar-item/tabbar-item.d.ts +29 -0
- package/components/tabbar-item/tabbar-item.vue +20 -12
- package/components/tabs/common.d.ts +5 -23
- package/components/tabs/common.js +1 -24
- package/components/tabs/tabs.d.ts +35 -0
- package/components/tabs/tabs.vue +21 -12
- package/components/tag/common.d.ts +5 -19
- package/components/tag/common.js +1 -22
- package/components/tag/tag.d.ts +40 -0
- package/components/tag/tag.vue +22 -12
- package/components/toast/common.d.ts +7 -27
- package/components/toast/common.js +1 -33
- package/components/toast/toast.d.ts +49 -0
- package/components/toast/toast.vue +18 -5
- package/components/toast-agent/common.d.ts +9 -32
- package/components/toast-agent/common.js +17 -21
- package/components/toast-agent/toast-agent.d.ts +41 -0
- package/components/toast-agent/toast-agent.vue +37 -16
- package/components/upload/common.d.ts +13 -67
- package/components/upload/common.js +2 -80
- package/components/upload/upload.d.ts +58 -0
- package/components/upload/upload.vue +31 -12
- package/components/upload-preview/upload-preview.d.ts +32 -0
- package/components/upload-preview/upload-preview.vue +29 -14
- package/global.d.ts +80 -80
- package/package.json +7 -3
- package/components/button/test.scss +0 -10
package/README.md
CHANGED
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
<p align="center">sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库。</p>
|
|
8
8
|
|
|
9
9
|
<p align="center">
|
|
10
|
-
📖 <a href="http://sutras.gitee.io/sard-uniapp-docs"
|
|
11
|
-
🧑🏻🏫 <a href="http://sutras.gitee.io/sard-uniapp-docs/mobile/">案例演示 (
|
|
10
|
+
📖 <a href="http://sutras.gitee.io/sard-uniapp-docs">文档 (gitee)</a>
|
|
11
|
+
🧑🏻🏫 <a href="http://sutras.gitee.io/sard-uniapp-docs/mobile/">案例演示 (gitee)</a>
|
|
12
12
|
</p>
|
|
13
13
|
<p align="center">
|
|
14
|
-
📖 <a href="http://sutras.github.io/sard-uniapp-docs"
|
|
15
|
-
🧑🏻🏫 <a href="http://sutras.github.io/sard-uniapp-docs/mobile/">案例演示 (
|
|
14
|
+
📖 <a href="http://sutras.github.io/sard-uniapp-docs">文档 (github)</a>
|
|
15
|
+
🧑🏻🏫 <a href="http://sutras.github.io/sard-uniapp-docs/mobile/">案例演示 (github)</a>
|
|
16
16
|
</p>
|
|
17
17
|
|
|
18
18
|
---
|
package/changelog.md
CHANGED
|
@@ -1,67 +1,101 @@
|
|
|
1
|
-
##
|
|
1
|
+
## [1.1.4](https://github.com/sutras/sard-uniapp/compare/v1.1.3...v1.1.4) (2024-05-17)
|
|
2
2
|
|
|
3
|
-
* fix: 移除属性选择器 close #23 ([89ef3fc](https://github.com/sutras/sard-uniapp/commit/89ef3fc)), closes [#23](https://github.com/sutras/sard-uniapp/issues/23)
|
|
4
3
|
|
|
4
|
+
### Bug Fixes
|
|
5
5
|
|
|
6
|
+
* 修复input组件字数统计, dialog&toast组件不能显示的问题 close [#26](https://github.com/sutras/sard-uniapp/issues/26),[#24](https://github.com/sutras/sard-uniapp/issues/24) ([bb9ea25](https://github.com/sutras/sard-uniapp/commit/bb9ea253bde0963d3ff1a4f76eee72f5b0f57d0a))
|
|
6
7
|
|
|
7
|
-
## <small>1.1.1 (2024-05-05)</small>
|
|
8
8
|
|
|
9
|
-
* fix: 修复upload-preview的image在h5环境下,没有宽度导致图片显示不全 ([e155724](https://github.com/sutras/sard-uniapp/commit/e155724))
|
|
10
|
-
* fix: 修复upload组件图片预览问题 ([dd69007](https://github.com/sutras/sard-uniapp/commit/dd69007))
|
|
11
9
|
|
|
10
|
+
## [1.1.3](https://github.com/sutras/sard-uniapp/compare/v1.1.2...v1.1.3) (2024-05-11)
|
|
12
11
|
|
|
13
12
|
|
|
14
|
-
|
|
13
|
+
### Bug Fixes
|
|
15
14
|
|
|
16
|
-
*
|
|
15
|
+
* 修复下拉刷新组件有时不触发的问题 close [#18](https://github.com/sutras/sard-uniapp/issues/18) ([3bbe3a9](https://github.com/sutras/sard-uniapp/commit/3bbe3a9986a2adccf7c067d73a6f2f30251e3532))
|
|
17
16
|
|
|
18
17
|
|
|
19
18
|
|
|
20
|
-
## 1.1.
|
|
19
|
+
## [1.1.2](https://github.com/sutras/sard-uniapp/compare/v1.1.1...v1.1.2) (2024-05-10)
|
|
21
20
|
|
|
22
|
-
* chore: update version ([df04e9a](https://github.com/sutras/sard-uniapp/commit/df04e9a))
|
|
23
|
-
* docs: 添加github文档和演示链接 ([3b1c445](https://github.com/sutras/sard-uniapp/commit/3b1c445))
|
|
24
|
-
* docs: close #16 ([e33dfa7](https://github.com/sutras/sard-uniapp/commit/e33dfa7)), closes [#16](https://github.com/sutras/sard-uniapp/issues/16)
|
|
25
|
-
* dropdown-item点击变化值后,没有回传 ([3f21060](https://github.com/sutras/sard-uniapp/commit/3f21060))
|
|
26
21
|
|
|
22
|
+
### Bug Fixes
|
|
27
23
|
|
|
24
|
+
* 移除属性选择器 close [#23](https://github.com/sutras/sard-uniapp/issues/23) ([89ef3fc](https://github.com/sutras/sard-uniapp/commit/89ef3fcc72ec0f43ccd55cabb0dc013ebcbb8041))
|
|
28
25
|
|
|
29
|
-
## 1.1.0-rc.1 (2024-04-08)
|
|
30
26
|
|
|
31
|
-
* feat: 新增load-more组件, stepper组件新增size属性 ([f1e1c79](https://github.com/sutras/sard-uniapp/commit/f1e1c79))
|
|
32
27
|
|
|
28
|
+
## [1.1.1](https://github.com/sutras/sard-uniapp/compare/v1.1.0...v1.1.1) (2024-05-05)
|
|
33
29
|
|
|
34
30
|
|
|
35
|
-
|
|
31
|
+
### Bug Fixes
|
|
36
32
|
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
* build: 新增changelog构建流程 ([e1e862d](https://github.com/sutras/sard-uniapp/commit/e1e862d))
|
|
33
|
+
* 修复upload-preview的image在h5环境下,没有宽度导致图片显示不全 ([e155724](https://github.com/sutras/sard-uniapp/commit/e1557244a1f708dbbb7732302c0dfe36b65c1776))
|
|
34
|
+
* 修复upload组件图片预览问题 ([dd69007](https://github.com/sutras/sard-uniapp/commit/dd69007200c0b97ba92392d2b732836f41f77a05))
|
|
40
35
|
|
|
41
36
|
|
|
42
37
|
|
|
43
|
-
|
|
38
|
+
# [1.1.0](https://github.com/sutras/sard-uniapp/compare/v1.1.0-rc.2...v1.1.0) (2024-05-02)
|
|
44
39
|
|
|
45
|
-
* fix: 修复打包组件缺少文件的问题 ([21c032f](https://github.com/sutras/sard-uniapp/commit/21c032f))
|
|
46
|
-
* test(test): 完善测试用例 ([49f9967](https://github.com/sutras/sard-uniapp/commit/49f9967))
|
|
47
40
|
|
|
41
|
+
### Bug Fixes
|
|
48
42
|
|
|
43
|
+
* 修复input组件字数统计问题 close [#19](https://github.com/sutras/sard-uniapp/issues/19) ([52160b3](https://github.com/sutras/sard-uniapp/commit/52160b32c38c2c02e66e2a2db0b28585a6d5a73f))
|
|
49
44
|
|
|
50
|
-
## <small>1.0.4 (2024-01-12)</small>
|
|
51
45
|
|
|
52
|
-
* fix(sard-uniapp): 修复打包缺少tag组件的bug ([c78f26c](https://github.com/sutras/sard-uniapp/commit/c78f26c))
|
|
53
|
-
* docs(doc): global component type prompt ([fb7d84e](https://github.com/sutras/sard-uniapp/commit/fb7d84e))
|
|
54
|
-
* build(sard-uniapp): update npm files field ([004ce1e](https://github.com/sutras/sard-uniapp/commit/004ce1e))
|
|
55
|
-
* add LICENSE. ([8082335](https://github.com/sutras/sard-uniapp/commit/8082335))
|
|
56
46
|
|
|
47
|
+
# [1.1.0-rc.2](https://github.com/sutras/sard-uniapp/compare/v1.1.0-rc.1...v1.1.0-rc.2) (2024-04-27)
|
|
57
48
|
|
|
58
49
|
|
|
59
|
-
## <small>1.0.2 (2023-12-23)</small>
|
|
60
50
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
51
|
+
# [1.1.0-rc.1](https://github.com/sutras/sard-uniapp/compare/v1.1.0-beta.1...v1.1.0-rc.1) (2024-04-08)
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
### Features
|
|
55
|
+
|
|
56
|
+
* 新增load-more组件, stepper组件新增size属性 ([f1e1c79](https://github.com/sutras/sard-uniapp/commit/f1e1c793939f51e94724d009ea07384630b6420b))
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
# [1.1.0-beta.1](https://github.com/sutras/sard-uniapp/compare/v1.0.5...v1.1.0-beta.1) (2024-04-06)
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
### Features
|
|
64
|
+
|
|
65
|
+
* 新增pull-down-refresh组件, slider组件新增时间, 重构loading组件, 其他优化 ([802816a](https://github.com/sutras/sard-uniapp/commit/802816aa4baa87279bf98bc3effe7139bcdfe7ed))
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
## [1.0.5](https://github.com/sutras/sard-uniapp/compare/v1.0.4...v1.0.5) (2024-03-30)
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
### Bug Fixes
|
|
73
|
+
|
|
74
|
+
* 修复打包组件缺少文件的问题 ([21c032f](https://github.com/sutras/sard-uniapp/commit/21c032f90c869f920beba95d668bbd22f19cf6b5))
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
## [1.0.4](https://github.com/sutras/sard-uniapp/compare/v1.0.2...v1.0.4) (2024-01-12)
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
### Bug Fixes
|
|
82
|
+
|
|
83
|
+
* **sard-uniapp:** 修复打包缺少tag组件的bug ([c78f26c](https://github.com/sutras/sard-uniapp/commit/c78f26c149b988e05d34254cbf0a884b8a05fc76))
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
## [1.0.2](https://github.com/sutras/sard-uniapp/compare/8e6385edfd0406aba96920eb1ee68432f1c714f9...v1.0.2) (2023-12-23)
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
### Bug Fixes
|
|
91
|
+
|
|
92
|
+
* **global:** fixed bugs ([eee4541](https://github.com/sutras/sard-uniapp/commit/eee4541b05b5f5f7bfa08e36d9dbead784b24861))
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
### Features
|
|
96
|
+
|
|
97
|
+
* 新增基础组件 ([8e6385e](https://github.com/sutras/sard-uniapp/commit/8e6385edfd0406aba96920eb1ee68432f1c714f9))
|
|
98
|
+
* **global:** 新增组件 ([5c65aab](https://github.com/sutras/sard-uniapp/commit/5c65aab0860885324b93cac83817905f3a0df66c))
|
|
65
99
|
|
|
66
100
|
|
|
67
101
|
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type _TemplateSlots, type _TemplateProps } from './common';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<_TemplateProps>, {}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
|
+
click: (...args: any[]) => void;
|
|
4
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<_TemplateProps>, {}>>> & {
|
|
5
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
6
|
+
}, {}, {}>, Readonly<_TemplateSlots> & _TemplateSlots>;
|
|
7
|
+
export default _default;
|
|
8
|
+
type __VLS_WithDefaults<P, D> = {
|
|
9
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
10
|
+
default: D[K];
|
|
11
|
+
}> : P[K];
|
|
12
|
+
};
|
|
13
|
+
type __VLS_Prettify<T> = {
|
|
14
|
+
[K in keyof T]: T[K];
|
|
15
|
+
} & {};
|
|
16
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
22
|
+
type __VLS_TypePropsToOption<T> = {
|
|
23
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
24
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
25
|
+
} : {
|
|
26
|
+
type: import('vue').PropType<T[K]>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -4,21 +4,22 @@
|
|
|
4
4
|
</view>
|
|
5
5
|
</template>
|
|
6
6
|
|
|
7
|
-
<script
|
|
7
|
+
<script>
|
|
8
8
|
import { defineComponent as _defineComponent } from "vue";
|
|
9
9
|
import { computed } from "vue";
|
|
10
10
|
import { classNames, stringifyStyle, createBem } from "../../utils";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
export default /* @__PURE__ */ _defineComponent({
|
|
19
|
-
...__default__,
|
|
11
|
+
export default _defineComponent({
|
|
12
|
+
...{
|
|
13
|
+
options: {
|
|
14
|
+
virtualHost: true,
|
|
15
|
+
styleIsolation: "shared"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
20
18
|
__name: "_template",
|
|
21
|
-
props:
|
|
19
|
+
props: {
|
|
20
|
+
rootStyle: { type: [Boolean, null, String, Object, Array], required: false, skipCheck: true },
|
|
21
|
+
rootClass: { type: String, required: false }
|
|
22
|
+
},
|
|
22
23
|
emits: ["click"],
|
|
23
24
|
setup(__props, { expose: __expose }) {
|
|
24
25
|
__expose();
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type StyleValue } from 'vue';
|
|
2
2
|
export interface _TemplateProps {
|
|
3
3
|
rootStyle?: StyleValue;
|
|
4
4
|
rootClass?: string;
|
|
5
5
|
}
|
|
6
|
-
export declare const _templateProps: {
|
|
7
|
-
rootStyle: PropType<StyleValue>;
|
|
8
|
-
rootClass: StringConstructor;
|
|
9
|
-
};
|
|
10
6
|
export interface _TemplateSlots {
|
|
11
|
-
default(props: Record<string, never>): any;
|
|
7
|
+
default?(props: Record<string, never>): any;
|
|
12
8
|
}
|
|
13
9
|
export interface _TemplateEmits {
|
|
14
10
|
(e: 'click', event: any): void;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type AccordionProps, type AccordionSlots } from './common';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<AccordionProps>, {}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
|
+
"update:model-value": (event: any) => void;
|
|
4
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<AccordionProps>, {}>>> & {
|
|
5
|
+
"onUpdate:model-value"?: ((event: any) => any) | undefined;
|
|
6
|
+
}, {}, {}>, Readonly<AccordionSlots> & AccordionSlots>;
|
|
7
|
+
export default _default;
|
|
8
|
+
|
|
9
|
+
type __VLS_WithDefaults<P, D> = {
|
|
10
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
11
|
+
default: D[K];
|
|
12
|
+
}> : P[K];
|
|
13
|
+
};
|
|
14
|
+
type __VLS_Prettify<T> = {
|
|
15
|
+
[K in keyof T]: T[K];
|
|
16
|
+
} & {};
|
|
17
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
23
|
+
type __VLS_TypePropsToOption<T> = {
|
|
24
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
25
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
26
|
+
} : {
|
|
27
|
+
type: import('vue').PropType<T[K]>;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -4,24 +4,27 @@
|
|
|
4
4
|
</view>
|
|
5
5
|
</template>
|
|
6
6
|
|
|
7
|
-
<script
|
|
7
|
+
<script>
|
|
8
8
|
import { defineComponent as _defineComponent } from "vue";
|
|
9
9
|
import { computed, provide, ref, watch, toRef, reactive } from "vue";
|
|
10
10
|
import { classNames, stringifyStyle, createBem } from "../../utils";
|
|
11
11
|
import {
|
|
12
|
-
accoridonContextSymbol
|
|
13
|
-
accordionProps
|
|
12
|
+
accoridonContextSymbol
|
|
14
13
|
} from "./common";
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
...__default__,
|
|
14
|
+
export default _defineComponent({
|
|
15
|
+
...{
|
|
16
|
+
options: {
|
|
17
|
+
virtualHost: true,
|
|
18
|
+
styleIsolation: "shared"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
23
21
|
__name: "accordion",
|
|
24
|
-
props:
|
|
22
|
+
props: {
|
|
23
|
+
rootStyle: { type: [Boolean, null, String, Object, Array], required: false, skipCheck: true },
|
|
24
|
+
rootClass: { type: String, required: false },
|
|
25
|
+
modelValue: { type: [Array, String, Number], required: false },
|
|
26
|
+
multiple: { type: Boolean, required: false }
|
|
27
|
+
},
|
|
25
28
|
emits: ["update:model-value"],
|
|
26
29
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
27
30
|
__expose();
|
|
@@ -1,21 +1,15 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type StyleValue } from 'vue';
|
|
2
2
|
export interface AccordionProps {
|
|
3
3
|
rootStyle?: StyleValue;
|
|
4
4
|
rootClass?: string;
|
|
5
5
|
modelValue?: (string | number)[] | string | number;
|
|
6
6
|
multiple?: boolean;
|
|
7
7
|
}
|
|
8
|
-
export declare const accordionProps: {
|
|
9
|
-
rootStyle: PropType<StyleValue>;
|
|
10
|
-
rootClass: StringConstructor;
|
|
11
|
-
modelValue: PropType<string | number | (string | number)[] | undefined>;
|
|
12
|
-
multiple: BooleanConstructor;
|
|
13
|
-
};
|
|
14
8
|
export interface AccordionEmits {
|
|
15
9
|
(e: 'update:model-value', event: any): void;
|
|
16
10
|
}
|
|
17
11
|
export interface AccordionSlots {
|
|
18
|
-
default(props: Record<string, never>): any;
|
|
12
|
+
default?(props: Record<string, never>): any;
|
|
19
13
|
}
|
|
20
14
|
export interface AccoridonContext {
|
|
21
15
|
value: any;
|
|
@@ -31,17 +25,9 @@ export interface AccordionItemProps {
|
|
|
31
25
|
name?: string | number;
|
|
32
26
|
disabled?: boolean;
|
|
33
27
|
}
|
|
34
|
-
export declare const accordionItemProps: {
|
|
35
|
-
rootStyle: PropType<StyleValue>;
|
|
36
|
-
rootClass: StringConstructor;
|
|
37
|
-
title: StringConstructor;
|
|
38
|
-
value: StringConstructor;
|
|
39
|
-
name: (StringConstructor | NumberConstructor)[];
|
|
40
|
-
disabled: BooleanConstructor;
|
|
41
|
-
};
|
|
42
28
|
export interface AccordionItemEmits {
|
|
43
29
|
(e: 'click', event: any): void;
|
|
44
30
|
}
|
|
45
31
|
export interface AccordionItemSlots {
|
|
46
|
-
default(props: Record<string, never>): any;
|
|
32
|
+
default?(props: Record<string, never>): any;
|
|
47
33
|
}
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
export const accordionProps = {
|
|
2
|
-
rootStyle: [String, Object, Array],
|
|
3
|
-
rootClass: String,
|
|
4
|
-
modelValue: [String, Number, Array],
|
|
5
|
-
multiple: Boolean,
|
|
6
|
-
};
|
|
7
1
|
export const accoridonContextSymbol = Symbol('accoridon-context');
|
|
8
|
-
export const accordionItemProps = {
|
|
9
|
-
rootStyle: [String, Object, Array],
|
|
10
|
-
rootClass: String,
|
|
11
|
-
title: String,
|
|
12
|
-
value: String,
|
|
13
|
-
name: [String, Number],
|
|
14
|
-
disabled: Boolean,
|
|
15
|
-
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type AccordionItemProps, type AccordionItemSlots } from '../accordion/common';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<AccordionItemProps>, {}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
|
+
click: (event: any) => void;
|
|
4
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<AccordionItemProps>, {}>>> & {
|
|
5
|
+
onClick?: ((event: any) => any) | undefined;
|
|
6
|
+
}, {}, {}>, Readonly<AccordionItemSlots> & AccordionItemSlots>;
|
|
7
|
+
export default _default;
|
|
8
|
+
type __VLS_WithDefaults<P, D> = {
|
|
9
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
10
|
+
default: D[K];
|
|
11
|
+
}> : P[K];
|
|
12
|
+
};
|
|
13
|
+
type __VLS_Prettify<T> = {
|
|
14
|
+
[K in keyof T]: T[K];
|
|
15
|
+
} & {};
|
|
16
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
22
|
+
type __VLS_TypePropsToOption<T> = {
|
|
23
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
24
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
25
|
+
} : {
|
|
26
|
+
type: import('vue').PropType<T[K]>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -20,26 +20,31 @@
|
|
|
20
20
|
</view>
|
|
21
21
|
</template>
|
|
22
22
|
|
|
23
|
-
<script
|
|
23
|
+
<script>
|
|
24
24
|
import { defineComponent as _defineComponent } from "vue";
|
|
25
25
|
import { computed, inject } from "vue";
|
|
26
26
|
import { classNames, stringifyStyle, createBem, isNullish } from "../../utils";
|
|
27
27
|
import {
|
|
28
|
-
accoridonContextSymbol
|
|
29
|
-
accordionItemProps
|
|
28
|
+
accoridonContextSymbol
|
|
30
29
|
} from "../accordion/common";
|
|
31
30
|
import SarCollapse from "../collapse/collapse.vue";
|
|
32
31
|
import SarIcon from "../icon/icon.vue";
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
...__default__,
|
|
32
|
+
export default _defineComponent({
|
|
33
|
+
...{
|
|
34
|
+
options: {
|
|
35
|
+
virtualHost: true,
|
|
36
|
+
styleIsolation: "shared"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
41
39
|
__name: "accordion-item",
|
|
42
|
-
props:
|
|
40
|
+
props: {
|
|
41
|
+
rootStyle: { type: [Boolean, null, String, Object, Array], required: false, skipCheck: true },
|
|
42
|
+
rootClass: { type: String, required: false },
|
|
43
|
+
title: { type: String, required: false },
|
|
44
|
+
value: { type: String, required: false },
|
|
45
|
+
name: { type: [String, Number], required: false },
|
|
46
|
+
disabled: { type: Boolean, required: false }
|
|
47
|
+
},
|
|
43
48
|
emits: ["click"],
|
|
44
49
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
45
50
|
__expose();
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { type ActionSheetItem, type ActionSheetProps } from './common';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ActionSheetProps>, {
|
|
3
|
+
overlayClosable: boolean;
|
|
4
|
+
duration: number;
|
|
5
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
"update:visible": (visible: boolean) => void;
|
|
7
|
+
close: () => void;
|
|
8
|
+
cancel: () => void;
|
|
9
|
+
select: (item: ActionSheetItem, index: number) => void;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ActionSheetProps>, {
|
|
11
|
+
overlayClosable: boolean;
|
|
12
|
+
duration: number;
|
|
13
|
+
}>>> & {
|
|
14
|
+
onSelect?: ((item: ActionSheetItem, index: number) => any) | undefined;
|
|
15
|
+
onClose?: (() => any) | undefined;
|
|
16
|
+
onCancel?: (() => any) | undefined;
|
|
17
|
+
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
overlayClosable: boolean;
|
|
20
|
+
duration: number;
|
|
21
|
+
}, {}>;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_WithDefaults<P, D> = {
|
|
24
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
25
|
+
default: D[K];
|
|
26
|
+
}> : P[K];
|
|
27
|
+
};
|
|
28
|
+
type __VLS_Prettify<T> = {
|
|
29
|
+
[K in keyof T]: T[K];
|
|
30
|
+
} & {};
|
|
31
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
32
|
+
type __VLS_TypePropsToOption<T> = {
|
|
33
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
34
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
35
|
+
} : {
|
|
36
|
+
type: import('vue').PropType<T[K]>;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -46,23 +46,34 @@
|
|
|
46
46
|
</sar-popup>
|
|
47
47
|
</template>
|
|
48
48
|
|
|
49
|
-
<script
|
|
50
|
-
import { defineComponent as _defineComponent } from "vue";
|
|
49
|
+
<script>
|
|
50
|
+
import { mergeDefaults as _mergeDefaults, defineComponent as _defineComponent } from "vue";
|
|
51
51
|
import { computed, ref, watch } from "vue";
|
|
52
52
|
import { classNames, stringifyStyle, createBem, noop } from "../../utils";
|
|
53
53
|
import SarPopup from "../popup/popup.vue";
|
|
54
54
|
import SarLoading from "../loading/loading.vue";
|
|
55
|
-
import {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
55
|
+
import {
|
|
56
|
+
actionSheetPropsDefaults
|
|
57
|
+
} from "./common";
|
|
58
|
+
export default _defineComponent({
|
|
59
|
+
...{
|
|
60
|
+
options: {
|
|
61
|
+
virtualHost: true,
|
|
62
|
+
styleIsolation: "shared"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
64
65
|
__name: "action-sheet",
|
|
65
|
-
props:
|
|
66
|
+
props: _mergeDefaults({
|
|
67
|
+
rootStyle: { type: [Boolean, null, String, Object, Array], required: false, skipCheck: true },
|
|
68
|
+
rootClass: { type: String, required: false },
|
|
69
|
+
description: { type: String, required: false },
|
|
70
|
+
itemList: { type: Array, required: false },
|
|
71
|
+
cancel: { type: String, required: false },
|
|
72
|
+
visible: { type: Boolean, required: false },
|
|
73
|
+
overlayClosable: { type: Boolean, required: false },
|
|
74
|
+
beforeClose: { type: Function, required: false },
|
|
75
|
+
duration: { type: Number, required: false }
|
|
76
|
+
}, actionSheetPropsDefaults),
|
|
66
77
|
emits: ["update:visible", "close", "cancel", "select"],
|
|
67
78
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
68
79
|
__expose();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type StyleValue } from 'vue';
|
|
2
2
|
export interface ActionSheetProps {
|
|
3
3
|
rootStyle?: StyleValue;
|
|
4
4
|
rootClass?: string;
|
|
@@ -10,22 +10,9 @@ export interface ActionSheetProps {
|
|
|
10
10
|
beforeClose?: (type: 'close' | 'cancel' | 'select') => boolean | Promise<any>;
|
|
11
11
|
duration?: number;
|
|
12
12
|
}
|
|
13
|
-
export declare const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
description: StringConstructor;
|
|
17
|
-
itemList: PropType<ActionSheetItem[] | undefined>;
|
|
18
|
-
cancel: StringConstructor;
|
|
19
|
-
visible: BooleanConstructor;
|
|
20
|
-
overlayClosable: {
|
|
21
|
-
type: BooleanConstructor;
|
|
22
|
-
default: boolean;
|
|
23
|
-
};
|
|
24
|
-
beforeClose: PropType<((type: 'close' | 'cancel' | 'select') => boolean | Promise<any>) | undefined>;
|
|
25
|
-
duration: {
|
|
26
|
-
type: NumberConstructor;
|
|
27
|
-
default: number;
|
|
28
|
-
};
|
|
13
|
+
export declare const actionSheetPropsDefaults: {
|
|
14
|
+
overlayClosable: boolean;
|
|
15
|
+
duration: number;
|
|
29
16
|
};
|
|
30
17
|
export interface ActionSheetEmits {
|
|
31
18
|
(e: 'update:visible', visible: boolean): void;
|
|
@@ -1,18 +1,2 @@
|
|
|
1
1
|
import { defaultConfig } from '../config';
|
|
2
|
-
export const
|
|
3
|
-
rootStyle: [String, Object, Array],
|
|
4
|
-
rootClass: String,
|
|
5
|
-
description: String,
|
|
6
|
-
itemList: Array,
|
|
7
|
-
cancel: String,
|
|
8
|
-
visible: Boolean,
|
|
9
|
-
overlayClosable: {
|
|
10
|
-
type: Boolean,
|
|
11
|
-
default: defaultConfig.actionSheet.overlayClosable,
|
|
12
|
-
},
|
|
13
|
-
beforeClose: Function,
|
|
14
|
-
duration: {
|
|
15
|
-
type: Number,
|
|
16
|
-
default: defaultConfig.shareSheet.duration,
|
|
17
|
-
},
|
|
18
|
-
};
|
|
2
|
+
export const actionSheetPropsDefaults = defaultConfig.actionSheet;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type AvatarProps, type AvatarSlots } from './common';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<AvatarProps>, {
|
|
3
|
+
shape: "circle";
|
|
4
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<AvatarProps>, {
|
|
5
|
+
shape: "circle";
|
|
6
|
+
}>>>, {
|
|
7
|
+
shape: "circle" | "square";
|
|
8
|
+
}, {}>, Readonly<AvatarSlots> & AvatarSlots>;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_WithDefaults<P, D> = {
|
|
11
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
12
|
+
default: D[K];
|
|
13
|
+
}> : P[K];
|
|
14
|
+
};
|
|
15
|
+
type __VLS_Prettify<T> = {
|
|
16
|
+
[K in keyof T]: T[K];
|
|
17
|
+
} & {};
|
|
18
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
24
|
+
type __VLS_TypePropsToOption<T> = {
|
|
25
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
26
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
27
|
+
} : {
|
|
28
|
+
type: import('vue').PropType<T[K]>;
|
|
29
|
+
required: true;
|
|
30
|
+
};
|
|
31
|
+
};
|