@nutui/nutui 3.1.23-beta.6 → 3.2.2-beta.1
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 +63 -1
- package/dist/nutui.es.js +1475 -1070
- package/dist/nutui.umd.js +1468 -1063
- package/dist/packages/_es/ActionSheet.js +4 -22
- package/dist/packages/_es/Address.js +79 -71
- package/dist/packages/_es/AddressList.js +7 -5
- package/dist/packages/_es/Animate.js +2 -21
- package/dist/packages/_es/Audio.js +39 -68
- package/dist/packages/_es/AudioOperate.js +3 -24
- package/dist/packages/_es/Avatar.js +8 -24
- package/dist/packages/_es/AvatarGroup.js +1 -1
- package/dist/packages/_es/BackTop.js +1 -1
- package/dist/packages/_es/Badge.js +1 -1
- package/dist/packages/_es/Barrage.js +7 -4
- package/dist/packages/_es/Button.js +6 -5
- package/dist/packages/_es/Calendar.js +10 -4
- package/dist/packages/_es/CalendarItem.js +1 -1
- package/dist/packages/_es/Card.js +1 -1
- package/dist/packages/_es/Cascader.js +51 -65
- package/dist/packages/_es/Category.js +2 -2
- package/dist/packages/_es/CategoryPane.js +10 -10
- package/dist/packages/_es/Cell.js +8 -9
- package/dist/packages/_es/CellGroup.js +1 -1
- package/dist/packages/_es/Checkbox.js +31 -17
- package/dist/packages/_es/CheckboxGroup.js +14 -7
- package/dist/packages/_es/CircleProgress.js +1 -1
- package/dist/packages/_es/Col.js +5 -11
- package/dist/packages/_es/Collapse.js +22 -19
- package/dist/packages/_es/CollapseItem.js +30 -42
- package/dist/packages/_es/Comment.js +13 -9
- package/dist/packages/_es/ConfigProvider.js +8 -4
- package/dist/packages/_es/CountDown.js +40 -46
- package/dist/packages/_es/CountUp.js +39 -40
- package/dist/packages/_es/DatePicker.js +25 -33
- package/dist/packages/_es/Dialog.js +12 -27
- package/dist/packages/_es/Divider.js +7 -24
- package/dist/packages/_es/Drag.js +1 -1
- package/dist/packages/_es/Ecard.js +7 -4
- package/dist/packages/_es/Elevator.js +25 -38
- package/dist/packages/_es/Ellipsis.js +14 -28
- package/dist/packages/_es/Empty.js +1 -1
- package/dist/packages/_es/FixedNav.js +18 -14
- package/dist/packages/_es/Form.js +8 -4
- package/dist/packages/_es/FormItem.js +1 -1
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +6 -5
- package/dist/packages/_es/Icon.js +15 -11
- package/dist/packages/_es/Image.js +8 -24
- package/dist/packages/_es/ImagePreview.js +24 -39
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +8 -33
- package/dist/packages/_es/Input.js +75 -69
- package/dist/packages/_es/InputNumber.js +20 -14
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +10 -25
- package/dist/packages/_es/Menu.js +17 -10
- package/dist/packages/_es/MenuItem.js +5 -26
- package/dist/packages/_es/Navbar.js +10 -8
- package/dist/packages/_es/NoticeBar.js +20 -31
- package/dist/packages/_es/Notify.js +16 -32
- package/dist/packages/_es/NumberKeyboard.js +21 -16
- package/dist/packages/_es/OldPicker.js +47 -46
- package/dist/packages/_es/OverLay.js +11 -23
- package/dist/packages/_es/Pagination.js +1 -1
- package/dist/packages/_es/Picker.js +81 -59
- package/dist/packages/_es/Popover.js +58 -58
- package/dist/packages/_es/Popup.js +38 -43
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +4 -5
- package/dist/packages/_es/PullRefresh.js +5 -20
- package/dist/packages/_es/Radio.js +25 -13
- package/dist/packages/_es/RadioGroup.js +12 -5
- package/dist/packages/_es/Range.js +20 -33
- package/dist/packages/_es/Rate.js +5 -24
- package/dist/packages/_es/Row.js +5 -11
- package/dist/packages/_es/SearchBar.js +5 -24
- package/dist/packages/_es/ShortPassword.js +18 -11
- package/dist/packages/_es/SideNavBar.js +4 -22
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +15 -23
- package/dist/packages/_es/Skeleton.js +1 -1
- package/dist/packages/_es/Sku.js +24 -32
- package/dist/packages/_es/Step.js +9 -26
- package/dist/packages/_es/Steps.js +8 -4
- package/dist/packages/_es/Sticky.js +23 -12
- package/dist/packages/_es/SubSideNavBar.js +4 -22
- package/dist/packages/_es/Swipe.js +5 -24
- package/dist/packages/_es/Swiper.js +23 -14
- package/dist/packages/_es/SwiperItem.js +1 -1
- package/dist/packages/_es/Switch.js +15 -11
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +7 -4
- package/dist/packages/_es/TabbarItem.js +13 -14
- package/dist/packages/_es/Table.js +10 -25
- package/dist/packages/_es/Tabs.js +20 -29
- package/dist/packages/_es/Tag.js +11 -15
- package/dist/packages/_es/TextArea.js +8 -5
- package/dist/packages/_es/TimeDetail.js +5 -24
- package/dist/packages/_es/TimePannel.js +4 -22
- package/dist/packages/_es/TimeSelect.js +1 -1
- package/dist/packages/_es/Toast.js +22 -39
- package/dist/packages/_es/Uploader.js +54 -54
- package/dist/packages/_es/Video.js +22 -33
- package/dist/packages/_es/WaterMark.js +31 -44
- package/dist/packages/_es/common.js +21 -11
- package/dist/packages/_es/component.js +5 -5
- package/dist/packages/_es/index.js +1 -1
- package/dist/packages/_es/index2.js +1 -1
- package/dist/packages/_es/index3.js +1 -1
- package/dist/packages/_es/index4.js +1 -1
- package/dist/packages/_es/index5.js +26 -35
- 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 +1 -111
- package/dist/packages/actionsheet/index.scss +17 -0
- package/dist/packages/address/index.scss +60 -0
- package/dist/packages/addresslist/index.scss +57 -17
- package/dist/packages/audio/index.scss +8 -0
- package/dist/packages/barrage/index.scss +7 -0
- package/dist/packages/button/index.scss +1 -0
- package/dist/packages/card/index.scss +8 -1
- package/dist/packages/category/index.scss +25 -4
- package/dist/packages/categorypane/index.scss +18 -65
- package/dist/packages/circleprogress/index.scss +6 -0
- package/dist/packages/collapseitem/index.scss +21 -0
- package/dist/packages/comment/index.scss +37 -0
- package/dist/packages/countup/index.scss +24 -3
- package/dist/packages/ecard/index.scss +31 -1
- package/dist/packages/elevator/index.scss +16 -0
- package/dist/packages/empty/index.scss +6 -0
- package/dist/packages/fixednav/index.scss +7 -0
- package/dist/packages/image/index.scss +12 -0
- package/dist/packages/infiniteloading/index.scss +18 -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/menu/index.scss +14 -2
- package/dist/packages/menuitem/index.scss +8 -0
- package/dist/packages/noticebar/index.scss +13 -0
- package/dist/packages/numberkeyboard/index.scss +10 -0
- package/dist/packages/picker/index.scss +33 -0
- package/dist/packages/popup/index.scss +10 -0
- package/dist/packages/radio/index.scss +1 -0
- package/dist/packages/shortpassword/index.scss +20 -0
- package/dist/packages/sidenavbaritem/index.scss +9 -0
- package/dist/packages/sku/index.scss +40 -0
- package/dist/packages/step/index.scss +52 -0
- package/dist/packages/subsidenavbar/index.scss +12 -0
- package/dist/packages/swiper/index.scss +2 -0
- package/dist/packages/swiperitem/index.scss +3 -0
- package/dist/packages/tag/index.scss +20 -0
- package/dist/packages/watermark/index.scss +1 -1
- package/dist/smartips/attributes.json +38 -2
- package/dist/smartips/tags.json +14 -4
- package/dist/smartips/web-types.json +86 -4
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +51 -51
- package/dist/styles/themes/jdb.scss +51 -51
- package/dist/styles/themes/jdt.scss +51 -51
- package/dist/styles/variables-jdb.scss +28 -7
- package/dist/styles/variables-jdt.scss +28 -7
- package/dist/styles/variables.scss +27 -7
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +1 -1
- package/dist/types/__VUE/address/index.vue.d.ts +1 -1
- package/dist/types/__VUE/addresslist/index.vue.d.ts +1 -1
- package/dist/types/__VUE/audio/index.vue.d.ts +4 -1
- package/dist/types/__VUE/audiooperate/index.vue.d.ts +15 -72
- package/dist/types/__VUE/avatargroup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/backtop/index.vue.d.ts +1 -1
- package/dist/types/__VUE/calendar/index.vue.d.ts +7 -0
- package/dist/types/__VUE/calendaritem/index.vue.d.ts +2 -2
- package/dist/types/__VUE/categorypane/index.vue.d.ts +1 -1
- package/dist/types/__VUE/cell/index.vue.d.ts +9 -2
- package/dist/types/__VUE/cellgroup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/checkboxgroup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/circleprogress/index.vue.d.ts +1 -1
- package/dist/types/__VUE/col/index.vue.d.ts +2 -5
- package/dist/types/__VUE/collapse/index.vue.d.ts +2 -2
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/configprovider/index.vue.d.ts +1 -1
- package/dist/types/__VUE/countdown/index.vue.d.ts +1 -1
- package/dist/types/__VUE/countup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/datepicker/index.vue.d.ts +1 -1
- package/dist/types/__VUE/fixednav/common.d.ts +56 -0
- package/dist/types/__VUE/fixednav/index.vue.d.ts +17 -9
- package/dist/types/__VUE/formitem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/griditem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +1 -1
- package/dist/types/__VUE/imagepreview/index.d.ts +7 -6
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +4 -4
- package/dist/types/__VUE/imagepreview/types.d.ts +7 -0
- package/dist/types/__VUE/infiniteloading/index.vue.d.ts +1 -1
- package/dist/types/__VUE/input/index.vue.d.ts +4 -9
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +15 -1
- package/dist/types/__VUE/menu/index.vue.d.ts +3 -0
- package/dist/types/__VUE/menuitem/index.vue.d.ts +1 -4
- package/dist/types/__VUE/noticebar/index.vue.d.ts +4 -4
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +1 -1
- package/dist/types/__VUE/oldpicker/Column.vue.d.ts +1 -1
- package/dist/types/__VUE/oldpicker/index.vue.d.ts +1 -1
- package/dist/types/__VUE/overlay/index.vue.d.ts +1 -1
- package/dist/types/__VUE/picker/Column.vue.d.ts +8 -0
- package/dist/types/__VUE/picker/index.vue.d.ts +28 -13
- package/dist/types/__VUE/popover/index.vue.d.ts +2 -2
- package/dist/types/__VUE/pullrefresh/index.vue.d.ts +1 -1
- package/dist/types/__VUE/radiogroup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/row/index.vue.d.ts +2 -5
- package/dist/types/__VUE/searchbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
- package/dist/types/__VUE/sidenavbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/sidenavbaritem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/signature/index.vue.d.ts +5 -2
- package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/swiperitem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/switch/index.vue.d.ts +2 -2
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/tabpane/index.vue.d.ts +1 -1
- package/dist/types/__VUE/textarea/index.vue.d.ts +1 -1
- package/dist/types/__VUE/timedetail/index.vue.d.ts +1 -1
- package/dist/types/__VUE/timepannel/index.vue.d.ts +1 -1
- package/dist/types/__VUE/timeselect/index.vue.d.ts +1 -1
- package/dist/types/__VUE/uploader/index.vue.d.ts +7 -0
- package/dist/types/__VUE/uploader/uploader.d.ts +1 -0
- package/dist/types/__VUE/watermark/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +2 -1
- package/dist/packages/index.d.ts +0 -3
|
@@ -1,28 +1,9 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
1
|
/*!
|
|
21
|
-
* @nutui/nutui v3.
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
|
|
22
3
|
* (c) 2022 @jdf2e.
|
|
23
4
|
* Released under the MIT License.
|
|
24
5
|
*/
|
|
25
|
-
import { ref, toRefs, computed, onMounted, onUnmounted, watch, nextTick, resolveComponent, openBlock, createElementBlock, Fragment, createElementVNode, normalizeClass, withModifiers, renderSlot, createVNode, withCtx, createCommentVNode, renderList, toDisplayString } from "vue";
|
|
6
|
+
import { ref, toRefs, computed, onMounted, onUnmounted, watch, nextTick, resolveComponent, openBlock, createElementBlock, Fragment, createElementVNode, normalizeClass, withModifiers, renderSlot, createVNode, withCtx, createCommentVNode, renderList, mergeProps, toDisplayString } from "vue";
|
|
26
7
|
import { c as createComponent } from "./component.js";
|
|
27
8
|
import Popup, { popupProps } from "./Popup.js";
|
|
28
9
|
import Button from "./Button.js";
|
|
@@ -57,32 +38,47 @@ function isShadowRoot(node) {
|
|
|
57
38
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
58
39
|
}
|
|
59
40
|
var round = Math.round;
|
|
60
|
-
function
|
|
41
|
+
function getUAString() {
|
|
42
|
+
var uaData = navigator.userAgentData;
|
|
43
|
+
if (uaData != null && uaData.brands) {
|
|
44
|
+
return uaData.brands.map(function(item) {
|
|
45
|
+
return item.brand + "/" + item.version;
|
|
46
|
+
}).join(" ");
|
|
47
|
+
}
|
|
48
|
+
return navigator.userAgent;
|
|
49
|
+
}
|
|
50
|
+
function isLayoutViewport() {
|
|
51
|
+
return !/^((?!chrome|android).)*safari/i.test(getUAString());
|
|
52
|
+
}
|
|
53
|
+
function getBoundingClientRect(element, includeScale, isFixedStrategy) {
|
|
61
54
|
if (includeScale === void 0) {
|
|
62
55
|
includeScale = false;
|
|
63
56
|
}
|
|
64
|
-
|
|
57
|
+
if (isFixedStrategy === void 0) {
|
|
58
|
+
isFixedStrategy = false;
|
|
59
|
+
}
|
|
60
|
+
var clientRect = element.getBoundingClientRect();
|
|
65
61
|
var scaleX = 1;
|
|
66
62
|
var scaleY = 1;
|
|
67
|
-
if (isHTMLElement(element)
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
63
|
+
if (includeScale && isHTMLElement(element)) {
|
|
64
|
+
scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;
|
|
65
|
+
scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;
|
|
66
|
+
}
|
|
67
|
+
var _ref = isElement(element) ? getWindow(element) : window, visualViewport = _ref.visualViewport;
|
|
68
|
+
var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
|
|
69
|
+
var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
|
|
70
|
+
var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;
|
|
71
|
+
var width = clientRect.width / scaleX;
|
|
72
|
+
var height = clientRect.height / scaleY;
|
|
77
73
|
return {
|
|
78
|
-
width
|
|
79
|
-
height
|
|
80
|
-
top:
|
|
81
|
-
right:
|
|
82
|
-
bottom:
|
|
83
|
-
left:
|
|
84
|
-
x
|
|
85
|
-
y
|
|
74
|
+
width,
|
|
75
|
+
height,
|
|
76
|
+
top: y,
|
|
77
|
+
right: x + width,
|
|
78
|
+
bottom: y + height,
|
|
79
|
+
left: x,
|
|
80
|
+
x,
|
|
81
|
+
y
|
|
86
82
|
};
|
|
87
83
|
}
|
|
88
84
|
function getWindowScroll(node) {
|
|
@@ -136,7 +132,7 @@ function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
|
|
|
136
132
|
var isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
137
133
|
var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
|
|
138
134
|
var documentElement = getDocumentElement(offsetParent);
|
|
139
|
-
var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled);
|
|
135
|
+
var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);
|
|
140
136
|
var scroll = {
|
|
141
137
|
scrollLeft: 0,
|
|
142
138
|
scrollTop: 0
|
|
@@ -218,8 +214,8 @@ function getTrueOffsetParent(element) {
|
|
|
218
214
|
return element.offsetParent;
|
|
219
215
|
}
|
|
220
216
|
function getContainingBlock(element) {
|
|
221
|
-
var isFirefox =
|
|
222
|
-
var isIE =
|
|
217
|
+
var isFirefox = /firefox/i.test(getUAString());
|
|
218
|
+
var isIE = /Trident/i.test(getUAString());
|
|
223
219
|
if (isIE && isHTMLElement(element)) {
|
|
224
220
|
var elementCss = getComputedStyle(element);
|
|
225
221
|
if (elementCss.position === "fixed") {
|
|
@@ -806,7 +802,8 @@ const _sfc_main = create({
|
|
|
806
802
|
[Popup.name]: Popup,
|
|
807
803
|
[Button.name]: Button
|
|
808
804
|
},
|
|
809
|
-
props:
|
|
805
|
+
props: {
|
|
806
|
+
...popupProps,
|
|
810
807
|
list: {
|
|
811
808
|
type: Array,
|
|
812
809
|
default: []
|
|
@@ -831,7 +828,7 @@ const _sfc_main = create({
|
|
|
831
828
|
type: Boolean,
|
|
832
829
|
default: true
|
|
833
830
|
}
|
|
834
|
-
}
|
|
831
|
+
},
|
|
835
832
|
emits: ["update", "update:visible", "close", "choose", "open"],
|
|
836
833
|
setup(props, { emit }) {
|
|
837
834
|
let popper;
|
|
@@ -858,7 +855,6 @@ const _sfc_main = create({
|
|
|
858
855
|
};
|
|
859
856
|
});
|
|
860
857
|
const createPopperInstance = () => {
|
|
861
|
-
console.log(reference.value, popoverRef.value);
|
|
862
858
|
if (reference.value && popoverRef.value) {
|
|
863
859
|
return createPopper(reference.value, popoverRef.value.popupRef, {
|
|
864
860
|
placement: props.location,
|
|
@@ -881,7 +877,6 @@ const _sfc_main = create({
|
|
|
881
877
|
return null;
|
|
882
878
|
};
|
|
883
879
|
const clickOverlay = () => {
|
|
884
|
-
console.log("\u5173\u95ED");
|
|
885
880
|
};
|
|
886
881
|
const uploadLocation = () => {
|
|
887
882
|
nextTick(() => {
|
|
@@ -889,7 +884,6 @@ const _sfc_main = create({
|
|
|
889
884
|
return;
|
|
890
885
|
if (!popper) {
|
|
891
886
|
popper = createPopperInstance();
|
|
892
|
-
console.log(popper);
|
|
893
887
|
} else {
|
|
894
888
|
popper.setOptions({
|
|
895
889
|
placement: props.location
|
|
@@ -909,13 +903,19 @@ const _sfc_main = create({
|
|
|
909
903
|
onUnmounted(() => {
|
|
910
904
|
window.removeEventListener("click", clickAway, true);
|
|
911
905
|
});
|
|
912
|
-
watch(
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
906
|
+
watch(
|
|
907
|
+
() => props.visible,
|
|
908
|
+
(value) => {
|
|
909
|
+
showPopup.value = value;
|
|
910
|
+
uploadLocation();
|
|
911
|
+
}
|
|
912
|
+
);
|
|
913
|
+
watch(
|
|
914
|
+
() => props.location,
|
|
915
|
+
(value) => {
|
|
916
|
+
uploadLocation();
|
|
917
|
+
}
|
|
918
|
+
);
|
|
919
919
|
const update = (val) => {
|
|
920
920
|
emit("update", val);
|
|
921
921
|
emit("update:visible", val);
|
|
@@ -987,10 +987,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
987
987
|
onClick: withModifiers(($event) => _ctx.chooseItem(item, index2), ["stop"])
|
|
988
988
|
}, [
|
|
989
989
|
item.icon ? renderSlot(_ctx.$slots, "default", { key: 0 }, () => [
|
|
990
|
-
createVNode(_component_nut_icon, {
|
|
990
|
+
createVNode(_component_nut_icon, mergeProps(_ctx.$attrs, {
|
|
991
991
|
class: "item-img",
|
|
992
992
|
name: item.icon
|
|
993
|
-
}, null,
|
|
993
|
+
}), null, 16, ["name"])
|
|
994
994
|
]) : createCommentVNode("", true),
|
|
995
995
|
createElementVNode("view", _hoisted_2, toDisplayString(item.name), 1)
|
|
996
996
|
], 10, _hoisted_1);
|
|
@@ -1,28 +1,9 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
1
|
/*!
|
|
21
|
-
* @nutui/nutui v3.
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
|
|
22
3
|
* (c) 2022 @jdf2e.
|
|
23
4
|
* Released under the MIT License.
|
|
24
5
|
*/
|
|
25
|
-
import { ref, reactive, computed, onMounted, onBeforeUnmount, onBeforeMount, onActivated, onDeactivated, watch, toRefs, resolveComponent, openBlock, createBlock, Teleport, normalizeClass, normalizeStyle, createCommentVNode, createVNode, Transition, withCtx, withDirectives, createElementVNode, renderSlot, createElementBlock, vShow } from "vue";
|
|
6
|
+
import { ref, reactive, computed, onMounted, onBeforeUnmount, onBeforeMount, onActivated, onDeactivated, watch, toRefs, resolveComponent, openBlock, createBlock, Teleport, normalizeClass, normalizeStyle, createCommentVNode, createVNode, Transition, withCtx, withDirectives, createElementVNode, renderSlot, createElementBlock, mergeProps, vShow } from "vue";
|
|
26
7
|
import overlay, { overlayProps } from "./OverLay.js";
|
|
27
8
|
import _sfc_main$1 from "./Icon.js";
|
|
28
9
|
import { c as createComponent } from "./component.js";
|
|
@@ -48,7 +29,8 @@ const useLockScroll = (isLock) => {
|
|
|
48
29
|
};
|
|
49
30
|
const { componentName, create } = createComponent("popup");
|
|
50
31
|
let _zIndex = 2e3;
|
|
51
|
-
const popupProps =
|
|
32
|
+
const popupProps = {
|
|
33
|
+
...overlayProps,
|
|
52
34
|
position: {
|
|
53
35
|
type: String,
|
|
54
36
|
default: "center"
|
|
@@ -97,13 +79,15 @@ const popupProps = __spreadProps(__spreadValues({}, overlayProps), {
|
|
|
97
79
|
type: Boolean,
|
|
98
80
|
default: false
|
|
99
81
|
}
|
|
100
|
-
}
|
|
82
|
+
};
|
|
101
83
|
const _sfc_main = create({
|
|
102
84
|
components: {
|
|
103
85
|
[overlay.name]: overlay,
|
|
104
86
|
[_sfc_main$1.name]: _sfc_main$1
|
|
105
87
|
},
|
|
106
|
-
props:
|
|
88
|
+
props: {
|
|
89
|
+
...popupProps
|
|
90
|
+
},
|
|
107
91
|
emits: ["click", "click-close-icon", "open", "close", "opend", "closed", "update:visible", "click-overlay"],
|
|
108
92
|
setup(props, { emit }) {
|
|
109
93
|
const popupRef = ref();
|
|
@@ -127,10 +111,11 @@ const _sfc_main = create({
|
|
|
127
111
|
};
|
|
128
112
|
});
|
|
129
113
|
const popStyle = computed(() => {
|
|
130
|
-
return
|
|
114
|
+
return {
|
|
131
115
|
zIndex: state.zIndex,
|
|
132
|
-
animationDuration: props.duration ? `${props.duration}s` : "initial"
|
|
133
|
-
|
|
116
|
+
animationDuration: props.duration ? `${props.duration}s` : "initial",
|
|
117
|
+
...props.style
|
|
118
|
+
};
|
|
134
119
|
});
|
|
135
120
|
const open = () => {
|
|
136
121
|
if (props.zIndex != 2e3) {
|
|
@@ -197,20 +182,30 @@ const _sfc_main = create({
|
|
|
197
182
|
state.keepAlive = true;
|
|
198
183
|
}
|
|
199
184
|
});
|
|
200
|
-
watch(
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
185
|
+
watch(
|
|
186
|
+
() => props.visible,
|
|
187
|
+
(value) => {
|
|
188
|
+
if (value) {
|
|
189
|
+
open();
|
|
190
|
+
} else {
|
|
191
|
+
close();
|
|
192
|
+
}
|
|
205
193
|
}
|
|
206
|
-
|
|
207
|
-
watch(
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
194
|
+
);
|
|
195
|
+
watch(
|
|
196
|
+
() => props.position,
|
|
197
|
+
(value) => {
|
|
198
|
+
value === "center" ? state.transitionName = "popup-fade" : state.transitionName = `popup-slide-${value}`;
|
|
199
|
+
}
|
|
200
|
+
);
|
|
201
|
+
watch(
|
|
202
|
+
() => props.closeable,
|
|
203
|
+
(value) => {
|
|
204
|
+
state.closed = value;
|
|
205
|
+
}
|
|
206
|
+
);
|
|
207
|
+
return {
|
|
208
|
+
...toRefs(state),
|
|
214
209
|
popStyle,
|
|
215
210
|
classes,
|
|
216
211
|
onClick,
|
|
@@ -219,7 +214,7 @@ const _sfc_main = create({
|
|
|
219
214
|
onOpened,
|
|
220
215
|
onClosed,
|
|
221
216
|
popupRef
|
|
222
|
-
}
|
|
217
|
+
};
|
|
223
218
|
}
|
|
224
219
|
});
|
|
225
220
|
const _hoisted_1 = { key: 1 };
|
|
@@ -259,10 +254,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
259
254
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClickCloseIcon && _ctx.onClickCloseIcon(...args)),
|
|
260
255
|
class: normalizeClass(["nutui-popup__close-icon", "nutui-popup__close-icon--" + _ctx.closeIconPosition])
|
|
261
256
|
}, [
|
|
262
|
-
createVNode(_component_nut_icon, {
|
|
257
|
+
createVNode(_component_nut_icon, mergeProps(_ctx.$attrs, {
|
|
263
258
|
name: _ctx.closeIcon,
|
|
264
259
|
size: "12px"
|
|
265
|
-
}, null,
|
|
260
|
+
}), null, 16, ["name"])
|
|
266
261
|
], 2)) : createCommentVNode("", true)
|
|
267
262
|
], 6), [
|
|
268
263
|
[vShow, _ctx.visible]
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { useSlots, ref, computed, onMounted, resolveComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, toDisplayString, createCommentVNode, renderSlot, createBlock } from "vue";
|
|
6
|
+
import { useSlots, ref, computed, onMounted, resolveComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, toDisplayString, createCommentVNode, renderSlot, createBlock, mergeProps } 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";
|
|
@@ -138,12 +138,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
138
138
|
_ctx.status == "active" || _ctx.status == "" ? (openBlock(), createElementBlock("span", {
|
|
139
139
|
key: 0,
|
|
140
140
|
style: normalizeStyle(_ctx.textStyle)
|
|
141
|
-
}, toDisplayString(_ctx.percentage) + toDisplayString(_ctx.isShowPercentage ? "%" : ""), 5)) : _ctx.status == "icon" ? (openBlock(), createBlock(_component_nut_icon, {
|
|
142
|
-
key: 1,
|
|
141
|
+
}, toDisplayString(_ctx.percentage) + toDisplayString(_ctx.isShowPercentage ? "%" : ""), 5)) : _ctx.status == "icon" ? (openBlock(), createBlock(_component_nut_icon, mergeProps({ key: 1 }, _ctx.$attrs, {
|
|
143
142
|
size: "16px",
|
|
144
143
|
name: _ctx.iconName,
|
|
145
144
|
color: _ctx.iconColor
|
|
146
|
-
}, null,
|
|
145
|
+
}), null, 16, ["name", "color"])) : createCommentVNode("", true)
|
|
147
146
|
], 4)) : createCommentVNode("", true)
|
|
148
147
|
]);
|
|
149
148
|
}
|
|
@@ -1,21 +1,5 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
-
var __spreadValues = (a, b) => {
|
|
7
|
-
for (var prop in b || (b = {}))
|
|
8
|
-
if (__hasOwnProp.call(b, prop))
|
|
9
|
-
__defNormalProp(a, prop, b[prop]);
|
|
10
|
-
if (__getOwnPropSymbols)
|
|
11
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
-
if (__propIsEnum.call(b, prop))
|
|
13
|
-
__defNormalProp(a, prop, b[prop]);
|
|
14
|
-
}
|
|
15
|
-
return a;
|
|
16
|
-
};
|
|
17
1
|
/*!
|
|
18
|
-
* @nutui/nutui v3.
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
|
|
19
3
|
* (c) 2022 @jdf2e.
|
|
20
4
|
* Released under the MIT License.
|
|
21
5
|
*/
|
|
@@ -319,7 +303,7 @@ const _sfc_main = create({
|
|
|
319
303
|
}
|
|
320
304
|
}
|
|
321
305
|
};
|
|
322
|
-
return
|
|
306
|
+
return {
|
|
323
307
|
scroller,
|
|
324
308
|
touchStart,
|
|
325
309
|
touchMove,
|
|
@@ -331,8 +315,9 @@ const _sfc_main = create({
|
|
|
331
315
|
reachLeft,
|
|
332
316
|
getBottomStyle,
|
|
333
317
|
refreshTopTem,
|
|
334
|
-
refreshBottomTem
|
|
335
|
-
|
|
318
|
+
refreshBottomTem,
|
|
319
|
+
...toRefs(state)
|
|
320
|
+
};
|
|
336
321
|
}
|
|
337
322
|
});
|
|
338
323
|
const _hoisted_1 = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -67,15 +67,23 @@ const _sfc_main = create({
|
|
|
67
67
|
};
|
|
68
68
|
const renderLabel = () => {
|
|
69
69
|
var _a;
|
|
70
|
-
return h(
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
return h(
|
|
71
|
+
"view",
|
|
72
|
+
{
|
|
73
|
+
class: `${componentName}__label ${props.disabled ? `${componentName}__label--disabled` : ""}`
|
|
74
|
+
},
|
|
75
|
+
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
76
|
+
);
|
|
73
77
|
};
|
|
74
78
|
const renderButton = () => {
|
|
75
79
|
var _a;
|
|
76
|
-
return h(
|
|
77
|
-
|
|
78
|
-
|
|
80
|
+
return h(
|
|
81
|
+
"view",
|
|
82
|
+
{
|
|
83
|
+
class: `${componentName}__button ${isCurValue.value && `${componentName}__button--active`} ${props.disabled ? `${componentName}__button--disabled` : ""}`
|
|
84
|
+
},
|
|
85
|
+
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
86
|
+
);
|
|
79
87
|
};
|
|
80
88
|
const handleClick = () => {
|
|
81
89
|
if (isCurValue.value || props.disabled)
|
|
@@ -84,12 +92,16 @@ const _sfc_main = create({
|
|
|
84
92
|
};
|
|
85
93
|
let reverseState = position.value === "left";
|
|
86
94
|
return () => {
|
|
87
|
-
return h(
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
95
|
+
return h(
|
|
96
|
+
"view",
|
|
97
|
+
{
|
|
98
|
+
class: `${componentName} ${componentName}--${props.shape} ${reverseState ? `${componentName}--reverse` : ""}`,
|
|
99
|
+
onClick: handleClick
|
|
100
|
+
},
|
|
101
|
+
[
|
|
102
|
+
props.shape == "button" ? renderButton() : reverseState ? [renderLabel(), renderIcon()] : [renderIcon(), renderLabel()]
|
|
103
|
+
]
|
|
104
|
+
);
|
|
93
105
|
};
|
|
94
106
|
}
|
|
95
107
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -30,12 +30,19 @@ const _sfc_main = create({
|
|
|
30
30
|
position: props.textPosition,
|
|
31
31
|
updateValue
|
|
32
32
|
});
|
|
33
|
-
watch(
|
|
33
|
+
watch(
|
|
34
|
+
() => props.modelValue,
|
|
35
|
+
(value) => emit("change", value)
|
|
36
|
+
);
|
|
34
37
|
return () => {
|
|
35
38
|
var _a;
|
|
36
|
-
return h(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
+
return h(
|
|
40
|
+
"view",
|
|
41
|
+
{
|
|
42
|
+
class: `${componentName} ${componentName}--${props.direction}`
|
|
43
|
+
},
|
|
44
|
+
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
45
|
+
);
|
|
39
46
|
};
|
|
40
47
|
}
|
|
41
48
|
});
|
|
@@ -1,24 +1,5 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
1
|
/*!
|
|
21
|
-
* @nutui/nutui v3.
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
|
|
22
3
|
* (c) 2022 @jdf2e.
|
|
23
4
|
* Released under the MIT License.
|
|
24
5
|
*/
|
|
@@ -294,7 +275,7 @@ const _sfc_main = create({
|
|
|
294
275
|
const value = typeof idx === "number" ? props.modelValue[idx] : props.modelValue;
|
|
295
276
|
return value;
|
|
296
277
|
};
|
|
297
|
-
return
|
|
278
|
+
return {
|
|
298
279
|
root,
|
|
299
280
|
classes,
|
|
300
281
|
wrapperStyle,
|
|
@@ -302,8 +283,8 @@ const _sfc_main = create({
|
|
|
302
283
|
onClick,
|
|
303
284
|
onTouchStart,
|
|
304
285
|
onTouchMove,
|
|
305
|
-
onTouchEnd
|
|
306
|
-
|
|
286
|
+
onTouchEnd,
|
|
287
|
+
...toRefs(props),
|
|
307
288
|
barStyle,
|
|
308
289
|
curValue,
|
|
309
290
|
buttonIndex,
|
|
@@ -312,7 +293,7 @@ const _sfc_main = create({
|
|
|
312
293
|
marksStyle,
|
|
313
294
|
marksList,
|
|
314
295
|
tickStyle
|
|
315
|
-
}
|
|
296
|
+
};
|
|
316
297
|
}
|
|
317
298
|
});
|
|
318
299
|
const _hoisted_1 = {
|
|
@@ -380,12 +361,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
380
361
|
"aria-valuenow": _ctx.curValue(index2),
|
|
381
362
|
"aria-valuemax": +_ctx.max,
|
|
382
363
|
"aria-orientation": "horizontal",
|
|
383
|
-
onTouchstart: withModifiers(
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
364
|
+
onTouchstart: withModifiers(
|
|
365
|
+
(e) => {
|
|
366
|
+
if (typeof index2 === "number") {
|
|
367
|
+
_ctx.buttonIndex = index2;
|
|
368
|
+
}
|
|
369
|
+
_ctx.onTouchStart(e);
|
|
370
|
+
},
|
|
371
|
+
["stop", "prevent"]
|
|
372
|
+
),
|
|
389
373
|
onTouchmove: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args), ["stop", "prevent"])),
|
|
390
374
|
onTouchend: _cache[1] || (_cache[1] = withModifiers((...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args), ["stop", "prevent"])),
|
|
391
375
|
onTouchcancel: _cache[2] || (_cache[2] = withModifiers((...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args), ["stop", "prevent"])),
|
|
@@ -408,9 +392,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
408
392
|
"aria-valuenow": _ctx.curValue(),
|
|
409
393
|
"aria-valuemax": +_ctx.max,
|
|
410
394
|
"aria-orientation": "horizontal",
|
|
411
|
-
onTouchstart: _cache[4] || (_cache[4] = withModifiers(
|
|
412
|
-
|
|
413
|
-
|
|
395
|
+
onTouchstart: _cache[4] || (_cache[4] = withModifiers(
|
|
396
|
+
(e) => {
|
|
397
|
+
_ctx.onTouchStart(e);
|
|
398
|
+
},
|
|
399
|
+
["stop", "prevent"]
|
|
400
|
+
)),
|
|
414
401
|
onTouchmove: _cache[5] || (_cache[5] = withModifiers((...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args), ["stop", "prevent"])),
|
|
415
402
|
onTouchend: _cache[6] || (_cache[6] = withModifiers((...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args), ["stop", "prevent"])),
|
|
416
403
|
onTouchcancel: _cache[7] || (_cache[7] = withModifiers((...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args), ["stop", "prevent"])),
|
|
@@ -1,24 +1,5 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
1
|
/*!
|
|
21
|
-
* @nutui/nutui v3.
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
|
|
22
3
|
* (c) 2022 @jdf2e.
|
|
23
4
|
* Released under the MIT License.
|
|
24
5
|
*/
|
|
@@ -151,14 +132,14 @@ const useComponent = (touchable = true) => {
|
|
|
151
132
|
}
|
|
152
133
|
};
|
|
153
134
|
const refRandomId = Math.random().toString(36).slice(-8);
|
|
154
|
-
return
|
|
155
|
-
classes
|
|
156
|
-
|
|
135
|
+
return {
|
|
136
|
+
classes,
|
|
137
|
+
...touchMethods,
|
|
157
138
|
onClick,
|
|
158
139
|
pxCheck,
|
|
159
140
|
rateRefs,
|
|
160
141
|
refRandomId
|
|
161
|
-
}
|
|
142
|
+
};
|
|
162
143
|
}
|
|
163
144
|
};
|
|
164
145
|
};
|