@kengic/uni 0.5.1 → 0.5.2-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 (146) hide show
  1. package/dist/uni/uni-ui/uni-badge/uni-badge.vue +222 -219
  2. package/dist/uni/uni-ui/uni-breadcrumb/uni-breadcrumb.vue +29 -29
  3. package/dist/uni/uni-ui/uni-breadcrumb-item/uni-breadcrumb-item.vue +88 -88
  4. package/dist/uni/uni-ui/uni-calendar/calendar.js +936 -532
  5. package/dist/uni/uni-ui/uni-calendar/i18n/en.json +10 -10
  6. package/dist/uni/uni-ui/uni-calendar/i18n/index.js +8 -7
  7. package/dist/uni/uni-ui/uni-calendar/i18n/zh-Hans.json +10 -10
  8. package/dist/uni/uni-ui/uni-calendar/i18n/zh-Hant.json +10 -10
  9. package/dist/uni/uni-ui/uni-calendar/uni-calendar-item.vue +190 -168
  10. package/dist/uni/uni-ui/uni-calendar/uni-calendar.vue +459 -459
  11. package/dist/uni/uni-ui/uni-calendar/util.js +324 -340
  12. package/dist/uni/uni-ui/uni-card/uni-card.vue +8 -1
  13. package/dist/uni/uni-ui/uni-col/uni-col.vue +294 -287
  14. package/dist/uni/uni-ui/uni-collapse/uni-collapse.vue +139 -140
  15. package/dist/uni/uni-ui/uni-collapse-item/uni-collapse-item.vue +381 -378
  16. package/dist/uni/uni-ui/uni-combox/uni-combox.vue +280 -272
  17. package/dist/uni/uni-ui/uni-countdown/i18n/en.json +4 -4
  18. package/dist/uni/uni-ui/uni-countdown/i18n/index.js +8 -7
  19. package/dist/uni/uni-ui/uni-countdown/i18n/zh-Hans.json +4 -4
  20. package/dist/uni/uni-ui/uni-countdown/i18n/zh-Hant.json +4 -4
  21. package/dist/uni/uni-ui/uni-countdown/uni-countdown.vue +249 -257
  22. package/dist/uni/uni-ui/uni-data-checkbox/uni-data-checkbox.vue +832 -813
  23. package/dist/uni/uni-ui/uni-data-picker/keypress.js +42 -42
  24. package/dist/uni/uni-ui/uni-data-picker/uni-data-picker.vue +535 -516
  25. package/dist/uni/uni-ui/uni-data-pickerview/uni-data-picker.js +623 -618
  26. package/dist/uni/uni-ui/uni-data-pickerview/uni-data-pickerview.vue +293 -288
  27. package/dist/uni/uni-ui/uni-data-select/uni-data-select.vue +495 -509
  28. package/dist/uni/uni-ui/uni-dateformat/date-format.js +181 -184
  29. package/dist/uni/uni-ui/uni-dateformat/uni-dateformat.vue +81 -82
  30. package/dist/uni/uni-ui/uni-datetime-picker/calendar-item.vue +176 -170
  31. package/dist/uni/uni-ui/uni-datetime-picker/calendar.vue +926 -920
  32. package/dist/uni/uni-ui/uni-datetime-picker/i18n/en.json +20 -20
  33. package/dist/uni/uni-ui/uni-datetime-picker/i18n/index.js +8 -7
  34. package/dist/uni/uni-ui/uni-datetime-picker/i18n/zh-Hans.json +21 -21
  35. package/dist/uni/uni-ui/uni-datetime-picker/i18n/zh-Hant.json +21 -21
  36. package/dist/uni/uni-ui/uni-datetime-picker/time-picker.vue +921 -926
  37. package/dist/uni/uni-ui/uni-datetime-picker/uni-datetime-picker.vue +1059 -1012
  38. package/dist/uni/uni-ui/uni-datetime-picker/util.js +366 -377
  39. package/dist/uni/uni-ui/uni-drawer/keypress.js +42 -42
  40. package/dist/uni/uni-ui/uni-drawer/uni-drawer.vue +176 -167
  41. package/dist/uni/uni-ui/uni-easyinput/common.js +40 -42
  42. package/dist/uni/uni-ui/uni-easyinput/uni-easyinput.vue +628 -547
  43. package/dist/uni/uni-ui/uni-fab/uni-fab.vue +507 -483
  44. package/dist/uni/uni-ui/uni-fav/i18n/en.json +2 -2
  45. package/dist/uni/uni-ui/uni-fav/i18n/index.js +8 -7
  46. package/dist/uni/uni-ui/uni-fav/i18n/zh-Hans.json +2 -2
  47. package/dist/uni/uni-ui/uni-fav/i18n/zh-Hant.json +2 -2
  48. package/dist/uni/uni-ui/uni-fav/uni-fav.vue +155 -147
  49. package/dist/uni/uni-ui/uni-file-picker/choose-and-upload-file.js +172 -198
  50. package/dist/uni/uni-ui/uni-file-picker/uni-file-picker.vue +636 -634
  51. package/dist/uni/uni-ui/uni-file-picker/upload-file.vue +294 -293
  52. package/dist/uni/uni-ui/uni-file-picker/upload-image.vue +267 -270
  53. package/dist/uni/uni-ui/uni-file-picker/utils.js +81 -82
  54. package/dist/uni/uni-ui/uni-forms/uni-forms.vue +360 -372
  55. package/dist/uni/uni-ui/uni-forms/utils.js +170 -174
  56. package/dist/uni/uni-ui/uni-forms/validate.js +447 -456
  57. package/dist/uni/uni-ui/uni-forms-item/uni-forms-item.vue +497 -497
  58. package/dist/uni/uni-ui/uni-goods-nav/i18n/en.json +4 -4
  59. package/dist/uni/uni-ui/uni-goods-nav/i18n/index.js +8 -7
  60. package/dist/uni/uni-ui/uni-goods-nav/i18n/zh-Hans.json +4 -4
  61. package/dist/uni/uni-ui/uni-goods-nav/i18n/zh-Hant.json +4 -4
  62. package/dist/uni/uni-ui/uni-goods-nav/uni-goods-nav.vue +238 -222
  63. package/dist/uni/uni-ui/uni-grid/uni-grid.vue +134 -134
  64. package/dist/uni/uni-ui/uni-grid-item/uni-grid-item.vue +121 -119
  65. package/dist/uni/uni-ui/uni-group/uni-group.vue +121 -121
  66. package/dist/uni/uni-ui/uni-icons/icons.js +1170 -1168
  67. package/dist/uni/uni-ui/uni-icons/uni-icons.vue +91 -86
  68. package/dist/uni/uni-ui/uni-icons/uniicons.css +166 -166
  69. package/dist/uni/uni-ui/uni-indexed-list/uni-indexed-list-item.vue +129 -129
  70. package/dist/uni/uni-ui/uni-indexed-list/uni-indexed-list.vue +352 -347
  71. package/dist/uni/uni-ui/uni-link/uni-link.vue +134 -119
  72. package/dist/uni/uni-ui/uni-list/uni-list.vue +119 -110
  73. package/dist/uni/uni-ui/uni-list/uni-refresh.vue +14 -14
  74. package/dist/uni/uni-ui/uni-list/uni-refresh.wxs +14 -14
  75. package/dist/uni/uni-ui/uni-list-ad/uni-list-ad.vue +101 -95
  76. package/dist/uni/uni-ui/uni-list-chat/uni-list-chat.scss +18 -18
  77. package/dist/uni/uni-ui/uni-list-chat/uni-list-chat.vue +602 -586
  78. package/dist/uni/uni-ui/uni-list-item/uni-list-item.vue +507 -503
  79. package/dist/uni/uni-ui/uni-load-more/i18n/en.json +3 -3
  80. package/dist/uni/uni-ui/uni-load-more/i18n/index.js +8 -7
  81. package/dist/uni/uni-ui/uni-load-more/i18n/zh-Hans.json +3 -3
  82. package/dist/uni/uni-ui/uni-load-more/i18n/zh-Hant.json +3 -3
  83. package/dist/uni/uni-ui/uni-load-more/uni-load-more.vue +402 -392
  84. package/dist/uni/uni-ui/uni-nav-bar/uni-nav-bar.vue +328 -330
  85. package/dist/uni/uni-ui/uni-nav-bar/uni-status-bar.vue +17 -17
  86. package/dist/uni/uni-ui/uni-notice-bar/uni-notice-bar.vue +422 -401
  87. package/dist/uni/uni-ui/uni-number-box/uni-number-box.vue +211 -205
  88. package/dist/uni/uni-ui/uni-pagination/i18n/en.json +3 -3
  89. package/dist/uni/uni-ui/uni-pagination/i18n/es.json +3 -3
  90. package/dist/uni/uni-ui/uni-pagination/i18n/fr.json +3 -3
  91. package/dist/uni/uni-ui/uni-pagination/i18n/index.js +12 -11
  92. package/dist/uni/uni-ui/uni-pagination/i18n/zh-Hans.json +3 -3
  93. package/dist/uni/uni-ui/uni-pagination/i18n/zh-Hant.json +3 -3
  94. package/dist/uni/uni-ui/uni-pagination/uni-pagination.vue +450 -433
  95. package/dist/uni/uni-ui/uni-popup/uni-popup.vue +404 -404
  96. package/dist/uni/uni-ui/uni-popup-dialog/keypress.js +42 -42
  97. package/dist/uni/uni-ui/uni-popup-dialog/uni-popup-dialog.vue +1 -0
  98. package/dist/uni/uni-ui/uni-popup-message/uni-popup-message.vue +126 -125
  99. package/dist/uni/uni-ui/uni-popup-share/uni-popup-share.vue +172 -172
  100. package/dist/uni/uni-ui/uni-rate/uni-rate.vue +343 -347
  101. package/dist/uni/uni-ui/uni-row/uni-row.vue +180 -182
  102. package/dist/uni/uni-ui/uni-scss/changelog.md +11 -4
  103. package/dist/uni/uni-ui/uni-scss/package.json +73 -73
  104. package/dist/uni/uni-ui/uni-scss/readme.md +2 -1
  105. package/dist/uni/uni-ui/uni-scss/styles/setting/_border.scss +2 -2
  106. package/dist/uni/uni-ui/uni-scss/styles/setting/_color.scss +46 -47
  107. package/dist/uni/uni-ui/uni-scss/styles/setting/_radius.scss +49 -49
  108. package/dist/uni/uni-ui/uni-scss/styles/setting/_space.scss +52 -53
  109. package/dist/uni/uni-ui/uni-scss/styles/setting/_styles.scss +142 -147
  110. package/dist/uni/uni-ui/uni-scss/styles/setting/_text.scss +20 -20
  111. package/dist/uni/uni-ui/uni-scss/styles/setting/_variables.scss +111 -95
  112. package/dist/uni/uni-ui/uni-scss/styles/tools/functions.scss +28 -18
  113. package/dist/uni/uni-ui/uni-scss/theme.scss +10 -7
  114. package/dist/uni/uni-ui/uni-scss/variables.scss +42 -24
  115. package/dist/uni/uni-ui/uni-search-bar/i18n/en.json +3 -3
  116. package/dist/uni/uni-ui/uni-search-bar/i18n/index.js +8 -7
  117. package/dist/uni/uni-ui/uni-search-bar/i18n/zh-Hans.json +2 -2
  118. package/dist/uni/uni-ui/uni-search-bar/i18n/zh-Hant.json +2 -2
  119. package/dist/uni/uni-ui/uni-search-bar/uni-search-bar.vue +290 -281
  120. package/dist/uni/uni-ui/uni-section/uni-section.vue +149 -146
  121. package/dist/uni/uni-ui/uni-segmented-control/uni-segmented-control.vue +141 -131
  122. package/dist/uni/uni-ui/uni-steps/uni-steps.vue +255 -236
  123. package/dist/uni/uni-ui/uni-swipe-action/uni-swipe-action.vue +51 -51
  124. package/dist/uni/uni-ui/uni-swipe-action-item/bindingx.js +276 -282
  125. package/dist/uni/uni-ui/uni-swipe-action-item/isPC.js +10 -10
  126. package/dist/uni/uni-ui/uni-swipe-action-item/mpalipay.js +182 -187
  127. package/dist/uni/uni-ui/uni-swipe-action-item/mpother.js +235 -244
  128. package/dist/uni/uni-ui/uni-swipe-action-item/mpwxs.js +70 -75
  129. package/dist/uni/uni-ui/uni-swipe-action-item/render.js +238 -247
  130. package/dist/uni/uni-ui/uni-swipe-action-item/uni-swipe-action-item.vue +387 -313
  131. package/dist/uni/uni-ui/uni-swipe-action-item/wx.wxs +206 -215
  132. package/dist/uni/uni-ui/uni-swiper-dot/uni-swiper-dot.vue +241 -197
  133. package/dist/uni/uni-ui/uni-table/uni-table.vue +445 -447
  134. package/dist/uni/uni-ui/uni-tag/uni-tag.vue +234 -244
  135. package/dist/uni/uni-ui/uni-tbody/uni-tbody.vue +20 -23
  136. package/dist/uni/uni-ui/uni-td/uni-td.vue +79 -80
  137. package/dist/uni/uni-ui/uni-th/filter-dropdown.vue +510 -503
  138. package/dist/uni/uni-ui/uni-th/uni-th.vue +289 -273
  139. package/dist/uni/uni-ui/uni-thead/uni-thead.vue +115 -114
  140. package/dist/uni/uni-ui/uni-title/uni-title.vue +151 -154
  141. package/dist/uni/uni-ui/uni-tooltip/uni-tooltip.vue +55 -60
  142. package/dist/uni/uni-ui/uni-tr/table-checkbox.vue +162 -163
  143. package/dist/uni/uni-ui/uni-tr/uni-tr.vue +158 -157
  144. package/dist/uni/uni-ui/uni-transition/createAnimation.js +130 -113
  145. package/dist/uni/uni-ui/uni-transition/uni-transition.vue +274 -272
  146. package/package.json +1 -1
