@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,324 +0,0 @@
1
- <template>
2
- <view class="uni-popup-dialog">
3
- <view class="uni-dialog-title">
4
- <text
5
- class="uni-dialog-title-text"
6
- :class="['uni-popup__' + dialogType]"
7
- >{{ titleText }}</text
8
- >
9
- </view>
10
- <view v-if="mode === 'base'" class="uni-dialog-content">
11
- <slot>
12
- <text class="uni-dialog-content-text">{{ content }}</text>
13
- </slot>
14
- </view>
15
- <view v-else class="uni-dialog-content">
16
- <slot>
17
- <input
18
- class="uni-dialog-input"
19
- :maxlength="maxlength"
20
- v-model="val"
21
- :type="inputType"
22
- :placeholder="placeholderText"
23
- :focus="focus" />
24
- </slot>
25
- </view>
26
- <view class="uni-dialog-button-group">
27
- <view class="uni-dialog-button" v-if="showClose" @click="closeDialog">
28
- <text class="uni-dialog-button-text">{{ closeText }}</text>
29
- </view>
30
- <view
31
- class="uni-dialog-button"
32
- :class="showClose ? 'uni-border-left' : ''"
33
- @click="onOk">
34
- <text class="uni-dialog-button-text uni-button-color">{{
35
- okText
36
- }}</text>
37
- </view>
38
- </view>
39
- </view>
40
- </template>
41
-
42
- <script>
43
- import popup from '../uni-popup/popup.js';
44
- import { initVueI18n } from '@dcloudio/uni-i18n';
45
- import messages from '../uni-popup/i18n/index.js';
46
- const { t } = initVueI18n(messages);
47
- /**
48
- * PopUp 弹出层-对话框样式
49
- * @description 弹出层-对话框样式
50
- * @tutorial https://ext.dcloud.net.cn/plugin?id=329
51
- * @property {String} value input 模式下的默认值
52
- * @property {String} placeholder input 模式下输入提示
53
- * @property {Boolean} focus input模式下是否自动聚焦,默认为true
54
- * @property {String} type = [success|warning|info|error] 主题样式
55
- * @value success 成功
56
- * @value warning 提示
57
- * @value info 消息
58
- * @value error 错误
59
- * @property {String} mode = [base|input] 模式、
60
- * @value base 基础对话框
61
- * @value input 可输入对话框
62
- * @showClose {Boolean} 是否显示关闭按钮
63
- * @property {String} content 对话框内容
64
- * @property {Boolean} beforeClose 是否拦截取消事件
65
- * @property {Number} maxlength 输入
66
- * @event {Function} confirm 点击确认按钮触发
67
- * @event {Function} close 点击取消按钮触发
68
- */
69
-
70
- export default {
71
- name: 'uniPopupDialog',
72
- mixins: [popup],
73
- emits: ['confirm', 'close', 'update:modelValue', 'input'],
74
- props: {
75
- inputType: {
76
- type: String,
77
- default: 'text'
78
- },
79
- showClose: {
80
- type: Boolean,
81
- default: true
82
- },
83
- // #ifdef VUE2
84
- value: {
85
- type: [String, Number],
86
- default: ''
87
- },
88
- // #endif
89
- // #ifdef VUE3
90
- modelValue: {
91
- type: [Number, String],
92
- default: ''
93
- },
94
- // #endif
95
-
96
- placeholder: {
97
- type: [String, Number],
98
- default: ''
99
- },
100
- type: {
101
- type: String,
102
- default: 'error'
103
- },
104
- mode: {
105
- type: String,
106
- default: 'base'
107
- },
108
- title: {
109
- type: String,
110
- default: ''
111
- },
112
- content: {
113
- type: String,
114
- default: ''
115
- },
116
- beforeClose: {
117
- type: Boolean,
118
- default: false
119
- },
120
- cancelText: {
121
- type: String,
122
- default: ''
123
- },
124
- confirmText: {
125
- type: String,
126
- default: ''
127
- },
128
- maxlength: {
129
- type: Number,
130
- default: -1
131
- },
132
- focus: {
133
- type: Boolean,
134
- default: true
135
- }
136
- },
137
- data() {
138
- return {
139
- dialogType: 'error',
140
- val: ''
141
- };
142
- },
143
- computed: {
144
- okText() {
145
- return this.confirmText || t('uni-popup.ok');
146
- },
147
- closeText() {
148
- return this.cancelText || t('uni-popup.cancel');
149
- },
150
- placeholderText() {
151
- return this.placeholder || t('uni-popup.placeholder');
152
- },
153
- titleText() {
154
- return this.title || t('uni-popup.title');
155
- }
156
- },
157
- watch: {
158
- type(val) {
159
- this.dialogType = val;
160
- },
161
- mode(val) {
162
- if (val === 'input') {
163
- this.dialogType = 'info';
164
- }
165
- },
166
- value(val) {
167
- if (this.maxlength != -1 && this.mode === 'input') {
168
- this.val = val.slice(0, this.maxlength);
169
- } else {
170
- this.val = val;
171
- }
172
- },
173
- val(val) {
174
- // #ifdef VUE2
175
- // TODO 兼容 vue2
176
- this.$emit('input', val);
177
- // #endif
178
- // #ifdef VUE3
179
- // TODO 兼容 vue3
180
- this.$emit('update:modelValue', val);
181
- // #endif
182
- }
183
- },
184
- created() {
185
- // 对话框遮罩不可点击
186
- this.popup.disableMask();
187
- // this.popup.closeMask()
188
- if (this.mode === 'input') {
189
- this.dialogType = 'info';
190
- this.val = this.value;
191
- // #ifdef VUE3
192
- this.val = this.modelValue;
193
- // #endif
194
- } else {
195
- this.dialogType = this.type;
196
- }
197
- },
198
- methods: {
199
- /**
200
- * 点击确认按钮
201
- */
202
- onOk() {
203
- if (this.mode === 'input') {
204
- this.$emit('confirm', this.val);
205
- } else {
206
- this.$emit('confirm');
207
- }
208
- if (this.beforeClose) return;
209
- this.popup.close();
210
- },
211
- /**
212
- * 点击取消按钮
213
- */
214
- closeDialog() {
215
- this.$emit('close');
216
- if (this.beforeClose) return;
217
- this.popup.close();
218
- },
219
- close() {
220
- this.popup.close();
221
- }
222
- }
223
- };
224
- </script>
225
-
226
- <style lang="scss">
227
- .uni-popup-dialog {
228
- width: 300px;
229
- border-radius: 11px;
230
- background-color: #fff;
231
- }
232
-
233
- .uni-dialog-title {
234
- /* #ifndef APP-NVUE */
235
- display: flex;
236
- /* #endif */
237
- flex-direction: row;
238
- justify-content: center;
239
- padding-top: 25px;
240
- }
241
-
242
- .uni-dialog-title-text {
243
- font-size: 16px;
244
- font-weight: 500;
245
- }
246
-
247
- .uni-dialog-content {
248
- /* #ifndef APP-NVUE */
249
- display: flex;
250
- /* #endif */
251
- flex-direction: row;
252
- justify-content: center;
253
- align-items: center;
254
- padding: 20px;
255
- }
256
-
257
- .uni-dialog-content-text {
258
- font-size: 14px;
259
- color: #6c6c6c;
260
- }
261
-
262
- .uni-dialog-button-group {
263
- /* #ifndef APP-NVUE */
264
- display: flex;
265
- /* #endif */
266
- flex-direction: row;
267
- border-top-color: #f5f5f5;
268
- border-top-style: solid;
269
- border-top-width: 1px;
270
- }
271
-
272
- .uni-dialog-button {
273
- /* #ifndef APP-NVUE */
274
- display: flex;
275
- /* #endif */
276
-
277
- flex: 1;
278
- flex-direction: row;
279
- justify-content: center;
280
- align-items: center;
281
- height: 45px;
282
- }
283
-
284
- .uni-border-left {
285
- border-left-color: #f0f0f0;
286
- border-left-style: solid;
287
- border-left-width: 1px;
288
- }
289
-
290
- .uni-dialog-button-text {
291
- font-size: 16px;
292
- color: #333;
293
- }
294
-
295
- .uni-button-color {
296
- color: #007aff;
297
- }
298
-
299
- .uni-dialog-input {
300
- flex: 1;
301
- font-size: 14px;
302
- border: 1px #eee solid;
303
- height: 40px;
304
- padding: 0 10px;
305
- border-radius: 5px;
306
- color: #555;
307
- }
308
-
309
- .uni-popup__success {
310
- color: #4cd964;
311
- }
312
-
313
- .uni-popup__warn {
314
- color: #f0ad4e;
315
- }
316
-
317
- .uni-popup__error {
318
- color: #dd524d;
319
- }
320
-
321
- .uni-popup__info {
322
- color: #909399;
323
- }
324
- </style>
@@ -1,149 +0,0 @@
1
- <template>
2
- <view class="uni-popup-message">
3
- <view
4
- class="uni-popup-message__box fixforpc-width"
5
- :class="'uni-popup__' + type">
6
- <slot>
7
- <text
8
- class="uni-popup-message-text"
9
- :class="'uni-popup__' + type + '-text'"
10
- >{{ message }}</text
11
- >
12
- </slot>
13
- </view>
14
- </view>
15
- </template>
16
-
17
- <script>
18
- import popup from '../uni-popup/popup.js';
19
- /**
20
- * PopUp 弹出层-消息提示
21
- * @description 弹出层-消息提示
22
- * @tutorial https://ext.dcloud.net.cn/plugin?id=329
23
- * @property {String} type = [success|warning|info|error] 主题样式
24
- * @value success 成功
25
- * @value warning 提示
26
- * @value info 消息
27
- * @value error 错误
28
- * @property {String} message 消息提示文字
29
- * @property {String} duration 显示时间,设置为 0 则不会自动关闭
30
- */
31
-
32
- export default {
33
- name: 'uniPopupMessage',
34
- mixins: [popup],
35
- props: {
36
- /**
37
- * 主题 success/warning/info/error 默认 success
38
- */
39
- type: {
40
- type: String,
41
- default: 'success'
42
- },
43
- /**
44
- * 消息文字
45
- */
46
- message: {
47
- type: String,
48
- default: ''
49
- },
50
- /**
51
- * 显示时间,设置为 0 则不会自动关闭
52
- */
53
- duration: {
54
- type: Number,
55
- default: 3000
56
- },
57
- maskShow: {
58
- type: Boolean,
59
- default: false
60
- }
61
- },
62
- data() {
63
- return {};
64
- },
65
- created() {
66
- // this.popup.maskShow = this.props.maskShow;
67
- // this.popup.messageChild = this;
68
- },
69
- methods: {
70
- timerClose() {
71
- if (this.duration === 0) return;
72
- clearTimeout(this.timer);
73
- this.timer = setTimeout(() => {
74
- this.popup.close();
75
- }, this.duration);
76
- }
77
- }
78
- };
79
- </script>
80
- <style lang="scss">
81
- .uni-popup-message {
82
- /* #ifndef APP-NVUE */
83
- display: flex;
84
- /* #endif */
85
- flex-direction: row;
86
- justify-content: center;
87
- }
88
-
89
- .uni-popup-message__box {
90
- background-color: #e1f3d8;
91
- padding: 10px 15px;
92
- border-color: #eee;
93
- border-style: solid;
94
- border-width: 1px;
95
- flex: 1;
96
- }
97
-
98
- @media screen and (min-width: 500px) {
99
- .fixforpc-width {
100
- margin-top: 20px;
101
- border-radius: 4px;
102
- flex: none;
103
- min-width: 380px;
104
- /* #ifndef APP-NVUE */
105
- max-width: 50%;
106
- /* #endif */
107
- /* #ifdef APP-NVUE */
108
- max-width: 500px;
109
- /* #endif */
110
- }
111
- }
112
-
113
- .uni-popup-message-text {
114
- font-size: 14px;
115
- padding: 0;
116
- }
117
-
118
- .uni-popup__success {
119
- background-color: #e1f3d8;
120
- }
121
-
122
- .uni-popup__success-text {
123
- color: #67c23a;
124
- }
125
-
126
- .uni-popup__warn {
127
- background-color: #faecd8;
128
- }
129
-
130
- .uni-popup__warn-text {
131
- color: #e6a23c;
132
- }
133
-
134
- .uni-popup__error {
135
- background-color: #fde2e2;
136
- }
137
-
138
- .uni-popup__error-text {
139
- color: #f56c6c;
140
- }
141
-
142
- .uni-popup__info {
143
- background-color: #f2f6fc;
144
- }
145
-
146
- .uni-popup__info-text {
147
- color: #909399;
148
- }
149
- </style>