@vtj/materials 0.13.16 → 0.13.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 (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 +1 -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,335 +0,0 @@
1
- <template>
2
- <view class="uni-data-pickerview">
3
- <scroll-view v-if="!isCloudDataList" class="selected-area" scroll-x="true">
4
- <view class="selected-list">
5
- <view
6
- class="selected-item"
7
- v-for="(item, index) in selected"
8
- :key="index"
9
- :class="{
10
- 'selected-item-active': index == selectedIndex
11
- }"
12
- @click="handleSelect(index)">
13
- <text>{{ item.text || '' }}</text>
14
- </view>
15
- </view>
16
- </scroll-view>
17
- <view class="tab-c">
18
- <scroll-view class="list" :scroll-y="true">
19
- <view
20
- class="item"
21
- :class="{ 'is-disabled': !!item.disable }"
22
- v-for="(item, j) in dataList[selectedIndex]"
23
- :key="j"
24
- @click="handleNodeClick(item, selectedIndex, j)">
25
- <text class="item-text">{{ item[map.text] }}</text>
26
- <view
27
- class="check"
28
- v-if="
29
- selected.length > selectedIndex &&
30
- item[map.value] == selected[selectedIndex].value
31
- "></view>
32
- </view>
33
- </scroll-view>
34
-
35
- <view class="loading-cover" v-if="loading">
36
- <uni-load-more
37
- class="load-more"
38
- :contentText="loadMore"
39
- status="loading"></uni-load-more>
40
- </view>
41
- <view class="error-message" v-if="errorMessage">
42
- <text class="error-text">{{ errorMessage }}</text>
43
- </view>
44
- </view>
45
- </view>
46
- </template>
47
-
48
- <script>
49
- import dataPicker from './uni-data-picker.js';
50
-
51
- /**
52
- * DataPickerview
53
- * @description uni-data-pickerview
54
- * @tutorial https://ext.dcloud.net.cn/plugin?id=3796
55
- * @property {Array} localdata 本地数据,参考
56
- * @property {Boolean} step-searh = [true|false] 是否分布查询
57
- * @value true 启用分布查询,仅查询当前选中节点
58
- * @value false 关闭分布查询,一次查询出所有数据
59
- * @property {String|DBFieldString} self-field 分布查询当前字段名称
60
- * @property {String|DBFieldString} parent-field 分布查询父字段名称
61
- * @property {String|DBCollectionString} collection 表名
62
- * @property {String|DBFieldString} field 查询字段,多个字段用 `,` 分割
63
- * @property {String} orderby 排序字段及正序倒叙设置
64
- * @property {String|JQLString} where 查询条件
65
- */
66
- export default {
67
- name: 'UniDataPickerView',
68
- emits: ['nodeclick', 'change', 'datachange', 'update:modelValue'],
69
- mixins: [dataPicker],
70
- props: {
71
- managedMode: {
72
- type: Boolean,
73
- default: false
74
- },
75
- ellipsis: {
76
- type: Boolean,
77
- default: true
78
- }
79
- },
80
- created() {
81
- if (!this.managedMode) {
82
- this.$nextTick(() => {
83
- this.loadData();
84
- });
85
- }
86
- },
87
- methods: {
88
- onPropsChange() {
89
- this._treeData = [];
90
- this.selectedIndex = 0;
91
- this.$nextTick(() => {
92
- this.loadData();
93
- });
94
- },
95
- handleSelect(index) {
96
- this.selectedIndex = index;
97
- },
98
- handleNodeClick(item, i, j) {
99
- if (item.disable) {
100
- return;
101
- }
102
-
103
- const node = this.dataList[i][j];
104
- const text = node[this.map.text];
105
- const value = node[this.map.value];
106
-
107
- if (i < this.selected.length - 1) {
108
- this.selected.splice(i, this.selected.length - i);
109
- this.selected.push({
110
- text,
111
- value
112
- });
113
- } else if (i === this.selected.length - 1) {
114
- this.selected.splice(i, 1, {
115
- text,
116
- value
117
- });
118
- }
119
-
120
- if (node.isleaf) {
121
- this.onSelectedChange(node, node.isleaf);
122
- return;
123
- }
124
-
125
- const { isleaf, hasNodes } = this._updateBindData();
126
-
127
- // 本地数据
128
- if (this.isLocalData) {
129
- this.onSelectedChange(node, !hasNodes || isleaf);
130
- } else if (this.isCloudDataList) {
131
- // Cloud 数据 (单列)
132
- this.onSelectedChange(node, true);
133
- } else if (this.isCloudDataTree) {
134
- // Cloud 数据 (树形)
135
- if (isleaf) {
136
- this.onSelectedChange(node, node.isleaf);
137
- } else if (!hasNodes) {
138
- // 请求一次服务器以确定是否为叶子节点
139
- this.loadCloudDataNode((data) => {
140
- if (!data.length) {
141
- node.isleaf = true;
142
- } else {
143
- this._treeData.push(...data);
144
- this._updateBindData(node);
145
- }
146
- this.onSelectedChange(node, node.isleaf);
147
- });
148
- }
149
- }
150
- },
151
- updateData(data) {
152
- this._treeData = data.treeData;
153
- this.selected = data.selected;
154
- if (!this._treeData.length) {
155
- this.loadData();
156
- } else {
157
- //this.selected = data.selected
158
- this._updateBindData();
159
- }
160
- },
161
- onDataChange() {
162
- this.$emit('datachange');
163
- },
164
- onSelectedChange(node, isleaf) {
165
- if (isleaf) {
166
- this._dispatchEvent();
167
- }
168
-
169
- if (node) {
170
- this.$emit('nodeclick', node);
171
- }
172
- },
173
- _dispatchEvent() {
174
- this.$emit('change', this.selected.slice(0));
175
- }
176
- }
177
- };
178
- </script>
179
-
180
- <style lang="scss">
181
- $uni-primary: #007aff !default;
182
-
183
- .uni-data-pickerview {
184
- flex: 1;
185
- /* #ifndef APP-NVUE */
186
- display: flex;
187
- /* #endif */
188
- flex-direction: column;
189
- overflow: hidden;
190
- height: 100%;
191
- }
192
-
193
- .error-text {
194
- color: #dd524d;
195
- }
196
-
197
- .loading-cover {
198
- position: absolute;
199
- left: 0;
200
- top: 0;
201
- right: 0;
202
- bottom: 0;
203
- background-color: rgba(255, 255, 255, 0.5);
204
- /* #ifndef APP-NVUE */
205
- display: flex;
206
- /* #endif */
207
- flex-direction: column;
208
- align-items: center;
209
- z-index: 1001;
210
- }
211
-
212
- .load-more {
213
- /* #ifndef APP-NVUE */
214
- margin: auto;
215
- /* #endif */
216
- }
217
-
218
- .error-message {
219
- background-color: #fff;
220
- position: absolute;
221
- left: 0;
222
- top: 0;
223
- right: 0;
224
- bottom: 0;
225
- padding: 15px;
226
- opacity: 0.9;
227
- z-index: 102;
228
- }
229
-
230
- /* #ifdef APP-NVUE */
231
- .selected-area {
232
- width: 750rpx;
233
- }
234
- /* #endif */
235
-
236
- .selected-list {
237
- /* #ifndef APP-NVUE */
238
- display: flex;
239
- flex-wrap: nowrap;
240
- /* #endif */
241
- flex-direction: row;
242
- padding: 0 5px;
243
- border-bottom: 1px solid #f8f8f8;
244
- }
245
-
246
- .selected-item {
247
- // 增加注释
248
- // margin-left: 10px;
249
- // margin-right: 10px;
250
- padding: 12px 0;
251
- text-align: center;
252
- /* #ifndef APP-NVUE */
253
- white-space: nowrap;
254
- /* #endif */
255
- }
256
-
257
- .selected-item-text-overflow {
258
- width: 168px;
259
- /* fix nvue */
260
- overflow: hidden;
261
- /* #ifndef APP-NVUE */
262
- width: 6em;
263
- white-space: nowrap;
264
- text-overflow: ellipsis;
265
- -o-text-overflow: ellipsis;
266
- /* #endif */
267
- }
268
-
269
- .selected-item-active {
270
- border-bottom: 2px solid $uni-primary;
271
- }
272
-
273
- .selected-item-text {
274
- color: $uni-primary;
275
- }
276
-
277
- .tab-c {
278
- position: relative;
279
- flex: 1;
280
- /* #ifndef APP-NVUE */
281
- display: flex;
282
- /* #endif */
283
- flex-direction: row;
284
- overflow: hidden;
285
- }
286
-
287
- .list {
288
- flex: 1;
289
- }
290
-
291
- .item {
292
- padding: 12px 15px;
293
- /* border-bottom: 1px solid #f0f0f0; */
294
- /* #ifndef APP-NVUE */
295
- display: flex;
296
- /* #endif */
297
- flex-direction: row;
298
- justify-content: space-between;
299
- }
300
-
301
- .is-disabled {
302
- opacity: 0.5;
303
- }
304
-
305
- .item-text {
306
- /* flex: 1; */
307
- color: #333333;
308
- }
309
-
310
- .item-text-overflow {
311
- width: 280px;
312
- /* fix nvue */
313
- overflow: hidden;
314
- /* #ifndef APP-NVUE */
315
- width: 20em;
316
- white-space: nowrap;
317
- text-overflow: ellipsis;
318
- -o-text-overflow: ellipsis;
319
- /* #endif */
320
- }
321
-
322
- .check {
323
- margin-right: 5px;
324
- border: 2px solid $uni-primary;
325
- border-left: 0;
326
- border-top: 0;
327
- height: 12px;
328
- width: 6px;
329
- transform-origin: center;
330
- /* #ifndef APP-NVUE */
331
- transition: all 0.3s;
332
- /* #endif */
333
- transform: rotate(45deg);
334
- }
335
- </style>