@nutui/nutui 3.1.18-beta.0 → 3.1.18

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 (143) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/LICENSE +1 -1
  3. package/README.md +6 -0
  4. package/dist/nutui.d.ts +3 -1
  5. package/dist/nutui.es.js +2230 -1192
  6. package/dist/nutui.umd.js +2240 -1201
  7. package/dist/packages/_es/ActionSheet.js +2 -2
  8. package/dist/packages/_es/Address.js +17 -11
  9. package/dist/packages/_es/Audio.js +2 -2
  10. package/dist/packages/_es/Avatar.js +2 -2
  11. package/dist/packages/_es/BackTop.js +5 -2
  12. package/dist/packages/_es/Badge.js +2 -2
  13. package/dist/packages/_es/Barrage.js +2 -2
  14. package/dist/packages/_es/Button.js +2 -2
  15. package/dist/packages/_es/Calendar.js +15 -16
  16. package/dist/packages/_es/Card.js +2 -2
  17. package/dist/packages/_es/Cascader.js +2 -2
  18. package/dist/packages/_es/Cell.js +24 -17
  19. package/dist/packages/_es/CellGroup.js +2 -2
  20. package/dist/packages/_es/Checkbox.js +4 -4
  21. package/dist/packages/_es/CheckboxGroup.js +3 -3
  22. package/dist/packages/_es/CircleProgress.js +2 -2
  23. package/dist/packages/_es/Col.js +2 -2
  24. package/dist/packages/_es/Collapse.js +2 -2
  25. package/dist/packages/_es/CollapseItem.js +28 -18
  26. package/dist/packages/_es/CountDown.js +4 -2
  27. package/dist/packages/_es/CountUp.js +25 -16
  28. package/dist/packages/_es/DatePicker.js +83 -47
  29. package/dist/packages/_es/Dialog.js +5 -3
  30. package/dist/packages/_es/Divider.js +2 -2
  31. package/dist/packages/_es/Drag.js +4 -4
  32. package/dist/packages/_es/Elevator.js +2 -2
  33. package/dist/packages/_es/Empty.js +2 -2
  34. package/dist/packages/_es/FixedNav.js +2 -2
  35. package/dist/packages/_es/Form.js +8 -6
  36. package/dist/packages/_es/FormItem.js +9 -6
  37. package/dist/packages/_es/Grid.js +2 -2
  38. package/dist/packages/_es/GridItem.js +2 -2
  39. package/dist/packages/_es/Icon.js +2 -2
  40. package/dist/packages/_es/ImagePreview.js +2 -2
  41. package/dist/packages/_es/Indicator.js +2 -2
  42. package/dist/packages/_es/InfiniteLoading.js +2 -2
  43. package/dist/packages/_es/Input.js +290 -66
  44. package/dist/packages/_es/InputNumber.js +2 -2
  45. package/dist/packages/_es/Layout.js +2 -2
  46. package/dist/packages/_es/List.js +124 -0
  47. package/dist/packages/_es/Menu.js +2 -2
  48. package/dist/packages/_es/MenuItem.js +2 -2
  49. package/dist/packages/_es/Navbar.js +16 -10
  50. package/dist/packages/_es/NoticeBar.js +6 -5
  51. package/dist/packages/_es/Notify.js +7 -3
  52. package/dist/packages/_es/NumberKeyboard.js +9 -4
  53. package/dist/packages/_es/OverLay.js +2 -2
  54. package/dist/packages/_es/Pagination.js +2 -2
  55. package/dist/packages/_es/Picker.js +163 -157
  56. package/dist/packages/_es/Popover.js +2 -2
  57. package/dist/packages/_es/Popup.js +2 -2
  58. package/dist/packages/_es/Price.js +2 -2
  59. package/dist/packages/_es/Progress.js +14 -22
  60. package/dist/packages/_es/Radio.js +3 -3
  61. package/dist/packages/_es/RadioGroup.js +2 -2
  62. package/dist/packages/_es/Range.js +129 -19
  63. package/dist/packages/_es/Rate.js +2 -2
  64. package/dist/packages/_es/Row.js +2 -2
  65. package/dist/packages/_es/SearchBar.js +2 -2
  66. package/dist/packages/_es/ShortPassword.js +2 -2
  67. package/dist/packages/_es/SideNavBar.js +2 -2
  68. package/dist/packages/_es/SideNavBarItem.js +2 -2
  69. package/dist/packages/_es/Signature.js +25 -6
  70. package/dist/packages/_es/Skeleton.js +2 -2
  71. package/dist/packages/_es/Sku.js +31 -13
  72. package/dist/packages/_es/Step.js +28 -12
  73. package/dist/packages/_es/Steps.js +8 -3
  74. package/dist/packages/_es/Sticky.js +2 -2
  75. package/dist/packages/_es/SubSideNavBar.js +2 -2
  76. package/dist/packages/_es/Swipe.js +2 -2
  77. package/dist/packages/_es/Swiper.js +2 -2
  78. package/dist/packages/_es/SwiperItem.js +2 -2
  79. package/dist/packages/_es/Switch.js +2 -2
  80. package/dist/packages/_es/TabPane.js +2 -2
  81. package/dist/packages/_es/Tabbar.js +2 -2
  82. package/dist/packages/_es/TabbarItem.js +17 -6
  83. package/dist/packages/_es/Table.js +2 -2
  84. package/dist/packages/_es/Tabs.js +8 -5
  85. package/dist/packages/_es/Tag.js +11 -5
  86. package/dist/packages/_es/TextArea.js +38 -6
  87. package/dist/packages/_es/TimeDetail.js +2 -2
  88. package/dist/packages/_es/TimePannel.js +2 -2
  89. package/dist/packages/_es/TimeSelect.js +2 -2
  90. package/dist/packages/_es/Toast.js +2 -2
  91. package/dist/packages/_es/Uploader.js +2 -4
  92. package/dist/packages/_es/Video.js +12 -8
  93. package/dist/packages/_es/common.js +2 -2
  94. package/dist/packages/_es/component.js +2 -2
  95. package/dist/packages/_es/index.js +2 -2
  96. package/dist/packages/_es/index2.js +2 -2
  97. package/dist/packages/_es/index3.js +2 -2
  98. package/dist/packages/_es/index4.js +2 -2
  99. package/dist/packages/_es/plugin-vue_export-helper.js +2 -2
  100. package/dist/packages/_es/pxCheck.js +2 -2
  101. package/dist/packages/_es/raf.js +2 -2
  102. package/dist/packages/_es/util.js +2 -2
  103. package/dist/packages/badge/index.scss +11 -13
  104. package/dist/packages/button/index.scss +1 -0
  105. package/dist/packages/calendar/index.scss +9 -4
  106. package/dist/packages/calendaritem/index.scss +0 -207
  107. package/dist/packages/cell/index.scss +6 -6
  108. package/dist/packages/checkbox/index.scss +4 -3
  109. package/dist/packages/collapseitem/index.scss +21 -11
  110. package/dist/packages/countdown/index.scss +3 -1
  111. package/dist/packages/divider/index.scss +8 -8
  112. package/dist/packages/elevator/index.scss +36 -36
  113. package/dist/packages/formitem/index.scss +15 -8
  114. package/dist/packages/indicator/index.scss +1 -1
  115. package/dist/packages/input/index.scss +70 -24
  116. package/dist/packages/inputnumber/index.scss +4 -2
  117. package/dist/packages/list/index.scss +24 -0
  118. package/dist/packages/menu/index.scss +3 -3
  119. package/dist/packages/navbar/index.scss +28 -8
  120. package/dist/packages/noticebar/index.scss +7 -8
  121. package/dist/packages/notify/index.scss +9 -0
  122. package/dist/packages/numberkeyboard/index.scss +22 -21
  123. package/dist/packages/oldpicker/index.scss +131 -0
  124. package/dist/packages/picker/index.scss +38 -32
  125. package/dist/packages/progress/index.scss +6 -5
  126. package/dist/packages/radio/index.scss +7 -6
  127. package/dist/packages/range/index.scss +109 -2
  128. package/dist/packages/searchbar/index.scss +7 -7
  129. package/dist/packages/sidenavbaritem/index.scss +5 -5
  130. package/dist/packages/step/index.scss +29 -29
  131. package/dist/packages/subsidenavbar/index.scss +10 -8
  132. package/dist/packages/tabbaritem/index.scss +15 -0
  133. package/dist/packages/timedetail/index.scss +13 -13
  134. package/dist/packages/timepannel/index.scss +7 -7
  135. package/dist/packages/timeselect/index.scss +3 -3
  136. package/dist/packages/uploader/index.scss +4 -4
  137. package/dist/style.css +1 -1
  138. package/dist/styles/themes/default.scss +39 -37
  139. package/dist/styles/themes/jdt.scss +91 -0
  140. package/dist/styles/variables-jdt.scss +727 -0
  141. package/dist/styles/variables.scss +250 -44
  142. package/package.json +2 -1
  143. package/dist/styles/themes/jdd.scss +0 -2
