@vtj/materials 0.8.71 → 0.8.73
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.
- package/dist/assets/antdv/index.umd.js +2 -2
- package/dist/assets/charts/index.umd.js +2 -2
- package/dist/assets/element/index.umd.js +2 -2
- package/dist/assets/ui/index.umd.js +3 -3
- package/dist/deps/@vtj/charts/index.umd.js +2 -2
- package/dist/deps/@vtj/icons/index.umd.js +2 -2
- package/dist/deps/@vtj/ui/index.umd.js +12 -12
- package/dist/deps/@vtj/utils/index.umd.js +17 -17
- package/package.json +5 -5
- package/src/ui/import-button.ts +36 -0
- package/src/ui/index.ts +3 -1
- package/src/ui/picker.ts +2 -1
- package/src/version.ts +2 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vtj/materials",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.73",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"devDependencies": {
|
|
7
7
|
"@vueuse/core": "~10.11.0",
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
"vant": "~4.9.0",
|
|
12
12
|
"vue": "~3.4.15",
|
|
13
13
|
"vue-router": "~4.4.0",
|
|
14
|
-
"@vtj/charts": "~0.8.
|
|
14
|
+
"@vtj/charts": "~0.8.73",
|
|
15
|
+
"@vtj/core": "~0.8.73",
|
|
15
16
|
"@vtj/cli": "~0.8.17",
|
|
16
|
-
"@vtj/ui": "~0.8.
|
|
17
|
-
"@vtj/
|
|
18
|
-
"@vtj/utils": "~0.8.71"
|
|
17
|
+
"@vtj/ui": "~0.8.73",
|
|
18
|
+
"@vtj/utils": "~0.8.73"
|
|
19
19
|
},
|
|
20
20
|
"files": [
|
|
21
21
|
"dist",
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { MaterialDescription } from '@vtj/core';
|
|
2
|
+
import button from '../element/button';
|
|
3
|
+
const desc: MaterialDescription = {
|
|
4
|
+
name: 'XImportButton',
|
|
5
|
+
label: '导入按钮',
|
|
6
|
+
categoryId: 'base',
|
|
7
|
+
props: [
|
|
8
|
+
{
|
|
9
|
+
name: 'uploader',
|
|
10
|
+
title: '文件上传函数',
|
|
11
|
+
setters: 'FunctionSetter'
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
name: 'multiple',
|
|
15
|
+
setters: 'BooleanSetter'
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
name: 'accept',
|
|
19
|
+
title: '接受上传的文件类型',
|
|
20
|
+
setters: 'StringSetter'
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'parser',
|
|
24
|
+
setters: ['SelectSetter', 'FunctionSetter'],
|
|
25
|
+
options: ['text', 'json', 'base64']
|
|
26
|
+
},
|
|
27
|
+
...(button[0].props || [])
|
|
28
|
+
],
|
|
29
|
+
events: ['success', 'fail'],
|
|
30
|
+
slots: ['default'],
|
|
31
|
+
snippet: {
|
|
32
|
+
props: {}
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export default desc;
|
package/src/ui/index.ts
CHANGED
|
@@ -24,6 +24,7 @@ import list from './list';
|
|
|
24
24
|
import queryForm from './query-form';
|
|
25
25
|
import tabs from './tabs';
|
|
26
26
|
import picker from './picker';
|
|
27
|
+
import importButton from './import-button';
|
|
27
28
|
|
|
28
29
|
const name = '@vtj/ui';
|
|
29
30
|
const components: MaterialDescription[] = [
|
|
@@ -45,7 +46,8 @@ const components: MaterialDescription[] = [
|
|
|
45
46
|
list,
|
|
46
47
|
queryForm,
|
|
47
48
|
tabs,
|
|
48
|
-
picker
|
|
49
|
+
picker,
|
|
50
|
+
importButton
|
|
49
51
|
].flat();
|
|
50
52
|
|
|
51
53
|
const categories: MaterialCategory[] = [
|
package/src/ui/picker.ts
CHANGED
package/src/version.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (c) 2024, VTJ.PRO All rights reserved.
|
|
3
3
|
* @name @vtj/materials
|
|
4
4
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
5
|
-
* @version 0.8.
|
|
5
|
+
* @version 0.8.73
|
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
7
7
|
*/
|
|
8
|
-
export const version = '0.8.
|
|
8
|
+
export const version = '0.8.73';
|