@nutui/nutui 4.1.3 → 4.1.5-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/README.md +1 -1
- package/dist/nutui.es.js +1 -1
- package/dist/nutui.js +3215 -3175
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/_es/ActionSheet.js +9 -7
- package/dist/packages/_es/Address.js +17 -17
- package/dist/packages/_es/Animate.js +2 -2
- package/dist/packages/_es/Audio.js +7 -7
- package/dist/packages/_es/Avatar.js +2 -2
- package/dist/packages/_es/AvatarGroup.js +1 -1
- package/dist/packages/_es/Badge.js +3 -3
- package/dist/packages/_es/Calendar.js +17 -17
- package/dist/packages/_es/CalendarItem.js +1 -1
- package/dist/packages/_es/Cascader.js +14 -14
- package/dist/packages/_es/Category.js +2 -2
- package/dist/packages/_es/CategoryPane.js +3 -3
- package/dist/packages/_es/Collapse.js +2 -2
- package/dist/packages/_es/CollapseItem.js +7 -7
- package/dist/packages/_es/Comment.js +3 -3
- package/dist/packages/_es/Countdown.js +6 -6
- package/dist/packages/_es/Countup.js +11 -11
- package/dist/packages/_es/DatePicker.js +5 -5
- package/dist/packages/_es/Dialog.js +3 -3
- package/dist/packages/_es/Drag.js +1 -1
- package/dist/packages/_es/Ecard.js +3 -3
- package/dist/packages/_es/Elevator.js +8 -8
- package/dist/packages/_es/Ellipsis.js +2 -2
- package/dist/packages/_es/FormItem.js +0 -1
- package/dist/packages/_es/GridItem.js +1 -1
- package/dist/packages/_es/Image.js +2 -2
- package/dist/packages/_es/ImagePreview.js +12 -12
- package/dist/packages/_es/InfiniteLoading.js +5 -5
- package/dist/packages/_es/Input.js +3 -3
- package/dist/packages/_es/Invoice.js +5 -5
- package/dist/packages/_es/List.js +11 -11
- package/dist/packages/_es/Menu.js +4 -4
- package/dist/packages/_es/MenuItem.js +9 -10
- package/dist/packages/_es/Navbar.js +7 -7
- package/dist/packages/_es/Noticebar.js +21 -15
- package/dist/packages/_es/Notify.js +1 -1
- package/dist/packages/_es/NumberKeyboard.js +2 -2
- package/dist/packages/_es/Overlay.js +3 -3
- package/dist/packages/_es/Picker.js +96 -57
- package/dist/packages/_es/Popover.js +6 -6
- package/dist/packages/_es/Popup.js +1 -1
- package/dist/packages/_es/PullRefresh.js +1 -1
- package/dist/packages/_es/Range.js +5 -5
- package/dist/packages/_es/Row.js +0 -1
- package/dist/packages/_es/Searchbar.js +10 -10
- package/dist/packages/_es/ShortPassword.js +9 -9
- package/dist/packages/_es/SideNavbar.js +2 -3
- package/dist/packages/_es/SideNavbarItem.js +2 -2
- package/dist/packages/_es/Signature.js +2 -2
- package/dist/packages/_es/Sku.js +24 -24
- package/dist/packages/_es/Step.js +1 -1
- package/dist/packages/_es/Steps.js +2 -2
- package/dist/packages/_es/Sticky.js +2 -2
- package/dist/packages/_es/SubSideNavbar.js +2 -2
- package/dist/packages/_es/Swipe.js +2 -2
- package/dist/packages/_es/SwipeGroup.js +2 -2
- package/dist/packages/_es/Swiper.js +4 -4
- package/dist/packages/_es/Switch.js +2 -2
- package/dist/packages/_es/Tabbar.js +2 -2
- package/dist/packages/_es/Table.js +6 -6
- package/dist/packages/_es/Tabs.js +13 -13
- package/dist/packages/_es/Textarea.js +3 -3
- package/dist/packages/_es/TimeDetail.js +1 -1
- package/dist/packages/_es/TimeSelect.js +1 -1
- package/dist/packages/_es/Tour.js +3 -3
- package/dist/packages/_es/Uploader.js +11 -11
- package/dist/packages/_es/Video.js +11 -11
- package/dist/packages/_es/{index-7fe29a2f.js → index-3032df15.js} +8 -9
- package/dist/packages/_es/{index-66fff386.js → index-ae1af668.js} +10 -10
- package/dist/packages/circleprogress/index.scss +3 -1
- package/dist/packages/formitem/index.scss +3 -1
- package/dist/packages/popover/index.scss +3 -1
- package/dist/packages/video/index.scss +4 -1
- package/dist/smartips/web-types.json +11 -2
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +48 -48
- package/dist/styles/themes/jdb.scss +48 -48
- package/dist/styles/themes/jddkh.scss +48 -48
- package/dist/styles/themes/jdt.scss +48 -48
- package/dist/styles/variables-jdb.scss +7 -1
- package/dist/styles/variables-jddkh.scss +7 -1
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +1 -1
- package/dist/types/__VUE/address/index.vue.d.ts +3 -3
- package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +60 -0
- package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +23 -0
- package/dist/types/__VUE/addresslist/index.vue.d.ts +2 -2
- package/dist/types/__VUE/audio/index.vue.d.ts +3 -3
- package/dist/types/__VUE/cascader/cascader-item.vue.d.ts +77 -0
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +3 -3
- package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +42 -0
- package/dist/types/__VUE/comment/components/CmtHeader.vue.d.ts +36 -0
- package/dist/types/__VUE/comment/components/CmtImages.vue.d.ts +59 -0
- package/dist/types/__VUE/comment/index.vue.d.ts +4 -4
- package/dist/types/__VUE/countdown/index.vue.d.ts +4 -4
- package/dist/types/__VUE/countup/index.vue.d.ts +3 -3
- package/dist/types/__VUE/datepicker/index.vue.d.ts +3 -3
- package/dist/types/__VUE/elevator/index.vue.d.ts +3 -3
- package/dist/types/__VUE/empty/index.vue.d.ts +1 -1
- package/dist/types/__VUE/formitem/index.vue.d.ts +2 -4
- package/dist/types/__VUE/grid/index.vue.d.ts +1 -1
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +126 -0
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +3 -3
- package/dist/types/__VUE/indicator/index.vue.d.ts +1 -0
- package/dist/types/__VUE/infiniteloading/index.vue.d.ts +3 -3
- package/dist/types/__VUE/input/index.vue.d.ts +3 -3
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +1 -1
- package/dist/types/__VUE/invoice/index.vue.d.ts +2 -2
- package/dist/types/__VUE/list/index.vue.d.ts +4 -4
- package/dist/types/__VUE/navbar/index.vue.d.ts +5 -5
- 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/picker/Column.vue.d.ts +134 -0
- package/dist/types/__VUE/picker/baseProps.d.ts +5 -1
- package/dist/types/__VUE/picker/common.d.ts +503 -11
- package/dist/types/__VUE/picker/doc.en.d.ts +4 -2
- package/dist/types/__VUE/picker/index.vue.d.ts +139 -8
- package/dist/types/__VUE/picker/types.d.ts +6 -0
- package/dist/types/__VUE/picker/usePicker.d.ts +7 -4
- package/dist/types/__VUE/popover/index.vue.d.ts +1 -1
- package/dist/types/__VUE/popup/index.vue.d.ts +4 -4
- package/dist/types/__VUE/range/index.vue.d.ts +8 -7
- package/dist/types/__VUE/rate/index.vue.d.ts +5 -5
- package/dist/types/__VUE/row/index.vue.d.ts +2 -2
- package/dist/types/__VUE/searchbar/index.vue.d.ts +7 -7
- package/dist/types/__VUE/sidenavbar/index.vue.d.ts +2 -2
- package/dist/types/__VUE/signature/index.vue.d.ts +1 -1
- package/dist/types/__VUE/sku/components/SkuHeader.vue.d.ts +17 -0
- package/dist/types/__VUE/sku/components/SkuOperate.vue.d.ts +60 -0
- package/dist/types/__VUE/sku/components/SkuSelect.vue.d.ts +25 -0
- package/dist/types/__VUE/sku/components/SkuStepper.vue.d.ts +56 -0
- package/dist/types/__VUE/sku/index.vue.d.ts +9 -9
- package/dist/types/__VUE/step/index.vue.d.ts +2 -2
- package/dist/types/__VUE/steps/index.vue.d.ts +2 -2
- package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +2 -2
- package/dist/types/__VUE/swiper/index.vue.d.ts +2 -2
- package/dist/types/__VUE/tabbar/index.vue.d.ts +2 -2
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +3 -3
- package/dist/types/__VUE/table/common.d.ts +1 -1
- package/dist/types/__VUE/tabs/index.vue.d.ts +1 -1
- package/dist/types/__VUE/tag/index.vue.d.ts +3 -0
- package/dist/types/__VUE/textarea/index.vue.d.ts +1 -1
- package/dist/types/__VUE/toast/index.vue.d.ts +4 -4
- package/dist/types/__VUE/uploader/index.vue.d.ts +2 -2
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -211,15 +211,15 @@ const _sfc_main = create({
|
|
|
211
211
|
};
|
|
212
212
|
const timeFormat = (t) => {
|
|
213
213
|
var h = Math.floor(t / 3600);
|
|
214
|
-
if (h < 10) {
|
|
214
|
+
if (+h < 10) {
|
|
215
215
|
h = "0" + h;
|
|
216
216
|
}
|
|
217
217
|
var m = Math.floor(t % 3600 / 60);
|
|
218
|
-
if (m < 10) {
|
|
218
|
+
if (+m < 10) {
|
|
219
219
|
m = "0" + m;
|
|
220
220
|
}
|
|
221
221
|
var s = Math.round(t % 3600 % 60);
|
|
222
|
-
if (s < 10) {
|
|
222
|
+
if (+s < 10) {
|
|
223
223
|
s = "0" + s;
|
|
224
224
|
}
|
|
225
225
|
var str = "";
|
|
@@ -317,24 +317,24 @@ const _sfc_main = create({
|
|
|
317
317
|
}
|
|
318
318
|
});
|
|
319
319
|
const _hoisted_1 = {
|
|
320
|
-
|
|
321
|
-
|
|
320
|
+
ref: "videocon",
|
|
321
|
+
class: "nut-video"
|
|
322
322
|
};
|
|
323
323
|
const _hoisted_2 = ["muted", "autoplay", "loop", "poster", "controls", "preload"];
|
|
324
324
|
const _hoisted_3 = ["src", "type"];
|
|
325
325
|
const _hoisted_4 = { class: "nut-video-controller__now" };
|
|
326
326
|
const _hoisted_5 = { class: "nut-video-controller__progress" };
|
|
327
327
|
const _hoisted_6 = {
|
|
328
|
-
|
|
329
|
-
|
|
328
|
+
ref: "progressBar",
|
|
329
|
+
class: "nut-video-controller__progress-value"
|
|
330
330
|
};
|
|
331
331
|
const _hoisted_7 = /* @__PURE__ */ createElementVNode("div", { class: "nut-video-controller__ball-move" }, null, -1);
|
|
332
332
|
const _hoisted_8 = [
|
|
333
333
|
_hoisted_7
|
|
334
334
|
];
|
|
335
335
|
const _hoisted_9 = {
|
|
336
|
-
|
|
337
|
-
|
|
336
|
+
ref: "playedBar",
|
|
337
|
+
class: "nut-video-controller__played"
|
|
338
338
|
};
|
|
339
339
|
const _hoisted_10 = { class: "nut-video-controller__total" };
|
|
340
340
|
const _hoisted_11 = { class: "nut-video-error" };
|
|
@@ -359,14 +359,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
359
359
|
], 40, _hoisted_2),
|
|
360
360
|
_ctx.showToolbox && !_ctx.isDisabled ? (openBlock(), createElementBlock("div", {
|
|
361
361
|
key: 0,
|
|
362
|
-
class: "nut-video-mask",
|
|
363
362
|
ref: "touchMask",
|
|
363
|
+
class: "nut-video-mask",
|
|
364
364
|
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.play && _ctx.play(...args))
|
|
365
365
|
}, null, 512)) : createCommentVNode("", true),
|
|
366
366
|
_ctx.showToolbox && !_ctx.isDisabled ? withDirectives((openBlock(), createElementBlock("div", {
|
|
367
367
|
key: 1,
|
|
368
|
-
class: "nut-video-play-btn",
|
|
369
368
|
ref: "palyBtn",
|
|
369
|
+
class: "nut-video-play-btn",
|
|
370
370
|
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.play && _ctx.play(...args))
|
|
371
371
|
}, null, 512)), [
|
|
372
372
|
[vShow, !_ctx.state.playing]
|
|
@@ -113,7 +113,7 @@ const _sfc_main = create({
|
|
|
113
113
|
Close
|
|
114
114
|
},
|
|
115
115
|
props: popupProps,
|
|
116
|
-
emits: ["
|
|
116
|
+
emits: ["clickPop", "clickCloseIcon", "open", "close", "opened", "closed", "clickOverlay", "update:visible"],
|
|
117
117
|
setup(props, { emit }) {
|
|
118
118
|
const state = reactive({
|
|
119
119
|
zIndex: props.zIndex,
|
|
@@ -160,15 +160,15 @@ const _sfc_main = create({
|
|
|
160
160
|
}
|
|
161
161
|
};
|
|
162
162
|
const onClick = (e) => {
|
|
163
|
-
emit("
|
|
163
|
+
emit("clickPop", e);
|
|
164
164
|
};
|
|
165
165
|
const onClickCloseIcon = (e) => {
|
|
166
166
|
e.stopPropagation();
|
|
167
|
-
emit("
|
|
167
|
+
emit("clickCloseIcon", e);
|
|
168
168
|
emit("update:visible", false);
|
|
169
169
|
};
|
|
170
170
|
const onClickOverlay = (e) => {
|
|
171
|
-
emit("
|
|
171
|
+
emit("clickOverlay", e);
|
|
172
172
|
if (props.closeOnClickOverlay) {
|
|
173
173
|
emit("update:visible", false);
|
|
174
174
|
}
|
|
@@ -215,9 +215,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
215
215
|
"lock-scroll": _ctx.lockScroll,
|
|
216
216
|
duration: _ctx.duration,
|
|
217
217
|
"overlay-class": _ctx.overlayClass,
|
|
218
|
-
"overlay-style": _ctx.overlayStyle
|
|
219
|
-
|
|
220
|
-
}, _ctx.$attrs), null, 16, ["visible", "close-on-click-overlay", "z-index", "lock-scroll", "duration", "overlay-class", "overlay-style", "onClick"])) : createCommentVNode("", true),
|
|
218
|
+
"overlay-style": _ctx.overlayStyle
|
|
219
|
+
}, _ctx.$attrs, { onClick: _ctx.onClickOverlay }), null, 16, ["visible", "close-on-click-overlay", "z-index", "lock-scroll", "duration", "overlay-class", "overlay-style", "onClick"])) : createCommentVNode("", true),
|
|
221
220
|
createVNode(Transition, {
|
|
222
221
|
name: _ctx.transitionName,
|
|
223
222
|
onAfterEnter: _ctx.onOpened,
|
|
@@ -232,8 +231,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
232
231
|
_ctx.showSlot ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("", true),
|
|
233
232
|
_ctx.closed ? (openBlock(), createElementBlock("view", {
|
|
234
233
|
key: 1,
|
|
235
|
-
|
|
236
|
-
|
|
234
|
+
class: normalizeClass(["nut-popup__close-icon", "nut-popup__close-icon--" + _ctx.closeIconPosition]),
|
|
235
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClickCloseIcon && _ctx.onClickCloseIcon(...args))
|
|
237
236
|
}, [
|
|
238
237
|
renderSlot(_ctx.$slots, "close-icon", {}, () => [
|
|
239
238
|
createVNode(_component_Close, { height: "12px" })
|
|
@@ -824,12 +824,12 @@ const _hoisted_4 = {
|
|
|
824
824
|
class: "nut-calendar__header-subtitle"
|
|
825
825
|
};
|
|
826
826
|
const _hoisted_5 = {
|
|
827
|
-
|
|
828
|
-
|
|
827
|
+
ref: "weeksPanel",
|
|
828
|
+
class: "nut-calendar__weekdays"
|
|
829
829
|
};
|
|
830
830
|
const _hoisted_6 = {
|
|
831
|
-
|
|
832
|
-
|
|
831
|
+
ref: "monthsPanel",
|
|
832
|
+
class: "nut-calendar__panel"
|
|
833
833
|
};
|
|
834
834
|
const _hoisted_7 = { class: "nut-calendar__month-title" };
|
|
835
835
|
const _hoisted_8 = { class: "nut-calendar__days" };
|
|
@@ -871,27 +871,27 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
871
871
|
createElementVNode("view", _hoisted_5, [
|
|
872
872
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.weeks, (item, index) => {
|
|
873
873
|
return openBlock(), createElementBlock("view", {
|
|
874
|
-
|
|
875
|
-
|
|
874
|
+
key: index,
|
|
875
|
+
class: normalizeClass(["nut-calendar__weekday", { weekend: item.weekend }])
|
|
876
876
|
}, toDisplayString(item.day), 3);
|
|
877
877
|
}), 128))
|
|
878
878
|
], 512)
|
|
879
879
|
]),
|
|
880
880
|
createElementVNode("view", {
|
|
881
|
-
class: "nut-calendar__content",
|
|
882
881
|
ref: "months",
|
|
882
|
+
class: "nut-calendar__content",
|
|
883
883
|
onScroll: _cache[0] || (_cache[0] = (...args) => _ctx.mothsViewScroll && _ctx.mothsViewScroll(...args))
|
|
884
884
|
}, [
|
|
885
885
|
createElementVNode("view", _hoisted_6, [
|
|
886
886
|
createElementVNode("view", {
|
|
887
|
-
class: "nut-calendar__body",
|
|
888
887
|
ref: "viewArea",
|
|
888
|
+
class: "nut-calendar__body",
|
|
889
889
|
style: normalizeStyle({ transform: `translateY(${_ctx.translateY}px)` })
|
|
890
890
|
}, [
|
|
891
891
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.compConthsData, (month, index) => {
|
|
892
892
|
return openBlock(), createElementBlock("view", {
|
|
893
|
-
|
|
894
|
-
|
|
893
|
+
key: index,
|
|
894
|
+
class: "nut-calendar__month"
|
|
895
895
|
}, [
|
|
896
896
|
createElementVNode("view", _hoisted_7, toDisplayString(month.title), 1),
|
|
897
897
|
createElementVNode("view", _hoisted_8, [
|
|
@@ -37,12 +37,14 @@
|
|
|
37
37
|
font-size: $form-item-label-font-size;
|
|
38
38
|
font-weight: normal;
|
|
39
39
|
width: $form-item-label-width;
|
|
40
|
-
min-width: auto;
|
|
41
40
|
margin-right: $form-item-label-margin-right;
|
|
42
41
|
flex: none !important;
|
|
43
42
|
display: inline-block !important;
|
|
44
43
|
word-wrap: break-word;
|
|
45
44
|
text-align: $form-item-label-text-align;
|
|
45
|
+
&.nut-cell__title {
|
|
46
|
+
min-width: auto;
|
|
47
|
+
}
|
|
46
48
|
&.required {
|
|
47
49
|
&::before {
|
|
48
50
|
content: '*';
|
|
@@ -37,7 +37,10 @@
|
|
|
37
37
|
border: 0;
|
|
38
38
|
background-color: rgba(0, 0, 0, 0.45);
|
|
39
39
|
color: #fff;
|
|
40
|
-
transition:
|
|
40
|
+
transition:
|
|
41
|
+
border-color 0.4s,
|
|
42
|
+
outline 0.4s,
|
|
43
|
+
background-color 0.4s;
|
|
41
44
|
position: absolute;
|
|
42
45
|
top: 50%;
|
|
43
46
|
left: 50%;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"framework": "vue",
|
|
4
4
|
"name": "NutUI",
|
|
5
|
-
"version": "4.1.
|
|
5
|
+
"version": "4.1.5-beta.1",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"tags": [
|
|
@@ -3968,6 +3968,15 @@
|
|
|
3968
3968
|
"kind": "expression"
|
|
3969
3969
|
}
|
|
3970
3970
|
},
|
|
3971
|
+
{
|
|
3972
|
+
"name": "field-names",
|
|
3973
|
+
"default": "`{ text: 'text', value: 'value', children: 'children' }`",
|
|
3974
|
+
"description": "自定义 columns 中的字段",
|
|
3975
|
+
"value": {
|
|
3976
|
+
"type": "object",
|
|
3977
|
+
"kind": "expression"
|
|
3978
|
+
}
|
|
3979
|
+
},
|
|
3971
3980
|
{
|
|
3972
3981
|
"name": "title",
|
|
3973
3982
|
"default": "-",
|
|
@@ -3997,7 +4006,7 @@
|
|
|
3997
4006
|
},
|
|
3998
4007
|
{
|
|
3999
4008
|
"name": "three-dimensional",
|
|
4000
|
-
"default": "`
|
|
4009
|
+
"default": "`false`",
|
|
4001
4010
|
"description": "是否开启 3D 效果",
|
|
4002
4011
|
"value": {
|
|
4003
4012
|
"type": "boolean",
|