@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,4 +1,4 @@
|
|
|
1
|
-
import { c as createComponent } from "./component-
|
|
1
|
+
import { c as createComponent } from "./component-bb5ff48e.js";
|
|
2
2
|
import { toRefs, computed, resolveComponent, openBlock, createElementBlock, renderSlot, createCommentVNode, createElementVNode, createBlock, normalizeClass, normalizeStyle, Fragment, renderList } from "vue";
|
|
3
3
|
import Avatar from "./Avatar.js";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
@@ -7,52 +7,42 @@ const component = (components) => {
|
|
|
7
7
|
return {
|
|
8
8
|
components,
|
|
9
9
|
props: {
|
|
10
|
-
//每行宽度
|
|
11
10
|
width: {
|
|
12
11
|
type: String,
|
|
13
12
|
default: "100px"
|
|
14
13
|
},
|
|
15
|
-
//每行高度
|
|
16
14
|
height: {
|
|
17
15
|
type: String,
|
|
18
16
|
default: "15px"
|
|
19
17
|
},
|
|
20
|
-
//是否显示动画
|
|
21
18
|
animated: {
|
|
22
19
|
type: Boolean,
|
|
23
20
|
default: false
|
|
24
21
|
},
|
|
25
|
-
//头像
|
|
26
22
|
avatar: {
|
|
27
23
|
type: Boolean,
|
|
28
24
|
default: false
|
|
29
25
|
},
|
|
30
|
-
//头像形状:正方形/圆形
|
|
31
26
|
avatarShape: {
|
|
32
27
|
type: String,
|
|
33
28
|
default: "round"
|
|
34
29
|
},
|
|
35
|
-
//头像大小
|
|
36
30
|
avatarSize: {
|
|
37
31
|
type: String,
|
|
38
32
|
default: "50px"
|
|
39
33
|
},
|
|
40
|
-
//是否显示骨架屏
|
|
41
34
|
loading: {
|
|
42
35
|
type: Boolean,
|
|
43
36
|
default: true
|
|
44
37
|
},
|
|
45
|
-
//标题/段落 圆角风格
|
|
46
38
|
round: {
|
|
47
39
|
type: Boolean,
|
|
48
40
|
default: false
|
|
49
41
|
},
|
|
50
|
-
//显示段落行数
|
|
51
42
|
row: {
|
|
52
43
|
type: String,
|
|
53
44
|
default: "1"
|
|
54
45
|
},
|
|
55
|
-
//是否显示段落标题
|
|
56
46
|
title: {
|
|
57
47
|
type: Boolean,
|
|
58
48
|
default: true
|
package/dist/packages/_es/Sku.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { resolveComponent, openBlock, createElementBlock, createElementVNode, renderSlot, createBlock, createCommentVNode, toDisplayString, ref, watch, onMounted, Fragment, renderList, normalizeClass, createVNode, withCtx, createSlots } from "vue";
|
|
2
2
|
import Price from "./Price.js";
|
|
3
|
-
import { c as createComponent, T as TypeOfFun } from "./component-
|
|
3
|
+
import { c as createComponent, T as TypeOfFun } from "./component-bb5ff48e.js";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
import InputNumber from "./InputNumber.js";
|
|
6
|
-
import { p as popupProps, P as Popup } from "./index-
|
|
6
|
+
import { p as popupProps, P as Popup } from "./index-a564e25f.js";
|
|
7
7
|
import "../locale/lang";
|
|
8
8
|
import "./pxCheck-c6b9f6b7.js";
|
|
9
9
|
import "@nutui/icons-vue";
|
|
@@ -124,7 +124,6 @@ const SkuSelect = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_rend
|
|
|
124
124
|
const { componentName: componentName$2, create: create$2 } = createComponent("sku-stepper");
|
|
125
125
|
const _sfc_main$2 = create$2({
|
|
126
126
|
props: {
|
|
127
|
-
// 购买数量最大值
|
|
128
127
|
stepperMax: {
|
|
129
128
|
type: [Number, String],
|
|
130
129
|
default: 99999
|
|
@@ -133,12 +132,10 @@ const _sfc_main$2 = create$2({
|
|
|
133
132
|
type: [Number, String],
|
|
134
133
|
default: 1
|
|
135
134
|
},
|
|
136
|
-
// stepper 前文案提示
|
|
137
135
|
stepperExtraText: {
|
|
138
136
|
type: [Function, Boolean],
|
|
139
137
|
default: false
|
|
140
138
|
},
|
|
141
|
-
// 数量选择左侧文案
|
|
142
139
|
stepperTitle: {
|
|
143
140
|
type: String,
|
|
144
141
|
default: "购买数量"
|
|
@@ -217,7 +214,6 @@ const SkuStepper = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_ren
|
|
|
217
214
|
const { componentName: componentName$1, create: create$1 } = createComponent("sku-operate");
|
|
218
215
|
const _sfc_main$1 = create$1({
|
|
219
216
|
props: {
|
|
220
|
-
// 底部按钮配置 confirm cart buy
|
|
221
217
|
btnOptions: {
|
|
222
218
|
type: Array,
|
|
223
219
|
default: () => ["confirm"]
|
|
@@ -226,12 +222,10 @@ const _sfc_main$1 = create$1({
|
|
|
226
222
|
type: String,
|
|
227
223
|
default: ""
|
|
228
224
|
},
|
|
229
|
-
// 立即购买文案
|
|
230
225
|
buyText: {
|
|
231
226
|
type: String,
|
|
232
227
|
default: "立即购买"
|
|
233
228
|
},
|
|
234
|
-
// 加入购物车文案
|
|
235
229
|
addCartText: {
|
|
236
230
|
type: String,
|
|
237
231
|
default: "加入购物车"
|
|
@@ -303,27 +297,22 @@ const _sfc_main = create({
|
|
|
303
297
|
type: Object,
|
|
304
298
|
default: {}
|
|
305
299
|
},
|
|
306
|
-
// stepper 最大值
|
|
307
300
|
stepperMax: {
|
|
308
301
|
type: [Number, String],
|
|
309
302
|
default: 99999
|
|
310
303
|
},
|
|
311
|
-
// stepper 最小值
|
|
312
304
|
stepperMin: {
|
|
313
305
|
type: [Number, String],
|
|
314
306
|
default: 1
|
|
315
307
|
},
|
|
316
|
-
// 底部按钮配置 confirm cart buy
|
|
317
308
|
btnOptions: {
|
|
318
309
|
type: Array,
|
|
319
310
|
default: () => ["confirm"]
|
|
320
311
|
},
|
|
321
|
-
// 数量选择左侧文案
|
|
322
312
|
stepperTitle: {
|
|
323
313
|
type: String,
|
|
324
314
|
default: ""
|
|
325
315
|
},
|
|
326
|
-
// stepper 前面文案
|
|
327
316
|
stepperExtraText: {
|
|
328
317
|
type: [Function, Boolean],
|
|
329
318
|
default: false
|
|
@@ -332,17 +321,14 @@ const _sfc_main = create({
|
|
|
332
321
|
type: String,
|
|
333
322
|
default: ""
|
|
334
323
|
},
|
|
335
|
-
// 立即购买文案
|
|
336
324
|
buyText: {
|
|
337
325
|
type: String,
|
|
338
326
|
default: ""
|
|
339
327
|
},
|
|
340
|
-
// 加入购物车文案
|
|
341
328
|
addCartText: {
|
|
342
329
|
type: String,
|
|
343
330
|
default: ""
|
|
344
331
|
},
|
|
345
|
-
// 确定文案
|
|
346
332
|
confirmText: {
|
|
347
333
|
type: String,
|
|
348
334
|
default: ""
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getCurrentInstance, inject, reactive, computed, toRefs, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, Fragment, toDisplayString, 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 { create, componentName } = createComponent("step");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { reactive, computed, provide, h } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-bb5ff48e.js";
|
|
3
3
|
import "../locale/lang";
|
|
4
4
|
const { create, componentName } = createComponent("steps");
|
|
5
5
|
const _sfc_main = create({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as _sfc_main } from "./index.vue_vue_type_script_lang-
|
|
1
|
+
import { _ as _sfc_main } from "./index.vue_vue_type_script_lang-8f90bbd8.js";
|
|
2
2
|
import "vue";
|
|
3
|
-
import "./component-
|
|
3
|
+
import "./component-bb5ff48e.js";
|
|
4
4
|
import "../locale/lang";
|
|
5
5
|
import "./index-29892cda.js";
|
|
6
6
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { reactive, computed, onMounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, withModifiers, toDisplayString, createBlock, withDirectives, normalizeStyle, renderSlot, vShow } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-bb5ff48e.js";
|
|
3
3
|
import { ArrowDown2, ArrowUp2 } from "@nutui/icons-vue";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
import "../locale/lang";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { u as useTouch } from "./index-7a7385e4.js";
|
|
2
2
|
import { computed, ref, reactive, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot } from "vue";
|
|
3
|
-
import { c as createComponent } from "./component-
|
|
3
|
+
import { c as createComponent } from "./component-bb5ff48e.js";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
import "../locale/lang";
|
|
6
6
|
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,
|
|
2
|
+
import { c as createComponent, f as clamp } from "./component-bb5ff48e.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";
|
|
@@ -19,7 +19,6 @@ const _sfc_main = create({
|
|
|
19
19
|
direction: {
|
|
20
20
|
type: String,
|
|
21
21
|
default: "horizontal"
|
|
22
|
-
//horizontal and vertical
|
|
23
22
|
},
|
|
24
23
|
paginationVisible: {
|
|
25
24
|
type: Boolean,
|
|
@@ -1,5 +1,5 @@
|
|
|
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-bb5ff48e.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";
|
|
@@ -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-bb5ff48e.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";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { inject, 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 } = createComponent("tab-pane");
|
|
@@ -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-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("tabbar");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as createComponent } from "./component-
|
|
1
|
+
import { c as createComponent } from "./component-bb5ff48e.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";
|
|
@@ -10,7 +10,6 @@ const _sfc_main = create({
|
|
|
10
10
|
components: { [Badge.name]: Badge },
|
|
11
11
|
props: {
|
|
12
12
|
tabTitle: {
|
|
13
|
-
// 标签页的标题
|
|
14
13
|
type: String,
|
|
15
14
|
default: ""
|
|
16
15
|
},
|
|
@@ -18,11 +17,9 @@ const _sfc_main = create({
|
|
|
18
17
|
type: String
|
|
19
18
|
},
|
|
20
19
|
icon: {
|
|
21
|
-
// 标签页显示的icon
|
|
22
20
|
type: Object
|
|
23
21
|
},
|
|
24
22
|
href: {
|
|
25
|
-
// 标签页的跳转链接
|
|
26
23
|
type: String,
|
|
27
24
|
default: ""
|
|
28
25
|
},
|
|
@@ -35,9 +32,7 @@ const _sfc_main = create({
|
|
|
35
32
|
const parent = inject("parent");
|
|
36
33
|
const state = reactive({
|
|
37
34
|
unactiveColor: parent.unactiveColor,
|
|
38
|
-
// 未选中的颜色
|
|
39
35
|
activeColor: parent.activeColor,
|
|
40
|
-
// 选中的颜色
|
|
41
36
|
index: 0
|
|
42
37
|
});
|
|
43
38
|
const router = useRouter();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, h, reactive, computed, watch, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, createTextVNode, toDisplayString, renderSlot, createBlock, createCommentVNode } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-bb5ff48e.js";
|
|
3
3
|
import { DownArrow } from "@nutui/icons-vue";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
import "../locale/lang";
|
|
@@ -4,11 +4,12 @@ var __publicField = (obj, key, value) => {
|
|
|
4
4
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
|
-
import { c as createComponent, T as TypeOfFun } from "./component-
|
|
8
|
-
import { ref, provide, computed, watch, onMounted, onActivated, resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, createElementVNode, normalizeStyle, renderSlot, Fragment, renderList, createCommentVNode, createVNode, toDisplayString } from "vue";
|
|
7
|
+
import { c as createComponent, T as TypeOfFun } from "./component-bb5ff48e.js";
|
|
8
|
+
import { ref, provide, computed, watch, onMounted, onActivated, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, createElementVNode, normalizeStyle, renderSlot, Fragment, renderList, createCommentVNode, createVNode, toDisplayString } from "vue";
|
|
9
9
|
import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
|
|
10
10
|
import { u as useRect } from "./index-29892cda.js";
|
|
11
|
-
import {
|
|
11
|
+
import { r as requestAniFrame } from "./raf-729dad54.js";
|
|
12
|
+
import { _ as _sfc_main$1 } from "./index.vue_vue_type_script_lang-8f90bbd8.js";
|
|
12
13
|
import { JoySmile } from "@nutui/icons-vue";
|
|
13
14
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
14
15
|
import "../locale/lang";
|
|
@@ -35,7 +36,6 @@ const _sfc_main = create({
|
|
|
35
36
|
direction: {
|
|
36
37
|
type: String,
|
|
37
38
|
default: "horizontal"
|
|
38
|
-
//vertical
|
|
39
39
|
},
|
|
40
40
|
size: {
|
|
41
41
|
type: String,
|
|
@@ -44,7 +44,6 @@ const _sfc_main = create({
|
|
|
44
44
|
type: {
|
|
45
45
|
type: String,
|
|
46
46
|
default: "line"
|
|
47
|
-
//card、line、smile
|
|
48
47
|
},
|
|
49
48
|
titleScroll: {
|
|
50
49
|
type: Boolean,
|
|
@@ -122,6 +121,30 @@ const _sfc_main = create({
|
|
|
122
121
|
currentIndex.value = index;
|
|
123
122
|
}
|
|
124
123
|
};
|
|
124
|
+
const navRef = ref();
|
|
125
|
+
const titleRef = ref([]);
|
|
126
|
+
const scrollIntoView = (immediate) => {
|
|
127
|
+
const nav = navRef.value;
|
|
128
|
+
const _titles = titleRef.value;
|
|
129
|
+
if (!nav || !_titles || !_titles[currentIndex.value]) {
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
const title = _titles[currentIndex.value];
|
|
133
|
+
const to = title.offsetLeft - (nav.offsetWidth - title.offsetWidth) / 2;
|
|
134
|
+
scrollLeftTo(nav, to, immediate ? 0 : 0.3);
|
|
135
|
+
};
|
|
136
|
+
const scrollLeftTo = (nav, to, duration) => {
|
|
137
|
+
let count = 0;
|
|
138
|
+
const from = nav.scrollLeft;
|
|
139
|
+
const frames = duration === 0 ? 1 : Math.round(duration * 1e3 / 16);
|
|
140
|
+
function animate() {
|
|
141
|
+
nav.scrollLeft += (to - from) / frames;
|
|
142
|
+
if (++count < frames) {
|
|
143
|
+
requestAniFrame(animate);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
animate();
|
|
147
|
+
};
|
|
125
148
|
const init = (vnodes = ((_a) => (_a = slots.default) == null ? void 0 : _a.call(slots))()) => {
|
|
126
149
|
titles.value = [];
|
|
127
150
|
vnodes = vnodes == null ? void 0 : vnodes.filter((item) => typeof item.children !== "string");
|
|
@@ -129,6 +152,9 @@ const _sfc_main = create({
|
|
|
129
152
|
renderTitles(vnodes);
|
|
130
153
|
}
|
|
131
154
|
findTabsIndex(props.modelValue);
|
|
155
|
+
nextTick(() => {
|
|
156
|
+
scrollIntoView();
|
|
157
|
+
});
|
|
132
158
|
};
|
|
133
159
|
const onStickyScroll = (params) => {
|
|
134
160
|
stickyFixed = params.fixed;
|
|
@@ -149,6 +175,7 @@ const _sfc_main = create({
|
|
|
149
175
|
() => props.modelValue,
|
|
150
176
|
(value) => {
|
|
151
177
|
findTabsIndex(value);
|
|
178
|
+
scrollIntoView();
|
|
152
179
|
if (stickyFixed) {
|
|
153
180
|
let top = useRect(container.value).top + getScrollTopRoot();
|
|
154
181
|
let value2 = Math.ceil(top - props.top);
|
|
@@ -193,9 +220,13 @@ const _sfc_main = create({
|
|
|
193
220
|
currentIndex.value = index;
|
|
194
221
|
emit("update:modelValue", item.paneKey);
|
|
195
222
|
emit("change", item);
|
|
223
|
+
},
|
|
224
|
+
setTabItemRef: (el, index) => {
|
|
225
|
+
titleRef.value[index] = el;
|
|
196
226
|
}
|
|
197
227
|
};
|
|
198
228
|
return {
|
|
229
|
+
navRef,
|
|
199
230
|
titles,
|
|
200
231
|
contentStyle,
|
|
201
232
|
tabsNavStyle,
|
|
@@ -226,7 +257,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
226
257
|
default: withCtx(() => [
|
|
227
258
|
createElementVNode("view", {
|
|
228
259
|
class: normalizeClass(["nut-tabs__titles", { [_ctx.type]: _ctx.type, scrollable: _ctx.titleScroll, [_ctx.size]: _ctx.size }]),
|
|
229
|
-
style: normalizeStyle(_ctx.tabsNavStyle)
|
|
260
|
+
style: normalizeStyle(_ctx.tabsNavStyle),
|
|
261
|
+
ref: "navRef"
|
|
230
262
|
}, [
|
|
231
263
|
_ctx.$slots.titles ? renderSlot(_ctx.$slots, "titles", { key: 0 }) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.titles, (item, index) => {
|
|
232
264
|
return openBlock(), createElementBlock("view", {
|
|
@@ -258,14 +290,17 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
258
290
|
}, 8, ["top", "container", "onScroll"])) : (openBlock(), createElementBlock("view", {
|
|
259
291
|
key: 1,
|
|
260
292
|
class: normalizeClass(["nut-tabs__titles", { [_ctx.type]: _ctx.type, scrollable: _ctx.titleScroll, [_ctx.size]: _ctx.size }]),
|
|
261
|
-
style: normalizeStyle(_ctx.tabsNavStyle)
|
|
293
|
+
style: normalizeStyle(_ctx.tabsNavStyle),
|
|
294
|
+
ref: "navRef"
|
|
262
295
|
}, [
|
|
263
296
|
_ctx.$slots.titles ? renderSlot(_ctx.$slots, "titles", { key: 0 }) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.titles, (item, index) => {
|
|
264
297
|
return openBlock(), createElementBlock("view", {
|
|
265
298
|
class: normalizeClass(["nut-tabs__titles-item", { active: item.paneKey == _ctx.modelValue, disabled: item.disabled }]),
|
|
266
299
|
style: normalizeStyle(_ctx.titleStyle),
|
|
267
300
|
onClick: ($event) => _ctx.tabChange(item, index),
|
|
268
|
-
key: item.paneKey
|
|
301
|
+
key: item.paneKey,
|
|
302
|
+
ref_for: true,
|
|
303
|
+
ref: (e) => _ctx.setTabItemRef(e, index)
|
|
269
304
|
}, [
|
|
270
305
|
_ctx.type == "line" ? (openBlock(), createElementBlock("view", {
|
|
271
306
|
key: 0,
|
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-bb5ff48e.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-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, translate } = createComponent("textarea");
|
|
@@ -67,7 +67,6 @@ const _sfc_main = create({
|
|
|
67
67
|
const styles = computed(() => {
|
|
68
68
|
return {
|
|
69
69
|
textAlign: props.textAlign
|
|
70
|
-
// resize: props.autosize ? 'vertical' : 'none'
|
|
71
70
|
};
|
|
72
71
|
});
|
|
73
72
|
const getContentHeight = () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { inject, reactive, computed, toRefs, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, 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("time-detail");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { inject, reactive, computed, toRefs, openBlock, createElementBlock, normalizeClass, 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("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-bb5ff48e.js";
|
|
3
|
+
import { P as Popup } from "./index-a564e25f.js";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
import "../locale/lang";
|
|
6
6
|
import "./Overlay.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { reactive, onMounted, watch, computed, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, createElementBlock, resolveDynamicComponent, createCommentVNode, toDisplayString, vShow, createVNode, render } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-bb5ff48e.js";
|
|
3
3
|
import { r as renderIcon } from "./renderIcon-3d0fd47c.js";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
import "../locale/lang";
|
|
6
|
-
import { C as CreateComponent } from "./mountComponent-
|
|
6
|
+
import { C as CreateComponent } from "./mountComponent-3865592f.js";
|
|
7
7
|
import { Success, Failure, Tips, Loading } from "@nutui/icons-vue";
|
|
8
8
|
const { create } = createComponent("toast");
|
|
9
9
|
const _sfc_main = create({
|
|
@@ -196,9 +196,7 @@ const defaultOptions = {
|
|
|
196
196
|
msg: "",
|
|
197
197
|
id: "",
|
|
198
198
|
duration: 2e3,
|
|
199
|
-
//显示时间(毫秒)
|
|
200
199
|
center: true,
|
|
201
|
-
// 未实现
|
|
202
200
|
type: "text",
|
|
203
201
|
title: "",
|
|
204
202
|
customClass: "",
|
|
@@ -207,19 +205,13 @@ const defaultOptions = {
|
|
|
207
205
|
iconSize: "20",
|
|
208
206
|
icon: null,
|
|
209
207
|
textAlignCenter: true,
|
|
210
|
-
// 未实现
|
|
211
208
|
loadingRotate: true,
|
|
212
|
-
// 未实现
|
|
213
209
|
bgColor: "",
|
|
214
210
|
onClose: null,
|
|
215
|
-
// 未实现
|
|
216
211
|
unmount: null,
|
|
217
212
|
cover: false,
|
|
218
|
-
//透明遮罩层 // 未实现
|
|
219
213
|
coverColor: "",
|
|
220
|
-
// 未实现
|
|
221
214
|
closeOnClickOverlay: false
|
|
222
|
-
// 未实现
|
|
223
215
|
};
|
|
224
216
|
let idsMap = [];
|
|
225
217
|
let optsMap = [];
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
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";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-bb5ff48e.js";
|
|
3
3
|
import { u as useRect } from "./index-29892cda.js";
|
|
4
4
|
import { Close } from "@nutui/icons-vue";
|
|
5
5
|
import Popover from "./Popover.js";
|
|
6
6
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
7
7
|
import "../locale/lang";
|
|
8
8
|
import "./renderIcon-3d0fd47c.js";
|
|
9
|
-
import "./index-
|
|
9
|
+
import "./index-a564e25f.js";
|
|
10
10
|
import "./Overlay.js";
|
|
11
11
|
const { create } = createComponent("tour");
|
|
12
12
|
const _sfc_main = create({
|
|
@@ -19,7 +19,6 @@ const _sfc_main = create({
|
|
|
19
19
|
type: {
|
|
20
20
|
type: String,
|
|
21
21
|
default: "step"
|
|
22
|
-
// tile
|
|
23
22
|
},
|
|
24
23
|
steps: {
|
|
25
24
|
type: Array,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { reactive, computed, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, toDisplayString, createCommentVNode, renderSlot, createVNode } from "vue";
|
|
2
|
-
import { m as myFixed, c as createComponent } from "./component-
|
|
2
|
+
import { m as myFixed, c as createComponent } from "./component-bb5ff48e.js";
|
|
3
3
|
import { TriangleUp, TriangleDown } from "@nutui/icons-vue";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
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-bb5ff48e.js";
|
|
9
|
+
import { f as funInterceptor } from "./interceptor-648bf3d0.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";
|
|
@@ -103,11 +103,9 @@ const _sfc_main = create({
|
|
|
103
103
|
props: {
|
|
104
104
|
name: { type: String, default: "file" },
|
|
105
105
|
url: { type: String, default: "" },
|
|
106
|
-
// defaultFileList: { type: Array, default: () => new Array<FileItem>() },
|
|
107
106
|
timeout: { type: [Number, String], default: 1e3 * 30 },
|
|
108
107
|
fileList: { type: Array, default: () => [] },
|
|
109
108
|
isPreview: { type: Boolean, default: true },
|
|
110
|
-
// picture、list
|
|
111
109
|
listType: { type: String, default: "picture" },
|
|
112
110
|
isDeletable: { type: Boolean, default: true },
|
|
113
111
|
method: { type: String, default: "post" },
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { reactive, ref, computed, watch, nextTick, onMounted, toRefs, openBlock, createElementBlock, createElementVNode, createCommentVNode, withDirectives, vShow, normalizeClass, toDisplayString, normalizeStyle, withModifiers } 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 throttle(fn, delay) {
|
|
@@ -29,17 +29,13 @@ const _sfc_main = create({
|
|
|
29
29
|
type: Object,
|
|
30
30
|
default: {
|
|
31
31
|
autoplay: false,
|
|
32
|
-
//是否自动播放
|
|
33
32
|
volume: 0.5,
|
|
34
33
|
poster: "",
|
|
35
34
|
loop: false,
|
|
36
35
|
controls: true,
|
|
37
36
|
muted: false,
|
|
38
|
-
//是否静音
|
|
39
37
|
disabled: false,
|
|
40
|
-
//禁止操作
|
|
41
38
|
playsinline: false,
|
|
42
|
-
//行内展示
|
|
43
39
|
touchPlay: false,
|
|
44
40
|
preload: ""
|
|
45
41
|
},
|
|
@@ -56,44 +52,30 @@ const _sfc_main = create({
|
|
|
56
52
|
const state = reactive({
|
|
57
53
|
videoElm: null,
|
|
58
54
|
initial: true,
|
|
59
|
-
//控制封面的显示
|
|
60
55
|
showToolbox: false,
|
|
61
|
-
//控制控制器和标题的显示
|
|
62
|
-
// 视频容器元素
|
|
63
56
|
player: {
|
|
64
57
|
$player: null,
|
|
65
58
|
pos: null
|
|
66
59
|
},
|
|
67
|
-
// progress进度条元素
|
|
68
60
|
progressBar: {
|
|
69
61
|
progressElm: null,
|
|
70
|
-
// 进度条DOM对象
|
|
71
62
|
pos: null
|
|
72
63
|
},
|
|
73
|
-
// video控制显示设置
|
|
74
64
|
videoSet: {
|
|
75
65
|
loaded: 0,
|
|
76
|
-
// 缓存长度
|
|
77
66
|
displayTime: "00:00",
|
|
78
|
-
// 进度时间
|
|
79
67
|
totalTime: "00:00",
|
|
80
|
-
// 总时间
|
|
81
68
|
progress: {
|
|
82
69
|
width: 0,
|
|
83
|
-
// 进度条长度
|
|
84
70
|
current: 0
|
|
85
|
-
// 进度条当前位置
|
|
86
71
|
}
|
|
87
72
|
},
|
|
88
73
|
state: {
|
|
89
74
|
controlShow: true,
|
|
90
75
|
vol: 0.5,
|
|
91
|
-
//音量
|
|
92
76
|
currentTime: 0,
|
|
93
|
-
//当前时间
|
|
94
77
|
fullScreen: false,
|
|
95
78
|
playing: false,
|
|
96
|
-
//是否正在播放
|
|
97
79
|
isLoading: false,
|
|
98
80
|
isEnd: false,
|
|
99
81
|
isError: false,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { reactive, watch, computed, toRefs, openBlock, createElementBlock, normalizeClass, normalizeStyle } 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("watermark");
|