@@ -1,55 +1,96 @@
1
+ input,
2
+ textarea {
3
+ font: inherit;
4
+ }
1
5
  .nut-input {
2
6
  position: relative;
3
7
  width: 100%;
4
- padding: 10px 0px 10px 25px;
8
+ padding: 10px 25px;
5
9
  display: flex;
10
+ line-height: 24px;
6
11
  background: $white;
7
12
  font-size: $input-font-size;
8
13
  box-sizing: border-box;
9
-
14
+ &.center {
15
+ align-items: center;
16
+ }
10
17
  &.nut-input-border {
11
18
  border-bottom: 1px solid $input-border-bottom;
12
19
  }
13
20
 
14
- &.nut-input-require {
15
- &::before {
16
- position: absolute;
17
- left: 14px;
18
- color: $input-require-color;
19
- content: '*';
20
- }
21
- }
22
-
23
21
  .input-text,
24
22
  &__text--readonly {
25
- width: 90%;
26
- flex: 1;
27
- padding: 0 10px;
28
- padding-right: 35px;
23
+ width: 100%;
24
+ padding: 0;
25
+ // padding-right: 35px;
26
+ line-height: inherit;
29
27
  text-align: left;
30
28
  outline: 0 none;
31
29
  border: 0;
32
30
  text-decoration: none;
31
+ resize: none;
33
32
  }
34
33
 
35
34
  &-label {
36
35
  width: 80px;
37
36
  overflow: hidden;
38
- display: inline-block;
37
+ margin-right: 6px;
39
38
  text-align: left;
40
- display: flex;
41
-
42
39
  .label-string {
43
- overflow: hidden;
44
- white-space: nowrap;
45
- text-overflow: ellipsis;
40
+ // overflow: hidden;
41
+ // white-space: nowrap;
42
+ // text-overflow: ellipsis;
46
43
  }
47
44
  }
48
- .nut-textinput-clear {
45
+ &-value {
46
+ flex: 1;
47
+ vertical-align: middle;
48
+ }
49
+ &-inner {
50
+ display: flex;
51
+ align-items: center;
52
+ }
53
+ &-error-message {
54
+ color: $input-required-color;
55
+ font-size: 12px;
56
+ }
57
+ &-word-limit {
58
+ display: block;
59
+ margin-top: 4px;
60
+ color: #808080;
61
+ font-size: 12px;
62
+ // line-height: var(--van-field-word-limit-line-height);
63
+ text-align: right;
64
+ }
65
+ &-left-icon,
66
+ &-right-icon {
67
+ display: flex;
68
+ align-items: center;
69
+ font-size: 0;
70
+ }
71
+ &-clear,
72
+ &-right-icon {
73
+ margin-left: 4px;
74
+ }
75
+ &-left-icon {
76
+ margin-right: 4px;
77
+ }
78
+ &-clear {
49
79
  width: 16px;
50
80
  height: 16px;
51
- position: absolute;
52
- right: 15px;
81
+ color: #c8c9cc;
82
+ cursor: pointer;
83
+ }
84
+ .nut-button {
85
+ margin-left: 10px;
86
+ }
87
+ &.nut-input-required {
88
+ &::before {
89
+ position: absolute;
90
+ left: 14px;
91
+ color: $input-required-color;
92
+ content: '*';
93
+ }
53
94
  }
54
95
  &-disabled {
55
96
  color: $input-disabled-color !important;
@@ -61,4 +102,9 @@
61
102
  -webkit-text-fill-color: $input-disabled-color;
62
103
  }
63
104
  }
105
+ &-error,
106
+ &-error::placeholder {
107
+ color: $input-required-color;
108
+ -webkit-text-fill-color: $input-required-color;
109
+ }
64
110
  }
