UNPKG

@lljj/vue2-form-core

Version:

基于 Vue 、JsonSchema快速构建一个带完整校验的form表单,vue2版本基础框架

398 lines (121 loc) 13.6 kB
# Change Log All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. # [1.19.0](https://github.com/lljj-x/vue-json-schema-form/compare/v1.18.0...v1.19.0) (2023-10-05) ### Features * **lib:** 支持配置 ui:required ([84adc7f](https://github.com/lljj-x/vue-json-schema-form/commit/84adc7ffeee9a4cb431db5a890a3f2fdc84d75a5)), closes [#175](https://github.com/lljj-x/vue-json-schema-form/issues/175) * **lib:** 添加 afterArrayOperate 配置,支持数组操作回调 ([de1068f](https://github.com/lljj-x/vue-json-schema-form/commit/de1068f0fc413a75401fc1989ff4444feb8e0178)), closes [#323](https://github.com/lljj-x/vue-json-schema-form/issues/323) # [1.18.0](https://github.com/lljj-x/vue-json-schema-form/compare/v1.17.1...v1.18.0) (2023-08-05) ### Bug Fixes * **lib:** 修复 anyOf index change 旧值不匹配不会移除的问题 ([22c658a](https://github.com/lljj-x/vue-json-schema-form/commit/22c658a14a4a4bce8b2d50635bef19738ffbd9b4)) ### Features * **lib:** vue2版本 formItem 默认支持promise 形式 ([6e48d27](https://github.com/lljj-x/vue-json-schema-form/commit/6e48d277ea3c95a36e56ac166e4c75cf7e920b3d)), closes [#316](https://github.com/lljj-x/vue-json-schema-form/issues/316) ## [1.17.1](https://github.com/lljj-x/vue-json-schema-form/compare/v1.17.0...v1.17.1) (2023-05-14) **Note:** Version bump only for package @lljj/vue2-form-core # [1.17.0](https://github.com/lljj-x/vue-json-schema-form/compare/v1.14.2...v1.17.0) (2023-05-01) ### Features * **lib:** 支持配置 formProps.popover 透传给ui组件 popover ([4c7cc51](https://github.com/lljj-x/vue-json-schema-form/commit/4c7cc51c7c094e6280b3bcd9b3164dac075de6f1)), closes [#269](https://github.com/lljj-x/vue-json-schema-form/issues/269) * 保留isMiniDes的默认逻辑 ([5496040](https://github.com/lljj-x/vue-json-schema-form/commit/5496040927653b051fa56002579b5319023be807)) * 放开miniDesc模式开关的限制 ([81d1834](https://github.com/lljj-x/vue-json-schema-form/commit/81d18347029b2df959eea701b7f198cc2cdafb83)) # [1.16.0](https://github.com/lljj-x/vue-json-schema-form/compare/v1.14.2...v1.16.0) (2023-05-01) ### Features * **lib:** 支持配置 formProps.popover 透传给ui组件 popover ([4c7cc51](https://github.com/lljj-x/vue-json-schema-form/commit/4c7cc51c7c094e6280b3bcd9b3164dac075de6f1)), closes [#269](https://github.com/lljj-x/vue-json-schema-form/issues/269) * 保留isMiniDes的默认逻辑 ([5496040](https://github.com/lljj-x/vue-json-schema-form/commit/5496040927653b051fa56002579b5319023be807)) * 放开miniDesc模式开关的限制 ([81d1834](https://github.com/lljj-x/vue-json-schema-form/commit/81d18347029b2df959eea701b7f198cc2cdafb83)) # [1.15.0](https://github.com/lljj-x/vue-json-schema-form/compare/v1.14.2...v1.15.0) (2023-05-01) ### Features * **lib:** 支持配置 formProps.popover 透传给ui组件 popover ([4c7cc51](https://github.com/lljj-x/vue-json-schema-form/commit/4c7cc51c7c094e6280b3bcd9b3164dac075de6f1)), closes [#269](https://github.com/lljj-x/vue-json-schema-form/issues/269) * 保留isMiniDes的默认逻辑 ([5496040](https://github.com/lljj-x/vue-json-schema-form/commit/5496040927653b051fa56002579b5319023be807)) * 放开miniDesc模式开关的限制 ([81d1834](https://github.com/lljj-x/vue-json-schema-form/commit/81d18347029b2df959eea701b7f198cc2cdafb83)) ## [1.14.1](https://github.com/lljj-x/vue-json-schema-form/compare/v1.14.0...v1.14.1) (2022-12-12) ### Bug Fixes * **lib:** 修复 anyOf 下schema没有重新resolve ([4678bb0](https://github.com/lljj-x/vue-json-schema-form/commit/4678bb0859cde67fd43e5f8569993d838901c34a)), closes [#247](https://github.com/lljj-x/vue-json-schema-form/issues/247) * **lib:** 修复null值 不能重新赋值问题 ([14abc97](https://github.com/lljj-x/vue-json-schema-form/commit/14abc97411f2fa1679c8727df2b094485ca17809)), closes [#245](https://github.com/lljj-x/vue-json-schema-form/issues/245) # [1.14.0](https://github.com/lljj-x/vue-json-schema-form/compare/v1.13.1...v1.14.0) (2022-08-07) ### Bug Fixes * **vue2-lib:** 修复 provide 响应式 ([d4ca316](https://github.com/lljj-x/vue-json-schema-form/commit/d4ca316c693733886626c6f9d6d7248bfa86aaa1)) # [1.13.0](https://github.com/lljj-x/vue-json-schema-form/compare/v1.12.2...v1.13.0) (2022-05-22) ### Features * **lib:** 添加 defaultSelectFirstOption 配置 ([bf17a61](https://github.com/lljj-x/vue-json-schema-form/commit/bf17a616fc000194ddda1259a708b9c52571d3fd)), closes [#171](https://github.com/lljj-x/vue-json-schema-form/issues/171) ## [1.12.2](https://github.com/lljj-x/vue-json-schema-form/compare/v1.12.1...v1.12.2) (2022-04-11) **Note:** Version bump only for package @lljj/vue2-form-core ## [1.12.1](https://github.com/lljj-x/vue-json-schema-form/compare/v1.12.0...v1.12.1) (2022-04-05) ### Bug Fixes * **lib:** anyOf onChange 参数 ([60cac99](https://github.com/lljj-x/vue-json-schema-form/commit/60cac995779c1eeb90b23f2cfeeb5deb8c350feb)), closes [#166](https://github.com/lljj-x/vue-json-schema-form/issues/166) # [1.12.0](https://github.com/lljj-x/vue-json-schema-form/compare/v1.11.0...v1.12.0) (2022-03-08) ### Features * **lib:** 优化样式 ([e53291b](https://github.com/lljj-x/vue-json-schema-form/commit/e53291b8395fdceb971f15f72c9e809cdee8ec7e)) # [1.11.0](https://github.com/lljj-x/vue-json-schema-form/compare/v1.10.0...v1.11.0) (2022-02-19) ### Bug Fixes * **lib:** 添加严格模式配置,更精准计算anyOf 默认值 ([2cd65bb](https://github.com/lljj-x/vue-json-schema-form/commit/2cd65bb5f275a021f1cc368e4c63387163c94d57)), closes [#157](https://github.com/lljj-x/vue-json-schema-form/issues/157) ### Features * **cdn:** 替换cdn链接 ([245fd2c](https://github.com/lljj-x/vue-json-schema-form/commit/245fd2c0e92d5bb4de1218a9438e64aff37551c3)) * **lib:** 阻止表单默认submit事件 ([a882181](https://github.com/lljj-x/vue-json-schema-form/commit/a882181d65a9a152f8017e55367100658464aeba)), closes [#150](https://github.com/lljj-x/vue-json-schema-form/issues/150) # [1.10.0](https://github.com/lljj-x/vue-json-schema-form/compare/v1.9.5...v1.10.0) (2021-11-28) ### Features * **lib:** 添加 $$uiFormRef 属性,可在mounted 之直接访问子组件实例 ([08c6c4f](https://github.com/lljj-x/vue-json-schema-form/commit/08c6c4f2d247b4881e88fa380de8980c31cc5cd7)), closes [#127](https://github.com/lljj-x/vue-json-schema-form/issues/127) ## [1.9.5](https://github.com/lljj-x/vue-json-schema-form/compare/v1.9.4...v1.9.5) (2021-11-21) ### Bug Fixes * **lib:** 修复inline 布局样式问题 ([65a7143](https://github.com/lljj-x/vue-json-schema-form/commit/65a7143fc19105f9096afc24a25107c0ef27ac5f)), closes [#122](https://github.com/lljj-x/vue-json-schema-form/issues/122) ## [1.9.4](https://github.com/lljj-x/vue-json-schema-form/compare/v1.9.3...v1.9.4) (2021-11-02) **Note:** Version bump only for package @lljj/vue2-form-core ## [1.9.3](https://github.com/lljj-x/vue-json-schema-form/compare/v1.9.2...v1.9.3) (2021-10-10) **Note:** Version bump only for package @lljj/vue2-form-core ## [1.9.2](https://github.com/lljj-x/vue-json-schema-form/compare/v1.9.1...v1.9.2) (2021-09-25) ### Bug Fixes * **lib:** 修复anyOf嵌套object 可能丢失部分校验规则的问题 ([5c06294](https://github.com/lljj-x/vue-json-schema-form/commit/5c06294d9a9c978bda1c3724710cfd4ba478af5b)) ## [1.9.1](https://github.com/lljj-x/vue-json-schema-form/compare/v1.9.0...v1.9.1) (2021-09-22) ### Bug Fixes * **anyof:** 新值为object类型直接覆盖 ([d2f9791](https://github.com/lljj-x/vue-json-schema-form/commit/d2f9791ce7d35228edd07257049607177a95fc84)), closes [#77](https://github.com/lljj-x/vue-json-schema-form/issues/77) * 修复select组件无法实时校验 ([85d9545](https://github.com/lljj-x/vue-json-schema-form/commit/85d95451b56b9d985ca7094118fbfaca87342322)), closes [#105](https://github.com/lljj-x/vue-json-schema-form/issues/105) # [1.9.0](https://github.com/lljj-x/vue-json-schema-form/compare/v1.7.0...v1.9.0) (2021-09-06) ### Features * **vue2:** vue2 添加 widgetListeners 配置 ([50348c2](https://github.com/lljj-x/vue-json-schema-form/commit/50348c27e72813ea16fdcfcea46e6450ccf06018)), closes [#45](https://github.com/lljj-x/vue-json-schema-form/issues/45) * **vue2-core:** 暴露 okBtnProps ([c832a07](https://github.com/lljj-x/vue-json-schema-form/commit/c832a07eab0d4174d62da42a739bfa7e1f69fa44)) # [1.8.0](https://github.com/lljj-x/vue-json-schema-form/compare/v1.7.0...v1.8.0) (2021-09-06) ### Features * **vue2:** vue2 添加 widgetListeners 配置 ([50348c2](https://github.com/lljj-x/vue-json-schema-form/commit/50348c27e72813ea16fdcfcea46e6450ccf06018)), closes [#45](https://github.com/lljj-x/vue-json-schema-form/issues/45) * **vue2-core:** 暴露 okBtnProps ([c832a07](https://github.com/lljj-x/vue-json-schema-form/commit/c832a07eab0d4174d62da42a739bfa7e1f69fa44)) # [1.7.0](https://github.com/lljj-x/vue-json-schema-form/compare/v1.6.4...v1.7.0) (2021-08-29) ### Features * **lib:** 支持配置 slots ([27f1501](https://github.com/lljj-x/vue-json-schema-form/commit/27f1501eda01eabd4a723656be56904e9cb0f069)), closes [#45](https://github.com/lljj-x/vue-json-schema-form/issues/45) ## [1.6.3](https://github.com/lljj-x/vue-json-schema-form/compare/v1.6.2...v1.6.3) (2021-07-12) **Note:** Version bump only for package @lljj/vue2-form-core ## [1.6.2](https://github.com/lljj-x/vue-json-schema-form/compare/v1.6.1...v1.6.2) (2021-05-31) **Note:** Version bump only for package @lljj/vue2-form-core # [1.6.0](https://github.com/lljj-x/vue-json-schema-form/compare/v1.5.0...v1.6.0) (2021-05-22) ### Features * **lib:** form-mounted event 添加formData 参数 ([c54202c](https://github.com/lljj-x/vue-json-schema-form/commit/c54202c27304add9636a7062c05c80c60fc200a6)) # [1.5.0](https://github.com/lljj-x/vue-json-schema-form/compare/v1.4.0...v1.5.0) (2021-05-09) ### Features * **lib:** 优化anyOf切换选项值的复用,修复vue3 anyOf无法切换选项 ([6159160](https://github.com/lljj-x/vue-json-schema-form/commit/6159160d1727165e706343187aca129360dc011f)) # [1.4.0](https://github.com/lljj-x/vue-json-schema-form/compare/v1.3.0...v1.4.0) (2021-04-22) ### Features * **lib:** 调整 widget onChange prop参数格式,添加 formData参数 ([4c441fc](https://github.com/lljj-x/vue-json-schema-form/commit/4c441fce239ade40b10a42bf361c3ee920a044ed)), closes [#45](https://github.com/lljj-x/vue-json-schema-form/issues/45) # [1.3.0](https://github.com/lljj-x/vue-json-schema-form/compare/v1.2.1...v1.3.0) (2021-04-15) ### Features * **core:** widget 节点直接配置onChange ([2d2264b](https://github.com/lljj-x/vue-json-schema-form/commit/2d2264b004c3b6586e225c563bf03ca52fc5e53a)) ## [1.2.1](https://github.com/lljj-x/vue-json-schema-form/compare/v1.2.0...v1.2.1) (2021-04-11) **Note:** Version bump only for package @lljj/vue2-form-core # [1.2.0](https://github.com/lljj-x/vue-json-schema-form/compare/v1.1.3...v1.2.0) (2021-03-30) ### Features * **lib:** 添加 fallback-label 参数 ([cd2d8c3](https://github.com/lljj-x/vue-json-schema-form/commit/cd2d8c3ed72b9bc03e44eb5b86eb1b18fe67c34c)), closes [#45](https://github.com/lljj-x/vue-json-schema-form/issues/45) ## [1.1.3](https://github.com/lljj-x/vue-json-schema-form/compare/v1.1.2...v1.1.3) (2021-03-18) **Note:** Version bump only for package @lljj/vue2-form-core ## [1.1.2](https://github.com/lljj-x/vue-json-schema-form/compare/v1.1.1...v1.1.2) (2021-03-07) ### Bug Fixes * **vue3-antd:** 修复form label 双冒号问题 ([5b4f16c](https://github.com/lljj-x/vue-json-schema-form/commit/5b4f16c3c1a4f4b784c2fd5c1fbe7eec40cf8d7b)), closes [#46](https://github.com/lljj-x/vue-json-schema-form/issues/46) # [1.1.0](https://github.com/lljj-x/vue-json-schema-form/compare/v1.0.2...v1.1.0) (2021-03-06) ### Features * **vue3-ant:** 更新初始化 ([71a2810](https://github.com/lljj-x/vue-json-schema-form/commit/71a281045af11f215333050396aa546dd5e78b88)), closes [#27](https://github.com/lljj-x/vue-json-schema-form/issues/27) [#27](https://github.com/lljj-x/vue-json-schema-form/issues/27) [#27](https://github.com/lljj-x/vue-json-schema-form/issues/27) [#40](https://github.com/lljj-x/vue-json-schema-form/issues/40) ## [1.0.2](https://github.com/lljj-x/vue-json-schema-form/compare/v1.0.1...v1.0.2) (2021-01-31) ### Bug Fixes * **style:** 修复p标签等自带边距导致的样式问题  ([7b7e43e](https://github.com/lljj-x/vue-json-schema-form/commit/7b7e43eaa06c14a436b34c38d6d69aad27d67512)) ## [0.6.1](https://github.com/lljj-x/vue-json-schema-form/compare/v0.6.0...v0.6.1) (2021-01-19) **Note:** Version bump only for package @lljj/vue2-form-core # [0.6.0](https://github.com/lljj-x/vue-json-schema-form/compare/v0.5.0...v0.6.0) (2021-01-19) ### Bug Fixes * **lib:** 修复 anyOf 类型,编辑时不能匹配正确选项 ([d747722](https://github.com/lljj-x/vue-json-schema-form/commit/d7477227d004e47c2b186c3eb956e4c83d7077ad)), closes [#31](https://github.com/lljj-x/vue-json-schema-form/issues/31) * **lib:** 解决打包后包含es6代码问题 ([f03352e](https://github.com/lljj-x/vue-json-schema-form/commit/f03352eb129c45963ad41e3e91eebe102c303913)), closes [#29](https://github.com/lljj-x/vue-json-schema-form/issues/29) ### Features * 适配 iview3 ([d4ee166](https://github.com/lljj-x/vue-json-schema-form/commit/d4ee166a7dd71bb9a840525f4eb15c4fdc97f11d))