@nutui/nutui 4.0.0-beta.22 → 4.0.0-beta.24
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/Badge.js +2 -2
- package/dist/packages/_es/Cascader.js +1 -1
- package/dist/packages/_es/InputNumber.js +4 -4
- package/dist/packages/_es/Overlay.js +10 -4
- package/dist/packages/_es/Tabs.js +3 -3
- package/dist/packages/ecard/index.scss +19 -5
- package/dist/packages/inputnumber/index.scss +6 -0
- package/dist/packages/tabbaritem/index.scss +2 -0
- package/dist/packages/tour/index.scss +3 -0
- package/dist/smartips/web-types.json +15 -6
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +56 -56
- package/dist/styles/themes/jdb.scss +56 -56
- package/dist/styles/themes/jddkh.scss +56 -56
- package/dist/styles/themes/jdt.scss +56 -56
- package/dist/types/__VUE/actionsheet/index.taro.vue.d.ts +310 -0
- package/dist/types/__VUE/address/index.taro.vue.d.ts +397 -0
- package/dist/types/__VUE/addresslist/components/GeneralShell.taro.vue.d.ts +60 -0
- package/dist/types/__VUE/addresslist/components/ItemContents.taro.vue.d.ts +23 -0
- package/dist/types/__VUE/addresslist/index.taro.vue.d.ts +83 -0
- package/dist/types/__VUE/animate/index.taro.vue.d.ts +54 -0
- package/dist/types/__VUE/avatar/index.taro.vue.d.ts +76 -0
- package/dist/types/__VUE/avatargroup/index.taro.vue.d.ts +92 -0
- package/dist/types/__VUE/backtop/index.taro.vue.d.ts +76 -0
- package/dist/types/__VUE/badge/index.taro.vue.d.ts +93 -0
- package/dist/types/__VUE/barrage/index.taro.vue.d.ts +80 -0
- package/dist/types/__VUE/button/index.taro.vue.d.ts +90 -0
- package/dist/types/__VUE/calendar/index.taro.vue.d.ts +187 -0
- package/dist/types/__VUE/calendaritem/index.taro.vue.d.ts +217 -0
- package/dist/types/__VUE/card/index.taro.vue.d.ts +89 -0
- package/dist/types/__VUE/cascader/cascader-item.taro.vue.d.ts +77 -0
- package/dist/types/__VUE/cascader/index.taro.vue.d.ts +263 -0
- package/dist/types/__VUE/category/index.taro.vue.d.ts +42 -0
- package/dist/types/__VUE/categorypane/index.taro.vue.d.ts +54 -0
- package/dist/types/__VUE/cell/index.taro.vue.d.ts +124 -0
- package/dist/types/__VUE/checkbox/index.taro.vue.d.ts +12 -0
- package/dist/types/__VUE/circleprogress/index.taro.vue.d.ts +93 -0
- package/dist/types/__VUE/collapse/index.taro.vue.d.ts +38 -0
- package/dist/types/__VUE/collapseitem/index.taro.vue.d.ts +111 -0
- package/dist/types/__VUE/comment/components/CmtBottom.taro.vue.d.ts +42 -0
- package/dist/types/__VUE/comment/components/CmtHeader.taro.vue.d.ts +27 -0
- package/dist/types/__VUE/comment/components/CmtImages.taro.vue.d.ts +59 -0
- package/dist/types/__VUE/comment/index.taro.vue.d.ts +119 -0
- package/dist/types/__VUE/configprovider/index.taro.vue.d.ts +45 -0
- package/dist/types/__VUE/countdown/index.taro.vue.d.ts +103 -0
- package/dist/types/__VUE/countup/index.taro.vue.d.ts +213 -0
- package/dist/types/__VUE/datepicker/index.taro.vue.d.ts +232 -0
- package/dist/types/__VUE/dialog/index.taro.vue.d.ts +345 -0
- package/dist/types/__VUE/divider/index.taro.vue.d.ts +53 -0
- package/dist/types/__VUE/drag/index.taro.vue.d.ts +62 -0
- package/dist/types/__VUE/ecard/index.taro.vue.d.ts +128 -0
- package/dist/types/__VUE/elevator/index.taro.vue.d.ts +117 -0
- package/dist/types/__VUE/ellipsis/index.taro.vue.d.ts +103 -0
- package/dist/types/__VUE/empty/index.taro.vue.d.ts +46 -0
- package/dist/types/__VUE/fixednav/index.taro.vue.d.ts +105 -0
- package/dist/types/__VUE/form/index.taro.vue.d.ts +40 -0
- package/dist/types/__VUE/formitem/index.taro.vue.d.ts +114 -0
- package/dist/types/__VUE/grid/index.taro.vue.d.ts +84 -0
- package/dist/types/__VUE/griditem/index.taro.vue.d.ts +22 -0
- package/dist/types/__VUE/icon/index.taro.vue.d.ts +12 -0
- package/dist/types/__VUE/image/index.taro.vue.d.ts +32 -0
- package/dist/types/__VUE/imagepreview/index.taro.vue.d.ts +163 -0
- package/dist/types/__VUE/indicator/index.taro.vue.d.ts +70 -0
- package/dist/types/__VUE/input/index.taro.vue.d.ts +224 -0
- package/dist/types/__VUE/inputnumber/index.taro.vue.d.ts +116 -0
- package/dist/types/__VUE/invoice/index.taro.vue.d.ts +52 -0
- package/dist/types/__VUE/layout/index.taro.vue.d.ts +12 -0
- package/dist/types/__VUE/list/index.taro.vue.d.ts +58 -0
- package/dist/types/__VUE/menu/index.taro.vue.d.ts +93 -0
- package/dist/types/__VUE/menuitem/index.taro.vue.d.ts +89 -0
- package/dist/types/__VUE/navbar/index.taro.vue.d.ts +121 -0
- package/dist/types/__VUE/noticebar/index.taro.vue.d.ts +207 -0
- package/dist/types/__VUE/noticebar/index.vue.d.ts +2 -2
- package/dist/types/__VUE/notify/index.taro.vue.d.ts +110 -0
- package/dist/types/__VUE/numberkeyboard/index.taro.vue.d.ts +132 -0
- package/dist/types/__VUE/overlay/index.taro.vue.d.ts +85 -0
- package/dist/types/__VUE/pagination/index.taro.vue.d.ts +111 -0
- package/dist/types/__VUE/picker/index.taro.vue.d.ts +14 -0
- package/dist/types/__VUE/popover/index.taro.vue.d.ts +192 -0
- package/dist/types/__VUE/popup/index.taro.vue.d.ts +219 -0
- package/dist/types/__VUE/price/index.taro.vue.d.ts +87 -0
- package/dist/types/__VUE/progress/index.taro.vue.d.ts +128 -0
- package/dist/types/__VUE/radio/index.taro.vue.d.ts +53 -0
- package/dist/types/__VUE/range/index.taro.vue.d.ts +158 -0
- package/dist/types/__VUE/rate/index.taro.vue.d.ts +121 -0
- package/dist/types/__VUE/scrollView/index.taro.vue.d.ts +14 -0
- package/dist/types/__VUE/searchbar/index.taro.vue.d.ts +177 -0
- package/dist/types/__VUE/shortpassword/index.taro.vue.d.ts +103 -0
- package/dist/types/__VUE/sidenavbar/index.taro.vue.d.ts +31 -0
- package/dist/types/__VUE/signature/index.taro.vue.d.ts +84 -0
- package/dist/types/__VUE/skeleton/index.taro.vue.d.ts +115 -0
- package/dist/types/__VUE/sku/components/SkuHeader.taro.vue.d.ts +28 -0
- package/dist/types/__VUE/sku/components/SkuStepper.taro.vue.d.ts +56 -0
- package/dist/types/__VUE/sku/index.taro.vue.d.ts +146 -0
- package/dist/types/__VUE/steps/index.taro.vue.d.ts +46 -0
- package/dist/types/__VUE/sticky/index.taro.vue.d.ts +47 -0
- package/dist/types/__VUE/subsidenavbar/index.taro.vue.d.ts +53 -0
- package/dist/types/__VUE/swipe/index.taro.vue.d.ts +71 -0
- package/dist/types/__VUE/swiper/index.taro.vue.d.ts +168 -0
- package/dist/types/__VUE/swiperitem/index.taro.vue.d.ts +18 -0
- package/dist/types/__VUE/switch/index.taro.vue.d.ts +108 -0
- package/dist/types/__VUE/tabbar/index.taro.vue.d.ts +93 -0
- package/dist/types/__VUE/tabbaritem/index.taro.vue.d.ts +59 -0
- package/dist/types/__VUE/table/index.taro.vue.d.ts +80 -0
- package/dist/types/__VUE/tabs/index.taro.vue.d.ts +164 -0
- package/dist/types/__VUE/tag/index.taro.vue.d.ts +90 -0
- package/dist/types/__VUE/textarea/index.taro.vue.d.ts +127 -0
- package/dist/types/__VUE/timedetail/index.taro.vue.d.ts +38 -0
- package/dist/types/__VUE/timepannel/index.taro.vue.d.ts +42 -0
- package/dist/types/__VUE/timeselect/index.taro.vue.d.ts +91 -0
- package/dist/types/__VUE/toast/index.taro.vue.d.ts +184 -0
- package/dist/types/__VUE/tour/index.taro.vue.d.ts +192 -0
- package/dist/types/__VUE/trendarrow/index.taro.vue.d.ts +105 -0
- package/dist/types/__VUE/uploader/index.taro.vue.d.ts +260 -0
- package/dist/types/__VUE/watermark/index.taro.vue.d.ts +175 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/nutui.taro.vue.build.d.ts +106 -0
- package/package.json +2 -1
|
@@ -72,9 +72,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
72
72
|
class: "nut-badge__icon",
|
|
73
73
|
style: normalizeStyle(_ctx.stl)
|
|
74
74
|
}, [
|
|
75
|
-
renderSlot(_ctx.$slots, "
|
|
75
|
+
renderSlot(_ctx.$slots, "icon")
|
|
76
76
|
], 4), [
|
|
77
|
-
[vShow, !_ctx.hidden && !_ctx.dot]
|
|
77
|
+
[vShow, !_ctx.hidden && !_ctx.dot && _ctx.$slots.icon]
|
|
78
78
|
]),
|
|
79
79
|
renderSlot(_ctx.$slots, "default"),
|
|
80
80
|
withDirectives(createElementVNode("view", {
|
|
@@ -522,7 +522,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
522
522
|
position: "bottom",
|
|
523
523
|
"pop-class": "nut-cascader__popup",
|
|
524
524
|
round: "",
|
|
525
|
-
closeable:
|
|
525
|
+
closeable: _ctx.closeable,
|
|
526
526
|
"destroy-on-close": false,
|
|
527
527
|
"close-icon-position": _ctx.closeIconPosition
|
|
528
528
|
}, {
|
|
@@ -14,11 +14,11 @@ const _sfc_main = create({
|
|
|
14
14
|
},
|
|
15
15
|
inputWidth: {
|
|
16
16
|
type: [Number, String],
|
|
17
|
-
default: "
|
|
17
|
+
default: ""
|
|
18
18
|
},
|
|
19
19
|
buttonSize: {
|
|
20
20
|
type: [Number, String],
|
|
21
|
-
default: "
|
|
21
|
+
default: ""
|
|
22
22
|
},
|
|
23
23
|
min: {
|
|
24
24
|
type: [Number, String],
|
|
@@ -136,7 +136,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
136
136
|
class: normalizeClass(["nut-input-number__icon nut-input-number__left", { "nut-input-number__icon--disabled": !_ctx.reduceAllow() }]),
|
|
137
137
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.reduce && _ctx.reduce(...args))
|
|
138
138
|
}, [
|
|
139
|
-
renderSlot(_ctx.$slots, "
|
|
139
|
+
renderSlot(_ctx.$slots, "left-icon", {}, () => [
|
|
140
140
|
createVNode(_component_Minus, {
|
|
141
141
|
width: _ctx.pxCheck(_ctx.buttonSize),
|
|
142
142
|
height: _ctx.pxCheck(_ctx.buttonSize)
|
|
@@ -159,7 +159,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
159
159
|
class: normalizeClass(["nut-input-number__icon nut-input-number__right", { "nut-input-number__icon--disabled": !_ctx.addAllow() }]),
|
|
160
160
|
onClick: _cache[4] || (_cache[4] = (...args) => _ctx.add && _ctx.add(...args))
|
|
161
161
|
}, [
|
|
162
|
-
renderSlot(_ctx.$slots, "
|
|
162
|
+
renderSlot(_ctx.$slots, "right-icon", {}, () => [
|
|
163
163
|
createVNode(_component_Plus, {
|
|
164
164
|
width: _ctx.pxCheck(_ctx.buttonSize),
|
|
165
165
|
height: _ctx.pxCheck(_ctx.buttonSize)
|
|
@@ -7,14 +7,20 @@ const CLSNAME = "nut-overflow-hidden";
|
|
|
7
7
|
const useLockScroll = (isLock) => {
|
|
8
8
|
const lock = () => {
|
|
9
9
|
if (isLock()) {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
try {
|
|
11
|
+
!count && body.classList.add(CLSNAME);
|
|
12
|
+
count++;
|
|
13
|
+
} catch (error) {
|
|
14
|
+
}
|
|
12
15
|
}
|
|
13
16
|
};
|
|
14
17
|
const unlock = () => {
|
|
15
18
|
if (isLock() && count) {
|
|
16
|
-
|
|
17
|
-
|
|
19
|
+
try {
|
|
20
|
+
count--;
|
|
21
|
+
!count && body.classList.remove(CLSNAME);
|
|
22
|
+
} catch (error) {
|
|
23
|
+
}
|
|
18
24
|
}
|
|
19
25
|
};
|
|
20
26
|
return [lock, unlock];
|
|
@@ -116,9 +116,9 @@ const _sfc_main = create({
|
|
|
116
116
|
let index = titles.value.findIndex((item) => item.paneKey == value);
|
|
117
117
|
if (titles.value.length == 0) {
|
|
118
118
|
console.error("[NutUI] <Tabs> 当前未找到 TabPane 组件元素 , 请检查 .");
|
|
119
|
-
} else if (index == -1)
|
|
120
|
-
|
|
121
|
-
|
|
119
|
+
} else if (index == -1)
|
|
120
|
+
;
|
|
121
|
+
else {
|
|
122
122
|
currentIndex.value = index;
|
|
123
123
|
}
|
|
124
124
|
};
|
|
@@ -1,34 +1,37 @@
|
|
|
1
1
|
.nut-theme-dark {
|
|
2
2
|
.nut-ecard {
|
|
3
3
|
color: $dark-color3;
|
|
4
|
+
|
|
4
5
|
::placeholder {
|
|
5
6
|
color: rgb(29, 31, 32);
|
|
6
7
|
}
|
|
8
|
+
|
|
7
9
|
.nut-ecard__list__item {
|
|
8
10
|
background: $dark-background5;
|
|
11
|
+
|
|
9
12
|
&.active {
|
|
10
13
|
background: $dark-background6;
|
|
11
14
|
outline: 1px solid $dark-color2;
|
|
12
15
|
color: $dark-color2;
|
|
13
16
|
}
|
|
14
17
|
}
|
|
18
|
+
|
|
15
19
|
.nut-ecard__list__input {
|
|
16
20
|
color: $dark-color3;
|
|
17
21
|
background: $dark-background7;
|
|
22
|
+
|
|
18
23
|
&.active {
|
|
19
24
|
background: $dark-background7;
|
|
25
|
+
|
|
20
26
|
> view > input {
|
|
21
27
|
background: $dark-background7;
|
|
22
28
|
}
|
|
23
29
|
}
|
|
30
|
+
|
|
24
31
|
.nut-ecard__list__input--con > input {
|
|
25
32
|
background-color: transparent;
|
|
26
33
|
color: $dark-color3;
|
|
27
34
|
}
|
|
28
|
-
.nut-ecard-input {
|
|
29
|
-
outline: none;
|
|
30
|
-
border: none;
|
|
31
|
-
}
|
|
32
35
|
}
|
|
33
36
|
}
|
|
34
37
|
}
|
|
@@ -82,7 +85,18 @@
|
|
|
82
85
|
flex: 1;
|
|
83
86
|
display: flex;
|
|
84
87
|
justify-content: flex-end;
|
|
85
|
-
|
|
88
|
+
|
|
89
|
+
input {
|
|
90
|
+
caret-color: $primary-color; //光标颜色
|
|
91
|
+
text-align: right;
|
|
92
|
+
background: $ecard-bg-color;
|
|
93
|
+
margin-right: 10px;
|
|
94
|
+
outline: 0 none;
|
|
95
|
+
border: 0;
|
|
96
|
+
text-decoration: none;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.nut-ecard-input {
|
|
86
100
|
caret-color: $primary-color; //光标颜色
|
|
87
101
|
text-align: right;
|
|
88
102
|
background: $ecard-bg-color;
|
|
@@ -38,6 +38,11 @@
|
|
|
38
38
|
display: flex;
|
|
39
39
|
align-items: center;
|
|
40
40
|
color: $inputnumber-icon-color;
|
|
41
|
+
.nut-icon {
|
|
42
|
+
width: $inputnumber-icon-size;
|
|
43
|
+
height: $inputnumber-icon-size;
|
|
44
|
+
font-size: $inputnumber-icon-size;
|
|
45
|
+
}
|
|
41
46
|
cursor: pointer;
|
|
42
47
|
&--disabled {
|
|
43
48
|
color: $inputnumber-icon-void-color;
|
|
@@ -53,6 +58,7 @@
|
|
|
53
58
|
input,
|
|
54
59
|
&__text--readonly,
|
|
55
60
|
&__text--input {
|
|
61
|
+
width: $inputnumber-input-width;
|
|
56
62
|
height: 100%;
|
|
57
63
|
text-align: center;
|
|
58
64
|
display: flex;
|
|
@@ -16,10 +16,12 @@
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
&-content {
|
|
19
|
+
display: block;
|
|
19
20
|
padding: 10px 12px;
|
|
20
21
|
min-width: 200px;
|
|
21
22
|
|
|
22
23
|
&-top {
|
|
24
|
+
display: block;
|
|
23
25
|
text-align: right;
|
|
24
26
|
|
|
25
27
|
&-close {
|
|
@@ -30,6 +32,7 @@
|
|
|
30
32
|
|
|
31
33
|
&-inner {
|
|
32
34
|
margin: 10px 0px;
|
|
35
|
+
font-size: 14px;
|
|
33
36
|
}
|
|
34
37
|
|
|
35
38
|
&-bottom {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"framework": "vue",
|
|
4
4
|
"name": "NutUI",
|
|
5
|
-
"version": "4.0.0-beta.
|
|
5
|
+
"version": "4.0.0-beta.24",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"tags": [
|
|
@@ -984,6 +984,15 @@
|
|
|
984
984
|
"kind": "expression"
|
|
985
985
|
}
|
|
986
986
|
},
|
|
987
|
+
{
|
|
988
|
+
"name": "v-model:visible",
|
|
989
|
+
"default": "`false`",
|
|
990
|
+
"description": "显示选择层",
|
|
991
|
+
"value": {
|
|
992
|
+
"type": "boolean",
|
|
993
|
+
"kind": "expression"
|
|
994
|
+
}
|
|
995
|
+
},
|
|
987
996
|
{
|
|
988
997
|
"name": "options",
|
|
989
998
|
"default": "-",
|
|
@@ -3101,7 +3110,7 @@
|
|
|
3101
3110
|
},
|
|
3102
3111
|
{
|
|
3103
3112
|
"name": "input-width",
|
|
3104
|
-
"default": "
|
|
3113
|
+
"default": "``",
|
|
3105
3114
|
"description": "输入框宽度",
|
|
3106
3115
|
"value": {
|
|
3107
3116
|
"type": "string",
|
|
@@ -3110,7 +3119,7 @@
|
|
|
3110
3119
|
},
|
|
3111
3120
|
{
|
|
3112
3121
|
"name": "button-size",
|
|
3113
|
-
"default": "
|
|
3122
|
+
"default": "``",
|
|
3114
3123
|
"description": "操作符+、-尺寸",
|
|
3115
3124
|
"value": {
|
|
3116
3125
|
"type": "string",
|
|
@@ -3998,7 +4007,7 @@
|
|
|
3998
4007
|
"default": "`[0, 12]`",
|
|
3999
4008
|
"description": "出现位置的偏移量",
|
|
4000
4009
|
"value": {
|
|
4001
|
-
"type": "number
|
|
4010
|
+
"type": "[number,number]",
|
|
4002
4011
|
"kind": "expression"
|
|
4003
4012
|
}
|
|
4004
4013
|
},
|
|
@@ -6342,7 +6351,7 @@
|
|
|
6342
6351
|
"default": "''",
|
|
6343
6352
|
"description": "镂空遮罩层宽度",
|
|
6344
6353
|
"value": {
|
|
6345
|
-
"type": "number
|
|
6354
|
+
"type": "number | string",
|
|
6346
6355
|
"kind": "expression"
|
|
6347
6356
|
}
|
|
6348
6357
|
},
|
|
@@ -6351,7 +6360,7 @@
|
|
|
6351
6360
|
"default": "''",
|
|
6352
6361
|
"description": "镂空遮罩层高度",
|
|
6353
6362
|
"value": {
|
|
6354
|
-
"type": "number
|
|
6363
|
+
"type": "number | string",
|
|
6355
6364
|
"kind": "expression"
|
|
6356
6365
|
}
|
|
6357
6366
|
},
|