@nutui/nutui 3.1.13 → 3.1.15

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/CHANGELOG.md +39 -1
  2. package/README.md +3 -3
  3. package/dist/nutui.d.ts +8 -5
  4. package/dist/nutui.es.js +727 -413
  5. package/dist/nutui.umd.js +733 -416
  6. package/dist/packages/_es/ActionSheet.js +1 -1
  7. package/dist/packages/_es/Address.js +2 -4
  8. package/dist/packages/_es/Avatar.js +1 -1
  9. package/dist/packages/_es/BackTop.js +1 -1
  10. package/dist/packages/_es/Badge.js +1 -1
  11. package/dist/packages/_es/Barrage.js +1 -1
  12. package/dist/packages/_es/Button.js +1 -1
  13. package/dist/packages/_es/Calendar.js +1 -1
  14. package/dist/packages/_es/Card.js +1 -1
  15. package/dist/packages/_es/Cascader.js +1 -1
  16. package/dist/packages/_es/Cell.js +1 -1
  17. package/dist/packages/_es/CellGroup.js +1 -1
  18. package/dist/packages/_es/Checkbox.js +1 -1
  19. package/dist/packages/_es/CheckboxGroup.js +1 -1
  20. package/dist/packages/_es/CircleProgress.js +1 -1
  21. package/dist/packages/_es/Col.js +1 -1
  22. package/dist/packages/_es/Collapse.js +1 -1
  23. package/dist/packages/_es/CollapseItem.js +11 -3
  24. package/dist/packages/_es/CountDown.js +1 -1
  25. package/dist/packages/_es/CountUp.js +1 -1
  26. package/dist/packages/_es/DatePicker.js +2 -3
  27. package/dist/packages/_es/Dialog.js +1 -1
  28. package/dist/packages/_es/Divider.js +1 -1
  29. package/dist/packages/_es/Drag.js +1 -1
  30. package/dist/packages/_es/Elevator.js +1 -1
  31. package/dist/packages/_es/Empty.js +1 -1
  32. package/dist/packages/_es/FixedNav.js +1 -1
  33. package/dist/packages/_es/Form.js +10 -7
  34. package/dist/packages/_es/FormItem.js +1 -1
  35. package/dist/packages/_es/Grid.js +1 -1
  36. package/dist/packages/_es/GridItem.js +1 -1
  37. package/dist/packages/_es/Icon.js +1 -1
  38. package/dist/packages/_es/ImagePreview.js +104 -10
  39. package/dist/packages/_es/Indicator.js +1 -1
  40. package/dist/packages/_es/InfiniteLoading.js +1 -1
  41. package/dist/packages/_es/Input.js +1 -1
  42. package/dist/packages/_es/InputNumber.js +2 -2
  43. package/dist/packages/_es/Layout.js +1 -1
  44. package/dist/packages/_es/Menu.js +3 -3
  45. package/dist/packages/_es/MenuItem.js +1 -1
  46. package/dist/packages/_es/Navbar.js +1 -1
  47. package/dist/packages/_es/NoticeBar.js +2 -2
  48. package/dist/packages/_es/Notify.js +1 -1
  49. package/dist/packages/_es/NumberKeyboard.js +1 -1
  50. package/dist/packages/_es/OverLay.js +1 -1
  51. package/dist/packages/_es/Pagination.js +1 -1
  52. package/dist/packages/_es/Picker.js +1 -1
  53. package/dist/packages/_es/Popover.js +1 -1
  54. package/dist/packages/_es/Popup.js +8 -4
  55. package/dist/packages/_es/Price.js +1 -1
  56. package/dist/packages/_es/Progress.js +1 -1
  57. package/dist/packages/_es/Radio.js +1 -1
  58. package/dist/packages/_es/RadioGroup.js +1 -1
  59. package/dist/packages/_es/Range.js +2 -2
  60. package/dist/packages/_es/Rate.js +1 -1
  61. package/dist/packages/_es/Row.js +1 -1
  62. package/dist/packages/_es/SearchBar.js +1 -1
  63. package/dist/packages/_es/ShortPassword.js +1 -1
  64. package/dist/packages/_es/SideNavBar.js +104 -0
  65. package/dist/packages/_es/SideNavBarItem.js +50 -0
  66. package/dist/packages/_es/Signature.js +1 -1
  67. package/dist/packages/_es/Skeleton.js +1 -1
  68. package/dist/packages/_es/Sku.js +1 -1
  69. package/dist/packages/_es/Step.js +1 -1
  70. package/dist/packages/_es/Steps.js +1 -1
  71. package/dist/packages/_es/SubSideNavBar.js +104 -0
  72. package/dist/packages/_es/Swipe.js +1 -1
  73. package/dist/packages/_es/Swiper.js +1 -1
  74. package/dist/packages/_es/SwiperItem.js +1 -1
  75. package/dist/packages/_es/Switch.js +1 -1
  76. package/dist/packages/_es/TabPane.js +1 -1
  77. package/dist/packages/_es/Tabbar.js +6 -2
  78. package/dist/packages/_es/TabbarItem.js +1 -1
  79. package/dist/packages/_es/Table.js +9 -3
  80. package/dist/packages/_es/Tabs.js +1 -1
  81. package/dist/packages/_es/Tag.js +1 -1
  82. package/dist/packages/_es/TextArea.js +9 -4
  83. package/dist/packages/_es/TimeDetail.js +1 -1
  84. package/dist/packages/_es/TimePannel.js +1 -1
  85. package/dist/packages/_es/TimeSelect.js +1 -1
  86. package/dist/packages/_es/Toast.js +1 -1
  87. package/dist/packages/_es/Uploader.js +1 -1
  88. package/dist/packages/_es/Video.js +1 -1
  89. package/dist/packages/_es/common.js +1 -1
  90. package/dist/packages/_es/component.js +1 -1
  91. package/dist/packages/_es/index.js +1 -1
  92. package/dist/packages/_es/index2.js +1 -1
  93. package/dist/packages/_es/index3.js +1 -1
  94. package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
  95. package/dist/packages/_es/pxCheck.js +1 -1
  96. package/dist/packages/_es/raf.js +1 -1
  97. package/dist/packages/_es/util.js +1 -1
  98. package/dist/packages/actionsheet/index.scss +2 -2
  99. package/dist/packages/address/index.scss +2 -0
  100. package/dist/packages/cascader/index.scss +13 -13
  101. package/dist/packages/icon/index.scss +101 -11
  102. package/dist/packages/imagepreview/index.scss +1 -0
  103. package/dist/packages/menu/index.scss +10 -6
  104. package/dist/packages/menuitem/index.scss +8 -7
  105. package/dist/packages/noticebar/index.scss +11 -11
  106. package/dist/packages/picker/index.scss +2 -6
  107. package/dist/packages/progress/index.scss +2 -8
  108. package/dist/packages/shortpassword/index.scss +6 -6
  109. package/dist/packages/sidenavbar/index.scss +14 -0
  110. package/dist/packages/sidenavbaritem/index.scss +10 -0
  111. package/dist/packages/sku/index.scss +1 -1
  112. package/dist/packages/subsidenavbar/index.scss +39 -0
  113. package/dist/packages/tabbar/index.scss +5 -1
  114. package/dist/packages/textarea/index.scss +1 -1
  115. package/dist/style.css +1 -1
  116. package/dist/styles/animation/icon.scss +245 -0
  117. package/dist/styles/animation/index.scss +1 -0
  118. package/dist/styles/font/config.json +36 -0
  119. package/dist/styles/font/demo_index.html +26 -3
  120. package/dist/styles/font/iconfont.css +7 -3
  121. package/dist/styles/font/iconfont.js +1 -1
  122. package/dist/styles/font/iconfont.json +7 -0
  123. package/dist/styles/font/iconfont.ttf +0 -0
  124. package/dist/styles/font/iconfont.woff +0 -0
  125. package/dist/styles/font/iconfont.woff2 +0 -0
  126. package/dist/styles/themes/default.scss +47 -44
  127. package/dist/styles/themes/jdd.scss +2 -0
  128. package/dist/styles/variables.scss +72 -68
  129. package/package.json +7 -3
  130. package/dist/styles/.DS_Store +0 -0
