@nutui/nutui 4.0.4 → 4.0.5-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/dist/nutui.es.js +1 -1
- package/dist/nutui.umd.js +2 -2
- package/dist/packages/_es/Address.js +3 -0
- package/dist/packages/_es/AddressList.js +2 -2
- package/dist/packages/_es/Audio.js +6 -0
- package/dist/packages/_es/AudioOperate.js +1 -0
- package/dist/packages/_es/Avatar.js +2 -0
- package/dist/packages/_es/AvatarGroup.js +1 -0
- package/dist/packages/_es/Backtop.js +2 -2
- package/dist/packages/_es/Barrage.js +1 -1
- package/dist/packages/_es/Button.js +1 -1
- package/dist/packages/_es/Calendar.js +1 -1
- package/dist/packages/_es/CalendarItem.js +1 -1
- package/dist/packages/_es/Cascader.js +2 -0
- package/dist/packages/_es/Category.js +2 -0
- package/dist/packages/_es/CategoryPane.js +3 -0
- package/dist/packages/_es/Cell.js +1 -0
- package/dist/packages/_es/CellGroup.js +1 -1
- package/dist/packages/_es/Checkbox.js +5 -1
- package/dist/packages/_es/CheckboxGroup.js +15 -2
- package/dist/packages/_es/CollapseItem.js +1 -0
- package/dist/packages/_es/Comment.js +5 -0
- package/dist/packages/_es/Countdown.js +8 -0
- package/dist/packages/_es/Countup.js +10 -0
- package/dist/packages/_es/DatePicker.js +16 -20
- package/dist/packages/_es/Dialog.js +6 -3
- package/dist/packages/_es/Ellipsis.js +2 -0
- package/dist/packages/_es/Empty.js +3 -0
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +2 -1
- package/dist/packages/_es/ImagePreview.js +2 -1
- package/dist/packages/_es/Input.js +9 -2
- package/dist/packages/_es/Invoice.js +5 -3
- package/dist/packages/_es/Navbar.js +6 -0
- package/dist/packages/_es/Noticebar.js +1 -0
- package/dist/packages/_es/Notify.js +4 -1
- package/dist/packages/_es/Picker.js +2 -0
- package/dist/packages/_es/PullRefresh.js +4 -0
- package/dist/packages/_es/Radio.js +1 -1
- package/dist/packages/_es/RadioGroup.js +1 -1
- package/dist/packages/_es/Searchbar.js +1 -0
- package/dist/packages/_es/ShortPassword.js +1 -0
- package/dist/packages/_es/Skeleton.js +10 -0
- package/dist/packages/_es/Sku.js +14 -0
- package/dist/packages/_es/Swiper.js +1 -0
- package/dist/packages/_es/TabbarItem.js +5 -0
- package/dist/packages/_es/Tabs.js +22 -6
- package/dist/packages/_es/Textarea.js +1 -0
- package/dist/packages/_es/Toast.js +10 -2
- package/dist/packages/_es/Tour.js +1 -0
- package/dist/packages/_es/Uploader.js +3 -1
- package/dist/packages/_es/Video.js +18 -0
- package/dist/packages/_es/{common-ceb98554.js → common-b9a5e726.js} +8 -0
- package/dist/packages/_es/{index-2a2f92bd.js → index-f933fcf6.js} +41 -4
- package/dist/packages/_es/{index.vue_vue_type_script_lang-1291fceb.js → index.vue_vue_type_script_lang-22dfc112.js} +1 -0
- package/dist/packages/_es/{index.vue_vue_type_script_lang-d4c88f85.js → index.vue_vue_type_script_lang-442e4704.js} +1 -0
- package/dist/packages/_es/{mountComponent-1ece4110.js → mountComponent-8b24c346.js} +7 -7
- package/dist/packages/button/index.scss +1 -1
- package/dist/packages/cellgroup/index.scss +1 -1
- package/dist/packages/tabs/index.scss +8 -1
- package/dist/smartips/web-types.json +4 -4
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +52 -52
- package/dist/styles/themes/jdb.scss +52 -52
- package/dist/styles/themes/jddkh.scss +52 -52
- package/dist/styles/themes/jdt.scss +52 -52
- package/dist/types/__VUE/cell/index.vue.d.ts +1 -1
- package/dist/types/__VUE/countup/index.vue.d.ts +2 -2
- package/dist/types/__VUE/grid/index.vue.d.ts +1 -1
- package/dist/types/__VUE/input/index.vue.d.ts +4 -2
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +1 -1
- package/dist/types/__VUE/rate/index.vue.d.ts +1 -1
- package/dist/types/__VUE/searchbar/index.vue.d.ts +2 -2
- package/dist/types/__VUE/skeleton/index.vue.d.ts +1 -1
- package/dist/types/__VUE/tabs/index.vue.d.ts +1 -0
- package/dist/types/__VUE/textarea/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -41,14 +41,17 @@ const _sfc_main = create({
|
|
|
41
41
|
type: Array,
|
|
42
42
|
default: () => []
|
|
43
43
|
},
|
|
44
|
+
// 市
|
|
44
45
|
country: {
|
|
45
46
|
type: Array,
|
|
46
47
|
default: () => []
|
|
47
48
|
},
|
|
49
|
+
// 县
|
|
48
50
|
town: {
|
|
49
51
|
type: Array,
|
|
50
52
|
default: () => []
|
|
51
53
|
},
|
|
54
|
+
// 镇
|
|
52
55
|
isShowCustomAddress: {
|
|
53
56
|
type: Boolean,
|
|
54
57
|
default: true
|
|
@@ -427,10 +427,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
427
427
|
renderSlot(_ctx.$slots, "item-infos")
|
|
428
428
|
]),
|
|
429
429
|
"content-icons": withCtx(() => [
|
|
430
|
-
renderSlot(_ctx.$slots, "
|
|
430
|
+
renderSlot(_ctx.$slots, "item-icon")
|
|
431
431
|
]),
|
|
432
432
|
"content-addrs": withCtx(() => [
|
|
433
|
-
renderSlot(_ctx.$slots, "
|
|
433
|
+
renderSlot(_ctx.$slots, "item-addr")
|
|
434
434
|
]),
|
|
435
435
|
_: 2
|
|
436
436
|
}, [
|
|
@@ -13,26 +13,32 @@ const _sfc_main = create({
|
|
|
13
13
|
type: String,
|
|
14
14
|
default: ""
|
|
15
15
|
},
|
|
16
|
+
// 静音
|
|
16
17
|
muted: {
|
|
17
18
|
type: Boolean,
|
|
18
19
|
default: false
|
|
19
20
|
},
|
|
21
|
+
// 自动播放
|
|
20
22
|
autoplay: {
|
|
21
23
|
type: Boolean,
|
|
22
24
|
default: false
|
|
23
25
|
},
|
|
26
|
+
// 循环播放
|
|
24
27
|
loop: {
|
|
25
28
|
type: Boolean,
|
|
26
29
|
default: false
|
|
27
30
|
},
|
|
31
|
+
// 是否预加载音频
|
|
28
32
|
preload: {
|
|
29
33
|
type: String,
|
|
30
34
|
default: "auto"
|
|
31
35
|
},
|
|
36
|
+
/* 总时长秒数 */
|
|
32
37
|
second: {
|
|
33
38
|
type: Number,
|
|
34
39
|
default: 0
|
|
35
40
|
},
|
|
41
|
+
// 展示的形式 controls 控制面板 progress 进度条 icon 图标 none 自定义
|
|
36
42
|
type: {
|
|
37
43
|
type: String,
|
|
38
44
|
default: "progress"
|
|
@@ -79,7 +79,7 @@ const _sfc_main = create({
|
|
|
79
79
|
}
|
|
80
80
|
function scrollAnimation() {
|
|
81
81
|
let cid = requestAniFrame(function fn() {
|
|
82
|
-
var t = props.duration - Math.max(0, state.startTime -
|
|
82
|
+
var t = props.duration - Math.max(0, state.startTime - +/* @__PURE__ */ new Date() + props.duration);
|
|
83
83
|
var y = t * -state.scrollTop / props.duration + state.scrollTop;
|
|
84
84
|
scroll(y);
|
|
85
85
|
cid = requestAniFrame(fn);
|
|
@@ -97,7 +97,7 @@ const _sfc_main = create({
|
|
|
97
97
|
state.scrollEl.removeEventListener("resize", scrollListener, false);
|
|
98
98
|
}
|
|
99
99
|
function click(e) {
|
|
100
|
-
state.startTime =
|
|
100
|
+
state.startTime = +/* @__PURE__ */ new Date();
|
|
101
101
|
props.isAnimation && props.duration > 0 ? scrollAnimation() : scroll();
|
|
102
102
|
emit("click", e);
|
|
103
103
|
}
|
|
@@ -32,7 +32,7 @@ const _sfc_main = create({
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
setup(props) {
|
|
35
|
-
const classTime = new Date().getTime();
|
|
35
|
+
const classTime = (/* @__PURE__ */ new Date()).getTime();
|
|
36
36
|
const slotDefault = !!useSlots().default;
|
|
37
37
|
const classes = computed(() => {
|
|
38
38
|
const prefixCls = componentName;
|
|
@@ -82,7 +82,7 @@ const _sfc_main = create({
|
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
|
-
const _hoisted_1 = { class: "nut-
|
|
85
|
+
const _hoisted_1 = { class: "nut-button__wrap" };
|
|
86
86
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
87
87
|
const _component_Loading = resolveComponent("Loading");
|
|
88
88
|
return openBlock(), createElementBlock("view", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, ref, resolveComponent, openBlock, createBlock, withCtx, createSlots, renderSlot, createCommentVNode } from "vue";
|
|
2
2
|
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
-
import { C as CalendarItem, U as Utils } from "./index-
|
|
3
|
+
import { C as CalendarItem, U as Utils } from "./index-f933fcf6.js";
|
|
4
4
|
import { P as Popup } from "./index-c55ad69e.js";
|
|
5
5
|
import { u as useExpose } from "./index-79c5dc33.js";
|
|
6
6
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
@@ -100,6 +100,7 @@ class Tree {
|
|
|
100
100
|
parent.children = formatTree(nodes, parent, this.config);
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
+
// for test
|
|
103
104
|
getNodeByValue(value) {
|
|
104
105
|
let foundNode;
|
|
105
106
|
eachTree(this.nodes, (node) => {
|
|
@@ -291,6 +292,7 @@ const _sfc_main$1 = create$1({
|
|
|
291
292
|
emit("update:modelValue", emitValue, pathNodes);
|
|
292
293
|
};
|
|
293
294
|
const methods = {
|
|
295
|
+
// 选中一个节点,静默模式不触发事件
|
|
294
296
|
async handleNode(node, silent) {
|
|
295
297
|
const { disabled, loading } = node;
|
|
296
298
|
if (!silent && disabled || !panes.value[tabsCursor.value]) {
|
|
@@ -5,14 +5,17 @@ import "../locale/lang";
|
|
|
5
5
|
const { componentName, create } = createComponent("category-pane");
|
|
6
6
|
const _sfc_main = create({
|
|
7
7
|
props: {
|
|
8
|
+
//分类模式
|
|
8
9
|
type: {
|
|
9
10
|
type: String,
|
|
10
11
|
default: "classify"
|
|
11
12
|
},
|
|
13
|
+
//右侧导航数据
|
|
12
14
|
categoryChild: {
|
|
13
15
|
type: Array,
|
|
14
16
|
default: () => []
|
|
15
17
|
},
|
|
18
|
+
//模式传入自定义数据
|
|
16
19
|
customCategory: {
|
|
17
20
|
type: Array,
|
|
18
21
|
default: () => []
|
|
@@ -28,7 +28,7 @@ const _hoisted_2 = {
|
|
|
28
28
|
key: 3,
|
|
29
29
|
class: "nut-cell-group__desc"
|
|
30
30
|
};
|
|
31
|
-
const _hoisted_3 = { class: "nut-cell-
|
|
31
|
+
const _hoisted_3 = { class: "nut-cell-group__wrap" };
|
|
32
32
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
33
33
|
return openBlock(), createElementBlock("view", {
|
|
34
34
|
class: normalizeClass(_ctx.classes)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
2
|
-
import { inject, reactive, computed, watch, onMounted, getCurrentInstance, h } from "vue";
|
|
2
|
+
import { inject, reactive, computed, watch, onMounted, getCurrentInstance, onBeforeUnmount, h } from "vue";
|
|
3
3
|
import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
|
|
4
4
|
import { CheckNormal, Checked, CheckDisabled } from "@nutui/icons-vue";
|
|
5
5
|
import "../locale/lang";
|
|
@@ -34,6 +34,7 @@ const component = (componentName2, components) => {
|
|
|
34
34
|
shape: {
|
|
35
35
|
type: String,
|
|
36
36
|
default: "round"
|
|
37
|
+
// button
|
|
37
38
|
}
|
|
38
39
|
},
|
|
39
40
|
emits: ["change", "update:modelValue"],
|
|
@@ -135,6 +136,9 @@ const component = (componentName2, components) => {
|
|
|
135
136
|
onMounted(() => {
|
|
136
137
|
hasParent.value && parent["relation"](getCurrentInstance());
|
|
137
138
|
});
|
|
139
|
+
onBeforeUnmount(() => {
|
|
140
|
+
hasParent.value && parent["relation"](getCurrentInstance(), true);
|
|
141
|
+
});
|
|
138
142
|
watch(
|
|
139
143
|
() => props.indeterminate,
|
|
140
144
|
(newVal) => {
|
|
@@ -23,9 +23,22 @@ const _sfc_main = create({
|
|
|
23
23
|
const state = reactive({
|
|
24
24
|
children: []
|
|
25
25
|
});
|
|
26
|
-
const relation = (child) => {
|
|
26
|
+
const relation = (child, cancel = false) => {
|
|
27
|
+
var _a;
|
|
27
28
|
if (child.proxy) {
|
|
28
|
-
|
|
29
|
+
if (!cancel) {
|
|
30
|
+
state.children.push(child.proxy);
|
|
31
|
+
} else {
|
|
32
|
+
let key_1 = state.children.indexOf(child.proxy);
|
|
33
|
+
if (key_1 > -1) {
|
|
34
|
+
state.children.splice(key_1, 1);
|
|
35
|
+
}
|
|
36
|
+
let key_2 = props.modelValue.indexOf((_a = child.proxy) == null ? void 0 : _a.label);
|
|
37
|
+
if (key_2 > -1) {
|
|
38
|
+
const value = props.modelValue.filter((_, index) => index !== key_2);
|
|
39
|
+
emit("update:modelValue", value);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
29
42
|
}
|
|
30
43
|
};
|
|
31
44
|
const updateValue = (value) => {
|
|
@@ -16,6 +16,7 @@ const _sfc_main$3 = create$3({
|
|
|
16
16
|
type: {
|
|
17
17
|
type: String,
|
|
18
18
|
default: "default"
|
|
19
|
+
// default,complex
|
|
19
20
|
},
|
|
20
21
|
info: {
|
|
21
22
|
type: Object,
|
|
@@ -117,6 +118,7 @@ const _sfc_main$2 = create$2({
|
|
|
117
118
|
type: {
|
|
118
119
|
type: String,
|
|
119
120
|
default: "one"
|
|
121
|
+
// one multi
|
|
120
122
|
},
|
|
121
123
|
videos: {
|
|
122
124
|
type: Array,
|
|
@@ -219,6 +221,7 @@ const _sfc_main$1 = create$1({
|
|
|
219
221
|
type: {
|
|
220
222
|
type: String,
|
|
221
223
|
default: "base"
|
|
224
|
+
// simple,base,complex
|
|
222
225
|
},
|
|
223
226
|
info: {
|
|
224
227
|
type: Object,
|
|
@@ -302,10 +305,12 @@ const _sfc_main = create({
|
|
|
302
305
|
headerType: {
|
|
303
306
|
type: String,
|
|
304
307
|
default: "default"
|
|
308
|
+
//头部展示风格 default,complex
|
|
305
309
|
},
|
|
306
310
|
imagesRows: {
|
|
307
311
|
type: String,
|
|
308
312
|
default: "one"
|
|
313
|
+
// 'one' 'multi'
|
|
309
314
|
},
|
|
310
315
|
ellipsis: {
|
|
311
316
|
type: [String, Number, Boolean],
|
|
@@ -23,6 +23,7 @@ const _sfc_main = create({
|
|
|
23
23
|
type: Boolean
|
|
24
24
|
},
|
|
25
25
|
startTime: {
|
|
26
|
+
// 可以是服务器当前时间
|
|
26
27
|
type: [Number, String],
|
|
27
28
|
validator(v) {
|
|
28
29
|
const dateStr = new Date(v).toString().toLowerCase();
|
|
@@ -36,10 +37,12 @@ const _sfc_main = create({
|
|
|
36
37
|
return dateStr !== "invalid date";
|
|
37
38
|
}
|
|
38
39
|
},
|
|
40
|
+
// 是否开启毫秒
|
|
39
41
|
millisecond: {
|
|
40
42
|
default: false,
|
|
41
43
|
type: Boolean
|
|
42
44
|
},
|
|
45
|
+
// 时间格式化
|
|
43
46
|
format: {
|
|
44
47
|
type: String,
|
|
45
48
|
default: "HH:mm:ss"
|
|
@@ -48,6 +51,7 @@ const _sfc_main = create({
|
|
|
48
51
|
type: Boolean,
|
|
49
52
|
default: true
|
|
50
53
|
},
|
|
54
|
+
// 倒计时时长,单位毫秒
|
|
51
55
|
time: {
|
|
52
56
|
type: [Number, String],
|
|
53
57
|
default: 0
|
|
@@ -57,10 +61,14 @@ const _sfc_main = create({
|
|
|
57
61
|
setup(props, { emit, slots }) {
|
|
58
62
|
const state = reactive({
|
|
59
63
|
restTime: 0,
|
|
64
|
+
// 倒计时剩余时间时间
|
|
60
65
|
timer: null,
|
|
61
66
|
counting: !props.paused && props.autoStart,
|
|
67
|
+
// 是否处于倒计时中
|
|
62
68
|
handleEndTime: Date.now(),
|
|
69
|
+
// 最终截止时间
|
|
63
70
|
diffTime: 0
|
|
71
|
+
// 设置了 startTime 时,与 date.now() 的差异
|
|
64
72
|
});
|
|
65
73
|
const classes = computed(() => {
|
|
66
74
|
const prefixCls = componentName;
|
|
@@ -35,6 +35,7 @@ const _sfc_main = create({
|
|
|
35
35
|
type: Boolean,
|
|
36
36
|
default: true
|
|
37
37
|
},
|
|
38
|
+
// 数字滚动
|
|
38
39
|
numWidth: {
|
|
39
40
|
type: Number,
|
|
40
41
|
default: 20
|
|
@@ -47,6 +48,7 @@ const _sfc_main = create({
|
|
|
47
48
|
type: Boolean,
|
|
48
49
|
default: false
|
|
49
50
|
},
|
|
51
|
+
// 自定义图片
|
|
50
52
|
customBgImg: {
|
|
51
53
|
type: String,
|
|
52
54
|
default: ""
|
|
@@ -59,6 +61,7 @@ const _sfc_main = create({
|
|
|
59
61
|
type: Number,
|
|
60
62
|
default: 1
|
|
61
63
|
},
|
|
64
|
+
// 抽奖
|
|
62
65
|
type: {
|
|
63
66
|
type: String,
|
|
64
67
|
default: ""
|
|
@@ -100,14 +103,20 @@ const _sfc_main = create({
|
|
|
100
103
|
to10_0: [0, 9, 8, 7, 6, 5, 4, 3, 2, 1, 1],
|
|
101
104
|
timer: null,
|
|
102
105
|
totalCount: 0,
|
|
106
|
+
//正整数
|
|
103
107
|
pointNum: 0,
|
|
108
|
+
//小数位
|
|
104
109
|
numberVal: 0,
|
|
110
|
+
//数字
|
|
105
111
|
num_total_len: 0,
|
|
112
|
+
//数字长度
|
|
106
113
|
relNum: 0,
|
|
114
|
+
//去除小数点
|
|
107
115
|
customNumber: 1,
|
|
108
116
|
prizeLevelTrun: 0,
|
|
109
117
|
prizeY: [],
|
|
110
118
|
prizeYPrev: [],
|
|
119
|
+
// machineTransition: 'none',
|
|
111
120
|
finshMachine: 0,
|
|
112
121
|
notPrize: [],
|
|
113
122
|
typeMachine: ""
|
|
@@ -395,6 +404,7 @@ const _sfc_main = create({
|
|
|
395
404
|
}
|
|
396
405
|
scrollTime(
|
|
397
406
|
i,
|
|
407
|
+
// parseFloat((this.machinePrizeNum-(this.prizeLevelTrun-1))*this.numHeight + turn + local),
|
|
398
408
|
newLocation,
|
|
399
409
|
local
|
|
400
410
|
);
|
|
@@ -6,7 +6,7 @@ import "./pxCheck-c6b9f6b7.js";
|
|
|
6
6
|
import "./index-7a7385e4.js";
|
|
7
7
|
import "../locale/lang";
|
|
8
8
|
const { componentName, create, translate } = createComponent("date-picker");
|
|
9
|
-
const currentYear = new Date().getFullYear();
|
|
9
|
+
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
10
10
|
function isDate(val) {
|
|
11
11
|
return isDate$1(val) && !isNaN(val.getTime());
|
|
12
12
|
}
|
|
@@ -62,10 +62,12 @@ const _sfc_main = create({
|
|
|
62
62
|
type: Function,
|
|
63
63
|
default: null
|
|
64
64
|
},
|
|
65
|
+
// 是否开启3D效果
|
|
65
66
|
threeDimensional: {
|
|
66
67
|
type: Boolean,
|
|
67
68
|
default: true
|
|
68
69
|
},
|
|
70
|
+
// 惯性滚动 时长
|
|
69
71
|
swipeDuration: {
|
|
70
72
|
type: [Number, String],
|
|
71
73
|
default: 1e3
|
|
@@ -87,7 +89,7 @@ const _sfc_main = create({
|
|
|
87
89
|
emits: ["click", "cancel", "change", "confirm", "update:modelValue"],
|
|
88
90
|
setup(props, { emit }) {
|
|
89
91
|
const state = reactive({
|
|
90
|
-
currentDate: new Date(),
|
|
92
|
+
currentDate: /* @__PURE__ */ new Date(),
|
|
91
93
|
title: props.title,
|
|
92
94
|
selectedValue: []
|
|
93
95
|
});
|
|
@@ -103,15 +105,15 @@ const _sfc_main = create({
|
|
|
103
105
|
return 32 - new Date(year, month - 1, 32).getDate();
|
|
104
106
|
}
|
|
105
107
|
const getBoundary = (type, value) => {
|
|
106
|
-
const boundary = props
|
|
108
|
+
const boundary = type == "min" ? props.minDate : props.maxDate;
|
|
107
109
|
const year = boundary.getFullYear();
|
|
108
110
|
let month = 1;
|
|
109
|
-
let
|
|
111
|
+
let date = 1;
|
|
110
112
|
let hour = 0;
|
|
111
113
|
let minute = 0;
|
|
112
114
|
if (type === "max") {
|
|
113
115
|
month = 12;
|
|
114
|
-
|
|
116
|
+
date = getMonthEndDay(value.getFullYear(), value.getMonth() + 1);
|
|
115
117
|
hour = 23;
|
|
116
118
|
minute = 59;
|
|
117
119
|
}
|
|
@@ -119,36 +121,27 @@ const _sfc_main = create({
|
|
|
119
121
|
if (value.getFullYear() === year) {
|
|
120
122
|
month = boundary.getMonth() + 1;
|
|
121
123
|
if (value.getMonth() + 1 === month) {
|
|
122
|
-
|
|
123
|
-
if (value.getDate() ===
|
|
124
|
+
date = boundary.getDate();
|
|
125
|
+
if (value.getDate() === date) {
|
|
124
126
|
hour = boundary.getHours();
|
|
125
127
|
if (value.getHours() === hour) {
|
|
126
128
|
minute = boundary.getMinutes();
|
|
127
129
|
}
|
|
128
130
|
}
|
|
129
131
|
}
|
|
130
|
-
} else {
|
|
131
|
-
return {
|
|
132
|
-
[`${type}Year`]: year,
|
|
133
|
-
[`${type}Month`]: month,
|
|
134
|
-
[`${type}Day`]: day,
|
|
135
|
-
[`${type}Hour`]: hour,
|
|
136
|
-
[`${type}Minute`]: minute,
|
|
137
|
-
[`${type}Seconds`]: seconds
|
|
138
|
-
};
|
|
139
132
|
}
|
|
140
133
|
return {
|
|
141
134
|
[`${type}Year`]: year,
|
|
142
135
|
[`${type}Month`]: month,
|
|
143
|
-
[`${type}
|
|
136
|
+
[`${type}Date`]: date,
|
|
144
137
|
[`${type}Hour`]: hour,
|
|
145
138
|
[`${type}Minute`]: minute,
|
|
146
139
|
[`${type}Seconds`]: seconds
|
|
147
140
|
};
|
|
148
141
|
};
|
|
149
142
|
const ranges = computed(() => {
|
|
150
|
-
const { maxYear,
|
|
151
|
-
const { minYear,
|
|
143
|
+
const { maxYear, maxDate, maxMonth, maxHour, maxMinute, maxSeconds } = getBoundary("max", state.currentDate);
|
|
144
|
+
const { minYear, minDate, minMonth, minHour, minMinute, minSeconds } = getBoundary("min", state.currentDate);
|
|
152
145
|
let result = [
|
|
153
146
|
{
|
|
154
147
|
type: "year",
|
|
@@ -160,7 +153,7 @@ const _sfc_main = create({
|
|
|
160
153
|
},
|
|
161
154
|
{
|
|
162
155
|
type: "day",
|
|
163
|
-
range: [
|
|
156
|
+
range: [minDate, maxDate]
|
|
164
157
|
},
|
|
165
158
|
{
|
|
166
159
|
type: "hour",
|
|
@@ -194,6 +187,9 @@ const _sfc_main = create({
|
|
|
194
187
|
case "datehour":
|
|
195
188
|
result = result.slice(0, 4);
|
|
196
189
|
break;
|
|
190
|
+
case "hour-minute":
|
|
191
|
+
result = result.slice(3, 5);
|
|
192
|
+
break;
|
|
197
193
|
}
|
|
198
194
|
return result;
|
|
199
195
|
});
|
|
@@ -12,7 +12,7 @@ import Button from "./Button.js";
|
|
|
12
12
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
13
13
|
import Overlay from "./Overlay.js";
|
|
14
14
|
import "../locale/lang";
|
|
15
|
-
import { C as CreateComponent } from "./mountComponent-
|
|
15
|
+
import { C as CreateComponent } from "./mountComponent-8b24c346.js";
|
|
16
16
|
import "@nutui/icons-vue";
|
|
17
17
|
const { componentName, create, translate } = createComponent("dialog");
|
|
18
18
|
const _sfc_main = create({
|
|
@@ -70,6 +70,7 @@ const _sfc_main = create({
|
|
|
70
70
|
footerDirection: {
|
|
71
71
|
type: String,
|
|
72
72
|
default: "horizontal"
|
|
73
|
+
//vertical
|
|
73
74
|
},
|
|
74
75
|
customClass: {
|
|
75
76
|
type: String,
|
|
@@ -235,8 +236,10 @@ class DialogOptions {
|
|
|
235
236
|
__publicField(this, "popStyle", {});
|
|
236
237
|
__publicField(this, "popClass", "");
|
|
237
238
|
__publicField(this, "teleport", "body");
|
|
238
|
-
__publicField(this, "id", new Date().getTime());
|
|
239
|
+
__publicField(this, "id", (/* @__PURE__ */ new Date()).getTime());
|
|
239
240
|
__publicField(this, "footerDirection", "horizontal");
|
|
241
|
+
//使用横纵方向 可选值 horizontal、vertical
|
|
242
|
+
// function
|
|
240
243
|
__publicField(this, "onUpdate");
|
|
241
244
|
__publicField(this, "onOk");
|
|
242
245
|
__publicField(this, "onCancel");
|
|
@@ -260,7 +263,7 @@ class DialogFunction {
|
|
|
260
263
|
const { unmount } = CreateComponent(options, {
|
|
261
264
|
name: "dialog",
|
|
262
265
|
components: [Popup, Button, Overlay],
|
|
263
|
-
wrapper: (
|
|
266
|
+
wrapper: (elWrap, root) => {
|
|
264
267
|
return {
|
|
265
268
|
setup() {
|
|
266
269
|
options.onUpdate = (val) => {
|
|
@@ -13,13 +13,16 @@ const _sfc_main = create({
|
|
|
13
13
|
image: {
|
|
14
14
|
type: String,
|
|
15
15
|
default: "empty"
|
|
16
|
+
//默认empty
|
|
16
17
|
},
|
|
17
18
|
imageSize: {
|
|
18
19
|
type: [Number, String],
|
|
20
|
+
// 图片大小,正方形
|
|
19
21
|
default: ""
|
|
20
22
|
},
|
|
21
23
|
description: {
|
|
22
24
|
type: String,
|
|
25
|
+
// 文字区
|
|
23
26
|
default: ""
|
|
24
27
|
}
|
|
25
28
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
2
2
|
import "vue";
|
|
3
|
-
import { c as component } from "./common-
|
|
3
|
+
import { c as component } from "./common-b9a5e726.js";
|
|
4
4
|
import "../locale/lang";
|
|
5
5
|
import "./pxCheck-c6b9f6b7.js";
|
|
6
6
|
const { create } = createComponent("grid");
|
|
@@ -2,7 +2,7 @@ import { inject, getCurrentInstance, onUnmounted, computed, ref, openBlock, crea
|
|
|
2
2
|
import { u as useRouter } from "./index-54d03fc1.js";
|
|
3
3
|
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
4
4
|
import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
|
|
5
|
-
import { G as GRID_KEY } from "./common-
|
|
5
|
+
import { G as GRID_KEY } from "./common-b9a5e726.js";
|
|
6
6
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
7
7
|
import "../locale/lang";
|
|
8
8
|
function useInject(key) {
|
|
@@ -29,6 +29,7 @@ const _sfc_main = create({
|
|
|
29
29
|
text: {
|
|
30
30
|
type: String
|
|
31
31
|
},
|
|
32
|
+
// router
|
|
32
33
|
to: {
|
|
33
34
|
type: [String, Object]
|
|
34
35
|
},
|
|
@@ -16,7 +16,7 @@ import { P as Popup } from "./index-c55ad69e.js";
|
|
|
16
16
|
import Swiper from "./Swiper.js";
|
|
17
17
|
import { f as funInterceptor } from "./interceptor-956b24fc.js";
|
|
18
18
|
import "../locale/lang";
|
|
19
|
-
import { C as CreateComponent } from "./mountComponent-
|
|
19
|
+
import { C as CreateComponent } from "./mountComponent-8b24c346.js";
|
|
20
20
|
import Overlay from "./Overlay.js";
|
|
21
21
|
import "./index-79c5dc33.js";
|
|
22
22
|
import "./raf-729dad54.js";
|
|
@@ -296,6 +296,7 @@ const _sfc_main = create({
|
|
|
296
296
|
closeIconPosition: {
|
|
297
297
|
type: String,
|
|
298
298
|
default: "top-right"
|
|
299
|
+
// top-right top-left
|
|
299
300
|
},
|
|
300
301
|
beforeClose: Function,
|
|
301
302
|
isLoop: {
|