@nutui/nutui 3.1.10 → 3.1.12-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 (109) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/nutui.d.ts +5 -1
  3. package/dist/nutui.es.js +4041 -3518
  4. package/dist/nutui.umd.js +4084 -3627
  5. package/dist/packages/_es/ActionSheet.js +13 -12
  6. package/dist/packages/_es/Address.js +63 -49
  7. package/dist/packages/_es/Avatar.js +4 -5
  8. package/dist/packages/_es/BackTop.js +72 -109
  9. package/dist/packages/_es/Badge.js +4 -5
  10. package/dist/packages/_es/Barrage.js +63 -57
  11. package/dist/packages/_es/Button.js +5 -6
  12. package/dist/packages/_es/Calendar.js +27 -18
  13. package/dist/packages/_es/Card.js +104 -0
  14. package/dist/packages/_es/Cell.js +5 -13
  15. package/dist/packages/_es/CellGroup.js +4 -5
  16. package/dist/packages/_es/Checkbox.js +3 -3
  17. package/dist/packages/_es/CheckboxGroup.js +9 -4
  18. package/dist/packages/_es/CircleProgress.js +142 -46
  19. package/dist/packages/_es/Col.js +4 -5
  20. package/dist/packages/_es/Collapse.js +35 -10
  21. package/dist/packages/_es/CollapseItem.js +80 -35
  22. package/dist/packages/_es/CountDown.js +7 -5
  23. package/dist/packages/_es/CountUp.js +34 -31
  24. package/dist/packages/_es/DatePicker.js +451 -219
  25. package/dist/packages/_es/Dialog.js +13 -87
  26. package/dist/packages/_es/Divider.js +5 -6
  27. package/dist/packages/_es/Drag.js +76 -50
  28. package/dist/packages/_es/Elevator.js +81 -52
  29. package/dist/packages/_es/FixedNav.js +8 -9
  30. package/dist/packages/_es/Form.js +137 -0
  31. package/dist/packages/_es/FormItem.js +109 -0
  32. package/dist/packages/_es/Icon.js +6 -40
  33. package/dist/packages/_es/ImagePreview.js +23 -21
  34. package/dist/packages/_es/InfiniteLoading.js +95 -109
  35. package/dist/packages/_es/Input.js +22 -21
  36. package/dist/packages/_es/InputNumber.js +24 -18
  37. package/dist/packages/_es/Layout.js +2 -2
  38. package/dist/packages/_es/Menu.js +89 -171
  39. package/dist/packages/_es/MenuItem.js +155 -18
  40. package/dist/packages/_es/Navbar.js +7 -7
  41. package/dist/packages/_es/NoticeBar.js +39 -26
  42. package/dist/packages/_es/Notify.js +30 -166
  43. package/dist/packages/_es/NumberKeyboard.js +10 -6
  44. package/dist/packages/_es/OverLay.js +22 -29
  45. package/dist/packages/_es/Pagination.js +8 -9
  46. package/dist/packages/_es/Picker.js +61 -447
  47. package/dist/packages/_es/Popover.js +146 -25
  48. package/dist/packages/_es/Popup.js +18 -39
  49. package/dist/packages/_es/Price.js +18 -7
  50. package/dist/packages/_es/Progress.js +23 -12
  51. package/dist/packages/_es/Radio.js +20 -7
  52. package/dist/packages/_es/RadioGroup.js +7 -3
  53. package/dist/packages/_es/Range.js +38 -59
  54. package/dist/packages/_es/Rate.js +16 -20
  55. package/dist/packages/_es/Row.js +4 -5
  56. package/dist/packages/_es/SearchBar.js +7 -5
  57. package/dist/packages/_es/ShortPassword.js +89 -59
  58. package/dist/packages/_es/Signature.js +70 -71
  59. package/dist/packages/_es/Sku.js +508 -0
  60. package/dist/packages/_es/Step.js +10 -8
  61. package/dist/packages/_es/Steps.js +2 -2
  62. package/dist/packages/_es/Swipe.js +42 -27
  63. package/dist/packages/_es/Swiper.js +17 -418
  64. package/dist/packages/_es/SwiperItem.js +14 -39
  65. package/dist/packages/_es/Switch.js +4 -5
  66. package/dist/packages/_es/TabPane.js +4 -5
  67. package/dist/packages/_es/Tabbar.js +4 -5
  68. package/dist/packages/_es/TabbarItem.js +8 -9
  69. package/dist/packages/_es/Tabs.js +23 -17
  70. package/dist/packages/_es/Tag.js +5 -6
  71. package/dist/packages/_es/TextArea.js +16 -12
  72. package/dist/packages/_es/TimeDetail.js +7 -5
  73. package/dist/packages/_es/TimePannel.js +7 -5
  74. package/dist/packages/_es/TimeSelect.js +12 -7
  75. package/dist/packages/_es/Toast.js +41 -163
  76. package/dist/packages/_es/Uploader.js +210 -164
  77. package/dist/packages/_es/commonProps.js +30 -0
  78. package/dist/packages/_es/component.js +1 -1
  79. package/dist/packages/_es/index.js +1 -1
  80. package/dist/packages/_es/index.taro.vue_vue&type=script&lang.js +44 -0
  81. package/dist/packages/_es/index2.js +44 -8
  82. package/dist/packages/_es/index3.js +419 -0
  83. package/dist/packages/_es/pxCheck.js +1 -1
  84. package/dist/packages/_es/raf.js +1 -1
  85. package/dist/packages/_es/use-lock-scroll.js +23 -0
  86. package/dist/packages/_es/util.js +47 -0
  87. package/dist/packages/button/index.scss +9 -0
  88. package/dist/packages/card/index.scss +97 -0
  89. package/dist/packages/checkbox/index.scss +1 -1
  90. package/dist/packages/form/index.scss +2 -0
  91. package/dist/packages/formitem/index.scss +60 -0
  92. package/dist/packages/menu/index.scss +32 -60
  93. package/dist/packages/menuitem/index.scss +36 -99
  94. package/dist/packages/numberkeyboard/index.scss +1 -1
  95. package/dist/packages/progress/index.scss +2 -0
  96. package/dist/packages/radio/index.scss +32 -4
  97. package/dist/packages/radiogroup/index.scss +20 -0
  98. package/dist/packages/sku/index.scss +147 -0
  99. package/dist/packages/switch/index.scss +1 -1
  100. package/dist/packages/uploader/index.scss +95 -8
  101. package/dist/style.css +1 -1
  102. package/dist/style.es.js +1 -2
  103. package/dist/styles/mixins/index.scss +0 -4
  104. package/dist/styles/themes/default.scss +34 -30
  105. package/dist/styles/variables.scss +45 -3
  106. package/package.json +3 -2
  107. package/dist/packages/_es/Video.js +0 -405
  108. package/dist/packages/_es/plugin-vue_export-helper.js +0 -12
  109. package/dist/packages/_es/style.css +0 -160