@@ -0,0 +1,245 @@
1
+ // 跳动
2
+ @-webkit-keyframes nutJump {
3
+ to {
4
+ transform: scale3d(0.8, 1, 0.9) translateY(-10px);
5
+ }
6
+ }
7
+
8
+ @keyframes nutJump {
9
+ to {
10
+ transform: scale3d(0.8, 1, 0.9) translateY(-10px);
11
+ }
12
+ }
13
+
14
+ @-webkit-keyframes nutJumpOne {
15
+ 50% {
16
+ transform: scale3d(0.8, 1, 0.9) translateY(-10px);
17
+ }
18
+
19
+ 100% {
20
+ transform: scale3d(1, 1, 1) translateY(0);
21
+ }
22
+ }
23
+
24
+ @keyframes nutJumpOne {
25
+ 50% {
26
+ transform: scale3d(0.8, 1, 0.9) translateY(-10px);
27
+ }
28
+
29
+ 100% {
30
+ transform: scale3d(1, 1, 1) translateY(0);
31
+ }
32
+ }
33
+
34
+ // 闪烁
35
+ @-webkit-keyframes nutBlink {
36
+ 0% {
37
+ opacity: 0;
38
+ }
39
+
40
+ 100% {
41
+ opacity: 1;
42
+ }
43
+ }
44
+
45
+ @keyframes nutBlink {
46
+ 0% {
47
+ opacity: 0;
48
+ }
49
+
50
+ 100% {
51
+ opacity: 1;
52
+ }
53
+ }
54
+
55
+ // 呼吸
56
+ @-webkit-keyframes nutBreathe {
57
+ from,
58
+ to {
59
+ transform: scale(1);
60
+ }
61
+ 50% {
62
+ transform: scale(1.2);
63
+ }
64
+ }
65
+
66
+ @keyframes nutBreathe {
67
+ from,
68
+ to {
69
+ transform: scale(1);
70
+ }
71
+ 50% {
72
+ transform: scale(1.2);
73
+ }
74
+ }
75
+
76
+ // 闪现
77
+ @-webkit-keyframes nutFlash {
78
+ from,
79
+ 50%,
80
+ to {
81
+ opacity: 1;
82
+ }
83
+
84
+ 25%,
85
+ 75% {
86
+ opacity: 0;
87
+ }
88
+ }
89
+
90
+ @keyframes nutFlash {
91
+ from,
92
+ 50%,
93
+ to {
94
+ opacity: 1;
95
+ }
96
+
97
+ 25%,
98
+ 75% {
99
+ opacity: 0;
100
+ }
101
+ }
102
+
103
+ // 弹动
104
+ @-webkit-keyframes nutBounce {
105
+ from,
106
+ 20%,
107
+ 53%,
108
+ to {
109
+ -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
110
+ animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
111
+ -webkit-transform: translate3d(0, 0, 0);
112
+ transform: translate3d(0, 0, 0);
113
+ }
114
+
115
+ 40%,
116
+ 43% {
117
+ -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
118
+ animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
119
+ -webkit-transform: translate3d(0, -30px, 0) scaleY(1.1);
120
+ transform: translate3d(0, -30px, 0) scaleY(1.1);
121
+ }
122
+
123
+ 70% {
124
+ -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
125
+ animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
126
+ -webkit-transform: translate3d(0, -15px, 0) scaleY(1.05);
127
+ transform: translate3d(0, -15px, 0) scaleY(1.05);
128
+ }
129
+
130
+ 80% {
131
+ -webkit-transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
132
+ transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
133
+ -webkit-transform: translate3d(0, 0, 0) scaleY(0.95);
134
+ transform: translate3d(0, 0, 0) scaleY(0.95);
135
+ }
136
+
137
+ 90% {
138
+ -webkit-transform: translate3d(0, -4px, 0) scaleY(1.02);
139
+ transform: translate3d(0, -4px, 0) scaleY(1.02);
140
+ }
141
+ }
142
+
143
+ @keyframes nutBounce {
144
+ from,
145
+ 20%,
146
+ 53%,
147
+ to {
148
+ -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
149
+ animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
150
+ -webkit-transform: translate3d(0, 0, 0);
151
+ transform: translate3d(0, 0, 0);
152
+ }
153
+
154
+ 40%,
155
+ 43% {
156
+ -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
157
+ animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
158
+ -webkit-transform: translate3d(0, -30px, 0) scaleY(1.1);
159
+ transform: translate3d(0, -30px, 0) scaleY(1.1);
160
+ }
161
+
162
+ 70% {
163
+ -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
164
+ animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
165
+ -webkit-transform: translate3d(0, -15px, 0) scaleY(1.05);
166
+ transform: translate3d(0, -15px, 0) scaleY(1.05);
167
+ }
168
+
169
+ 80% {
170
+ -webkit-transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
171
+ transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
172
+ -webkit-transform: translate3d(0, 0, 0) scaleY(0.95);
173
+ transform: translate3d(0, 0, 0) scaleY(0.95);
174
+ }
175
+
176
+ 90% {
177
+ -webkit-transform: translate3d(0, -4px, 0) scaleY(1.02);
178
+ transform: translate3d(0, -4px, 0) scaleY(1.02);
179
+ }
180
+ }
181
+
182
+ // 抖动
183
+ @-webkit-keyframes nutShake {
184
+ 0% {
185
+ -webkit-transform: translateX(0);
186
+ transform: translateX(0);
187
+ }
188
+
189
+ 6.5% {
190
+ -webkit-transform: translateX(-6px) rotateY(-9deg);
191
+ transform: translateX(-6px) rotateY(-9deg);
192
+ }
193
+
194
+ 18.5% {
195
+ -webkit-transform: translateX(5px) rotateY(7deg);
196
+ transform: translateX(5px) rotateY(7deg);
197
+ }
198
+
199
+ 31.5% {
200
+ -webkit-transform: translateX(-3px) rotateY(-5deg);
201
+ transform: translateX(-3px) rotateY(-5deg);
202
+ }
203
+
204
+ 43.5% {
205
+ -webkit-transform: translateX(2px) rotateY(3deg);
206
+ transform: translateX(2px) rotateY(3deg);
207
+ }
208
+
209
+ 50% {
210
+ -webkit-transform: translateX(0);
211
+ transform: translateX(0);
212
+ }
213
+ }
214
+
215
+ @keyframes nutShake {
216
+ 0% {
217
+ -webkit-transform: translateX(0);
218
+ transform: translateX(0);
219
+ }
220
+
221
+ 6.5% {
222
+ -webkit-transform: translateX(-6px) rotateY(-9deg);
223
+ transform: translateX(-6px) rotateY(-9deg);
224
+ }
225
+
226
+ 18.5% {
227
+ -webkit-transform: translateX(5px) rotateY(7deg);
228
+ transform: translateX(5px) rotateY(7deg);
229
+ }
230
+
231
+ 31.5% {
232
+ -webkit-transform: translateX(-3px) rotateY(-5deg);
233
+ transform: translateX(-3px) rotateY(-5deg);
234
+ }
235
+
236
+ 43.5% {
237
+ -webkit-transform: translateX(2px) rotateY(3deg);
238
+ transform: translateX(2px) rotateY(3deg);
239
+ }
240
+
241
+ 50% {
242
+ -webkit-transform: translateX(0);
243
+ transform: translateX(0);
244
+ }
245
+ }
@@ -4,3 +4,4 @@
4
4
  @import 'ease.scss';
