@nutui/nutui 3.1.21-beta.3 → 3.1.22-beta.3
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 +57 -0
- package/dist/nutui.es.js +4024 -18197
- package/dist/nutui.umd.js +4017 -18290
- package/dist/packages/_es/ActionSheet.js +26 -157
- package/dist/packages/_es/Address.js +119 -542
- package/dist/packages/_es/AddressList.js +113 -611
- package/dist/packages/_es/Audio.js +62 -274
- package/dist/packages/_es/AudioOperate.js +18 -107
- package/dist/packages/_es/Avatar.js +42 -165
- package/dist/packages/_es/AvatarGroup.js +14 -73
- package/dist/packages/_es/BackTop.js +43 -156
- package/dist/packages/_es/Badge.js +14 -86
- package/dist/packages/_es/Barrage.js +41 -113
- package/dist/packages/_es/Button.js +23 -128
- package/dist/packages/_es/Calendar.js +24 -237
- package/dist/packages/_es/CalendarItem.js +1 -1
- package/dist/packages/_es/Card.js +10 -107
- package/dist/packages/_es/Cascader.js +156 -500
- package/dist/packages/_es/Category.js +15 -58
- package/dist/packages/_es/CategoryPane.js +11 -111
- package/dist/packages/_es/Cell.js +21 -98
- package/dist/packages/_es/CellGroup.js +9 -44
- package/dist/packages/_es/Checkbox.js +31 -113
- package/dist/packages/_es/CheckboxGroup.js +29 -58
- package/dist/packages/_es/CircleProgress.js +28 -151
- package/dist/packages/_es/Col.js +14 -56
- package/dist/packages/_es/Collapse.js +24 -85
- package/dist/packages/_es/CollapseItem.js +70 -261
- package/dist/packages/_es/Comment.js +64 -434
- package/dist/packages/_es/CountDown.js +61 -242
- package/dist/packages/_es/CountUp.js +149 -548
- package/dist/packages/_es/DatePicker.js +107 -322
- package/dist/packages/_es/Dialog.js +69 -259
- package/dist/packages/_es/Divider.js +32 -45
- package/dist/packages/_es/Drag.js +56 -197
- package/dist/packages/_es/Ecard.js +24 -159
- package/dist/packages/_es/Elevator.js +63 -194
- package/dist/packages/_es/Empty.js +12 -71
- package/dist/packages/_es/FixedNav.js +15 -122
- package/dist/packages/_es/Form.js +64 -146
- package/dist/packages/_es/FormItem.js +15 -110
- package/dist/packages/_es/Grid.js +5 -6
- package/dist/packages/_es/GridItem.js +33 -144
- package/dist/packages/_es/Icon.js +15 -40
- package/dist/packages/_es/ImagePreview.js +74 -298
- package/dist/packages/_es/Indicator.js +15 -62
- package/dist/packages/_es/InfiniteLoading.js +66 -258
- package/dist/packages/_es/Input.js +51 -413
- package/dist/packages/_es/InputNumber.js +41 -160
- package/dist/packages/_es/Layout.js +4 -5
- package/dist/packages/_es/List.js +23 -109
- package/dist/packages/_es/Menu.js +30 -114
- package/dist/packages/_es/MenuItem.js +34 -161
- package/dist/packages/_es/Navbar.js +30 -94
- package/dist/packages/_es/NoticeBar.js +83 -387
- package/dist/packages/_es/Notify.js +81 -236
- package/dist/packages/_es/NumberKeyboard.js +41 -262
- package/dist/packages/_es/OldPicker.js +140 -464
- package/dist/packages/_es/OverLay.js +32 -105
- package/dist/packages/_es/Pagination.js +39 -157
- package/dist/packages/_es/Picker.js +138 -457
- package/dist/packages/_es/Popover.js +344 -185
- package/dist/packages/_es/Popup.js +64 -300
- package/dist/packages/_es/Price.js +16 -118
- package/dist/packages/_es/Progress.js +14 -146
- package/dist/packages/_es/PullRefresh.js +92 -346
- package/dist/packages/_es/Radio.js +22 -90
- package/dist/packages/_es/RadioGroup.js +8 -37
- package/dist/packages/_es/Range.js +92 -417
- package/dist/packages/_es/Rate.js +16 -139
- package/dist/packages/_es/Row.js +22 -64
- package/dist/packages/_es/SearchBar.js +46 -181
- package/dist/packages/_es/ShortPassword.js +35 -225
- package/dist/packages/_es/SideNavBar.js +33 -89
- package/dist/packages/_es/SideNavBarItem.js +11 -46
- package/dist/packages/_es/Signature.js +46 -165
- package/dist/packages/_es/Skeleton.js +20 -136
- package/dist/packages/_es/Sku.js +93 -499
- package/dist/packages/_es/Step.js +25 -119
- package/dist/packages/_es/Steps.js +18 -53
- package/dist/packages/_es/Sticky.js +53 -138
- package/dist/packages/_es/SubSideNavBar.js +26 -90
- package/dist/packages/_es/Swipe.js +46 -183
- package/dist/packages/_es/Swiper.js +121 -414
- package/dist/packages/_es/SwiperItem.js +22 -50
- package/dist/packages/_es/Switch.js +21 -116
- package/dist/packages/_es/TabPane.js +12 -35
- package/dist/packages/_es/Tabbar.js +17 -72
- package/dist/packages/_es/TabbarItem.js +29 -150
- package/dist/packages/_es/Table.js +27 -186
- package/dist/packages/_es/Tabs.js +51 -204
- package/dist/packages/_es/Tag.js +20 -97
- package/dist/packages/_es/TextArea.js +42 -160
- package/dist/packages/_es/TimeDetail.js +23 -84
- package/dist/packages/_es/TimePannel.js +19 -52
- package/dist/packages/_es/TimeSelect.js +15 -103
- package/dist/packages/_es/Toast.js +80 -319
- package/dist/packages/_es/Uploader.js +112 -459
- package/dist/packages/_es/Video.js +83 -340
- package/dist/packages/_es/common.js +38 -128
- package/dist/packages/_es/component.js +35 -76
- package/dist/packages/_es/index.js +5 -6
- package/dist/packages/_es/index2.js +9 -30
- package/dist/packages/_es/index3.js +6 -8
- package/dist/packages/_es/index4.js +13 -58
- package/dist/packages/_es/index5.js +120 -675
- package/dist/packages/_es/plugin-vue_export-helper.js +7 -8
- package/dist/packages/_es/pxCheck.js +3 -5
- package/dist/packages/_es/raf.js +8 -15
- package/dist/packages/addresslist/index.scss +2 -2
- package/dist/packages/button/index.scss +2 -1
- package/dist/packages/card/index.scss +1 -1
- package/dist/packages/cell/index.scss +15 -0
- package/dist/packages/checkbox/index.scss +6 -0
- package/dist/packages/dialog/index.scss +1 -2
- package/dist/packages/divider/index.scss +9 -0
- package/dist/packages/elevator/index.scss +21 -0
- package/dist/packages/formitem/index.scss +1 -0
- package/dist/packages/input/index.scss +13 -1
- package/dist/packages/locale/index.d.ts +8 -3
- package/dist/packages/locale/{locale/lang → lang}/baseLang.d.ts +1 -0
- package/dist/packages/locale/lang/baseLang.js +3 -3
- package/dist/packages/locale/{locale/lang → lang}/en-US.d.ts +16 -0
- package/dist/packages/locale/lang/en-US.js +5 -89
- package/dist/packages/locale/lang/id-ID.d.ts +104 -0
- package/dist/packages/locale/lang/id-ID.js +12 -0
- package/dist/packages/locale/lang/index.js +16 -38
- package/dist/packages/locale/{locale/lang → lang}/zh-CN.d.ts +16 -0
- package/dist/packages/locale/lang/zh-CN.js +5 -89
- package/dist/packages/locale/{locale/lang → lang}/zh-TW.d.ts +16 -0
- package/dist/packages/locale/lang/zh-TW.js +5 -89
- package/dist/packages/menuitem/index.scss +0 -1
- package/dist/packages/navbar/index.scss +8 -1
- package/dist/packages/popover/index.scss +402 -81
- package/dist/packages/popup/index.scss +3 -0
- package/dist/packages/radio/index.scss +1 -0
- package/dist/packages/searchbar/index.scss +4 -0
- package/dist/packages/switch/index.scss +3 -3
- package/dist/packages/tabbar/index.scss +2 -2
- package/dist/packages/tabpane/index.scss +5 -2
- package/dist/packages/tabs/index.scss +3 -0
- package/dist/packages/timeselect/index.scss +3 -2
- package/dist/smartips/attributes.json +188 -44
- package/dist/smartips/tags.json +65 -27
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +48 -48
- package/dist/styles/themes/jdb.scss +48 -48
- package/dist/styles/themes/jdt.scss +48 -48
- package/dist/styles/variables-jdb.scss +25 -8
- package/dist/styles/variables-jdt.scss +25 -8
- package/dist/styles/variables.scss +25 -7
- package/dist/types/__VUE/actionsheet/{index.d.ts → index.vue.d.ts} +62 -114
- package/dist/types/__VUE/address/{index.d.ts → index.vue.d.ts} +81 -151
- package/dist/types/__VUE/addresslist/components/{GeneralShell.d.ts → GeneralShell.vue.d.ts} +6 -7
- package/dist/types/__VUE/addresslist/components/{ItemContents.d.ts → ItemContents.vue.d.ts} +9 -11
- package/dist/types/__VUE/addresslist/components/{LongPressShell.d.ts → LongPressShell.vue.d.ts} +6 -7
- package/dist/types/__VUE/addresslist/components/{SwipeShell.d.ts → SwipeShell.vue.d.ts} +6 -7
- package/dist/types/__VUE/addresslist/{index.d.ts → index.vue.d.ts} +14 -23
- package/dist/types/__VUE/audio/index.vue.d.ts +102 -0
- package/dist/types/__VUE/audiooperate/index.vue.d.ts +88 -0
- package/dist/types/__VUE/avatar/{index.d.ts → index.vue.d.ts} +17 -30
- package/dist/types/__VUE/avatargroup/{index.d.ts → index.vue.d.ts} +20 -35
- package/dist/types/__VUE/backtop/{index.d.ts → index.vue.d.ts} +18 -34
- package/dist/types/__VUE/badge/{index.d.ts → index.vue.d.ts} +20 -33
- package/dist/types/__VUE/barrage/{index.d.ts → index.vue.d.ts} +15 -26
- package/dist/types/__VUE/button/{index.d.ts → index.vue.d.ts} +33 -50
- package/dist/types/__VUE/button/type.d.ts +7 -0
- package/dist/types/__VUE/calendar/{index.d.ts → index.vue.d.ts} +32 -57
- package/dist/types/__VUE/calendaritem/{index.d.ts → index.vue.d.ts} +33 -58
- package/dist/types/__VUE/card/{index.d.ts → index.vue.d.ts} +19 -34
- package/dist/types/__VUE/cascader/{cascader-item.d.ts → cascader-item.vue.d.ts} +22 -23
- package/dist/types/__VUE/cascader/{index.d.ts → index.vue.d.ts} +62 -98
- package/dist/types/__VUE/category/{index.d.ts → index.vue.d.ts} +7 -10
- package/dist/types/__VUE/categorypane/{index.d.ts → index.vue.d.ts} +10 -15
- package/dist/types/__VUE/cell/{index.d.ts → index.vue.d.ts} +38 -39
- package/dist/types/__VUE/cellgroup/{index.d.ts → index.vue.d.ts} +8 -11
- package/dist/types/__VUE/checkbox/common.d.ts +59 -0
- package/dist/types/__VUE/checkbox/{index.d.ts → index.vue.d.ts} +36 -40
- package/dist/types/__VUE/checkboxgroup/{index.d.ts → index.vue.d.ts} +15 -11
- package/dist/types/__VUE/circleprogress/{index.d.ts → index.vue.d.ts} +18 -31
- package/dist/types/__VUE/col/{index.d.ts → index.vue.d.ts} +7 -10
- package/dist/types/__VUE/collapse/{index.d.ts → index.vue.d.ts} +24 -40
- package/dist/types/__VUE/collapseitem/{index.d.ts → index.vue.d.ts} +22 -30
- package/dist/types/__VUE/comment/components/{CmtBottom.d.ts → CmtBottom.vue.d.ts} +10 -15
- package/dist/types/__VUE/comment/components/{CmtHeader.d.ts → CmtHeader.vue.d.ts} +10 -15
- package/dist/types/__VUE/comment/components/{CmtImages.d.ts → CmtImages.vue.d.ts} +10 -15
- package/dist/types/__VUE/comment/{index.d.ts → index.vue.d.ts} +21 -38
- package/dist/types/__VUE/countdown/{index.d.ts → index.vue.d.ts} +21 -35
- package/dist/types/__VUE/countup/{index.d.ts → index.vue.d.ts} +41 -74
- package/dist/types/__VUE/datepicker/{index.d.ts → index.vue.d.ts} +71 -125
- package/dist/types/__VUE/datepicker/type.d.ts +6 -0
- package/dist/types/__VUE/dialog/index.d.ts +44 -302
- package/dist/types/__VUE/dialog/index.vue.d.ts +263 -0
- package/dist/types/__VUE/divider/{index.d.ts → index.vue.d.ts} +15 -15
- package/dist/types/__VUE/drag/{index.d.ts → index.vue.d.ts} +9 -19
- package/dist/types/__VUE/ecard/{index.d.ts → index.vue.d.ts} +25 -44
- package/dist/types/__VUE/elevator/{index.d.ts → index.vue.d.ts} +39 -14
- package/dist/types/__VUE/empty/{index.d.ts → index.vue.d.ts} +9 -14
- package/dist/types/__VUE/fixednav/{index.d.ts → index.vue.d.ts} +18 -34
- package/dist/types/__VUE/form/{index.d.ts → index.vue.d.ts} +5 -6
- package/dist/types/__VUE/formitem/{index.d.ts → index.vue.d.ts} +29 -55
- package/dist/types/__VUE/grid/common.d.ts +3 -3
- package/dist/types/__VUE/grid/{index.d.ts → index.vue.d.ts} +24 -40
- package/dist/types/__VUE/griditem/{index.d.ts → index.vue.d.ts} +19 -26
- package/dist/types/__VUE/icon/{index.d.ts → index.vue.d.ts} +15 -26
- package/dist/types/__VUE/imagepreview/index.d.ts +20 -121
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +108 -0
- package/dist/types/__VUE/indicator/{index.d.ts → index.vue.d.ts} +13 -24
- package/dist/types/__VUE/infiniteloading/{index.d.ts → index.vue.d.ts} +26 -47
- package/dist/types/__VUE/input/{index.d.ts → index.vue.d.ts} +81 -144
- package/dist/types/__VUE/input/type.d.ts +13 -0
- package/dist/types/__VUE/inputnumber/{index.d.ts → index.vue.d.ts} +22 -39
- package/dist/types/__VUE/layout/{index.d.ts → index.vue.d.ts} +1 -1
- package/dist/types/__VUE/list/{index.d.ts → index.vue.d.ts} +10 -14
- package/dist/types/__VUE/menu/{index.d.ts → index.vue.d.ts} +16 -14
- package/dist/types/__VUE/menuitem/{index.d.ts → index.vue.d.ts} +20 -24
- package/dist/types/__VUE/menuitem/type.d.ts +8 -0
- package/dist/types/__VUE/navbar/{index.d.ts → index.vue.d.ts} +48 -26
- package/dist/types/__VUE/noticebar/{index.d.ts → index.vue.d.ts} +35 -64
- package/dist/types/__VUE/notify/index.d.ts +12 -109
- package/dist/types/__VUE/notify/index.vue.d.ts +101 -0
- package/dist/types/__VUE/numberkeyboard/{index.d.ts → index.vue.d.ts} +41 -43
- package/dist/types/__VUE/oldpicker/{Column.d.ts → Column.vue.d.ts} +17 -22
- package/dist/types/__VUE/oldpicker/{index.d.ts → index.vue.d.ts} +75 -128
- package/dist/types/__VUE/overlay/{index.d.ts → index.vue.d.ts} +19 -30
- package/dist/types/__VUE/pagination/{index.d.ts → index.vue.d.ts} +21 -38
- package/dist/types/__VUE/picker/{Column.d.ts → Column.vue.d.ts} +16 -18
- package/dist/types/__VUE/picker/{index.d.ts → index.vue.d.ts} +79 -129
- package/dist/types/__VUE/popover/{index.d.ts → index.vue.d.ts} +85 -109
- package/dist/types/__VUE/popover/type.d.ts +6 -0
- package/dist/types/__VUE/popup/{index.d.ts → index.vue.d.ts} +45 -80
- package/dist/types/__VUE/price/{index.d.ts → index.vue.d.ts} +17 -30
- package/dist/types/__VUE/progress/{index.d.ts → index.vue.d.ts} +29 -53
- package/dist/types/__VUE/pullrefresh/{index.d.ts → index.vue.d.ts} +18 -46
- package/dist/types/__VUE/radio/{index.d.ts → index.vue.d.ts} +19 -34
- package/dist/types/__VUE/radiogroup/{index.d.ts → index.vue.d.ts} +10 -15
- package/dist/types/__VUE/range/{index.d.ts → index.vue.d.ts} +35 -47
- package/dist/types/__VUE/range/type.d.ts +5 -0
- package/dist/types/__VUE/rate/{index.d.ts → index.vue.d.ts} +30 -55
- package/dist/types/__VUE/row/{index.d.ts → index.vue.d.ts} +16 -25
- package/dist/types/__VUE/searchbar/{index.d.ts → index.vue.d.ts} +62 -32
- package/dist/types/__VUE/shortpassword/{index.d.ts → index.vue.d.ts} +25 -44
- package/dist/types/__VUE/sidenavbar/{index.d.ts → index.vue.d.ts} +6 -7
- package/dist/types/__VUE/sidenavbaritem/{index.d.ts → index.vue.d.ts} +8 -11
- package/dist/types/__VUE/signature/{index.d.ts → index.vue.d.ts} +13 -22
- package/dist/types/__VUE/skeleton/common.d.ts +3 -5
- package/dist/types/__VUE/skeleton/{index.d.ts → index.vue.d.ts} +24 -43
- package/dist/types/__VUE/sku/components/{SkuHeader.d.ts → SkuHeader.vue.d.ts} +6 -7
- package/dist/types/__VUE/sku/components/{SkuOperate.d.ts → SkuOperate.vue.d.ts} +14 -23
- package/dist/types/__VUE/sku/components/{SkuSelect.d.ts → SkuSelect.vue.d.ts} +6 -7
- package/dist/types/__VUE/sku/components/{SkuStepper.d.ts → SkuStepper.vue.d.ts} +12 -19
- package/dist/types/__VUE/sku/{index.d.ts → index.vue.d.ts} +66 -124
- package/dist/types/__VUE/step/{index.d.ts → index.vue.d.ts} +14 -23
- package/dist/types/__VUE/steps/{index.d.ts → index.vue.d.ts} +9 -14
- package/dist/types/__VUE/sticky/{index.d.ts → index.vue.d.ts} +14 -21
- package/dist/types/__VUE/subsidenavbar/{index.d.ts → index.vue.d.ts} +10 -15
- package/dist/types/__VUE/swipe/{index.d.ts → index.vue.d.ts} +11 -18
- package/dist/types/__VUE/swiper/{index.d.ts → index.vue.d.ts} +30 -50
- package/dist/types/__VUE/swiperitem/{index.d.ts → index.vue.d.ts} +2 -2
- package/dist/types/__VUE/switch/{index.d.ts → index.vue.d.ts} +28 -51
- package/dist/types/__VUE/tabbar/{index.d.ts → index.vue.d.ts} +17 -30
- package/dist/types/__VUE/tabbaritem/{index.d.ts → index.vue.d.ts} +25 -40
- package/dist/types/__VUE/table/common.d.ts +1 -1
- package/dist/types/__VUE/table/{index.d.ts → index.vue.d.ts} +14 -23
- package/dist/types/__VUE/tabpane/{index.d.ts → index.vue.d.ts} +11 -15
- package/dist/types/__VUE/tabs/common.d.ts +6 -2
- package/dist/types/__VUE/tabs/{index.d.ts → index.vue.d.ts} +30 -42
- package/dist/types/__VUE/tag/{index.d.ts → index.vue.d.ts} +21 -34
- package/dist/types/__VUE/tag/type.d.ts +5 -0
- package/dist/types/__VUE/textarea/{index.d.ts → index.vue.d.ts} +26 -45
- package/dist/types/__VUE/timedetail/{index.d.ts → index.vue.d.ts} +8 -11
- package/dist/types/__VUE/timepannel/{index.d.ts → index.vue.d.ts} +8 -11
- package/dist/types/__VUE/timeselect/{index.d.ts → index.vue.d.ts} +25 -29
- package/dist/types/__VUE/toast/index.d.ts +12 -145
- package/dist/types/__VUE/toast/index.vue.d.ts +134 -0
- package/dist/types/__VUE/uploader/{index.d.ts → index.vue.d.ts} +59 -106
- package/dist/types/__VUE/uploader/type.d.ts +18 -0
- package/dist/types/__VUE/video/{index.d.ts → index.vue.d.ts} +9 -26
- package/dist/types/index.d.ts +7 -2
- package/dist/types/nutui.d.ts +92 -92
- package/package.json +7 -3
- package/dist/packages/locale/locale/index.d.ts +0 -8
- package/dist/types/__VUE/audio/index.d.ts +0 -92
- package/dist/types/__VUE/audiooperate/index.d.ts +0 -68
|
@@ -1,121 +1,26 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.22-beta.3 Wed Jun 15 2022 20:12:30 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, createCommentVNode, Fragment, withDirectives, toDisplayString, vShow } from "vue";
|
|
7
|
-
import { c as
|
|
8
|
-
import { _ as
|
|
6
|
+
import { computed as e, resolveComponent as t, openBlock as a, createElementBlock as l, normalizeClass as o, normalizeStyle as i, createElementVNode as n, createBlock as c, createCommentVNode as u, Fragment as r, withDirectives as s, toDisplayString as d, vShow as p } from "vue";
|
|
7
|
+
import { c as m } from "./component.js";
|
|
8
|
+
import { _ as v } from "./plugin-vue_export-helper.js";
|
|
9
9
|
import "../locale/lang";
|
|
10
|
-
const { componentName, create } =
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
default: ""
|
|
28
|
-
},
|
|
29
|
-
activeText: {
|
|
30
|
-
type: String,
|
|
31
|
-
default: ""
|
|
32
|
-
},
|
|
33
|
-
inactiveText: {
|
|
34
|
-
type: String,
|
|
35
|
-
default: ""
|
|
36
|
-
},
|
|
37
|
-
activeValue: {
|
|
38
|
-
type: [String, Number, Boolean],
|
|
39
|
-
default: true
|
|
40
|
-
},
|
|
41
|
-
inactiveValue: {
|
|
42
|
-
type: [String, Number, Boolean],
|
|
43
|
-
default: false
|
|
44
|
-
},
|
|
45
|
-
loading: {
|
|
46
|
-
type: Boolean,
|
|
47
|
-
default: false
|
|
48
|
-
},
|
|
49
|
-
name: {
|
|
50
|
-
type: String,
|
|
51
|
-
default: "loading1"
|
|
52
|
-
},
|
|
53
|
-
size: {
|
|
54
|
-
type: [String, Number],
|
|
55
|
-
default: "12px"
|
|
56
|
-
},
|
|
57
|
-
color: {
|
|
58
|
-
type: String,
|
|
59
|
-
default: ""
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
emits: ["change", "update:modelValue", "update:loading"],
|
|
63
|
-
setup(props, { emit }) {
|
|
64
|
-
const isActive = computed(() => props.modelValue === props.activeValue);
|
|
65
|
-
const classes = computed(() => {
|
|
66
|
-
const prefixCls = componentName;
|
|
67
|
-
return {
|
|
68
|
-
[prefixCls]: true,
|
|
69
|
-
[isActive.value ? "switch-open" : "switch-close"]: true,
|
|
70
|
-
[`${prefixCls}-disable`]: props.disable,
|
|
71
|
-
[`${prefixCls}-base`]: true
|
|
72
|
-
};
|
|
73
|
-
});
|
|
74
|
-
const style = computed(() => {
|
|
75
|
-
return {
|
|
76
|
-
backgroundColor: isActive.value ? props.activeColor : props.inactiveColor
|
|
77
|
-
};
|
|
78
|
-
});
|
|
79
|
-
const onClick = (event) => {
|
|
80
|
-
if (props.disable || props.loading)
|
|
81
|
-
return;
|
|
82
|
-
const value = isActive.value ? props.inactiveValue : props.activeValue;
|
|
83
|
-
emit("update:modelValue", value);
|
|
84
|
-
emit("update:loading");
|
|
85
|
-
emit("change", value, event);
|
|
86
|
-
};
|
|
87
|
-
return {
|
|
88
|
-
classes,
|
|
89
|
-
style,
|
|
90
|
-
onClick
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
const _hoisted_1 = { class: "switch-button" };
|
|
95
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
96
|
-
const _component_nut_icon = resolveComponent("nut-icon");
|
|
97
|
-
return openBlock(), createElementBlock("view", {
|
|
98
|
-
class: normalizeClass(_ctx.classes),
|
|
99
|
-
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args)),
|
|
100
|
-
style: normalizeStyle(_ctx.style)
|
|
101
|
-
}, [
|
|
102
|
-
createElementVNode("view", _hoisted_1, [
|
|
103
|
-
_ctx.loading ? (openBlock(), createBlock(_component_nut_icon, {
|
|
104
|
-
key: 0,
|
|
105
|
-
name: _ctx.name,
|
|
106
|
-
size: _ctx.size,
|
|
107
|
-
color: _ctx.color
|
|
108
|
-
}, null, 8, ["name", "size", "color"])) : createCommentVNode("", true),
|
|
109
|
-
_ctx.activeText ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
110
|
-
withDirectives(createElementVNode("view", { class: "nut-switch-label open" }, toDisplayString(_ctx.activeText), 513), [
|
|
111
|
-
[vShow, _ctx.modelValue]
|
|
112
|
-
]),
|
|
113
|
-
withDirectives(createElementVNode("view", { class: "nut-switch-label close" }, toDisplayString(_ctx.inactiveText), 513), [
|
|
114
|
-
[vShow, !_ctx.modelValue]
|
|
115
|
-
])
|
|
116
|
-
], 64)) : createCommentVNode("", true)
|
|
117
|
-
])
|
|
118
|
-
], 6);
|
|
119
|
-
}
|
|
120
|
-
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
121
|
-
export { index as default };
|
|
10
|
+
const { componentName: g, create: f } = m("switch"), y = f({ props: { modelValue: { type: [String, Number, Boolean], default: false }, disable: { type: Boolean, default: false }, activeColor: { type: String, default: "" }, inactiveColor: { type: String, default: "" }, activeText: { type: String, default: "" }, inactiveText: { type: String, default: "" }, activeValue: { type: [String, Number, Boolean], default: true }, inactiveValue: { type: [String, Number, Boolean], default: false }, loading: { type: Boolean, default: false }, name: { type: String, default: "loading1" }, size: { type: [String, Number], default: "12px" }, color: { type: String, default: "" } }, emits: ["change", "update:modelValue", "update:loading"], setup(t2, { emit: a2 }) {
|
|
11
|
+
const l2 = e(() => t2.modelValue === t2.activeValue);
|
|
12
|
+
return { classes: e(() => {
|
|
13
|
+
const e2 = g;
|
|
14
|
+
return { [e2]: true, [l2.value ? "switch-open" : "switch-close"]: true, [`${e2}-disable`]: t2.disable, [`${e2}-base`]: true };
|
|
15
|
+
}), style: e(() => ({ backgroundColor: l2.value ? t2.activeColor : t2.inactiveColor })), onClick: (e2) => {
|
|
16
|
+
if (t2.disable || t2.loading)
|
|
17
|
+
return;
|
|
18
|
+
const o2 = l2.value ? t2.inactiveValue : t2.activeValue;
|
|
19
|
+
a2("update:modelValue", o2), a2("update:loading"), a2("change", o2, e2);
|
|
20
|
+
} };
|
|
21
|
+
} }), b = { class: "switch-button" };
|
|
22
|
+
var V = v(y, [["render", function(e2, m2, v2, g2, f2, y2) {
|
|
23
|
+
const V2 = t("nut-icon");
|
|
24
|
+
return a(), l("view", { class: o(e2.classes), onClick: m2[0] || (m2[0] = (...t2) => e2.onClick && e2.onClick(...t2)), style: i(e2.style) }, [n("view", b, [e2.loading ? (a(), c(V2, { key: 0, name: e2.name, size: e2.size, color: e2.color }, null, 8, ["name", "size", "color"])) : u("", true), e2.activeText ? (a(), l(r, { key: 1 }, [s(n("view", { class: "nut-switch-label open" }, d(e2.activeText), 513), [[p, e2.modelValue]]), s(n("view", { class: "nut-switch-label close" }, d(e2.inactiveText), 513), [[p, !e2.modelValue]])], 64)) : u("", true)])], 6);
|
|
25
|
+
}]]);
|
|
26
|
+
export { V as default };
|
|
@@ -1,40 +1,17 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.22-beta.3 Wed Jun 15 2022 20:12:30 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { inject, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
|
|
7
|
-
import { c as
|
|
8
|
-
import { _ as
|
|
6
|
+
import { inject as e, openBlock as t, createElementBlock as a, normalizeClass as i, renderSlot as o } from "vue";
|
|
7
|
+
import { c as r } from "./component.js";
|
|
8
|
+
import { _ as n } from "./plugin-vue_export-helper.js";
|
|
9
9
|
import "../locale/lang";
|
|
10
|
-
const { create } =
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
type: [String, Number],
|
|
19
|
-
default: ""
|
|
20
|
-
},
|
|
21
|
-
disabled: {
|
|
22
|
-
type: Boolean,
|
|
23
|
-
default: false
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
emits: ["click"],
|
|
27
|
-
setup(props, { emit }) {
|
|
28
|
-
const parent = inject("activeKey");
|
|
29
|
-
return { activeKey: parent.activeKey };
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
33
|
-
return openBlock(), createElementBlock("view", {
|
|
34
|
-
class: normalizeClass(["nut-tabpane", { active: _ctx.paneKey == _ctx.activeKey }])
|
|
35
|
-
}, [
|
|
36
|
-
renderSlot(_ctx.$slots, "default")
|
|
37
|
-
], 2);
|
|
38
|
-
}
|
|
39
|
-
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
40
|
-
export { index as default };
|
|
10
|
+
const { create: p } = r("tabpane");
|
|
11
|
+
var u = n(p({ props: { title: { type: [String, Number], default: "" }, paneKey: { type: [String, Number], default: "" }, disabled: { type: Boolean, default: false } }, emits: ["click"], setup(t2, { emit: a2 }) {
|
|
12
|
+
const i2 = e("activeKey"), o2 = e("autoHeight");
|
|
13
|
+
return { activeKey: i2.activeKey, autoHeight: o2.autoHeight };
|
|
14
|
+
} }), [["render", function(e2, r2, n2, p2, u2, l) {
|
|
15
|
+
return t(), a("view", { class: i(["nut-tabpane", { inactive: e2.paneKey != e2.activeKey && e2.autoHeight }]) }, [o(e2.$slots, "default")], 2);
|
|
16
|
+
}]]);
|
|
17
|
+
export { u as default };
|
|
@@ -1,78 +1,23 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.22-beta.3 Wed Jun 15 2022 20:12:30 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { reactive, provide, watch, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
|
|
7
|
-
import { c as
|
|
8
|
-
import { _ as
|
|
6
|
+
import { reactive as e, provide as t, watch as a, openBlock as o, createElementBlock as l, normalizeClass as r, renderSlot as i } from "vue";
|
|
7
|
+
import { c as n } from "./component.js";
|
|
8
|
+
import { _ as s } from "./plugin-vue_export-helper.js";
|
|
9
9
|
import "../locale/lang";
|
|
10
|
-
const { create } =
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
default: 0
|
|
16
|
-
},
|
|
17
|
-
bottom: {
|
|
18
|
-
type: Boolean,
|
|
19
|
-
default: false
|
|
20
|
-
},
|
|
21
|
-
type: {
|
|
22
|
-
type: String,
|
|
23
|
-
default: "base"
|
|
24
|
-
},
|
|
25
|
-
size: {
|
|
26
|
-
type: String,
|
|
27
|
-
default: "20px"
|
|
28
|
-
},
|
|
29
|
-
unactiveColor: {
|
|
30
|
-
type: String,
|
|
31
|
-
default: "#000000"
|
|
32
|
-
},
|
|
33
|
-
activeColor: {
|
|
34
|
-
type: String,
|
|
35
|
-
default: ""
|
|
36
|
-
},
|
|
37
|
-
safeAreaInsetBottom: {
|
|
38
|
-
type: Boolean,
|
|
39
|
-
default: false
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
emits: ["tab-switch", "update:visible"],
|
|
43
|
-
setup(props, { emit, slots }) {
|
|
44
|
-
const mdValue = reactive({
|
|
45
|
-
val: props.visible,
|
|
46
|
-
children: []
|
|
47
|
-
});
|
|
48
|
-
function changeIndex(active) {
|
|
49
|
-
emit("update:visible", active);
|
|
50
|
-
parentData.modelValue = active;
|
|
51
|
-
emit("tab-switch", parentData.children[active], active);
|
|
52
|
-
}
|
|
53
|
-
let parentData = reactive({
|
|
54
|
-
children: mdValue.children,
|
|
55
|
-
size: props.size,
|
|
56
|
-
modelValue: mdValue.val,
|
|
57
|
-
unactiveColor: props.unactiveColor,
|
|
58
|
-
activeColor: props.activeColor,
|
|
59
|
-
changeIndex
|
|
60
|
-
});
|
|
61
|
-
provide("parent", parentData);
|
|
62
|
-
watch(() => props.visible, (value) => {
|
|
63
|
-
parentData.modelValue = value;
|
|
64
|
-
});
|
|
65
|
-
return {
|
|
66
|
-
changeIndex
|
|
67
|
-
};
|
|
10
|
+
const { create: u } = n("tabbar");
|
|
11
|
+
var p = s(u({ props: { visible: { type: [Number, String], default: 0 }, bottom: { type: Boolean, default: false }, type: { type: String, default: "base" }, size: { type: String, default: "20px" }, unactiveColor: { type: String, default: "#000000" }, activeColor: { type: String, default: "" }, safeAreaInsetBottom: { type: Boolean, default: false } }, emits: ["tab-switch", "update:visible"], setup(o2, { emit: l2, slots: r2 }) {
|
|
12
|
+
const i2 = e({ val: o2.visible, children: [] });
|
|
13
|
+
function n2(e2) {
|
|
14
|
+
l2("update:visible", e2), s2.modelValue = e2, l2("tab-switch", s2.children[e2], e2);
|
|
68
15
|
}
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
78
|
-
export { index as default };
|
|
16
|
+
let s2 = e({ children: i2.children, size: o2.size, modelValue: i2.val, unactiveColor: o2.unactiveColor, activeColor: o2.activeColor, changeIndex: n2 });
|
|
17
|
+
return t("parent", s2), a(() => o2.visible, (e2) => {
|
|
18
|
+
s2.modelValue = e2;
|
|
19
|
+
}), { changeIndex: n2 };
|
|
20
|
+
} }), [["render", function(e2, t2, a2, n2, s2, u2) {
|
|
21
|
+
return o(), l("view", { class: r(["nut-tabbar", { "nut-tabbar-bottom": e2.bottom, "nut-tabbar-safebottom": e2.safeAreaInsetBottom }]) }, [i(e2.$slots, "default")], 2);
|
|
22
|
+
}]]);
|
|
23
|
+
export { p as default };
|
|
@@ -1,158 +1,37 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.22-beta.3 Wed Jun 15 2022 20:12:30 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { c as
|
|
7
|
-
import { u as
|
|
8
|
-
import { inject, reactive, getCurrentInstance, computed, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, Fragment, toDisplayString, createCommentVNode, createVNode, renderSlot } from "vue";
|
|
9
|
-
import { _ as
|
|
6
|
+
import { c as t } from "./component.js";
|
|
7
|
+
import { u as e } from "./index.js";
|
|
8
|
+
import { inject as i, reactive as a, getCurrentInstance as n, computed as o, watch as c, resolveComponent as s, openBlock as l, createElementBlock as r, normalizeClass as u, normalizeStyle as m, createElementVNode as b, Fragment as d, toDisplayString as f, createCommentVNode as p, createVNode as v, renderSlot as x } from "vue";
|
|
9
|
+
import { _ as g } from "./plugin-vue_export-helper.js";
|
|
10
10
|
import "../locale/lang";
|
|
11
|
-
const { create } =
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
},
|
|
18
|
-
icon: {
|
|
19
|
-
type: String,
|
|
20
|
-
default: ""
|
|
21
|
-
},
|
|
22
|
-
href: {
|
|
23
|
-
type: String,
|
|
24
|
-
default: ""
|
|
25
|
-
},
|
|
26
|
-
num: {
|
|
27
|
-
type: String,
|
|
28
|
-
default: ""
|
|
29
|
-
},
|
|
30
|
-
activeImg: {
|
|
31
|
-
type: String,
|
|
32
|
-
default: ""
|
|
33
|
-
},
|
|
34
|
-
img: {
|
|
35
|
-
type: String,
|
|
36
|
-
default: ""
|
|
37
|
-
},
|
|
38
|
-
classPrefix: {
|
|
39
|
-
type: String,
|
|
40
|
-
default: "nut-icon"
|
|
41
|
-
},
|
|
42
|
-
dot: {
|
|
43
|
-
type: Boolean,
|
|
44
|
-
default: false
|
|
45
|
-
},
|
|
46
|
-
fontClassName: {
|
|
47
|
-
type: String,
|
|
48
|
-
default: "nutui-iconfont"
|
|
49
|
-
},
|
|
50
|
-
to: [Object, String]
|
|
51
|
-
},
|
|
52
|
-
setup(props, ctx) {
|
|
53
|
-
const parent = inject("parent");
|
|
54
|
-
const state = reactive({
|
|
55
|
-
size: parent.size,
|
|
56
|
-
unactiveColor: parent.unactiveColor,
|
|
57
|
-
activeColor: parent.activeColor,
|
|
58
|
-
active: parent.modelValue,
|
|
59
|
-
index: 0
|
|
60
|
-
});
|
|
61
|
-
const router = useRouter();
|
|
62
|
-
const relation = (child) => {
|
|
63
|
-
if (child.proxy) {
|
|
64
|
-
let index2 = parent.children.length;
|
|
65
|
-
state.index = index2;
|
|
66
|
-
parent.children.push(child.proxy);
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
relation(getCurrentInstance());
|
|
70
|
-
function change(index2) {
|
|
71
|
-
parent.changeIndex(index2);
|
|
11
|
+
const { create: _ } = t("tabbar-item"), y = _({ props: { tabTitle: { type: String, default: "" }, icon: { type: String, default: "" }, href: { type: String, default: "" }, num: { type: String, default: "" }, activeImg: { type: String, default: "" }, img: { type: String, default: "" }, classPrefix: { type: String, default: "nut-icon" }, dot: { type: Boolean, default: false }, fontClassName: { type: String, default: "nutui-iconfont" }, to: [Object, String] }, setup(t2, s2) {
|
|
12
|
+
const l2 = i("parent"), r2 = a({ size: l2.size, unactiveColor: l2.unactiveColor, activeColor: l2.activeColor, active: l2.modelValue, index: 0 }), u2 = e();
|
|
13
|
+
((t3) => {
|
|
14
|
+
if (t3.proxy) {
|
|
15
|
+
let e2 = l2.children.length;
|
|
16
|
+
r2.index = e2, l2.children.push(t3.proxy);
|
|
72
17
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
18
|
+
})(n());
|
|
19
|
+
const m2 = o(() => l2 ? l2.modelValue : null);
|
|
20
|
+
return c(m2, (t3, e2) => {
|
|
21
|
+
r2.active = t3, setTimeout(() => {
|
|
22
|
+
if (l2.children[t3].href)
|
|
23
|
+
window.location.href = l2.children[t3].href;
|
|
24
|
+
else if (l2.children[t3].to) {
|
|
25
|
+
let e3 = l2.children[t3].to;
|
|
26
|
+
e3 && u2 ? u2.push(e3) : location.replace(e3);
|
|
76
27
|
}
|
|
77
|
-
return null;
|
|
78
|
-
});
|
|
79
|
-
watch(choosed, (value, oldValue) => {
|
|
80
|
-
state.active = value;
|
|
81
|
-
setTimeout(() => {
|
|
82
|
-
if (parent.children[value].href) {
|
|
83
|
-
window.location.href = parent.children[value].href;
|
|
84
|
-
}
|
|
85
|
-
if (parent.children[value].to) {
|
|
86
|
-
let to = parent.children[value].to;
|
|
87
|
-
if (to && router) {
|
|
88
|
-
router.push(to);
|
|
89
|
-
} else {
|
|
90
|
-
location.replace(to);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
28
|
});
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
class: "nut-tabbar-item_icon-box_tips nut-tabbar-item_icon-box_num"
|
|
105
|
-
};
|
|
106
|
-
const _hoisted_3 = {
|
|
107
|
-
key: 1,
|
|
108
|
-
class: "nut-tabbar-item_icon-box_tips nut-tabbar-item_icon-box_nums"
|
|
109
|
-
};
|
|
110
|
-
const _hoisted_4 = {
|
|
111
|
-
key: 1,
|
|
112
|
-
class: "nut-tabbar-item_icon-box_dot"
|
|
113
|
-
};
|
|
114
|
-
const _hoisted_5 = { key: 2 };
|
|
115
|
-
const _hoisted_6 = { key: 0 };
|
|
116
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
117
|
-
const _component_nut_icon = resolveComponent("nut-icon");
|
|
118
|
-
return openBlock(), createElementBlock("div", {
|
|
119
|
-
class: normalizeClass(["nut-tabbar-item", { "nut-tabbar-item__icon--unactive": _ctx.state.active != _ctx.state.index }]),
|
|
120
|
-
style: normalizeStyle({
|
|
121
|
-
color: _ctx.state.active == _ctx.state.index ? _ctx.state.activeColor : _ctx.state.unactiveColor
|
|
122
|
-
}),
|
|
123
|
-
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.change(_ctx.state.index))
|
|
124
|
-
}, [
|
|
125
|
-
createElementVNode("view", _hoisted_1, [
|
|
126
|
-
!_ctx.dot ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
127
|
-
_ctx.num && _ctx.num <= 99 ? (openBlock(), createElementBlock("view", _hoisted_2, toDisplayString(_ctx.num), 1)) : _ctx.num && _ctx.num > 100 ? (openBlock(), createElementBlock("view", _hoisted_3, toDisplayString("99+"))) : createCommentVNode("", true)
|
|
128
|
-
], 64)) : createCommentVNode("", true),
|
|
129
|
-
_ctx.dot ? (openBlock(), createElementBlock("div", _hoisted_4)) : createCommentVNode("", true),
|
|
130
|
-
_ctx.icon ? (openBlock(), createElementBlock("view", _hoisted_5, [
|
|
131
|
-
createVNode(_component_nut_icon, {
|
|
132
|
-
class: "nut-tabbar-item_icon-box_icon",
|
|
133
|
-
size: _ctx.state.size,
|
|
134
|
-
name: _ctx.icon,
|
|
135
|
-
"font-class-name": _ctx.fontClassName,
|
|
136
|
-
"class-prefix": _ctx.classPrefix
|
|
137
|
-
}, null, 8, ["size", "name", "font-class-name", "class-prefix"])
|
|
138
|
-
])) : createCommentVNode("", true),
|
|
139
|
-
!_ctx.icon && _ctx.activeImg ? (openBlock(), createElementBlock("div", {
|
|
140
|
-
key: 3,
|
|
141
|
-
class: "nut-tabbar-item_icon-box_icon",
|
|
142
|
-
style: normalizeStyle({
|
|
143
|
-
backgroundImage: `url(${_ctx.state.active == _ctx.state.index ? _ctx.activeImg : _ctx.img})`,
|
|
144
|
-
width: _ctx.state.size,
|
|
145
|
-
height: _ctx.state.size
|
|
146
|
-
})
|
|
147
|
-
}, null, 4)) : createCommentVNode("", true),
|
|
148
|
-
createElementVNode("view", {
|
|
149
|
-
class: normalizeClass(["nut-tabbar-item_icon-box_nav-word", { "nut-tabbar-item_icon-box_big-word": !_ctx.icon && !_ctx.activeImg }])
|
|
150
|
-
}, [
|
|
151
|
-
_ctx.tabTitle ? (openBlock(), createElementBlock("view", _hoisted_6, toDisplayString(_ctx.tabTitle), 1)) : createCommentVNode("", true),
|
|
152
|
-
!_ctx.tabTitle ? renderSlot(_ctx.$slots, "default", { key: 1 }) : createCommentVNode("", true)
|
|
153
|
-
], 2)
|
|
154
|
-
])
|
|
155
|
-
], 6);
|
|
156
|
-
}
|
|
157
|
-
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
158
|
-
export { index as default };
|
|
29
|
+
}), { state: r2, change: function(t3) {
|
|
30
|
+
l2.changeIndex(t3);
|
|
31
|
+
} };
|
|
32
|
+
} }), h = { class: "nut-tabbar-item_icon-box" }, w = { key: 0, class: "nut-tabbar-item_icon-box_tips nut-tabbar-item_icon-box_num" }, k = { key: 1, class: "nut-tabbar-item_icon-box_tips nut-tabbar-item_icon-box_nums" }, C = { key: 1, class: "nut-tabbar-item_icon-box_dot" }, S = { key: 2 }, z = { key: 0 };
|
|
33
|
+
var I = g(y, [["render", function(t2, e2, i2, a2, n2, o2) {
|
|
34
|
+
const c2 = s("nut-icon");
|
|
35
|
+
return l(), r("div", { class: u(["nut-tabbar-item", { "nut-tabbar-item__icon--unactive": t2.state.active != t2.state.index }]), style: m({ color: t2.state.active == t2.state.index ? t2.state.activeColor : t2.state.unactiveColor }), onClick: e2[0] || (e2[0] = (e3) => t2.change(t2.state.index)) }, [b("view", h, [t2.dot ? p("", true) : (l(), r(d, { key: 0 }, [t2.num && t2.num <= 99 ? (l(), r("view", w, f(t2.num), 1)) : t2.num && t2.num > 100 ? (l(), r("view", k, f("99+"))) : p("", true)], 64)), t2.dot ? (l(), r("div", C)) : p("", true), t2.icon ? (l(), r("view", S, [v(c2, { class: "nut-tabbar-item_icon-box_icon", size: t2.state.size, name: t2.icon, "font-class-name": t2.fontClassName, "class-prefix": t2.classPrefix }, null, 8, ["size", "name", "font-class-name", "class-prefix"])])) : p("", true), !t2.icon && t2.activeImg ? (l(), r("div", { key: 3, class: "nut-tabbar-item_icon-box_icon", style: m({ backgroundImage: `url(${t2.state.active == t2.state.index ? t2.activeImg : t2.img})`, width: t2.state.size, height: t2.state.size }) }, null, 4)) : p("", true), b("view", { class: u(["nut-tabbar-item_icon-box_nav-word", { "nut-tabbar-item_icon-box_big-word": !t2.icon && !t2.activeImg }]) }, [t2.tabTitle ? (l(), r("view", z, f(t2.tabTitle), 1)) : p("", true), t2.tabTitle ? p("", true) : x(t2.$slots, "default", { key: 1 })], 2)])], 6);
|
|
36
|
+
}]]);
|
|
37
|
+
export { I as default };
|