hy-app 0.2.12 → 0.2.14
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/compiler.ts +108 -0
- package/component-helper.ts +179 -0
- package/components/hy-button/HyButton.docgen.js +6 -0
- package/components/hy-button/hy-button.vue +152 -36
- package/components/hy-button/props.ts +157 -32
- package/components/hy-button/typing.d.ts +16 -10
- package/components/index.ts +114 -122
- package/components.json +3287 -0
- package/docgen.config.js +13 -0
- package/package.json +12 -3
- package/web-types.config.js +5 -6
- package/web-types.json +1 -3117
- package/components/hy-safe-bottom/hy-safe-bottom.vue +0 -60
- package/components/hy-safe-bottom/index.scss +0 -5
- package/components/message/TheMessage.vue +0 -169
- package/components/message/index.ts +0 -54
- package/components/u-form/form.js +0 -22
- package/components/u-form/hy-form.vue +0 -324
- package/components/u-form/props.js +0 -49
- package/components/u-form/schema.js +0 -1451
- package/components/u-form/u-form.vue +0 -267
- package/components/u-form/utils.js +0 -65
- package/components/u-form-item/formItem.js +0 -24
- package/components/u-form-item/hy-form-item.vue +0 -360
- package/components/u-form-item/props.js +0 -57
- package/components/u-form-item/u-form-item.vue +0 -294
- package/shims-vue.d.ts +0 -0
package/docgen.config.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const path = require('path')
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
components: ['./components/hy-button/hy-button.vue'],
|
|
5
|
+
outDir: 'dist/docs',
|
|
6
|
+
apiOptions: {
|
|
7
|
+
jsx: false,
|
|
8
|
+
alias: {
|
|
9
|
+
'@': path.resolve(__dirname, 'src'),
|
|
10
|
+
},
|
|
11
|
+
babelParserPlugins: ['typescript'],
|
|
12
|
+
},
|
|
13
|
+
}
|
package/package.json
CHANGED
|
@@ -1,22 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hy-app",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.14",
|
|
4
4
|
"description": "测试组件提示",
|
|
5
5
|
"main": "./index.ts",
|
|
6
6
|
"private": false,
|
|
7
7
|
"scripts": {
|
|
8
|
-
"web-types": "vue-docgen-web-types"
|
|
8
|
+
"web-types": "vue-docgen-web-types --configFile web-types.config.js",
|
|
9
|
+
"doc": "npx vue-docgen -c docgen.config.js",
|
|
10
|
+
"gen:web-types": "tsx ./component-helper.ts",
|
|
11
|
+
"docs": "npx ts-node compiler.ts"
|
|
9
12
|
},
|
|
10
13
|
"keywords": [
|
|
11
14
|
"华玥组件库",
|
|
12
15
|
"ui组件库",
|
|
13
16
|
"暗黑模式"
|
|
14
17
|
],
|
|
15
|
-
"web-types": "web-types.json",
|
|
18
|
+
"web-types": "./web-types.json",
|
|
16
19
|
"author": "gaoxianhua",
|
|
17
20
|
"license": "MIT",
|
|
18
21
|
"devDependencies": {
|
|
22
|
+
"@types/node": "^24.0.15",
|
|
23
|
+
"components-helper": "^2.2.0",
|
|
24
|
+
"ts-node": "^10.9.2",
|
|
25
|
+
"tsx": "^4.20.3",
|
|
26
|
+
"typescript": "^5.8.3",
|
|
19
27
|
"vue-docgen-api": "^4.79.2",
|
|
28
|
+
"vue-docgen-cli": "^4.79.0",
|
|
20
29
|
"vue-docgen-web-types": "^0.1.8"
|
|
21
30
|
}
|
|
22
31
|
}
|
package/web-types.config.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
},
|
|
2
|
+
// 1. 告诉扫描器去哪里找组件
|
|
3
|
+
components: './components/**/*.vue',
|
|
4
|
+
|
|
5
|
+
// 2. 输出生成的文件
|
|
6
|
+
outFile: './web-types.json',
|
|
8
7
|
}
|