5
5
  @import 'drop.scss';
6
6
  @import 'rotate.scss';
7
+ @import 'icon.scss';
@@ -117,5 +117,41 @@
117
117
  "loading1"
118
118
  ]
119
119
  }
120
+
121
+ ],
122
+ "style":[
123
+ {
124
+ "name": "通用动态样式",
125
+ "icons": [{
126
+ "name":"dou-arrow-up",
127
+ "animation-name":"am-jump",
128
+ "animation-time":"am-infinite"
129
+ },{
130
+ "name":"star",
131
+ "animation-name":"am-blink",
132
+ "animation-time":"am-infinite"
133
+ },{
134
+ "name":"refresh2",
135
+ "animation-name":"am-rotate",
136
+ "animation-time":"am-infinite"
137
+ },{
138
+ "name":"heart-fill",
139
+ "animation-name":"am-breathe",
140
+ "animation-time":"am-infinite"
141
+ },{
142
+ "name":"microphone",
143
+ "animation-name":"am-flash",
144
+ "animation-time":"am-infinite"
145
+ },{
146
+ "name":"download",
147
+ "animation-name":"am-bounce",
148
+ "animation-time":"am-infinite"
149
+ },{
150
+ "name":"message",
151
+ "animation-name":"am-shake",
152
+ "animation-time":"am-infinite"
153
+ }
154
+ ]
155
+ }
120
156
  ]
