@carefrees/form-utils-vue 0.0.9 → 0.0.11

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carefrees/form-utils-vue",
3
3
  "author": "SunLxy <1011771396@qq.com>",
4
- "version": "0.0.9",
4
+ "version": "0.0.11",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
7
7
  "module": "esm/index.mjs",
@@ -26,7 +26,7 @@
26
26
  "vue": "^3.5.13"
27
27
  },
28
28
  "dependencies": {
29
- "@carefrees/form-utils": "^0.0.9",
29
+ "@carefrees/form-utils": "^0.0.11",
30
30
  "async-validator": "~4.2.5",
31
31
  "classnames": "2.5.1"
32
32
  }
@@ -2,7 +2,7 @@
2
2
  * @description 注册组件
3
3
  */
4
4
 
5
- import { ref, toValue, watch } from 'vue';
5
+ import { Ref, ref, toValue, watch } from 'vue';
6
6
  import type { RuleItem } from 'async-validator';
7
7
  import { useFormInject } from '../useForm';
8
8
  import { useFormItem } from '../useFormItem';
@@ -29,7 +29,7 @@ export const useRegisterFormItem = (options: RegisterFormItemOptions) => {
29
29
  const { newName, newSort, parentItem } = useFormItemParentNameInject({ name, sort, isJoinParentField });
30
30
  // 注册规则
31
31
  // 注册单个实例
32
- const ruleInstance = ref(new RuleInstanceBase2());
32
+ const ruleInstance: Ref<RuleInstanceBase2> = ref<any>(new RuleInstanceBase2());
33
33
  const formItemInstance = useFormItem();
34
34
 
35
35
  watch(