@nutui/nutui 3.1.15-beta.0 → 3.1.15-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 (114) hide show
  1. package/README.md +3 -3
  2. package/dist/nutui.d.ts +8 -5
  3. package/dist/nutui.es.js +587 -389
  4. package/dist/nutui.umd.js +593 -392
  5. package/dist/packages/_es/ActionSheet.js +1 -1
  6. package/dist/packages/_es/Address.js +2 -4
  7. package/dist/packages/_es/Avatar.js +1 -1
  8. package/dist/packages/_es/BackTop.js +1 -1
  9. package/dist/packages/_es/Badge.js +1 -1
  10. package/dist/packages/_es/Barrage.js +1 -1
  11. package/dist/packages/_es/Button.js +1 -1
  12. package/dist/packages/_es/Calendar.js +1 -1
  13. package/dist/packages/_es/Card.js +1 -1
  14. package/dist/packages/_es/Cascader.js +1 -1
  15. package/dist/packages/_es/Cell.js +1 -1
  16. package/dist/packages/_es/CellGroup.js +1 -1
  17. package/dist/packages/_es/Checkbox.js +1 -1
  18. package/dist/packages/_es/CheckboxGroup.js +1 -1
  19. package/dist/packages/_es/CircleProgress.js +1 -1
  20. package/dist/packages/_es/Col.js +1 -1
  21. package/dist/packages/_es/Collapse.js +1 -1
  22. package/dist/packages/_es/CollapseItem.js +1 -1
  23. package/dist/packages/_es/CountDown.js +1 -1
  24. package/dist/packages/_es/CountUp.js +1 -1
  25. package/dist/packages/_es/DatePicker.js +1 -1
  26. package/dist/packages/_es/Dialog.js +1 -1
  27. package/dist/packages/_es/Divider.js +1 -1
  28. package/dist/packages/_es/Drag.js +1 -1
  29. package/dist/packages/_es/Elevator.js +1 -1
  30. package/dist/packages/_es/Empty.js +1 -1
  31. package/dist/packages/_es/FixedNav.js +1 -1
  32. package/dist/packages/_es/Form.js +5 -2
  33. package/dist/packages/_es/FormItem.js +1 -1
  34. package/dist/packages/_es/Grid.js +1 -1
  35. package/dist/packages/_es/GridItem.js +1 -1
  36. package/dist/packages/_es/Icon.js +1 -1
  37. package/dist/packages/_es/ImagePreview.js +1 -1
  38. package/dist/packages/_es/Indicator.js +1 -1
  39. package/dist/packages/_es/InfiniteLoading.js +1 -1
  40. package/dist/packages/_es/Input.js +1 -1
  41. package/dist/packages/_es/InputNumber.js +2 -2
  42. package/dist/packages/_es/Layout.js +1 -1
  43. package/dist/packages/_es/Menu.js +3 -3
  44. package/dist/packages/_es/MenuItem.js +1 -1
  45. package/dist/packages/_es/Navbar.js +1 -1
  46. package/dist/packages/_es/NoticeBar.js +1 -1
  47. package/dist/packages/_es/Notify.js +1 -1
  48. package/dist/packages/_es/NumberKeyboard.js +1 -1
  49. package/dist/packages/_es/OverLay.js +1 -1
  50. package/dist/packages/_es/Pagination.js +1 -1
  51. package/dist/packages/_es/Picker.js +1 -1
  52. package/dist/packages/_es/Popover.js +1 -1
  53. package/dist/packages/_es/Popup.js +8 -4
  54. package/dist/packages/_es/Price.js +1 -1
  55. package/dist/packages/_es/Progress.js +1 -1
  56. package/dist/packages/_es/Radio.js +1 -1
  57. package/dist/packages/_es/RadioGroup.js +1 -1
  58. package/dist/packages/_es/Range.js +1 -1
  59. package/dist/packages/_es/Rate.js +1 -1
  60. package/dist/packages/_es/Row.js +1 -1
  61. package/dist/packages/_es/SearchBar.js +1 -1
  62. package/dist/packages/_es/ShortPassword.js +1 -1
  63. package/dist/packages/_es/SideNavBar.js +104 -0
  64. package/dist/packages/_es/SideNavBarItem.js +50 -0
  65. package/dist/packages/_es/Signature.js +1 -1
  66. package/dist/packages/_es/Skeleton.js +1 -1
  67. package/dist/packages/_es/Sku.js +1 -1
  68. package/dist/packages/_es/Step.js +1 -1
  69. package/dist/packages/_es/Steps.js +1 -1
  70. package/dist/packages/_es/SubSideNavBar.js +104 -0
  71. package/dist/packages/_es/Swipe.js +1 -1
  72. package/dist/packages/_es/Swiper.js +1 -1
  73. package/dist/packages/_es/SwiperItem.js +1 -1
  74. package/dist/packages/_es/Switch.js +1 -1
  75. package/dist/packages/_es/TabPane.js +1 -1
  76. package/dist/packages/_es/Tabbar.js +1 -1
  77. package/dist/packages/_es/TabbarItem.js +1 -1
  78. package/dist/packages/_es/Table.js +1 -1
  79. package/dist/packages/_es/Tabs.js +1 -1
  80. package/dist/packages/_es/Tag.js +1 -1
  81. package/dist/packages/_es/TextArea.js +2 -2
  82. package/dist/packages/_es/TimeDetail.js +1 -1
  83. package/dist/packages/_es/TimePannel.js +1 -1
  84. package/dist/packages/_es/TimeSelect.js +1 -1
  85. package/dist/packages/_es/Toast.js +1 -1
  86. package/dist/packages/_es/Uploader.js +1 -1
  87. package/dist/packages/_es/Video.js +1 -1
  88. package/dist/packages/_es/common.js +1 -1
  89. package/dist/packages/_es/component.js +1 -1
  90. package/dist/packages/_es/index.js +1 -1
  91. package/dist/packages/_es/index2.js +1 -1
  92. package/dist/packages/_es/index3.js +1 -1
  93. package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
  94. package/dist/packages/_es/pxCheck.js +1 -1
  95. package/dist/packages/_es/raf.js +1 -1
  96. package/dist/packages/_es/util.js +1 -1
  97. package/dist/packages/actionsheet/index.scss +2 -2
  98. package/dist/packages/address/index.scss +2 -0
  99. package/dist/packages/cascader/index.scss +13 -13
  100. package/dist/packages/menu/index.scss +10 -6
  101. package/dist/packages/menuitem/index.scss +8 -7
  102. package/dist/packages/noticebar/index.scss +11 -11
  103. package/dist/packages/picker/index.scss +2 -6
  104. package/dist/packages/progress/index.scss +2 -8
  105. package/dist/packages/shortpassword/index.scss +6 -6
  106. package/dist/packages/sidenavbar/index.scss +14 -0
  107. package/dist/packages/sidenavbaritem/index.scss +10 -0
  108. package/dist/packages/sku/index.scss +1 -1
  109. package/dist/packages/subsidenavbar/index.scss +39 -0
  110. package/dist/style.css +1 -1
  111. package/dist/styles/themes/default.scss +38 -35
  112. package/dist/styles/themes/jdd.scss +2 -0
  113. package/dist/styles/variables.scss +72 -68
  114. package/package.json +5 -2