@@ -24,8 +24,10 @@
24
24
  height: 100%;
25
25
  text-align: center;
26
26
  outline: none;
27
- border: 0;
28
- margin: 0 6px;
27
+ border: $inputnumber-input-border;
28
+ font-size: $inputnumber-input-font-size;
29
+ color: $inputnumber-input-font-color;
30
+ margin: $inputnumber-input-margin;
29
31
  background-color: $inputnumber-input-background-color;
30
32
  border-radius: $inputnumber-input-border-radius;
31
33
  }
@@ -0,0 +1,24 @@
1
+ .nut-list {
2
+ width: 100%;
3
+ height: 100%;
4
+ overflow: scroll;
5
+ position: relative;
6
+ -webkit-overflow-scrolling: touch;
7
+ &-phantom {
8
+ position: absolute;
9
+ left: 0;
10
+ top: 0;
11
+ right: 0;
12
+ z-index: -1;
13
+ }
14
+ &-container {
15
+ left: 0;
16
+ right: 0;
17
+ top: 0;
18
+ position: absolute;
19
+ }
20
+ &-item {
21
+ overflow: hidden;
22
+ margin: $list-item-margin;
23
+ }
24
+ }
@@ -3,7 +3,7 @@
3
3
  display: flex;
4
4
  line-height: $menu-bar-line-height;
