@nutui/nutui 4.0.2 → 4.0.3-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 +1 -1
- package/dist/nutui.umd.js +2 -2
- package/dist/packages/_es/ActionSheet.js +2 -2
- package/dist/packages/_es/Address.js +5 -2
- package/dist/packages/_es/AddressList.js +1 -1
- package/dist/packages/_es/Animate.js +1 -1
- package/dist/packages/_es/Audio.js +7 -1
- package/dist/packages/_es/AudioOperate.js +2 -1
- package/dist/packages/_es/Avatar.js +3 -1
- package/dist/packages/_es/AvatarGroup.js +2 -1
- 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 +1 -1
- package/dist/packages/_es/Calendar.js +3 -3
- package/dist/packages/_es/CalendarItem.js +2 -2
- package/dist/packages/_es/Card.js +1 -1
- package/dist/packages/_es/Cascader.js +6 -3
- package/dist/packages/_es/Category.js +3 -1
- package/dist/packages/_es/CategoryPane.js +4 -1
- package/dist/packages/_es/Cell.js +2 -1
- package/dist/packages/_es/CellGroup.js +1 -1
- package/dist/packages/_es/Checkbox.js +2 -1
- 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 +2 -1
- package/dist/packages/_es/Comment.js +6 -1
- package/dist/packages/_es/ConfigProvider.js +2 -34
- package/dist/packages/_es/Countdown.js +9 -1
- package/dist/packages/_es/Countup.js +11 -1
- package/dist/packages/_es/DatePicker.js +3 -1
- package/dist/packages/_es/Dialog.js +7 -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 +3 -1
- package/dist/packages/_es/Empty.js +4 -1
- package/dist/packages/_es/FixedNav.js +1 -1
- package/dist/packages/_es/Form.js +1 -1
- package/dist/packages/_es/FormItem.js +1 -1
- package/dist/packages/_es/Grid.js +2 -2
- package/dist/packages/_es/GridItem.js +3 -2
- package/dist/packages/_es/Image.js +1 -1
- package/dist/packages/_es/ImagePreview.js +5 -4
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +1 -1
- package/dist/packages/_es/Input.js +13 -7
- package/dist/packages/_es/InputNumber.js +1 -1
- package/dist/packages/_es/Invoice.js +6 -4
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +1 -1
- package/dist/packages/_es/Menu.js +1 -1
- package/dist/packages/_es/MenuItem.js +2 -2
- package/dist/packages/_es/Navbar.js +7 -1
- package/dist/packages/_es/Noticebar.js +5 -3
- package/dist/packages/_es/Notify.js +5 -2
- package/dist/packages/_es/NumberKeyboard.js +2 -2
- package/dist/packages/_es/Overlay.js +2 -2
- package/dist/packages/_es/Pagination.js +1 -1
- package/dist/packages/_es/Picker.js +3 -1
- package/dist/packages/_es/Popover.js +2 -2
- package/dist/packages/_es/Popup.js +2 -2
- package/dist/packages/_es/Price.js +7 -2
- package/dist/packages/_es/Progress.js +1 -1
- package/dist/packages/_es/PullRefresh.js +5 -1
- 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 +1 -1
- package/dist/packages/_es/Row.js +1 -1
- package/dist/packages/_es/Searchbar.js +2 -1
- package/dist/packages/_es/ShortPassword.js +3 -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 +11 -1
- package/dist/packages/_es/Sku.js +16 -2
- package/dist/packages/_es/Step.js +1 -1
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/Sticky.js +2 -2
- package/dist/packages/_es/SubSideNavbar.js +1 -1
- package/dist/packages/_es/Swipe.js +1 -1
- package/dist/packages/_es/Swiper.js +2 -1
- package/dist/packages/_es/SwiperItem.js +1 -1
- package/dist/packages/_es/Switch.js +1 -1
- package/dist/packages/_es/TabPane.js +13 -8
- package/dist/packages/_es/Tabbar.js +1 -1
- package/dist/packages/_es/TabbarItem.js +6 -1
- package/dist/packages/_es/Table.js +1 -1
- package/dist/packages/_es/Tabs.js +171 -26
- package/dist/packages/_es/Tag.js +1 -1
- package/dist/packages/_es/Textarea.js +2 -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 +10 -2
- package/dist/packages/_es/Tour.js +3 -2
- package/dist/packages/_es/TrendArrow.js +1 -1
- package/dist/packages/_es/Uploader.js +4 -2
- package/dist/packages/_es/Video.js +19 -1
- package/dist/packages/_es/Watermark.js +1 -1
- package/dist/packages/_es/{common-05c67d9a.js → common-b9a5e726.js} +9 -1
- package/dist/packages/_es/{component-bb5ff48e.js → component-81a4c1d0.js} +6 -6
- package/dist/packages/_es/{index-a564e25f.js → index-c55ad69e.js} +2 -2
- package/dist/packages/_es/{index-c4bbec14.js → index-cb5fe1dc.js} +38 -1
- package/dist/packages/_es/{index.vue_vue_type_script_lang-ee936659.js → index.vue_vue_type_script_lang-22dfc112.js} +2 -1
- package/dist/packages/_es/{index.vue_vue_type_script_lang-8b9f3de5.js → index.vue_vue_type_script_lang-442e4704.js} +2 -1
- package/dist/packages/_es/{index.vue_vue_type_script_lang-8f90bbd8.js → index.vue_vue_type_script_lang-cc5c4086.js} +1 -1
- package/dist/packages/_es/{interceptor-648bf3d0.js → interceptor-956b24fc.js} +1 -1
- package/dist/packages/_es/{mountComponent-3865592f.js → mountComponent-1ece4110.js} +1 -1
- package/dist/packages/input/index.scss +2 -2
- package/dist/packages/menuitem/index.scss +1 -1
- package/dist/packages/navbar/index.scss +0 -1
- package/dist/packages/price/index.scss +5 -10
- package/dist/smartips/web-types.json +20 -20
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +53 -53
- package/dist/styles/themes/jdb.scss +53 -53
- package/dist/styles/themes/jddkh.scss +53 -53
- package/dist/styles/themes/jdt.scss +53 -53
- package/dist/types/__VUE/configprovider/index.vue.d.ts +4 -4
- package/dist/types/__VUE/input/index.vue.d.ts +3 -1
- package/dist/types/__VUE/noticebar/index.vue.d.ts +4 -2
- package/dist/types/__VUE/price/index.vue.d.ts +9 -0
- package/dist/types/__VUE/tabpane/index.vue.d.ts +1 -4
- package/dist/types/__VUE/tabs/hooks.d.ts +12 -0
- package/dist/types/__VUE/tabs/index.vue.d.ts +20 -5
- package/dist/types/index.d.ts +1 -1
- package/dist/types/utils/useTaroRect/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as createComponent } from "./component-
|
|
1
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
2
2
|
import { useSlots, computed, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, createElementBlock, toDisplayString, createCommentVNode, renderSlot, Fragment, renderList, normalizeStyle } from "vue";
|
|
3
|
-
import { P as Popup, p as popupProps } from "./index-
|
|
3
|
+
import { P as Popup, p as popupProps } from "./index-c55ad69e.js";
|
|
4
4
|
import { Loading } from "@nutui/icons-vue";
|
|
5
5
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
6
6
|
import "../locale/lang";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref, computed, reactive, watch, toRefs, nextTick, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, renderSlot, withDirectives, createVNode, vShow, toDisplayString, createElementBlock, Fragment, renderList, normalizeClass, createCommentVNode, normalizeStyle, createTextVNode } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
3
|
-
import { P as Popup, p as popupProps } from "./index-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
+
import { P as Popup, p as popupProps } from "./index-c55ad69e.js";
|
|
4
4
|
import Elevator from "./Elevator.js";
|
|
5
5
|
import { Location, Location2, Check, Close, Left } from "@nutui/icons-vue";
|
|
6
6
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
@@ -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
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resolveComponent, openBlock, createElementBlock, createElementVNode, renderSlot, toDisplayString, createCommentVNode, createVNode, createTextVNode, ref, h, createBlock, resolveDynamicComponent, withCtx, reactive, computed, watch, onMounted, normalizeClass, Fragment, renderList, createSlots } from "vue";
|
|
2
|
-
import { c as createComponent, n as floatData } from "./component-
|
|
2
|
+
import { c as createComponent, n as floatData } from "./component-81a4c1d0.js";
|
|
3
3
|
import { Del, Edit } from "@nutui/icons-vue";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
import Button from "./Button.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { toRefs, reactive, computed, openBlock, createElementBlock, createElementVNode, normalizeClass, renderSlot } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
3
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
4
4
|
import "../locale/lang";
|
|
5
5
|
const { componentName, create } = createComponent("animate");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref, reactive, onMounted, watch, provide, toRefs, resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, createVNode, withCtx, createCommentVNode, normalizeClass, createBlock, renderSlot } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
3
|
import { Service } from "@nutui/icons-vue";
|
|
4
4
|
import Range from "./Range.js";
|
|
5
5
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
@@ -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"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { inject, reactive, ref, useSlots, toRefs, resolveComponent, openBlock, createElementBlock, createBlock, withCtx, createTextVNode, toDisplayString, createCommentVNode, renderSlot } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
3
|
import Button from "./Button.js";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
import "../locale/lang";
|
|
@@ -7,6 +7,7 @@ import "@nutui/icons-vue";
|
|
|
7
7
|
const { componentName, create, translate } = createComponent("audio-operate");
|
|
8
8
|
const _sfc_main = create({
|
|
9
9
|
props: {
|
|
10
|
+
// 展示的形式 back 倒退 play 开始 or 暂停 forward 快进 mute 静音
|
|
10
11
|
type: {
|
|
11
12
|
type: String,
|
|
12
13
|
default: () => "play"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { toRefs, inject, ref, reactive, onMounted, computed, openBlock, createElementBlock, normalizeStyle, normalizeClass, renderSlot, createCommentVNode, Fragment, createTextVNode, toDisplayString } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
3
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
4
4
|
import "../locale/lang";
|
|
5
5
|
const { componentName, create } = createComponent("avatar");
|
|
@@ -33,7 +33,9 @@ const _sfc_main = create({
|
|
|
33
33
|
const state = reactive({
|
|
34
34
|
index: 1,
|
|
35
35
|
showMax: false,
|
|
36
|
+
// 是否显示的最大头像个数
|
|
36
37
|
maxIndex: 0
|
|
38
|
+
// avatarGroup里的avatar的个数
|
|
37
39
|
});
|
|
38
40
|
onMounted(() => {
|
|
39
41
|
var _a, _b;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { toRefs, ref, computed, onMounted, provide, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
3
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
4
4
|
import "../locale/lang";
|
|
5
5
|
const { componentName, create } = createComponent("avatar-group");
|
|
@@ -57,6 +57,7 @@ const _sfc_main = create({
|
|
|
57
57
|
});
|
|
58
58
|
return {
|
|
59
59
|
classes,
|
|
60
|
+
// styles,
|
|
60
61
|
avatarGroupRef
|
|
61
62
|
};
|
|
62
63
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { reactive, computed, onMounted, onUnmounted, onActivated, onDeactivated, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, withModifiers, renderSlot, createVNode } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
3
|
import { r as requestAniFrame, c as cancelRaf } from "./raf-729dad54.js";
|
|
4
4
|
import { Top } from "@nutui/icons-vue";
|
|
5
5
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { reactive, computed, openBlock, createElementBlock, withDirectives, createElementVNode, normalizeStyle, renderSlot, vShow, toDisplayString, normalizeClass } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
3
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
4
4
|
import "../locale/lang";
|
|
5
5
|
const { create } = createComponent("badge");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useSlots, computed, ref, onMounted, onUnmounted, watch, nextTick, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createCommentVNode } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
3
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
4
4
|
import "../locale/lang";
|
|
5
5
|
const { componentName, create } = createComponent("barrage");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { toRefs, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, createCommentVNode, renderSlot } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
3
|
import { Loading } from "@nutui/icons-vue";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
import "../locale/lang";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed, ref, resolveComponent, openBlock, createBlock, withCtx, createSlots, renderSlot, createCommentVNode } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
3
|
-
import { C as CalendarItem, U as Utils } from "./index-
|
|
4
|
-
import { P as Popup } from "./index-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
+
import { C as CalendarItem, U as Utils } from "./index-cb5fe1dc.js";
|
|
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";
|
|
7
7
|
import "../locale/lang";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C } from "./index-
|
|
1
|
+
import { C } from "./index-cb5fe1dc.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
import "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
4
|
-
import "./component-
|
|
4
|
+
import "./component-81a4c1d0.js";
|
|
5
5
|
import "../locale/lang";
|
|
6
6
|
import "./raf-729dad54.js";
|
|
7
7
|
import "./index-79c5dc33.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as createComponent } from "./component-
|
|
1
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
2
2
|
import { resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, renderSlot, createBlock, createCommentVNode, Fragment, createVNode, withCtx, createTextVNode } from "vue";
|
|
3
3
|
import Price from "./Price.js";
|
|
4
4
|
import Tag from "./Tag.js";
|
|
@@ -5,8 +5,8 @@ var __publicField = (obj, key, value) => {
|
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
7
|
import { computed, ref, watch, resolveComponent, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList, createElementVNode, normalizeClass, toDisplayString, createCommentVNode, createVNode } from "vue";
|
|
8
|
-
import { P as Popup, p as popupProps } from "./index-
|
|
9
|
-
import { c as createComponent } from "./component-
|
|
8
|
+
import { P as Popup, p as popupProps } from "./index-c55ad69e.js";
|
|
9
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
10
10
|
import { Loading, Checklist } from "@nutui/icons-vue";
|
|
11
11
|
import Tabs from "./Tabs.js";
|
|
12
12
|
import TabPane from "./TabPane.js";
|
|
@@ -16,7 +16,8 @@ import "../locale/lang";
|
|
|
16
16
|
import "./pxCheck-c6b9f6b7.js";
|
|
17
17
|
import "./index-29892cda.js";
|
|
18
18
|
import "./raf-729dad54.js";
|
|
19
|
-
import "./index.vue_vue_type_script_lang-
|
|
19
|
+
import "./index.vue_vue_type_script_lang-cc5c4086.js";
|
|
20
|
+
import "./index-7a7385e4.js";
|
|
20
21
|
const formatTree = (tree, parent, config) => tree.map((node) => {
|
|
21
22
|
const { value: valueKey = "value", text: textKey = "text", children: childrenKey = "children" } = config;
|
|
22
23
|
const { [valueKey]: value, [textKey]: text, [childrenKey]: children, ...others } = node;
|
|
@@ -99,6 +100,7 @@ class Tree {
|
|
|
99
100
|
parent.children = formatTree(nodes, parent, this.config);
|
|
100
101
|
}
|
|
101
102
|
}
|
|
103
|
+
// for test
|
|
102
104
|
getNodeByValue(value) {
|
|
103
105
|
let foundNode;
|
|
104
106
|
eachTree(this.nodes, (node) => {
|
|
@@ -290,6 +292,7 @@ const _sfc_main$1 = create$1({
|
|
|
290
292
|
emit("update:modelValue", emitValue, pathNodes);
|
|
291
293
|
};
|
|
292
294
|
const methods = {
|
|
295
|
+
// 选中一个节点,静默模式不触发事件
|
|
293
296
|
async handleNode(node, silent) {
|
|
294
297
|
const { disabled, loading } = node;
|
|
295
298
|
if (!silent && disabled || !panes.value[tabsCursor.value]) {
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { ref, openBlock, createElementBlock, createElementVNode, Fragment, renderList, normalizeClass, toDisplayString, createCommentVNode, renderSlot } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
3
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
4
4
|
import "../locale/lang";
|
|
5
5
|
const { componentName, create } = createComponent("category");
|
|
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
|
category: {
|
|
13
15
|
type: Array,
|
|
14
16
|
default: []
|
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
import { c as createComponent } from "./component-
|
|
1
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
2
2
|
import { openBlock, createElementBlock, Fragment, renderList, createElementVNode, toDisplayString, createCommentVNode } from "vue";
|
|
3
3
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
4
4
|
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: () => []
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot, createCommentVNode, Fragment, createElementVNode, toDisplayString, createTextVNode, createBlock } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
3
|
import { u as useRouter } from "./index-54d03fc1.js";
|
|
4
4
|
import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
|
|
5
5
|
import { Right } from "@nutui/icons-vue";
|
|
@@ -20,6 +20,7 @@ const _sfc_main = create({
|
|
|
20
20
|
url: { type: String, default: "" },
|
|
21
21
|
center: { type: Boolean, default: false },
|
|
22
22
|
size: { type: String, default: "" }
|
|
23
|
+
// large
|
|
23
24
|
},
|
|
24
25
|
emits: ["click"],
|
|
25
26
|
setup(props, { emit }) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed, openBlock, createElementBlock, normalizeClass, renderSlot, toDisplayString, createCommentVNode, createElementVNode } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
3
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
4
4
|
import "../locale/lang";
|
|
5
5
|
const { componentName, create } = createComponent("cell-group");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as createComponent } from "./component-
|
|
1
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
2
2
|
import { inject, reactive, computed, watch, onMounted, getCurrentInstance, h } from "vue";
|
|
3
3
|
import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
|
|
4
4
|
import { CheckNormal, Checked, CheckDisabled } from "@nutui/icons-vue";
|
|
@@ -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"],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { reactive, provide, computed, watch, h } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
3
|
import { u as useExpose } from "./index-79c5dc33.js";
|
|
4
4
|
import "../locale/lang";
|
|
5
5
|
const { create, componentName } = createComponent("checkbox-group");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useSlots, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, Fragment, renderList, renderSlot, toDisplayString, createCommentVNode } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { g as isObject, c as createComponent } from "./component-81a4c1d0.js";
|
|
3
3
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
4
4
|
import "../locale/lang";
|
|
5
5
|
const { componentName, create } = createComponent("circle-progress");
|
package/dist/packages/_es/Col.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { inject, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
3
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
4
4
|
import "../locale/lang";
|
|
5
5
|
const { componentName, create } = createComponent("col");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref, computed, watch, onMounted, getCurrentInstance, provide, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
3
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
4
4
|
import "../locale/lang";
|
|
5
5
|
const { create, componentName } = createComponent("collapse");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { inject, reactive, computed, getCurrentInstance, ref, watch, onMounted, toRefs, nextTick, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, toDisplayString, createCommentVNode, normalizeStyle, createBlock, resolveDynamicComponent } from "vue";
|
|
2
2
|
import { DownArrow } from "@nutui/icons-vue";
|
|
3
|
-
import { c as createComponent } from "./component-
|
|
3
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
4
4
|
import { r as renderIcon } from "./renderIcon-3d0fd47c.js";
|
|
5
5
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
6
6
|
import "../locale/lang";
|
|
@@ -44,6 +44,7 @@ const _sfc_main = create({
|
|
|
44
44
|
default: 180
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
|
+
// components: { DownArrow },
|
|
47
48
|
setup(props, ctx) {
|
|
48
49
|
const collapse = inject("collapseParent");
|
|
49
50
|
const parent = reactive(collapse);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resolveComponent, openBlock, createElementBlock, createElementVNode, createCommentVNode, normalizeClass, toDisplayString, renderSlot, createVNode, ref, watch, onMounted, Fragment, renderList, createBlock, computed, withCtx, normalizeStyle, createTextVNode } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
3
|
import { Right, Fabulous, Comment, MoreX } from "@nutui/icons-vue";
|
|
4
4
|
import Rate from "./Rate.js";
|
|
5
5
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
@@ -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],
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { c as createComponent
|
|
1
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
2
2
|
import { h } from "vue";
|
|
3
3
|
import "../locale/lang";
|
|
4
4
|
const { componentName, create } = createComponent("config-provider");
|
|
5
5
|
const _sfc_main = create({
|
|
6
6
|
props: {
|
|
7
7
|
theme: { type: String, default: "" },
|
|
8
|
-
themeVars: { type: Object, default:
|
|
9
|
-
} },
|
|
8
|
+
themeVars: { type: Object, default: {} },
|
|
10
9
|
tag: { type: String, default: "div" }
|
|
11
10
|
},
|
|
12
11
|
setup(props, { slots }) {
|
|
@@ -57,40 +56,9 @@ const _sfc_main = create({
|
|
|
57
56
|
});
|
|
58
57
|
return cssVars;
|
|
59
58
|
};
|
|
60
|
-
const overDefaultSlotProp = (vnodes) => {
|
|
61
|
-
if (!vnodes) {
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
vnodes.forEach((vnode) => {
|
|
65
|
-
var _a, _b;
|
|
66
|
-
let type = vnode.type;
|
|
67
|
-
type = type.name || type;
|
|
68
|
-
if (!vnode.props) {
|
|
69
|
-
vnode.props = {};
|
|
70
|
-
}
|
|
71
|
-
if (type == "nut-icon") {
|
|
72
|
-
vnode.props["fontClassName"] = vnode.props["font-class-name"] || props.fontClassName;
|
|
73
|
-
vnode.props["classPrefix"] = vnode.props["class-prefix"] || props.classPrefix;
|
|
74
|
-
}
|
|
75
|
-
if (Array.isArray(vnode.children) && ((_a = vnode.children) == null ? void 0 : _a.length)) {
|
|
76
|
-
overDefaultSlotProp(vnode.children);
|
|
77
|
-
} else if (isObject(vnode.children) && Object.keys(vnode.children)) {
|
|
78
|
-
let children = vnode.children;
|
|
79
|
-
for (const key in children) {
|
|
80
|
-
if (key === "_") {
|
|
81
|
-
break;
|
|
82
|
-
}
|
|
83
|
-
const childrenVNode = (_b = children[key]) == null ? void 0 : _b.call(children);
|
|
84
|
-
overDefaultSlotProp(childrenVNode);
|
|
85
|
-
children[key] = () => childrenVNode;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
};
|
|
90
59
|
return () => {
|
|
91
60
|
var _a;
|
|
92
61
|
const defaultSlots = (_a = slots.default) == null ? void 0 : _a.call(slots);
|
|
93
|
-
overDefaultSlotProp(defaultSlots);
|
|
94
62
|
return h(
|
|
95
63
|
props.tag,
|
|
96
64
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { reactive, computed, onBeforeMount, watch, toRefs, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
|
|
2
|
-
import { p as padZero, c as createComponent } from "./component-
|
|
2
|
+
import { p as padZero, c as createComponent } from "./component-81a4c1d0.js";
|
|
3
3
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
4
4
|
import "../locale/lang";
|
|
5
5
|
const getTimeStamp = (timeStr) => {
|
|
@@ -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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getCurrentInstance, ref, reactive, watch, nextTick, onMounted, onUnmounted, toRefs, openBlock, createElementBlock, Fragment, normalizeStyle, renderList, createCommentVNode, toDisplayString, createTextVNode } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
3
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
4
4
|
import "../locale/lang";
|
|
5
5
|
function useExtend(apis) {
|
|
@@ -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
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { reactive, computed, onBeforeMount, watch, toRefs, resolveComponent, openBlock, createBlock, withCtx, renderSlot } from "vue";
|
|
2
2
|
import Picker from "./Picker.js";
|
|
3
|
-
import { c as createComponent,
|
|
3
|
+
import { c as createComponent, a as isDate$1, p as padZero } from "./component-81a4c1d0.js";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
import "./pxCheck-c6b9f6b7.js";
|
|
6
6
|
import "./index-7a7385e4.js";
|
|
@@ -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
|
|
@@ -5,14 +5,14 @@ var __publicField = (obj, key, value) => {
|
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
7
|
import { ref, onMounted, watch, computed, resolveComponent, openBlock, createBlock, normalizeStyle, withCtx, createElementVNode, normalizeClass, createElementBlock, renderSlot, Fragment, createTextVNode, toDisplayString, createCommentVNode, resolveDynamicComponent, h } from "vue";
|
|
8
|
-
import { c as createComponent } from "./component-
|
|
9
|
-
import { f as funInterceptor } from "./interceptor-
|
|
10
|
-
import { P as Popup, p as popupProps } from "./index-
|
|
8
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
9
|
+
import { f as funInterceptor } from "./interceptor-956b24fc.js";
|
|
10
|
+
import { P as Popup, p as popupProps } from "./index-c55ad69e.js";
|
|
11
11
|
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-1ece4110.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,
|
|
@@ -237,6 +238,8 @@ class DialogOptions {
|
|
|
237
238
|
__publicField(this, "teleport", "body");
|
|
238
239
|
__publicField(this, "id", 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");
|