@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.
Files changed (130) hide show
  1. package/dist/nutui.es.js +1 -1
  2. package/dist/nutui.umd.js +158 -2
  3. package/dist/packages/_es/ActionSheet.js +2 -2
  4. package/dist/packages/_es/Address.js +7 -10
  5. package/dist/packages/_es/AddressList.js +1 -1
  6. package/dist/packages/_es/Animate.js +1 -1
  7. package/dist/packages/_es/Audio.js +1 -7
  8. package/dist/packages/_es/AudioOperate.js +1 -2
  9. package/dist/packages/_es/Avatar.js +1 -3
  10. package/dist/packages/_es/AvatarGroup.js +1 -2
  11. package/dist/packages/_es/Backtop.js +1 -1
  12. package/dist/packages/_es/Badge.js +1 -1
  13. package/dist/packages/_es/Barrage.js +1 -1
  14. package/dist/packages/_es/Button.js +1 -1
  15. package/dist/packages/_es/Calendar.js +3 -3
  16. package/dist/packages/_es/CalendarItem.js +2 -2
  17. package/dist/packages/_es/Card.js +1 -1
  18. package/dist/packages/_es/Cascader.js +4 -5
  19. package/dist/packages/_es/Category.js +1 -3
  20. package/dist/packages/_es/CategoryPane.js +1 -4
  21. package/dist/packages/_es/Cell.js +1 -2
  22. package/dist/packages/_es/CellGroup.js +1 -1
  23. package/dist/packages/_es/Checkbox.js +1 -1
  24. package/dist/packages/_es/CheckboxGroup.js +1 -1
  25. package/dist/packages/_es/CircleProgress.js +1 -1
  26. package/dist/packages/_es/Col.js +1 -1
  27. package/dist/packages/_es/Collapse.js +1 -1
  28. package/dist/packages/_es/CollapseItem.js +1 -2
  29. package/dist/packages/_es/Comment.js +1 -6
  30. package/dist/packages/_es/ConfigProvider.js +34 -2
  31. package/dist/packages/_es/Countdown.js +1 -9
  32. package/dist/packages/_es/Countup.js +1 -11
  33. package/dist/packages/_es/DatePicker.js +1 -3
  34. package/dist/packages/_es/Dialog.js +4 -7
  35. package/dist/packages/_es/Divider.js +1 -1
  36. package/dist/packages/_es/Drag.js +1 -1
  37. package/dist/packages/_es/Ecard.js +1 -1
  38. package/dist/packages/_es/Elevator.js +1 -1
  39. package/dist/packages/_es/Ellipsis.js +1 -3
  40. package/dist/packages/_es/Empty.js +1 -4
  41. package/dist/packages/_es/FixedNav.js +1 -1
  42. package/dist/packages/_es/Form.js +1 -1
  43. package/dist/packages/_es/FormItem.js +1 -1
  44. package/dist/packages/_es/Grid.js +2 -2
  45. package/dist/packages/_es/GridItem.js +2 -3
  46. package/dist/packages/_es/Image.js +1 -1
  47. package/dist/packages/_es/ImagePreview.js +8 -7
  48. package/dist/packages/_es/Indicator.js +1 -1
  49. package/dist/packages/_es/InfiniteLoading.js +1 -1
  50. package/dist/packages/_es/Input.js +1 -3
  51. package/dist/packages/_es/InputNumber.js +1 -1
  52. package/dist/packages/_es/Invoice.js +4 -6
  53. package/dist/packages/_es/Layout.js +1 -1
  54. package/dist/packages/_es/List.js +1 -1
  55. package/dist/packages/_es/Menu.js +1 -1
  56. package/dist/packages/_es/MenuItem.js +2 -2
  57. package/dist/packages/_es/Navbar.js +1 -7
  58. package/dist/packages/_es/Noticebar.js +1 -2
  59. package/dist/packages/_es/Notify.js +2 -5
  60. package/dist/packages/_es/NumberKeyboard.js +2 -2
  61. package/dist/packages/_es/Overlay.js +1 -1
  62. package/dist/packages/_es/Pagination.js +1 -1
  63. package/dist/packages/_es/Picker.js +1 -3
  64. package/dist/packages/_es/Popover.js +2 -2
  65. package/dist/packages/_es/Popup.js +2 -2
  66. package/dist/packages/_es/Price.js +1 -1
  67. package/dist/packages/_es/Progress.js +1 -1
  68. package/dist/packages/_es/PullRefresh.js +1 -5
  69. package/dist/packages/_es/Radio.js +2 -2
  70. package/dist/packages/_es/RadioGroup.js +2 -2
  71. package/dist/packages/_es/Range.js +1 -1
  72. package/dist/packages/_es/Rate.js +1 -1
  73. package/dist/packages/_es/Row.js +1 -1
  74. package/dist/packages/_es/Searchbar.js +1 -2
  75. package/dist/packages/_es/ShortPassword.js +2 -3
  76. package/dist/packages/_es/SideNavbar.js +1 -1
  77. package/dist/packages/_es/SideNavbarItem.js +1 -1
  78. package/dist/packages/_es/Signature.js +1 -1
  79. package/dist/packages/_es/Skeleton.js +1 -11
  80. package/dist/packages/_es/Sku.js +2 -16
  81. package/dist/packages/_es/Step.js +1 -1
  82. package/dist/packages/_es/Steps.js +1 -1
  83. package/dist/packages/_es/Sticky.js +2 -2
  84. package/dist/packages/_es/SubSideNavbar.js +1 -1
  85. package/dist/packages/_es/Swipe.js +1 -1
  86. package/dist/packages/_es/Swiper.js +1 -2
  87. package/dist/packages/_es/SwiperItem.js +1 -1
  88. package/dist/packages/_es/Switch.js +1 -1
  89. package/dist/packages/_es/TabPane.js +1 -1
  90. package/dist/packages/_es/Tabbar.js +1 -1
  91. package/dist/packages/_es/TabbarItem.js +1 -6
  92. package/dist/packages/_es/Table.js +1 -1
  93. package/dist/packages/_es/Tabs.js +43 -8
  94. package/dist/packages/_es/Tag.js +1 -1
  95. package/dist/packages/_es/Textarea.js +1 -2
  96. package/dist/packages/_es/TimeDetail.js +1 -1
  97. package/dist/packages/_es/TimePannel.js +1 -1
  98. package/dist/packages/_es/TimeSelect.js +2 -2
  99. package/dist/packages/_es/Toast.js +2 -10
  100. package/dist/packages/_es/Tour.js +2 -3
  101. package/dist/packages/_es/TrendArrow.js +1 -1
  102. package/dist/packages/_es/Uploader.js +2 -4
  103. package/dist/packages/_es/Video.js +1 -19
  104. package/dist/packages/_es/Watermark.js +1 -1
  105. package/dist/packages/_es/{common-b9a5e726.js → common-05c67d9a.js} +1 -9
  106. package/dist/packages/_es/{component-81a4c1d0.js → component-bb5ff48e.js} +6 -6
  107. package/dist/packages/_es/{index-2ae3ae87.js → index-4f2972bc.js} +1 -38
  108. package/dist/packages/_es/{index-991c279f.js → index-a564e25f.js} +1 -1
  109. package/dist/packages/_es/{index.vue_vue_type_script_lang-442e4704.js → index.vue_vue_type_script_lang-8b9f3de5.js} +1 -2
  110. package/dist/packages/_es/{index.vue_vue_type_script_lang-cc5c4086.js → index.vue_vue_type_script_lang-8f90bbd8.js} +1 -1
  111. package/dist/packages/_es/{index.vue_vue_type_script_lang-22dfc112.js → index.vue_vue_type_script_lang-ee936659.js} +1 -2
  112. package/dist/packages/_es/{interceptor-956b24fc.js → interceptor-648bf3d0.js} +1 -1
  113. package/dist/packages/_es/{mountComponent-1ece4110.js → mountComponent-3865592f.js} +1 -1
  114. package/dist/packages/address/index.scss +1 -1
  115. package/dist/packages/menuitem/index.scss +2 -2
  116. package/dist/packages/tabs/index.scss +13 -0
  117. package/dist/packages/textarea/index.scss +2 -0
  118. package/dist/smartips/web-types.json +29 -2
  119. package/dist/style.css +1 -1
  120. package/dist/styles/themes/default.scss +44 -44
  121. package/dist/styles/themes/jdb.scss +44 -44
  122. package/dist/styles/themes/jddkh.scss +44 -44
  123. package/dist/styles/themes/jdt.scss +44 -44
  124. package/dist/styles/variables-jdt.scss +1 -1
  125. package/dist/types/__VUE/configprovider/index.vue.d.ts +2 -2
  126. package/dist/types/__VUE/swiper/index.vue.d.ts +1 -1
  127. package/dist/types/__VUE/tabs/index.vue.d.ts +2 -0
  128. package/dist/types/__VUE/tabs/types.d.ts +12 -0
  129. package/dist/types/index.d.ts +1 -1
  130. package/package.json +4 -2