@@ -1,292 +1,289 @@
1
1
  <template>
2
- <view class="uni-file-picker__container">
3
- <view class="file-picker__box" v-for="(item,index) in filesList" :key="index" :style="boxStyle">
4
- <view class="file-picker__box-content" :style="borderStyle">
5
- <image class="file-image" :src="item.url" mode="aspectFill" @click.stop="prviewImage(item,index)"></image>
6
- <view v-if="delIcon && !readonly" class="icon-del-box" @click.stop="delFile(index)">
7
- <view class="icon-del"></view>
8
- <view class="icon-del rotate"></view>
9
- </view>
10
- <view v-if="(item.progress && item.progress !== 100) ||item.progress===0 " class="file-picker__progress">
11
- <progress class="file-picker__progress-item" :percent="item.progress === -1?0:item.progress" stroke-width="4"
12
- :backgroundColor="item.errMsg?'#ff5a5f':'#EBEBEB'" />
13
- </view>
14
- <view v-if="item.errMsg" class="file-picker__mask" @click.stop="uploadFiles(item,index)">
15
- 点击重试
16
- </view>
17
- </view>
18
- </view>
19
- <view v-if="filesList.length < limit && !readonly" class="file-picker__box" :style="boxStyle">
20
- <view class="file-picker__box-content is-add" :style="borderStyle" @click="choose">
21
- <slot>
22
- <view class="icon-add"></view>
23
- <view class="icon-add rotate"></view>
24
- </slot>
25
- </view>
26
- </view>
27
- </view>
2
+ <view class="uni-file-picker__container">
3
+ <view class="file-picker__box" v-for="(item, index) in filesList" :key="index" :style="boxStyle">
4
+ <view class="file-picker__box-content" :style="borderStyle">
5
+ <image class="file-image" :src="item.url" mode="aspectFill" @click.stop="prviewImage(item, index)"></image>
6
+ <view v-if="delIcon && !readonly" class="icon-del-box" @click.stop="delFile(index)">
7
+ <view class="icon-del"></view>
8
+ <view class="icon-del rotate"></view>
9
+ </view>
10
+ <view v-if="(item.progress && item.progress !== 100) || item.progress === 0" class="file-picker__progress">
11
+ <progress
12
+ class="file-picker__progress-item"
13
+ :percent="item.progress === -1 ? 0 : item.progress"
14
+ stroke-width="4"
15
+ :backgroundColor="item.errMsg ? '#ff5a5f' : '#EBEBEB'"
16
+ />
17
+ </view>
18
+ <view v-if="item.errMsg" class="file-picker__mask" @click.stop="uploadFiles(item, index)"> 点击重试 </view>
19
+ </view>
20
+ </view>
21
+ <view v-if="filesList.length < limit && !readonly" class="file-picker__box" :style="boxStyle">
22
+ <view class="file-picker__box-content is-add" :style="borderStyle" @click="choose">
23
+ <slot>
24
+ <view class="icon-add"></view>
25
+ <view class="icon-add rotate"></view>
26
+ </slot>
27
+ </view>
28
+ </view>
29
+ </view>
28
30
  </template>