5
5
  background-color: $white;
6
- border-bottom: 1px solid $menu-bar-border-bottom-color;
6
+ box-shadow: $menu-bar-box-shadow;
7
7
 
8
8
  &.opened {
9
9
  z-index: $menu-bar-opened-z-index;
@@ -12,8 +12,8 @@
12
12
  .nut-menu__item {
13
13
  flex: 1;
14
14
  text-align: center;
15
- font-size: $font-size-2;
16
- color: $title-color;
15
+ font-size: $menu-item-font-size;
16
+ color: $menu-item-text-color;
17
17
  min-width: 0;
18
18
 
19
19
  &.active {
@@ -2,18 +2,28 @@
2
2
  position: relative;
3
3
  display: flex;
4
4
  align-items: center;
5
- height: 44px;
5
+ height: $navbar-height;
6
6
  box-sizing: border-box;
7
- padding: 13px 16px;
8
- background: $white;
9
- box-shadow: 0px 1px 7px 0px rgba(237, 238, 241, 1);
10
- font-size: $cell-title-font;
11
- color: $cell-color;
12
- margin-bottom: 20px;
7
+ padding: $navbar-padding;
8
+ background: $navbar-background;
9
+ box-shadow: $navbar-box-shadow;
10
+ font-size: $navbar-title-base-font;
11
+ color: $navbar-color;
12
+ margin-bottom: $navbar-margin-bottom;
13
13
  overflow: hidden;
14
14
  &:active::before {
15
15
  opacity: 0.1;
16
16
  }
17
+ &--fixed {
18
+ position: fixed;
19
+ top: 0;
20
+ left: 0;
21
+ width: 100%;
22
+ }
23
+ &--safe-area-inset-top {
24
+ padding-top: constant(safe-area-inset-top);
25
+ padding-top: env(safe-area-inset-top);
26
+ }
17
27
  &--clickable {
18
28
  &::before {
19
29
  position: absolute;
@@ -43,9 +53,19 @@
43
53
  text-align: center;
44
54
  display: flex;
45
55
  justify-content: center;
56
+ .title {
57
+ width: $navbar-title-width;
58
+ font-size: $navbar-title-font;
59
+ font-weight: $navbar-title-font-weight;
60
+ color: $navbar-title-font-color;
61
+ display: -webkit-box;
62
+ -webkit-box-orient: vertical;
63
+ -webkit-line-clamp: 1;
64
+ overflow: hidden;
65
+ }
46
66
  &.icon {
47
67
  .icon {
48
- margin-left: 13px;
68
+ margin: $navbar-title-icon-margin;
49
69
  }
50
70
  }
51
71
  .nut-icon {
@@ -1,15 +1,16 @@
1
1
  .nut-noticebar-page {
2
2
  // width: 100%;
3
3
  display: flex;
4
- padding: 0px $noticebar-box-padding-right 0 $noticebar-box-padding-left;
4
+ padding: $noticebar-box-padding;
5
5
  height: $noticebar-height;
6
6
  font-size: $noticebar-font-size;
7
7
  position: relative;
8
8
  align-items: center;
9
+ background: $noticebar-background;
10
+ color: $noticebar-color;
9
11
  &.wrapable {
10
12
  height: auto;
11
- padding: $noticebar-wrapable-padding-bottom $noticebar-wrapable-padding-right $noticebar-wrapable-padding-bottom
12
- $noticebar-wrapable-padding-left;
13
+ padding: $noticebar-wrapable-padding;
13
14
  .wrap {
14
15
  height: auto;
15
16
  .content {
@@ -27,8 +28,7 @@
27
28
  .left-icon {
28
29
  height: $noticebar-left-icon-width;
29
30
  min-width: $noticebar-left-icon-width;
30
- margin: $noticebar-lefticon-padding-top $noticebar-lefticon-padding-right $noticebar-lefticon-padding-bottom
31
- $noticebar-lefticon-padding-left;
31
+ margin: $noticebar-lefticon-margin;
32
32
  background-size: 100% 100%;
33
33
  }
34
34
  .right-icon {
@@ -36,8 +36,7 @@
36
36
  align-items: center;
37
37
  justify-content: center;
38
38
  width: $noticebar-right-icon-width;
39
- margin: $noticebar-righticon-padding-top $noticebar-righticon-padding-right $noticebar-righticon-padding-bottom
40
- $noticebar-righticon-padding-left;
39
+ margin: $noticebar-righticon-margin;
41
40
  }
42
41
  .wrap {
43
42
  display: flex;
@@ -95,7 +94,7 @@
95
94
  height: $noticebar-height;
96
95
  font-size: $noticebar-font-size;
97
96
  overflow: hidden;
98
- padding: 0px $noticebar-box-padding-right 0 $noticebar-box-padding-left;
97
+ padding: $noticebar-box-padding;
99
98
 
100
99
  .horseLamp_list {
101
100
  margin: 0;
@@ -7,6 +7,15 @@
7
7
  transition: transform 0.3s;
8
8
  z-index: 9999;
9
9
  }
10
+ .popup-bottom {
11
+ position: fixed;
12
+ bottom: 0;
13
+ left: 0;
14
+ width: 100%;
15
+ overflow-y: auto;
16
+ transition: transform 0.3s;
17
+ z-index: 9999;
18
+ }
10
19
 
11
20
  .nut-fade-enter-active {
12
21
  transition: opacity 1s;
@@ -1,7 +1,7 @@
1
1
  .nut-numberkeyboard {
2
- width: 100%;
3
- padding-bottom: 22px;
4
- background-color: #f2f3f5;
2
+ width: $numberkeyboard-width;
3
+ padding: $numberkeyboard-padding;
4
+ background-color: $numberkeyboard-background-color;
5
5
  user-select: none;
6
6
 
7
7
  .number-board-header {
@@ -10,10 +10,10 @@
10
10
  align-items: center;
11
11
  justify-content: center;
12
12
  box-sizing: content-box;
13
- height: 34px;
14
- padding-top: 6px;
15
- color: #646566;
16
- font-size: 16px;
13
+ height: $numberkeyboard-header-height;
14
+ padding: $numberkeyboard-header-padding;
15
+ color: $numberkeyboard-header-color;
16
+ font-size: $numberkeyboard-header-font-size;
17
17
 
18
18
  .tit {
19
19
  display: inline-block;
@@ -23,10 +23,10 @@
23
23
  position: absolute;
24
24
  display: block;
25
25
  right: 0;
26
- padding: 0 16px;
27
- color: #576b95;
28
- font-size: 14px;
29
- background-color: transparent;
26
+ padding: $numberkeyboard-header-close-padding;
27
+ color: $numberkeyboard-header-close-color;
28
+ font-size: $numberkeyboard-header-close-font-size;
29
+ background-color: $numberkeyboard-header-close-background-color;
30
30
  border: none;
31
31
  cursor: pointer;
32
32
  }
@@ -53,16 +53,17 @@
53
53
  display: flex;
54
54
  align-items: center;
55
55
  justify-content: center;
56
- height: 48px;
57
- font-size: 28px;
58
- line-height: 1.5;
59
- background-color: #fff;
60
- border-radius: 8px;
56
+ height: $numberkeyboard-key-height;
57
+ font-size: $numberkeyboard-key-font-size;
58
+ line-height: $numberkeyboard-key-line-height;
59
+ background-color: $numberkeyboard-key-background-color;
60
+ color: $numberkeyboard-key-font-size-color;
61
+ border-radius: $numberkeyboard-key-border-radius;
61
62
  cursor: pointer;
62
63
  }
63
64
 
64
65
  .active {
65
- background-color: #ebedf0;
66
+ background-color: $numberkeyboard-key-active-background-color;
66
67
  }
67
68
 
68
69
  img {
@@ -91,13 +92,13 @@
91
92
  }
92
93
 
93
94
  .finish {
94
- font-size: 16px;
95
- color: #fff;
96
- background-color: #1989fa;
95
+ font-size: $numberkeyboard-key-finish-font-size;
96
+ color: $numberkeyboard-key-finish-font-size-color;
97
+ background-color: $numberkeyboard-key-finish-background-color;
97
98
  }
98
99
 
99
100
  .activeFinsh {
100
- background-color: #0570db;
101
+ background-color: $numberkeyboard-key-activeFinsh-background-color;
101
102
  }
102
103
  }
103
104
  }
@@ -0,0 +1,131 @@
1
+ .nut-oldpicker {
2
+ &__content {
3
+ display: block;
4
+ position: relative;
5
+ text-align: center;
6
+ overflow-y: hidden;
7
+ &:hover {
8
+ cursor: grab;
9
+ }
10
+ }
11
+
12
+ &__bar {
13
+ display: flex;
14
+ height: 56px;
15
+ align-items: center;
16
+ justify-content: space-between;
17
+ }
18
+ &__column {
19
+ display: flex;
20
+ position: relative;
21
+ height: 252px;
22
+ }
23
+ &__columnitem {
24
+ width: 0;
25
+ flex-grow: 1;
26
+ height: 100%;
27
+ }
28
+ &__left {
29
+ color: $picker-cancel-color;
30
+ font-size: $picker-bar-cancel-font-size;
31
+ }
32
+ &__right {
33
+ color: $picker-ok-color;
34
+ font-size: $picker-bar-ok-font-size;
35
+ }
36
+
37
+ &__title {
38
+ color: $picker-bar-title-color;
39
+ font-size: $picker-bar-title-font-size;
40
+ font-weight: $picker-bar-title-font-weight;
41
+ }
42
+
43
+ &__button {
44
+ cursor: pointer;
45
+ padding: $picker-bar-button-padding;
46
+ display: flex;
47
+ align-items: center;
48
+ height: 100%;
49
+ }
50
+ &__wrapper {
51
+ display: block;
52
+ }
53
+ &__item {
54
+ display: flex;
55
+ justify-content: center;
56
+ align-items: center;
57
+ height: 35px;
58
+ }
59
+ &__hairline {
60
+ position: absolute;
61
+ top: 108px;
62
+ height: 34px;
63
+ width: 100%;
64
+ border: $picker-item-active-line-border;
65
+ border-left: 0;
66
+ border-right: 0;
67
+ }
68
+
69
+ &__list {
70
+ position: relative;
71
+ display: block;
72
+ width: 100%;
73
+ height: 252px;
74
+ overflow: hidden;
75
+ text-align: center;
76
+ }
77
+
78
+ &-roller {
79
+ display: block;
80
+ position: absolute;
81
+ top: 108px;
82
+ width: 100%;
83
+ height: $picker-item-height;
84
+ z-index: 1;
85
+ transform-style: preserve-3d;
86
+
87
+ &-item {
88
+ display: block;
89
+ backface-visibility: hidden;
90
+ position: absolute;
91
+ top: 0;
92
+ width: 100%;
93
+ height: $picker-item-height;
94
+ line-height: $picker-item-height;
95
+ color: $picker-item-text-color;
96
+ font-size: $picker-item-text-font-size;
97
+
98
+ &-hidden {
99
+ visibility: hidden;
100
+ opacity: 0;
101
+ }
102
+ }
103
+ }
104
+
105
+ &-content {
106
+ display: block;
107
+ position: absolute;
108
+ top: 108px;
109
+ width: 100%;
110
+ height: $picker-item-height;
111
+ color: $picker-item-active-text-color;
112
+ z-index: 2;
113
+ overflow: hidden;
114
+ border-left: 0;
115
+ border-right: 0;
116
+ }
117
+ &-list-panel {
118
+ display: block;
119
+ transform-style: preserve-3d;
120
+ }
121
+ &-item {
122
+ display: block;
123
+ white-space: nowrap;
124
+ overflow: hidden;
125
+ text-overflow: ellipsis;
126
+ height: $picker-item-height;
127
+ line-height: $picker-item-height;
128
+ text-align: center;
129
+ font-size: 16px;
130
+ }
131
+ }
@@ -1,27 +1,28 @@
1
1
  .nut-picker {
2
- color: #f00;
3
-
4
- view {
5
- display: block;
6
- }
7
- &__content {
8
- display: block;
9
- position: relative;
10
- text-align: center;
11
- overflow-y: hidden;
12
- &:hover {
13
- cursor: grab;
14
- }
15
- }
16
-
2
+ // 标题
17
3
  &__bar {
18
4
  display: flex;
19
5
  height: 56px;
20
6
  align-items: center;
21
7
  justify-content: space-between;
22
- padding: 0 15px;
23
- font-size: 16px;
24
8
  }
9
+ &__button {
10
+ cursor: pointer;
11
+ padding: $picker-bar-button-padding;
12
+ display: flex;
13
+ align-items: center;
14
+ justify-content: center;
15
+ min-width: 50px;
16
+ }
17
+ &__left {
18
+ color: $picker-cancel-color;
19
+ font-size: $picker-bar-cancel-font-size;
20
+ }
21
+ &__right {
22
+ color: $picker-ok-color;
23
+ font-size: $picker-bar-ok-font-size;
24
+ }
25
+
25
26
  &__column {
26
27
  display: flex;
27
28
  position: relative;
@@ -32,13 +33,16 @@
32
33
  flex-grow: 1;
33
34
  height: 100%;
34
35
  }
35
- &__left {
36
- color: $picker-cancel-color;
37
- font-size: 16px;
38
- }
39
- &__button {
40
- cursor: pointer;
36
+
37
+ &__title {
38
+ flex: 1;
39
+ @include oneline-ellipsis();
40
+ text-align: center;
41
+ color: $picker-bar-title-color;
42
+ font-size: $picker-bar-title-font-size;
43
+ font-weight: $picker-bar-title-font-weight;
41
44
  }
45
+
42
46
  &__wrapper {
43
47
  display: block;
44
48
  }
@@ -53,7 +57,7 @@
53
57
  top: 108px;
54
58
  height: 34px;
55
59
  width: 100%;
56
- border: 1px solid #d8d8d8;
60
+ border: $picker-item-active-line-border;
57
61
  border-left: 0;
58
62
  border-right: 0;
59
63
  }
@@ -72,7 +76,7 @@
72
76
  position: absolute;
73
77
  top: 108px;
74
78
  width: 100%;
75
- height: 36px;
79
+ height: $picker-item-height;
76
80
  z-index: 1;
77
81
  transform-style: preserve-3d;
78
82
 
@@ -82,10 +86,10 @@
82
86
  position: absolute;
83
87
  top: 0;
84
88
  width: 100%;
85
- height: 36px;
86
- line-height: 36px;
87
- color: #808080;
88
- font-size: 16px;
89
+ height: $picker-item-height;
90
+ line-height: $picker-item-height;
91
+ color: $picker-item-text-color;
92
+ font-size: $picker-item-text-font-size;
89
93
 
90
94
  &-hidden {
91
95
  visibility: hidden;
@@ -99,7 +103,8 @@
99
103
  position: absolute;
100
104
  top: 108px;
101
105
  width: 100%;
102
- height: 36px;
106
+ height: $picker-item-height;
107
+ color: $picker-item-active-text-color;
103
108
  z-index: 2;
104
109
  overflow: hidden;
105
110
  border-left: 0;
@@ -114,9 +119,10 @@
114
119
  white-space: nowrap;
115
120
  overflow: hidden;
116
121
  text-overflow: ellipsis;
117
- height: 36px;
118
- line-height: 36px;
122
+ height: $picker-item-height;
123
+ line-height: $picker-item-height;
119
124
  text-align: center;
120
125
  font-size: 16px;
126
+ color: $picker-columns-item-color;
121
127
  }
122
128
  }
@@ -14,7 +14,7 @@
14
14
  background: $progress-inner-background-color;
15
15
  -webkit-transition: all 0.4s;
16
16
  transition: all 0.4s;
17
- position: relative;
17
+ // position: relative;
18
18
  .nut-progress-text {
19
19
  display: flex;
20
20
  flex-direction: column;
@@ -54,7 +54,8 @@
54
54
  font-size: $progress-small-text-font-size;
55
55
  line-height: $progress-small-text-line-height;
56
56
  padding: $progress-small-text-padding;
57
- top: $progress-small-text-top;
57
+ // top: $progress-small-text-top;
58
+ top: 50%;
58
59
  }
59
60
  }
60
61
  &.nut-progress-base {
@@ -63,7 +64,7 @@
63
64
  font-size: $progress-base-text-font-size;
64
65
  line-height: $progress-base-text-line-height;
65
66
  padding: $progress-base-text-padding;
66
- top: $progress-base-text-top;
67
+ top: 50%;
67
68
  }
68
69
  }
69
70
  &.nut-progress-large {
@@ -72,7 +73,7 @@
72
73
  font-size: $progress-large-text-font-size;
73
74
  line-height: $progress-large-text-line-height;
74
75
  padding: $progress-large-text-padding;
75
- top: $progress-large-text-top;
76
+ top: 50%;
76
77
  }
77
78
  }
78
79
  }
@@ -91,7 +92,7 @@
91
92
  border-radius: $progress-insidetext-border-radius;
92
93
  position: absolute;
93
94
  transition: all 0.4s;
94
- top: -42%;
95
+ top: 50%;
95
96
  min-width: 0px;
96
97
  }
97
98
  .nut-icon-success,