@@ -1,5 +1,5 @@
1
1
  import { shallowReactive, getCurrentInstance, provide, markRaw, isVNode, computed, h } from "vue";
2
- import { c as createComponent } from "./component-81a4c1d0.js";
2
+ import { c as createComponent } from "./component-bb5ff48e.js";
3
3
  import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
4
4
  function flattenVNodes(children, childName) {
5
5
  const result = [];
@@ -68,41 +68,33 @@ function useProvide(key, childName) {
68
68
  const { componentName } = createComponent("grid");
69
69
  const GRID_KEY = Symbol("grid");
70
70
  const gridProps = {
71
- // 列数
72
71
  columnNum: {
73
72
  type: [Number, String],
74
73
  default: 4
75
74
  },
76
- // 是否显示边框
77
75
  border: {
78
76
  type: Boolean,
79
77
  default: true
80
78
  },
81
- // 格子之间间隔距离
82
79
  gutter: {
83
80
  type: [Number, String],
84
81
  default: 0
85
82
  },
86
- // 是否内容居中
87
83
  center: {
88
84
  type: Boolean,
89
85
  default: true
90
86
  },
91
- // 是否固定正方形
92
87
  square: {
93
88
  type: Boolean,
94
89
  default: false
95
90
  },
96
- // 内容与文字翻转
97
91
  reverse: {
98
92
  type: Boolean,
99
93
  default: false
100
94
  },
101
- // 内容排列方向
102
95
  direction: {
103
96
  type: String
104
97
  },
105
- // 是否开启点击反馈
106
98
  clickable: {
107
99
  type: Boolean,
108
100
  default: false
@@ -127,15 +127,15 @@ function createComponent(name) {
127
127
  }
128
128
  export {
129
129
  TypeOfFun as T,
130
- isDate as a,
130
+ isArray as a,
131
131
  body as b,
132
132
  createComponent as c,
133
- preventDefault as d,
134
- clamp as e,
135
- isPromise as f,
136
- isObject as g,
133
+ isDate as d,
134
+ preventDefault as e,
135
+ clamp as f,
136
+ isPromise as g,
137
137
  getPropByPath as h,
138
- isArray as i,
138
+ isObject as i,
139
139
  isString as j,
140
140
  isFunction as k,
141
141
  getScrollTopRoot as l,
@@ -1,20 +1,12 @@
1
1
  import { ref, computed, reactive, watch, toRefs, openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createCommentVNode, renderSlot, Fragment, renderList, normalizeStyle, createTextVNode } from "vue";
2
- import { c as createComponent } from "./component-81a4c1d0.js";
2
+ import { c as createComponent } from "./component-bb5ff48e.js";
3
3
  import { r as requestAniFrame } from "./raf-729dad54.js";
4
4
  import { u as useExpose } from "./index-79c5dc33.js";
5
5
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
6
6
  const Utils = {
7
- /**
8
- * 是否为闫年
9
- * @return {Boolse} true|false
10
- */
11
7
  isLeapYear: function(y) {
12
8
  return y % 4 == 0 && y % 100 != 0 || y % 400 == 0;
13
9
  },
14
- /**
15
- * 返回星期数
16
- * @return {String}
17
- */
18
10
  getWhatDay: function(year, month, day) {
19
11
  const date = new Date(year + "/" + month + "/" + day);
20
12
  const index = date.getDay();
@@ -29,10 +21,6 @@ const Utils = {
29
21
  ];
30
22
  return dayNames[index];
31
23
  },
32
- /**
33
- * 返回星期数
34
- * @return {Number}
35
- */
36
24
  getMonthPreDay: function(year, month) {
37
25
  const date = new Date(year + "/" + month + "/01");
38
26
  let day = date.getDay();
@@ -41,10 +29,6 @@ const Utils = {
41
29
  }
42
30
  return day;
43
31
  },
44
- /**
45
- * 返回月份天数
46
- * @return {Number}
47
- */
48
32
  getMonthDays: function(year, month) {
49
33
  if (/^0/.test(month)) {
50
34
  month = month.split("")[1];
@@ -65,18 +49,10 @@ const Utils = {
65
49
  31
66
50
  ][month];
67
51
  },
68
- /**
69
- * 补齐数字位数
70
- * @return {string}
71
- */
72
52
  getNumTwoBit: function(n) {
73
53
  n = Number(n);
74
54
  return (n > 9 ? "" : "0") + n;
75
55
  },
76
- /**
77
- * 日期对象转成字符串
78
- * @return {string}
79
- */
80
56
  date2Str: function(date, split) {
81
57
  split = split || "-";
82
58
  const y = date.getFullYear();
@@ -84,11 +60,6 @@ const Utils = {
84
60
  const d = this.getNumTwoBit(date.getDate());
85
61
  return [y, m, d].join(split);
86
62
  },
87
- /**
88
- * 返回日期格式字符串
89
- * @param {Number} 0返回今天的日期、1返回明天的日期,2返回后天得日期,依次类推
90
- * @return {string} '2014-12-31'
91
- */
92
63
  getDay: function(i) {
93
64
  i = i || 0;
94
65
  let date = new Date();
@@ -96,10 +67,6 @@ const Utils = {
96
67
  date = new Date(date.getTime() + diff);
97
68
  return this.date2Str(date);
98
69
  },
99
- /**
100
- * 时间比较
101
- * @return {Boolean}
102
- */
103
70
  compareDate: function(date1, date2) {
104
71
  const startTime = new Date(date1.replace("-", "/").replace("-", "/"));
105
72
  const endTime = new Date(date2.replace("-", "/").replace("-", "/"));
@@ -108,10 +75,6 @@ const Utils = {
108
75
  }
109
76
  return true;
110
77
  },
111
- /**
112
- * 时间是否相等
113
- * @return {Boolean}
114
- */
115
78
  isEqual: function(date1, date2) {
116
79
  const startTime = new Date(date1).getTime();
117
80
  const endTime = new Date(date2).getTime();
@@ -1,4 +1,4 @@
1
- import { c as createComponent } from "./component-81a4c1d0.js";
1
+ import { c as createComponent } from "./component-bb5ff48e.js";
2
2
  import { reactive, computed, watch, watchEffect, toRefs, resolveComponent, openBlock, createBlock, Teleport, mergeProps, createCommentVNode, createVNode, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, renderSlot, createElementBlock, vShow } from "vue";
3
3
  import Overlay from "./Overlay.js";
4
4
  import { Close } from "@nutui/icons-vue";
@@ -1,5 +1,5 @@
1
1
  import { inject, computed, h } from "vue";
2
- import { c as createComponent } from "./component-81a4c1d0.js";
2
+ import { c as createComponent } from "./component-bb5ff48e.js";
3
3
  import { CheckNormal, CheckChecked } from "@nutui/icons-vue";
4
4
  import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
5
5
  const { componentName, create } = createComponent("radio");
@@ -16,7 +16,6 @@ const _sfc_main = create({
16
16
  shape: {
17
17
  type: String,
18
18
  default: "round"
19
- // button
20
19
  },
21
20
  label: {
22
21
  type: [String, Number, Boolean],
@@ -1,5 +1,5 @@
1
1
  import { ref, reactive, computed, watch, onMounted, onUnmounted, h, unref } from "vue";
2
- import { c as createComponent } from "./component-81a4c1d0.js";
2
+ import { c as createComponent } from "./component-bb5ff48e.js";
3
3
  import { u as useRect } from "./index-29892cda.js";
4
4
  const { componentName, create } = createComponent("sticky");
5
5
  const _sfc_main = create({
@@ -1,5 +1,5 @@
1
1
  import { provide, readonly, computed, watch, h } from "vue";
2
- import { c as createComponent } from "./component-81a4c1d0.js";
2
+ import { c as createComponent } from "./component-bb5ff48e.js";
3
3
  const { componentName, create } = createComponent("radio-group");
4
4
  const _sfc_main = create({
5
5
  props: {
@@ -10,7 +10,6 @@ const _sfc_main = create({
10
10
  direction: {
11
11
  type: String,
12
12
  default: "vertical"
13
- //horizontal
14
13
  },
15
14
  textPosition: {
16
15
  type: String,
@@ -1,4 +1,4 @@
1
- import { f as isPromise } from "./component-81a4c1d0.js";
1
+ import { g as isPromise } from "./component-bb5ff48e.js";
2
2
  const funInterceptor = (interceptor, {
3
3
  args = [],
4
4
  done,
@@ -1,5 +1,5 @@
1
1
  import { createApp } from "vue";
2
- import { j as isString, k as isFunction } from "./component-81a4c1d0.js";
2
+ import { j as isString, k as isFunction } from "./component-bb5ff48e.js";
3
3
  const CreateComponent = (options, component) => {
4
4
  let elWarp = document.body;
5
5
  const teleport = options.teleport || "body";
@@ -63,7 +63,7 @@
63
63
  display: block;
64
64
  .nut-address__region {
65
65
  position: relative;
66
- margin-top: 32px;
66
+ // margin-top: 32px;
67
67
  padding: 0 20px;
68
68
  display: flex;
69
69
  font-size: $address-region-tab-font-size;
@@ -45,13 +45,13 @@
45
45
 
46
46
  .nut-menu-item-placeholder-element {
47
47
  position: fixed;
48
- top: -$menu-bar-line-height;
48
+ top: $menu-bar-line-height;
49
49
  left: 0;
50
50
  right: 0;
51
51
  z-index: $menu-bar-opened-z-index;
52
52
  background-color: transparent;
53
53
 
54
54
  &.up {
55
- bottom: -$menu-bar-line-height;
55
+ bottom: $menu-bar-line-height;
56
56
  }
57
57
  }
@@ -191,3 +191,16 @@
191
191
  box-sizing: border-box;
192
192
  }
193
193
  }
194
+ .tabs-scrollview {
195
+ white-space: nowrap;
196
+ }
197
+ .nut-tabs__titles-item {
198
+ &.nut-tabs__titles-placeholder {
199
+ width: auto;
200
+ min-width: 10px;
201
+ }
202
+ .taro {
203
+ height: 46px;
204
+ line-height: 46px;
205
+ }
206
+ }
@@ -59,5 +59,7 @@
59
59
  top: -999999px;
60
60
  left: -999999px;
61
61
  font-size: 14px;
62
+ line-height: 1.5;
63
+ font-family: monospace;
62
64
  }
63
65
  }
@@ -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",
5
+ "version": "4.0.1-beta.1",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [
@@ -1410,6 +1410,24 @@
1410
1410
  "type": "string",
1411
1411
  "kind": "expression"
1412
1412
  }
1413
+ },
1414
+ {
1415
+ "name": "font-class-name",
1416
+ "default": "`nutui-iconfont`",
1417
+ "description": "自定义 icon 字体基础类名",
1418
+ "value": {
1419
+ "type": "string",
1420
+ "kind": "expression"
1421
+ }
1422
+ },
1423
+ {
1424
+ "name": "class-prefix",
1425
+ "default": "`nut-icon`",
1426
+ "description": "自定义 icon 类名前缀,用于使用自定义图标",
1427
+ "value": {
1428
+ "type": "string",
1429
+ "kind": "expression"
1430
+ }
1413
1431
  }
1414
1432
  ]
1415
1433
  },
@@ -4360,7 +4378,7 @@
4360
4378
  },
4361
4379
  {
4362
4380
  "name": "size",
4363
- "default": "`large`",
4381
+ "default": "`normal`",
4364
4382
  "description": "价格尺寸,`small`、`normal`、`large`",
4365
4383
  "value": {
4366
4384
  "type": "string",
@@ -5891,6 +5909,15 @@
5891
5909
  "type": "number",
5892
5910
  "kind": "expression"
5893
5911
  }
5912
+ },
5913
+ {
5914
+ "name": "name",
5915
+ "default": "''",
5916
+ "description": "在`taro`环境下,必须设置`name`以开启标题栏自动滚动功能。",
5917
+ "value": {
5918
+ "type": "string",
5919
+ "kind": "expression"
5920
+ }
5894
5921
  }
5895
5922
  ]
5896
5923
  },