29
31
 
30
32
  <script>
31
- export default {
32
- name: "uploadImage",
33
- emits:['uploadFiles','choose','delFile'],
34
- props: {
35
- filesList: {
36
- type: Array,
37
- default () {
38
- return []
39
- }
40
- },
41
- disabled:{
42
- type: Boolean,
43
- default: false
44
- },
45
- disablePreview: {
46
- type: Boolean,
47
- default: false
48
- },
49
- limit: {
50
- type: [Number, String],
51
- default: 9
52
- },
53
- imageStyles: {
54
- type: Object,
55
- default () {
56
- return {
57
- width: 'auto',
58
- height: 'auto',
59
- border: {}
60
- }
61
- }
62
- },
63
- delIcon: {
64
- type: Boolean,
65
- default: true
66
- },
67
- readonly:{
68
- type:Boolean,
69
- default:false
70
- }
71
- },
72
- computed: {
73
- styles() {
74
- let styles = {
75
- width: 'auto',
76
- height: 'auto',
77
- border: {}
78
- }
79
- return Object.assign(styles, this.imageStyles)
80
- },
81
- boxStyle() {
82
- const {
83
- width = 'auto',
84
- height = 'auto'
85
- } = this.styles
86
- let obj = {}
87
- if (height === 'auto') {
88
- if (width !== 'auto') {
89
- obj.height = this.value2px(width)
90
- obj['padding-top'] = 0
91
- } else {
92
- obj.height = 0
93
- }
94
- } else {
95
- obj.height = this.value2px(height)
96
- obj['padding-top'] = 0
97
- }
33
+ export default {
34
+ name: 'uploadImage',
35
+ emits: ['uploadFiles', 'choose', 'delFile'],
36
+ props: {
37
+ filesList: {
38
+ type: Array,
39
+ default() {
40
+ return [];
41
+ },
42
+ },
43
+ disabled: {
44
+ type: Boolean,
45
+ default: false,
46
+ },
47
+ disablePreview: {
48
+ type: Boolean,
49
+ default: false,
50
+ },
51
+ limit: {
52
+ type: [Number, String],
53
+ default: 9,
54
+ },
55
+ imageStyles: {
56
+ type: Object,
57
+ default() {
58
+ return {
59
+ width: 'auto',
60
+ height: 'auto',
61
+ border: {},
62
+ };
63
+ },
64
+ },
65
+ delIcon: {
66
+ type: Boolean,
67
+ default: true,
68
+ },
69
+ readonly: {
70
+ type: Boolean,
71
+ default: false,
72
+ },
73
+ },
74
+ computed: {
75
+ styles() {
76
+ let styles = {
77
+ width: 'auto',
78
+ height: 'auto',
79
+ border: {},
80
+ };
81
+ return Object.assign(styles, this.imageStyles);
82
+ },
83
+ boxStyle() {
84
+ const { width = 'auto', height = 'auto' } = this.styles;
85
+ let obj = {};
86
+ if (height === 'auto') {
87
+ if (width !== 'auto') {
88
+ obj.height = this.value2px(width);
89
+ obj['padding-top'] = 0;
90
+ } else {
91
+ obj.height = 0;
92
+ }
93
+ } else {
94
+ obj.height = this.value2px(height);
95
+ obj['padding-top'] = 0;
96
+ }
98
97
 
99
- if (width === 'auto') {
100
- if (height !== 'auto') {
101
- obj.width = this.value2px(height)
102
- } else {
103
- obj.width = '33.3%'
104
- }
105
- } else {
106
- obj.width = this.value2px(width)
107
- }
98
+ if (width === 'auto') {
99
+ if (height !== 'auto') {
100
+ obj.width = this.value2px(height);
101
+ } else {
102
+ obj.width = '33.3%';
103
+ }
104
+ } else {
105
+ obj.width = this.value2px(width);
106
+ }
108
107
 
109
- let classles = ''
110
- for(let i in obj){
111
- classles+= `${i}:${obj[i]};`
112
- }
113
- return classles
114
- },
115
- borderStyle() {
116
- let {
117
- border
118
- } = this.styles
119
- let obj = {}
120
- const widthDefaultValue = 1
121
- const radiusDefaultValue = 3
122
- if (typeof border === 'boolean') {
123
- obj.border = border ? '1px #eee solid' : 'none'
124
- } else {
125
- let width = (border && border.width) || widthDefaultValue
126
- width = this.value2px(width)
127
- let radius = (border && border.radius) || radiusDefaultValue
128
- radius = this.value2px(radius)
129
- obj = {
130
- 'border-width': width,
131
- 'border-style': (border && border.style) || 'solid',
132
- 'border-color': (border && border.color) || '#eee',
133
- 'border-radius': radius
134
- }
135
- }
136
- let classles = ''
137
- for(let i in obj){
138
- classles+= `${i}:${obj[i]};`
139
- }
140
- return classles
141
- }
142
- },
143
- methods: {
144
- uploadFiles(item, index) {
145
- this.$emit("uploadFiles", item)
146
- },
147
- choose() {
148
- this.$emit("choose")
149
- },
150
- delFile(index) {
151
- this.$emit('delFile', index)
152
- },
153
- prviewImage(img, index) {
154
- let urls = []
155
- if(Number(this.limit) === 1&&this.disablePreview&&!this.disabled){
156
- this.$emit("choose")
157
- }
158
- if(this.disablePreview) return
159
- this.filesList.forEach(i => {
160
- urls.push(i.url)
161
- })
108
+ let classles = '';
109
+ for (let i in obj) {
110
+ classles += `${i}:${obj[i]};`;
111
+ }
112
+ return classles;
113
+ },
114
+ borderStyle() {
115
+ let { border } = this.styles;
116
+ let obj = {};
117
+ const widthDefaultValue = 1;
118
+ const radiusDefaultValue = 3;
119
+ if (typeof border === 'boolean') {
120
+ obj.border = border ? '1px #eee solid' : 'none';
121
+ } else {
122
+ let width = (border && border.width) || widthDefaultValue;
123
+ width = this.value2px(width);
124
+ let radius = (border && border.radius) || radiusDefaultValue;
125
+ radius = this.value2px(radius);
126
+ obj = {
127
+ 'border-width': width,
128
+ 'border-style': (border && border.style) || 'solid',
129
+ 'border-color': (border && border.color) || '#eee',
130
+ 'border-radius': radius,
131
+ };
132
+ }
133
+ let classles = '';
134
+ for (let i in obj) {
135
+ classles += `${i}:${obj[i]};`;
136
+ }
137
+ return classles;
138
+ },
139
+ },
140
+ methods: {
141
+ uploadFiles(item, index) {
142
+ this.$emit('uploadFiles', item);
143
+ },
144
+ choose() {
145
+ this.$emit('choose');
146
+ },
147
+ delFile(index) {
148
+ this.$emit('delFile', index);
149
+ },
150
+ prviewImage(img, index) {
151
+ let urls = [];
152
+ if (Number(this.limit) === 1 && this.disablePreview && !this.disabled) {
153
+ this.$emit('choose');
154
+ }
155
+ if (this.disablePreview) return;
156
+ this.filesList.forEach((i) => {
157
+ urls.push(i.url);
158
+ });
162
159
 
163
- uni.previewImage({
164
- urls: urls,
165
- current: index
166
- });
167
- },
168
- value2px(value) {
169
- if (typeof value === 'number') {
170
- value += 'px'
171
- } else {
172
- if (value.indexOf('%') === -1) {
173
- value = value.indexOf('px') !== -1 ? value : value + 'px'
174
- }
175
- }
176
- return value
177
- }
178
- }
179
- }
160
+ uni.previewImage({
161
+ urls: urls,
162
+ current: index,
163
+ });
164
+ },
165
+ value2px(value) {
166
+ if (typeof value === 'number') {
167
+ value += 'px';
168
+ } else {
169
+ if (value.indexOf('%') === -1) {
170
+ value = value.indexOf('px') !== -1 ? value : value + 'px';
171
+ }
172
+ }
173
+ return value;
174
+ },
175
+ },
176
+ };
180
177
  </script>
