@zeng-alt/formkit-form-builder 0.1.0 → 0.1.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.
Files changed (37) hide show
  1. package/README.md +13 -6
  2. package/dist/index.cjs +3 -3
  3. package/dist/index.mjs +1892 -3428
  4. package/dist/src/components/ui/button/CustomButton.d.ts +5 -0
  5. package/dist/src/components/ui/formkit/NaiveAvatar.d.ts +6 -0
  6. package/dist/src/components/ui/formkit/NaiveCascader.d.ts +6 -0
  7. package/dist/src/components/ui/formkit/NaiveCheckbox.d.ts +6 -0
  8. package/dist/src/components/ui/formkit/NaiveCheckboxGroup.d.ts +6 -0
  9. package/dist/src/components/ui/formkit/NaiveColorPicker.d.ts +6 -0
  10. package/dist/src/components/ui/formkit/NaiveDatePicker.d.ts +6 -0
  11. package/dist/src/components/ui/formkit/NaiveDivider.d.ts +6 -0
  12. package/dist/src/components/ui/formkit/NaiveMention.d.ts +6 -0
  13. package/dist/src/components/ui/formkit/NaiveNumberInput.d.ts +6 -0
  14. package/dist/src/components/ui/formkit/NaiveRadioGroup.d.ts +6 -0
  15. package/dist/src/components/ui/formkit/NaiveRate.d.ts +6 -0
  16. package/dist/src/components/ui/formkit/NaiveSelect.d.ts +6 -0
  17. package/dist/src/components/ui/formkit/NaiveSlider.d.ts +6 -0
  18. package/dist/src/components/ui/formkit/NaiveSwitch.d.ts +6 -0
  19. package/dist/src/components/ui/formkit/NaiveTextInput.d.ts +6 -0
  20. package/dist/src/components/ui/formkit/NaiveTextarea.d.ts +6 -0
  21. package/dist/src/components/ui/formkit/NaiveTimePicker.d.ts +6 -0
  22. package/dist/src/components/ui/formkit/NaiveTreeSelect.d.ts +6 -0
  23. package/dist/src/components/ui/formkit/NaiveTypographyA.d.ts +6 -0
  24. package/dist/src/components/ui/formkit/NaiveTypographyBlockquote.d.ts +6 -0
  25. package/dist/src/components/ui/formkit/NaiveTypographyHeader.d.ts +6 -0
  26. package/dist/src/components/ui/formkit/NaiveTypographyHr.d.ts +6 -0
  27. package/dist/src/components/ui/formkit/NaiveTypographyLi.d.ts +6 -0
  28. package/dist/src/components/ui/formkit/NaiveTypographyOl.d.ts +6 -0
  29. package/dist/src/components/ui/formkit/NaiveTypographyP.d.ts +6 -0
  30. package/dist/src/components/ui/formkit/NaiveTypographyText.d.ts +6 -0
  31. package/dist/src/components/ui/formkit/NaiveTypographyUl.d.ts +6 -0
  32. package/dist/src/components/ui/formkit/NaiveUpload.d.ts +6 -0
  33. package/dist/src/composables/form-fields.d.ts +1 -0
  34. package/dist/src/formkit.config.d.ts +11 -0
  35. package/dist/src/formkit.theme.d.ts +26 -0
  36. package/dist/style.css +1 -2
  37. package/package.json +5 -6
package/README.md CHANGED
@@ -5,19 +5,19 @@
5
5
  ## 安装
6
6
 
7
7
  ```bash
8
- npm i formkit-form-builder
8
+ pnpm i @zeng-alt/formkit-form-builder
9
9
  ```
10
10
 
11
11
  本库依赖以下 peer 依赖(需要你在项目里自行安装,版本按你项目实际选择即可):
12
12
 
13
13
  ```bash
14
- npm i vue @formkit/core @formkit/vue @formkit/drag-and-drop naive-ui
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
+ ![light](./img/light.png)
109
+ ![dark](./img/dark.png)
110
+ ![preview](./img/preview.png)
111
+
106
112
  ## 发布到 npm(公共仓库)
107
113
 
108
- 1) 确认 `package.json`:
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