vant-vtk 1.0.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/package.json +58 -0
- package/types/index.d.ts +29 -0
package/package.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "vant-vtk",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Vue3 + Vant4 扩展组件库",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/vant-vtk.umd.js",
|
|
7
|
+
"module": "./dist/vant-vtk.es.js",
|
|
8
|
+
"types": "./types/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./dist/vant-vtk.es.js",
|
|
12
|
+
"require": "./dist/vant-vtk.umd.js"
|
|
13
|
+
},
|
|
14
|
+
"./es": "./dist/vant-vtk.es.js",
|
|
15
|
+
"./lib": "./dist/vant-vtk.umd.js",
|
|
16
|
+
"./es/*": "./dist/es/*",
|
|
17
|
+
"./lib/*": "./dist/lib/*",
|
|
18
|
+
"./dist/style.css": "./dist/style.css"
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"dist",
|
|
22
|
+
"types"
|
|
23
|
+
],
|
|
24
|
+
"sideEffects": [
|
|
25
|
+
"**/*.css",
|
|
26
|
+
"**/*.scss"
|
|
27
|
+
],
|
|
28
|
+
"scripts": {
|
|
29
|
+
"dev": "vite",
|
|
30
|
+
"build": "vite build",
|
|
31
|
+
"build:lib": "vite build --mode lib",
|
|
32
|
+
"preview": "vite preview"
|
|
33
|
+
},
|
|
34
|
+
"keywords": [
|
|
35
|
+
"vue3",
|
|
36
|
+
"vant",
|
|
37
|
+
"vant4",
|
|
38
|
+
"components",
|
|
39
|
+
"ui"
|
|
40
|
+
],
|
|
41
|
+
"author": "",
|
|
42
|
+
"license": "MIT",
|
|
43
|
+
"peerDependencies": {
|
|
44
|
+
"vue": "^3.2.0",
|
|
45
|
+
"vant": "^4.0.0"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@vitejs/plugin-vue": "^5.0.0",
|
|
49
|
+
"vite": "^5.0.0",
|
|
50
|
+
"vue": "^3.4.0",
|
|
51
|
+
"vant": "^4.8.0"
|
|
52
|
+
},
|
|
53
|
+
"repository": {
|
|
54
|
+
"type": "git",
|
|
55
|
+
"url": ""
|
|
56
|
+
},
|
|
57
|
+
"homepage": ""
|
|
58
|
+
}
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { DefineComponent, App } from 'vue'
|
|
2
|
+
|
|
3
|
+
export interface OptionItem {
|
|
4
|
+
value: string | number
|
|
5
|
+
text: string
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface CheckboxFieldProps {
|
|
9
|
+
modelValue?: string | any[] | object
|
|
10
|
+
options?: OptionItem[] | string
|
|
11
|
+
valueType?: 'string' | 'array' | 'object'
|
|
12
|
+
separator?: string
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export type CheckboxFieldInstance = DefineComponent<CheckboxFieldProps>
|
|
16
|
+
|
|
17
|
+
export declare const CheckboxField: CheckboxFieldInstance & {
|
|
18
|
+
install: (app: App) => void
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare const VantVtk: {
|
|
22
|
+
install: (app: App) => void
|
|
23
|
+
CheckboxField: typeof CheckboxField
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export default VantVtk
|
|
27
|
+
|
|
28
|
+
export declare const version: string
|
|
29
|
+
export declare const install: (app: App) => void
|