181
178
 
182
179
  <style lang="scss">
183
- .uni-file-picker__container {
184
- /* #ifndef APP-NVUE */
185
- display: flex;
186
- box-sizing: border-box;
187
- /* #endif */
188
- flex-wrap: wrap;
189
- margin: -5px;
190
- }
180
+ .uni-file-picker__container {
181
+ /* #ifndef APP-NVUE */
182
+ display: flex;
183
+ box-sizing: border-box;
184
+ /* #endif */
185
+ flex-wrap: wrap;
186
+ margin: -5px;
187
+ }
191
188
 
192
- .file-picker__box {
193
- position: relative;
194
- // flex: 0 0 33.3%;
195
- width: 33.3%;
196
- height: 0;
197
- padding-top: 33.33%;
198
- /* #ifndef APP-NVUE */
199
- box-sizing: border-box;
200
- /* #endif */
201
- }
189
+ .file-picker__box {
190
+ position: relative;
191
+ // flex: 0 0 33.3%;
192
+ width: 33.3%;
193
+ height: 0;
194
+ padding-top: 33.33%;
195
+ /* #ifndef APP-NVUE */
196
+ box-sizing: border-box;
197
+ /* #endif */
198
+ }
202
199
 
203
- .file-picker__box-content {
204
- position: absolute;
205
- top: 0;
206
- right: 0;
207
- bottom: 0;
208
- left: 0;
209
- margin: 5px;
210
- border: 1px #eee solid;
211
- border-radius: 5px;
212
- overflow: hidden;
213
- }
200
+ .file-picker__box-content {
201
+ position: absolute;
202
+ top: 0;
203
+ right: 0;
204
+ bottom: 0;
205
+ left: 0;
206
+ margin: 5px;
207
+ border: 1px #eee solid;
208
+ border-radius: 5px;
209
+ overflow: hidden;
210
+ }
214
211
 
