@zeng-alt/formkit-form-builder 0.1.0 → 0.1.2
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 +13 -6
- package/dist/index.cjs +3 -3
- package/dist/index.mjs +1892 -3428
- package/dist/src/components/ui/button/CustomButton.d.ts +5 -0
- package/dist/src/components/ui/formkit/NaiveAvatar.d.ts +6 -0
- package/dist/src/components/ui/formkit/NaiveCascader.d.ts +6 -0
- package/dist/src/components/ui/formkit/NaiveCheckbox.d.ts +6 -0
- package/dist/src/components/ui/formkit/NaiveCheckboxGroup.d.ts +6 -0
- package/dist/src/components/ui/formkit/NaiveColorPicker.d.ts +6 -0
- package/dist/src/components/ui/formkit/NaiveDatePicker.d.ts +6 -0
- package/dist/src/components/ui/formkit/NaiveDivider.d.ts +6 -0
- package/dist/src/components/ui/formkit/NaiveMention.d.ts +6 -0
- package/dist/src/components/ui/formkit/NaiveNumberInput.d.ts +6 -0
- package/dist/src/components/ui/formkit/NaiveRadioGroup.d.ts +6 -0
- package/dist/src/components/ui/formkit/NaiveRate.d.ts +6 -0
- package/dist/src/components/ui/formkit/NaiveSelect.d.ts +6 -0
- package/dist/src/components/ui/formkit/NaiveSlider.d.ts +6 -0
- package/dist/src/components/ui/formkit/NaiveSwitch.d.ts +6 -0
- package/dist/src/components/ui/formkit/NaiveTextInput.d.ts +6 -0
- package/dist/src/components/ui/formkit/NaiveTextarea.d.ts +6 -0
- package/dist/src/components/ui/formkit/NaiveTimePicker.d.ts +6 -0
- package/dist/src/components/ui/formkit/NaiveTreeSelect.d.ts +6 -0
- package/dist/src/components/ui/formkit/NaiveTypographyA.d.ts +6 -0
- package/dist/src/components/ui/formkit/NaiveTypographyBlockquote.d.ts +6 -0
- package/dist/src/components/ui/formkit/NaiveTypographyHeader.d.ts +6 -0
- package/dist/src/components/ui/formkit/NaiveTypographyHr.d.ts +6 -0
- package/dist/src/components/ui/formkit/NaiveTypographyLi.d.ts +6 -0
- package/dist/src/components/ui/formkit/NaiveTypographyOl.d.ts +6 -0
- package/dist/src/components/ui/formkit/NaiveTypographyP.d.ts +6 -0
- package/dist/src/components/ui/formkit/NaiveTypographyText.d.ts +6 -0
- package/dist/src/components/ui/formkit/NaiveTypographyUl.d.ts +6 -0
- package/dist/src/components/ui/formkit/NaiveUpload.d.ts +6 -0
- package/dist/src/composables/form-fields.d.ts +1 -0
- package/dist/src/formkit.config.d.ts +11 -0
- package/dist/src/formkit.theme.d.ts +26 -0
- package/dist/style.css +1 -2
- package/package.json +5 -6
package/README.md
CHANGED
|
@@ -5,19 +5,19 @@
|
|
|
5
5
|
## 安装
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
|
|
8
|
+
pnpm i @zeng-alt/formkit-form-builder
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
本库依赖以下 peer 依赖(需要你在项目里自行安装,版本按你项目实际选择即可):
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
|
|
14
|
+
pnpm i vue naive-ui @vueuse/core
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## 样式引入
|
|
18
18
|
|
|
19
19
|
```ts
|
|
20
|
-
import 'formkit-form-builder/style.css'
|
|
20
|
+
import '@zeng-alt/formkit-form-builder/style.css'
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
## 快速开始
|
|
@@ -103,22 +103,29 @@ const config = {
|
|
|
103
103
|
}
|
|
104
104
|
```
|
|
105
105
|
|
|
106
|
+
## 示例
|
|
107
|
+
|
|
108
|
+

|
|
109
|
+

|
|
110
|
+

|
|
111
|
+
|
|
106
112
|
## 发布到 npm(公共仓库)
|
|
107
113
|
|
|
108
|
-
1
|
|
114
|
+
1. 确认 `package.json`:
|
|
115
|
+
|
|
109
116
|
- `name` 是未被占用的包名
|
|
110
117
|
- `version` 已更新(遵循 semver)
|
|
111
118
|
- `publishConfig.access = "public"`
|
|
112
119
|
- `private` 已移除
|
|
113
120
|
|
|
114
|
-
2
|
|
121
|
+
2. 安装依赖并生成构建产物:
|
|
115
122
|
|
|
116
123
|
```bash
|
|
117
124
|
pnpm install --no-frozen-lockfile
|
|
118
125
|
pnpm build
|
|
119
126
|
```
|
|
120
127
|
|
|
121
|
-
3
|
|
128
|
+
3. 登录并发布:
|
|
122
129
|
|
|
123
130
|
```bash
|
|
124
131
|
npm login
|