@nutui/nutui 3.1.19-beta.1 → 3.1.19-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 +9 -8
- package/dist/nutui.es.js +2875 -3576
- package/dist/nutui.umd.js +2965 -3579
- package/dist/packages/_es/ActionSheet.js +18 -12
- package/dist/packages/_es/Address.js +69 -78
- package/dist/packages/_es/Audio.js +12 -12
- package/dist/packages/_es/AudioOperate.js +1 -1
- package/dist/packages/_es/Avatar.js +3 -3
- package/dist/packages/_es/BackTop.js +110 -68
- package/dist/packages/_es/Badge.js +3 -3
- package/dist/packages/_es/Barrage.js +55 -62
- package/dist/packages/_es/Button.js +2 -2
- package/dist/packages/_es/Calendar.js +27 -32
- package/dist/packages/_es/CalendarItem.js +3 -3
- package/dist/packages/_es/Card.js +5 -6
- package/dist/packages/_es/Cascader.js +7 -7
- package/dist/packages/_es/Cell.js +11 -4
- package/dist/packages/_es/CellGroup.js +1 -1
- package/dist/packages/_es/Checkbox.js +13 -3
- package/dist/packages/_es/CheckboxGroup.js +2 -2
- package/dist/packages/_es/CircleProgress.js +40 -149
- package/dist/packages/_es/Col.js +1 -1
- package/dist/packages/_es/Collapse.js +8 -34
- package/dist/packages/_es/CollapseItem.js +59 -90
- package/dist/packages/_es/CountDown.js +5 -5
- package/dist/packages/_es/CountUp.js +51 -43
- package/dist/packages/_es/DatePicker.js +20 -21
- package/dist/packages/_es/Dialog.js +91 -12
- package/dist/packages/_es/Divider.js +4 -4
- package/dist/packages/_es/Drag.js +54 -92
- package/dist/packages/_es/Elevator.js +50 -75
- package/dist/packages/_es/Empty.js +3 -3
- package/dist/packages/_es/FixedNav.js +10 -11
- package/dist/packages/_es/Form.js +5 -9
- package/dist/packages/_es/FormItem.js +1 -1
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +26 -8
- package/dist/packages/_es/Icon.js +1 -1
- package/dist/packages/_es/ImagePreview.js +83 -14
- package/dist/packages/_es/Indicator.js +3 -3
- package/dist/packages/_es/InfiniteLoading.js +107 -93
- package/dist/packages/_es/Input.js +8 -8
- package/dist/packages/_es/InputNumber.js +16 -23
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +34 -41
- package/dist/packages/_es/Menu.js +12 -15
- package/dist/packages/_es/MenuItem.js +7 -7
- package/dist/packages/_es/Navbar.js +4 -3
- package/dist/packages/_es/NoticeBar.js +40 -47
- package/dist/packages/_es/Notify.js +166 -27
- package/dist/packages/_es/NumberKeyboard.js +18 -8
- package/dist/packages/_es/OldPicker.js +120 -122
- package/dist/packages/_es/OverLay.js +25 -5
- package/dist/packages/_es/Pagination.js +14 -13
- package/dist/packages/_es/Picker.js +16 -39
- package/dist/packages/_es/Popover.js +29 -154
- package/dist/packages/_es/Popup.js +69 -6
- package/dist/packages/_es/Price.js +5 -17
- package/dist/packages/_es/Progress.js +8 -18
- package/dist/packages/_es/PullRefresh.js +1 -1
- package/dist/packages/_es/Radio.js +14 -4
- package/dist/packages/_es/RadioGroup.js +1 -1
- package/dist/packages/_es/Range.js +33 -46
- package/dist/packages/_es/Rate.js +19 -16
- package/dist/packages/_es/Row.js +1 -1
- package/dist/packages/_es/SearchBar.js +11 -12
- package/dist/packages/_es/ShortPassword.js +67 -89
- package/dist/packages/_es/SideNavBar.js +16 -5
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +88 -69
- package/dist/packages/_es/Skeleton.js +11 -8
- package/dist/packages/_es/Sku.js +57 -49
- package/dist/packages/_es/Step.js +1 -1
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/Sticky.js +23 -28
- package/dist/packages/_es/SubSideNavBar.js +1 -1
- package/dist/packages/_es/Swipe.js +26 -39
- package/dist/packages/_es/Swiper.js +14 -32
- package/dist/packages/_es/SwiperItem.js +2 -2
- package/dist/packages/_es/Switch.js +3 -3
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +3 -3
- package/dist/packages/_es/TabbarItem.js +21 -11
- package/dist/packages/_es/Table.js +13 -13
- package/dist/packages/_es/Tabs.js +20 -21
- package/dist/packages/_es/Tag.js +4 -4
- package/dist/packages/_es/TextArea.js +42 -44
- package/dist/packages/_es/TimeDetail.js +3 -4
- package/dist/packages/_es/TimePannel.js +3 -3
- package/dist/packages/_es/TimeSelect.js +7 -8
- package/dist/packages/_es/Toast.js +170 -41
- package/dist/packages/_es/Uploader.js +138 -109
- package/dist/packages/_es/Video.js +9 -8
- package/dist/packages/_es/common.js +1 -1
- package/dist/packages/_es/component.js +135 -3
- package/dist/packages/_es/index.js +6 -44
- package/dist/packages/_es/index2.js +31 -8
- package/dist/packages/_es/index3.js +7 -58
- package/dist/packages/_es/index4.js +56 -413
- package/dist/packages/_es/{index.taro.js → index5.js} +113 -140
- 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 +19 -0
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +42 -42
- package/dist/styles/themes/jdt.scss +42 -42
- package/dist/types/__VUE/actionsheet/index.d.ts +269 -0
- package/dist/types/__VUE/address/index.d.ts +386 -0
- package/dist/types/__VUE/audio/index.d.ts +92 -0
- package/dist/types/__VUE/audiooperate/index.d.ts +68 -0
- package/dist/types/__VUE/avatar/index.d.ts +66 -0
- package/dist/types/__VUE/backtop/index.d.ts +105 -0
- package/dist/types/__VUE/badge/index.d.ts +94 -0
- package/dist/types/__VUE/barrage/index.d.ts +80 -0
- package/dist/types/__VUE/button/index.d.ts +116 -0
- package/dist/types/__VUE/calendar/index.d.ts +155 -0
- package/dist/types/__VUE/calendaritem/index.d.ts +195 -0
- package/dist/types/__VUE/card/index.d.ts +81 -0
- package/dist/types/__VUE/cascader/cascader-item.d.ts +76 -0
- package/dist/types/__VUE/cascader/helper.d.ts +8 -0
- package/dist/types/__VUE/cascader/index.d.ts +76 -0
- package/dist/types/__VUE/cascader/tree.d.ts +17 -0
- package/dist/types/__VUE/cascader/types.d.ts +30 -0
- package/dist/types/__VUE/cell/index.d.ts +109 -0
- package/dist/types/__VUE/cellgroup/index.d.ts +38 -0
- package/dist/types/__VUE/checkbox/index.d.ts +102 -0
- package/dist/types/__VUE/checkboxgroup/index.d.ts +39 -0
- package/dist/types/__VUE/circleprogress/index.d.ts +66 -0
- package/dist/types/__VUE/col/index.d.ts +42 -0
- package/dist/types/__VUE/collapse/index.d.ts +104 -0
- package/dist/types/__VUE/collapseitem/index.d.ts +83 -0
- package/dist/types/__VUE/countdown/index.d.ts +90 -0
- package/dist/types/__VUE/countup/index.d.ts +216 -0
- package/dist/types/__VUE/datepicker/index.d.ts +347 -0
- package/dist/types/__VUE/datepicker/utils.d.ts +5 -0
- package/dist/types/__VUE/dialog/index.d.ts +306 -0
- package/dist/types/__VUE/divider/index.d.ts +47 -0
- package/dist/types/__VUE/drag/index.d.ts +61 -0
- package/dist/types/__VUE/elevator/index.d.ts +71 -0
- package/dist/types/__VUE/empty/index.d.ts +46 -0
- package/dist/types/__VUE/fixednav/index.d.ts +96 -0
- package/dist/types/__VUE/form/common.d.ts +20 -0
- package/dist/types/__VUE/form/index.d.ts +32 -0
- package/dist/types/__VUE/form/types.d.ts +13 -0
- package/dist/types/__VUE/formitem/index.d.ts +120 -0
- package/dist/types/__VUE/formitem/types.d.ts +10 -0
- package/dist/types/__VUE/grid/common.d.ts +91 -0
- package/dist/types/__VUE/grid/index.d.ts +100 -0
- package/dist/types/__VUE/griditem/index.d.ts +80 -0
- package/dist/types/__VUE/icon/index.d.ts +74 -0
- package/dist/types/__VUE/imagepreview/index.d.ts +125 -0
- package/dist/types/__VUE/indicator/index.d.ts +70 -0
- package/dist/types/__VUE/infiniteloading/index.d.ts +140 -0
- package/dist/types/__VUE/input/index.d.ts +336 -0
- package/dist/types/__VUE/input/util.d.ts +5 -0
- package/dist/types/__VUE/inputnumber/index.d.ts +117 -0
- package/dist/types/__VUE/layout/index.d.ts +13 -0
- package/dist/types/__VUE/list/index.d.ts +48 -0
- package/dist/types/__VUE/menu/index.d.ts +51 -0
- package/dist/types/__VUE/menuitem/index.d.ts +77 -0
- package/dist/types/__VUE/navbar/index.d.ts +84 -0
- package/dist/types/__VUE/noticebar/index.d.ts +209 -0
- package/dist/types/__VUE/notify/index.d.ts +103 -0
- package/dist/types/__VUE/numberkeyboard/index.d.ts +123 -0
- package/dist/types/__VUE/oldpicker/Column.d.ts +96 -0
- package/dist/types/__VUE/oldpicker/commonProps.d.ts +22 -0
- package/dist/types/__VUE/oldpicker/index.d.ts +360 -0
- package/dist/types/__VUE/oldpicker/types.d.ts +24 -0
- package/dist/types/__VUE/overlay/index.d.ts +1614 -0
- package/dist/types/__VUE/pagination/index.d.ts +112 -0
- package/dist/types/__VUE/picker/Column.d.ts +90 -0
- package/dist/types/__VUE/picker/index.d.ts +342 -0
- package/dist/types/__VUE/picker/types.d.ts +26 -0
- package/dist/types/__VUE/popover/index.d.ts +233 -0
- package/dist/types/__VUE/popup/index.d.ts +1734 -0
- package/dist/types/__VUE/popup/use-lock-scroll.d.ts +5 -0
- package/dist/types/__VUE/price/index.d.ts +87 -0
- package/dist/types/__VUE/progress/index.d.ts +137 -0
- package/dist/types/__VUE/pullrefresh/index.d.ts +128 -0
- package/dist/types/__VUE/pullrefresh/use-touch.d.ts +20 -0
- package/dist/types/__VUE/pullrefresh/util.d.ts +6 -0
- package/dist/types/__VUE/radio/index.d.ts +90 -0
- package/dist/types/__VUE/radiogroup/index.d.ts +48 -0
- package/dist/types/__VUE/range/index.d.ts +156 -0
- package/dist/types/__VUE/rate/index.d.ts +142 -0
- package/dist/types/__VUE/row/index.d.ts +63 -0
- package/dist/types/__VUE/searchbar/index.d.ts +100 -0
- package/dist/types/__VUE/shortpassword/index.d.ts +136 -0
- package/dist/types/__VUE/sidenavbar/index.d.ts +36 -0
- package/dist/types/__VUE/sidenavbaritem/index.d.ts +41 -0
- package/dist/types/__VUE/signature/index.d.ts +73 -0
- package/dist/types/__VUE/skeleton/common.d.ts +63 -0
- package/dist/types/__VUE/skeleton/index.d.ts +117 -0
- package/dist/types/__VUE/sku/components/SkuHeader.d.ts +27 -0
- package/dist/types/__VUE/sku/components/SkuOperate.d.ts +70 -0
- package/dist/types/__VUE/sku/components/SkuSelect.d.ts +30 -0
- package/dist/types/__VUE/sku/components/SkuStepper.d.ts +67 -0
- package/dist/types/__VUE/sku/index.d.ts +300 -0
- package/dist/types/__VUE/step/index.d.ts +70 -0
- package/dist/types/__VUE/steps/index.d.ts +47 -0
- package/dist/types/__VUE/sticky/index.d.ts +63 -0
- package/dist/types/__VUE/subsidenavbar/index.d.ts +54 -0
- package/dist/types/__VUE/swipe/index.d.ts +69 -0
- package/dist/types/__VUE/swiper/index.d.ts +163 -0
- package/dist/types/__VUE/swiper/use-touch.d.ts +20 -0
- package/dist/types/__VUE/swiperitem/index.d.ts +24 -0
- package/dist/types/__VUE/switch/index.d.ts +136 -0
- package/dist/types/__VUE/tabbar/index.d.ts +84 -0
- package/dist/types/__VUE/tabbaritem/index.d.ts +108 -0
- package/dist/types/__VUE/table/common.d.ts +54 -0
- package/dist/types/__VUE/table/index.d.ts +75 -0
- package/dist/types/__VUE/table/renderColumn.d.ts +20 -0
- package/dist/types/__VUE/table/types.d.ts +19 -0
- package/dist/types/__VUE/tabpane/index.d.ts +47 -0
- package/dist/types/__VUE/tabs/index.d.ts +128 -0
- package/dist/types/__VUE/tag/index.d.ts +89 -0
- package/dist/types/__VUE/textarea/index.d.ts +120 -0
- package/dist/types/__VUE/timedetail/index.d.ts +48 -0
- package/dist/types/__VUE/timepannel/index.d.ts +43 -0
- package/dist/types/__VUE/timeselect/index.d.ts +82 -0
- package/dist/types/__VUE/toast/index.d.ts +149 -0
- package/dist/types/__VUE/uploader/index.d.ts +258 -0
- package/dist/types/__VUE/uploader/uploader.d.ts +25 -0
- package/dist/types/__VUE/video/index.d.ts +123 -0
- package/dist/{index.d.ts → types/index.d.ts} +0 -0
- package/dist/types/nutui.d.ts +92 -0
- package/package.json +14 -5
- package/dist/nutui.d.ts +0 -104
- package/dist/packages/_es/use-lock-scroll.js +0 -23
- package/dist/packages/_es/util.js +0 -47
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.19-beta.
|
|
21
|
+
* @nutui/nutui v3.1.19-beta.2 Thu Apr 07 2022 17:52:31 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -62,7 +62,7 @@ const _sfc_main = create({
|
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
64
|
components: {},
|
|
65
|
-
emits: ["input", "on-end", "on-restart", "on-paused"],
|
|
65
|
+
emits: ["input", "on-end", "on-restart", "on-paused", "update:modelValue"],
|
|
66
66
|
setup(props, { emit, slots }) {
|
|
67
67
|
const state = reactive({
|
|
68
68
|
restTime: 0,
|
|
@@ -131,7 +131,7 @@ const _sfc_main = create({
|
|
|
131
131
|
if (!props.paused) {
|
|
132
132
|
let restTime2 = end - (Date.now() - state.p + diffTime);
|
|
133
133
|
state.restTime = restTime2;
|
|
134
|
-
if (restTime2 <
|
|
134
|
+
if (restTime2 < 0) {
|
|
135
135
|
state.restTime = 0;
|
|
136
136
|
emit("on-end");
|
|
137
137
|
clearInterval(state.timer);
|
|
@@ -221,5 +221,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
221
221
|
], 64))
|
|
222
222
|
], 2);
|
|
223
223
|
}
|
|
224
|
-
var
|
|
225
|
-
export {
|
|
224
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
225
|
+
export { index as default };
|
|
@@ -18,11 +18,11 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.19-beta.
|
|
21
|
+
* @nutui/nutui v3.1.19-beta.2 Thu Apr 07 2022 17:52:31 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
25
|
-
import { getCurrentInstance, reactive, watch, nextTick, onMounted, onUnmounted, toRefs, openBlock, createElementBlock, Fragment, normalizeStyle, renderList, createCommentVNode, toDisplayString, createTextVNode } from "vue";
|
|
25
|
+
import { getCurrentInstance, ref, reactive, watch, nextTick, onMounted, onUnmounted, toRefs, openBlock, createElementBlock, Fragment, normalizeStyle, renderList, createCommentVNode, toDisplayString, createTextVNode } from "vue";
|
|
26
26
|
import { c as createComponent } from "./component.js";
|
|
27
27
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
28
28
|
function useExtend(apis) {
|
|
@@ -98,7 +98,7 @@ const _sfc_main = create({
|
|
|
98
98
|
type: Number,
|
|
99
99
|
default: 0
|
|
100
100
|
},
|
|
101
|
-
|
|
101
|
+
machineTurnMore: {
|
|
102
102
|
type: Number,
|
|
103
103
|
default: 0
|
|
104
104
|
}
|
|
@@ -106,6 +106,11 @@ const _sfc_main = create({
|
|
|
106
106
|
components: {},
|
|
107
107
|
emits: ["click", "scroll-end"],
|
|
108
108
|
setup(props, { emit }) {
|
|
109
|
+
const runNumberImg = ref(null);
|
|
110
|
+
const numberItemRef = ref([]);
|
|
111
|
+
const setRef = (el) => {
|
|
112
|
+
numberItemRef.value.push(el);
|
|
113
|
+
};
|
|
109
114
|
const data = reactive({
|
|
110
115
|
valFlag: false,
|
|
111
116
|
current: 0,
|
|
@@ -179,20 +184,20 @@ const _sfc_main = create({
|
|
|
179
184
|
return m / baseNum;
|
|
180
185
|
}
|
|
181
186
|
};
|
|
182
|
-
const topNumber = (
|
|
187
|
+
const topNumber = (index2) => {
|
|
183
188
|
let { num_total_len, pointNum, initDigit1, initDigit2, sortFlag } = data;
|
|
184
|
-
let idx1 = sortFlag == "add" || sortFlag == "equal" ? String(initDigit2)[
|
|
185
|
-
let idx2 = sortFlag == "add" || sortFlag == "equal" ? String(initDigit1)[
|
|
186
|
-
let num =
|
|
189
|
+
let idx1 = sortFlag == "add" || sortFlag == "equal" ? String(initDigit2)[index2 - (num_total_len - pointNum)] : 10 - Number(String(initDigit2)[index2 - (num_total_len - pointNum)]);
|
|
190
|
+
let idx2 = sortFlag == "add" || sortFlag == "equal" ? String(initDigit1)[index2] : 10 - Number(String(initDigit1)[index2]);
|
|
191
|
+
let num = index2 > num_total_len - pointNum - 1 ? -idx1 * 100 + "%" : index2 <= String(initDigit1).length - 1 ? -idx2 * 100 + "%" : 0;
|
|
187
192
|
if (num == "-1000%") {
|
|
188
193
|
num = 0;
|
|
189
194
|
}
|
|
190
195
|
return num;
|
|
191
196
|
};
|
|
192
|
-
const turnNumber = (
|
|
197
|
+
const turnNumber = (index2) => {
|
|
193
198
|
let { num_total_len, pointNum, initDigit1, initDigit2, sortFlag } = data;
|
|
194
|
-
let idx1 = String(initDigit2)[
|
|
195
|
-
let num =
|
|
199
|
+
let idx1 = String(initDigit2)[index2 - (num_total_len - pointNum)];
|
|
200
|
+
let num = index2 > num_total_len - pointNum - 1 ? idx1 ? idx1 : 0 : index2 <= String(initDigit1).length - 1 ? String(initDigit1)[index2] : 0;
|
|
196
201
|
return num;
|
|
197
202
|
};
|
|
198
203
|
const countChange = () => {
|
|
@@ -200,21 +205,23 @@ const _sfc_main = create({
|
|
|
200
205
|
let countTimer = setInterval(() => {
|
|
201
206
|
if (initNum > endNum) {
|
|
202
207
|
if (data.current <= endNum || data.current <= speed) {
|
|
203
|
-
data.current =
|
|
208
|
+
data.current = endNum.toFixed(toFixed);
|
|
204
209
|
clearInterval(countTimer);
|
|
205
210
|
emit("scroll-end");
|
|
206
211
|
data.valFlag = false;
|
|
207
212
|
} else {
|
|
208
|
-
|
|
213
|
+
let num = parseFloat(String(data.current)) - parseFloat(String(speed));
|
|
214
|
+
data.current = num.toFixed(toFixed);
|
|
209
215
|
}
|
|
210
216
|
} else {
|
|
211
217
|
if (data.current >= endNum) {
|
|
212
|
-
data.current =
|
|
218
|
+
data.current = endNum.toFixed(toFixed);
|
|
213
219
|
clearInterval(countTimer);
|
|
214
220
|
emit("scroll-end");
|
|
215
221
|
data.valFlag = false;
|
|
216
222
|
} else {
|
|
217
|
-
|
|
223
|
+
let num = parseFloat(String(data.current)) + parseFloat(String(speed));
|
|
224
|
+
data.current = num.toFixed(toFixed);
|
|
218
225
|
}
|
|
219
226
|
}
|
|
220
227
|
}, props.during);
|
|
@@ -295,8 +302,7 @@ const _sfc_main = create({
|
|
|
295
302
|
if (data.sortFlag == "equal") {
|
|
296
303
|
return false;
|
|
297
304
|
}
|
|
298
|
-
let
|
|
299
|
-
let element = refsDom[data.num_total_len - 1];
|
|
305
|
+
let element = numberItemRef.value[data.num_total_len - 1];
|
|
300
306
|
runTurn(element);
|
|
301
307
|
});
|
|
302
308
|
} else {
|
|
@@ -322,21 +328,21 @@ const _sfc_main = create({
|
|
|
322
328
|
}, props.during);
|
|
323
329
|
};
|
|
324
330
|
const runStep = (el) => {
|
|
325
|
-
let currentTurn = el.
|
|
331
|
+
let currentTurn = el.getAttribute("turn-number");
|
|
326
332
|
let turningNum;
|
|
327
333
|
if (data.sortFlag == "add") {
|
|
328
334
|
turningNum = parseInt(String(currentTurn)) + 1;
|
|
329
335
|
} else {
|
|
330
336
|
turningNum = parseInt(String(currentTurn)) - 1 >= 0 ? parseInt(String(currentTurn)) - 1 : 9;
|
|
331
337
|
}
|
|
332
|
-
el.
|
|
333
|
-
if (el.style.transition == "none" || turningNum == 1 || !el.style.transition) {
|
|
338
|
+
el.setAttribute("turn-number", String(turningNum));
|
|
339
|
+
if (el.style.transition == "none 0s ease 0s" || turningNum == 1 || !el.style.transition) {
|
|
334
340
|
el.style.transition = `all linear ${props.during}ms`;
|
|
335
341
|
}
|
|
336
342
|
if (turningNum == 10 || data.sortFlag == "reduce" && turningNum == 0) {
|
|
337
343
|
var timeOut = null;
|
|
338
344
|
el.style.top = `-${data.sortFlag == "add" ? turningNum * 100 : (10 - turningNum) * 100}%`;
|
|
339
|
-
el.
|
|
345
|
+
el.setAttribute("turn-number", "0");
|
|
340
346
|
timeOut = setTimeout(() => {
|
|
341
347
|
timeOut && clearTimeout(timeOut);
|
|
342
348
|
el.style.transition = "none";
|
|
@@ -359,8 +365,7 @@ const _sfc_main = create({
|
|
|
359
365
|
Math.pow(10, data.pointNum);
|
|
360
366
|
}
|
|
361
367
|
nextTick(() => {
|
|
362
|
-
|
|
363
|
-
f.addEventListener("webkitTransitionEnd", () => {
|
|
368
|
+
runNumberImg.value.addEventListener("webkitTransitionEnd", () => {
|
|
364
369
|
emit("scroll-end");
|
|
365
370
|
data.valFlag = false;
|
|
366
371
|
});
|
|
@@ -376,14 +381,14 @@ const _sfc_main = create({
|
|
|
376
381
|
}
|
|
377
382
|
};
|
|
378
383
|
const machineLuck = () => {
|
|
379
|
-
const
|
|
384
|
+
const machineTurnMoreNum = props.machineTurnMore < 0 ? 0 : props.machineTurnMore;
|
|
380
385
|
let distance = props.numHeight * props.machinePrizeNum;
|
|
381
386
|
if (data.prizeLevelTrun < 0) {
|
|
382
387
|
generateRandom();
|
|
383
388
|
}
|
|
384
389
|
for (let i = 0; i < props.machineNum; i++) {
|
|
385
390
|
setTimeout(() => {
|
|
386
|
-
let turn = distance * (i + 1 + parseFloat(String(
|
|
391
|
+
let turn = distance * (i + 1 + parseFloat(String(machineTurnMoreNum)));
|
|
387
392
|
if (data.prizeYPrev.length != 0) {
|
|
388
393
|
data.prizeY[i] = data.prizeYPrev[i];
|
|
389
394
|
}
|
|
@@ -397,16 +402,16 @@ const _sfc_main = create({
|
|
|
397
402
|
}
|
|
398
403
|
};
|
|
399
404
|
useExtend({ machineLuck });
|
|
400
|
-
const scrollTime = (
|
|
405
|
+
const scrollTime = (index2, total, num) => {
|
|
401
406
|
let t = setInterval(() => {
|
|
402
407
|
if (num <= total) {
|
|
403
408
|
num += 10;
|
|
404
|
-
data.prizeY[
|
|
409
|
+
data.prizeY[index2] = parseFloat(String(num));
|
|
405
410
|
} else {
|
|
406
411
|
clearInterval(t);
|
|
407
412
|
t = null;
|
|
408
413
|
data.finshMachine += 1;
|
|
409
|
-
data.prizeY[
|
|
414
|
+
data.prizeY[index2] = total;
|
|
410
415
|
if (data.finshMachine == props.machineNum) {
|
|
411
416
|
let distance = props.numHeight * props.machinePrizeNum;
|
|
412
417
|
data.prizeYPrev = [];
|
|
@@ -443,6 +448,8 @@ const _sfc_main = create({
|
|
|
443
448
|
data.timer = null;
|
|
444
449
|
});
|
|
445
450
|
return __spreadProps(__spreadValues(__spreadValues({}, toRefs(data)), toRefs(reactive(props))), {
|
|
451
|
+
runNumberImg,
|
|
452
|
+
setRef,
|
|
446
453
|
topNumber,
|
|
447
454
|
turnNumber
|
|
448
455
|
});
|
|
@@ -458,35 +465,37 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
458
465
|
class: "run-number-machine-img",
|
|
459
466
|
style: normalizeStyle({ height: _ctx.numHeight + "px" })
|
|
460
467
|
}, [
|
|
461
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.machineNum, (val,
|
|
468
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.machineNum, (val, index2) => {
|
|
462
469
|
return openBlock(), createElementBlock("view", {
|
|
463
470
|
class: "run-number-machine-img-li",
|
|
464
471
|
ref_for: true,
|
|
465
472
|
ref: "run-number-machine-img-li",
|
|
466
|
-
key: "mImg" +
|
|
473
|
+
key: "mImg" + index2,
|
|
467
474
|
style: normalizeStyle({
|
|
468
475
|
width: _ctx.numWidth + "px",
|
|
469
476
|
height: _ctx.numHeight + "px",
|
|
470
|
-
|
|
471
|
-
|
|
477
|
+
backgroundImage: "url(" + _ctx.customBgImg + ")",
|
|
478
|
+
backgroundPositionY: _ctx.prizeY[index2] + "px"
|
|
472
479
|
})
|
|
473
480
|
}, null, 4);
|
|
474
481
|
}), 128))
|
|
475
482
|
], 4)) : (openBlock(), createElementBlock("view", {
|
|
476
483
|
key: 1,
|
|
484
|
+
ref: "runNumberImg",
|
|
477
485
|
class: "run-number-img",
|
|
478
486
|
style: normalizeStyle({ height: _ctx.numHeight + "px" })
|
|
479
487
|
}, [
|
|
480
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.num_total_len, (val,
|
|
488
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.num_total_len, (val, index2) => {
|
|
481
489
|
return openBlock(), createElementBlock("view", {
|
|
482
490
|
class: "run-number-img-li",
|
|
483
|
-
key: "cImg" +
|
|
491
|
+
key: "cImg" + index2,
|
|
484
492
|
style: normalizeStyle({
|
|
485
493
|
width: _ctx.numWidth + "px",
|
|
486
494
|
height: _ctx.numHeight + "px",
|
|
487
|
-
left: _ctx.numWidth * (
|
|
495
|
+
left: _ctx.numWidth * (index2 > _ctx.num_total_len - _ctx.pointNum - 1 ? index2 == _ctx.num_total_len - _ctx.pointNum ? index2 * 1.5 : index2 * 1.3 : index2) + "px",
|
|
488
496
|
backgroundImage: "url(" + _ctx.customBgImg + ")",
|
|
489
|
-
|
|
497
|
+
backgroundPositionX: "0",
|
|
498
|
+
backgroundPositionY: -(String(_ctx.relNum)[index2] * _ctx.numHeight + _ctx.customSpacNum * String(_ctx.relNum)[index2]) + "px",
|
|
490
499
|
transition: "all linear " + _ctx.during / 10 + "ms"
|
|
491
500
|
})
|
|
492
501
|
}, null, 4);
|
|
@@ -512,18 +521,17 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
512
521
|
lineHeight: _ctx.numHeight + "px"
|
|
513
522
|
})
|
|
514
523
|
}, [
|
|
515
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.num_total_len, (val,
|
|
524
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.num_total_len, (val, index2) => {
|
|
516
525
|
return openBlock(), createElementBlock("view", {
|
|
517
526
|
ref_for: true,
|
|
518
|
-
ref:
|
|
527
|
+
ref: _ctx.setRef,
|
|
519
528
|
class: "numberItem",
|
|
520
529
|
key: val,
|
|
521
530
|
style: normalizeStyle({
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
left: _ctx.numWidth * (index > _ctx.num_total_len - _ctx.pointNum - 1 ? index * 1.1 : index) + "px"
|
|
531
|
+
top: _ctx.topNumber(index2),
|
|
532
|
+
left: _ctx.numWidth * (index2 > _ctx.num_total_len - _ctx.pointNum - 1 ? index2 * 1.1 : index2) + "px"
|
|
525
533
|
}),
|
|
526
|
-
"turn-number": _ctx.turnNumber(
|
|
534
|
+
"turn-number": _ctx.turnNumber(index2)
|
|
527
535
|
}, [
|
|
528
536
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.to0_10, (item, idx) => {
|
|
529
537
|
return openBlock(), createElementBlock("view", {
|
|
@@ -555,5 +563,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
555
563
|
], 64))
|
|
556
564
|
]);
|
|
557
565
|
}
|
|
558
|
-
var
|
|
559
|
-
export {
|
|
566
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
567
|
+
export { index as default };
|
|
@@ -18,22 +18,18 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.19-beta.
|
|
21
|
+
* @nutui/nutui v3.1.19-beta.2 Thu Apr 07 2022 17:52:31 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
25
25
|
import { reactive, computed, onBeforeMount, watch, toRefs, resolveComponent, openBlock, createBlock } from "vue";
|
|
26
|
-
import
|
|
27
|
-
import {
|
|
26
|
+
import picker from "./Picker.js";
|
|
27
|
+
import { popupProps } from "./Popup.js";
|
|
28
28
|
import { c as createComponent } from "./component.js";
|
|
29
29
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
30
|
-
import "./Popup.js";
|
|
31
|
-
import "./use-lock-scroll.js";
|
|
32
30
|
import "./OverLay.js";
|
|
33
31
|
import "./Icon.js";
|
|
34
32
|
import "./pxCheck.js";
|
|
35
|
-
import "./index.js";
|
|
36
|
-
import "@tarojs/taro";
|
|
37
33
|
function padZero(num, targetLength = 2) {
|
|
38
34
|
let str = num + "";
|
|
39
35
|
while (str.length < targetLength) {
|
|
@@ -56,7 +52,7 @@ const zhCNType = {
|
|
|
56
52
|
};
|
|
57
53
|
const _sfc_main = create({
|
|
58
54
|
components: {
|
|
59
|
-
|
|
55
|
+
[picker.name]: picker
|
|
60
56
|
},
|
|
61
57
|
props: __spreadProps(__spreadValues({}, popupProps), {
|
|
62
58
|
modelValue: null,
|
|
@@ -123,12 +119,12 @@ const _sfc_main = create({
|
|
|
123
119
|
const boundary = props[`${type}Date`];
|
|
124
120
|
const year = boundary.getFullYear();
|
|
125
121
|
let month = 1;
|
|
126
|
-
let
|
|
122
|
+
let day = 1;
|
|
127
123
|
let hour = 0;
|
|
128
124
|
let minute = 0;
|
|
129
125
|
if (type === "max") {
|
|
130
126
|
month = 12;
|
|
131
|
-
|
|
127
|
+
day = getMonthEndDay(value.getFullYear(), value.getMonth() + 1);
|
|
132
128
|
hour = 23;
|
|
133
129
|
minute = 59;
|
|
134
130
|
}
|
|
@@ -136,8 +132,8 @@ const _sfc_main = create({
|
|
|
136
132
|
if (value.getFullYear() === year) {
|
|
137
133
|
month = boundary.getMonth() + 1;
|
|
138
134
|
if (value.getMonth() + 1 === month) {
|
|
139
|
-
|
|
140
|
-
if (value.getDate() ===
|
|
135
|
+
day = boundary.getDate();
|
|
136
|
+
if (value.getDate() === day) {
|
|
141
137
|
hour = boundary.getHours();
|
|
142
138
|
if (value.getHours() === hour) {
|
|
143
139
|
minute = boundary.getMinutes();
|
|
@@ -148,15 +144,15 @@ const _sfc_main = create({
|
|
|
148
144
|
return {
|
|
149
145
|
[`${type}Year`]: year,
|
|
150
146
|
[`${type}Month`]: month,
|
|
151
|
-
[`${type}
|
|
147
|
+
[`${type}Day`]: day,
|
|
152
148
|
[`${type}Hour`]: hour,
|
|
153
149
|
[`${type}Minute`]: minute,
|
|
154
150
|
[`${type}Seconds`]: seconds
|
|
155
151
|
};
|
|
156
152
|
};
|
|
157
153
|
const ranges = computed(() => {
|
|
158
|
-
const { maxYear,
|
|
159
|
-
const { minYear,
|
|
154
|
+
const { maxYear, maxDay, maxMonth, maxHour, maxMinute, maxSeconds } = getBoundary("max", state.currentDate);
|
|
155
|
+
const { minYear, minDay, minMonth, minHour, minMinute, minSeconds } = getBoundary("min", state.currentDate);
|
|
160
156
|
let result = [
|
|
161
157
|
{
|
|
162
158
|
type: "year",
|
|
@@ -168,7 +164,7 @@ const _sfc_main = create({
|
|
|
168
164
|
},
|
|
169
165
|
{
|
|
170
166
|
type: "day",
|
|
171
|
-
range: [
|
|
167
|
+
range: [minDay, maxDay]
|
|
172
168
|
},
|
|
173
169
|
{
|
|
174
170
|
type: "hour",
|
|
@@ -193,6 +189,9 @@ const _sfc_main = create({
|
|
|
193
189
|
case "time":
|
|
194
190
|
result = result.slice(3, 6);
|
|
195
191
|
break;
|
|
192
|
+
case "year-month":
|
|
193
|
+
result = result.slice(0, 2);
|
|
194
|
+
break;
|
|
196
195
|
case "month-day":
|
|
197
196
|
result = result.slice(1, 3);
|
|
198
197
|
break;
|
|
@@ -238,7 +237,7 @@ const _sfc_main = create({
|
|
|
238
237
|
};
|
|
239
238
|
const generateValue = (min, max, val, type, columnIndex) => {
|
|
240
239
|
const arr = [];
|
|
241
|
-
let
|
|
240
|
+
let index2 = 0;
|
|
242
241
|
while (min <= max) {
|
|
243
242
|
arr.push(formatterOption(type, min));
|
|
244
243
|
if (type === "minute") {
|
|
@@ -247,10 +246,10 @@ const _sfc_main = create({
|
|
|
247
246
|
min++;
|
|
248
247
|
}
|
|
249
248
|
if (min <= val) {
|
|
250
|
-
|
|
249
|
+
index2++;
|
|
251
250
|
}
|
|
252
251
|
}
|
|
253
|
-
state.selectedValue[columnIndex] = arr[
|
|
252
|
+
state.selectedValue[columnIndex] = arr[index2].value;
|
|
254
253
|
return props.filter ? props.filter(type, arr) : arr;
|
|
255
254
|
};
|
|
256
255
|
const getDateIndex = (type) => {
|
|
@@ -312,5 +311,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
312
311
|
isWrapTeleport: _ctx.isWrapTeleport
|
|
313
312
|
}, null, 8, ["modelValue", "visible", "okText", "cancelText", "onClose", "columns", "onChange", "title", "onConfirm", "isWrapTeleport"]);
|
|
314
313
|
}
|
|
315
|
-
var
|
|
316
|
-
export {
|
|
314
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
315
|
+
export { index as default };
|
|
@@ -17,21 +17,24 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __publicField = (obj, key, value) => {
|
|
21
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
22
|
+
return value;
|
|
23
|
+
};
|
|
20
24
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.19-beta.
|
|
25
|
+
* @nutui/nutui v3.1.19-beta.2 Thu Apr 07 2022 17:52:31 GMT+0800 (中国标准时间)
|
|
22
26
|
* (c) 2022 @jdf2e.
|
|
23
27
|
* Released under the MIT License.
|
|
24
28
|
*/
|
|
25
|
-
import { ref, onMounted, watch, computed, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, createElementBlock, renderSlot, Fragment, createTextVNode, toDisplayString, createCommentVNode, normalizeStyle } from "vue";
|
|
29
|
+
import { ref, onMounted, watch, computed, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, createElementBlock, renderSlot, Fragment, createTextVNode, toDisplayString, createCommentVNode, normalizeStyle, createVNode, render, h } from "vue";
|
|
26
30
|
import { c as createComponent } from "./component.js";
|
|
27
31
|
import Popup, { popupProps } from "./Popup.js";
|
|
28
32
|
import Button from "./Button.js";
|
|
29
33
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
30
|
-
import "./use-lock-scroll.js";
|
|
31
34
|
import "./OverLay.js";
|
|
32
35
|
import "./Icon.js";
|
|
33
36
|
import "./pxCheck.js";
|
|
34
|
-
const { componentName, create } = createComponent("dialog");
|
|
37
|
+
const { componentName, create, translate } = createComponent("dialog");
|
|
35
38
|
const _sfc_main = create({
|
|
36
39
|
inheritAttrs: false,
|
|
37
40
|
components: {
|
|
@@ -65,11 +68,11 @@ const _sfc_main = create({
|
|
|
65
68
|
},
|
|
66
69
|
cancelText: {
|
|
67
70
|
type: String,
|
|
68
|
-
default: "
|
|
71
|
+
default: ""
|
|
69
72
|
},
|
|
70
73
|
okText: {
|
|
71
74
|
type: String,
|
|
72
|
-
default: "
|
|
75
|
+
default: ""
|
|
73
76
|
},
|
|
74
77
|
okBtnDisabled: {
|
|
75
78
|
type: Boolean,
|
|
@@ -125,15 +128,16 @@ const _sfc_main = create({
|
|
|
125
128
|
}
|
|
126
129
|
};
|
|
127
130
|
const onOk = () => {
|
|
128
|
-
closed();
|
|
129
131
|
emit("ok");
|
|
132
|
+
closed();
|
|
130
133
|
};
|
|
131
134
|
return {
|
|
132
135
|
closed,
|
|
133
136
|
classes,
|
|
134
137
|
onCancel,
|
|
135
138
|
onOk,
|
|
136
|
-
showPopup
|
|
139
|
+
showPopup,
|
|
140
|
+
translate
|
|
137
141
|
};
|
|
138
142
|
}
|
|
139
143
|
});
|
|
@@ -187,7 +191,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
187
191
|
onClick: _ctx.onCancel
|
|
188
192
|
}, {
|
|
189
193
|
default: withCtx(() => [
|
|
190
|
-
createTextVNode(toDisplayString(_ctx.cancelText), 1)
|
|
194
|
+
createTextVNode(toDisplayString(_ctx.cancelText || _ctx.translate("cancel")), 1)
|
|
191
195
|
]),
|
|
192
196
|
_: 1
|
|
193
197
|
}, 8, ["onClick"])) : createCommentVNode("", true),
|
|
@@ -200,7 +204,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
200
204
|
onClick: _ctx.onOk
|
|
201
205
|
}, {
|
|
202
206
|
default: withCtx(() => [
|
|
203
|
-
createTextVNode(toDisplayString(_ctx.okText), 1)
|
|
207
|
+
createTextVNode(toDisplayString(_ctx.okText || _ctx.translate("confirm")), 1)
|
|
204
208
|
]),
|
|
205
209
|
_: 1
|
|
206
210
|
}, 8, ["class", "disabled", "onClick"])) : createCommentVNode("", true)
|
|
@@ -211,5 +215,80 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
211
215
|
_: 3
|
|
212
216
|
}, 8, ["teleport", "visible", "close-on-click-overlay", "lock-scroll", "onClickOverlay", "onClickCloseIcon"]);
|
|
213
217
|
}
|
|
214
|
-
var
|
|
215
|
-
|
|
218
|
+
var Dialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
219
|
+
class DialogOptions {
|
|
220
|
+
constructor() {
|
|
221
|
+
__publicField(this, "title", "");
|
|
222
|
+
__publicField(this, "content", "");
|
|
223
|
+
__publicField(this, "cancelText", "");
|
|
224
|
+
__publicField(this, "okText", "");
|
|
225
|
+
__publicField(this, "textAlign", "center");
|
|
226
|
+
__publicField(this, "teleport", "body");
|
|
227
|
+
__publicField(this, "id", new Date().getTime());
|
|
228
|
+
__publicField(this, "footerDirection", "horizontal");
|
|
229
|
+
__publicField(this, "onUpdate", (value) => {
|
|
230
|
+
});
|
|
231
|
+
__publicField(this, "onOk", () => {
|
|
232
|
+
});
|
|
233
|
+
__publicField(this, "onCancel", () => {
|
|
234
|
+
});
|
|
235
|
+
__publicField(this, "onClose", () => {
|
|
236
|
+
});
|
|
237
|
+
__publicField(this, "onClosed", () => {
|
|
238
|
+
});
|
|
239
|
+
__publicField(this, "visible", true);
|
|
240
|
+
__publicField(this, "noFooter", false);
|
|
241
|
+
__publicField(this, "noOkBtn", false);
|
|
242
|
+
__publicField(this, "noCancelBtn", false);
|
|
243
|
+
__publicField(this, "okBtnDisabled", false);
|
|
244
|
+
__publicField(this, "closeOnPopstate", false);
|
|
245
|
+
__publicField(this, "lockScroll", false);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
class DialogFunction {
|
|
249
|
+
constructor(_options) {
|
|
250
|
+
__publicField(this, "options", new DialogOptions());
|
|
251
|
+
__publicField(this, "close", () => {
|
|
252
|
+
});
|
|
253
|
+
__publicField(this, "setDefaultOptions", (options) => {
|
|
254
|
+
});
|
|
255
|
+
__publicField(this, "resetDefaultOptions", () => {
|
|
256
|
+
});
|
|
257
|
+
let options = Object.assign(this.options, _options);
|
|
258
|
+
let elWarp = document.body;
|
|
259
|
+
let teleport = options.teleport;
|
|
260
|
+
if (teleport != "body") {
|
|
261
|
+
if (typeof teleport == "string") {
|
|
262
|
+
elWarp = document.querySelector(teleport);
|
|
263
|
+
} else {
|
|
264
|
+
elWarp = options.teleport;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
const root = document.createElement("view");
|
|
268
|
+
root.id = "dialog-" + options.id;
|
|
269
|
+
const Wrapper = {
|
|
270
|
+
setup() {
|
|
271
|
+
options.onUpdate = (val) => {
|
|
272
|
+
if (val == false) {
|
|
273
|
+
elWarp.removeChild(root);
|
|
274
|
+
}
|
|
275
|
+
};
|
|
276
|
+
options.teleport = `#${root.id}`;
|
|
277
|
+
return () => {
|
|
278
|
+
return h(Dialog, options);
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
};
|
|
282
|
+
const instance = createVNode(Wrapper);
|
|
283
|
+
elWarp.appendChild(root);
|
|
284
|
+
render(instance, root);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
const _Dialog = function(options) {
|
|
288
|
+
return new DialogFunction(options);
|
|
289
|
+
};
|
|
290
|
+
_Dialog.install = (app) => {
|
|
291
|
+
app.use(Dialog);
|
|
292
|
+
app.config.globalProperties.$dialog = _Dialog;
|
|
293
|
+
};
|
|
294
|
+
export { Dialog, DialogOptions, _Dialog as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.19-beta.
|
|
2
|
+
* @nutui/nutui v3.1.19-beta.2 Thu Apr 07 2022 17:52:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -39,11 +39,11 @@ const _sfc_main = create({
|
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
41
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
42
|
-
return openBlock(), createElementBlock("
|
|
42
|
+
return openBlock(), createElementBlock("div", {
|
|
43
43
|
class: normalizeClass(_ctx.classes)
|
|
44
44
|
}, [
|
|
45
45
|
renderSlot(_ctx.$slots, "default")
|
|
46
46
|
], 2);
|
|
47
47
|
}
|
|
48
|
-
var
|
|
49
|
-
export {
|
|
48
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
49
|
+
export { index as default };
|