Skip to content

Commit 681b5dd

Browse files
committed
Initial commit
0 parents  commit 681b5dd

17 files changed

+3018
-0
lines changed

.gitignore

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

.vscode/extensions.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
3+
}

README.md

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# FN-Scheme
2+
#### Form schema component for Naive UI framework. Generate form from json like formkit schema component
3+
## Documentation [link](#)
4+
5+
Package type: `Module`
6+
7+
8+
#### TREE
9+
- [How to use](#how-to-use)
10+
11+
12+
13+
14+
### How to Use
15+
16+
Install command
17+
18+
```shell
19+
pnpm i @francfox/fn-forms
20+
```
21+
22+
Import component
23+
24+
```vue
25+
26+
<script setup type="ts">
27+
import { FnSchema } from '@francyfox/fn-forms'
28+
import { NaiveUISchema } from "@francyfox/fn-forms/module/schema";
29+
30+
const json = {
31+
$type: 'form',
32+
children: []
33+
} as NaiveUISchema
34+
</script>
35+
36+
<template>
37+
<fn-schema :schema="json"/>
38+
</template>
39+
```
40+
41+
#### Available components:
42+
- Form
43+
- Input
44+
45+
46+
#### CHANG

index.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Vite + Vue + TS</title>
8+
</head>
9+
<body>
10+
<div id="app"></div>
11+
<script type="module" src="/src/main.ts"></script>
12+
</body>
13+
</html>

package.json

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "fn-forms",
3+
"private": true,
4+
"version": "0.0.0",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite",
8+
"build": "vue-tsc && vite build",
9+
"preview": "vite preview"
10+
},
11+
"dependencies": {
12+
"naive-ui": "^2.34.3",
13+
"vue": "^3.2.47"
14+
},
15+
"devDependencies": {
16+
"@vitejs/plugin-vue": "^4.1.0",
17+
"ts-standard": "^12.0.2",
18+
"typescript": "^5.0.2",
19+
"vite": "^4.3.2",
20+
"vue-tsc": "^1.4.2"
21+
},
22+
"ts-standard": {
23+
"project": "./tsconfig.json"
24+
}
25+
}

0 commit comments

Comments
 (0)