121
157
  }
@@ -54,6 +54,12 @@
54
54
  <div class="content unicode" style="display: block;">
55
55
  <ul class="icon_lists dib-box">
56
56
 
57
+ <li class="dib">
58
+ <span class="icon nutui-iconfont">&#xe603;</span>
59
+ <div class="name">dou-arrow-up</div>
60
+ <div class="code-name">&amp;#xe603;</div>
61
+ </li>
62
+
57
63
  <li class="dib">
58
64
  <span class="icon nutui-iconfont">&#xe614;</span>
59
65
  <div class="name">loading2</div>
@@ -738,9 +744,9 @@
738
744
  <pre><code class="language-css"
739
745
  >@font-face {
740
746
  font-family: 'nutui-iconfont';
741
- src: url('iconfont.woff2?t=1637809232376') format('woff2'),
742
- url('iconfont.woff?t=1637809232376') format('woff'),
743
- url('iconfont.ttf?t=1637809232376') format('truetype');
747
+ src: url('iconfont.woff2?t=1642470100417') format('woff2'),
748
+ url('iconfont.woff?t=1642470100417') format('woff'),
749
+ url('iconfont.ttf?t=1642470100417') format('truetype');
744
750
  }
745
751
  </code></pre>
746
752
  <h3 id="-iconfont-">第二步:定义使用 iconfont 的样式</h3>
