@nutui/nutui 3.2.1 → 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/dist/nutui.es.js +938 -548
- package/dist/nutui.umd.js +938 -548
- package/dist/packages/_es/ActionSheet.js +1 -1
- package/dist/packages/_es/Address.js +56 -32
- package/dist/packages/_es/AddressList.js +6 -2
- package/dist/packages/_es/Animate.js +1 -1
- package/dist/packages/_es/Audio.js +7 -4
- package/dist/packages/_es/AudioOperate.js +1 -1
- package/dist/packages/_es/Avatar.js +1 -1
- 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 +1 -1
- 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 +33 -20
- package/dist/packages/_es/Category.js +1 -1
- package/dist/packages/_es/CategoryPane.js +1 -1
- package/dist/packages/_es/Cell.js +1 -1
- 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 +12 -9
- package/dist/packages/_es/Comment.js +13 -9
- package/dist/packages/_es/ConfigProvider.js +8 -4
- package/dist/packages/_es/CountDown.js +36 -24
- package/dist/packages/_es/CountUp.js +35 -19
- package/dist/packages/_es/DatePicker.js +19 -10
- package/dist/packages/_es/Dialog.js +9 -6
- package/dist/packages/_es/Divider.js +1 -1
- package/dist/packages/_es/Drag.js +1 -1
- package/dist/packages/_es/Ecard.js +7 -4
- package/dist/packages/_es/Elevator.js +21 -15
- package/dist/packages/_es/Ellipsis.js +13 -8
- package/dist/packages/_es/Empty.js +1 -1
- package/dist/packages/_es/FixedNav.js +1 -1
- 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 +1 -1
- package/dist/packages/_es/Icon.js +15 -11
- package/dist/packages/_es/Image.js +7 -4
- package/dist/packages/_es/ImagePreview.js +15 -9
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +1 -1
- package/dist/packages/_es/Input.js +8 -5
- package/dist/packages/_es/InputNumber.js +20 -14
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +7 -4
- package/dist/packages/_es/Menu.js +12 -6
- package/dist/packages/_es/MenuItem.js +1 -1
- package/dist/packages/_es/Navbar.js +1 -1
- package/dist/packages/_es/NoticeBar.js +13 -7
- package/dist/packages/_es/Notify.js +8 -5
- package/dist/packages/_es/NumberKeyboard.js +12 -5
- package/dist/packages/_es/OldPicker.js +36 -19
- package/dist/packages/_es/OverLay.js +7 -4
- package/dist/packages/_es/Pagination.js +1 -1
- package/dist/packages/_es/Picker.js +64 -32
- package/dist/packages/_es/Popover.js +52 -31
- package/dist/packages/_es/Popup.js +22 -13
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +1 -1
- package/dist/packages/_es/PullRefresh.js +1 -1
- package/dist/packages/_es/Radio.js +25 -13
- package/dist/packages/_es/RadioGroup.js +12 -5
- package/dist/packages/_es/Range.js +16 -10
- package/dist/packages/_es/Rate.js +1 -1
- package/dist/packages/_es/Row.js +5 -11
- package/dist/packages/_es/SearchBar.js +1 -1
- package/dist/packages/_es/ShortPassword.js +18 -11
- package/dist/packages/_es/SideNavBar.js +1 -1
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +1 -1
- package/dist/packages/_es/Skeleton.js +1 -1
- package/dist/packages/_es/Sku.js +21 -11
- package/dist/packages/_es/Step.js +1 -1
- package/dist/packages/_es/Steps.js +8 -4
- package/dist/packages/_es/Sticky.js +23 -12
- package/dist/packages/_es/SubSideNavBar.js +1 -1
- package/dist/packages/_es/Swipe.js +1 -1
- package/dist/packages/_es/Swiper.js +23 -14
- package/dist/packages/_es/SwiperItem.js +1 -1
- package/dist/packages/_es/Switch.js +10 -7
- 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 +7 -4
- package/dist/packages/_es/Tabs.js +16 -10
- package/dist/packages/_es/Tag.js +1 -1
- package/dist/packages/_es/TextArea.js +8 -5
- package/dist/packages/_es/TimeDetail.js +1 -1
- package/dist/packages/_es/TimePannel.js +1 -1
- package/dist/packages/_es/TimeSelect.js +1 -1
- package/dist/packages/_es/Toast.js +8 -5
- package/dist/packages/_es/Uploader.js +14 -8
- package/dist/packages/_es/Video.js +17 -10
- package/dist/packages/_es/WaterMark.js +30 -21
- package/dist/packages/_es/common.js +20 -10
- package/dist/packages/_es/component.js +1 -1
- 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 +21 -12
- 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/button/index.scss +1 -0
- package/dist/packages/locale/lang/baseLang.js +1 -1
- package/dist/packages/locale/lang/en-US.js +1 -1
- package/dist/packages/locale/lang/id-ID.js +1 -1
- package/dist/packages/locale/lang/index.js +1 -1
- package/dist/packages/locale/lang/zh-CN.js +1 -1
- package/dist/packages/locale/lang/zh-TW.js +1 -1
- package/dist/packages/radio/index.scss +1 -0
- package/dist/smartips/attributes.json +21 -1
- package/dist/smartips/tags.json +7 -2
- package/dist/smartips/web-types.json +47 -2
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +49 -49
- package/dist/styles/themes/jdb.scss +49 -49
- package/dist/styles/themes/jdt.scss +49 -49
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +3 -3
- package/dist/types/__VUE/address/index.vue.d.ts +3 -3
- package/dist/types/__VUE/avatar/index.vue.d.ts +4 -4
- package/dist/types/__VUE/avatargroup/index.vue.d.ts +2 -2
- package/dist/types/__VUE/backtop/index.vue.d.ts +2 -2
- package/dist/types/__VUE/badge/index.vue.d.ts +2 -2
- package/dist/types/__VUE/button/index.vue.d.ts +2 -2
- package/dist/types/__VUE/calendar/index.vue.d.ts +8 -1
- package/dist/types/__VUE/calendaritem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/cascader/index.vue.d.ts +3 -3
- package/dist/types/__VUE/cell/index.vue.d.ts +8 -8
- 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 +2 -2
- package/dist/types/__VUE/datepicker/index.vue.d.ts +2 -2
- package/dist/types/__VUE/dialog/index.vue.d.ts +2 -2
- package/dist/types/__VUE/divider/index.vue.d.ts +2 -2
- package/dist/types/__VUE/fixednav/index.vue.d.ts +4 -4
- package/dist/types/__VUE/grid/index.vue.d.ts +3 -3
- package/dist/types/__VUE/griditem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/imagepreview/index.d.ts +7 -6
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +3 -3
- package/dist/types/__VUE/imagepreview/types.d.ts +7 -0
- package/dist/types/__VUE/input/index.vue.d.ts +4 -4
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +14 -0
- package/dist/types/__VUE/menu/index.vue.d.ts +2 -2
- package/dist/types/__VUE/noticebar/index.vue.d.ts +3 -3
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +4 -4
- package/dist/types/__VUE/oldpicker/index.vue.d.ts +3 -3
- package/dist/types/__VUE/picker/Column.vue.d.ts +8 -0
- package/dist/types/__VUE/picker/index.vue.d.ts +18 -3
- package/dist/types/__VUE/popover/index.vue.d.ts +6 -6
- package/dist/types/__VUE/popup/index.vue.d.ts +4 -4
- package/dist/types/__VUE/row/index.vue.d.ts +2 -5
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
- package/dist/types/__VUE/sku/index.vue.d.ts +3 -3
- package/dist/types/__VUE/step/index.vue.d.ts +2 -2
- package/dist/types/__VUE/swipe/index.vue.d.ts +2 -2
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +2 -2
- package/dist/types/__VUE/toast/index.vue.d.ts +2 -2
- package/dist/types/__VUE/uploader/index.vue.d.ts +2 -2
- package/dist/types/__VUE/video/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +2 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.1
|
|
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
|
*/
|
|
@@ -131,14 +131,17 @@ const _sfc_main = create({
|
|
|
131
131
|
proxyData.openExpanded = true;
|
|
132
132
|
}
|
|
133
133
|
});
|
|
134
|
-
watch(
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
134
|
+
watch(
|
|
135
|
+
() => {
|
|
136
|
+
var _a, _b;
|
|
137
|
+
return (_b = (_a = ctx == null ? void 0 : ctx.slots) == null ? void 0 : _a.default) == null ? void 0 : _b.call(_a);
|
|
138
|
+
},
|
|
139
|
+
() => {
|
|
140
|
+
setTimeout(() => {
|
|
141
|
+
animation();
|
|
142
|
+
}, 300);
|
|
143
|
+
}
|
|
144
|
+
);
|
|
142
145
|
const init = () => {
|
|
143
146
|
const { name } = props;
|
|
144
147
|
const active = parent && parent.props.active;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.1
|
|
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
|
*/
|
|
@@ -131,14 +131,18 @@ const _sfc_main$2 = create$2({
|
|
|
131
131
|
const isShowImage = ref(false);
|
|
132
132
|
const initIndex = ref(1);
|
|
133
133
|
const totalImages = ref([]);
|
|
134
|
-
watch(
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
134
|
+
watch(
|
|
135
|
+
() => [props.videos, props.images],
|
|
136
|
+
(value) => {
|
|
137
|
+
if (value[0].length > 0) {
|
|
138
|
+
value[0].forEach((el) => {
|
|
139
|
+
el.type = "video";
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
totalImages.value = value[0].concat(value[1]);
|
|
143
|
+
},
|
|
144
|
+
{ deep: true }
|
|
145
|
+
);
|
|
142
146
|
onMounted(() => {
|
|
143
147
|
if (props.videos.length > 0) {
|
|
144
148
|
props.videos.forEach((el) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.1
|
|
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
|
*/
|
|
@@ -14,9 +14,13 @@ const component = {
|
|
|
14
14
|
setup(props, { slots }) {
|
|
15
15
|
return () => {
|
|
16
16
|
var _a;
|
|
17
|
-
return h(
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
return h(
|
|
18
|
+
props.tag,
|
|
19
|
+
{
|
|
20
|
+
class: `nut-theme-${props.theme}`
|
|
21
|
+
},
|
|
22
|
+
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
23
|
+
);
|
|
20
24
|
};
|
|
21
25
|
}
|
|
22
26
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.1
|
|
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
|
*/
|
|
@@ -192,31 +192,43 @@ const _sfc_main = create({
|
|
|
192
192
|
state.restTime = props.time;
|
|
193
193
|
}
|
|
194
194
|
});
|
|
195
|
-
watch(
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
if (!
|
|
207
|
-
state.counting
|
|
208
|
-
|
|
209
|
-
|
|
195
|
+
watch(
|
|
196
|
+
() => state.restTime,
|
|
197
|
+
(value) => {
|
|
198
|
+
let tranTime = formatRemainTime(value, "custom");
|
|
199
|
+
emit("update:modelValue", tranTime);
|
|
200
|
+
emit("input", tranTime);
|
|
201
|
+
}
|
|
202
|
+
);
|
|
203
|
+
watch(
|
|
204
|
+
() => props.paused,
|
|
205
|
+
(v, ov) => {
|
|
206
|
+
if (!ov) {
|
|
207
|
+
if (state.counting) {
|
|
208
|
+
pause();
|
|
209
|
+
}
|
|
210
|
+
} else {
|
|
211
|
+
if (!state.counting) {
|
|
212
|
+
state.counting = true;
|
|
213
|
+
state.handleEndTime = Date.now() + Number(state.restTime);
|
|
214
|
+
tick();
|
|
215
|
+
}
|
|
216
|
+
emit("on-restart", state.restTime);
|
|
210
217
|
}
|
|
211
|
-
emit("on-restart", state.restTime);
|
|
212
218
|
}
|
|
213
|
-
|
|
214
|
-
watch(
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
219
|
+
);
|
|
220
|
+
watch(
|
|
221
|
+
() => props.endTime,
|
|
222
|
+
(value) => {
|
|
223
|
+
initTime();
|
|
224
|
+
}
|
|
225
|
+
);
|
|
226
|
+
watch(
|
|
227
|
+
() => props.startTime,
|
|
228
|
+
(value) => {
|
|
229
|
+
initTime();
|
|
230
|
+
}
|
|
231
|
+
);
|
|
220
232
|
return {
|
|
221
233
|
...toRefs(props),
|
|
222
234
|
slots,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.1
|
|
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
|
*/
|
|
@@ -116,23 +116,35 @@ const _sfc_main = create({
|
|
|
116
116
|
typeMachine: ""
|
|
117
117
|
});
|
|
118
118
|
const { startFlag, scrolling, customBgImg, type } = reactive(props);
|
|
119
|
-
watch(
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
watch(
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
119
|
+
watch(
|
|
120
|
+
() => props.customChangeNum,
|
|
121
|
+
(count, prevCount) => {
|
|
122
|
+
clearIntervalTime();
|
|
123
|
+
countGo(0);
|
|
124
|
+
}
|
|
125
|
+
);
|
|
126
|
+
watch(
|
|
127
|
+
() => props.machinePrizeLevel,
|
|
128
|
+
(count, prevCount) => {
|
|
129
|
+
data.prizeLevelTrun = count;
|
|
130
|
+
}
|
|
131
|
+
);
|
|
132
|
+
watch(
|
|
133
|
+
() => props.initNum,
|
|
134
|
+
(count, prevCount) => {
|
|
135
|
+
data.current = count;
|
|
136
|
+
data.valFlag = false;
|
|
137
|
+
valChange();
|
|
138
|
+
}
|
|
139
|
+
);
|
|
140
|
+
watch(
|
|
141
|
+
() => props.endNum,
|
|
142
|
+
(count, prevCount) => {
|
|
143
|
+
data.current = props.initNum;
|
|
144
|
+
data.valFlag = false;
|
|
145
|
+
valChange();
|
|
146
|
+
}
|
|
147
|
+
);
|
|
136
148
|
const valChange = () => {
|
|
137
149
|
if (data.valFlag) {
|
|
138
150
|
return false;
|
|
@@ -379,7 +391,11 @@ const _sfc_main = create({
|
|
|
379
391
|
if (data.prizeLevelTrun < 0) {
|
|
380
392
|
newLocation += props.numHeight * data.notPrize[i];
|
|
381
393
|
}
|
|
382
|
-
scrollTime(
|
|
394
|
+
scrollTime(
|
|
395
|
+
i,
|
|
396
|
+
newLocation,
|
|
397
|
+
local
|
|
398
|
+
);
|
|
383
399
|
}, 500 * i);
|
|
384
400
|
}
|
|
385
401
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.1
|
|
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
|
*/
|
|
@@ -290,15 +290,24 @@ const _sfc_main = create({
|
|
|
290
290
|
onBeforeMount(() => {
|
|
291
291
|
state.currentDate = formatValue(props.modelValue);
|
|
292
292
|
});
|
|
293
|
-
watch(
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
watch(
|
|
300
|
-
|
|
301
|
-
|
|
293
|
+
watch(
|
|
294
|
+
() => props.modelValue,
|
|
295
|
+
(value) => {
|
|
296
|
+
state.currentDate = formatValue(value);
|
|
297
|
+
}
|
|
298
|
+
);
|
|
299
|
+
watch(
|
|
300
|
+
() => props.title,
|
|
301
|
+
(val) => {
|
|
302
|
+
state.title = val;
|
|
303
|
+
}
|
|
304
|
+
);
|
|
305
|
+
watch(
|
|
306
|
+
() => props.visible,
|
|
307
|
+
(val) => {
|
|
308
|
+
state.show = val;
|
|
309
|
+
}
|
|
310
|
+
);
|
|
302
311
|
return {
|
|
303
312
|
...toRefs(state),
|
|
304
313
|
changeHandler,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.1
|
|
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
|
*/
|
|
@@ -90,12 +90,15 @@ const _sfc_main = create({
|
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
|
-
watch(
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
93
|
+
watch(
|
|
94
|
+
() => props.visible,
|
|
95
|
+
(value) => {
|
|
96
|
+
showPopup.value = value;
|
|
97
|
+
if (value) {
|
|
98
|
+
emit("opened");
|
|
99
|
+
}
|
|
97
100
|
}
|
|
98
|
-
|
|
101
|
+
);
|
|
99
102
|
const classes = computed(() => {
|
|
100
103
|
return {
|
|
101
104
|
[componentName]: true,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.1
|
|
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
|
*/
|
|
@@ -94,9 +94,12 @@ const _sfc_main = create({
|
|
|
94
94
|
stepValue.value = value;
|
|
95
95
|
emit("changeStep", stepValue.value, currentValue.value);
|
|
96
96
|
};
|
|
97
|
-
watch(
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
watch(
|
|
98
|
+
() => props.modelValue,
|
|
99
|
+
(value) => {
|
|
100
|
+
money.value = value;
|
|
101
|
+
}
|
|
102
|
+
);
|
|
100
103
|
return {
|
|
101
104
|
handleClick,
|
|
102
105
|
changeStep,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.1
|
|
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
|
*/
|
|
@@ -152,21 +152,27 @@ const _sfc_main = create({
|
|
|
152
152
|
useExpose({
|
|
153
153
|
scrollTo
|
|
154
154
|
});
|
|
155
|
-
watch(
|
|
156
|
-
state.
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
const listHeight = state.listHeight;
|
|
161
|
-
let fixedTop = newVal > 0 && newVal < props.titleHeight ? newVal - props.titleHeight : 0;
|
|
162
|
-
if (state.scrollY + clientHeight.value === listHeight[listHeight.length - 1]) {
|
|
163
|
-
if (fixedTop !== 0)
|
|
164
|
-
fixedTop = 0;
|
|
155
|
+
watch(
|
|
156
|
+
() => state.listGroup.length,
|
|
157
|
+
() => {
|
|
158
|
+
state.listHeight = [];
|
|
159
|
+
nextTick(calculateHeight);
|
|
165
160
|
}
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
state.
|
|
169
|
-
|
|
161
|
+
);
|
|
162
|
+
watch(
|
|
163
|
+
() => state.diff,
|
|
164
|
+
(newVal) => {
|
|
165
|
+
const listHeight = state.listHeight;
|
|
166
|
+
let fixedTop = newVal > 0 && newVal < props.titleHeight ? newVal - props.titleHeight : 0;
|
|
167
|
+
if (state.scrollY + clientHeight.value === listHeight[listHeight.length - 1]) {
|
|
168
|
+
if (fixedTop !== 0)
|
|
169
|
+
fixedTop = 0;
|
|
170
|
+
}
|
|
171
|
+
if (state.fixedTop === fixedTop)
|
|
172
|
+
return;
|
|
173
|
+
state.fixedTop = fixedTop;
|
|
174
|
+
}
|
|
175
|
+
);
|
|
170
176
|
return {
|
|
171
177
|
classes,
|
|
172
178
|
...toRefs(state),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.1
|
|
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
|
*/
|
|
@@ -51,14 +51,17 @@ const _sfc_main = create({
|
|
|
51
51
|
[prefixCls]: true
|
|
52
52
|
};
|
|
53
53
|
});
|
|
54
|
-
watch(
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
watch(
|
|
55
|
+
() => props.content,
|
|
56
|
+
(newV, oldVal) => {
|
|
57
|
+
if (newV != oldVal) {
|
|
58
|
+
if (container) {
|
|
59
|
+
document.body.appendChild(container);
|
|
60
|
+
}
|
|
61
|
+
createContainer();
|
|
58
62
|
}
|
|
59
|
-
createContainer();
|
|
60
63
|
}
|
|
61
|
-
|
|
64
|
+
);
|
|
62
65
|
onMounted(() => {
|
|
63
66
|
createContainer();
|
|
64
67
|
});
|
|
@@ -83,7 +86,9 @@ const _sfc_main = create({
|
|
|
83
86
|
container.style.webkitLineClamp = "unset";
|
|
84
87
|
container.style.display = "block";
|
|
85
88
|
const lineHeight = pxToNumber(originStyle.lineHeight);
|
|
86
|
-
maxHeight = Math.floor(
|
|
89
|
+
maxHeight = Math.floor(
|
|
90
|
+
lineHeight * (Number(props.rows) + 0.5) + pxToNumber(originStyle.paddingTop) + pxToNumber(originStyle.paddingBottom)
|
|
91
|
+
);
|
|
87
92
|
container.innerText = props.content;
|
|
88
93
|
document.body.appendChild(container);
|
|
89
94
|
calcEllipse();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.1
|
|
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
|
*/
|
|
@@ -27,9 +27,13 @@ const component = {
|
|
|
27
27
|
const reset = () => {
|
|
28
28
|
clearErrorTips();
|
|
29
29
|
};
|
|
30
|
-
watch(
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
watch(
|
|
31
|
+
() => props.modelValue,
|
|
32
|
+
(value) => {
|
|
33
|
+
clearErrorTips(value);
|
|
34
|
+
},
|
|
35
|
+
{ immediate: true }
|
|
36
|
+
);
|
|
33
37
|
const findFormItem = (vnodes) => {
|
|
34
38
|
let task = [];
|
|
35
39
|
vnodes.forEach((vnode, index2) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.1
|
|
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
|
*/
|
|
@@ -28,17 +28,21 @@ const _sfc_main = create({
|
|
|
28
28
|
return () => {
|
|
29
29
|
var _a;
|
|
30
30
|
const _isImage = isImage();
|
|
31
|
-
return h(
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
31
|
+
return h(
|
|
32
|
+
_isImage ? "img" : props.tag,
|
|
33
|
+
{
|
|
34
|
+
class: _isImage ? `${componentName}__img` : `${props.fontClassName} ${componentName} ${props.classPrefix}-${props.name}`,
|
|
35
|
+
style: {
|
|
36
|
+
color: props.color,
|
|
37
|
+
fontSize: pxCheck(props.size),
|
|
38
|
+
width: pxCheck(props.size),
|
|
39
|
+
height: pxCheck(props.size)
|
|
40
|
+
},
|
|
41
|
+
onClick: handleClick,
|
|
42
|
+
src: _isImage ? props.name : ""
|
|
38
43
|
},
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}, (_a = slots.default) == null ? void 0 : _a.call(slots));
|
|
44
|
+
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
45
|
+
);
|
|
42
46
|
};
|
|
43
47
|
}
|
|
44
48
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.1
|
|
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
|
*/
|
|
@@ -80,9 +80,12 @@ const _sfc_main = create({
|
|
|
80
80
|
};
|
|
81
81
|
return styless;
|
|
82
82
|
});
|
|
83
|
-
watch(
|
|
84
|
-
|
|
85
|
-
|
|
83
|
+
watch(
|
|
84
|
+
() => props.src,
|
|
85
|
+
(val) => {
|
|
86
|
+
state.isError = false, state.loading = true;
|
|
87
|
+
}
|
|
88
|
+
);
|
|
86
89
|
const load = () => {
|
|
87
90
|
state.loading = false;
|
|
88
91
|
emit("load");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.1
|
|
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
|
*/
|
|
@@ -235,11 +235,14 @@ const _sfc_main$1 = create$1({
|
|
|
235
235
|
};
|
|
236
236
|
const clamp = (num, min, max) => Math.min(Math.max(num, min), max);
|
|
237
237
|
watch(() => props.initNo, resetScale);
|
|
238
|
-
watch(
|
|
239
|
-
|
|
240
|
-
|
|
238
|
+
watch(
|
|
239
|
+
() => props.show,
|
|
240
|
+
(value) => {
|
|
241
|
+
if (!value) {
|
|
242
|
+
resetScale();
|
|
243
|
+
}
|
|
241
244
|
}
|
|
242
|
-
|
|
245
|
+
);
|
|
243
246
|
return {
|
|
244
247
|
...toRefs(state),
|
|
245
248
|
onTouchStart,
|
|
@@ -415,10 +418,13 @@ const _sfc_main = create({
|
|
|
415
418
|
state.rootWidth = swipeRef.value.offsetWidth;
|
|
416
419
|
}, 100);
|
|
417
420
|
};
|
|
418
|
-
watch(
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
421
|
+
watch(
|
|
422
|
+
() => props.show,
|
|
423
|
+
(val) => {
|
|
424
|
+
state.showPop = val;
|
|
425
|
+
init();
|
|
426
|
+
}
|
|
427
|
+
);
|
|
422
428
|
onMounted(() => {
|
|
423
429
|
state.active = props.initNo;
|
|
424
430
|
state.showPop = props.show;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.1
|
|
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
|
*/
|
|
@@ -306,10 +306,13 @@ const _sfc_main = create({
|
|
|
306
306
|
return;
|
|
307
307
|
}
|
|
308
308
|
};
|
|
309
|
-
watch(
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
309
|
+
watch(
|
|
310
|
+
() => props.modelValue,
|
|
311
|
+
() => {
|
|
312
|
+
updateValue(getModelValue());
|
|
313
|
+
resetValidation();
|
|
314
|
+
}
|
|
315
|
+
);
|
|
313
316
|
onMounted(() => {
|
|
314
317
|
updateValue(getModelValue(), props.formatTrigger);
|
|
315
318
|
});
|