215
- .file-picker__progress {
216
- position: absolute;
217
- bottom: 0;
218
- left: 0;
219
- right: 0;
220
- /* border: 1px red solid; */
221
- z-index: 2;
222
- }
212
+ .file-picker__progress {
213
+ position: absolute;
214
+ bottom: 0;
215
+ left: 0;
216
+ right: 0;
217
+ /* border: 1px red solid; */
218
+ z-index: 2;
219
+ }
223
220
 
224
- .file-picker__progress-item {
225
- width: 100%;
226
- }
221
+ .file-picker__progress-item {
222
+ width: 100%;
223
+ }
227
224
 
228
- .file-picker__mask {
229
- /* #ifndef APP-NVUE */
230
- display: flex;
231
- /* #endif */
232
- justify-content: center;
233
- align-items: center;
234
- position: absolute;
235
- right: 0;
236
- top: 0;
237
- bottom: 0;
238
- left: 0;
239
- color: #fff;
240
- font-size: 12px;
241
- background-color: rgba(0, 0, 0, 0.4);
242
- }
225
+ .file-picker__mask {
226
+ /* #ifndef APP-NVUE */
227
+ display: flex;
228
+ /* #endif */
229
+ justify-content: center;
230
+ align-items: center;
231
+ position: absolute;
232
+ right: 0;
233
+ top: 0;
234
+ bottom: 0;
235
+ left: 0;
236
+ color: #fff;
237
+ font-size: 12px;
238
+ background-color: rgba(0, 0, 0, 0.4);
239
+ }
243
240
 
