keli-ui 0.1.1 → 0.2.0
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/README.md +5 -5
- package/dist/keli-ui.css +1 -1
- package/dist/keli-ui.js +414 -131
- package/dist/keli-ui.umd.cjs +1 -1
- package/dist/types/packages/FormComponents/FormTableSelect/FormTableSelect.vue.d.ts +2 -0
- package/dist/types/packages/FormComponents/FormTableSelect/index.d.ts +2 -0
- package/dist/types/packages/FormComponents/FormTableSelectAsync/FormTableSelectAsyncClient.vue.d.ts +2 -0
- package/dist/types/packages/FormComponents/FormTableSelectAsync/index.d.ts +2 -0
- package/dist/types/packages/FormComponents/{FormSelectAsync/hooks → hook}/selectAsync.hook.d.ts +1 -1
- package/dist/types/packages/index.d.ts +3 -1
- package/dist/types/packages/types/formFrame.d.ts +56 -0
- package/package.json +67 -67
|
@@ -29,6 +29,8 @@ import KeFormSelect from './FormComponents/FormSelect';
|
|
|
29
29
|
import KeFormSelectAsync from './FormComponents/FormSelectAsync';
|
|
30
30
|
import KeFormSelectRemote from './FormComponents/FormSelectRemote';
|
|
31
31
|
import KeFormSwitch from './FormComponents/FormSwitch';
|
|
32
|
+
import KeFormTableSelect from './FormComponents/FormTableSelect';
|
|
33
|
+
import FormTableSelectAsync from './FormComponents/FormTableSelectAsync';
|
|
32
34
|
import KeFormText from './FormComponents/FormText';
|
|
33
35
|
import KeFormTextArea from './FormComponents/FormTextArea';
|
|
34
36
|
import 'vxe-pc-ui/lib/style.css';
|
|
@@ -37,7 +39,7 @@ declare const _default: {
|
|
|
37
39
|
install: (app: App) => void;
|
|
38
40
|
};
|
|
39
41
|
export default _default;
|
|
40
|
-
export { install, KeTableRender, KeTableCardRender, KeTableTreeRender, KeTableCheckBoxAsync, KeTableInput, KeTableInputNumber, KeTableSelect, KeTableSelectAsync, KeTableSwitch, KeQueryBar, KeQueryDateTime, KeQueryInput, KeQueryInputLike, KeQuerySelect, KeToolBar, KeFormCascaderAsync, KeFormCheckBoxAsync, KeFormDatePicker, KeFormDivider, KeFormDateTimePicker, KeFormDynamicTable, KeFormInput, KeFormInputNumber, KeFormRadio, KeFormRender, KeFormSelect, KeFormSelectAsync, KeFormSelectRemote, KeFormSwitch, KeFormText, KeFormTextArea };
|
|
42
|
+
export { install, KeTableRender, KeTableCardRender, KeTableTreeRender, KeTableCheckBoxAsync, KeTableInput, KeTableInputNumber, KeTableSelect, KeTableSelectAsync, KeTableSwitch, KeQueryBar, KeQueryDateTime, KeQueryInput, KeQueryInputLike, KeQuerySelect, KeToolBar, KeFormCascaderAsync, KeFormCheckBoxAsync, KeFormDatePicker, KeFormDivider, KeFormDateTimePicker, KeFormDynamicTable, KeFormInput, KeFormInputNumber, KeFormRadio, KeFormRender, KeFormSelect, KeFormSelectAsync, KeFormSelectRemote, KeFormSwitch, KeFormTableSelect, FormTableSelectAsync, KeFormText, KeFormTextArea };
|
|
41
43
|
export * from '../utils';
|
|
42
44
|
export type * from './types';
|
|
43
45
|
export * from 'vxe-table';
|
|
@@ -44,6 +44,62 @@ export interface KeFormSelectAsync extends FormFrame {
|
|
|
44
44
|
optionHttpComponentValue: string[];
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
+
/**
|
|
48
|
+
* 下拉表组件的options
|
|
49
|
+
*/
|
|
50
|
+
interface KeFormTableSelectOption {
|
|
51
|
+
field: string;
|
|
52
|
+
label: string;
|
|
53
|
+
/**
|
|
54
|
+
* 最大24
|
|
55
|
+
*/
|
|
56
|
+
span: number;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* 下拉表组件
|
|
61
|
+
*/
|
|
62
|
+
export interface KeFormTableSelect extends FormFrame {
|
|
63
|
+
/** 是否多选 */
|
|
64
|
+
multiple?: boolean;
|
|
65
|
+
/** 下拉框选项 */
|
|
66
|
+
options: any[];
|
|
67
|
+
componentParams: {
|
|
68
|
+
mode?: string;
|
|
69
|
+
/**
|
|
70
|
+
* key字段
|
|
71
|
+
*/
|
|
72
|
+
keyField: string;
|
|
73
|
+
/**
|
|
74
|
+
* label字段
|
|
75
|
+
*/
|
|
76
|
+
labelField: string;
|
|
77
|
+
/**
|
|
78
|
+
* value字段
|
|
79
|
+
*/
|
|
80
|
+
valueField: string;
|
|
81
|
+
optionSlots: KeFormTableSelectOption[];
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
export interface KeFormTableSelectAsync extends KeFormSelectAsync {
|
|
85
|
+
componentParams: {
|
|
86
|
+
mode?: string;
|
|
87
|
+
/**
|
|
88
|
+
* key字段
|
|
89
|
+
*/
|
|
90
|
+
keyField: string;
|
|
91
|
+
/**
|
|
92
|
+
* label字段
|
|
93
|
+
*/
|
|
94
|
+
labelField: string;
|
|
95
|
+
/**
|
|
96
|
+
* value字段
|
|
97
|
+
*/
|
|
98
|
+
valueField: string;
|
|
99
|
+
optionSlots: KeFormTableSelectOption[];
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
47
103
|
/** 动态表格 */
|
|
48
104
|
export interface FormDynamicTable extends FormFrame {
|
|
49
105
|
column: DynamicTableColumn[];
|
package/package.json
CHANGED
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "keli-ui",
|
|
3
|
-
"private": false,
|
|
4
|
-
"version": "0.
|
|
5
|
-
"author": "Luv Letter",
|
|
6
|
-
"description": "配置化组件库",
|
|
7
|
-
"type": "module",
|
|
8
|
-
"license": "Apache-2.0",
|
|
9
|
-
"files": [
|
|
10
|
-
"dist",
|
|
11
|
-
"dist/types"
|
|
12
|
-
],
|
|
13
|
-
"types": "./dist/types/packages/index.d.ts",
|
|
14
|
-
"main": "./dist/keli-ui.umd.cjs",
|
|
15
|
-
"module": "./dist/keli-ui.js",
|
|
16
|
-
"exports": {
|
|
17
|
-
"./dist/keli-ui.css": "./dist/keli-ui.css",
|
|
18
|
-
".": {
|
|
19
|
-
"import": "./dist/keli-ui.js",
|
|
20
|
-
"require": "./dist/keli-ui.umd.cjs",
|
|
21
|
-
"types": [
|
|
22
|
-
"./dist/types/packages/index.d.ts",
|
|
23
|
-
"./dist/types/packages/types/index.d.ts"
|
|
24
|
-
]
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
"scripts": {
|
|
28
|
-
"dev": "vite",
|
|
29
|
-
"build": "vue-tsc -b && vite build && vue-tsc -p tsconfig.build.json",
|
|
30
|
-
"cp-types": "cp ./src/packages/types ./dist/types/packages/types",
|
|
31
|
-
"preview": "vite preview"
|
|
32
|
-
},
|
|
33
|
-
"dependencies": {
|
|
34
|
-
"solarday2lunarday": "^1.12.1",
|
|
35
|
-
"vant": "^4.9.19",
|
|
36
|
-
"vue-draggable-plus": "^0.6.0",
|
|
37
|
-
"vxe-pc-ui": "^4.5.34",
|
|
38
|
-
"vxe-table": "^4.13.15"
|
|
39
|
-
},
|
|
40
|
-
"optionalDependencies": {
|
|
41
|
-
"mitt": "^3.0.1"
|
|
42
|
-
},
|
|
43
|
-
"peerDependencies": {
|
|
44
|
-
"@element-plus/icons-vue": "^2.3.1",
|
|
45
|
-
"@vueuse/core": "^13.1.0",
|
|
46
|
-
"element-plus": "^2.9.9",
|
|
47
|
-
"vue": "^3.5.13"
|
|
48
|
-
},
|
|
49
|
-
"devDependencies": {
|
|
50
|
-
"@element-plus/icons-vue": "^2.3.1",
|
|
51
|
-
"@types/js-beautify": "^1.14.3",
|
|
52
|
-
"@types/node": "^22.15.3",
|
|
53
|
-
"@types/web-bluetooth": "^0.0.21",
|
|
54
|
-
"@vitejs/plugin-vue": "^5.2.2",
|
|
55
|
-
"@vue/tsconfig": "^0.7.0",
|
|
56
|
-
"class-variance-authority": "^0.7.1",
|
|
57
|
-
"clsx": "^2.1.1",
|
|
58
|
-
"element-plus": "^2.9.9",
|
|
59
|
-
"sass-embedded": "^1.87.0",
|
|
60
|
-
"terser": "^5.39.0",
|
|
61
|
-
"typescript": "~5.7.2",
|
|
62
|
-
"vite": "^6.3.1",
|
|
63
|
-
"vue": "^3.5.13",
|
|
64
|
-
"vue-tsc": "^2.2.8",
|
|
65
|
-
"vxe-pc-ui": "^4.5.34"
|
|
66
|
-
}
|
|
67
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "keli-ui",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "0.2.0",
|
|
5
|
+
"author": "Luv Letter",
|
|
6
|
+
"description": "配置化组件库",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"license": "Apache-2.0",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"dist/types"
|
|
12
|
+
],
|
|
13
|
+
"types": "./dist/types/packages/index.d.ts",
|
|
14
|
+
"main": "./dist/keli-ui.umd.cjs",
|
|
15
|
+
"module": "./dist/keli-ui.js",
|
|
16
|
+
"exports": {
|
|
17
|
+
"./dist/keli-ui.css": "./dist/keli-ui.css",
|
|
18
|
+
".": {
|
|
19
|
+
"import": "./dist/keli-ui.js",
|
|
20
|
+
"require": "./dist/keli-ui.umd.cjs",
|
|
21
|
+
"types": [
|
|
22
|
+
"./dist/types/packages/index.d.ts",
|
|
23
|
+
"./dist/types/packages/types/index.d.ts"
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"dev": "vite",
|
|
29
|
+
"build": "vue-tsc -b && vite build && vue-tsc -p tsconfig.build.json",
|
|
30
|
+
"cp-types": "cp ./src/packages/types ./dist/types/packages/types",
|
|
31
|
+
"preview": "vite preview"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"solarday2lunarday": "^1.12.1",
|
|
35
|
+
"vant": "^4.9.19",
|
|
36
|
+
"vue-draggable-plus": "^0.6.0",
|
|
37
|
+
"vxe-pc-ui": "^4.5.34",
|
|
38
|
+
"vxe-table": "^4.13.15"
|
|
39
|
+
},
|
|
40
|
+
"optionalDependencies": {
|
|
41
|
+
"mitt": "^3.0.1"
|
|
42
|
+
},
|
|
43
|
+
"peerDependencies": {
|
|
44
|
+
"@element-plus/icons-vue": "^2.3.1",
|
|
45
|
+
"@vueuse/core": "^13.1.0",
|
|
46
|
+
"element-plus": "^2.9.9",
|
|
47
|
+
"vue": "^3.5.13"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@element-plus/icons-vue": "^2.3.1",
|
|
51
|
+
"@types/js-beautify": "^1.14.3",
|
|
52
|
+
"@types/node": "^22.15.3",
|
|
53
|
+
"@types/web-bluetooth": "^0.0.21",
|
|
54
|
+
"@vitejs/plugin-vue": "^5.2.2",
|
|
55
|
+
"@vue/tsconfig": "^0.7.0",
|
|
56
|
+
"class-variance-authority": "^0.7.1",
|
|
57
|
+
"clsx": "^2.1.1",
|
|
58
|
+
"element-plus": "^2.9.9",
|
|
59
|
+
"sass-embedded": "^1.87.0",
|
|
60
|
+
"terser": "^5.39.0",
|
|
61
|
+
"typescript": "~5.7.2",
|
|
62
|
+
"vite": "^6.3.1",
|
|
63
|
+
"vue": "^3.5.13",
|
|
64
|
+
"vue-tsc": "^2.2.8",
|
|
65
|
+
"vxe-pc-ui": "^4.5.34"
|
|
66
|
+
}
|
|
67
|
+
}
|