z-ui-pc 0.0.1
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 +81 -0
- package/dist/components.d.ts +12 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +2494 -0
- package/dist/index.js +4792 -0
- package/package.json +61 -0
- package/web-types.json +67 -0
package/package.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "z-ui-pc",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "适用于pc端的前端组件库",
|
|
5
|
+
"module": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"import": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist",
|
|
15
|
+
"package.json",
|
|
16
|
+
"README.md",
|
|
17
|
+
"web-types.json"
|
|
18
|
+
],
|
|
19
|
+
"style": "./dist/index.css",
|
|
20
|
+
"scripts": {
|
|
21
|
+
"dev": "pnpm --filter './play' dev",
|
|
22
|
+
"test": "",
|
|
23
|
+
"build": "vite build",
|
|
24
|
+
"check": "vue-tsc",
|
|
25
|
+
"prepare": "[ -n '$z' ] && z init prepare || echo 'Warning: z not exist at global'"
|
|
26
|
+
},
|
|
27
|
+
"type": "module",
|
|
28
|
+
"author": "Front-End team",
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"@element-plus/icons-vue": "*",
|
|
31
|
+
"dayjs": "*",
|
|
32
|
+
"element-plus": "*",
|
|
33
|
+
"lodash": "*",
|
|
34
|
+
"mitt": "*",
|
|
35
|
+
"vue": "*",
|
|
36
|
+
"vue-draggable-plus": "*"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@element-plus/icons-vue": "^2.3.1",
|
|
40
|
+
"@lonely9/eslint-config-team": "^1.2.2",
|
|
41
|
+
"@microsoft/api-extractor": "^7.52.9",
|
|
42
|
+
"@types/lodash": "^4.17.20",
|
|
43
|
+
"@types/node": "^24.1.0",
|
|
44
|
+
"@vitejs/plugin-vue": "^6.0.1",
|
|
45
|
+
"@vitejs/plugin-vue-jsx": "^5.0.1",
|
|
46
|
+
"dayjs": "^1.11.13",
|
|
47
|
+
"element-plus": "^2.10.4",
|
|
48
|
+
"eslint": "^9.27.0",
|
|
49
|
+
"lodash": "^4.17.21",
|
|
50
|
+
"mitt": "^3.0.1",
|
|
51
|
+
"prettier": "^3.5.3",
|
|
52
|
+
"sass-embedded": "^1.89.2",
|
|
53
|
+
"typescript": "^5.8.3",
|
|
54
|
+
"vite": "^7.0.6",
|
|
55
|
+
"vite-plugin-dts": "^4.5.4",
|
|
56
|
+
"vue": "^3.5.18",
|
|
57
|
+
"vue-draggable-plus": "^0.6.0",
|
|
58
|
+
"vue-tsc": "^3.0.4"
|
|
59
|
+
},
|
|
60
|
+
"web-types": "web-types.json"
|
|
61
|
+
}
|
package/web-types.json
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json.schemastore.org/web-types",
|
|
3
|
+
"framework": "vue",
|
|
4
|
+
"name": "z-ui",
|
|
5
|
+
"version": "1.0.0",
|
|
6
|
+
"js-types-syntax": "typescript",
|
|
7
|
+
"description-markup": "markdown",
|
|
8
|
+
"contributions": {
|
|
9
|
+
"html": {
|
|
10
|
+
"attributes": [
|
|
11
|
+
{
|
|
12
|
+
"name": "v-ellipsis",
|
|
13
|
+
"description": "## 文本溢出指令 \n鼠标经过时,溢出文本展示tooltip,未溢出则不展示",
|
|
14
|
+
"type": ["string", "object"],
|
|
15
|
+
"arguments": [
|
|
16
|
+
{
|
|
17
|
+
"name": "content",
|
|
18
|
+
"description": "显示在tooltip中的内容。如果没有提供,则默认使用元素的文本内容。",
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "line",
|
|
23
|
+
"description": "设置内容超出多少行才隐藏,默认1",
|
|
24
|
+
"type": "number"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "tipWidth",
|
|
28
|
+
"description": "设置tooltip的宽度。默认自适应",
|
|
29
|
+
"type": "string"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"modifiers": [
|
|
33
|
+
{
|
|
34
|
+
"name": "dark",
|
|
35
|
+
"description": "将tooltip效果设置为暗色。"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "light",
|
|
39
|
+
"description": "将tooltip效果设置为亮色。"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "top",
|
|
43
|
+
"description": "将tooltip定位在元素的顶部。"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "bottom",
|
|
47
|
+
"description": "将tooltip定位在元素的底部。"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "left",
|
|
51
|
+
"description": "将tooltip定位在元素的左侧。"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "right",
|
|
55
|
+
"description": "将tooltip定位在元素的右侧。"
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "v-paste-trim",
|
|
61
|
+
"description": "## el-input 粘贴空格过滤 \n粘贴内容到 el-input 的时候,会自动把前后空格去掉",
|
|
62
|
+
"type": "string"
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|