@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.
Files changed (120) hide show
  1. package/dist/nutui.es.js +1 -1
  2. package/dist/nutui.umd.js +2 -2
  3. package/dist/packages/_es/Badge.js +2 -2
  4. package/dist/packages/_es/Cascader.js +1 -1
  5. package/dist/packages/_es/InputNumber.js +4 -4
  6. package/dist/packages/_es/Overlay.js +10 -4
  7. package/dist/packages/_es/Tabs.js +3 -3
  8. package/dist/packages/ecard/index.scss +19 -5
  9. package/dist/packages/inputnumber/index.scss +6 -0
  10. package/dist/packages/tabbaritem/index.scss +2 -0
  11. package/dist/packages/tour/index.scss +3 -0
  12. package/dist/smartips/web-types.json +15 -6
  13. package/dist/style.css +1 -1
  14. package/dist/styles/themes/default.scss +56 -56
  15. package/dist/styles/themes/jdb.scss +56 -56
  16. package/dist/styles/themes/jddkh.scss +56 -56
  17. package/dist/styles/themes/jdt.scss +56 -56
  18. package/dist/types/__VUE/actionsheet/index.taro.vue.d.ts +310 -0
  19. package/dist/types/__VUE/address/index.taro.vue.d.ts +397 -0
  20. package/dist/types/__VUE/addresslist/components/GeneralShell.taro.vue.d.ts +60 -0
  21. package/dist/types/__VUE/addresslist/components/ItemContents.taro.vue.d.ts +23 -0
  22. package/dist/types/__VUE/addresslist/index.taro.vue.d.ts +83 -0
  23. package/dist/types/__VUE/animate/index.taro.vue.d.ts +54 -0
  24. package/dist/types/__VUE/avatar/index.taro.vue.d.ts +76 -0
  25. package/dist/types/__VUE/avatargroup/index.taro.vue.d.ts +92 -0
  26. package/dist/types/__VUE/backtop/index.taro.vue.d.ts +76 -0
  27. package/dist/types/__VUE/badge/index.taro.vue.d.ts +93 -0
  28. package/dist/types/__VUE/barrage/index.taro.vue.d.ts +80 -0
  29. package/dist/types/__VUE/button/index.taro.vue.d.ts +90 -0
  30. package/dist/types/__VUE/calendar/index.taro.vue.d.ts +187 -0
  31. package/dist/types/__VUE/calendaritem/index.taro.vue.d.ts +217 -0
  32. package/dist/types/__VUE/card/index.taro.vue.d.ts +89 -0
  33. package/dist/types/__VUE/cascader/cascader-item.taro.vue.d.ts +77 -0
  34. package/dist/types/__VUE/cascader/index.taro.vue.d.ts +263 -0
  35. package/dist/types/__VUE/category/index.taro.vue.d.ts +42 -0
  36. package/dist/types/__VUE/categorypane/index.taro.vue.d.ts +54 -0
  37. package/dist/types/__VUE/cell/index.taro.vue.d.ts +124 -0
  38. package/dist/types/__VUE/checkbox/index.taro.vue.d.ts +12 -0
  39. package/dist/types/__VUE/circleprogress/index.taro.vue.d.ts +93 -0
  40. package/dist/types/__VUE/collapse/index.taro.vue.d.ts +38 -0
  41. package/dist/types/__VUE/collapseitem/index.taro.vue.d.ts +111 -0
  42. package/dist/types/__VUE/comment/components/CmtBottom.taro.vue.d.ts +42 -0
  43. package/dist/types/__VUE/comment/components/CmtHeader.taro.vue.d.ts +27 -0
  44. package/dist/types/__VUE/comment/components/CmtImages.taro.vue.d.ts +59 -0
  45. package/dist/types/__VUE/comment/index.taro.vue.d.ts +119 -0
  46. package/dist/types/__VUE/configprovider/index.taro.vue.d.ts +45 -0
  47. package/dist/types/__VUE/countdown/index.taro.vue.d.ts +103 -0
  48. package/dist/types/__VUE/countup/index.taro.vue.d.ts +213 -0
  49. package/dist/types/__VUE/datepicker/index.taro.vue.d.ts +232 -0
  50. package/dist/types/__VUE/dialog/index.taro.vue.d.ts +345 -0
  51. package/dist/types/__VUE/divider/index.taro.vue.d.ts +53 -0
  52. package/dist/types/__VUE/drag/index.taro.vue.d.ts +62 -0
  53. package/dist/types/__VUE/ecard/index.taro.vue.d.ts +128 -0
  54. package/dist/types/__VUE/elevator/index.taro.vue.d.ts +117 -0
  55. package/dist/types/__VUE/ellipsis/index.taro.vue.d.ts +103 -0
  56. package/dist/types/__VUE/empty/index.taro.vue.d.ts +46 -0
  57. package/dist/types/__VUE/fixednav/index.taro.vue.d.ts +105 -0
  58. package/dist/types/__VUE/form/index.taro.vue.d.ts +40 -0
  59. package/dist/types/__VUE/formitem/index.taro.vue.d.ts +114 -0
  60. package/dist/types/__VUE/grid/index.taro.vue.d.ts +84 -0
  61. package/dist/types/__VUE/griditem/index.taro.vue.d.ts +22 -0
  62. package/dist/types/__VUE/icon/index.taro.vue.d.ts +12 -0
  63. package/dist/types/__VUE/image/index.taro.vue.d.ts +32 -0
  64. package/dist/types/__VUE/imagepreview/index.taro.vue.d.ts +163 -0
  65. package/dist/types/__VUE/indicator/index.taro.vue.d.ts +70 -0
  66. package/dist/types/__VUE/input/index.taro.vue.d.ts +224 -0
  67. package/dist/types/__VUE/inputnumber/index.taro.vue.d.ts +116 -0
  68. package/dist/types/__VUE/invoice/index.taro.vue.d.ts +52 -0
  69. package/dist/types/__VUE/layout/index.taro.vue.d.ts +12 -0
  70. package/dist/types/__VUE/list/index.taro.vue.d.ts +58 -0
  71. package/dist/types/__VUE/menu/index.taro.vue.d.ts +93 -0
  72. package/dist/types/__VUE/menuitem/index.taro.vue.d.ts +89 -0
  73. package/dist/types/__VUE/navbar/index.taro.vue.d.ts +121 -0
  74. package/dist/types/__VUE/noticebar/index.taro.vue.d.ts +207 -0
  75. package/dist/types/__VUE/noticebar/index.vue.d.ts +2 -2
  76. package/dist/types/__VUE/notify/index.taro.vue.d.ts +110 -0
  77. package/dist/types/__VUE/numberkeyboard/index.taro.vue.d.ts +132 -0
  78. package/dist/types/__VUE/overlay/index.taro.vue.d.ts +85 -0
  79. package/dist/types/__VUE/pagination/index.taro.vue.d.ts +111 -0
  80. package/dist/types/__VUE/picker/index.taro.vue.d.ts +14 -0
  81. package/dist/types/__VUE/popover/index.taro.vue.d.ts +192 -0
  82. package/dist/types/__VUE/popup/index.taro.vue.d.ts +219 -0
  83. package/dist/types/__VUE/price/index.taro.vue.d.ts +87 -0
  84. package/dist/types/__VUE/progress/index.taro.vue.d.ts +128 -0
  85. package/dist/types/__VUE/radio/index.taro.vue.d.ts +53 -0
  86. package/dist/types/__VUE/range/index.taro.vue.d.ts +158 -0
  87. package/dist/types/__VUE/rate/index.taro.vue.d.ts +121 -0
  88. package/dist/types/__VUE/scrollView/index.taro.vue.d.ts +14 -0
  89. package/dist/types/__VUE/searchbar/index.taro.vue.d.ts +177 -0
  90. package/dist/types/__VUE/shortpassword/index.taro.vue.d.ts +103 -0
  91. package/dist/types/__VUE/sidenavbar/index.taro.vue.d.ts +31 -0
  92. package/dist/types/__VUE/signature/index.taro.vue.d.ts +84 -0
  93. package/dist/types/__VUE/skeleton/index.taro.vue.d.ts +115 -0
  94. package/dist/types/__VUE/sku/components/SkuHeader.taro.vue.d.ts +28 -0
  95. package/dist/types/__VUE/sku/components/SkuStepper.taro.vue.d.ts +56 -0
  96. package/dist/types/__VUE/sku/index.taro.vue.d.ts +146 -0
  97. package/dist/types/__VUE/steps/index.taro.vue.d.ts +46 -0
  98. package/dist/types/__VUE/sticky/index.taro.vue.d.ts +47 -0
  99. package/dist/types/__VUE/subsidenavbar/index.taro.vue.d.ts +53 -0
  100. package/dist/types/__VUE/swipe/index.taro.vue.d.ts +71 -0
  101. package/dist/types/__VUE/swiper/index.taro.vue.d.ts +168 -0
  102. package/dist/types/__VUE/swiperitem/index.taro.vue.d.ts +18 -0
  103. package/dist/types/__VUE/switch/index.taro.vue.d.ts +108 -0
  104. package/dist/types/__VUE/tabbar/index.taro.vue.d.ts +93 -0
  105. package/dist/types/__VUE/tabbaritem/index.taro.vue.d.ts +59 -0
  106. package/dist/types/__VUE/table/index.taro.vue.d.ts +80 -0
  107. package/dist/types/__VUE/tabs/index.taro.vue.d.ts +164 -0
  108. package/dist/types/__VUE/tag/index.taro.vue.d.ts +90 -0
  109. package/dist/types/__VUE/textarea/index.taro.vue.d.ts +127 -0
  110. package/dist/types/__VUE/timedetail/index.taro.vue.d.ts +38 -0
  111. package/dist/types/__VUE/timepannel/index.taro.vue.d.ts +42 -0
  112. package/dist/types/__VUE/timeselect/index.taro.vue.d.ts +91 -0
  113. package/dist/types/__VUE/toast/index.taro.vue.d.ts +184 -0
  114. package/dist/types/__VUE/tour/index.taro.vue.d.ts +192 -0
  115. package/dist/types/__VUE/trendarrow/index.taro.vue.d.ts +105 -0
  116. package/dist/types/__VUE/uploader/index.taro.vue.d.ts +260 -0
  117. package/dist/types/__VUE/watermark/index.taro.vue.d.ts +175 -0
  118. package/dist/types/index.d.ts +1 -1
  119. package/dist/types/nutui.taro.vue.build.d.ts +106 -0
  120. 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, "icons")
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: !_ctx.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: "40px"
17
+ default: ""
18
18
  },
19
19
  buttonSize: {
20
20
  type: [Number, String],
21
- default: "20px"
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, "leftIcon", {}, () => [
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, "rightIcon", {}, () => [
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
- !count && body.classList.add(CLSNAME);
11
- count++;
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
- count--;
17
- !count && body.classList.remove(CLSNAME);
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
- console.error("[NutUI] <Tabs> 请检查 v-model 值是否为 paneKey ,如 paneKey 未设置,请采用下标控制 .");
121
- } else {
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
- > input {
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;
@@ -21,6 +21,7 @@
21
21
 
22
22
  &_icon-box {
23
23
  padding: 0px;
24
+ line-height: 1;
24
25
  display: flex;
25
26
  flex-direction: column;
26
27
  align-items: center;
@@ -28,6 +29,7 @@
28
29
  .nut-icon {
29
30
  width: 20px;
30
31
  height: 20px;
32
+ font-size: 20px;
31
33
  }
32
34
 
33
35
  &_tips {
@@ -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.22",
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": "`40px`",
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": "`20px`",
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 | string",
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": "numberstring",
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": "numberstring",
6363
+ "type": "number | string",
6355
6364
  "kind": "expression"
6356
6365
  }
6357
6366
  },