@nutui/nutui 3.1.6 → 3.1.7
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/CHANGELOG.md +40 -0
- package/dist/nutui.d.ts +7 -1
- package/dist/nutui.es.js +1097 -517
- package/dist/nutui.umd.js +1158 -571
- package/dist/packages/_es/ActionSheet.js +158 -0
- package/dist/packages/_es/Address.js +525 -0
- package/dist/packages/_es/Avatar.js +87 -0
- package/dist/packages/_es/BackTop.js +159 -0
- package/dist/packages/_es/Badge.js +90 -0
- package/dist/packages/_es/Barrage.js +118 -0
- package/dist/packages/_es/Button.js +124 -0
- package/dist/packages/_es/Calendar.js +700 -0
- package/dist/packages/_es/Cell.js +95 -0
- package/dist/packages/_es/CellGroup.js +42 -0
- package/dist/packages/_es/Checkbox.js +109 -0
- package/dist/packages/_es/CheckboxGroup.js +62 -0
- package/dist/packages/_es/CircleProgress.js +109 -0
- package/dist/packages/_es/Col.js +53 -0
- package/dist/packages/_es/Collapse.js +89 -0
- package/dist/packages/_es/CollapseItem.js +257 -0
- package/dist/packages/_es/CountDown.js +224 -0
- package/dist/packages/_es/CountUp.js +547 -0
- package/dist/packages/_es/DatePicker.js +282 -0
- package/dist/packages/_es/Dialog.js +313 -0
- package/dist/packages/_es/Divider.js +49 -0
- package/dist/packages/_es/Drag.js +198 -0
- package/dist/packages/_es/Elevator.js +207 -0
- package/dist/packages/_es/FixedNav.js +127 -0
- package/dist/packages/_es/Icon.js +44 -0
- package/dist/packages/_es/ImagePreview.js +109 -0
- package/dist/packages/_es/InfiniteLoading.js +265 -0
- package/dist/packages/_es/Input.js +183 -0
- package/dist/packages/_es/InputNumber.js +172 -0
- package/dist/packages/_es/Layout.js +10 -0
- package/dist/packages/_es/MenuItem.js +180 -0
- package/dist/packages/_es/Navbar.js +160 -0
- package/dist/packages/_es/NoticeBar.js +389 -0
- package/dist/packages/_es/Notify.js +233 -0
- package/dist/packages/_es/NumberKeyboard.js +248 -0
- package/dist/packages/_es/OverLay.js +118 -0
- package/dist/packages/_es/Pagination.js +163 -0
- package/dist/packages/_es/Picker.js +485 -0
- package/dist/packages/_es/Popover.js +157 -0
- package/dist/packages/_es/Popup.js +268 -0
- package/dist/packages/_es/Price.js +104 -0
- package/dist/packages/_es/Progress.js +131 -0
- package/dist/packages/_es/Radio.js +72 -0
- package/dist/packages/_es/RadioGroup.js +37 -0
- package/dist/packages/_es/Range.js +350 -0
- package/dist/packages/_es/Rate.js +129 -0
- package/dist/packages/_es/Row.js +61 -0
- package/dist/packages/_es/ShortPassword.js +221 -0
- package/dist/packages/_es/Signature.js +167 -0
- package/dist/packages/_es/Step.js +116 -0
- package/dist/packages/_es/Steps.js +52 -0
- package/dist/packages/_es/Swipe.js +193 -0
- package/dist/packages/_es/Swiper.js +429 -0
- package/dist/packages/_es/SwiperItem.js +60 -0
- package/dist/packages/_es/Switch.js +90 -0
- package/dist/packages/_es/Tab.js +179 -0
- package/dist/packages/_es/TabPane.js +42 -0
- package/dist/packages/_es/TabPanel.js +30 -0
- package/dist/packages/_es/Tabbar.js +73 -0
- package/dist/packages/_es/TabbarItem.js +142 -0
- package/dist/packages/_es/Tag.js +98 -0
- package/dist/packages/_es/TextArea.js +127 -0
- package/dist/packages/_es/Toast.js +317 -0
- package/dist/packages/_es/Uploader.js +400 -0
- package/dist/packages/_es/Video.js +405 -0
- package/dist/packages/_es/component.js +26 -0
- package/dist/packages/_es/index.js +64 -0
- package/dist/packages/_es/index2.js +13 -0
- package/dist/packages/_es/plugin-vue_export-helper.js +12 -0
- package/dist/packages/_es/pxCheck.js +9 -0
- package/dist/packages/_es/raf.js +19 -0
- package/dist/packages/avatar/index.scss +0 -1
- package/dist/packages/badge/index.scss +35 -0
- package/dist/packages/calendar/index.scss +13 -0
- package/dist/packages/imagepreview/index.scss +48 -0
- package/dist/packages/input/index.scss +14 -7
- package/dist/packages/pagination/index.scss +51 -0
- package/dist/packages/popover/index.scss +159 -0
- package/dist/packages/shortpassword/index.scss +19 -7
- package/dist/packages/tabpane/index.scss +1 -0
- package/dist/packages/tabs/index.scss +1 -0
- package/dist/packages/tag/index.scss +47 -0
- package/dist/packages/uploader/index.scss +0 -1
- package/dist/style.css +1 -1
- package/dist/style.es.js +2 -1
- package/dist/styles/themes/default.scss +35 -28
- package/dist/styles/variables.scss +55 -32
- package/package.json +7 -7
|
@@ -19,8 +19,7 @@ $black: #000 !default;
|
|
|
19
19
|
// padding
|
|
20
20
|
$padding-xs: 12px !default;
|
|
21
21
|
|
|
22
|
-
$font-family: PingFang SC, Microsoft YaHei, Helvetica, Hiragino Sans GB, SimSun,
|
|
23
|
-
sans-serif !default;
|
|
22
|
+
$font-family: PingFang SC, Microsoft YaHei, Helvetica, Hiragino Sans GB, SimSun, sans-serif !default;
|
|
24
23
|
|
|
25
24
|
// ---- Animation ----
|
|
26
25
|
$animation-duration: 0.25s !default;
|
|
@@ -56,18 +55,10 @@ $button-default-font-size: $font-size-2 !default;
|
|
|
56
55
|
$button-disabled-opacity: 0.68 !default;
|
|
57
56
|
$button-primary-color: $white !default;
|
|
58
57
|
$button-primary-border-color: $primary-color !default;
|
|
59
|
-
$button-primary-background-color: linear-gradient(
|
|
60
|
-
135deg,
|
|
61
|
-
$primary-color 0%,
|
|
62
|
-
$primary-color-end 100%
|
|
63
|
-
) !default;
|
|
58
|
+
$button-primary-background-color: linear-gradient(135deg, $primary-color 0%, $primary-color-end 100%) !default;
|
|
64
59
|
$button-info-color: $white !default;
|
|
65
60
|
$button-info-border-color: rgba(73, 106, 242, 1) !default;
|
|
66
|
-
$button-info-background-color: linear-gradient(
|
|
67
|
-
315deg,
|
|
68
|
-
rgba(73, 143, 242, 1) 0%,
|
|
69
|
-
rgba(73, 101, 242, 1) 100%
|
|
70
|
-
) !default;
|
|
61
|
+
$button-info-background-color: linear-gradient(315deg, rgba(73, 143, 242, 1) 0%, rgba(73, 101, 242, 1) 100%) !default;
|
|
71
62
|
$button-success-color: $white !default;
|
|
72
63
|
$button-success-border-color: rgba(38, 191, 38, 1) !default;
|
|
73
64
|
$button-success-background-color: linear-gradient(
|
|
@@ -125,6 +116,8 @@ $uploader-background: #f7f8fa !default;
|
|
|
125
116
|
//input
|
|
126
117
|
$input-border-bottom: #eaf0fb !default;
|
|
127
118
|
$input-disabled-color: #c8c9cc !default;
|
|
119
|
+
$input-require-color: $primary-color !default;
|
|
120
|
+
$input-font-size: $font-size-2 !default;
|
|
128
121
|
|
|
129
122
|
// textarea
|
|
130
123
|
|
|
@@ -218,11 +211,7 @@ $notify-success-background-color: linear-gradient(
|
|
|
218
211
|
rgba(41, 212, 70, 1) 100%
|
|
219
212
|
) !default;
|
|
220
213
|
$notify-danger-background-color: rgba(250, 50, 25, 1) !default;
|
|
221
|
-
$notify-warning-background-color: linear-gradient(
|
|
222
|
-
135deg,
|
|
223
|
-
rgba(255, 93, 13, 1) 0%,
|
|
224
|
-
rgba(255, 154, 13, 1) 100%
|
|
225
|
-
) !default;
|
|
214
|
+
$notify-warning-background-color: linear-gradient(135deg, rgba(255, 93, 13, 1) 0%, rgba(255, 154, 13, 1) 100%) !default;
|
|
226
215
|
|
|
227
216
|
// rate
|
|
228
217
|
|
|
@@ -240,18 +229,10 @@ $infinite-bottom-color: #c8c8c8 !default;
|
|
|
240
229
|
//range
|
|
241
230
|
$range-max: #333333 !default;
|
|
242
231
|
$rang-bg-color: rgba($primary-color, 0.5) !default;
|
|
243
|
-
$rang-bar-bg-color: linear-gradient(
|
|
244
|
-
135deg,
|
|
245
|
-
$primary-color 0%,
|
|
246
|
-
$primary-color-end 100%
|
|
247
|
-
) !default;
|
|
232
|
+
$rang-bar-bg-color: linear-gradient(135deg, $primary-color 0%, $primary-color-end 100%) !default;
|
|
248
233
|
|
|
249
234
|
//address
|
|
250
|
-
$address-region-tab-line: linear-gradient(
|
|
251
|
-
90deg,
|
|
252
|
-
$primary-color 0%,
|
|
253
|
-
$primary-color-end 100%
|
|
254
|
-
) !default;
|
|
235
|
+
$address-region-tab-line: linear-gradient(90deg, $primary-color 0%, $primary-color-end 100%) !default;
|
|
255
236
|
|
|
256
237
|
//steps
|
|
257
238
|
$step-wait-bg-color: #959fb1 !default;
|
|
@@ -273,11 +254,7 @@ $radio-icon-disable-color: #d6d6d6 !default;
|
|
|
273
254
|
$fixednav-bg-color: $white !default;
|
|
274
255
|
$fixednav-font-color: $black !default;
|
|
275
256
|
$fixednav-index: 201 !default;
|
|
276
|
-
$fixednav-btn-bg: linear-gradient(
|
|
277
|
-
135deg,
|
|
278
|
-
rgba(250, 25, 44, 1) 0%,
|
|
279
|
-
rgba(250, 63, 25, 1) 100%
|
|
280
|
-
) !default;
|
|
257
|
+
$fixednav-btn-bg: linear-gradient(135deg, rgba(250, 25, 44, 1) 0%, rgba(250, 63, 25, 1) 100%) !default;
|
|
281
258
|
|
|
282
259
|
// NoticeBar
|
|
283
260
|
$noticeBar-font-size: 14px !default;
|
|
@@ -286,5 +263,51 @@ $noticeBar-line-height: 24px !default;
|
|
|
286
263
|
$noticeBar-left-icon-width: 16px !default;
|
|
287
264
|
$noticeBar-right-icon-width: 16px !default;
|
|
288
265
|
|
|
266
|
+
//tag
|
|
267
|
+
$tag-font-size: 12px !default;
|
|
268
|
+
$tag-default-background-color: #000000 !default;
|
|
269
|
+
$tag-primary-background-color: #3460fa !default;
|
|
270
|
+
$tag-success-background-color: #4fc08d !default;
|
|
271
|
+
$tag-danger-background-color: linear-gradient(
|
|
272
|
+
135deg,
|
|
273
|
+
rgba(242, 20, 12, 1) 0%,
|
|
274
|
+
rgba(232, 34, 14, 1) 69.83950099728881%,
|
|
275
|
+
rgba(242, 77, 12, 1) 100%
|
|
276
|
+
) !default;
|
|
277
|
+
$tag-warning-background-color: #f3812e !default;
|
|
278
|
+
$tag-default-color: #ffffff !default;
|
|
279
|
+
$tag-border-width: 1px !default;
|
|
280
|
+
|
|
281
|
+
$tag-plain-background-color: #fff !default;
|
|
282
|
+
|
|
283
|
+
//badge
|
|
284
|
+
$badge-background-color: linear-gradient(135deg, $primary-color 0%, $primary-color-end 100%) !default;
|
|
285
|
+
$badge-font-size: $font-size-1 !default;
|
|
286
|
+
$badge-default-background-color: rgba(255, 255, 255, 1) !default;
|
|
287
|
+
|
|
288
|
+
//popover
|
|
289
|
+
$popover-white-background-color: rgba(255, 255, 255, 1) !default;
|
|
290
|
+
$popover-dark-background-color: rgba(75, 76, 77, 1) !default;
|
|
291
|
+
$popover-border-bottom-color: rgba(229, 229, 229, 1) !default;
|
|
292
|
+
$popover-primary-text-color: rgba(51, 51, 51, 1) !default;
|
|
293
|
+
$popover-disable-color: rgba(154, 155, 157, 1) !default;
|
|
294
|
+
|
|
295
|
+
//分页
|
|
296
|
+
$pagination-color: $primary-color !default;
|
|
297
|
+
$pagination-font-size: $font-size-2 !default;
|
|
298
|
+
$pagination-item-border-color: #e4e7eb !default;
|
|
299
|
+
$pagination-active-background-color: linear-gradient(
|
|
300
|
+
135deg,
|
|
301
|
+
rgba(250, 44, 25, 1) 0%,
|
|
302
|
+
rgba(250, 63, 25, 1) 44.59259259%,
|
|
303
|
+
rgba(250, 89, 25, 1) 83.40740741%,
|
|
304
|
+
rgba(250, 100, 25, 1) 100%
|
|
305
|
+
) !default;
|
|
306
|
+
$pagination-disable-color: rgba(116, 116, 116, 0.31) !default;
|
|
307
|
+
$pagination-disable-background-color: #f7f8fa !default;
|
|
308
|
+
$pagination-item-border-width: 1px !default;
|
|
309
|
+
$pagination-item-border-radius: 2px !default;
|
|
310
|
+
$pagination-prev-next-padding: 0 11px !default;
|
|
311
|
+
|
|
289
312
|
@import './mixins/index';
|
|
290
313
|
@import './animation/index';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nutui/nutui",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.7",
|
|
4
4
|
"description": "京东风格的轻量级移动端 Vue2、Vue3 组件库(支持小程序开发)",
|
|
5
5
|
"main": "dist/nutui.umd.js",
|
|
6
6
|
"module": "dist/nutui.es.js",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"build:site": "npm run checked && vite build",
|
|
42
42
|
"build:gh-pages": "npm run checked && vite build --base=/nutui/",
|
|
43
43
|
"build:site:oss": "npm run checked && vite build --base=/nutui/3x/",
|
|
44
|
-
"build": "npm run checked && vite build --config vite.config.build.ts && npm run generate:types && npm run generate:themes && vite build --config vite.config.build.css.ts",
|
|
45
|
-
"build:taro:vue": "npm run checked:taro:vue && vite build --config vite.config.build.taro.vue.ts && npm run generate:types && npm run generate:themes && vite build --config vite.config.build.css.ts",
|
|
44
|
+
"build": "npm run checked && vite build --config vite.config.build.ts && vite build --config vite.config.build.disperse.ts && npm run generate:types && npm run generate:themes && vite build --config vite.config.build.css.ts",
|
|
45
|
+
"build:taro:vue": "npm run checked:taro:vue && vite build --config vite.config.build.taro.vue.ts && vite build --config vite.config.build.taro.vue.disperse.ts && npm run generate:types && npm run generate:themes && vite build --config vite.config.build.css.ts",
|
|
46
46
|
"serve": "vite preview",
|
|
47
47
|
"upload": "yarn build:site:oss && node ./jd/upload.js",
|
|
48
48
|
"add": "node jd/createComponentMode.js",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"prepare": "husky install",
|
|
56
56
|
"test": "jest",
|
|
57
57
|
"release": "standard-version -a",
|
|
58
|
-
"
|
|
58
|
+
"codeformat": "prettier --write ."
|
|
59
59
|
},
|
|
60
60
|
"standard-version": {
|
|
61
61
|
"scripts": {
|
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"pinyin": "^2.10.2",
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"vue-router": "^4.0.4"
|
|
67
|
+
"vue-router": "^4.0.11",
|
|
68
|
+
"sass": "^1.34.0"
|
|
70
69
|
},
|
|
71
70
|
"devDependencies": {
|
|
71
|
+
"vue": "^3.2.19",
|
|
72
72
|
"@commitlint/cli": "^10.0.0",
|
|
73
73
|
"@commitlint/config-conventional": "^10.0.0",
|
|
74
74
|
"@tarojs/taro": "^3.3.0-alpha.8",
|