@@ -1,12 +1,12 @@
1
1
  .nut-menu__bar {
2
2
  position: relative;
3
3
  display: flex;
4
- line-height: $nut-menu-bar-line-height;
4
+ line-height: $menu-bar-line-height;
5
5
  background-color: $white;
6
- border-bottom: 1px solid $nut-menu-bar-border-bottom-color;
6
+ border-bottom: 1px solid $menu-bar-border-bottom-color;
7
7
 
8
8
  &.opened {
9
- z-index: $nut-menu-bar-opened-z-index;
9
+ z-index: $menu-bar-opened-z-index;
10
10
  }
11
11
 
12
12
  .nut-menu__item {
@@ -16,8 +16,12 @@
16
16
  color: $title-color;
17
17
  min-width: 0;
18
18
 
19
+ &.active {
20
+ color: $menu-item-active-text-color;
21
+ }
22
+
19
23
  &.disabled {
20
- color: $nut-menu-item-disabled-color;
24
+ color: $menu-item-disabled-color;
21
25
  }
22
26
 
23
27
  .nut-menu__title-icon {
@@ -33,8 +37,8 @@
33
37
  .nut-menu__title-text {
34
38
  @include text-ellipsis;
35
39
  display: block;
36
- padding-left: $nut-menu-title-text-padding-left;
37
- padding-right: $nut-menu-title-text-padding-right;
40
+ padding-left: $menu-title-text-padding-left;
41
+ padding-right: $menu-title-text-padding-right;
38
42
  }
39
43
 
40
44
  &.active .nut-menu__title-icon {
@@ -1,12 +1,13 @@
1
1
  .nut-menu-item {
2
2
  .active {
3
3
  font-weight: 500;
4
+ color: $menu-item-active-text-color !important;
4
5
  }
5
6
  }
6
7
 
7
8
  .nut-menu-item__content {
8
- padding: $nut-menu-item-content-padding;
9
- max-height: $nut-menu-item-content-max-height;
9
+ padding: $menu-item-content-padding;
10
+ max-height: $menu-item-content-max-height;
10
11
  overflow-y: auto;
11
12
  display: flex;
12
13
  flex-wrap: wrap;
@@ -14,13 +15,13 @@
14
15
  .nut-menu-item__option {
15
16
  color: $title-color;
16
17
  font-size: $font-size-2;
17
- padding-top: $nut-menu-item-option-padding-top;
18
- padding-bottom: $nut-menu-item-option-padding-bottom;
18
+ padding-top: $menu-item-option-padding-top;
19
+ padding-bottom: $menu-item-option-padding-bottom;
19
20
  display: flex;
20
21
  align-items: center;
21
22
 
22
23
  i {
23
- margin-right: $nut-menu-item-option-i-margin-right;
24
+ margin-right: $menu-item-option-i-margin-right;
24
25
  }
25
26
  }
26
27
  }
@@ -38,9 +39,9 @@
38
39
 
39
40
  .placeholder-element {
40
41
  position: fixed;
41
- top: -$nut-menu-bar-line-height;
42
+ top: -$menu-bar-line-height;
42
43
  left: 0;
43
44
  right: 0;
44
- z-index: $nut-menu-bar-opened-z-index;
45
+ z-index: $menu-bar-opened-z-index;
45
46
  background-color: transparent;
46
47
  }
@@ -1,8 +1,8 @@
1
1
  .nut-noticebar-page {
2
2
  width: 100%;
3
3
  display: flex;
4
- height: $noticeBar-height;
5
- font-size: $noticeBar-font-size;
4
+ height: $noticebar-height;
5
+ font-size: $noticebar-font-size;
6
6
  position: relative;
7
7
  align-items: center;
8
8
  &.wrapable {
@@ -23,8 +23,8 @@
23
23
  padding-right: 40px;
24
24
  }
25
25
  .left-icon {
26
- height: $noticeBar-left-icon-width;
27
- min-width: $noticeBar-left-icon-width;
26
+ height: $noticebar-left-icon-width;
27
+ min-width: $noticebar-left-icon-width;
28
28
  margin: 0 5px 0 10px;
29
29
  background-size: 100% 100%;
30
30
  }
@@ -32,13 +32,13 @@
32
32
  display: flex;
33
33
  align-items: center;
34
34
  justify-content: center;
35
- width: $noticeBar-right-icon-width;
35
+ width: $noticebar-right-icon-width;
36
36
  margin: 0 10px 0 5px;
37
37
  }
38
38
  .wrap {
39
39
  flex: 1;
40
- height: $noticeBar-line-height;
41
- line-height: $noticeBar-line-height;
40
+ height: $noticebar-line-height;
41
+ line-height: $noticebar-line-height;
42
42
  overflow: hidden;
43
43
  position: relative;
44
44
  }
@@ -78,7 +78,7 @@
78
78
  // 垂直方向的滚动
79
79
  @keyframes nut-notice-bar-play-vertical {
80
80
  to {
81
- transform: translateY($noticeBar-height);
81
+ transform: translateY($noticebar-height);
82
82
  }
83
83
  }
84
84
 
@@ -87,8 +87,8 @@
87
87
  position: relative;
88
88
  display: flex;
89
89
  justify-content: space-between;
90
- height: $noticeBar-height;
91
- font-size: $noticeBar-font-size;
90
+ height: $noticebar-height;
91
+ font-size: $noticebar-font-size;
92
92
  overflow: hidden;
93
93
 
94
94
  .horseLamp_list {
@@ -99,7 +99,7 @@
99
99
  .horseLamp_list_item {
100
100
  display: flex;
101
101
  align-items: center;
102
- height: $noticeBar-height;
102
+ height: $noticebar-height;
103
103
  }
104
104
  }
105
105
 
@@ -15,11 +15,7 @@
15
15
  z-index: 1;
16
16
  width: 100%;
17
17
  height: 100%;
18
- background-image: linear-gradient(
19
- 180deg,
20
- hsla(0, 0%, 100%, 0.9),
21
- hsla(0, 0%, 100%, 0.4)
22
- ),
18
+ background-image: linear-gradient(180deg, hsla(0, 0%, 100%, 0.9), hsla(0, 0%, 100%, 0.4)),
23
19
  linear-gradient(0deg, hsla(0, 0%, 100%, 0.9), hsla(0, 0%, 100%, 0.4));
24
20
  background-repeat: no-repeat;
25
21
  background-position: top, bottom;
@@ -44,7 +40,7 @@
44
40
  height: 100%;
45
41
  }
46
42
  &__left {
47
- color: #fa2c19;
43
+ color: $picker-cancel-color;
48
44
  font-size: 16px;
49
45
  }
50
46
  &__button {
@@ -11,13 +11,7 @@
11
11
  width: 30%;
12
12
  height: 100%;
13
13
  border-radius: 12px;
14
- background: linear-gradient(
15
- 268deg,
16
- rgba(250, 44, 25, 1) 0%,
17
- rgba(250, 63, 25, 1) 44.59259259%,
18
- rgba(250, 89, 25, 1) 83.40740741%,
19
- rgba(250, 100, 25, 1) 100%
20
- );
14
+ background: $progress-inner-background-color;
21
15
  -webkit-transition: all 0.4s;
22
16
  transition: all 0.4s;
23
17
  position: relative;
@@ -89,7 +83,7 @@
89
83
  }
90
84
  .nut-progress-insidetext {
91
85
  padding: 3px 5px 3px 6px;
92
- background: rgba(250, 44, 25, 1);
86
+ background: $progress-insidetext-background;
93
87
  border-radius: 5px;
94
88
  position: absolute;
95
89
  transition: all 0.4s;
@@ -86,9 +86,9 @@
86
86
  height: 41px;
87
87
  margin: 0 auto;
88
88
  box-sizing: border-box;
89
- background: $shortpsd-background-color;
89
+ background: $shortpassword-background-color;
90
90
  border-radius: 4px;
91
- border: 1px solid $shortpsd-border-color;
91
+ border: 1px solid $shortpassword-border-color;
92
92
  display: flex;
93
93
  position: absolute;
94
94
  left: 0;
@@ -98,9 +98,9 @@
98
98
  width: 100%;
99
99
  height: 41px;
100
100
  margin: 0 auto;
101
- background: $shortpsd-background-color;
101
+ background: $shortpassword-background-color;
102
102
  border-radius: 4px;
103
- border: 1px solid $shortpsd-border-color;
103
+ border: 1px solid $shortpassword-border-color;
104
104
  display: flex;
105
105
  position: absolute;
106
106
  left: 0;
@@ -132,13 +132,13 @@
132
132
  .nut-shortpsd-error {
133
133
  line-height: 1;
134
134
  font-size: $font-size-0;
135
- color: $shortpsd-error;
135
+ color: $shortpassword-error;
136
136
  }
137
137
 
138
138
  .nut-shortpsd-forget {
139
139
  line-height: 1;
140
140
  font-size: $font-size-1;
141
- color: $shortpsd-forget;
141
+ color: $shortpassword-forget;
142
142
  display: flex;
143
143
  }
144
144
  }
@@ -0,0 +1,14 @@
1
+ .nut-sidenavbar {
2
+ height: 100%;
3
+ overflow: auto;
4
+ display: block;
5
+ &__content {
6
+ position: relative;
7
+ background-color: $sidenavbar-content-bg-color;
8
+ display: block;
9
+ &__list {
10
+ width: 100%;
11
+ display: block;
12
+ }
13
+ }
14
+ }
@@ -0,0 +1,10 @@
1
+ .nut-sidenavbaritem {
2
+ height: 40px;
3
+ line-height: 40px;
4
+ display: block;
5
+ font-size: 16px;
6
+ &__title {
7
+ color: $title-color;
8
+ background-color: $sidenavbaritem-title-color;
9
+ }
10
+ }
@@ -65,7 +65,7 @@
65
65
  border: 1px solid rgba(242, 242, 242, 1);
66
66
 
67
67
  &.active {
68
- background: rgba(252, 237, 235, 1);
68
+ background: $sku-item-active-bg;
69
69
  border: $sku-item-border;
70
70
  color: $primary-color;
71
71
  }
@@ -0,0 +1,39 @@
1
+ .nut-subsidenavbar {
2
+ display: grid;
3
+ float: left;
4
+ width: 100%;
5
+ position: relative;
6
+ &__title {
7
+ display: block;
8
+ width: 100%;
9
+ height: 40px;
10
+ position: relative;
11
+ overflow: hidden;
12
+ text-overflow: ellipsis;
13
+ white-space: nowrap;
14
+ box-sizing: border-box;
15
+ border-bottom: 1px solid $subsidenavbar-title-border-color;
16
+ color: $title-color;
17
+ font-size: $font-size-large;
18
+ background-color: $subsidenavbar-title-bg-color;
19
+ &__text {
20
+ line-height: 40px;
21
+ color: $title-color;
22
+ }
23
+ &__icon {
24
+ position: absolute;
25
+ top: 50%;
26
+ right: 20px;
27
+ transform: translateY(-50%);
28
+ i {
29
+ transition: transform 0.5s ease-in-out;
30
+ &.up {
31
+ transform: rotate(-180deg);
32
+ }
33
+ }
34
+ }
35
+ }
36
+ &__list {
37
+ width: 100%;
38
+ }
39
+ }