@vtj/materials 0.13.15 → 0.13.17

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 (127) hide show
  1. package/dist/assets/antdv/index.umd.js +2 -2
  2. package/dist/assets/charts/index.umd.js +2 -2
  3. package/dist/assets/element/index.umd.js +3 -3
  4. package/dist/assets/icons/index.umd.js +2 -2
  5. package/dist/assets/ui/index.umd.js +2 -2
  6. package/dist/assets/uni-h5/index.umd.js +2 -2
  7. package/dist/assets/uni-ui/index.umd.js +2 -2
  8. package/dist/assets/vant/index.umd.js +2 -2
  9. package/dist/deps/@vtj/charts/index.umd.js +2 -2
  10. package/dist/deps/@vtj/icons/index.umd.js +2 -2
  11. package/dist/deps/@vtj/ui/index.umd.js +4 -4
  12. package/dist/deps/@vtj/ui/style.css +1 -1
  13. package/dist/deps/@vtj/utils/index.umd.js +28 -33
  14. package/dist/deps/@vueuse/core/index.iife.min.js +1 -1
  15. package/dist/deps/element-plus/index.css +1 -1
  16. package/dist/deps/element-plus/index.full.min.js +14 -14
  17. package/dist/deps/element-plus/zh-cn.js +1 -1
  18. package/dist/deps/uni-app/index.umd.js +1 -1
  19. package/dist/deps/uni-h5/index.umd.js +8 -8
  20. package/dist/deps/uni-h5/style.css +1 -1
  21. package/dist/deps/uni-h5-vue/index.umd.js +1 -1
  22. package/dist/deps/uni-ui/index.umd.js +6 -1
  23. package/dist/deps/uni-ui/style.css +1 -1
  24. package/dist/deps/vue/vue.global.js +88 -53
  25. package/dist/deps/vue/vue.global.prod.js +9 -9
  26. package/package.json +12 -12
  27. package/src/antdv/image.ts +1 -1
  28. package/src/element/image.ts +1 -1
  29. package/src/element/virtualizedTable.ts +6 -6
  30. package/src/manifest.json +69 -0
  31. package/src/pages/index.vue +2 -0
  32. package/src/pages.json +19 -0
  33. package/src/uni-ui/index.ts +88 -58
  34. package/src/{uni-ui/lib/uni.scss → uni.scss} +4 -0
  35. package/src/version.ts +2 -2
  36. package/src/uni-ui/lib/uni-col/uni-col.vue +0 -324
  37. package/src/uni-ui/lib/uni-collapse/uni-collapse.vue +0 -153
  38. package/src/uni-ui/lib/uni-collapse-item/uni-collapse-item.vue +0 -425
  39. package/src/uni-ui/lib/uni-data-picker/keypress.js +0 -45
  40. package/src/uni-ui/lib/uni-data-picker/uni-data-picker.vue +0 -604
  41. package/src/uni-ui/lib/uni-data-pickerview/uni-data-picker.js +0 -622
  42. package/src/uni-ui/lib/uni-data-pickerview/uni-data-pickerview.css +0 -76
  43. package/src/uni-ui/lib/uni-data-pickerview/uni-data-pickerview.vue +0 -335
  44. package/src/uni-ui/lib/uni-data-select/uni-data-select.vue +0 -590
  45. package/src/uni-ui/lib/uni-datetime-picker/calendar-item.vue +0 -188
  46. package/src/uni-ui/lib/uni-datetime-picker/calendar.vue +0 -985
  47. package/src/uni-ui/lib/uni-datetime-picker/i18n/en.json +0 -22
  48. package/src/uni-ui/lib/uni-datetime-picker/i18n/index.js +0 -8
  49. package/src/uni-ui/lib/uni-datetime-picker/i18n/zh-Hans.json +0 -22
  50. package/src/uni-ui/lib/uni-datetime-picker/i18n/zh-Hant.json +0 -22
  51. package/src/uni-ui/lib/uni-datetime-picker/time-picker.vue +0 -1032
  52. package/src/uni-ui/lib/uni-datetime-picker/uni-datetime-picker.vue +0 -1230
  53. package/src/uni-ui/lib/uni-datetime-picker/util.js +0 -448
  54. package/src/uni-ui/lib/uni-easyinput/common.js +0 -54
  55. package/src/uni-ui/lib/uni-easyinput/uni-easyinput.vue +0 -790
  56. package/src/uni-ui/lib/uni-fav/i18n/en.json +0 -4
  57. package/src/uni-ui/lib/uni-fav/i18n/index.js +0 -8
  58. package/src/uni-ui/lib/uni-fav/i18n/zh-Hans.json +0 -4
  59. package/src/uni-ui/lib/uni-fav/i18n/zh-Hant.json +0 -4
  60. package/src/uni-ui/lib/uni-fav/uni-fav.vue +0 -170
  61. package/src/uni-ui/lib/uni-file-picker/choose-and-upload-file.js +0 -280
  62. package/src/uni-ui/lib/uni-file-picker/uni-file-picker.vue +0 -668
  63. package/src/uni-ui/lib/uni-file-picker/upload-file.vue +0 -325
  64. package/src/uni-ui/lib/uni-file-picker/upload-image.vue +0 -292
  65. package/src/uni-ui/lib/uni-file-picker/utils.js +0 -110
  66. package/src/uni-ui/lib/uni-forms/uni-forms.vue +0 -416
  67. package/src/uni-ui/lib/uni-forms/utils.js +0 -293
  68. package/src/uni-ui/lib/uni-forms/validate.js +0 -486
  69. package/src/uni-ui/lib/uni-forms-item/uni-forms-item.vue +0 -630
  70. package/src/uni-ui/lib/uni-goods-nav/i18n/en.json +0 -6
  71. package/src/uni-ui/lib/uni-goods-nav/i18n/index.js +0 -8
  72. package/src/uni-ui/lib/uni-goods-nav/i18n/zh-Hans.json +0 -6
  73. package/src/uni-ui/lib/uni-goods-nav/i18n/zh-Hant.json +0 -6
  74. package/src/uni-ui/lib/uni-goods-nav/uni-goods-nav.vue +0 -231
  75. package/src/uni-ui/lib/uni-grid/uni-grid.vue +0 -148
  76. package/src/uni-ui/lib/uni-icons/uni-icons.uvue +0 -91
  77. package/src/uni-ui/lib/uni-icons/uni-icons.vue +0 -114
  78. package/src/uni-ui/lib/uni-icons/uniicons.css +0 -664
  79. package/src/uni-ui/lib/uni-icons/uniicons.ttf +0 -0
  80. package/src/uni-ui/lib/uni-icons/uniicons_file.ts +0 -664
  81. package/src/uni-ui/lib/uni-icons/uniicons_file_vue.js +0 -649
  82. package/src/uni-ui/lib/uni-indexed-list/uni-indexed-list-item.vue +0 -168
  83. package/src/uni-ui/lib/uni-indexed-list/uni-indexed-list.vue +0 -404
  84. package/src/uni-ui/lib/uni-list/uni-list.vue +0 -123
  85. package/src/uni-ui/lib/uni-list/uni-refresh.vue +0 -65
  86. package/src/uni-ui/lib/uni-list/uni-refresh.wxs +0 -87
  87. package/src/uni-ui/lib/uni-load-more/i18n/en.json +0 -5
  88. package/src/uni-ui/lib/uni-load-more/i18n/index.js +0 -8
  89. package/src/uni-ui/lib/uni-load-more/i18n/zh-Hans.json +0 -5
  90. package/src/uni-ui/lib/uni-load-more/i18n/zh-Hant.json +0 -5
  91. package/src/uni-ui/lib/uni-load-more/uni-load-more.vue +0 -456
  92. package/src/uni-ui/lib/uni-notice-bar/uni-notice-bar.vue +0 -484
  93. package/src/uni-ui/lib/uni-popup/i18n/en.json +0 -7
  94. package/src/uni-ui/lib/uni-popup/i18n/index.js +0 -8
  95. package/src/uni-ui/lib/uni-popup/i18n/zh-Hans.json +0 -7
  96. package/src/uni-ui/lib/uni-popup/i18n/zh-Hant.json +0 -7
  97. package/src/uni-ui/lib/uni-popup/keypress.js +0 -45
  98. package/src/uni-ui/lib/uni-popup/popup.js +0 -26
  99. package/src/uni-ui/lib/uni-popup/uni-popup.uvue +0 -90
  100. package/src/uni-ui/lib/uni-popup/uni-popup.vue +0 -552
  101. package/src/uni-ui/lib/uni-popup-dialog/keypress.js +0 -45
  102. package/src/uni-ui/lib/uni-popup-dialog/uni-popup-dialog.vue +0 -324
  103. package/src/uni-ui/lib/uni-popup-message/uni-popup-message.vue +0 -149
  104. package/src/uni-ui/lib/uni-rate/uni-rate.vue +0 -380
  105. package/src/uni-ui/lib/uni-row/uni-row.vue +0 -193
  106. package/src/uni-ui/lib/uni-search-bar/i18n/en.json +0 -4
  107. package/src/uni-ui/lib/uni-search-bar/i18n/index.js +0 -8
  108. package/src/uni-ui/lib/uni-search-bar/i18n/zh-Hans.json +0 -4
  109. package/src/uni-ui/lib/uni-search-bar/i18n/zh-Hant.json +0 -4
  110. package/src/uni-ui/lib/uni-search-bar/uni-search-bar.vue +0 -339
  111. package/src/uni-ui/lib/uni-swipe-action-item/bindingx.js +0 -311
  112. package/src/uni-ui/lib/uni-swipe-action-item/isPC.js +0 -12
  113. package/src/uni-ui/lib/uni-swipe-action-item/mpalipay.js +0 -195
  114. package/src/uni-ui/lib/uni-swipe-action-item/mpother.js +0 -260
  115. package/src/uni-ui/lib/uni-swipe-action-item/mpwxs.js +0 -84
  116. package/src/uni-ui/lib/uni-swipe-action-item/render.js +0 -270
  117. package/src/uni-ui/lib/uni-swipe-action-item/uni-swipe-action-item.vue +0 -493
  118. package/src/uni-ui/lib/uni-swipe-action-item/wx.wxs +0 -341
  119. package/src/uni-ui/lib/uni-table/uni-table.vue +0 -496
  120. package/src/uni-ui/lib/uni-td/uni-td.vue +0 -99
  121. package/src/uni-ui/lib/uni-th/filter-dropdown.vue +0 -559
  122. package/src/uni-ui/lib/uni-th/uni-th.vue +0 -322
  123. package/src/uni-ui/lib/uni-tr/table-checkbox.vue +0 -181
  124. package/src/uni-ui/lib/uni-tr/uni-tr.vue +0 -208
  125. package/src/uni-ui/lib/uni-transition/createAnimation.js +0 -131
  126. package/src/uni-ui/lib/uni-transition/uni-transition.vue +0 -310
  127. package/src/uni-ui/polyfill.ts +0 -41
