@nutui/nutui 4.1.0-beta.4 → 4.1.0-beta.6
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.js +5351 -5327
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/_es/ActionSheet.js +2 -2
- package/dist/packages/_es/Address.js +4 -3
- package/dist/packages/_es/AddressList.js +1 -1
- package/dist/packages/_es/Animate.js +1 -1
- package/dist/packages/_es/Audio.js +2 -2
- package/dist/packages/_es/AudioOperate.js +3 -3
- package/dist/packages/_es/Avatar.js +17 -79
- package/dist/packages/_es/AvatarGroup.js +92 -21
- package/dist/packages/_es/Backtop.js +1 -1
- package/dist/packages/_es/Badge.js +1 -1
- package/dist/packages/_es/Barrage.js +1 -1
- package/dist/packages/_es/Button.js +2 -2
- package/dist/packages/_es/Calendar.js +22 -24
- package/dist/packages/_es/CalendarItem.js +2 -2
- package/dist/packages/_es/Card.js +2 -2
- package/dist/packages/_es/Cascader.js +4 -3
- package/dist/packages/_es/Category.js +3 -3
- package/dist/packages/_es/CategoryPane.js +2 -2
- package/dist/packages/_es/Cell.js +1 -1
- package/dist/packages/_es/CellGroup.js +1 -1
- package/dist/packages/_es/Checkbox.js +2 -2
- package/dist/packages/_es/CheckboxGroup.js +1 -1
- package/dist/packages/_es/CircleProgress.js +1 -1
- package/dist/packages/_es/Col.js +1 -1
- package/dist/packages/_es/Collapse.js +1 -1
- package/dist/packages/_es/CollapseItem.js +1 -1
- package/dist/packages/_es/Comment.js +4 -4
- package/dist/packages/_es/ConfigProvider.js +4 -4
- package/dist/packages/_es/Countdown.js +4 -4
- package/dist/packages/_es/Countup.js +9 -12
- package/dist/packages/_es/DatePicker.js +3 -3
- package/dist/packages/_es/Dialog.js +4 -4
- package/dist/packages/_es/Divider.js +1 -1
- package/dist/packages/_es/Drag.js +1 -1
- package/dist/packages/_es/Ecard.js +1 -1
- package/dist/packages/_es/Elevator.js +1 -1
- package/dist/packages/_es/Ellipsis.js +1 -1
- package/dist/packages/_es/Empty.js +2 -2
- package/dist/packages/_es/FixedNav.js +1 -1
- package/dist/packages/_es/Form.js +26 -21
- package/dist/packages/_es/FormItem.js +3 -3
- package/dist/packages/_es/Grid.js +2 -2
- package/dist/packages/_es/GridItem.js +2 -2
- package/dist/packages/_es/Image.js +2 -2
- package/dist/packages/_es/ImagePreview.js +4 -4
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +2 -2
- package/dist/packages/_es/Input.js +2 -4
- package/dist/packages/_es/InputNumber.js +23 -2
- package/dist/packages/_es/{Interceptor-5415601e.js → Interceptor-c05a39f2.js} +1 -1
- package/dist/packages/_es/Invoice.js +3 -3
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +1 -1
- package/dist/packages/_es/Menu.js +2 -2
- package/dist/packages/_es/MenuItem.js +2 -2
- package/dist/packages/_es/Navbar.js +1 -1
- package/dist/packages/_es/Noticebar.js +5 -5
- package/dist/packages/_es/Notify.js +2 -2
- package/dist/packages/_es/NumberKeyboard.js +2 -2
- package/dist/packages/_es/Overlay.js +3 -1
- package/dist/packages/_es/Pagination.js +1 -1
- package/dist/packages/_es/Picker.js +7 -7
- package/dist/packages/_es/Popover.js +7 -7
- package/dist/packages/_es/Popup.js +2 -2
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +1 -1
- package/dist/packages/_es/PullRefresh.js +3 -2
- package/dist/packages/_es/Radio.js +2 -2
- package/dist/packages/_es/RadioGroup.js +2 -2
- package/dist/packages/_es/Range.js +1 -1
- package/dist/packages/_es/Rate.js +4 -4
- package/dist/packages/_es/Row.js +1 -1
- package/dist/packages/_es/Searchbar.js +1 -1
- package/dist/packages/_es/ShortPassword.js +2 -2
- 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 +8 -8
- package/dist/packages/_es/Step.js +1 -1
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/Sticky.js +125 -5
- package/dist/packages/_es/SubSideNavbar.js +1 -1
- package/dist/packages/_es/Swipe.js +1 -1
- package/dist/packages/_es/Swiper.js +2 -2
- package/dist/packages/_es/SwiperItem.js +2 -2
- package/dist/packages/_es/Switch.js +1 -1
- package/dist/packages/_es/TabPane.js +2 -2
- package/dist/packages/_es/Tabbar.js +2 -2
- package/dist/packages/_es/TabbarItem.js +2 -2
- package/dist/packages/_es/Table.js +12 -6
- package/dist/packages/_es/Tabs.js +5 -4
- package/dist/packages/_es/Tag.js +1 -1
- package/dist/packages/_es/Textarea.js +1 -1
- package/dist/packages/_es/TimeDetail.js +1 -1
- package/dist/packages/_es/TimePannel.js +1 -1
- package/dist/packages/_es/TimeSelect.js +2 -2
- package/dist/packages/_es/Toast.js +2 -2
- package/dist/packages/_es/Tour.js +2 -2
- package/dist/packages/_es/TrendArrow.js +1 -1
- package/dist/packages/_es/Uploader.js +5 -4
- package/dist/packages/_es/Video.js +1 -1
- package/dist/packages/_es/Watermark.js +2 -2
- package/dist/packages/_es/{common-21e9de3d.js → common-8775d905.js} +1 -1
- package/dist/packages/_es/{component-8f0be7eb.js → component-0fbad28e.js} +3 -3
- package/dist/packages/_es/{index-c9b21ed1.js → index-3a5098e4.js} +15 -12
- package/dist/packages/_es/{index-dc2ebe90.js → index-5ffbc437.js} +2 -2
- package/dist/packages/_es/{index-43c34ac6.js → index-97b44e6c.js} +1 -0
- package/dist/packages/_es/{index.vue_vue_type_script_lang-dba4283d.js → index.vue_vue_type_script_lang-2852286e.js} +1 -1
- package/dist/packages/_es/{index.vue_vue_type_script_lang-7b265520.js → index.vue_vue_type_script_lang-cdf21a24.js} +2 -2
- package/dist/packages/_es/{mountComponent-f2c53efb.js → mountComponent-a895e3f1.js} +1 -1
- package/dist/packages/avatargroup/index.scss +0 -3
- package/dist/packages/sticky/index.scss +0 -10
- package/dist/smartips/web-types.json +4 -10
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +54 -156
- package/dist/styles/themes/jdb.scss +54 -156
- package/dist/styles/themes/jddkh.scss +54 -156
- package/dist/styles/themes/jdt.scss +54 -156
- package/dist/types/__VUE/avatar/index.vue.d.ts +11 -27
- package/dist/types/__VUE/avatar/types.d.ts +3 -0
- package/dist/types/__VUE/avatargroup/index.vue.d.ts +18 -15
- package/dist/types/__VUE/calendar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/calendaritem/index.vue.d.ts +7 -8
- package/dist/types/__VUE/calendaritem/type.d.ts +0 -8
- package/dist/types/__VUE/circleprogress/index.vue.d.ts +3 -3
- package/dist/types/__VUE/configprovider/index.vue.d.ts +3 -4
- package/dist/types/__VUE/form/common.d.ts +2 -2
- package/dist/types/__VUE/form/index.vue.d.ts +4 -4
- package/dist/types/__VUE/formitem/types.d.ts +2 -2
- package/dist/types/__VUE/picker/common.d.ts +4 -4
- package/dist/types/__VUE/picker/index.vue.d.ts +9 -10
- package/dist/types/__VUE/pullrefresh/index.vue.d.ts +1 -1
- package/dist/types/__VUE/rate/index.vue.d.ts +2 -2
- package/dist/types/__VUE/sticky/index.vue.d.ts +11 -8
- package/dist/types/__VUE/swipe/index.vue.d.ts +2 -2
- package/dist/types/__VUE/swiper/index.vue.d.ts +1 -1
- package/dist/types/__VUE/table/common.d.ts +21 -6
- package/dist/types/__VUE/table/renderColumn.d.ts +20 -6
- package/dist/types/__VUE/tabs/hooks.d.ts +2 -2
- package/dist/types/__VUE/tabs/index.vue.d.ts +2 -2
- package/dist/types/__VUE/uploader/index.vue.d.ts +2 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/utils/useTaroRect/index.d.ts +1 -1
- package/dist/types/utils/useTouch/index.d.ts +2 -2
- package/package.json +1 -1
- package/dist/packages/_es/index.vue_vue_type_script_lang-89366761.js +0 -151
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { reactive, computed, onMounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, withModifiers, toDisplayString, createBlock, withDirectives, normalizeStyle, renderSlot, vShow } from "vue";
|
|
21
|
-
import { c as createComponent } from "./component-
|
|
21
|
+
import { c as createComponent } from "./component-0fbad28e.js";
|
|
22
22
|
import { ArrowDown2, ArrowUp2 } from "@nutui/icons-vue";
|
|
23
23
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
24
24
|
import "../locale/lang";
|
|
@@ -19,7 +19,7 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { u as useTouch } from "./index-7a7385e4.js";
|
|
21
21
|
import { computed, ref, reactive, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot } from "vue";
|
|
22
|
-
import { c as createComponent } from "./component-
|
|
22
|
+
import { c as createComponent } from "./component-0fbad28e.js";
|
|
23
23
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
24
24
|
import "../locale/lang";
|
|
25
25
|
const { componentName, create } = createComponent("swipe");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref, reactive, computed, provide, onDeactivated, onBeforeUnmount, watch, nextTick, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, renderSlot, Fragment, renderList, createCommentVNode } from "vue";
|
|
2
|
-
import { c as createComponent, e as clamp } from "./component-
|
|
2
|
+
import { c as createComponent, e as clamp } from "./component-0fbad28e.js";
|
|
3
3
|
import { u as useTouch } from "./index-7a7385e4.js";
|
|
4
4
|
import { u as useExpose } from "./index-79c5dc33.js";
|
|
5
5
|
import { r as requestAniFrame } from "./raf-729dad54.js";
|
|
@@ -294,7 +294,7 @@ const _sfc_main = create({
|
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
};
|
|
297
|
-
const onTouchEnd = (
|
|
297
|
+
const onTouchEnd = () => {
|
|
298
298
|
if (!props.touchable || !state.moving)
|
|
299
299
|
return;
|
|
300
300
|
const speed = delTa.value / (Date.now() - state.touchTime);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { inject, getCurrentInstance, reactive, computed, onUnmounted, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-0fbad28e.js";
|
|
3
3
|
import { u as useExpose } from "./index-79c5dc33.js";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
import "../locale/lang";
|
|
6
6
|
const { create, componentName } = createComponent("swiper-item");
|
|
7
7
|
const _sfc_main = create({
|
|
8
|
-
setup(
|
|
8
|
+
setup() {
|
|
9
9
|
const parent = inject("parent");
|
|
10
10
|
parent["relation"](getCurrentInstance());
|
|
11
11
|
const state = reactive({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, createVNode, createCommentVNode, Fragment, withDirectives, toDisplayString, vShow } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-0fbad28e.js";
|
|
3
3
|
import { Loading1 } from "@nutui/icons-vue";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
import "../locale/lang";
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { inject, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot } from "vue";
|
|
21
|
-
import { c as createComponent } from "./component-
|
|
21
|
+
import { c as createComponent } from "./component-0fbad28e.js";
|
|
22
22
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
23
23
|
import "../locale/lang";
|
|
24
24
|
const { create } = createComponent("tab-pane");
|
|
@@ -38,7 +38,7 @@ const _sfc_main = create({
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
emits: ["click"],
|
|
41
|
-
setup(props
|
|
41
|
+
setup(props) {
|
|
42
42
|
const parentOption = inject("tabsOpiton");
|
|
43
43
|
const paneStyle = computed(() => {
|
|
44
44
|
return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { toRefs, ref, reactive, provide, watch, onMounted, nextTick, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-0fbad28e.js";
|
|
3
3
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
4
4
|
import "../locale/lang";
|
|
5
5
|
const { create } = createComponent("tabbar");
|
|
@@ -35,7 +35,7 @@ const _sfc_main = create({
|
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
emits: ["tab-switch", "update:modelValue"],
|
|
38
|
-
setup(props, { emit
|
|
38
|
+
setup(props, { emit }) {
|
|
39
39
|
const { bottom, placeholder } = toRefs(props);
|
|
40
40
|
const height = ref();
|
|
41
41
|
const mdValue = reactive({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as createComponent } from "./component-
|
|
1
|
+
import { c as createComponent } from "./component-0fbad28e.js";
|
|
2
2
|
import { r as renderIcon } from "./renderIcon-3d0fd47c.js";
|
|
3
3
|
import { inject, reactive, getCurrentInstance, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createVNode, normalizeProps, guardReactiveProps, withCtx, createElementVNode, renderSlot, createCommentVNode, createBlock, resolveDynamicComponent, toDisplayString } from "vue";
|
|
4
4
|
import { u as useRouter } from "./index-54d03fc1.js";
|
|
@@ -28,7 +28,7 @@ const _sfc_main = create({
|
|
|
28
28
|
},
|
|
29
29
|
to: [Object, String]
|
|
30
30
|
},
|
|
31
|
-
setup(props, {
|
|
31
|
+
setup(props, { slots }) {
|
|
32
32
|
const isHaveSlot = (slot) => {
|
|
33
33
|
return slots[slot];
|
|
34
34
|
};
|
|
@@ -18,17 +18,23 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { defineComponent, h, reactive, computed, watch, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, createTextVNode, toDisplayString, renderSlot, createBlock, createCommentVNode } from "vue";
|
|
21
|
-
import { c as createComponent } from "./component-
|
|
21
|
+
import { c as createComponent } from "./component-0fbad28e.js";
|
|
22
22
|
import { DownArrow } from "@nutui/icons-vue";
|
|
23
23
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
24
24
|
import "../locale/lang";
|
|
25
25
|
const RenderColumn = defineComponent({
|
|
26
|
+
props: {
|
|
27
|
+
slots: {
|
|
28
|
+
type: Array,
|
|
29
|
+
default: () => []
|
|
30
|
+
},
|
|
31
|
+
record: {
|
|
32
|
+
type: Object,
|
|
33
|
+
default: () => ({})
|
|
34
|
+
}
|
|
35
|
+
},
|
|
26
36
|
setup(props) {
|
|
27
37
|
return () => h(`view`, {}, props.slots[0] ? props.slots[0](props.record) : props.slots[1](props.record));
|
|
28
|
-
},
|
|
29
|
-
props: {
|
|
30
|
-
slots: Array,
|
|
31
|
-
record: Object
|
|
32
38
|
}
|
|
33
39
|
});
|
|
34
40
|
const { componentName, create, translate } = createComponent("table");
|
|
@@ -64,7 +70,7 @@ const _sfc_main = create({
|
|
|
64
70
|
}
|
|
65
71
|
},
|
|
66
72
|
emits: ["sorter"],
|
|
67
|
-
setup(props, { emit
|
|
73
|
+
setup(props, { emit }) {
|
|
68
74
|
const state = reactive({
|
|
69
75
|
curData: props.data
|
|
70
76
|
});
|
|
@@ -38,23 +38,24 @@ var __async = (__this, __arguments, generator) => {
|
|
|
38
38
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
39
39
|
});
|
|
40
40
|
};
|
|
41
|
-
import { c as createComponent, T as TypeOfFun } from "./component-
|
|
41
|
+
import { c as createComponent, T as TypeOfFun } from "./component-0fbad28e.js";
|
|
42
42
|
import { ref, onMounted, reactive, provide, computed, watch, onActivated, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, createElementVNode, normalizeStyle, renderSlot, Fragment, renderList, createCommentVNode, createVNode, toDisplayString } from "vue";
|
|
43
43
|
import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
|
|
44
44
|
import { u as useRect } from "./index-29892cda.js";
|
|
45
45
|
import { r as requestAniFrame } from "./raf-729dad54.js";
|
|
46
|
-
import
|
|
46
|
+
import Sticky from "./Sticky.js";
|
|
47
47
|
import { JoySmile } from "@nutui/icons-vue";
|
|
48
48
|
import { u as useTouch } from "./index-7a7385e4.js";
|
|
49
49
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
50
50
|
import "../locale/lang";
|
|
51
|
+
import "./index-97b44e6c.js";
|
|
51
52
|
const useTabContentTouch = (props, tabMethods, taro, useTaroRect) => {
|
|
52
53
|
const tabsContentRef = ref();
|
|
53
54
|
const tabsContentRefRect = ref({ width: 0, height: 0 });
|
|
54
55
|
const initTaroWidth = () => __async(void 0, null, function* () {
|
|
55
56
|
var _a, _b;
|
|
56
57
|
if (taro && taro.getEnv() !== taro.ENV_TYPE.WEB) {
|
|
57
|
-
let rect = yield useTaroRect(tabsContentRef
|
|
58
|
+
let rect = yield useTaroRect(tabsContentRef);
|
|
58
59
|
tabsContentRefRect.value.width = rect.width || 0;
|
|
59
60
|
tabsContentRefRect.value.height = rect.height || 0;
|
|
60
61
|
} else {
|
|
@@ -159,7 +160,7 @@ class Title {
|
|
|
159
160
|
}
|
|
160
161
|
const { create } = createComponent("tabs");
|
|
161
162
|
const _sfc_main = create({
|
|
162
|
-
components: { [
|
|
163
|
+
components: { [Sticky.name]: Sticky, JoySmile },
|
|
163
164
|
props: {
|
|
164
165
|
modelValue: {
|
|
165
166
|
type: [String, Number],
|
package/dist/packages/_es/Tag.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { toRefs, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot, createBlock, createCommentVNode } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-0fbad28e.js";
|
|
3
3
|
import { Close } from "@nutui/icons-vue";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
import "../locale/lang";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref, computed, onMounted, nextTick, watch, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, toDisplayString, createCommentVNode } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-0fbad28e.js";
|
|
3
3
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
4
4
|
import "../locale/lang";
|
|
5
5
|
const { componentName, create, translate } = createComponent("textarea");
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { inject, reactive, computed, toRefs, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, toDisplayString } from "vue";
|
|
21
|
-
import { c as createComponent } from "./component-
|
|
21
|
+
import { c as createComponent } from "./component-0fbad28e.js";
|
|
22
22
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
23
23
|
import "../locale/lang";
|
|
24
24
|
const { componentName, create } = createComponent("time-detail");
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { inject, reactive, computed, toRefs, openBlock, createElementBlock, normalizeClass, toDisplayString } from "vue";
|
|
21
|
-
import { c as createComponent } from "./component-
|
|
21
|
+
import { c as createComponent } from "./component-0fbad28e.js";
|
|
22
22
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
23
23
|
import "../locale/lang";
|
|
24
24
|
const { componentName, create } = createComponent("time-pannel");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, provide, resolveComponent, openBlock, createBlock, normalizeStyle, withCtx, createElementVNode, normalizeClass, createElementBlock, toDisplayString, renderSlot } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
3
|
-
import { P as Popup } from "./index-
|
|
2
|
+
import { c as createComponent } from "./component-0fbad28e.js";
|
|
3
|
+
import { P as Popup } from "./index-5ffbc437.js";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
import "../locale/lang";
|
|
6
6
|
import "./Overlay.js";
|
|
@@ -18,11 +18,11 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { reactive, onMounted, watch, computed, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, createElementBlock, resolveDynamicComponent, createCommentVNode, toDisplayString, vShow, createVNode, render } from "vue";
|
|
21
|
-
import { c as createComponent } from "./component-
|
|
21
|
+
import { c as createComponent } from "./component-0fbad28e.js";
|
|
22
22
|
import { r as renderIcon } from "./renderIcon-3d0fd47c.js";
|
|
23
23
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
24
24
|
import "../locale/lang";
|
|
25
|
-
import { C as CreateComponent } from "./mountComponent-
|
|
25
|
+
import { C as CreateComponent } from "./mountComponent-a895e3f1.js";
|
|
26
26
|
import { Success, Failure, Tips, Loading } from "@nutui/icons-vue";
|
|
27
27
|
const { create } = createComponent("toast");
|
|
28
28
|
const _sfc_main = create({
|
|
@@ -18,14 +18,14 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { reactive, ref, computed, onMounted, watch, toRefs, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, withDirectives, createElementVNode, vShow, Fragment, renderList, normalizeStyle, createCommentVNode, createVNode, withCtx, renderSlot, toDisplayString } from "vue";
|
|
21
|
-
import { c as createComponent } from "./component-
|
|
21
|
+
import { c as createComponent } from "./component-0fbad28e.js";
|
|
22
22
|
import { u as useRect } from "./index-29892cda.js";
|
|
23
23
|
import { Close } from "@nutui/icons-vue";
|
|
24
24
|
import Popover from "./Popover.js";
|
|
25
25
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
26
26
|
import "../locale/lang";
|
|
27
27
|
import "./renderIcon-3d0fd47c.js";
|
|
28
|
-
import "./index-
|
|
28
|
+
import "./index-5ffbc437.js";
|
|
29
29
|
import "./Overlay.js";
|
|
30
30
|
const { create } = createComponent("tour");
|
|
31
31
|
const _sfc_main = create({
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { reactive, computed, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, toDisplayString, createCommentVNode, renderSlot, createVNode } from "vue";
|
|
21
|
-
import { m as myFixed, c as createComponent } from "./component-
|
|
21
|
+
import { m as myFixed, c as createComponent } from "./component-0fbad28e.js";
|
|
22
22
|
import { TriangleUp, TriangleDown } from "@nutui/icons-vue";
|
|
23
23
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
24
24
|
import "../locale/lang";
|
|
@@ -5,8 +5,8 @@ var __publicField = (obj, key, value) => {
|
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
7
|
import { reactive, computed, h, resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createBlock, resolveDynamicComponent, createCommentVNode, Fragment, renderList, createElementVNode, toDisplayString, createVNode } from "vue";
|
|
8
|
-
import { c as createComponent } from "./component-
|
|
9
|
-
import { f as funInterceptor } from "./Interceptor-
|
|
8
|
+
import { c as createComponent } from "./component-0fbad28e.js";
|
|
9
|
+
import { f as funInterceptor } from "./Interceptor-c05a39f2.js";
|
|
10
10
|
import Progress from "./Progress.js";
|
|
11
11
|
import { Photograph, Failure, Loading, Del, Link } from "@nutui/icons-vue";
|
|
12
12
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
@@ -133,7 +133,7 @@ const _sfc_main = create({
|
|
|
133
133
|
},
|
|
134
134
|
beforeDelete: {
|
|
135
135
|
type: Function,
|
|
136
|
-
default: (
|
|
136
|
+
default: () => {
|
|
137
137
|
return true;
|
|
138
138
|
}
|
|
139
139
|
},
|
|
@@ -191,6 +191,7 @@ const _sfc_main = create({
|
|
|
191
191
|
try {
|
|
192
192
|
uploadOption.sourceFile = fileItem.formData.get(props.name);
|
|
193
193
|
} catch (error) {
|
|
194
|
+
console.warn("[NutUI] <Uploader> formData.get(name)", error);
|
|
194
195
|
}
|
|
195
196
|
uploadOption.onStart = (option) => {
|
|
196
197
|
fileItem.status = "ready";
|
|
@@ -228,7 +229,7 @@ const _sfc_main = create({
|
|
|
228
229
|
task.upload();
|
|
229
230
|
} else {
|
|
230
231
|
uploadQueue.push(
|
|
231
|
-
new Promise((resolve
|
|
232
|
+
new Promise((resolve) => {
|
|
232
233
|
resolve(task);
|
|
233
234
|
})
|
|
234
235
|
);
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { reactive, ref, computed, watch, nextTick, onMounted, toRefs, openBlock, createElementBlock, createElementVNode, createCommentVNode, withDirectives, vShow, normalizeClass, toDisplayString, normalizeStyle, withModifiers } from "vue";
|
|
21
|
-
import { c as createComponent } from "./component-
|
|
21
|
+
import { c as createComponent } from "./component-0fbad28e.js";
|
|
22
22
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
23
23
|
import "../locale/lang";
|
|
24
24
|
function throttle(fn, delay) {
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { reactive, watch, computed, toRefs, openBlock, createElementBlock, normalizeClass, normalizeStyle } from "vue";
|
|
21
|
-
import { c as createComponent } from "./component-
|
|
21
|
+
import { c as createComponent } from "./component-0fbad28e.js";
|
|
22
22
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
23
23
|
import "../locale/lang";
|
|
24
24
|
const { componentName, create } = createComponent("watermark");
|
|
@@ -94,7 +94,7 @@ const _sfc_main = create({
|
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
96
|
emits: ["click"],
|
|
97
|
-
setup(props
|
|
97
|
+
setup(props) {
|
|
98
98
|
const state = reactive({
|
|
99
99
|
base64Url: ""
|
|
100
100
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { shallowReactive, getCurrentInstance, provide, markRaw, isVNode, computed, h } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-0fbad28e.js";
|
|
3
3
|
import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
|
|
4
4
|
function flattenVNodes(children, childName) {
|
|
5
5
|
const result = [];
|
|
@@ -58,7 +58,7 @@ const floatData = (format, dataOp, mapOps) => {
|
|
|
58
58
|
let mergeMapOps = Object.assign({}, mapOps);
|
|
59
59
|
if (Object.keys(dataOp).length > 0) {
|
|
60
60
|
Object.keys(mergeFormat).forEach((keys) => {
|
|
61
|
-
if (
|
|
61
|
+
if (Object.prototype.hasOwnProperty.call(mergeMapOps, keys)) {
|
|
62
62
|
const tof = TypeOfFun(mergeMapOps[keys]);
|
|
63
63
|
if (tof == "function") {
|
|
64
64
|
mergeFormat[keys] = mergeMapOps[keys](dataOp);
|
|
@@ -127,8 +127,8 @@ export {
|
|
|
127
127
|
preventDefault as d,
|
|
128
128
|
clamp as e,
|
|
129
129
|
isPromise as f,
|
|
130
|
-
|
|
131
|
-
|
|
130
|
+
getPropByPath as g,
|
|
131
|
+
isObject as h,
|
|
132
132
|
isArray as i,
|
|
133
133
|
isString as j,
|
|
134
134
|
isFunction as k,
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { ref, computed, reactive, watch, toRefs, openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createCommentVNode, renderSlot, Fragment, renderList, normalizeStyle, createTextVNode } from "vue";
|
|
21
|
-
import { c as createComponent } from "./component-
|
|
21
|
+
import { c as createComponent } from "./component-0fbad28e.js";
|
|
22
22
|
import { r as requestAniFrame } from "./raf-729dad54.js";
|
|
23
23
|
import { u as useExpose } from "./index-79c5dc33.js";
|
|
24
24
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
@@ -128,6 +128,7 @@ const Utils = {
|
|
|
128
128
|
}
|
|
129
129
|
return Math.ceil((d + remainder) / 7);
|
|
130
130
|
},
|
|
131
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
131
132
|
getYearWeek: function(year, month, date, firstDayOfWeek = 0) {
|
|
132
133
|
const dateNow = new Date(Number(year), parseInt(month) - 1, Number(date));
|
|
133
134
|
const dateFirst = new Date(Number(year), 0, 1);
|
|
@@ -288,8 +289,9 @@ const _sfc_main = create({
|
|
|
288
289
|
return Utils.isEqual(state.currDate[1], currDate);
|
|
289
290
|
};
|
|
290
291
|
const isMultiple = (currDate) => {
|
|
291
|
-
|
|
292
|
-
|
|
292
|
+
var _a, _b;
|
|
293
|
+
if (((_a = state.currDate) == null ? void 0 : _a.length) > 0) {
|
|
294
|
+
return (_b = state.currDate) == null ? void 0 : _b.some((item) => {
|
|
293
295
|
return Utils.isEqual(item, currDate);
|
|
294
296
|
});
|
|
295
297
|
} else {
|
|
@@ -332,17 +334,18 @@ const _sfc_main = create({
|
|
|
332
334
|
}
|
|
333
335
|
};
|
|
334
336
|
const chooseDay = (day, month, isFirst = false) => {
|
|
337
|
+
var _a, _b;
|
|
335
338
|
if (getClass(day, month) != `${state.dayPrefix}--disabled`) {
|
|
336
339
|
const { type } = props;
|
|
337
|
-
let days = [...month.curData];
|
|
338
340
|
let [y, m] = month.curData;
|
|
341
|
+
let days = [...month.curData];
|
|
339
342
|
days[2] = Utils.getNumTwoBit(Number(day.day));
|
|
340
343
|
days[3] = `${days[0]}-${days[1]}-${days[2]}`;
|
|
341
344
|
days[4] = Utils.getWhatDay(+days[0], +days[1], +days[2]);
|
|
342
345
|
if (type == "multiple") {
|
|
343
|
-
if (state.currDate.length > 0) {
|
|
346
|
+
if (((_a = state.currDate) == null ? void 0 : _a.length) > 0) {
|
|
344
347
|
let hasIndex = void 0;
|
|
345
|
-
state.currDate.forEach((item, index) => {
|
|
348
|
+
(_b = state.currDate) == null ? void 0 : _b.forEach((item, index) => {
|
|
346
349
|
if (item == days[3]) {
|
|
347
350
|
hasIndex = index;
|
|
348
351
|
}
|
|
@@ -489,7 +492,7 @@ const _sfc_main = create({
|
|
|
489
492
|
...getPreDaysStatus(
|
|
490
493
|
preMonthDays,
|
|
491
494
|
"prev",
|
|
492
|
-
{ month: preMonth
|
|
495
|
+
{ month: String(preMonth), year: String(preYear) },
|
|
493
496
|
preCurrMonthDays
|
|
494
497
|
),
|
|
495
498
|
...getDaysStatus(currMonthDays, "curr", title)
|
|
@@ -529,7 +532,7 @@ const _sfc_main = create({
|
|
|
529
532
|
state.startData = splitDate(propStartDate);
|
|
530
533
|
state.endData = splitDate(propEndDate);
|
|
531
534
|
if (props.defaultValue || Array.isArray(props.defaultValue) && props.defaultValue.length > 0) {
|
|
532
|
-
state.currDate = props.type
|
|
535
|
+
state.currDate = props.type !== "one" ? [...props.defaultValue] : props.defaultValue;
|
|
533
536
|
}
|
|
534
537
|
const startDate = {
|
|
535
538
|
year: Number(state.startData[0]),
|
|
@@ -618,7 +621,7 @@ const _sfc_main = create({
|
|
|
618
621
|
state.currentIndex = current;
|
|
619
622
|
state.yearMonthTitle = state.monthsData[state.currentIndex].title;
|
|
620
623
|
if (state.defaultData.length > 0) {
|
|
621
|
-
if (
|
|
624
|
+
if (state.isRange) {
|
|
622
625
|
chooseDay({ day: state.defaultData[2], type: "curr" }, state.monthsData[state.currentIndex], true);
|
|
623
626
|
chooseDay({ day: state.defaultData[5], type: "curr" }, state.monthsData[lastCurrent], true);
|
|
624
627
|
} else if (props.type == "week") {
|
|
@@ -792,12 +795,12 @@ const _sfc_main = create({
|
|
|
792
795
|
chooseDay,
|
|
793
796
|
isCurrDay,
|
|
794
797
|
confirm,
|
|
798
|
+
months
|
|
799
|
+
}, toRefs(state)), toRefs(props)), {
|
|
800
|
+
translate,
|
|
795
801
|
monthsPanel,
|
|
796
|
-
months,
|
|
797
802
|
weeksPanel,
|
|
798
803
|
viewArea
|
|
799
|
-
}, toRefs(state)), toRefs(props)), {
|
|
800
|
-
translate
|
|
801
804
|
});
|
|
802
805
|
}
|
|
803
806
|
});
|
|
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { c as createComponent } from "./component-
|
|
20
|
+
import { c as createComponent } from "./component-0fbad28e.js";
|
|
21
21
|
import { reactive, computed, watch, watchEffect, toRefs, resolveComponent, openBlock, createBlock, Teleport, mergeProps, createCommentVNode, createVNode, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, renderSlot, createElementBlock, vShow } from "vue";
|
|
22
22
|
import Overlay from "./Overlay.js";
|
|
23
23
|
import { Close } from "@nutui/icons-vue";
|
|
@@ -178,7 +178,7 @@ const component = (componentName2, components) => {
|
|
|
178
178
|
};
|
|
179
179
|
watch(
|
|
180
180
|
() => props.visible,
|
|
181
|
-
(
|
|
181
|
+
() => {
|
|
182
182
|
props.visible ? open() : close();
|
|
183
183
|
}
|
|
184
184
|
);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { provide, readonly, computed, watch, h } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-0fbad28e.js";
|
|
3
3
|
const { componentName, create } = createComponent("radio-group");
|
|
4
4
|
const _sfc_main = create({
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { inject, computed, h } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-0fbad28e.js";
|
|
3
3
|
import { CheckNormal, CheckChecked } from "@nutui/icons-vue";
|
|
4
4
|
import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
|
|
5
5
|
const { componentName, create } = createComponent("radio");
|
|
@@ -27,7 +27,7 @@ const _sfc_main = create({
|
|
|
27
27
|
default: ""
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
|
-
setup(props, {
|
|
30
|
+
setup(props, { slots }) {
|
|
31
31
|
let parent = inject("parent", null);
|
|
32
32
|
const isCurValue = computed(() => {
|
|
33
33
|
return parent.label.value === props.label;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createApp } from "vue";
|
|
2
|
-
import { j as isString, k as isFunction } from "./component-
|
|
2
|
+
import { j as isString, k as isFunction } from "./component-0fbad28e.js";
|
|
3
3
|
const CreateComponent = (options, component) => {
|
|
4
4
|
let elWrap = document.body;
|
|
5
5
|
const teleport = options.teleport || "body";
|
|
@@ -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.0-beta.
|
|
5
|
+
"version": "4.1.0-beta.6",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"tags": [
|
|
@@ -5325,7 +5325,7 @@
|
|
|
5325
5325
|
{
|
|
5326
5326
|
"name": "top",
|
|
5327
5327
|
"default": "`0`",
|
|
5328
|
-
"description": "
|
|
5328
|
+
"description": "吸顶距离,`position` 为 `top` 时生效",
|
|
5329
5329
|
"value": {
|
|
5330
5330
|
"type": "number",
|
|
5331
5331
|
"kind": "expression"
|
|
@@ -5334,7 +5334,7 @@
|
|
|
5334
5334
|
{
|
|
5335
5335
|
"name": "bottom",
|
|
5336
5336
|
"default": "`0`",
|
|
5337
|
-
"description": "
|
|
5337
|
+
"description": "吸底距离,`position` 为 `bottom` 时生效",
|
|
5338
5338
|
"value": {
|
|
5339
5339
|
"type": "number",
|
|
5340
5340
|
"kind": "expression"
|
|
@@ -5351,7 +5351,7 @@
|
|
|
5351
5351
|
},
|
|
5352
5352
|
{
|
|
5353
5353
|
"name": "z-index",
|
|
5354
|
-
"default": "`
|
|
5354
|
+
"default": "`99`",
|
|
5355
5355
|
"description": "吸附时的层级",
|
|
5356
5356
|
"value": {
|
|
5357
5357
|
"type": "number",
|
|
@@ -5518,12 +5518,6 @@
|
|
|
5518
5518
|
}
|
|
5519
5519
|
]
|
|
5520
5520
|
},
|
|
5521
|
-
{
|
|
5522
|
-
"name": "nut-swiper-item",
|
|
5523
|
-
"slots": [],
|
|
5524
|
-
"events": [],
|
|
5525
|
-
"attributes": []
|
|
5526
|
-
},
|
|
5527
5521
|
{
|
|
5528
5522
|
"name": "nut-switch",
|
|
5529
5523
|
"slots": [],
|