@@ -766,6 +772,15 @@
766
772
  <div class="content font-class">
767
773
  <ul class="icon_lists dib-box">
768
774
 
775
+ <li class="dib">
776
+ <span class="icon nutui-iconfont nut-icon-dou-arrow-up"></span>
777
+ <div class="name">
778
+ dou-arrow-up
779
+ </div>
780
+ <div class="code-name">.nut-icon-dou-arrow-up
781
+ </div>
782
+ </li>
783
+
769
784
  <li class="dib">
770
785
  <span class="icon nutui-iconfont nut-icon-loading1"></span>
771
786
  <div class="name">
@@ -1792,6 +1807,14 @@
1792
1807
  <div class="content symbol">
1793
1808
  <ul class="icon_lists dib-box">
1794
1809
 
1810
+ <li class="dib">
1811
+ <svg class="icon svg-icon" aria-hidden="true">
1812
+ <use xlink:href="#nut-icon-dou-arrow-up"></use>
1813
+ </svg>
1814
+ <div class="name">dou-arrow-up</div>
1815
+ <div class="code-name">#nut-icon-dou-arrow-up</div>
1816
+ </li>
1817
+
1795
1818
  <li class="dib">
1796
1819
  <svg class="icon svg-icon" aria-hidden="true">
1797
1820
  <use xlink:href="#nut-icon-loading1"></use>
@@ -1,8 +1,8 @@
1
1
  @font-face {
2
2
  font-family: "nutui-iconfont"; /* Project id 2166874 */
3
- src: url('iconfont.woff2?t=1637809232376') format('woff2'),
4
- url('iconfont.woff?t=1637809232376') format('woff'),
5
- url('iconfont.ttf?t=1637809232376') format('truetype');
3
+ src: url('iconfont.woff2?t=1642470100417') format('woff2'),
4
+ url('iconfont.woff?t=1642470100417') format('woff'),
5
+ url('iconfont.ttf?t=1642470100417') format('truetype');
6
6
  }
7
7
 
8
8
  .nutui-iconfont {
@@ -13,6 +13,10 @@
13
13
  -moz-osx-font-smoothing: grayscale;
14
14
  }
15
15
 
16
+ .nut-icon-dou-arrow-up:before {
17
+ content: "\e603";
18
+ }
19
+
16
20
  .nut-icon-loading1:before {
17
21
  content: "\e614";
18
22
  }