@@ -1,380 +0,0 @@
1
- <template>
2
- <view>
3
- <view ref="uni-rate" class="uni-rate">
4
- <view
5
- class="uni-rate__icon"
6
- :class="{ 'uni-cursor-not-allowed': disabled }"
7
- :style="{ 'margin-right': marginNumber + 'px' }"
8
- v-for="(star, index) in stars"
9
- :key="index"
10
- @touchstart.stop="touchstart"
11
- @touchmove.stop="touchmove"
12
- @mousedown.stop="mousedown"
13
- @mousemove.stop="mousemove"
14
- @mouseleave="mouseleave">
15
- <uni-icons
16
- :color="color"
17
- :size="size"
18
- :type="isFill ? 'star-filled' : 'star'" />
19
- <!-- #ifdef APP-NVUE -->
20
- <!-- <view
21
- :style="{
22
- width: (star.activeWitch.replace('%', '') * size) / 100 + 'px'
23
- }"
24
- class="uni-rate__icon-on">
25
- <uni-icons
26
- style="text-align: left"
27
- :color="disabled ? '#ccc' : activeColor"
28
- :size="size"
29
- type="star-filled" />
30
- </view> -->
31
- <!-- #endif -->
32
- <!-- #ifndef APP-NVUE -->
33
- <view :style="{ width: star.activeWitch }" class="uni-rate__icon-on">
34
- <uni-icons
35
- :color="disabled ? disabledColor : activeColor"
36
- :size="size"
37
- type="star-filled" />
38
- </view>
39
- <!-- #endif -->
40
- </view>
41
- </view>
42
- </view>
43
- </template>
44
-
45
- <script>
46
- // #ifdef APP-NVUE
47
- // const dom = uni.requireNativePlugin('dom');
48
- // #endif
49
- /**
50
- * Rate 评分
51
- * @description 评分组件
52
- * @tutorial https://ext.dcloud.net.cn/plugin?id=33
53
- * @property {Boolean} isFill = [true|false] 星星的类型,是否为实心类型, 默认为实心
54
- * @property {String} color 未选中状态的星星颜色,默认为 "#ececec"
55
- * @property {String} activeColor 选中状态的星星颜色,默认为 "#ffca3e"
56
- * @property {String} disabledColor 禁用状态的星星颜色,默认为 "#c0c0c0"
57
- * @property {Number} size 星星的大小
58
- * @property {Number} value/v-model 当前评分
59
- * @property {Number} max 最大评分评分数量,目前一分一颗星
60
- * @property {Number} margin 星星的间距,单位 px
61
- * @property {Boolean} disabled = [true|false] 是否为禁用状态,默认为 false
62
- * @property {Boolean} readonly = [true|false] 是否为只读状态,默认为 false
63
- * @property {Boolean} allowHalf = [true|false] 是否实现半星,默认为 false
64
- * @property {Boolean} touchable = [true|false] 是否支持滑动手势,默认为 true
65
- * @event {Function} change uniRate 的 value 改变时触发事件,e={value:Number}
66
- */
67
-
68
- export default {
69
- name: 'UniRate',
70
- props: {
71
- isFill: {
72
- // 星星的类型,是否镂空
73
- type: [Boolean, String],
74
- default: true
75
- },
76
- color: {
77
- // 星星未选中的颜色
78
- type: String,
79
- default: '#ececec'
80
- },
81
- activeColor: {
82
- // 星星选中状态颜色
83
- type: String,
84
- default: '#ffca3e'
85
- },
86
- disabledColor: {
87
- // 星星禁用状态颜色
88
- type: String,
89
- default: '#c0c0c0'
90
- },
91
- size: {
92
- // 星星的大小
93
- type: [Number, String],
94
- default: 24
95
- },
96
- value: {
97
- // 当前评分
98
- type: [Number, String],
99
- default: 0
100
- },
101
- modelValue: {
102
- // 当前评分
103
- type: [Number, String],
104
- default: 0
105
- },
106
- max: {
107
- // 最大评分
108
- type: [Number, String],
109
- default: 5
110
- },
111
- margin: {
112
- // 星星的间距
113
- type: [Number, String],
114
- default: 0
115
- },
116
- disabled: {
117
- // 是否可点击
118
- type: [Boolean, String],
119
- default: false
120
- },
121
- readonly: {
122
- // 是否只读
123
- type: [Boolean, String],
124
- default: false
125
- },
126
- allowHalf: {
127
- // 是否显示半星
128
- type: [Boolean, String],
129
- default: false
130
- },
131
- touchable: {
132
- // 是否支持滑动手势
133
- type: [Boolean, String],
134
- default: true
135
- }
136
- },
137
- data() {
138
- return {
139
- valueSync: '',
140
- userMouseFristMove: true,
141
- userRated: false,
142
- userLastRate: 1
143
- };
144
- },
145
- watch: {
146
- // value(newVal) {
147
- // this.valueSync = Number(newVal);
148
- // },
149
- modelValue(newVal) {
150
- this.valueSync = Number(newVal);
151
- }
152
- },
153
- computed: {
154
- stars() {
155
- const value = this.valueSync ? this.valueSync : 0;
156
- const starList = [];
157
- const floorValue = Math.floor(value);
158
- const ceilValue = Math.ceil(value);
159
- for (let i = 0; i < this.max; i++) {
160
- if (floorValue > i) {
161
- starList.push({
162
- activeWitch: '100%'
163
- });
164
- } else if (ceilValue - 1 === i) {
165
- starList.push({
166
- activeWitch: (value - floorValue) * 100 + '%'
167
- });
168
- } else {
169
- starList.push({
170
- activeWitch: '0'
171
- });
172
- }
173
- }
174
- return starList;
175
- },
176
-
177
- marginNumber() {
178
- return Number(this.margin);
179
- }
180
- },
181
- created() {
182
- this.valueSync = Number(this.value || this.modelValue);
183
- this._rateBoxLeft = 0;
184
- this._oldValue = null;
185
- },
186
- mounted() {
187
- setTimeout(() => {
188
- this._getSize();
189
- }, 100);
190
- // #ifdef H5
191
- this.PC = this.IsPC();
192
- // #endif
193
- },
194
- methods: {
195
- touchstart(e) {
196
- // #ifdef H5
197
- if (this.IsPC()) return;
198
- // #endif
199
- if (this.readonly || this.disabled) return;
200
- const { clientX, screenX } = e.changedTouches[0];
201
- // TODO 做一下兼容,只有 Nvue 下才有 screenX,其他平台式 clientX
202
- this._getRateCount(clientX || screenX);
203
- },
204
- touchmove(e) {
205
- // #ifdef H5
206
- if (this.IsPC()) return;
207
- // #endif
208
- if (this.readonly || this.disabled || !this.touchable) return;
209
- const { clientX, screenX } = e.changedTouches[0];
210
- this._getRateCount(clientX || screenX);
211
- },
212
-
213
- /**
214
- * 兼容 PC @tian
215
- */
216
-
217
- mousedown(e) {
218
- // #ifdef H5
219
- if (!this.IsPC()) return;
220
- if (this.readonly || this.disabled) return;
221
- const { clientX } = e;
222
- this.userLastRate = this.valueSync;
223
- this._getRateCount(clientX);
224
- this.userRated = true;
225
- // #endif
226
- },
227
- mousemove(e) {
228
- // #ifdef H5
229
- if (!this.IsPC()) return;
230
- if (this.userRated) return;
231
- if (this.userMouseFristMove) {
232
- // console.log('---mousemove----', this.valueSync);
233
- this.userLastRate = this.valueSync;
234
- this.userMouseFristMove = false;
235
- }
236
- if (this.readonly || this.disabled || !this.touchable) return;
237
- const { clientX } = e;
238
- this._getRateCount(clientX);
239
- // #endif
240
- },
241
- mouseleave(e) {
242
- // #ifdef H5
243
- if (!this.IsPC()) return;
244
- if (this.readonly || this.disabled || !this.touchable) return;
245
- if (this.userRated) {
246
- this.userRated = false;
247
- return;
248
- }
249
- this.valueSync = this.userLastRate;
250
- // #endif
251
- },
252
- // #ifdef H5
253
- IsPC() {
254
- var userAgentInfo = navigator.userAgent;
255
- var Agents = [
256
- 'Android',
257
- 'iPhone',
258
- 'SymbianOS',
259
- 'Windows Phone',
260
- 'iPad',
261
- 'iPod'
262
- ];
263
- var flag = true;
264
- for (let v = 0; v < Agents.length - 1; v++) {
265
- if (userAgentInfo.indexOf(Agents[v]) > 0) {
266
- flag = false;
267
- break;
268
- }
269
- }
270
- return flag;
271
- },
272
- // #endif
273
-
274
- /**
275
- * 获取星星个数
276
- */
277
- _getRateCount(clientX) {
278
- this._getSize();
279
- const size = Number(this.size);
280
- if (isNaN(size)) {
281
- return new Error('size 属性只能设置为数字');
282
- }
283
- const rateMoveRange = clientX - this._rateBoxLeft;
284
- let index = parseInt(rateMoveRange / (size + this.marginNumber));
285
- index = index < 0 ? 0 : index;
286
- index = index > this.max ? this.max : index;
287
- const range = parseInt(
288
- rateMoveRange - (size + this.marginNumber) * index
289
- );
290
- let value = 0;
291
- if (this._oldValue === index && !this.PC) return;
292
- this._oldValue = index;
293
- if (this.allowHalf) {
294
- if (range > size / 2) {
295
- value = index + 1;
296
- } else {
297
- value = index + 0.5;
298
- }
299
- } else {
300
- value = index + 1;
301
- }
302
-
303
- value = Math.max(0.5, Math.min(value, this.max));
304
- this.valueSync = value;
305
- this._onChange();
306
- },
307
-
308
- /**
309
- * 触发动态修改
310
- */
311
- _onChange() {
312
- this.$emit('input', this.valueSync);
313
- this.$emit('update:modelValue', this.valueSync);
314
- this.$emit('change', {
315
- value: this.valueSync
316
- });
317
- },
318
- /**
319
- * 获取星星距离屏幕左侧距离
320
- */
321
- _getSize() {
322
- // #ifndef APP-NVUE
323
- uni
324
- .createSelectorQuery()
325
- .in(this)
326
- .select('.uni-rate')
327
- .boundingClientRect()
328
- .exec((ret) => {
329
- if (ret) {
330
- this._rateBoxLeft = ret[0].left;
331
- }
332
- });
333
- // #endif
334
- // #ifdef APP-NVUE
335
- // dom.getComponentRect(this.$refs['uni-rate'], (ret) => {
336
- // const size = ret.size;
337
- // if (size) {
338
- // this._rateBoxLeft = size.left;
339
- // }
340
- // });
341
- // #endif
342
- }
343
- }
344
- };
345
- </script>
346
-
347
- <style lang="scss">
348
- .uni-rate {
349
- /* #ifndef APP-NVUE */
350
- display: flex;
351
- /* #endif */
352
- line-height: 1;
353
- font-size: 0;
354
- flex-direction: row;
355
- /* #ifdef H5 */
356
- cursor: pointer;
357
- /* #endif */
358
- }
359
-
360
- .uni-rate__icon {
361
- position: relative;
362
- line-height: 1;
363
- font-size: 0;
364
- }
365
-
366
- .uni-rate__icon-on {
367
- overflow: hidden;
368
- position: absolute;
369
- top: 0;
370
- left: 0;
371
- line-height: 1;
372
- text-align: left;
373
- }
374
-
375
- .uni-cursor-not-allowed {
376
- /* #ifdef H5 */
377
- cursor: not-allowed !important;
378
- /* #endif */
379
- }
380
- </style>
@@ -1,193 +0,0 @@
1
- <template>
2
- <view
3
- :class="['uni-row', typeClass, justifyClass, alignClass]"
4
- :style="{
5
- marginLeft: `${Number(marginValue)}rpx`,
6
- marginRight: `${Number(marginValue)}rpx`
7
- }">
8
- <slot></slot>
9
- </view>
10
- </template>
11
-
12
- <script>
13
- const ComponentClass = 'uni-row';
14
- const modifierSeparator = '--';
15
- /**
16
- * Row 布局-行
17
- * @description 流式栅格系统,随着屏幕或视口分为 24 份,可以迅速简便地创建布局。
18
- * @tutorial https://ext.dcloud.net.cn/plugin?id=3958
19
- *
20
- * @property {gutter} type = Number 栅格间隔
21
- * @property {justify} type = String flex 布局下的水平排列方式
22
- * 可选 start/end/center/space-around/space-between start
23
- * 默认值 start
24
- * @property {align} type = String flex 布局下的垂直排列方式
25
- * 可选 top/middle/bottom
26
- * 默认值 top
27
- * @property {width} type = String|Number nvue下需要自行配置宽度用于计算
28
- * 默认值 750
29
- */
30
-
31
- export default {
32
- name: 'uniRow',
33
- componentName: 'uniRow',
34
- // #ifdef MP-WEIXIN
35
- // options: {
36
- // virtualHost: true // 在微信小程序中将组件节点渲染为虚拟节点,更加接近Vue组件的表现,可使用flex布局
37
- // },
38
- // #endif
39
- props: {
40
- type: String,
41
- gutter: Number,
42
- justify: {
43
- type: String,
44
- default: 'start'
45
- },
46
- align: {
47
- type: String,
48
- default: 'top'
49
- },
50
- // nvue如果使用span等属性,需要配置宽度
51
- width: {
52
- type: [String, Number],
53
- default: 750
54
- }
55
- },
56
- created() {
57
- // #ifdef APP-NVUE
58
- // this.type = 'flex';
59
- // #endif
60
- },
61
- computed: {
62
- marginValue() {
63
- // #ifndef APP-NVUE
64
- if (this.gutter) {
65
- return -(this.gutter / 2);
66
- }
67
- // #endif
68
- return 0;
69
- },
70
- typeClass() {
71
- return this.type === 'flex'
72
- ? `${ComponentClass + modifierSeparator}flex`
73
- : '';
74
- },
75
- justifyClass() {
76
- return this.justify !== 'start'
77
- ? `${ComponentClass + modifierSeparator}flex-justify-${this.justify}`
78
- : '';
79
- },
80
- alignClass() {
81
- return this.align !== 'top'
82
- ? `${ComponentClass + modifierSeparator}flex-align-${this.align}`
83
- : '';
84
- }
85
- }
86
- };
87
- </script>
88
-
89
- <style lang="scss">
90
- $layout-namespace: '.uni-';
91
- $row: $layout-namespace + 'row';
92
- $modifier-separator: '--';
93
-
94
- @mixin utils-clearfix {
95
- $selector: &;
96
-
97
- @at-root {
98
- /* #ifndef APP-NVUE */
99
- #{$selector}::before,
100
- #{$selector}::after {
101
- display: table;
102
- content: '';
103
- }
104
-
105
- #{$selector}::after {
106
- clear: both;
107
- }
108
-
109
- /* #endif */
110
- }
111
- }
112
-
113
- @mixin utils-flex($direction: row) {
114
- /* #ifndef APP-NVUE */
115
- display: flex;
116
- /* #endif */
117
- flex-direction: $direction;
118
- }
119
-
120
- @mixin set-flex($state) {
121
- @at-root &-#{$state} {
122
- @content;
123
- }
124
- }
125
-
126
- #{$row} {
127
- position: relative;
128
- flex-direction: row;
129
-
130
- /* #ifdef APP-NVUE */
131
- flex: 1;
132
- /* #endif */
133
-
134
- /* #ifndef APP-NVUE */
135
- box-sizing: border-box;
136
- /* #endif */
137
-
138
- // 非nvue使用float布局
139
- @include utils-clearfix;
140
-
141
- // 在QQ、字节、百度小程序平台,编译后使用shadow dom,不可使用flex布局,使用float
142
- @at-root {
143
- /* #ifndef MP-QQ || MP-TOUTIAO || MP-BAIDU */
144
- &#{$modifier-separator}flex {
145
- @include utils-flex;
146
- flex-wrap: wrap;
147
- flex: 1;
148
-
149
- &:before,
150
- &:after {
151
- /* #ifndef APP-NVUE */
152
- display: none;
153
- /* #endif */
154
- }
155
-
156
- @include set-flex(justify-center) {
157
- justify-content: center;
158
- }
159
-
160
- @include set-flex(justify-end) {
161
- justify-content: flex-end;
162
- }
163
-
164
- @include set-flex(justify-space-between) {
165
- justify-content: space-between;
166
- }
167
-
168
- @include set-flex(justify-space-around) {
169
- justify-content: space-around;
170
- }
171
-
172
- @include set-flex(align-middle) {
173
- align-items: center;
174
- }
175
-
176
- @include set-flex(align-bottom) {
177
- align-items: flex-end;
178
- }
179
- }
180
-
181
- /* #endif */
182
- }
183
- }
184
-
185
- // 字节、QQ配置后不生效
186
- // 此处用法无法使用scoped
187
- /* #ifdef MP-WEIXIN || MP-TOUTIAO || MP-QQ */
188
- :host {
189
- display: block;
190
- }
191
-
192
- /* #endif */
193
- </style>
@@ -1,4 +0,0 @@
1
- {
2
- "uni-search-bar.cancel": "cancel",
3
- "uni-search-bar.placeholder": "Search enter content"
4
- }
@@ -1,8 +0,0 @@
1
- import en from './en.json'
2
- import zhHans from './zh-Hans.json'
3
- import zhHant from './zh-Hant.json'
4
- export default {
5
- en,
6
- 'zh-Hans': zhHans,
7
- 'zh-Hant': zhHant
8
- }
@@ -1,4 +0,0 @@
1
- {
2
- "uni-search-bar.cancel": "取消",
3
- "uni-search-bar.placeholder": "请输入搜索内容"
4
- }
@@ -1,4 +0,0 @@
1
- {
2
- "uni-search-bar.cancel": "取消",
3
- "uni-search-bar.placeholder": "請輸入搜索內容"
4
- }