244
- .file-image {
245
- width: 100%;
246
- height: 100%;
247
- }
241
+ .file-image {
242
+ width: 100%;
243
+ height: 100%;
244
+ }
248
245
 
249
- .is-add {
250
- /* #ifndef APP-NVUE */
251
- display: flex;
252
- /* #endif */
253
- align-items: center;
254
- justify-content: center;
255
- }
246
+ .is-add {
247
+ /* #ifndef APP-NVUE */
248
+ display: flex;
249
+ /* #endif */
250
+ align-items: center;
251
+ justify-content: center;
252
+ }
256
253
 
257
- .icon-add {
258
- width: 50px;
259
- height: 5px;
260
- background-color: #f1f1f1;
261
- border-radius: 2px;
262
- }
254
+ .icon-add {
255
+ width: 50px;
256
+ height: 5px;
257
+ background-color: #f1f1f1;
258
+ border-radius: 2px;
259
+ }
263
260
 
264
- .rotate {
265
- position: absolute;
266
- transform: rotate(90deg);
267
- }
261
+ .rotate {
262
+ position: absolute;
263
+ transform: rotate(90deg);
264
+ }
268
265
 
269
- .icon-del-box {
270
- /* #ifndef APP-NVUE */
271
- display: flex;
272
- /* #endif */
273
- align-items: center;
274
- justify-content: center;
275
- position: absolute;
276
- top: 3px;
277
- right: 3px;
278
- height: 26px;
279
- width: 26px;
280
- border-radius: 50%;
281
- background-color: rgba(0, 0, 0, 0.5);
282
- z-index: 2;
283
- transform: rotate(-45deg);
284
- }
266
+ .icon-del-box {
267
+ /* #ifndef APP-NVUE */
268
+ display: flex;
269
+ /* #endif */
270
+ align-items: center;
271
+ justify-content: center;
272
+ position: absolute;
273
+ top: 3px;
274
+ right: 3px;
275
+ height: 26px;
276
+ width: 26px;
277
+ border-radius: 50%;
278
+ background-color: rgba(0, 0, 0, 0.5);
279
+ z-index: 2;
280
+ transform: rotate(-45deg);
281
+ }
285
282
 
286
- .icon-del {
287
- width: 15px;
288
- height: 2px;
289
- background-color: #fff;
290
- border-radius: 2px;
291
- }
283
+ .icon-del {
284
+ width: 15px;
285
+ height: 2px;
286
+ background-color: #fff;
287
+ border-radius: 2px;
288
+ }
292
289
  </style>