@nutui/nutui 4.0.0 → 4.0.1-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 +158 -2
- package/dist/packages/_es/ActionSheet.js +2 -2
- package/dist/packages/_es/Address.js +7 -10
- package/dist/packages/_es/AddressList.js +1 -1
- package/dist/packages/_es/Animate.js +1 -1
- package/dist/packages/_es/Audio.js +1 -7
- package/dist/packages/_es/AudioOperate.js +1 -2
- package/dist/packages/_es/Avatar.js +1 -3
- package/dist/packages/_es/AvatarGroup.js +1 -2
- 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 +4 -5
- package/dist/packages/_es/Category.js +1 -3
- package/dist/packages/_es/CategoryPane.js +1 -4
- package/dist/packages/_es/Cell.js +1 -2
- package/dist/packages/_es/CellGroup.js +1 -1
- package/dist/packages/_es/Checkbox.js +1 -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 +1 -2
- package/dist/packages/_es/Comment.js +1 -6
- package/dist/packages/_es/ConfigProvider.js +34 -2
- package/dist/packages/_es/Countdown.js +1 -9
- package/dist/packages/_es/Countup.js +1 -11
- package/dist/packages/_es/DatePicker.js +1 -3
- package/dist/packages/_es/Dialog.js +4 -7
- 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 -3
- package/dist/packages/_es/Empty.js +1 -4
- 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 +2 -3
- package/dist/packages/_es/Image.js +1 -1
- package/dist/packages/_es/ImagePreview.js +8 -7
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +1 -1
- package/dist/packages/_es/Input.js +1 -3
- package/dist/packages/_es/InputNumber.js +1 -1
- package/dist/packages/_es/Invoice.js +4 -6
- 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 +1 -7
- package/dist/packages/_es/Noticebar.js +1 -2
- package/dist/packages/_es/Notify.js +2 -5
- package/dist/packages/_es/NumberKeyboard.js +2 -2
- package/dist/packages/_es/Overlay.js +1 -1
- package/dist/packages/_es/Pagination.js +1 -1
- package/dist/packages/_es/Picker.js +1 -3
- package/dist/packages/_es/Popover.js +2 -2
- 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 +1 -5
- 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 +1 -2
- package/dist/packages/_es/ShortPassword.js +2 -3
- 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 -11
- package/dist/packages/_es/Sku.js +2 -16
- 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 +1 -2
- package/dist/packages/_es/SwiperItem.js +1 -1
- package/dist/packages/_es/Switch.js +1 -1
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +1 -1
- package/dist/packages/_es/TabbarItem.js +1 -6
- package/dist/packages/_es/Table.js +1 -1
- package/dist/packages/_es/Tabs.js +43 -8
- package/dist/packages/_es/Tag.js +1 -1
- package/dist/packages/_es/Textarea.js +1 -2
- 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 -10
- package/dist/packages/_es/Tour.js +2 -3
- package/dist/packages/_es/TrendArrow.js +1 -1
- package/dist/packages/_es/Uploader.js +2 -4
- package/dist/packages/_es/Video.js +1 -19
- package/dist/packages/_es/Watermark.js +1 -1
- package/dist/packages/_es/{common-b9a5e726.js → common-05c67d9a.js} +1 -9
- package/dist/packages/_es/{component-81a4c1d0.js → component-bb5ff48e.js} +6 -6
- package/dist/packages/_es/{index-2ae3ae87.js → index-4f2972bc.js} +1 -38
- package/dist/packages/_es/{index-991c279f.js → index-a564e25f.js} +1 -1
- package/dist/packages/_es/{index.vue_vue_type_script_lang-442e4704.js → index.vue_vue_type_script_lang-8b9f3de5.js} +1 -2
- package/dist/packages/_es/{index.vue_vue_type_script_lang-cc5c4086.js → index.vue_vue_type_script_lang-8f90bbd8.js} +1 -1
- package/dist/packages/_es/{index.vue_vue_type_script_lang-22dfc112.js → index.vue_vue_type_script_lang-ee936659.js} +1 -2
- package/dist/packages/_es/{interceptor-956b24fc.js → interceptor-648bf3d0.js} +1 -1
- package/dist/packages/_es/{mountComponent-1ece4110.js → mountComponent-3865592f.js} +1 -1
- package/dist/packages/address/index.scss +1 -1
- package/dist/packages/menuitem/index.scss +2 -2
- package/dist/packages/tabs/index.scss +13 -0
- package/dist/packages/textarea/index.scss +2 -0
- package/dist/smartips/web-types.json +29 -2
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +44 -44
- package/dist/styles/themes/jdb.scss +44 -44
- package/dist/styles/themes/jddkh.scss +44 -44
- package/dist/styles/themes/jdt.scss +44 -44
- package/dist/styles/variables-jdt.scss +1 -1
- package/dist/types/__VUE/configprovider/index.vue.d.ts +2 -2
- package/dist/types/__VUE/swiper/index.vue.d.ts +1 -1
- package/dist/types/__VUE/tabs/index.vue.d.ts +2 -0
- package/dist/types/__VUE/tabs/types.d.ts +12 -0
- package/dist/types/index.d.ts +1 -1
- package/package.json +4 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as createComponent } from "./component-
|
|
1
|
+
import { c as createComponent } from "./component-bb5ff48e.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-a564e25f.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-bb5ff48e.js";
|
|
3
|
+
import { P as Popup, p as popupProps } from "./index-a564e25f.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,17 +41,14 @@ const _sfc_main = create({
|
|
|
41
41
|
type: Array,
|
|
42
42
|
default: () => []
|
|
43
43
|
},
|
|
44
|
-
// 市
|
|
45
44
|
country: {
|
|
46
45
|
type: Array,
|
|
47
46
|
default: () => []
|
|
48
47
|
},
|
|
49
|
-
// 县
|
|
50
48
|
town: {
|
|
51
49
|
type: Array,
|
|
52
50
|
default: () => []
|
|
53
51
|
},
|
|
54
|
-
// 镇
|
|
55
52
|
isShowCustomAddress: {
|
|
56
53
|
type: Boolean,
|
|
57
54
|
default: true
|
|
@@ -376,7 +373,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
376
373
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.switchModule && _ctx.switchModule(...args))
|
|
377
374
|
}, [
|
|
378
375
|
renderSlot(_ctx.$slots, "back-icon", {}, () => [
|
|
379
|
-
withDirectives(createVNode(_component_Left,
|
|
376
|
+
withDirectives(createVNode(_component_Left, { size: "14px" }, null, 512), [
|
|
380
377
|
[vShow, _ctx.type == "exist" && _ctx.privateType == "custom"]
|
|
381
378
|
])
|
|
382
379
|
])
|
|
@@ -389,7 +386,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
389
386
|
renderSlot(_ctx.$slots, "close-icon", {}, () => [
|
|
390
387
|
createVNode(_component_Close, {
|
|
391
388
|
color: "#cccccc",
|
|
392
|
-
size: "
|
|
389
|
+
size: "14px"
|
|
393
390
|
})
|
|
394
391
|
])
|
|
395
392
|
])
|
|
@@ -427,7 +424,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
427
424
|
((_b = _ctx.selectedRegion[_ctx.tabIndex]) == null ? void 0 : _b.id) == item.id ? renderSlot(_ctx.$slots, "icon", { key: 0 }, () => [
|
|
428
425
|
createVNode(_component_Check, {
|
|
429
426
|
class: "nut-address-select-icon",
|
|
430
|
-
|
|
427
|
+
size: "13px"
|
|
431
428
|
})
|
|
432
429
|
]) : createCommentVNode("", true),
|
|
433
430
|
createTextVNode(toDisplayString(item.name), 1)
|
|
@@ -454,13 +451,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
454
451
|
!item.selectedAddress ? renderSlot(_ctx.$slots, "unselected-icon", { key: 0 }, () => [
|
|
455
452
|
createVNode(_component_Location2, {
|
|
456
453
|
class: "nut-address-select-icon",
|
|
457
|
-
|
|
454
|
+
size: "13px"
|
|
458
455
|
})
|
|
459
456
|
]) : createCommentVNode("", true),
|
|
460
457
|
item.selectedAddress ? renderSlot(_ctx.$slots, "icon", { key: 1 }, () => [
|
|
461
458
|
createVNode(_component_Check, {
|
|
462
459
|
class: "nut-address-select-icon",
|
|
463
|
-
|
|
460
|
+
size: "13px"
|
|
464
461
|
})
|
|
465
462
|
]) : createCommentVNode("", true),
|
|
466
463
|
createElementVNode("div", _hoisted_16, [
|
|
@@ -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-bb5ff48e.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-bb5ff48e.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-bb5ff48e.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,32 +13,26 @@ const _sfc_main = create({
|
|
|
13
13
|
type: String,
|
|
14
14
|
default: ""
|
|
15
15
|
},
|
|
16
|
-
// 静音
|
|
17
16
|
muted: {
|
|
18
17
|
type: Boolean,
|
|
19
18
|
default: false
|
|
20
19
|
},
|
|
21
|
-
// 自动播放
|
|
22
20
|
autoplay: {
|
|
23
21
|
type: Boolean,
|
|
24
22
|
default: false
|
|
25
23
|
},
|
|
26
|
-
// 循环播放
|
|
27
24
|
loop: {
|
|
28
25
|
type: Boolean,
|
|
29
26
|
default: false
|
|
30
27
|
},
|
|
31
|
-
// 是否预加载音频
|
|
32
28
|
preload: {
|
|
33
29
|
type: String,
|
|
34
30
|
default: "auto"
|
|
35
31
|
},
|
|
36
|
-
/* 总时长秒数 */
|
|
37
32
|
second: {
|
|
38
33
|
type: Number,
|
|
39
34
|
default: 0
|
|
40
35
|
},
|
|
41
|
-
// 展示的形式 controls 控制面板 progress 进度条 icon 图标 none 自定义
|
|
42
36
|
type: {
|
|
43
37
|
type: String,
|
|
44
38
|
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-bb5ff48e.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,7 +7,6 @@ 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 静音
|
|
11
10
|
type: {
|
|
12
11
|
type: String,
|
|
13
12
|
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-bb5ff48e.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,9 +33,7 @@ const _sfc_main = create({
|
|
|
33
33
|
const state = reactive({
|
|
34
34
|
index: 1,
|
|
35
35
|
showMax: false,
|
|
36
|
-
// 是否显示的最大头像个数
|
|
37
36
|
maxIndex: 0
|
|
38
|
-
// avatarGroup里的avatar的个数
|
|
39
37
|
});
|
|
40
38
|
onMounted(() => {
|
|
41
39
|
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-bb5ff48e.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,7 +57,6 @@ const _sfc_main = create({
|
|
|
57
57
|
});
|
|
58
58
|
return {
|
|
59
59
|
classes,
|
|
60
|
-
// styles,
|
|
61
60
|
avatarGroupRef
|
|
62
61
|
};
|
|
63
62
|
}
|
|
@@ -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-bb5ff48e.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-bb5ff48e.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-bb5ff48e.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-bb5ff48e.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-bb5ff48e.js";
|
|
3
|
+
import { C as CalendarItem, U as Utils } from "./index-4f2972bc.js";
|
|
4
|
+
import { P as Popup } from "./index-a564e25f.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-4f2972bc.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
import "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
4
|
-
import "./component-
|
|
4
|
+
import "./component-bb5ff48e.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-bb5ff48e.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-a564e25f.js";
|
|
9
|
+
import { c as createComponent } from "./component-bb5ff48e.js";
|
|
10
10
|
import { Loading, Checklist } from "@nutui/icons-vue";
|
|
11
11
|
import Tabs from "./Tabs.js";
|
|
12
12
|
import TabPane from "./TabPane.js";
|
|
@@ -15,7 +15,8 @@ import "./Overlay.js";
|
|
|
15
15
|
import "../locale/lang";
|
|
16
16
|
import "./pxCheck-c6b9f6b7.js";
|
|
17
17
|
import "./index-29892cda.js";
|
|
18
|
-
import "./
|
|
18
|
+
import "./raf-729dad54.js";
|
|
19
|
+
import "./index.vue_vue_type_script_lang-8f90bbd8.js";
|
|
19
20
|
const formatTree = (tree, parent, config) => tree.map((node) => {
|
|
20
21
|
const { value: valueKey = "value", text: textKey = "text", children: childrenKey = "children" } = config;
|
|
21
22
|
const { [valueKey]: value, [textKey]: text, [childrenKey]: children, ...others } = node;
|
|
@@ -98,7 +99,6 @@ class Tree {
|
|
|
98
99
|
parent.children = formatTree(nodes, parent, this.config);
|
|
99
100
|
}
|
|
100
101
|
}
|
|
101
|
-
// for test
|
|
102
102
|
getNodeByValue(value) {
|
|
103
103
|
let foundNode;
|
|
104
104
|
eachTree(this.nodes, (node) => {
|
|
@@ -290,7 +290,6 @@ const _sfc_main$1 = create$1({
|
|
|
290
290
|
emit("update:modelValue", emitValue, pathNodes);
|
|
291
291
|
};
|
|
292
292
|
const methods = {
|
|
293
|
-
// 选中一个节点,静默模式不触发事件
|
|
294
293
|
async handleNode(node, silent) {
|
|
295
294
|
const { disabled, loading } = node;
|
|
296
295
|
if (!silent && disabled || !panes.value[tabsCursor.value]) {
|
|
@@ -1,16 +1,14 @@
|
|
|
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-bb5ff48e.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
|
-
//分类模式
|
|
9
8
|
type: {
|
|
10
9
|
type: String,
|
|
11
10
|
default: "classify"
|
|
12
11
|
},
|
|
13
|
-
//左侧导航栏
|
|
14
12
|
category: {
|
|
15
13
|
type: Array,
|
|
16
14
|
default: []
|
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
import { c as createComponent } from "./component-
|
|
1
|
+
import { c as createComponent } from "./component-bb5ff48e.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
|
-
//分类模式
|
|
9
8
|
type: {
|
|
10
9
|
type: String,
|
|
11
10
|
default: "classify"
|
|
12
11
|
},
|
|
13
|
-
//右侧导航数据
|
|
14
12
|
categoryChild: {
|
|
15
13
|
type: Array,
|
|
16
14
|
default: () => []
|
|
17
15
|
},
|
|
18
|
-
//模式传入自定义数据
|
|
19
16
|
customCategory: {
|
|
20
17
|
type: Array,
|
|
21
18
|
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-bb5ff48e.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,7 +20,6 @@ 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
|
|
24
23
|
},
|
|
25
24
|
emits: ["click"],
|
|
26
25
|
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-bb5ff48e.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-bb5ff48e.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";
|
|
@@ -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-bb5ff48e.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 { i as isObject, c as createComponent } from "./component-bb5ff48e.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-bb5ff48e.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-bb5ff48e.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-bb5ff48e.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,7 +44,6 @@ const _sfc_main = create({
|
|
|
44
44
|
default: 180
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
|
-
// components: { DownArrow },
|
|
48
47
|
setup(props, ctx) {
|
|
49
48
|
const collapse = inject("collapseParent");
|
|
50
49
|
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-bb5ff48e.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,7 +16,6 @@ const _sfc_main$3 = create$3({
|
|
|
16
16
|
type: {
|
|
17
17
|
type: String,
|
|
18
18
|
default: "default"
|
|
19
|
-
// default,complex
|
|
20
19
|
},
|
|
21
20
|
info: {
|
|
22
21
|
type: Object,
|
|
@@ -118,7 +117,6 @@ const _sfc_main$2 = create$2({
|
|
|
118
117
|
type: {
|
|
119
118
|
type: String,
|
|
120
119
|
default: "one"
|
|
121
|
-
// one multi
|
|
122
120
|
},
|
|
123
121
|
videos: {
|
|
124
122
|
type: Array,
|
|
@@ -221,7 +219,6 @@ const _sfc_main$1 = create$1({
|
|
|
221
219
|
type: {
|
|
222
220
|
type: String,
|
|
223
221
|
default: "base"
|
|
224
|
-
// simple,base,complex
|
|
225
222
|
},
|
|
226
223
|
info: {
|
|
227
224
|
type: Object,
|
|
@@ -305,12 +302,10 @@ const _sfc_main = create({
|
|
|
305
302
|
headerType: {
|
|
306
303
|
type: String,
|
|
307
304
|
default: "default"
|
|
308
|
-
//头部展示风格 default,complex
|
|
309
305
|
},
|
|
310
306
|
imagesRows: {
|
|
311
307
|
type: String,
|
|
312
308
|
default: "one"
|
|
313
|
-
// 'one' 'multi'
|
|
314
309
|
},
|
|
315
310
|
ellipsis: {
|
|
316
311
|
type: [String, Number, Boolean],
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as createComponent } from "./component-
|
|
1
|
+
import { c as createComponent, i as isObject } from "./component-bb5ff48e.js";
|
|
2
2
|
import { h } from "vue";
|
|
3
3
|
import "../locale/lang";
|
|
4
4
|
const { componentName, create } = createComponent("config-provider");
|
|
@@ -57,15 +57,47 @@ const _sfc_main = create({
|
|
|
57
57
|
});
|
|
58
58
|
return cssVars;
|
|
59
59
|
};
|
|
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
|
+
};
|
|
60
90
|
return () => {
|
|
61
91
|
var _a;
|
|
92
|
+
const defaultSlots = (_a = slots.default) == null ? void 0 : _a.call(slots);
|
|
93
|
+
overDefaultSlotProp(defaultSlots);
|
|
62
94
|
return h(
|
|
63
95
|
props.tag,
|
|
64
96
|
{
|
|
65
97
|
class: `nut-theme-${props.theme}`,
|
|
66
98
|
style: mapThemeVarsToCSSVars(props.themeVars)
|
|
67
99
|
},
|
|
68
|
-
|
|
100
|
+
defaultSlots
|
|
69
101
|
);
|
|
70
102
|
};
|
|
71
103
|
}
|
|
@@ -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-bb5ff48e.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,7 +23,6 @@ const _sfc_main = create({
|
|
|
23
23
|
type: Boolean
|
|
24
24
|
},
|
|
25
25
|
startTime: {
|
|
26
|
-
// 可以是服务器当前时间
|
|
27
26
|
type: [Number, String],
|
|
28
27
|
validator(v) {
|
|
29
28
|
const dateStr = new Date(v).toString().toLowerCase();
|
|
@@ -37,12 +36,10 @@ const _sfc_main = create({
|
|
|
37
36
|
return dateStr !== "invalid date";
|
|
38
37
|
}
|
|
39
38
|
},
|
|
40
|
-
// 是否开启毫秒
|
|
41
39
|
millisecond: {
|
|
42
40
|
default: false,
|
|
43
41
|
type: Boolean
|
|
44
42
|
},
|
|
45
|
-
// 时间格式化
|
|
46
43
|
format: {
|
|
47
44
|
type: String,
|
|
48
45
|
default: "HH:mm:ss"
|
|
@@ -51,7 +48,6 @@ const _sfc_main = create({
|
|
|
51
48
|
type: Boolean,
|
|
52
49
|
default: true
|
|
53
50
|
},
|
|
54
|
-
// 倒计时时长,单位毫秒
|
|
55
51
|
time: {
|
|
56
52
|
type: [Number, String],
|
|
57
53
|
default: 0
|
|
@@ -61,14 +57,10 @@ const _sfc_main = create({
|
|
|
61
57
|
setup(props, { emit, slots }) {
|
|
62
58
|
const state = reactive({
|
|
63
59
|
restTime: 0,
|
|
64
|
-
// 倒计时剩余时间时间
|
|
65
60
|
timer: null,
|
|
66
61
|
counting: !props.paused && props.autoStart,
|
|
67
|
-
// 是否处于倒计时中
|
|
68
62
|
handleEndTime: Date.now(),
|
|
69
|
-
// 最终截止时间
|
|
70
63
|
diffTime: 0
|
|
71
|
-
// 设置了 startTime 时,与 date.now() 的差异
|
|
72
64
|
});
|
|
73
65
|
const classes = computed(() => {
|
|
74
66
|
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-bb5ff48e.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,7 +35,6 @@ const _sfc_main = create({
|
|
|
35
35
|
type: Boolean,
|
|
36
36
|
default: true
|
|
37
37
|
},
|
|
38
|
-
// 数字滚动
|
|
39
38
|
numWidth: {
|
|
40
39
|
type: Number,
|
|
41
40
|
default: 20
|
|
@@ -48,7 +47,6 @@ const _sfc_main = create({
|
|
|
48
47
|
type: Boolean,
|
|
49
48
|
default: false
|
|
50
49
|
},
|
|
51
|
-
// 自定义图片
|
|
52
50
|
customBgImg: {
|
|
53
51
|
type: String,
|
|
54
52
|
default: ""
|
|
@@ -61,7 +59,6 @@ const _sfc_main = create({
|
|
|
61
59
|
type: Number,
|
|
62
60
|
default: 1
|
|
63
61
|
},
|
|
64
|
-
// 抽奖
|
|
65
62
|
type: {
|
|
66
63
|
type: String,
|
|
67
64
|
default: ""
|
|
@@ -103,20 +100,14 @@ const _sfc_main = create({
|
|
|
103
100
|
to10_0: [0, 9, 8, 7, 6, 5, 4, 3, 2, 1, 1],
|
|
104
101
|
timer: null,
|
|
105
102
|
totalCount: 0,
|
|
106
|
-
//正整数
|
|
107
103
|
pointNum: 0,
|
|
108
|
-
//小数位
|
|
109
104
|
numberVal: 0,
|
|
110
|
-
//数字
|
|
111
105
|
num_total_len: 0,
|
|
112
|
-
//数字长度
|
|
113
106
|
relNum: 0,
|
|
114
|
-
//去除小数点
|
|
115
107
|
customNumber: 1,
|
|
116
108
|
prizeLevelTrun: 0,
|
|
117
109
|
prizeY: [],
|
|
118
110
|
prizeYPrev: [],
|
|
119
|
-
// machineTransition: 'none',
|
|
120
111
|
finshMachine: 0,
|
|
121
112
|
notPrize: [],
|
|
122
113
|
typeMachine: ""
|
|
@@ -404,7 +395,6 @@ const _sfc_main = create({
|
|
|
404
395
|
}
|
|
405
396
|
scrollTime(
|
|
406
397
|
i,
|
|
407
|
-
// parseFloat((this.machinePrizeNum-(this.prizeLevelTrun-1))*this.numHeight + turn + local),
|
|
408
398
|
newLocation,
|
|
409
399
|
local
|
|
410
400
|
);
|
|
@@ -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, d as isDate$1, p as padZero } from "./component-bb5ff48e.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,12 +62,10 @@ const _sfc_main = create({
|
|
|
62
62
|
type: Function,
|
|
63
63
|
default: null
|
|
64
64
|
},
|
|
65
|
-
// 是否开启3D效果
|
|
66
65
|
threeDimensional: {
|
|
67
66
|
type: Boolean,
|
|
68
67
|
default: true
|
|
69
68
|
},
|
|
70
|
-
// 惯性滚动 时长
|
|
71
69
|
swipeDuration: {
|
|
72
70
|
type: [Number, String],
|
|
73
71
|
default: 1e3
|