@@ -0,0 +1,60 @@
1
+ .nut-form-item {
2
+ display: flex;
3
+ &::before {
4
+ position: absolute;
5
+ box-sizing: border-box;
6
+ content: ' ';
7
+ pointer-events: none;
8
+ right: 16px;
9
+ bottom: 0;
10
+ left: 16px;
11
+ transform: scaleX(0);
12
+ }
13
+ &.error {
14
+ &.line {
15
+ &::before {
16
+ border-bottom: 1px solid $form-item-error-line-color;
17
+ transform: scaleX(1);
18
+ transition: transform 200ms cubic-bezier(0, 0, 0.2, 1) 0ms;
19
+ }
20
+ }
21
+ }
22
+
23
+ &__label {
24
+ font-size: 14px;
25
+ font-weight: normal;
26
+ width: 90px;
27
+ margin-right: 10px;
28
+ flex: none;
29
+ display: inline-block;
30
+ word-wrap: break-word;
31
+ &.required {
32
+ &::before {
33
+ content: '*';
34
+ color: $form-item-required-color;
35
+ margin-right: 4px;
36
+ }
37
+ }
38
+ }
39
+ &__body {
40
+ flex: 1;
41
+ display: flex;
42
+ flex-direction: column;
43
+ &__slots {
44
+ .nut-input-text {
45
+ font-size: 14px;
46
+ width: 100%;
47
+ outline: 0 none;
48
+ border: 0;
49
+ text-decoration: none;
50
+ }
51
+ .nut-range-container {
52
+ min-height: 24px;
53
+ }
54
+ }
55
+ &__tips {
56
+ font-size: 10px;
57
+ color: $form-item-error-message-color;
58
+ }
59
+ }
60
+ }
@@ -1,73 +1,45 @@
1
- .nut-menu {
1
+ .nut-menu__bar {
2
2
  position: relative;
3
- font-size: 14px;
4
- color: #1a1a1a;
3
+ display: flex;
4
+ line-height: $nut-menu-bar-line-height;
5
+ background-color: $white;
6
+ border-bottom: 1px solid $nut-menu-bar-border-bottom-color;
5
7
 
6
- .title-list {
7
- display: flex;
8
- line-height: 46px;
9
- align-items: center;
10
- background-color: #fff;
11
- border-bottom: 1px solid #eaf0fb;
12
-
13
- .title {
14
- flex: 1;
15
- text-align: center;
16
-
17
- &.is-active {
18
- font-weight: 600;
19
- }
20
-
21
- &.disabled {
22
- color: #999;
23
- }
24
-
25
- [class*='nut-icon-arrow'] {
26
- vertical-align: middle;
27
- margin-right: 2px;
28
- }
29
- }
8
+ &.opened {
9
+ z-index: $nut-menu-bar-opened-z-index;
30
10
  }
31
11
 
32
- %itemCommon {
33
- position: absolute;
34
- left: 0;
35
- width: 100%;
36
- padding-top: 12px;
37
- padding-bottom: 12px;
38
- border-radius: 0 0 12px 12px;
39
- background-color: #fff;
40
- }
12
+ .nut-menu__item {
13
+ flex: 1;
14
+ text-align: center;
15
+ font-size: $font-size-2;
16
+ color: $title-color;
17
+ min-width: 0;
41
18
 
42
- .option-list {
43
- @extend %itemCommon;
44
- max-height: 214px;
45
- overflow-y: auto;
19
+ &.disabled {
20
+ color: $nut-menu-item-disabled-color;
21
+ }
46
22
 
47
- ul {
48
- display: flex;
49
- flex-wrap: wrap;
50
- list-style: none;
51
- margin: 0;
52
- padding: 0;
23
+ .nut-menu__title-icon {
24
+ transition: all 0.2s linear;
53
25
  }
54
26
 
55
- li {
56
- line-height: 38px;
57
- padding-left: 24px;
58
- box-sizing: border-box;
27
+ .nut-menu__title {
28
+ display: flex;
29
+ align-items: center;
30
+ justify-content: center;
31
+ max-width: 100%;
32
+
33
+ .nut-menu__title-text {
34
+ @include text-ellipsis;
35
+ display: block;
36
+ padding-left: $nut-menu-title-text-padding-left;
37
+ padding-right: $nut-menu-title-text-padding-right;
38
+ }
59
39
 
60
- .nut-icon-Check {
61
- vertical-align: middle;
62
- margin-right: 6px;
40
+ &.active .nut-menu__title-icon {
41
+ transform: rotate(180deg);
63
42
  }
64
43
  }
65
44
  }
66
-
67
- .customer-item {
68
- @extend %itemCommon;
69
- padding-left: 24px;
70
- padding-right: 24px;
71
- box-sizing: border-box;
72
- }
73
45
  }
@@ -1,109 +1,46 @@
1
1
  .nut-menu-item {
2
- flex: 1;
3
- display: flex;
4
- align-items: center;
5
- justify-content: center;
6
- cursor: pointer;
7
- padding: 0 5px;
8
- &.disabled {
9
- color: #999;
10
- }
11
- &.nut-menu-item-active {
12
- .nut-menu-title {
13
- font-weight: bold;
14
- .icon {
15
- color: #1a1a1a;
16
- transition: all ease 0.3s;
17
- transform: rotate(-180deg);
18
- background: url('https://img14.360buyimg.com/imagetools/jfs/t1/144044/16/20214/521/5fe5bb14Ebf213fe3/40f271b982f31898.png')
19
- no-repeat;
20
- background-size: contain;
21
- }
22
- }
23
- .nut-menu-panel {
24
- display: block;
25
- }
2
+ .active {
3
+ font-weight: 500;
26
4
  }
27
5
  }
28
- .nut-menu-title {
29
- font-size: 14px;
6
+
7
+ .nut-menu-item__content {
8
+ padding: $nut-menu-item-content-padding;
9
+ max-height: $nut-menu-item-content-max-height;
10
+ overflow-y: auto;
30
11
  display: flex;
31
- align-items: center;
32
- .title-name {
33
- white-space: nowrap;
34
- max-width: 100px;
35
- overflow: hidden;
36
- text-overflow: ellipsis;
37
- }
38
- .icon {
39
- display: inline-block;
40
- width: 6px;
41
- height: 6px;
42
- background: url('https://img13.360buyimg.com/imagetools/jfs/t1/152898/12/10149/452/5fd990b5Ec7c12d70/3bf06076b758bed1.png')
43
- no-repeat;
44
- background-size: contain;
45
- color: #909ca4;
46
- transform: rotate(0deg);
47
- transition: all ease 0.3s;
48
- margin: 0 2px;
12
+ flex-wrap: wrap;
13
+
14
+ .nut-menu-item__option {
15
+ color: $title-color;
16
+ font-size: $font-size-2;
17
+ padding-top: $nut-menu-item-option-padding-top;
18
+ padding-bottom: $nut-menu-item-option-padding-bottom;
19
+ display: flex;
20
+ align-items: center;
21
+
22
+ i {
23
+ margin-right: $nut-menu-item-option-i-margin-right;
24
+ }
49
25
  }
50
26
  }
51
- .nut-menu-panel {
52
- display: none;
53
- width: 100%;
27
+
28
+ .nut-menu__overlay {
54
29
  position: absolute;
55
- left: 0;
56
- top: 46px;
57
- color: #2d2d2d;
58
- overflow: hidden;
59
- background-color: #fff;
60
- -webkit-box-sizing: border-box;
61
- box-sizing: border-box;
62
- -webkit-overflow-scrolling: touch;
63
- z-index: 9998;
64
- border-top: 1px solid #f7f8fa;
65
- border-radius: 0 0 15px 15px;
66
- box-shadow: 0 4px 5px 0px rgba(236, 236, 236, 0.25);
67
- overflow: auto;
68
- // &.active{
69
- // display: block;
70
- // }
30
+ top: auto !important;
71
31
  }
72
32
 
73
- .menu-list {
74
- display: flex;
75
- padding: 10px 15px;
76
- flex-direction: column;
77
- &.bubble-line {
78
- flex-flow: wrap;
79
- .menu-option {
80
- width: 50%;
81
- }
82
- }
83
- &.three-line {
84
- flex-flow: wrap;
85
- .menu-option {
86
- width: 33%;
87
- }
88
- }
89
- .menu-option {
90
- min-height: 24px;
91
- line-height: 42px;
92
- font-size: 14px;
93
- color: #1a1a1a;
94
- width: 100%;
95
- white-space: nowrap;
96
- overflow: hidden;
97
- text-overflow: ellipsis;
98
- padding: 0 5px;
99
- &.checked {
100
- font-weight: bold;
101
- }
102
- }
103
- .check-icon {
104
- width: 14px;
105
- height: 14px;
106
- margin-right: 5px;
107
- color: #fa2c19;
108
- }
33
+ .nut-menu__pop {
34
+ transition: all 0 ease 0;
35
+ transform: none;
36
+ top: auto !important;
37
+ }
38
+
39
+ .placeholder-element {
40
+ position: fixed;
41
+ top: -$nut-menu-bar-line-height;
42
+ left: 0;
43
+ right: 0;
44
+ z-index: $nut-menu-bar-opened-z-index;
45
+ background-color: transparent;
109
46
  }
@@ -104,5 +104,5 @@
104
104
  }
105
105
  }
106
106
  .nut-numberkeyboard-overlay {
107
- background-color: rgba(0, 0, 0, 0);
107
+ background-color: rgba(0, 0, 0, 0)!important;
108
108
  }
@@ -85,6 +85,7 @@
85
85
  padding: 0 5px;
86
86
  font-size: 13px;
87
87
  line-height: 1;
88
+ min-width: 35px;
88
89
  }
89
90
  .nut-progress-insidetext {
90
91
  padding: 3px 5px 3px 6px;
@@ -93,6 +94,7 @@
93
94
  position: absolute;
94
95
  transition: all 0.4s;
95
96
  top: -42%;
97
+ min-width: 0px;
96
98
  }
97
99
  .nut-icon-success,
98
100
  .nut-icon-fail {
@@ -1,23 +1,51 @@
1
1
  .nut-radio {
2
2
  display: flex;
3
3
  align-items: center;
4
+ flex-shrink: 0;
5
+
6
+ &:last-child {
7
+ margin-bottom: 0 !important;
8
+ margin-right: 0 !important;
9
+ }
10
+
4
11
  &--reverse {
5
- flex-direction: row-reverse;
6
12
  .nut-radio__label {
7
13
  margin-right: 15px;
8
14
  margin-left: 0;
9
15
  }
10
16
  }
17
+
18
+ &__button {
19
+ display: inline-flex;
20
+ align-items: center;
21
+ padding: 5px 18px;
22
+ font-size: 12px;
23
+ background: #f6f7f9;
24
+ border-radius: 15px;
25
+ color: $radio-label-font-color;
26
+ box-sizing: border-box;
27
+ &--active {
28
+ background: $radio-label-button-background;
29
+ color: $radio-label-font-active-color;
30
+ border: 1px solid $radio-label-button-border-color;
31
+ }
32
+ &--disabled {
33
+ color: $radio-label-disable-color;
34
+ border: none;
35
+ }
36
+ }
37
+
11
38
  &__label {
12
39
  margin-left: 15px;
13
- font-size: 16px;
14
- color: $radio-label-color;
40
+ font-size: 14px;
41
+ color: $radio-label-font-color;
15
42
  &--disabled {
16
43
  color: $radio-label-disable-color;
17
44
  }
18
45
  }
46
+
19
47
  &__icon {
20
- color: $primary-color;
48
+ color: $radio-label-font-active-color;
21
49
  transition-duration: 0.3s;
22
50
  transition-property: color, border-color, background-color;
23
51
  }
@@ -1,2 +1,22 @@
1
1
  .nut-radiogroup {
2
+ display: inline-block;
3
+ .nut-radio {
4
+ margin-bottom: 5px;
5
+ }
6
+ &--vertical {
7
+ }
8
+ &--horizontal {
9
+ .nut-radio {
10
+ display: inline-flex;
11
+ margin-right: 10px;
12
+ &--round {
13
+ .nut-radio__label {
14
+ margin: 0 6px;
15
+ }
16
+ }
17
+ &--button {
18
+ // ...
19
+ }
20
+ }
21
+ }
2
22
  }
@@ -0,0 +1,147 @@
1
+ .nut-sku {
2
+ height: 100%;
3
+ display: flex;
4
+ flex-direction: column;
5
+ padding: 0px;
6
+ background: $white;
7
+ &-header {
8
+ height: 100px;
9
+ display: flex;
10
+ flex-shrink: 0;
11
+ margin-top: 18px;
12
+ padding: 0 18px;
13
+ > img {
14
+ width: 100px;
15
+ height: 100px;
16
+ flex-shrink: 0;
17
+ margin-right: 12px;
18
+ }
19
+ &-right {
20
+ flex: 1;
21
+ display: flex;
22
+ flex-direction: column;
23
+ justify-content: flex-end;
24
+ &-extra {
25
+ font-size: 12px;
26
+ color: $text-color;
27
+ }
28
+ }
29
+ }
30
+ &-content {
31
+ flex: 1;
32
+ overflow-y: auto;
33
+ overflow-x: hidden;
34
+ &::-webkit-scrollbar {
35
+ display: none;
36
+ }
37
+ margin-top: 24px;
38
+ padding: 0 18px;
39
+ }
40
+ &-select {
41
+ &-item {
42
+ display: flex;
43
+ flex-direction: column;
44
+ &-title {
45
+ height: 13px;
46
+ font-weight: bold;
47
+ font-size: 13px;
48
+ color: $black;
49
+ margin-bottom: 18px;
50
+ }
51
+ &-skus {
52
+ display: flex;
53
+ flex-wrap: wrap;
54
+ &-sku {
55
+ margin-right: 12px;
56
+ height: 30px;
57
+ line-height: 30px;
58
+ padding: 0 18px;
59
+ border-radius: 15px;
60
+ font-size: 11px;
61
+ color: $black;
62
+ flex-shrink: 0;
63
+ margin-bottom: 12px;
64
+ background: rgba(242, 242, 242, 1);
65
+ border: 1px solid rgba(242, 242, 242, 1);
66
+
67
+ &.active {
68
+ background: rgba(252, 237, 235, 1);
69
+ border: $sku-item-border;
70
+ color: $primary-color;
71
+ }
72
+ &.disable {
73
+ color: $text-color;
74
+ text-decoration: $sku-item-disable-line;
75
+ }
76
+ }
77
+ }
78
+ }
79
+ }
80
+ &-stepper {
81
+ display: flex;
82
+ justify-content: space-between;
83
+ margin: 10px 0 30px;
84
+ &-title {
85
+ font-weight: bold;
86
+ font-size: 13px;
87
+ color: $black;
88
+ margin-right: 12px;
89
+ }
90
+ &-limit {
91
+ flex: 1;
92
+ display: flex;
93
+ align-items: center;
94
+
95
+ font-size: 12px;
96
+ color: $text-color;
97
+ }
98
+ &-count {
99
+ display: flex;
100
+ align-items: center;
101
+ &-lowestBuy {
102
+ font-size: 12px;
103
+ color: $primary-color;
104
+ }
105
+ }
106
+ }
107
+ &-operate {
108
+ width: 100%;
109
+ &-desc {
110
+ display: block;
111
+ width: 100%;
112
+ padding: 10px 0;
113
+ text-align: center;
114
+ background: #fbf9da;
115
+ color: #de6a1c;
116
+ font-size: 12px;
117
+ }
118
+ &-btn {
119
+ height: 54px;
120
+ width: 100%;
121
+ display: flex;
122
+ justify-content: space-between;
123
+ align-items: center;
124
+ background: $white;
125
+ text-align: center;
126
+ padding: 0 18px;
127
+ box-sizing: border-box;
128
+ &-item {
129
+ width: 100%;
130
+ height: 40px;
131
+ line-height: 40px;
132
+ margin-right: 18px;
133
+ background: $sku-opetate-bg-default;
134
+ border-radius: 21px;
135
+ font-size: 15px;
136
+ color: $white;
137
+ &:last-child {
138
+ margin-right: 0;
139
+ }
140
+ }
141
+
142
+ &-buy {
143
+ background: $sku-opetate-bg-buy;
144
+ }
145
+ }
146
+ }
147
+ }
@@ -1,6 +1,6 @@
1
1
  .nut-switch {
2
2
  cursor: pointer;
3
- display: flex;
3
+ display: inline-flex;
4
4
  align-items: center;
5
5
  background-color: $primary-color;
6
6
  border-radius: 21px;
@@ -10,11 +10,14 @@
10
10
  &__upload {
11
11
  position: relative;
12
12
  background: $uploader-background;
13
- width: $uploader-width;
14
- height: $uploader-height;
13
+ width: $uploader-picture-width;
14
+ height: $uploader-picture-height;
15
15
  display: flex;
16
16
  align-items: center;
17
17
  justify-content: center;
18
+
19
+ &.list {
20
+ }
18
21
  }
19
22
 
20
23
  &__input {
@@ -32,17 +35,68 @@
32
35
  }
33
36
 
34
37
  &__preview {
35
- width: $uploader-width;
36
- height: $uploader-height;
37
38
  display: flex;
38
39
  align-items: center;
39
40
  justify-content: center;
40
41
  margin-right: 10px;
41
42
  margin-bottom: 10px;
43
+ box-shadow: 0 2px 10px 0 rgb(0 0 0 / 10%);
44
+
45
+ &__progress {
46
+ position: absolute;
47
+ left: 0;
48
+ top: 0;
49
+ bottom: 0;
50
+ right: 0;
51
+ background: rgba(0, 0, 0, 0.6);
52
+ display: flex;
53
+ flex-direction: column;
54
+ align-items: center;
55
+ justify-content: center;
56
+ &__msg {
57
+ color: $white;
58
+ font-size: 12px;
59
+ margin-top: 6px;
60
+ }
61
+ }
62
+ &.list {
63
+ width: 100%;
64
+ margin-right: 0px;
65
+ margin-bottom: 0px;
66
+ margin-top: 10px;
67
+ }
68
+ &-list {
69
+ width: 100%;
70
+ height: 32px;
71
+ display: flex;
72
+ flex-direction: column;
73
+ position: relative;
74
+ padding-right: 20px;
75
+ .nut-uploader__preview-img__file__name {
76
+ -webkit-line-clamp: 1;
77
+ padding: 2px;
78
+ height: 24px;
79
+ }
80
+
81
+ .nut-uploader__preview-img__file__del {
82
+ position: absolute;
83
+ right: 4px;
84
+ top: 6px;
85
+ }
86
+ .nut-progress {
87
+ position: absolute;
88
+ left: 0;
89
+ right: 0;
90
+ bottom: 0;
91
+ .nut-progress-outer {
92
+ height: 2px !important;
93
+ }
94
+ }
95
+ }
42
96
  &-img {
43
97
  position: relative;
44
- width: 100%;
45
- height: 100%;
98
+ width: $uploader-picture-width;
99
+ height: $uploader-picture-height;
46
100
  .close {
47
101
  position: absolute;
48
102
  right: 0;
@@ -55,16 +109,49 @@
55
109
  left: 0;
56
110
  right: 0;
57
111
  text-align: center;
112
+ display: flex;
113
+ align-items: center;
114
+ justify-content: center;
58
115
  font-size: 12px;
59
116
  color: $white;
60
- height: 30px;
61
- line-height: 30px;
117
+ height: 0px;
118
+ transition: height 0.3s;
62
119
  background: rgba(0, 0, 0, 0.54);
120
+ @include oneline-ellipsis();
63
121
  }
64
122
  &__c {
65
123
  height: 100%;
66
124
  width: 100%;
67
125
  }
126
+ &__file {
127
+ height: 100%;
128
+ width: 100%;
129
+ display: flex;
130
+ align-items: center;
131
+ justify-content: center;
132
+ transition: all 0.3s;
133
+
134
+ &__name {
135
+ display: flex;
136
+ width: 100%;
137
+ font-size: 12px;
138
+ color: $text-color;
139
+ &.error {
140
+ color: red !important;
141
+ }
142
+ &.success {
143
+ color: #1890ff !important;
144
+ }
145
+ .nut-icon-link {
146
+ &::before {
147
+ margin-left: -25%;
148
+ margin-top: -25%;
149
+ transform: none;
150
+ }
151
+ }
152
+ @include moreline-ellipsis();
153
+ }
154
+ }
68
155
  }
69
156
  }
70
157
  }