@nutui/nutui 3.2.6-beta.1 → 3.2.6-beta.2
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 +18 -4
- package/dist/nutui.es.js +4461 -4135
- package/dist/nutui.umd.js +4559 -4133
- package/dist/packages/_es/ActionSheet.js +19 -18
- package/dist/packages/_es/Address.js +85 -94
- package/dist/packages/_es/AddressList.js +12 -25
- package/dist/packages/_es/Animate.js +3 -3
- package/dist/packages/_es/Audio.js +2 -9
- package/dist/packages/_es/AudioOperate.js +1 -5
- package/dist/packages/_es/Avatar.js +10 -10
- package/dist/packages/_es/AvatarGroup.js +5 -5
- package/dist/packages/_es/BackTop.js +108 -55
- package/dist/packages/_es/Badge.js +12 -10
- package/dist/packages/_es/Barrage.js +103 -79
- package/dist/packages/_es/Button.js +3 -5
- package/dist/packages/_es/Calendar.js +23 -36
- package/dist/packages/_es/CalendarItem.js +3 -4
- package/dist/packages/_es/Card.js +5 -15
- package/dist/packages/_es/Cascader.js +11 -12
- package/dist/packages/_es/Category.js +12 -13
- package/dist/packages/_es/CategoryPane.js +13 -17
- package/dist/packages/_es/Cell.js +12 -9
- package/dist/packages/_es/CellGroup.js +2 -4
- package/dist/packages/_es/Checkbox.js +1 -1
- package/dist/packages/_es/CheckboxGroup.js +2 -2
- package/dist/packages/_es/CircleProgress.js +82 -98
- package/dist/packages/_es/Col.js +1 -1
- package/dist/packages/_es/Collapse.js +34 -65
- package/dist/packages/_es/CollapseItem.js +60 -93
- package/dist/packages/_es/Comment.js +19 -43
- package/dist/packages/_es/ConfigProvider.js +1 -1
- package/dist/packages/_es/CountDown.js +3 -3
- package/dist/packages/_es/CountUp.js +52 -47
- package/dist/packages/_es/DatePicker.js +54 -37
- package/dist/packages/_es/Dialog.js +88 -9
- package/dist/packages/_es/Divider.js +3 -3
- package/dist/packages/_es/Drag.js +49 -75
- package/dist/packages/_es/Ecard.js +18 -20
- package/dist/packages/_es/Elevator.js +76 -101
- package/dist/packages/_es/Ellipsis.js +100 -140
- package/dist/packages/_es/Empty.js +4 -6
- package/dist/packages/_es/FixedNav.js +6 -11
- package/dist/packages/_es/Form.js +4 -4
- package/dist/packages/_es/FormItem.js +1 -3
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +27 -10
- package/dist/packages/_es/Icon.js +1 -1
- package/dist/packages/_es/Image.js +114 -13
- package/dist/packages/_es/ImagePreview.js +411 -149
- package/dist/packages/_es/Indicator.js +3 -3
- package/dist/packages/_es/InfiniteLoading.js +115 -103
- package/dist/packages/_es/Input.js +32 -56
- package/dist/packages/_es/InputNumber.js +16 -25
- package/dist/packages/_es/Invoice.js +5 -6
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +34 -47
- package/dist/packages/_es/Menu.js +35 -35
- package/dist/packages/_es/MenuItem.js +29 -56
- package/dist/packages/_es/Navbar.js +39 -49
- package/dist/packages/_es/NoticeBar.js +45 -54
- package/dist/packages/_es/Notify.js +162 -44
- package/dist/packages/_es/NumberKeyboard.js +20 -15
- package/dist/packages/_es/OldPicker.js +116 -130
- package/dist/packages/_es/OverLay.js +28 -5
- package/dist/packages/_es/Pagination.js +5 -8
- package/dist/packages/_es/Picker.js +74 -198
- package/dist/packages/_es/Popover.js +881 -201
- package/dist/packages/_es/Popup.js +84 -28
- package/dist/packages/_es/Price.js +6 -22
- package/dist/packages/_es/Progress.js +11 -18
- package/dist/packages/_es/PullRefresh.js +2 -4
- package/dist/packages/_es/Radio.js +3 -3
- package/dist/packages/_es/RadioGroup.js +1 -1
- package/dist/packages/_es/Range.js +34 -48
- package/dist/packages/_es/Rate.js +14 -15
- package/dist/packages/_es/Row.js +1 -1
- package/dist/packages/_es/SearchBar.js +36 -39
- package/dist/packages/_es/ShortPassword.js +66 -97
- package/dist/packages/_es/SideNavBar.js +18 -7
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +80 -113
- package/dist/packages/_es/Skeleton.js +11 -12
- package/dist/packages/_es/Sku.js +38 -63
- package/dist/packages/_es/Step.js +2 -7
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/Sticky.js +23 -33
- package/dist/packages/_es/SubSideNavBar.js +2 -4
- package/dist/packages/_es/Swipe.js +26 -41
- package/dist/packages/_es/Swiper.js +21 -38
- package/dist/packages/_es/SwiperItem.js +2 -2
- package/dist/packages/_es/Switch.js +8 -8
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +13 -15
- package/dist/packages/_es/TabbarItem.js +30 -24
- package/dist/packages/_es/Table.js +17 -22
- package/dist/packages/_es/Tabs.js +16 -49
- package/dist/packages/_es/Tag.js +5 -6
- package/dist/packages/_es/TextArea.js +49 -114
- package/dist/packages/_es/TimeDetail.js +3 -4
- package/dist/packages/_es/TimePannel.js +3 -3
- package/dist/packages/_es/TimeSelect.js +10 -12
- package/dist/packages/_es/Toast.js +164 -53
- package/dist/packages/_es/TrendArrow.js +4 -6
- package/dist/packages/_es/Uploader.js +140 -141
- package/dist/packages/_es/Video.js +18 -39
- package/dist/packages/_es/WaterMark.js +14 -22
- package/dist/packages/_es/common.js +1 -1
- package/dist/packages/_es/component.js +1 -1
- package/dist/packages/_es/index.js +6 -44
- package/dist/packages/_es/index2.js +31 -8
- package/dist/packages/_es/index3.js +7 -64
- package/dist/packages/_es/index4.js +62 -424
- package/dist/packages/_es/{index.taro.js → index5.js} +154 -167
- package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
- package/dist/packages/_es/pxCheck.js +1 -1
- package/dist/packages/_es/raf.js +1 -1
- package/dist/packages/_es/style.css +3 -21
- package/dist/packages/checkbox/index.scss +1 -0
- package/dist/packages/locale/lang/baseLang.js +1 -1
- package/dist/packages/locale/lang/en-US.js +1 -1
- package/dist/packages/locale/lang/id-ID.js +1 -1
- package/dist/packages/locale/lang/index.js +1 -1
- package/dist/packages/locale/lang/zh-CN.js +1 -1
- package/dist/packages/locale/lang/zh-TW.js +1 -1
- package/dist/packages/menuitem/index.scss +12 -3
- package/dist/smartips/attributes.json +5 -1
- package/dist/smartips/tags.json +1 -0
- package/dist/smartips/web-types.json +11 -2
- 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/jddkh.scss +48 -48
- package/dist/styles/themes/jdt.scss +48 -48
- package/dist/types/__VUE/actionsheet/{index.taro.vue.d.ts → index.vue.d.ts} +9 -9
- package/dist/types/__VUE/address/{index.taro.vue.d.ts → index.vue.d.ts} +33 -73
- package/dist/types/__VUE/addresslist/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/animate/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/avatar/{index.taro.vue.d.ts → index.vue.d.ts} +6 -6
- package/dist/types/__VUE/avatargroup/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/backtop/{index.taro.vue.d.ts → index.vue.d.ts} +37 -15
- package/dist/types/__VUE/badge/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/barrage/{index.taro.vue.d.ts → index.vue.d.ts} +2 -2
- package/dist/types/__VUE/button/index.vue.d.ts +1 -1
- package/dist/types/__VUE/calendar/{index.taro.vue.d.ts → index.vue.d.ts} +1 -13
- package/dist/types/__VUE/calendaritem/{index.taro.vue.d.ts → index.vue.d.ts} +17 -17
- package/dist/types/__VUE/card/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/cascader/{index.taro.vue.d.ts → index.vue.d.ts} +1 -1
- package/dist/types/__VUE/category/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/categorypane/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/cell/{index.taro.vue.d.ts → index.vue.d.ts} +5 -12
- package/dist/types/__VUE/checkbox/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/circleprogress/{index.taro.vue.d.ts → index.vue.d.ts} +15 -14
- package/dist/types/__VUE/collapse/{index.taro.vue.d.ts → index.vue.d.ts} +1 -1
- package/dist/types/__VUE/collapseitem/{index.taro.vue.d.ts → index.vue.d.ts} +10 -2
- package/dist/types/__VUE/comment/{index.taro.vue.d.ts → index.vue.d.ts} +2 -1
- package/dist/types/__VUE/configprovider/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/countdown/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/countup/{index.taro.vue.d.ts → index.vue.d.ts} +7 -5
- package/dist/types/__VUE/datepicker/{index.taro.vue.d.ts → index.vue.d.ts} +5 -5
- package/dist/types/__VUE/dialog/index.d.ts +48 -0
- package/dist/types/__VUE/dialog/{index.taro.vue.d.ts → index.vue.d.ts} +12 -9
- package/dist/types/__VUE/divider/{index.taro.vue.d.ts → index.vue.d.ts} +1 -1
- package/dist/types/__VUE/drag/{index.taro.vue.d.ts → index.vue.d.ts} +1 -2
- package/dist/types/__VUE/ecard/{index.taro.vue.d.ts → index.vue.d.ts} +3 -3
- package/dist/types/__VUE/elevator/{index.taro.vue.d.ts → index.vue.d.ts} +2 -11
- package/dist/types/__VUE/ellipsis/{index.taro.vue.d.ts → index.vue.d.ts} +0 -4
- package/dist/types/__VUE/empty/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/fixednav/{index.taro.vue.d.ts → index.vue.d.ts} +1 -1
- package/dist/types/__VUE/form/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/grid/{index.taro.vue.d.ts → index.vue.d.ts} +2 -2
- package/dist/types/__VUE/griditem/{index.taro.vue.d.ts → index.vue.d.ts} +27 -2
- package/dist/types/__VUE/image/index.vue.d.ts +117 -0
- package/dist/types/__VUE/image/type.d.ts +6 -0
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +109 -0
- package/dist/types/__VUE/imagepreview/index.d.ts +25 -0
- package/dist/types/__VUE/imagepreview/{index.taro.vue.d.ts → index.vue.d.ts} +44 -33
- package/dist/types/__VUE/indicator/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/infiniteloading/{index.taro.vue.d.ts → index.vue.d.ts} +12 -19
- package/dist/types/__VUE/input/{index.taro.vue.d.ts → index.vue.d.ts} +16 -34
- package/dist/types/__VUE/inputnumber/{index.taro.vue.d.ts → index.vue.d.ts} +2 -2
- package/dist/types/__VUE/invoice/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/layout/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/list/{index.taro.vue.d.ts → index.vue.d.ts} +2 -2
- package/dist/types/__VUE/menu/{index.taro.vue.d.ts → index.vue.d.ts} +0 -1
- package/dist/types/__VUE/menuitem/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/navbar/{index.taro.vue.d.ts → index.vue.d.ts} +3 -2
- package/dist/types/__VUE/noticebar/{index.taro.vue.d.ts → index.vue.d.ts} +4 -4
- package/dist/types/__VUE/notify/index.d.ts +26 -0
- package/dist/types/__VUE/notify/{index.taro.vue.d.ts → index.vue.d.ts} +18 -5
- package/dist/types/__VUE/numberkeyboard/{index.taro.vue.d.ts → index.vue.d.ts} +29 -5
- package/dist/types/__VUE/oldpicker/{ColumnTaro.vue.d.ts → Column.vue.d.ts} +17 -28
- package/dist/types/__VUE/oldpicker/{index.taro.vue.d.ts → index.vue.d.ts} +44 -64
- package/dist/types/__VUE/pagination/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/picker/{ColumnTaro.vue.d.ts → Column.vue.d.ts} +4 -16
- package/dist/types/__VUE/picker/{index.taro.vue.d.ts → index.vue.d.ts} +28 -53
- package/dist/types/__VUE/popover/{index.taro.vue.d.ts → index.vue.d.ts} +13 -15
- package/dist/types/__VUE/popup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/price/{index.taro.vue.d.ts → index.vue.d.ts} +0 -1
- package/dist/types/__VUE/progress/{index.taro.vue.d.ts → index.vue.d.ts} +1 -1
- package/dist/types/__VUE/radio/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/range/{index.taro.vue.d.ts → index.vue.d.ts} +7 -8
- package/dist/types/__VUE/rate/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/searchbar/{index.taro.vue.d.ts → index.vue.d.ts} +19 -19
- package/dist/types/__VUE/shortpassword/{index.taro.vue.d.ts → index.vue.d.ts} +21 -6
- package/dist/types/__VUE/sidenavbar/{index.taro.vue.d.ts → index.vue.d.ts} +5 -0
- package/dist/types/__VUE/signature/{index.taro.vue.d.ts → index.vue.d.ts} +5 -8
- package/dist/types/__VUE/skeleton/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/sku/index.vue.d.ts +310 -0
- package/dist/types/__VUE/step/index.vue.d.ts +1 -1
- package/dist/types/__VUE/steps/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/sticky/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/swipe/{index.taro.vue.d.ts → index.vue.d.ts} +1 -2
- package/dist/types/__VUE/swiper/{index.taro.vue.d.ts → index.vue.d.ts} +1 -2
- package/dist/types/__VUE/swiperitem/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/switch/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/tabbar/{index.taro.vue.d.ts → index.vue.d.ts} +2 -1
- package/dist/types/__VUE/tabbaritem/{index.taro.vue.d.ts → index.vue.d.ts} +9 -9
- package/dist/types/__VUE/table/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/tabs/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/tag/{index.taro.vue.d.ts → index.vue.d.ts} +4 -4
- package/dist/types/__VUE/tag/type.d.ts +5 -0
- package/dist/types/__VUE/textarea/{index.taro.vue.d.ts → index.vue.d.ts} +3 -5
- package/dist/types/__VUE/timedetail/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/timepannel/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/timeselect/{index.taro.vue.d.ts → index.vue.d.ts} +8 -7
- package/dist/types/__VUE/toast/index.d.ts +16 -0
- package/dist/types/__VUE/toast/{index.taro.vue.d.ts → index.vue.d.ts} +22 -44
- package/dist/types/__VUE/trendarrow/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/uploader/{index.taro.vue.d.ts → index.vue.d.ts} +13 -22
- package/dist/types/__VUE/watermark/{index.taro.vue.d.ts → index.vue.d.ts} +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/nutui.d.ts +89 -89
- package/package.json +3 -2
- package/dist/packages/_es/use-lock-scroll.js +0 -23
- package/dist/types/__VUE/button/index.taro.vue.d.ts +0 -116
- package/dist/types/__VUE/icon/index.taro.vue.d.ts +0 -74
- package/dist/types/__VUE/image/index.taro.vue.d.ts +0 -33
- package/dist/types/__VUE/overlay/index.taro.vue.d.ts +0 -85
- package/dist/types/__VUE/popup/index.taro.vue.d.ts +0 -1728
- package/dist/types/__VUE/sku/index.taro.vue.d.ts +0 -182
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.6-beta.
|
|
2
|
+
* @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { ref, reactive, onMounted, watch, provide, toRefs, resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString,
|
|
6
|
+
import { ref, reactive, onMounted, watch, provide, toRefs, resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, createVNode, withCtx, createCommentVNode, normalizeClass, createBlock, renderSlot } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
9
|
import "../locale/lang";
|
|
@@ -192,7 +192,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
192
192
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
193
193
|
_ctx.type == "progress" ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
194
194
|
createElementVNode("div", _hoisted_3, toDisplayString(_ctx.currentDuration), 1),
|
|
195
|
-
createTextVNode(),
|
|
196
195
|
createElementVNode("div", _hoisted_4, [
|
|
197
196
|
createVNode(_component_nut_range, {
|
|
198
197
|
modelValue: _ctx.percent,
|
|
@@ -208,10 +207,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
208
207
|
_: 1
|
|
209
208
|
}, 8, ["modelValue", "onChange"])
|
|
210
209
|
]),
|
|
211
|
-
createTextVNode(),
|
|
212
210
|
createElementVNode("div", _hoisted_6, toDisplayString(_ctx.duration), 1)
|
|
213
211
|
])) : createCommentVNode("", true),
|
|
214
|
-
createTextVNode(),
|
|
215
212
|
_ctx.type == "icon" ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
216
213
|
createElementVNode("div", {
|
|
217
214
|
class: normalizeClass(["nut-audio-icon-box", _ctx.playing ? "nut-audio-icon-play" : "nut-audio-icon-stop"]),
|
|
@@ -222,23 +219,19 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
222
219
|
name: "service",
|
|
223
220
|
class: "nut-icon-am-rotate nut-icon-am-infinite"
|
|
224
221
|
})) : createCommentVNode("", true),
|
|
225
|
-
createTextVNode(),
|
|
226
222
|
!_ctx.playing ? (openBlock(), createBlock(_component_nut_icon, {
|
|
227
223
|
key: 1,
|
|
228
224
|
name: "service"
|
|
229
225
|
})) : createCommentVNode("", true)
|
|
230
226
|
], 2)
|
|
231
227
|
])) : createCommentVNode("", true),
|
|
232
|
-
createTextVNode(),
|
|
233
228
|
_ctx.type == "none" ? (openBlock(), createElementBlock("div", {
|
|
234
229
|
key: 2,
|
|
235
230
|
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.changeStatus && _ctx.changeStatus(...args))
|
|
236
231
|
}, [
|
|
237
232
|
renderSlot(_ctx.$slots, "default")
|
|
238
233
|
])) : createCommentVNode("", true),
|
|
239
|
-
createTextVNode(),
|
|
240
234
|
_ctx.type != "none" ? renderSlot(_ctx.$slots, "default", { key: 3 }) : createCommentVNode("", true),
|
|
241
|
-
createTextVNode(),
|
|
242
235
|
createElementVNode("audio", {
|
|
243
236
|
class: "audioMain",
|
|
244
237
|
controls: _ctx.type == "controls",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.6-beta.
|
|
2
|
+
* @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -45,7 +45,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
45
45
|
})) : createCommentVNode("", true),
|
|
46
46
|
renderSlot(_ctx.$slots, "default")
|
|
47
47
|
])) : createCommentVNode("", true),
|
|
48
|
-
createTextVNode(),
|
|
49
48
|
_ctx.type == "play" ? (openBlock(), createElementBlock("div", {
|
|
50
49
|
key: 1,
|
|
51
50
|
class: "nut-audio-operate-item",
|
|
@@ -61,10 +60,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
61
60
|
]),
|
|
62
61
|
_: 1
|
|
63
62
|
})) : createCommentVNode("", true),
|
|
64
|
-
createTextVNode(),
|
|
65
63
|
renderSlot(_ctx.$slots, "default")
|
|
66
64
|
])) : createCommentVNode("", true),
|
|
67
|
-
createTextVNode(),
|
|
68
65
|
_ctx.type == "forward" ? (openBlock(), createElementBlock("div", {
|
|
69
66
|
key: 2,
|
|
70
67
|
class: "nut-audio-operate-item",
|
|
@@ -82,7 +79,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
82
79
|
})) : createCommentVNode("", true),
|
|
83
80
|
renderSlot(_ctx.$slots, "default")
|
|
84
81
|
])) : createCommentVNode("", true),
|
|
85
|
-
createTextVNode(),
|
|
86
82
|
_ctx.type == "mute" ? (openBlock(), createElementBlock("div", {
|
|
87
83
|
key: 3,
|
|
88
84
|
class: "nut-audio-operate-item",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.6-beta.
|
|
2
|
+
* @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { toRefs, inject, ref, reactive, onMounted, computed, resolveComponent, openBlock, createElementBlock, normalizeStyle, normalizeClass, Fragment, createBlock, mergeProps, createCommentVNode,
|
|
6
|
+
import { toRefs, inject, ref, reactive, onMounted, computed, resolveComponent, openBlock, createElementBlock, normalizeStyle, normalizeClass, Fragment, createBlock, mergeProps, createCommentVNode, renderSlot, toDisplayString } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
9
|
import "../locale/lang";
|
|
@@ -94,13 +94,15 @@ const _sfc_main = create({
|
|
|
94
94
|
return slots.default;
|
|
95
95
|
});
|
|
96
96
|
const avatarLength = (children) => {
|
|
97
|
-
var _a, _b;
|
|
97
|
+
var _a, _b, _c;
|
|
98
98
|
state.maxIndex = children.length;
|
|
99
99
|
for (let i = 0; i < children.length; i++) {
|
|
100
|
-
children[i].
|
|
100
|
+
if (children[i] && children[i].classList && children[i].classList[0] == "nut-avatar") {
|
|
101
|
+
children[i].setAttribute("data-index", i + 1);
|
|
102
|
+
}
|
|
101
103
|
}
|
|
102
|
-
state.index = (_a = avatarRef == null ? void 0 : avatarRef.value) == null ? void 0 : _a.
|
|
103
|
-
if (state.index == state.maxIndex && state.index != ((
|
|
104
|
+
state.index = (_b = (_a = avatarRef == null ? void 0 : avatarRef.value) == null ? void 0 : _a.dataset) == null ? void 0 : _b.index;
|
|
105
|
+
if (state.index == state.maxIndex && state.index != ((_c = avatarGroup == null ? void 0 : avatarGroup.props) == null ? void 0 : _c.maxCount)) {
|
|
104
106
|
state.showMax = true;
|
|
105
107
|
}
|
|
106
108
|
};
|
|
@@ -154,14 +156,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
154
156
|
class: "icon",
|
|
155
157
|
name: _ctx.iconStyles
|
|
156
158
|
}), null, 16, ["name"])) : createCommentVNode("", true),
|
|
157
|
-
createTextVNode(),
|
|
158
159
|
_ctx.isShowText ? (openBlock(), createElementBlock("view", _hoisted_2, [
|
|
159
160
|
renderSlot(_ctx.$slots, "default")
|
|
160
161
|
])) : createCommentVNode("", true)
|
|
161
162
|
], 64)) : createCommentVNode("", true),
|
|
162
|
-
createTextVNode(),
|
|
163
163
|
_ctx.showMax ? (openBlock(), createElementBlock("view", _hoisted_3, toDisplayString(((_j = (_i = _ctx.avatarGroup) == null ? void 0 : _i.props) == null ? void 0 : _j.maxContent) ? (_l = (_k = _ctx.avatarGroup) == null ? void 0 : _k.props) == null ? void 0 : _l.maxContent : `+ ${_ctx.maxIndex - ((_n = (_m = _ctx.avatarGroup) == null ? void 0 : _m.props) == null ? void 0 : _n.maxCount)}`), 1)) : createCommentVNode("", true)
|
|
164
164
|
], 6)) : createCommentVNode("", true);
|
|
165
165
|
}
|
|
166
|
-
var
|
|
167
|
-
export {
|
|
166
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
167
|
+
export { index as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.6-beta.
|
|
2
|
+
* @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -46,7 +46,7 @@ const _sfc_main = create({
|
|
|
46
46
|
setup(props, { emit, slots }) {
|
|
47
47
|
toRefs(props);
|
|
48
48
|
const avatarGroupRef = ref(null);
|
|
49
|
-
const
|
|
49
|
+
const index2 = ref(0);
|
|
50
50
|
const classes = computed(() => {
|
|
51
51
|
const prefixCls = componentName;
|
|
52
52
|
return {
|
|
@@ -58,7 +58,7 @@ const _sfc_main = create({
|
|
|
58
58
|
provide("avatarGroup", {
|
|
59
59
|
props,
|
|
60
60
|
avatarGroupRef,
|
|
61
|
-
index
|
|
61
|
+
index: index2
|
|
62
62
|
});
|
|
63
63
|
return {
|
|
64
64
|
classes,
|
|
@@ -74,5 +74,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
74
74
|
renderSlot(_ctx.$slots, "default")
|
|
75
75
|
], 2);
|
|
76
76
|
}
|
|
77
|
-
var
|
|
78
|
-
export {
|
|
77
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
78
|
+
export { index as default };
|
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.6-beta.
|
|
2
|
+
* @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { reactive, computed,
|
|
6
|
+
import { reactive, computed, onMounted, onUnmounted, onActivated, onDeactivated, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, withModifiers, renderSlot, createVNode } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
9
|
import "../locale/lang";
|
|
10
10
|
const { componentName, create } = createComponent("backtop");
|
|
11
11
|
const _sfc_main = create({
|
|
12
12
|
props: {
|
|
13
|
-
height: {
|
|
14
|
-
type: String,
|
|
15
|
-
default: "100vh"
|
|
16
|
-
},
|
|
17
13
|
bottom: {
|
|
18
14
|
type: Number,
|
|
19
15
|
default: 20
|
|
@@ -22,20 +18,35 @@ const _sfc_main = create({
|
|
|
22
18
|
type: Number,
|
|
23
19
|
default: 10
|
|
24
20
|
},
|
|
21
|
+
elId: {
|
|
22
|
+
type: [String],
|
|
23
|
+
default: "body"
|
|
24
|
+
},
|
|
25
|
+
distance: {
|
|
26
|
+
type: Number,
|
|
27
|
+
default: 200
|
|
28
|
+
},
|
|
25
29
|
zIndex: {
|
|
26
30
|
type: Number,
|
|
27
31
|
default: 10
|
|
28
32
|
},
|
|
29
|
-
|
|
33
|
+
isAnimation: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: true
|
|
36
|
+
},
|
|
37
|
+
duration: {
|
|
30
38
|
type: Number,
|
|
31
|
-
default:
|
|
39
|
+
default: 1e3
|
|
32
40
|
}
|
|
33
41
|
},
|
|
34
42
|
emits: ["click"],
|
|
35
43
|
setup(props, { emit }) {
|
|
36
44
|
const state = reactive({
|
|
37
45
|
backTop: false,
|
|
38
|
-
scrollTop:
|
|
46
|
+
scrollTop: 0,
|
|
47
|
+
scrollEl: window,
|
|
48
|
+
startTime: 0,
|
|
49
|
+
keepAlive: false
|
|
39
50
|
});
|
|
40
51
|
const classes = computed(() => {
|
|
41
52
|
const prefixCls = componentName;
|
|
@@ -51,60 +62,102 @@ const _sfc_main = create({
|
|
|
51
62
|
zIndex: props.zIndex
|
|
52
63
|
};
|
|
53
64
|
});
|
|
54
|
-
|
|
55
|
-
state.
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
65
|
+
function scrollListener() {
|
|
66
|
+
if (state.scrollEl instanceof Window) {
|
|
67
|
+
state.scrollTop = state.scrollEl.pageYOffset;
|
|
68
|
+
} else {
|
|
69
|
+
state.scrollTop = state.scrollEl.scrollTop;
|
|
70
|
+
}
|
|
71
|
+
state.backTop = state.scrollTop >= props.distance;
|
|
72
|
+
}
|
|
73
|
+
function scroll(y = 0) {
|
|
74
|
+
if (state.scrollEl instanceof Window) {
|
|
75
|
+
window.scrollTo(0, y);
|
|
76
|
+
} else {
|
|
77
|
+
state.scrollEl.scrollTop = y;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
function scrollAnimation() {
|
|
81
|
+
let cid = requestAniFrame()(function fn() {
|
|
82
|
+
var t = props.duration - Math.max(0, state.startTime - +new Date() + props.duration);
|
|
83
|
+
var y = t * -state.scrollTop / props.duration + state.scrollTop;
|
|
84
|
+
scroll(y);
|
|
85
|
+
cid = requestAniFrame()(fn);
|
|
86
|
+
if (t == props.duration || y == 0) {
|
|
87
|
+
window.cancelAnimationFrame(cid);
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
function addEventListener() {
|
|
92
|
+
state.scrollEl.addEventListener("scroll", scrollListener, false);
|
|
93
|
+
state.scrollEl.addEventListener("resize", scrollListener, false);
|
|
94
|
+
}
|
|
95
|
+
function removeEventListener() {
|
|
96
|
+
state.scrollEl.removeEventListener("scroll", scrollListener, false);
|
|
97
|
+
state.scrollEl.removeEventListener("resize", scrollListener, false);
|
|
98
|
+
}
|
|
99
|
+
function initCancelAniFrame() {
|
|
100
|
+
window.cancelAnimationFrame = window.webkitCancelAnimationFrame;
|
|
101
|
+
}
|
|
102
|
+
function requestAniFrame() {
|
|
103
|
+
return window.requestAnimationFrame || window.webkitRequestAnimationFrame || function(callback) {
|
|
104
|
+
window.setTimeout(callback, 1e3 / 60);
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
function click(e) {
|
|
108
|
+
state.startTime = +new Date();
|
|
109
|
+
props.isAnimation && props.duration > 0 ? scrollAnimation() : scroll();
|
|
60
110
|
emit("click", e);
|
|
61
|
-
}
|
|
111
|
+
}
|
|
112
|
+
function init() {
|
|
113
|
+
if (props.elId && document.getElementById(props.elId)) {
|
|
114
|
+
state.scrollEl = document.getElementById(props.elId);
|
|
115
|
+
}
|
|
116
|
+
addEventListener();
|
|
117
|
+
initCancelAniFrame();
|
|
118
|
+
}
|
|
119
|
+
onMounted(() => {
|
|
120
|
+
if (props.distance == 0) {
|
|
121
|
+
state.backTop = true;
|
|
122
|
+
}
|
|
123
|
+
init();
|
|
124
|
+
});
|
|
125
|
+
onUnmounted(() => {
|
|
126
|
+
removeEventListener();
|
|
127
|
+
});
|
|
128
|
+
onActivated(() => {
|
|
129
|
+
if (state.keepAlive) {
|
|
130
|
+
state.keepAlive = false;
|
|
131
|
+
init();
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
onDeactivated(() => {
|
|
135
|
+
state.keepAlive = true;
|
|
136
|
+
removeEventListener();
|
|
137
|
+
});
|
|
62
138
|
return {
|
|
63
|
-
|
|
139
|
+
state,
|
|
64
140
|
classes,
|
|
65
141
|
style,
|
|
66
|
-
scroll,
|
|
67
142
|
click
|
|
68
143
|
};
|
|
69
144
|
}
|
|
70
145
|
});
|
|
71
146
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
72
|
-
const _component_scroll_view = resolveComponent(function() {
|
|
73
|
-
if (process.env.TARO_ENV === "h5") {
|
|
74
|
-
return "taro-scroll-view";
|
|
75
|
-
} else {
|
|
76
|
-
return "scroll-view";
|
|
77
|
-
}
|
|
78
|
-
}());
|
|
79
147
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
80
|
-
return openBlock(), createElementBlock("
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
createTextVNode(),
|
|
94
|
-
createElementVNode("view", {
|
|
95
|
-
class: normalizeClass(_ctx.classes),
|
|
96
|
-
style: normalizeStyle(_ctx.style),
|
|
97
|
-
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.click && _ctx.click(...args), ["stop"]))
|
|
98
|
-
}, [
|
|
99
|
-
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
100
|
-
createVNode(_component_nut_icon, {
|
|
101
|
-
size: "19px",
|
|
102
|
-
class: "nut-backtop-main",
|
|
103
|
-
name: "top"
|
|
104
|
-
})
|
|
105
|
-
])
|
|
106
|
-
], 6)
|
|
107
|
-
]);
|
|
148
|
+
return openBlock(), createElementBlock("div", {
|
|
149
|
+
class: normalizeClass(_ctx.classes),
|
|
150
|
+
style: normalizeStyle(_ctx.style),
|
|
151
|
+
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.click && _ctx.click(...args), ["stop"]))
|
|
152
|
+
}, [
|
|
153
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
154
|
+
createVNode(_component_nut_icon, {
|
|
155
|
+
size: "19px",
|
|
156
|
+
class: "nut-backtop-main",
|
|
157
|
+
name: "top"
|
|
158
|
+
})
|
|
159
|
+
])
|
|
160
|
+
], 6);
|
|
108
161
|
}
|
|
109
|
-
var
|
|
110
|
-
export {
|
|
162
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
163
|
+
export { index as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.6-beta.
|
|
2
|
+
* @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { reactive, computed, openBlock, createElementBlock, createElementVNode,
|
|
6
|
+
import { reactive, computed, openBlock, createElementBlock, withDirectives, createElementVNode, normalizeStyle, renderSlot, vShow, toDisplayString, normalizeClass } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
9
|
import "../locale/lang";
|
|
@@ -70,24 +70,26 @@ const _sfc_main = create({
|
|
|
70
70
|
}
|
|
71
71
|
});
|
|
72
72
|
const _hoisted_1 = { class: "nut-badge" };
|
|
73
|
-
const _hoisted_2 =
|
|
74
|
-
const _hoisted_3 = ["textContent"];
|
|
73
|
+
const _hoisted_2 = ["textContent"];
|
|
75
74
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
76
75
|
return openBlock(), createElementBlock("view", _hoisted_1, [
|
|
77
|
-
createElementVNode("view",
|
|
76
|
+
withDirectives(createElementVNode("view", {
|
|
77
|
+
class: "slot-icons",
|
|
78
|
+
style: normalizeStyle(_ctx.stl)
|
|
79
|
+
}, [
|
|
78
80
|
renderSlot(_ctx.$slots, "icons")
|
|
81
|
+
], 4), [
|
|
82
|
+
[vShow, !_ctx.hidden && !_ctx.dot]
|
|
79
83
|
]),
|
|
80
|
-
createTextVNode(),
|
|
81
84
|
renderSlot(_ctx.$slots, "default"),
|
|
82
|
-
createTextVNode(),
|
|
83
85
|
withDirectives(createElementVNode("view", {
|
|
84
86
|
textContent: toDisplayString(_ctx.content),
|
|
85
87
|
class: normalizeClass(["nut-badge__content sup", { "is-dot": _ctx.dot }]),
|
|
86
88
|
style: normalizeStyle(_ctx.stl)
|
|
87
|
-
}, null, 14,
|
|
89
|
+
}, null, 14, _hoisted_2), [
|
|
88
90
|
[vShow, !_ctx.hidden && (_ctx.content || _ctx.dot)]
|
|
89
91
|
])
|
|
90
92
|
]);
|
|
91
93
|
}
|
|
92
|
-
var
|
|
93
|
-
export {
|
|
94
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
95
|
+
export { index as default };
|