hfn-components 0.0.3 → 0.0.5
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/component.ts +10 -0
- package/defaults.ts +6 -0
- package/index.ts +7 -0
- package/make-installer.ts +17 -0
- package/package.json +5 -10
- package/plugin.ts +1 -0
- package/README.en.md +0 -36
- package/README.md +0 -20
- package/dist/es/_virtual/_plugin-vue_export-helper.mjs +0 -9
- package/dist/es/node_modules/.pnpm/ant-design-vue@3.2.20_vue@3.4.21_typescript@5.3.3_/node_modules/ant-design-vue/dist/antd.css.mjs +0 -6
- package/dist/es/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.mjs +0 -28
- package/dist/es/packages/components/button/HtButton.vue.mjs +0 -6
- package/dist/es/packages/components/button/HtButton.vue2.mjs +0 -15
- package/dist/es/packages/components/button/index.mjs +0 -7
- package/dist/es/packages/components/index.mjs +0 -13
- package/dist/es/packages/components/table/HtTable.vue.mjs +0 -6
- package/dist/es/packages/components/table/HtTable.vue2.mjs +0 -110
- package/dist/es/packages/components/table/index.mjs +0 -6
- package/dist/es/packages/utils/common.mjs +0 -15
- package/dist/type/components/button/HtButton.vue.d.ts +0 -26
- package/dist/type/components/button/index.d.ts +0 -2
- package/dist/type/components/index.d.ts +0 -6
- package/dist/type/utils/common.d.ts +0 -3
- package/dist/type/utils/index.d.ts +0 -1
package/component.ts
ADDED
package/defaults.ts
ADDED
package/index.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { App, Plugin } from 'vue'
|
|
2
|
+
import { INSTALLED_KEY } from '@hfn-components/constants'
|
|
3
|
+
|
|
4
|
+
export const makeInstaller = (components: Plugin[] = []) => {
|
|
5
|
+
const install = (app: App) => {
|
|
6
|
+
if (app[INSTALLED_KEY]) return
|
|
7
|
+
|
|
8
|
+
app[INSTALLED_KEY] = true
|
|
9
|
+
components.forEach((c) => app.use(c))
|
|
10
|
+
|
|
11
|
+
// if (options) provideGlobalConfig(options, app, true)
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
return {
|
|
15
|
+
install
|
|
16
|
+
}
|
|
17
|
+
}
|
package/package.json
CHANGED
|
@@ -1,22 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hfn-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "",
|
|
5
|
-
"main": "
|
|
5
|
+
"main": "index.ts",
|
|
6
|
+
"module": "es/index.mjs",
|
|
7
|
+
"types": "es/index.d.ts",
|
|
6
8
|
"scripts": {
|
|
7
9
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
10
|
},
|
|
9
|
-
"files": [
|
|
10
|
-
"dist/"
|
|
11
|
-
],
|
|
12
11
|
"keywords": [],
|
|
13
12
|
"author": "",
|
|
14
13
|
"license": "ISC",
|
|
15
|
-
"devDependencies": {
|
|
16
|
-
"ant-design-vue": "3.2.20",
|
|
17
|
-
"typescript": "^5.3.3"
|
|
18
|
-
},
|
|
19
14
|
"peerDependencies": {
|
|
20
|
-
"vue": "3.
|
|
15
|
+
"vue": "^3.2.0"
|
|
21
16
|
}
|
|
22
17
|
}
|
package/plugin.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default []
|
package/README.en.md
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
# ht
|
|
2
|
-
|
|
3
|
-
#### Description
|
|
4
|
-
ht-test
|
|
5
|
-
|
|
6
|
-
#### Software Architecture
|
|
7
|
-
Software architecture description
|
|
8
|
-
|
|
9
|
-
#### Installation
|
|
10
|
-
|
|
11
|
-
1. xxxx
|
|
12
|
-
2. xxxx
|
|
13
|
-
3. xxxx
|
|
14
|
-
|
|
15
|
-
#### Instructions
|
|
16
|
-
|
|
17
|
-
1. xxxx
|
|
18
|
-
2. xxxx
|
|
19
|
-
3. xxxx
|
|
20
|
-
|
|
21
|
-
#### Contribution
|
|
22
|
-
|
|
23
|
-
1. Fork the repository
|
|
24
|
-
2. Create Feat_xxx branch
|
|
25
|
-
3. Commit your code
|
|
26
|
-
4. Create Pull Request
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
#### Gitee Feature
|
|
30
|
-
|
|
31
|
-
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
|
32
|
-
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
|
33
|
-
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
|
34
|
-
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
|
35
|
-
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
|
36
|
-
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
package/README.md
DELETED