@nutui/nutui 3.1.19-beta.1 → 3.1.19-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -8
- package/dist/nutui.es.js +3044 -3533
- package/dist/nutui.umd.js +3135 -3536
- package/dist/packages/_es/ActionSheet.js +64 -42
- 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 +9 -9
- 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 +11 -10
- package/dist/packages/_es/CountUp.js +51 -43
- package/dist/packages/_es/DatePicker.js +22 -23
- 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/Ecard.js +153 -0
- package/dist/packages/_es/Elevator.js +50 -75
- package/dist/packages/_es/Empty.js +8 -7
- 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 +21 -20
- 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 +5 -4
- package/dist/packages/_es/NoticeBar.js +40 -47
- package/dist/packages/_es/Notify.js +166 -27
- package/dist/packages/_es/NumberKeyboard.js +22 -11
- 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 +23 -45
- 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 +23 -19
- 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 +75 -96
- 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 +18 -17
- package/dist/packages/_es/Tabs.js +20 -21
- package/dist/packages/_es/Tag.js +4 -4
- package/dist/packages/_es/TextArea.js +47 -48
- 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 +145 -116
- package/dist/packages/_es/Video.js +9 -8
- package/dist/packages/_es/common.js +1 -1
- package/dist/packages/_es/component.js +165 -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/packages/actionsheet/index.scss +8 -0
- package/dist/packages/ecard/index.scss +83 -0
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +48 -47
- package/dist/styles/themes/jdt.scss +48 -47
- package/dist/styles/variables-jdt.scss +3 -0
- package/dist/styles/variables.scss +3 -0
- package/dist/types/__VUE/actionsheet/index.d.ts +280 -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 +91 -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/ecard/index.d.ts +123 -0
- package/dist/types/__VUE/elevator/index.d.ts +71 -0
- package/dist/types/__VUE/empty/index.d.ts +47 -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 +337 -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 +83 -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 +124 -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 +343 -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 +138 -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 +137 -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 +55 -0
- package/dist/types/__VUE/table/index.d.ts +76 -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 +121 -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 +93 -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,17 +18,14 @@ 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.4 Tue Apr 12 2022 17:39:20 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
25
25
|
import { ref, reactive, computed, watch, onMounted, toRefs, openBlock, createElementBlock, createElementVNode, normalizeStyle, Fragment, renderList, normalizeClass, toDisplayString, createCommentVNode, onBeforeUnmount, resolveComponent, createVNode, withCtx } from "vue";
|
|
26
26
|
import { c as createComponent } from "./component.js";
|
|
27
|
-
import { popupProps } from "./Popup.js";
|
|
28
|
-
import { u as useTaroRect } from "./index.js";
|
|
29
|
-
import Taro from "@tarojs/taro";
|
|
27
|
+
import Popup, { popupProps } from "./Popup.js";
|
|
30
28
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
31
|
-
import "./use-lock-scroll.js";
|
|
32
29
|
import "./OverLay.js";
|
|
33
30
|
import "./Icon.js";
|
|
34
31
|
import "./pxCheck.js";
|
|
@@ -53,7 +50,6 @@ const _sfc_main$1 = create$1({
|
|
|
53
50
|
emits: ["click", "change"],
|
|
54
51
|
setup(props, { emit }) {
|
|
55
52
|
const wrapper = ref();
|
|
56
|
-
const itemref = ref();
|
|
57
53
|
const state = reactive({
|
|
58
54
|
touchParams: {
|
|
59
55
|
startY: 0,
|
|
@@ -72,7 +68,7 @@ const _sfc_main$1 = create$1({
|
|
|
72
68
|
});
|
|
73
69
|
const roller = ref(null);
|
|
74
70
|
const list = ref(null);
|
|
75
|
-
const
|
|
71
|
+
const listItem = ref(null);
|
|
76
72
|
const touchDeg = ref(0);
|
|
77
73
|
const touchTime = ref(0);
|
|
78
74
|
const touchTranslateY = ref(0);
|
|
@@ -177,53 +173,33 @@ const _sfc_main$1 = create$1({
|
|
|
177
173
|
type && setChooseValue();
|
|
178
174
|
setMove(-move);
|
|
179
175
|
};
|
|
180
|
-
const getReference = async () => {
|
|
181
|
-
const refe = await useTaroRect(list, Taro);
|
|
182
|
-
state.lineSpacing = refe.height / props.column.length;
|
|
183
|
-
modifyStatus(true);
|
|
184
|
-
};
|
|
185
176
|
watch(() => props.column, (val) => {
|
|
186
177
|
state.transformY = 0;
|
|
187
178
|
modifyStatus(false);
|
|
188
179
|
}, {
|
|
189
180
|
deep: true
|
|
190
181
|
});
|
|
191
|
-
watch(() => props.itemShow, (val) => {
|
|
192
|
-
if (val) {
|
|
193
|
-
setTimeout(() => {
|
|
194
|
-
getReference();
|
|
195
|
-
}, 200);
|
|
196
|
-
}
|
|
197
|
-
}, {
|
|
198
|
-
deep: true
|
|
199
|
-
});
|
|
200
182
|
onMounted(() => {
|
|
201
|
-
|
|
202
|
-
getReference();
|
|
203
|
-
}, 200);
|
|
183
|
+
modifyStatus(true);
|
|
204
184
|
});
|
|
205
|
-
const refRandomId = Math.random().toString(36).slice(-8);
|
|
206
185
|
return __spreadProps(__spreadValues(__spreadValues({}, toRefs(state)), toRefs(props)), {
|
|
207
186
|
wrapper,
|
|
208
|
-
itemref,
|
|
209
187
|
setRollerStyle,
|
|
210
188
|
isHidden,
|
|
211
189
|
roller,
|
|
212
190
|
list,
|
|
213
|
-
|
|
191
|
+
listItem,
|
|
214
192
|
onTouchStart,
|
|
215
193
|
onTouchMove,
|
|
216
194
|
onTouchEnd,
|
|
217
195
|
touchRollerStyle,
|
|
218
196
|
touchListStyle,
|
|
219
|
-
setMove
|
|
220
|
-
refRandomId
|
|
197
|
+
setMove
|
|
221
198
|
});
|
|
222
199
|
}
|
|
223
200
|
});
|
|
224
201
|
const _hoisted_1$1 = { class: "nut-picker-content" };
|
|
225
|
-
const _hoisted_2$1 =
|
|
226
|
-
const _hoisted_3$1 = {
|
|
202
|
+
const _hoisted_2$1 = {
|
|
227
203
|
key: 0,
|
|
228
204
|
class: "nut-picker-placeholder"
|
|
229
205
|
};
|
|
@@ -251,7 +227,6 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
251
227
|
createElementVNode("view", {
|
|
252
228
|
class: "nut-picker-list-panel",
|
|
253
229
|
ref: "list",
|
|
254
|
-
id: "list" + _ctx.refRandomId,
|
|
255
230
|
style: normalizeStyle(_ctx.touchListStyle)
|
|
256
231
|
}, [
|
|
257
232
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.column, (item, index) => {
|
|
@@ -260,16 +235,17 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
260
235
|
key: item.value ? item.value : index
|
|
261
236
|
}, toDisplayString(item.text), 3);
|
|
262
237
|
}), 128)),
|
|
263
|
-
_ctx.column && _ctx.column.length === 1 ? (openBlock(), createElementBlock("view",
|
|
264
|
-
],
|
|
238
|
+
_ctx.column && _ctx.column.length === 1 ? (openBlock(), createElementBlock("view", _hoisted_2$1)) : createCommentVNode("", true)
|
|
239
|
+
], 4)
|
|
265
240
|
])
|
|
266
241
|
], 32);
|
|
267
242
|
}
|
|
268
243
|
var column = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
|
|
269
|
-
const { componentName, create } = createComponent("picker");
|
|
244
|
+
const { componentName, create, translate } = createComponent("picker");
|
|
270
245
|
const _sfc_main = create({
|
|
271
246
|
components: {
|
|
272
|
-
[column.name]: column
|
|
247
|
+
[column.name]: column,
|
|
248
|
+
[Popup.name]: Popup
|
|
273
249
|
},
|
|
274
250
|
props: __spreadProps(__spreadValues({}, popupProps), {
|
|
275
251
|
modelValue: {
|
|
@@ -282,11 +258,11 @@ const _sfc_main = create({
|
|
|
282
258
|
},
|
|
283
259
|
cancelText: {
|
|
284
260
|
type: String,
|
|
285
|
-
default: "
|
|
261
|
+
default: ""
|
|
286
262
|
},
|
|
287
263
|
okText: {
|
|
288
264
|
type: String,
|
|
289
|
-
default: "
|
|
265
|
+
default: ""
|
|
290
266
|
},
|
|
291
267
|
columns: {
|
|
292
268
|
type: Array,
|
|
@@ -431,7 +407,8 @@ const _sfc_main = create({
|
|
|
431
407
|
close,
|
|
432
408
|
changeHandler,
|
|
433
409
|
confirmHandler,
|
|
434
|
-
defaultValues
|
|
410
|
+
defaultValues,
|
|
411
|
+
translate
|
|
435
412
|
});
|
|
436
413
|
}
|
|
437
414
|
});
|
|
@@ -453,19 +430,20 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
453
430
|
"lock-scroll": _ctx.lockScroll,
|
|
454
431
|
"close-on-click-overlay": _ctx.closeOnClickOverlay,
|
|
455
432
|
onClose: _ctx.close,
|
|
456
|
-
round: true
|
|
433
|
+
round: true,
|
|
434
|
+
isWrapTeleport: _ctx.isWrapTeleport
|
|
457
435
|
}, {
|
|
458
436
|
default: withCtx(() => [
|
|
459
437
|
createElementVNode("view", _hoisted_1, [
|
|
460
438
|
createElementVNode("view", {
|
|
461
439
|
class: "nut-picker__cancel nut-picker__left nut-picker__button",
|
|
462
440
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.close && _ctx.close(...args))
|
|
463
|
-
}, toDisplayString(_ctx.cancelText), 1),
|
|
441
|
+
}, toDisplayString(_ctx.cancelText || _ctx.translate("cancel")), 1),
|
|
464
442
|
createElementVNode("view", _hoisted_2, toDisplayString(_ctx.title), 1),
|
|
465
443
|
createElementVNode("view", {
|
|
466
444
|
class: "nut-picker__confirm nut-picker__right nut-picker__button",
|
|
467
445
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.confirmHandler())
|
|
468
|
-
}, toDisplayString(_ctx.okText), 1)
|
|
446
|
+
}, toDisplayString(_ctx.okText || _ctx.translate("confirm")), 1)
|
|
469
447
|
]),
|
|
470
448
|
createElementVNode("view", _hoisted_3, [
|
|
471
449
|
_hoisted_4,
|
|
@@ -489,8 +467,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
489
467
|
])
|
|
490
468
|
]),
|
|
491
469
|
_: 1
|
|
492
|
-
}, 8, ["visible", "teleport", "lock-scroll", "close-on-click-overlay", "onClose"])
|
|
470
|
+
}, 8, ["visible", "teleport", "lock-scroll", "close-on-click-overlay", "onClose", "isWrapTeleport"])
|
|
493
471
|
], 2);
|
|
494
472
|
}
|
|
495
|
-
var
|
|
496
|
-
export {
|
|
473
|
+
var picker = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
474
|
+
export { picker as default };
|
|
@@ -18,140 +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.4 Tue Apr 12 2022 17:39:20 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
25
|
-
import {
|
|
25
|
+
import { ref, reactive, toRefs, computed, onMounted, watch, resolveComponent, openBlock, createElementBlock, withModifiers, normalizeClass, createElementVNode, renderSlot, Fragment, normalizeStyle, renderList, createVNode, createCommentVNode, toDisplayString } from "vue";
|
|
26
26
|
import { c as createComponent } from "./component.js";
|
|
27
|
-
import
|
|
27
|
+
import Popup, { popupProps } from "./Popup.js";
|
|
28
|
+
import Button from "./Button.js";
|
|
28
29
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import "./use-lock-scroll.js";
|
|
30
|
+
import "./OverLay.js";
|
|
31
|
+
import "./Icon.js";
|
|
32
32
|
import "./pxCheck.js";
|
|
33
|
-
const { componentName: componentName$1, create: create$1 } = createComponent("button");
|
|
34
|
-
const _sfc_main$1 = create$1({
|
|
35
|
-
components: {
|
|
36
|
-
[_sfc_main$2.name]: _sfc_main$2
|
|
37
|
-
},
|
|
38
|
-
props: {
|
|
39
|
-
color: String,
|
|
40
|
-
shape: {
|
|
41
|
-
type: String,
|
|
42
|
-
default: "round"
|
|
43
|
-
},
|
|
44
|
-
plain: {
|
|
45
|
-
type: Boolean,
|
|
46
|
-
default: false
|
|
47
|
-
},
|
|
48
|
-
loading: {
|
|
49
|
-
type: Boolean,
|
|
50
|
-
default: false
|
|
51
|
-
},
|
|
52
|
-
disabled: {
|
|
53
|
-
type: Boolean,
|
|
54
|
-
default: false
|
|
55
|
-
},
|
|
56
|
-
type: {
|
|
57
|
-
type: String,
|
|
58
|
-
default: "default"
|
|
59
|
-
},
|
|
60
|
-
size: {
|
|
61
|
-
type: String,
|
|
62
|
-
default: "normal"
|
|
63
|
-
},
|
|
64
|
-
block: {
|
|
65
|
-
type: Boolean,
|
|
66
|
-
default: false
|
|
67
|
-
},
|
|
68
|
-
icon: {
|
|
69
|
-
type: String,
|
|
70
|
-
default: ""
|
|
71
|
-
},
|
|
72
|
-
iconClassPrefix: {
|
|
73
|
-
type: String,
|
|
74
|
-
default: "nut-icon"
|
|
75
|
-
},
|
|
76
|
-
iconFontClassName: {
|
|
77
|
-
type: String,
|
|
78
|
-
default: "nutui-iconfont"
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
emits: ["click"],
|
|
82
|
-
setup(props, { emit, slots }) {
|
|
83
|
-
const { type, size, shape, disabled, loading, color, plain, block } = toRefs(props);
|
|
84
|
-
const handleClick = (event) => {
|
|
85
|
-
if (!loading.value && !disabled.value) {
|
|
86
|
-
emit("click", event);
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
const classes = computed(() => {
|
|
90
|
-
const prefixCls = componentName$1;
|
|
91
|
-
return {
|
|
92
|
-
[prefixCls]: true,
|
|
93
|
-
[`${prefixCls}--${type.value}`]: type.value,
|
|
94
|
-
[`${prefixCls}--${size.value}`]: size.value,
|
|
95
|
-
[`${prefixCls}--${shape.value}`]: shape.value,
|
|
96
|
-
[`${prefixCls}--plain`]: plain.value,
|
|
97
|
-
[`${prefixCls}--block`]: block.value,
|
|
98
|
-
[`${prefixCls}--disabled`]: disabled.value,
|
|
99
|
-
[`${prefixCls}--loading`]: loading.value
|
|
100
|
-
};
|
|
101
|
-
});
|
|
102
|
-
const getStyle = computed(() => {
|
|
103
|
-
var _a;
|
|
104
|
-
const style = {};
|
|
105
|
-
if (color == null ? void 0 : color.value) {
|
|
106
|
-
if (plain.value) {
|
|
107
|
-
style.color = color.value;
|
|
108
|
-
style.background = "#fff";
|
|
109
|
-
if (!((_a = color.value) == null ? void 0 : _a.includes("gradient"))) {
|
|
110
|
-
style.borderColor = color.value;
|
|
111
|
-
}
|
|
112
|
-
} else {
|
|
113
|
-
style.color = "#fff";
|
|
114
|
-
style.background = color.value;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
return style;
|
|
118
|
-
});
|
|
119
|
-
return {
|
|
120
|
-
handleClick,
|
|
121
|
-
classes,
|
|
122
|
-
getStyle
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
const _hoisted_1$1 = { class: "nut-button__warp" };
|
|
127
|
-
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
128
|
-
const _component_nut_icon = resolveComponent("nut-icon");
|
|
129
|
-
return openBlock(), createElementBlock("view", {
|
|
130
|
-
class: normalizeClass(_ctx.classes),
|
|
131
|
-
style: normalizeStyle(_ctx.getStyle),
|
|
132
|
-
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
133
|
-
}, [
|
|
134
|
-
createElementVNode("view", _hoisted_1$1, [
|
|
135
|
-
_ctx.loading ? (openBlock(), createBlock(_component_nut_icon, {
|
|
136
|
-
key: 0,
|
|
137
|
-
class: "nut-icon-loading"
|
|
138
|
-
})) : createCommentVNode("", true),
|
|
139
|
-
_ctx.icon && !_ctx.loading ? (openBlock(), createBlock(_component_nut_icon, {
|
|
140
|
-
key: 1,
|
|
141
|
-
name: _ctx.icon,
|
|
142
|
-
"class-prefix": _ctx.iconClassPrefix,
|
|
143
|
-
"font-class-name": _ctx.iconFontClassName
|
|
144
|
-
}, null, 8, ["name", "class-prefix", "font-class-name"])) : createCommentVNode("", true),
|
|
145
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("view", {
|
|
146
|
-
key: 2,
|
|
147
|
-
class: normalizeClass({ text: _ctx.icon || _ctx.loading })
|
|
148
|
-
}, [
|
|
149
|
-
renderSlot(_ctx.$slots, "default")
|
|
150
|
-
], 2)) : createCommentVNode("", true)
|
|
151
|
-
])
|
|
152
|
-
], 6);
|
|
153
|
-
}
|
|
154
|
-
var Button = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
|
|
155
33
|
const { componentName, create } = createComponent("popover");
|
|
156
34
|
const _sfc_main = create({
|
|
157
35
|
inheritAttrs: false,
|
|
@@ -203,15 +81,15 @@ const _sfc_main = create({
|
|
|
203
81
|
[`${prefixCls}--${location.value}`]: location.value
|
|
204
82
|
};
|
|
205
83
|
});
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
state.
|
|
209
|
-
|
|
210
|
-
};
|
|
84
|
+
function getReference() {
|
|
85
|
+
state.elWidth = reference.value.offsetWidth;
|
|
86
|
+
state.elHeight = reference.value.offsetHeight;
|
|
87
|
+
}
|
|
211
88
|
const getStyle = computed(() => {
|
|
212
89
|
const style = {};
|
|
213
90
|
if (location.value == "top") {
|
|
214
|
-
style.bottom = state.elHeight +
|
|
91
|
+
style.bottom = state.elHeight + 20 + "px";
|
|
92
|
+
style.left = 0 + "px";
|
|
215
93
|
} else if (location.value == "right") {
|
|
216
94
|
style.top = 0 + "px";
|
|
217
95
|
style.right = -state.elWidth + "px";
|
|
@@ -219,7 +97,8 @@ const _sfc_main = create({
|
|
|
219
97
|
style.top = 0 + "px";
|
|
220
98
|
style.left = -state.elWidth + "px";
|
|
221
99
|
} else {
|
|
222
|
-
style.top = state.elHeight +
|
|
100
|
+
style.top = state.elHeight + 20 + "px";
|
|
101
|
+
style.left = 0 + "px";
|
|
223
102
|
}
|
|
224
103
|
return style;
|
|
225
104
|
});
|
|
@@ -241,9 +120,7 @@ const _sfc_main = create({
|
|
|
241
120
|
return style;
|
|
242
121
|
});
|
|
243
122
|
onMounted(() => {
|
|
244
|
-
|
|
245
|
-
getReference();
|
|
246
|
-
}, 200);
|
|
123
|
+
getReference();
|
|
247
124
|
});
|
|
248
125
|
watch(() => props.visible, (value) => {
|
|
249
126
|
showPopup.value = value;
|
|
@@ -260,10 +137,12 @@ const _sfc_main = create({
|
|
|
260
137
|
emit("close");
|
|
261
138
|
emit("update:visible", false);
|
|
262
139
|
};
|
|
263
|
-
const chooseItem = (item,
|
|
264
|
-
|
|
140
|
+
const chooseItem = (item, index2) => {
|
|
141
|
+
if (item.disabled) {
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
emit("choose", item, index2);
|
|
265
145
|
};
|
|
266
|
-
const refRandomId = Math.random().toString(36).slice(-8);
|
|
267
146
|
return {
|
|
268
147
|
classes,
|
|
269
148
|
showPopup,
|
|
@@ -275,12 +154,11 @@ const _sfc_main = create({
|
|
|
275
154
|
getReference,
|
|
276
155
|
reference,
|
|
277
156
|
getStyle,
|
|
278
|
-
getArrowStyle
|
|
279
|
-
refRandomId
|
|
157
|
+
getArrowStyle
|
|
280
158
|
};
|
|
281
159
|
}
|
|
282
160
|
});
|
|
283
|
-
const _hoisted_1 =
|
|
161
|
+
const _hoisted_1 = { ref: "reference" };
|
|
284
162
|
const _hoisted_2 = ["onClick"];
|
|
285
163
|
const _hoisted_3 = { class: "title-name" };
|
|
286
164
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -289,12 +167,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
289
167
|
onClick: _cache[1] || (_cache[1] = withModifiers((...args) => _ctx.openPopover && _ctx.openPopover(...args), ["stop"])),
|
|
290
168
|
class: normalizeClass(_ctx.classes)
|
|
291
169
|
}, [
|
|
292
|
-
createElementVNode("div",
|
|
293
|
-
ref: "reference",
|
|
294
|
-
id: "reference-" + _ctx.refRandomId
|
|
295
|
-
}, [
|
|
170
|
+
createElementVNode("div", _hoisted_1, [
|
|
296
171
|
renderSlot(_ctx.$slots, "reference")
|
|
297
|
-
],
|
|
172
|
+
], 512),
|
|
298
173
|
_ctx.showPopup ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
299
174
|
createElementVNode("view", {
|
|
300
175
|
class: "more-background",
|
|
@@ -309,11 +184,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
309
184
|
style: normalizeStyle(_ctx.getArrowStyle)
|
|
310
185
|
}, null, 6),
|
|
311
186
|
renderSlot(_ctx.$slots, "content"),
|
|
312
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.list, (item,
|
|
187
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.list, (item, index2) => {
|
|
313
188
|
return openBlock(), createElementBlock("view", {
|
|
314
|
-
key:
|
|
189
|
+
key: index2,
|
|
315
190
|
class: normalizeClass({ "title-item": true, disabled: item.disabled }),
|
|
316
|
-
onClick: withModifiers(($event) => _ctx.chooseItem(item,
|
|
191
|
+
onClick: withModifiers(($event) => _ctx.chooseItem(item, index2), ["stop"])
|
|
317
192
|
}, [
|
|
318
193
|
item.icon ? renderSlot(_ctx.$slots, "default", { key: 0 }, () => [
|
|
319
194
|
createVNode(_component_nut_icon, {
|
|
@@ -328,5 +203,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
328
203
|
], 64)) : createCommentVNode("", true)
|
|
329
204
|
], 2);
|
|
330
205
|
}
|
|
331
|
-
var
|
|
332
|
-
export {
|
|
206
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
207
|
+
export { index as default };
|
|
@@ -18,17 +18,33 @@ 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.4 Tue Apr 12 2022 17:39:20 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
25
|
-
import { reactive, computed, onMounted, onBeforeUnmount, onBeforeMount, onActivated, onDeactivated, watch, toRefs, resolveComponent, openBlock,
|
|
26
|
-
import { u as useLockScroll } from "./use-lock-scroll.js";
|
|
25
|
+
import { 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";
|
|
27
26
|
import overlay, { overlayProps } from "./OverLay.js";
|
|
28
27
|
import _sfc_main$1 from "./Icon.js";
|
|
29
28
|
import { c as createComponent } from "./component.js";
|
|
30
29
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
31
30
|
import "./pxCheck.js";
|
|
31
|
+
let count = 0;
|
|
32
|
+
const CLSNAME = "nut-overflow-hidden";
|
|
33
|
+
const useLockScroll = (isLock) => {
|
|
34
|
+
const lock = () => {
|
|
35
|
+
if (isLock()) {
|
|
36
|
+
!count && document.body.classList.add(CLSNAME);
|
|
37
|
+
count++;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
const unlock = () => {
|
|
41
|
+
if (isLock() && count) {
|
|
42
|
+
count--;
|
|
43
|
+
!count && document.body.classList.remove(CLSNAME);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
return [lock, unlock];
|
|
47
|
+
};
|
|
32
48
|
const { componentName, create } = createComponent("popup");
|
|
33
49
|
let _zIndex = 2e3;
|
|
34
50
|
const popupProps = __spreadProps(__spreadValues({}, overlayProps), {
|
|
@@ -71,10 +87,13 @@ const popupProps = __spreadProps(__spreadValues({}, overlayProps), {
|
|
|
71
87
|
round: {
|
|
72
88
|
type: Boolean,
|
|
73
89
|
default: false
|
|
90
|
+
},
|
|
91
|
+
isWrapTeleport: {
|
|
92
|
+
type: Boolean,
|
|
93
|
+
default: true
|
|
74
94
|
}
|
|
75
95
|
});
|
|
76
96
|
const _sfc_main = create({
|
|
77
|
-
children: [overlay],
|
|
78
97
|
components: {
|
|
79
98
|
[overlay.name]: overlay,
|
|
80
99
|
[_sfc_main$1.name]: _sfc_main$1
|
|
@@ -199,10 +218,14 @@ const _sfc_main = create({
|
|
|
199
218
|
});
|
|
200
219
|
}
|
|
201
220
|
});
|
|
221
|
+
const _hoisted_1 = { key: 1 };
|
|
202
222
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
203
223
|
const _component_nut_overlay = resolveComponent("nut-overlay");
|
|
204
224
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
205
|
-
return openBlock(),
|
|
225
|
+
return _ctx.isWrapTeleport ? (openBlock(), createBlock(Teleport, {
|
|
226
|
+
key: 0,
|
|
227
|
+
to: _ctx.teleport
|
|
228
|
+
}, [
|
|
206
229
|
_ctx.overlay ? (openBlock(), createBlock(_component_nut_overlay, {
|
|
207
230
|
key: 0,
|
|
208
231
|
visible: _ctx.visible,
|
|
@@ -242,7 +265,47 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
242
265
|
]),
|
|
243
266
|
_: 3
|
|
244
267
|
}, 8, ["name", "onAfterEnter", "onAfterLeave"])
|
|
245
|
-
])
|
|
268
|
+
], 8, ["to"])) : (openBlock(), createElementBlock("view", _hoisted_1, [
|
|
269
|
+
_ctx.overlay ? (openBlock(), createBlock(_component_nut_overlay, {
|
|
270
|
+
key: 0,
|
|
271
|
+
visible: _ctx.visible,
|
|
272
|
+
"close-on-click-overlay": _ctx.closeOnClickOverlay,
|
|
273
|
+
class: normalizeClass(_ctx.overlayClass),
|
|
274
|
+
style: normalizeStyle(_ctx.overlayStyle),
|
|
275
|
+
"z-index": _ctx.zIndex,
|
|
276
|
+
"lock-scroll": _ctx.lockScroll,
|
|
277
|
+
duration: _ctx.duration,
|
|
278
|
+
onClick: _ctx.onClickOverlay
|
|
279
|
+
}, null, 8, ["visible", "close-on-click-overlay", "class", "style", "z-index", "lock-scroll", "duration", "onClick"])) : createCommentVNode("", true),
|
|
280
|
+
createVNode(Transition, {
|
|
281
|
+
name: _ctx.transitionName,
|
|
282
|
+
onAfterEnter: _ctx.onOpened,
|
|
283
|
+
onAfterLeave: _ctx.onClosed
|
|
284
|
+
}, {
|
|
285
|
+
default: withCtx(() => [
|
|
286
|
+
withDirectives(createElementVNode("view", {
|
|
287
|
+
class: normalizeClass(_ctx.classes),
|
|
288
|
+
style: normalizeStyle(_ctx.popStyle),
|
|
289
|
+
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
290
|
+
}, [
|
|
291
|
+
_ctx.showSlot ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("", true),
|
|
292
|
+
_ctx.closed ? (openBlock(), createElementBlock("view", {
|
|
293
|
+
key: 1,
|
|
294
|
+
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.onClickCloseIcon && _ctx.onClickCloseIcon(...args)),
|
|
295
|
+
class: normalizeClass(["nutui-popup__close-icon", "nutui-popup__close-icon--" + _ctx.closeIconPosition])
|
|
296
|
+
}, [
|
|
297
|
+
createVNode(_component_nut_icon, {
|
|
298
|
+
name: _ctx.closeIcon,
|
|
299
|
+
size: "12px"
|
|
300
|
+
}, null, 8, ["name"])
|
|
301
|
+
], 2)) : createCommentVNode("", true)
|
|
302
|
+
], 6), [
|
|
303
|
+
[vShow, _ctx.visible]
|
|
304
|
+
])
|
|
305
|
+
]),
|
|
306
|
+
_: 3
|
|
307
|
+
}, 8, ["name", "onAfterEnter", "onAfterLeave"])
|
|
308
|
+
]));
|
|
246
309
|
}
|
|
247
310
|
var Popup = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
248
311
|
export { Popup as default, popupProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.19-beta.
|
|
2
|
+
* @nutui/nutui v3.1.19-beta.4 Tue Apr 12 2022 17:39:20 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -44,17 +44,8 @@ const _sfc_main = create({
|
|
|
44
44
|
[componentName]: true
|
|
45
45
|
};
|
|
46
46
|
});
|
|
47
|
-
const replaceSpecialChar = (url) => {
|
|
48
|
-
url = url.replace(/"/g, '"');
|
|
49
|
-
url = url.replace(/&/g, "&");
|
|
50
|
-
url = url.replace(/</g, "<");
|
|
51
|
-
url = url.replace(/>/g, ">");
|
|
52
|
-
url = url.replace(/ /g, " ");
|
|
53
|
-
url = url.replace(/¥/g, "\uFFE5");
|
|
54
|
-
return url;
|
|
55
|
-
};
|
|
56
47
|
const showSymbol = computed(() => {
|
|
57
|
-
const symbol = props.needSymbol ?
|
|
48
|
+
const symbol = props.needSymbol ? props.symbol : "";
|
|
58
49
|
return symbol;
|
|
59
50
|
});
|
|
60
51
|
const checkPoint = (price) => {
|
|
@@ -95,8 +86,7 @@ const _sfc_main = create({
|
|
|
95
86
|
showSymbol,
|
|
96
87
|
checkPoint,
|
|
97
88
|
formatThousands,
|
|
98
|
-
formatDecimal
|
|
99
|
-
replaceSpecialChar
|
|
89
|
+
formatDecimal
|
|
100
90
|
};
|
|
101
91
|
}
|
|
102
92
|
});
|
|
@@ -109,7 +99,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
109
99
|
_ctx.needSymbol && _ctx.position == "before" ? (openBlock(), createElementBlock("view", {
|
|
110
100
|
key: 0,
|
|
111
101
|
class: normalizeClass(["nut-price--symbol", `nut-price--symbol-${_ctx.size}`]),
|
|
112
|
-
decode: "true",
|
|
113
102
|
innerHTML: _ctx.showSymbol
|
|
114
103
|
}, null, 10, _hoisted_1)) : createCommentVNode("", true),
|
|
115
104
|
createElementVNode("view", {
|
|
@@ -125,10 +114,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
125
114
|
_ctx.needSymbol && _ctx.position == "after" ? (openBlock(), createElementBlock("view", {
|
|
126
115
|
key: 2,
|
|
127
116
|
class: normalizeClass(["nut-price--symbol", `nut-price--symbol-${_ctx.size}`]),
|
|
128
|
-
decode: "true",
|
|
129
117
|
innerHTML: _ctx.showSymbol
|
|
130
118
|
}, null, 10, _hoisted_2)) : createCommentVNode("", true)
|
|
131
119
|
], 2);
|
|
132
120
|
}
|
|
133
|
-
var
|
|
134
|
-
export {
|
|
121
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
122
|
+
export { index as default };
|