@schemx/vue 1.0.0-next.0 → 1.0.0-next.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.
- package/README.md +135 -122
- package/dist/analyze.html +1 -1
- package/dist/components/FormItem/index.d.ts +4 -5
- package/dist/components/FormItem/index.d.ts.map +1 -1
- package/dist/components/FormItem/slot.d.ts +48 -0
- package/dist/components/FormItem/slot.d.ts.map +1 -0
- package/dist/form.d.ts.map +1 -1
- package/dist/hocs/withRemoteOptions.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +0 -2
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/provideFormConfigContext.d.ts +3 -4
- package/dist/hooks/provideFormConfigContext.d.ts.map +1 -1
- package/dist/hooks/provideFormContext.d.ts +4 -2
- package/dist/hooks/provideFormContext.d.ts.map +1 -1
- package/dist/hooks/useField.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +237 -151
- package/dist/index.mjs.map +1 -1
- package/dist/types/dictionary.d.ts +6 -3
- package/dist/types/dictionary.d.ts.map +1 -1
- package/dist/types/form.d.ts +1 -1
- package/dist/types/form.d.ts.map +1 -1
- package/dist/utils/helpers.d.ts.map +1 -1
- package/dist/utils/rendererProvider.d.ts +2 -1
- package/dist/utils/rendererProvider.d.ts.map +1 -1
- package/package.json +8 -6
- package/dist/hooks/useEffect.d.ts +0 -33
- package/dist/hooks/useEffect.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -79,7 +79,7 @@ console.log(Schemx === schemxForm) // true
|
|
|
79
79
|
|
|
80
80
|
| Prop | 类型 | 默认值 | 说明 |
|
|
81
81
|
| ------------------------ | ------------------------------------------------ | ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
|
|
82
|
-
| `schemas` | `
|
|
82
|
+
| `schemas` | `SchemxSchemasInput<T>` | `[]` | 表单 Schema;可传字段数组或 `createSchemas()` 返回的 Schema source,运行时缺省为空数组 |
|
|
83
83
|
| `modelValue` | `T` | `{}` | `v-model` 的输入端;非空值参与初始快照,后续替换会同步到内部表单,字段变化会通过 `update:modelValue` 输出 |
|
|
84
84
|
| `initialValues` | `T` | `{}` | 创建内部表单时的初始值,也是 `reset()` 的还原基准 |
|
|
85
85
|
| `form` | `SchemxInstance<T>` | `undefined` | 外部表单实例;传入后组件不再创建实例,但仍会提供 Vue 上下文并同步 `schemas`;组件级回调不会写入该实例,`v-model` 仍监听实例变化 |
|
|
@@ -699,7 +699,6 @@ componentProps: {
|
|
|
699
699
|
| `useWatchFields()` | 监听多个字段 |
|
|
700
700
|
| `useWatchAll()` | 监听整张表单 |
|
|
701
701
|
| `useDictionary()` | 管理依赖字段的函数式选项来源 |
|
|
702
|
-
| `useEffect()` | 创建字段依赖追踪 effect,并在组件 `onUnmounted` 时清理 |
|
|
703
702
|
| `useStableRef()` | 创建引用保持稳定的 `shallowRef` |
|
|
704
703
|
| `useViewSchemas()` | 把 `subscribeViewSchemas()` 桥接为 Vue `shallowRef` |
|
|
705
704
|
|
|
@@ -897,22 +896,6 @@ stop()
|
|
|
897
896
|
|
|
898
897
|
签名为 `useDictionary<TValues, TName>(options, fieldName?): UseDictionaryReturn`。它通过 `useFormContext()` 取得表单,在 `onMounted` 时按 `immediate` 决定是否加载,并通过 `useWatchFields()` 自动清理依赖订阅。完整参数、返回值、竞态边界与示例见前文 [`useDictionary`](#usedictionary),这里不重复维护第 2 份定义。
|
|
899
898
|
|
|
900
|
-
### `useEffect`
|
|
901
|
-
|
|
902
|
-
```ts
|
|
903
|
-
function useEffect(callback: EffectCallback): CreateEffectReturn
|
|
904
|
-
```
|
|
905
|
-
|
|
906
|
-
`callback` 立即执行并追踪其内读取的 Core reactive value;它可返回 cleanup,在下次重跑前或停止时执行。返回值是 dispose 函数,Hook 在组件卸载时自动调用,也可手动提前调用。它不读取表单 Context,所需实例由 callback 闭包提供。
|
|
907
|
-
|
|
908
|
-
```ts
|
|
909
|
-
import { useEffect, useFormContext } from "@schemx/vue"
|
|
910
|
-
|
|
911
|
-
const form = useFormContext<{ nickname: string }>()
|
|
912
|
-
const stop = useEffect(() => console.log(form.getFieldValue("nickname")))
|
|
913
|
-
stop()
|
|
914
|
-
```
|
|
915
|
-
|
|
916
899
|
### `useStableRef`
|
|
917
900
|
|
|
918
901
|
```ts
|
|
@@ -1082,7 +1065,6 @@ Vue 根入口自有以下公开类型:
|
|
|
1082
1065
|
| Watch | `useWatchFields` | 多字段 Vue Watch。 |
|
|
1083
1066
|
| Watch | `useWatchAll` | 全表 Vue Watch。 |
|
|
1084
1067
|
| Dictionary | `useDictionary` | 管理函数式选项源。 |
|
|
1085
|
-
| Effect | `useEffect` | 创建并自动清理 Core effect。 |
|
|
1086
1068
|
| Vue 响应式 | `useStableRef` | 建立浅比较稳定 Ref。 |
|
|
1087
1069
|
| ViewSchema | `useViewSchemas` | 桥接 ViewSchemas 为 Ref。 |
|
|
1088
1070
|
| 默认导出 | `default` | 与 `schemxForm` 严格相等。 |
|
|
@@ -1098,109 +1080,140 @@ Vue 根入口自有以下公开类型:
|
|
|
1098
1080
|
|
|
1099
1081
|
### Core 传递运行时值
|
|
1100
1082
|
|
|
1101
|
-
| 分类 | 导出 | 用途
|
|
1102
|
-
| ------------- | ------------------------------ |
|
|
1103
|
-
| 表单 | `createForm` | 创建 Core 表单。
|
|
1104
|
-
| 字段 | `createField` | 创建 Core 字段控制器。
|
|
1105
|
-
| Schema source | `createSchemas` | 创建可更新 Schema source。
|
|
1106
|
-
| Schema source | `isSchemxSchemas` | 判断 Schema source。
|
|
1107
|
-
| Effect | `
|
|
1108
|
-
|
|
|
1109
|
-
|
|
|
1110
|
-
|
|
|
1111
|
-
| 配置 | `
|
|
1112
|
-
| 配置 | `
|
|
1113
|
-
| 配置 | `
|
|
1114
|
-
| 配置 | `
|
|
1115
|
-
| 配置 | `
|
|
1116
|
-
| 配置 | `
|
|
1117
|
-
| 配置 | `
|
|
1118
|
-
|
|
|
1119
|
-
|
|
|
1120
|
-
|
|
|
1121
|
-
| Watch | `
|
|
1122
|
-
|
|
|
1123
|
-
|
|
|
1124
|
-
|
|
|
1125
|
-
|
|
|
1126
|
-
|
|
|
1127
|
-
|
|
|
1128
|
-
| Schema 守卫 | `
|
|
1129
|
-
| Schema 守卫 | `
|
|
1130
|
-
|
|
|
1131
|
-
|
|
|
1132
|
-
|
|
|
1083
|
+
| 分类 | 导出 | 用途 |
|
|
1084
|
+
| ------------- | ------------------------------ | -------------------------------------------- |
|
|
1085
|
+
| 表单 | `createForm` | 创建 Core 表单。 |
|
|
1086
|
+
| 字段 | `createField` | 创建 Core 字段控制器。 |
|
|
1087
|
+
| Schema source | `createSchemas` | 创建可更新 Schema source。 |
|
|
1088
|
+
| Schema source | `isSchemxSchemas` | 判断 Schema source。 |
|
|
1089
|
+
| Effect | `createSignalEffect` | 创建 Core signal effect。 |
|
|
1090
|
+
| Effect | `runSignalUntracked` | 在不追踪 signal 依赖的上下文中执行函数。 |
|
|
1091
|
+
| Watch | `createSignalWatch` | 监听 signal source 的变化。 |
|
|
1092
|
+
| Watch | `createDebouncedSignalWatch` | 监听 signal source,并提供 debounce 控制器。 |
|
|
1093
|
+
| 配置 | `configureSchemx` | 设置 Core 模块级默认配置。 |
|
|
1094
|
+
| 配置 | `getGlobalSchemxConfig` | 读取 Core 模块级默认配置。 |
|
|
1095
|
+
| 配置 | `mergeSchemxConfig` | 按优先级纯合并配置。 |
|
|
1096
|
+
| 配置 | `resolveSchemxConfig` | 补齐 `schemaConfig` 默认值。 |
|
|
1097
|
+
| 配置 | `mergeAndResolveSchemxConfig` | 合并配置并补齐默认值。 |
|
|
1098
|
+
| 配置 | `defaultSchemxConfig` | Core 内置字段默认值。 |
|
|
1099
|
+
| 配置 | `defaultSchemxConfigKeys` | 当前默认配置 key 集合。 |
|
|
1100
|
+
| 配置 | `excludeSchemxConfigKeys` | 不参与字段默认配置的 key。 |
|
|
1101
|
+
| 配置 | `schemaConfigKeys` | 兼容旧命名的默认配置 key。 |
|
|
1102
|
+
| 配置 | `excludeSchemaConfigKeys` | 兼容旧命名的排除 key。 |
|
|
1103
|
+
| Watch | `createWatch` | 分发 Core Watch。 |
|
|
1104
|
+
| Watch | `createWatchField` | 单字段 Core Watch。 |
|
|
1105
|
+
| Watch | `createWatchFields` | 多字段 Core Watch。 |
|
|
1106
|
+
| Watch | `createWatchAll` | 全表 Core Watch。 |
|
|
1107
|
+
| Registry | `createRendererRegistry` | 创建 Renderer Registry。 |
|
|
1108
|
+
| Registry | `createValidationRuleRegistry` | 创建 ValidationRuleRegistry。 |
|
|
1109
|
+
| Validator | `createValidator` | 创建底层 Validator。 |
|
|
1110
|
+
| Schema 守卫 | `isBaseSchema` | 判断原始普通字段。 |
|
|
1111
|
+
| Schema 守卫 | `isGroupSchema` | 判断原始 Group。 |
|
|
1112
|
+
| Schema 守卫 | `isDependencySchema` | 判断原始 Dependency。 |
|
|
1113
|
+
| Schema 守卫 | `isBaseResolvedSchema` | 判断解析后普通字段。 |
|
|
1114
|
+
| Schema 守卫 | `isGroupResolvedSchema` | 判断解析后 Group。 |
|
|
1115
|
+
| 路径 | `getByPath` | 读取嵌套路径。 |
|
|
1116
|
+
| 路径 | `setByPath` | 写入嵌套路径。 |
|
|
1117
|
+
| 路径 | `collectObjectPathsByLeaf` | 收集叶子路径。 |
|
|
1133
1118
|
|
|
1134
1119
|
### Core 传递类型
|
|
1135
1120
|
|
|
1136
|
-
| 分类 | 导出
|
|
1137
|
-
| ------------------ |
|
|
1138
|
-
| Effect | `
|
|
1139
|
-
| Effect | `
|
|
1140
|
-
|
|
|
1141
|
-
| Watch | `
|
|
1142
|
-
| Watch | `
|
|
1143
|
-
| Watch | `
|
|
1144
|
-
| Watch | `
|
|
1145
|
-
| Watch | `
|
|
1146
|
-
|
|
|
1147
|
-
|
|
|
1148
|
-
| 表单 | `
|
|
1149
|
-
| 表单 | `
|
|
1150
|
-
| 表单 | `
|
|
1151
|
-
| 表单 | `
|
|
1152
|
-
| 表单 | `
|
|
1153
|
-
| 表单 | `
|
|
1154
|
-
| 表单 | `
|
|
1155
|
-
|
|
|
1156
|
-
|
|
|
1157
|
-
|
|
|
1158
|
-
|
|
|
1159
|
-
|
|
|
1160
|
-
|
|
|
1161
|
-
|
|
|
1162
|
-
|
|
|
1163
|
-
| Schema source | `
|
|
1164
|
-
|
|
|
1165
|
-
| Schema
|
|
1166
|
-
|
|
|
1167
|
-
| Schema | `
|
|
1168
|
-
| Schema | `
|
|
1169
|
-
| Schema | `
|
|
1170
|
-
| Schema | `
|
|
1171
|
-
| Schema | `
|
|
1172
|
-
| Schema | `
|
|
1173
|
-
| Schema | `
|
|
1174
|
-
|
|
|
1175
|
-
|
|
|
1176
|
-
|
|
|
1177
|
-
|
|
|
1178
|
-
|
|
|
1179
|
-
| 依赖 | `
|
|
1180
|
-
|
|
|
1181
|
-
|
|
|
1182
|
-
|
|
|
1183
|
-
|
|
|
1184
|
-
|
|
|
1185
|
-
|
|
|
1186
|
-
|
|
|
1187
|
-
|
|
|
1188
|
-
|
|
|
1189
|
-
|
|
|
1190
|
-
|
|
|
1191
|
-
|
|
|
1192
|
-
|
|
|
1193
|
-
|
|
|
1194
|
-
|
|
|
1195
|
-
|
|
|
1196
|
-
|
|
|
1197
|
-
|
|
|
1198
|
-
|
|
|
1199
|
-
|
|
|
1200
|
-
|
|
|
1201
|
-
|
|
|
1202
|
-
|
|
|
1203
|
-
| Validator
|
|
1204
|
-
| Validator
|
|
1205
|
-
| Validator
|
|
1206
|
-
| Validator
|
|
1121
|
+
| 分类 | 导出 | 用途 |
|
|
1122
|
+
| ------------------ | -------------------------------- | ----------------------------------------- |
|
|
1123
|
+
| Effect | `SignalEffectOptions` | signal effect 配置。 |
|
|
1124
|
+
| Effect | `SignalEffectDispose` | signal effect 的 dispose 函数类型。 |
|
|
1125
|
+
| Watch | `SignalWatchOptions` | signal watch 配置。 |
|
|
1126
|
+
| Watch | `DebouncedSignalWatchOptions` | 带 debounce 的 signal watch 配置。 |
|
|
1127
|
+
| Watch | `DebouncedSignalWatchControls` | 带 debounce 的 signal watch 控制器。 |
|
|
1128
|
+
| Watch | `CreateWatchOptions` | Watch 选项。 |
|
|
1129
|
+
| Watch | `CreateWatchReturn` | Watch 取消函数。 |
|
|
1130
|
+
| Watch | `WatchFieldCallback` | 单字段 Watch callback。 |
|
|
1131
|
+
| Watch | `WatchFieldsCallback` | 多字段 Watch callback。 |
|
|
1132
|
+
| Watch | `WatchAllCallback` | 全表 Watch callback。 |
|
|
1133
|
+
| 表单 | `CreateFormOptions` | Core 表单创建选项。 |
|
|
1134
|
+
| 表单 | `FormSchemaOptions` | Schema、初始值和 `schemaConfig` 配置。 |
|
|
1135
|
+
| 表单 | `FormRegistryOptions` | Renderer、Rule Registry 和 adapter 配置。 |
|
|
1136
|
+
| 表单 | `FormCallbackOptions` | 提交、值变化和规则错误回调。 |
|
|
1137
|
+
| 表单 | `FormLifecycleOptions` | Runtime 生命周期钩子。 |
|
|
1138
|
+
| 表单 | `ResolvedCreateFormOptions` | 已归一化的 Form 创建配置。 |
|
|
1139
|
+
| 表单 | `SchemxInstance` | Core 表单实例接口。 |
|
|
1140
|
+
| 表单 | `SchemxGlobalContext` | Core 全局字段默认配置。 |
|
|
1141
|
+
| Validator | `CreateValidatorOptions` | 规则执行异常回调配置。 |
|
|
1142
|
+
| 基础 | `Values` | 表单值基础约束。 |
|
|
1143
|
+
| 基础 | `Dynamic` | 静态值或同步 / 异步值函数。 |
|
|
1144
|
+
| 路径 | `NamePath` | 类型安全字段路径。 |
|
|
1145
|
+
| 路径 | `FieldValue` | 从路径提取字段值。 |
|
|
1146
|
+
| 工具类型 | `DeepReadonly` | 深层只读类型。 |
|
|
1147
|
+
| 工具类型 | `CSSProperties` | CSS 属性类型。 |
|
|
1148
|
+
| Schema source | `SchemxSchemas` | 可更新 Schema source。 |
|
|
1149
|
+
| Schema source | `SchemxSchemasInput` | Schema 数组或 source 联合。 |
|
|
1150
|
+
| Schema source | `SchemxSchemasListener` | Schema source listener。 |
|
|
1151
|
+
| 字段 | `SchemxFieldInstance` | Core 字段控制器。 |
|
|
1152
|
+
| Schema | `SchemxBase` | 普通字段基础接口。 |
|
|
1153
|
+
| Schema | `SchemxBaseField` | 按 Renderer key 分布的字段联合。 |
|
|
1154
|
+
| Schema | `SchemxExactBaseField` | 保留具体 Renderer key 的字段类型。 |
|
|
1155
|
+
| Schema | `SchemxGroupField` | 原始 Group Schema。 |
|
|
1156
|
+
| Schema | `SchemxDependencyField` | 原始 Dependency Schema。 |
|
|
1157
|
+
| Schema | `SchemxField` | 全部原始 Schema 联合。 |
|
|
1158
|
+
| Schema | `SchemxResolvedField` | 解析后字段 / Group 联合。 |
|
|
1159
|
+
| Schema | `SchemxBaseComponentProps` | Renderer 公共 Props。 |
|
|
1160
|
+
| Schema | `SchemxComponentProps` | Renderer 专属与公共 Props。 |
|
|
1161
|
+
| Schema | `SchemxFormItemProps` | 表单项字段配置。 |
|
|
1162
|
+
| 扩展 | `SchemxFieldDefinition` | 普通字段声明合并接口。 |
|
|
1163
|
+
| 扩展 | `SchemxGroupFieldDefinition` | Group 声明合并接口。 |
|
|
1164
|
+
| 依赖 | `SchemxDependencies` | 字段动态依赖配置。 |
|
|
1165
|
+
| 依赖 | `SchemxFieldDependencies` | 普通字段的动态属性与触发字段配置。 |
|
|
1166
|
+
| 依赖 | `SchemxGroupDependencies` | Group 容器的动态状态配置。 |
|
|
1167
|
+
| 依赖 | `SchemxDependencyDependencies` | Dependency 容器的动态状态配置。 |
|
|
1168
|
+
| 依赖 | `SchemxContainerDependencies` | Group/Dependency 容器动态状态配置。 |
|
|
1169
|
+
| 依赖 | `SchemxConditionFn` | 动态属性条件函数。 |
|
|
1170
|
+
| 依赖 | `SchemxDependenciesStaticProps` | 依赖函数静态返回值映射。 |
|
|
1171
|
+
| ViewSchema | `SchemxViewDebugMeta` | ViewSchema 诊断元数据。 |
|
|
1172
|
+
| ViewSchema | `SchemxViewFieldSchema` | 字段渲染投影。 |
|
|
1173
|
+
| ViewSchema | `SchemxViewGroupSchema` | Group 渲染投影。 |
|
|
1174
|
+
| ViewSchema | `SchemxViewSchema` | 字段 / Group 投影联合。 |
|
|
1175
|
+
| 配置 | `MergedSchemxConfig` | 已合并且补齐 `schemaConfig` 默认值。 |
|
|
1176
|
+
| 配置 | `SchemxConfig` | Core 模块级和 Form/App 可继承配置。 |
|
|
1177
|
+
| 配置 | `SchemxSchemaConfig` | 表单级字段默认展示与校验配置。 |
|
|
1178
|
+
| 配置 | `SchemxConfigKey` | 当前默认配置 key 类型。 |
|
|
1179
|
+
| 配置 | `ExcludeSchemxConfigKeys` | 排除配置 key 类型。 |
|
|
1180
|
+
| Renderer | `SchemxRendererKey` | Renderer key 类型。 |
|
|
1181
|
+
| Renderer | `SchemxRendererDefinition` | Renderer Props 声明合并接口。 |
|
|
1182
|
+
| Renderer Registry | `RendererRegistry` | Renderer Registry 实例类型。 |
|
|
1183
|
+
| Renderer Registry | `RegistryOptions` | 注册覆盖选项(renderer 与 rule 共享)。 |
|
|
1184
|
+
| Renderer Registry | `RendererMap` | Renderer 批量映射。 |
|
|
1185
|
+
| Validator | `Validator` | 底层 Validator 实例类型。 |
|
|
1186
|
+
| Validator | `ValidationRule` | 原生规则接口。 |
|
|
1187
|
+
| Validator | `ValidationRuleContext` | 原生规则执行上下文。 |
|
|
1188
|
+
| Validator | `ValidationRuleIssue` | 单条规则产生的问题。 |
|
|
1189
|
+
| Validator | `ValidationRuleResult` | 单条规则执行结果。 |
|
|
1190
|
+
| Validator | `ValidationResult` | 校验成功 / 失败联合。 |
|
|
1191
|
+
| Validator | `ValidationSuccess` | 校验成功结果。 |
|
|
1192
|
+
| Validator | `ValidationFailure` | 普通校验失败结果。 |
|
|
1193
|
+
| Validator | `ValidationCancelled` | 被更新校验或销毁操作中止的结果。 |
|
|
1194
|
+
| Validator | `ValidationError` | 校验失败详情。 |
|
|
1195
|
+
| Validator | `FieldValidationError` | 单字段错误。 |
|
|
1196
|
+
| Validator | `FormValidationError` | 表单级错误。 |
|
|
1197
|
+
| Validator | `AdapterRule` | 第三方 adapter 创建的品牌规则。 |
|
|
1198
|
+
| Validator | `ValidationAdapterRule` | adapter 接收的第三方规则输入类型。 |
|
|
1199
|
+
| Validator | `ValidationAdapterID` | adapter 的唯一标识类型。 |
|
|
1200
|
+
| Validator | `ValidationAdapterV1` | 第三方校验 adapter 协议。 |
|
|
1201
|
+
| Validator | `ValidationAdapter` | `ValidationAdapterV1` 的兼容别名。 |
|
|
1202
|
+
| Validator | `ValidationAdapterRegistration` | adapter 注册及覆盖选项。 |
|
|
1203
|
+
| Validator | `ValidationAdapterOption` | adapter 或带覆盖选项的注册项。 |
|
|
1204
|
+
| Validator | `ValidationTrigger` | 校验触发时机。 |
|
|
1205
|
+
| Validator | `StandardSchemaV1` | Standard Schema v1 协议。 |
|
|
1206
|
+
| Rule | `ValidationRuleDefinition` | 自定义规则声明合并接口。 |
|
|
1207
|
+
| Rule | `ValidationRuleName` | 声明合并推导的规则 key。 |
|
|
1208
|
+
| Rule | `RequiredOptions` | 必填消息与空值判断配置。 |
|
|
1209
|
+
| Rule | `RequiredRule` | 布尔必填开关或必填配置对象。 |
|
|
1210
|
+
| Rule | `DefinedFieldValue` | 从表单值和路径提取已定义字段值。 |
|
|
1211
|
+
| Rule | `FieldRule` | 单个字段规则联合类型。 |
|
|
1212
|
+
| Rule | `FieldRules` | Standard Schema、内置或自定义规则。 |
|
|
1213
|
+
| Validator Registry | `ValidationRuleRegistry` | ValidationRuleRegistry 实例类型。 |
|
|
1214
|
+
| Validator Registry | `ValidationRuleFactoryContext` | 规则工厂接收的字段上下文。 |
|
|
1215
|
+
| Validator Registry | `ValidationRuleFactory` | 按字段 Schema 生成规则的工厂。 |
|
|
1216
|
+
| Validator Registry | `ValidationRuleEntry` | Standard Schema 或工厂联合。 |
|
|
1217
|
+
| Validator Registry | `ValidationRuleMap` | 规则名到条目的批量映射。 |
|
|
1218
|
+
| Validator Registry | `ValidationRuleRegistryChange` | Registry 变更事件。 |
|
|
1219
|
+
| Validator Registry | `ValidationRuleRegistryListener` | Registry 变更监听器。 |
|
package/dist/analyze.html
CHANGED
|
@@ -4929,7 +4929,7 @@ var drawChart = (function (exports) {
|
|
|
4929
4929
|
</script>
|
|
4930
4930
|
<script>
|
|
4931
4931
|
/*<!--*/
|
|
4932
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.cjs","children":[{"name":"src","children":[{"name":"styles/index.css","uid":"ad488fe2-1"},{"name":"config/appConfig.ts","uid":"ad488fe2-3"},{"name":"utils","children":[{"uid":"ad488fe2-5","name":"rendererProvider.ts"},{"uid":"ad488fe2-7","name":"rulesProvider.ts"},{"uid":"ad488fe2-25","name":"equal.ts"},{"uid":"ad488fe2-31","name":"validation.ts"},{"uid":"ad488fe2-33","name":"slot.ts"},{"uid":"ad488fe2-39","name":"helpers.ts"}]},{"name":"hooks","children":[{"uid":"ad488fe2-9","name":"useForm.ts"},{"uid":"ad488fe2-11","name":"provideFormContext.ts"},{"uid":"ad488fe2-13","name":"useField.ts"},{"uid":"ad488fe2-15","name":"provideFieldContext.ts"},{"uid":"ad488fe2-17","name":"useWatch.ts"},{"uid":"ad488fe2-19","name":"useEffect.ts"},{"uid":"ad488fe2-21","name":"useDictionary.ts"},{"uid":"ad488fe2-23","name":"provideFormConfigContext.ts"},{"uid":"ad488fe2-27","name":"useStableRef.ts"},{"uid":"ad488fe2-29","name":"useViewSchemas.ts"}]},{"name":"components","children":[{"name":"FormGroup/index.tsx","uid":"ad488fe2-35"},{"name":"FormItem/index.tsx","uid":"ad488fe2-37"}]},{"uid":"ad488fe2-41","name":"form.vue?vue&type=script&setup=true&lang.ts"},{"uid":"ad488fe2-43","name":"form.ts"},{"name":"hocs/withRemoteOptions.ts","uid":"ad488fe2-45"},{"uid":"ad488fe2-47","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"ad488fe2-1":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"ad488fe2-0"},"ad488fe2-3":{"renderedLength":957,"gzipLength":384,"brotliLength":326,"metaUid":"ad488fe2-2"},"ad488fe2-5":{"renderedLength":62,"gzipLength":69,"brotliLength":49,"metaUid":"ad488fe2-4"},"ad488fe2-7":{"renderedLength":67,"gzipLength":68,"brotliLength":53,"metaUid":"ad488fe2-6"},"ad488fe2-9":{"renderedLength":828,"gzipLength":327,"brotliLength":291,"metaUid":"ad488fe2-8"},"ad488fe2-11":{"renderedLength":468,"gzipLength":280,"brotliLength":223,"metaUid":"ad488fe2-10"},"ad488fe2-13":{"renderedLength":1600,"gzipLength":561,"brotliLength":498,"metaUid":"ad488fe2-12"},"ad488fe2-15":{"renderedLength":410,"gzipLength":249,"brotliLength":198,"metaUid":"ad488fe2-14"},"ad488fe2-17":{"renderedLength":551,"gzipLength":219,"brotliLength":186,"metaUid":"ad488fe2-16"},"ad488fe2-19":{"renderedLength":125,"gzipLength":112,"brotliLength":90,"metaUid":"ad488fe2-18"},"ad488fe2-21":{"renderedLength":2859,"gzipLength":951,"brotliLength":813,"metaUid":"ad488fe2-20"},"ad488fe2-23":{"renderedLength":483,"gzipLength":288,"brotliLength":239,"metaUid":"ad488fe2-22"},"ad488fe2-25":{"renderedLength":202,"gzipLength":154,"brotliLength":120,"metaUid":"ad488fe2-24"},"ad488fe2-27":{"renderedLength":240,"gzipLength":168,"brotliLength":143,"metaUid":"ad488fe2-26"},"ad488fe2-29":{"renderedLength":269,"gzipLength":168,"brotliLength":140,"metaUid":"ad488fe2-28"},"ad488fe2-31":{"renderedLength":768,"gzipLength":322,"brotliLength":262,"metaUid":"ad488fe2-30"},"ad488fe2-33":{"renderedLength":1262,"gzipLength":486,"brotliLength":401,"metaUid":"ad488fe2-32"},"ad488fe2-35":{"renderedLength":3693,"gzipLength":1322,"brotliLength":1121,"metaUid":"ad488fe2-34"},"ad488fe2-37":{"renderedLength":7570,"gzipLength":2469,"brotliLength":2052,"metaUid":"ad488fe2-36"},"ad488fe2-39":{"renderedLength":1118,"gzipLength":397,"brotliLength":337,"metaUid":"ad488fe2-38"},"ad488fe2-41":{"renderedLength":4580,"gzipLength":1471,"brotliLength":1291,"metaUid":"ad488fe2-40"},"ad488fe2-43":{"renderedLength":327,"gzipLength":254,"brotliLength":193,"metaUid":"ad488fe2-42"},"ad488fe2-45":{"renderedLength":923,"gzipLength":408,"brotliLength":349,"metaUid":"ad488fe2-44"},"ad488fe2-47":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"ad488fe2-46"}},"nodeMetas":{"ad488fe2-0":{"id":"/src/styles/index.css","moduleParts":{"index.cjs":"ad488fe2-1"},"imported":[],"importedBy":[{"uid":"ad488fe2-46"},{"uid":"ad488fe2-40"}]},"ad488fe2-2":{"id":"/src/config/appConfig.ts","moduleParts":{"index.cjs":"ad488fe2-3"},"imported":[{"uid":"ad488fe2-54"}],"importedBy":[{"uid":"ad488fe2-53"}]},"ad488fe2-4":{"id":"/src/utils/rendererProvider.ts","moduleParts":{"index.cjs":"ad488fe2-5"},"imported":[{"uid":"ad488fe2-50"}],"importedBy":[{"uid":"ad488fe2-46"},{"uid":"ad488fe2-8"}]},"ad488fe2-6":{"id":"/src/utils/rulesProvider.ts","moduleParts":{"index.cjs":"ad488fe2-7"},"imported":[{"uid":"ad488fe2-50"}],"importedBy":[{"uid":"ad488fe2-46"},{"uid":"ad488fe2-8"}]},"ad488fe2-8":{"id":"/src/hooks/useForm.ts","moduleParts":{"index.cjs":"ad488fe2-9"},"imported":[{"uid":"ad488fe2-54"},{"uid":"ad488fe2-50"},{"uid":"ad488fe2-53"},{"uid":"ad488fe2-4"},{"uid":"ad488fe2-6"}],"importedBy":[{"uid":"ad488fe2-48"}]},"ad488fe2-10":{"id":"/src/hooks/provideFormContext.ts","moduleParts":{"index.cjs":"ad488fe2-11"},"imported":[{"uid":"ad488fe2-54"}],"importedBy":[{"uid":"ad488fe2-48"},{"uid":"ad488fe2-12"},{"uid":"ad488fe2-16"},{"uid":"ad488fe2-20"}]},"ad488fe2-12":{"id":"/src/hooks/useField.ts","moduleParts":{"index.cjs":"ad488fe2-13"},"imported":[{"uid":"ad488fe2-54"},{"uid":"ad488fe2-50"},{"uid":"ad488fe2-10"}],"importedBy":[{"uid":"ad488fe2-48"}]},"ad488fe2-14":{"id":"/src/hooks/provideFieldContext.ts","moduleParts":{"index.cjs":"ad488fe2-15"},"imported":[{"uid":"ad488fe2-54"}],"importedBy":[{"uid":"ad488fe2-48"},{"uid":"ad488fe2-44"}]},"ad488fe2-16":{"id":"/src/hooks/useWatch.ts","moduleParts":{"index.cjs":"ad488fe2-17"},"imported":[{"uid":"ad488fe2-54"},{"uid":"ad488fe2-50"},{"uid":"ad488fe2-10"}],"importedBy":[{"uid":"ad488fe2-48"},{"uid":"ad488fe2-20"}]},"ad488fe2-18":{"id":"/src/hooks/useEffect.ts","moduleParts":{"index.cjs":"ad488fe2-19"},"imported":[{"uid":"ad488fe2-54"},{"uid":"ad488fe2-50"}],"importedBy":[{"uid":"ad488fe2-48"}]},"ad488fe2-20":{"id":"/src/hooks/useDictionary.ts","moduleParts":{"index.cjs":"ad488fe2-21"},"imported":[{"uid":"ad488fe2-54"},{"uid":"ad488fe2-10"},{"uid":"ad488fe2-16"}],"importedBy":[{"uid":"ad488fe2-48"},{"uid":"ad488fe2-44"}]},"ad488fe2-22":{"id":"/src/hooks/provideFormConfigContext.ts","moduleParts":{"index.cjs":"ad488fe2-23"},"imported":[{"uid":"ad488fe2-54"}],"importedBy":[{"uid":"ad488fe2-48"}]},"ad488fe2-24":{"id":"/src/utils/equal.ts","moduleParts":{"index.cjs":"ad488fe2-25"},"imported":[],"importedBy":[{"uid":"ad488fe2-26"}]},"ad488fe2-26":{"id":"/src/hooks/useStableRef.ts","moduleParts":{"index.cjs":"ad488fe2-27"},"imported":[{"uid":"ad488fe2-54"},{"uid":"ad488fe2-24"}],"importedBy":[{"uid":"ad488fe2-48"}]},"ad488fe2-28":{"id":"/src/hooks/useViewSchemas.ts","moduleParts":{"index.cjs":"ad488fe2-29"},"imported":[{"uid":"ad488fe2-54"}],"importedBy":[{"uid":"ad488fe2-48"}]},"ad488fe2-30":{"id":"/src/utils/validation.ts","moduleParts":{"index.cjs":"ad488fe2-31"},"imported":[],"importedBy":[{"uid":"ad488fe2-56"}]},"ad488fe2-32":{"id":"/src/utils/slot.ts","moduleParts":{"index.cjs":"ad488fe2-33"},"imported":[],"importedBy":[{"uid":"ad488fe2-56"}]},"ad488fe2-34":{"id":"/src/components/FormGroup/index.tsx","moduleParts":{"index.cjs":"ad488fe2-35"},"imported":[{"uid":"ad488fe2-54"},{"uid":"ad488fe2-55"},{"uid":"ad488fe2-36"}],"importedBy":[{"uid":"ad488fe2-46"},{"uid":"ad488fe2-36"}]},"ad488fe2-36":{"id":"/src/components/FormItem/index.tsx","moduleParts":{"index.cjs":"ad488fe2-37"},"imported":[{"uid":"ad488fe2-54"},{"uid":"ad488fe2-55"},{"uid":"ad488fe2-48"},{"uid":"ad488fe2-56"},{"uid":"ad488fe2-34"}],"importedBy":[{"uid":"ad488fe2-46"},{"uid":"ad488fe2-42"},{"uid":"ad488fe2-34"},{"uid":"ad488fe2-40"}]},"ad488fe2-38":{"id":"/src/utils/helpers.ts","moduleParts":{"index.cjs":"ad488fe2-39"},"imported":[],"importedBy":[{"uid":"ad488fe2-40"}]},"ad488fe2-40":{"id":"/src/form.vue?vue&type=script&setup=true&lang.ts","moduleParts":{"index.cjs":"ad488fe2-41"},"imported":[{"uid":"ad488fe2-54"},{"uid":"ad488fe2-50"},{"uid":"ad488fe2-63"},{"uid":"ad488fe2-36"},{"uid":"ad488fe2-48"},{"uid":"ad488fe2-38"},{"uid":"ad488fe2-0"}],"importedBy":[{"uid":"ad488fe2-60"}]},"ad488fe2-42":{"id":"/src/form.ts","moduleParts":{"index.cjs":"ad488fe2-43"},"imported":[{"uid":"ad488fe2-36"},{"uid":"ad488fe2-52"},{"uid":"ad488fe2-53"}],"importedBy":[{"uid":"ad488fe2-46"}]},"ad488fe2-44":{"id":"/src/hocs/withRemoteOptions.ts","moduleParts":{"index.cjs":"ad488fe2-45"},"imported":[{"uid":"ad488fe2-54"},{"uid":"ad488fe2-14"},{"uid":"ad488fe2-20"}],"importedBy":[{"uid":"ad488fe2-49"}]},"ad488fe2-46":{"id":"/src/index.ts","moduleParts":{"index.cjs":"ad488fe2-47"},"imported":[{"uid":"ad488fe2-0"},{"uid":"ad488fe2-42"},{"uid":"ad488fe2-4"},{"uid":"ad488fe2-6"},{"uid":"ad488fe2-48"},{"uid":"ad488fe2-49"},{"uid":"ad488fe2-36"},{"uid":"ad488fe2-34"},{"uid":"ad488fe2-50"},{"uid":"ad488fe2-51"}],"importedBy":[],"isEntry":true},"ad488fe2-48":{"id":"/src/hooks/index.ts","moduleParts":{},"imported":[{"uid":"ad488fe2-8"},{"uid":"ad488fe2-10"},{"uid":"ad488fe2-12"},{"uid":"ad488fe2-14"},{"uid":"ad488fe2-16"},{"uid":"ad488fe2-18"},{"uid":"ad488fe2-20"},{"uid":"ad488fe2-22"},{"uid":"ad488fe2-26"},{"uid":"ad488fe2-28"}],"importedBy":[{"uid":"ad488fe2-46"},{"uid":"ad488fe2-36"},{"uid":"ad488fe2-40"}]},"ad488fe2-49":{"id":"/src/hocs/index.ts","moduleParts":{},"imported":[{"uid":"ad488fe2-44"}],"importedBy":[{"uid":"ad488fe2-46"}]},"ad488fe2-50":{"id":"@schemx/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"ad488fe2-46"},{"uid":"ad488fe2-4"},{"uid":"ad488fe2-6"},{"uid":"ad488fe2-8"},{"uid":"ad488fe2-12"},{"uid":"ad488fe2-16"},{"uid":"ad488fe2-18"},{"uid":"ad488fe2-40"}],"isExternal":true},"ad488fe2-51":{"id":"/src/types/index.ts","moduleParts":{},"imported":[{"uid":"ad488fe2-57"},{"uid":"ad488fe2-58"},{"uid":"ad488fe2-59"}],"importedBy":[{"uid":"ad488fe2-46"}]},"ad488fe2-52":{"id":"/src/formRuntime.js","moduleParts":{},"imported":[{"uid":"ad488fe2-60"}],"importedBy":[{"uid":"ad488fe2-42"}]},"ad488fe2-53":{"id":"/src/config/index.ts","moduleParts":{},"imported":[{"uid":"ad488fe2-2"}],"importedBy":[{"uid":"ad488fe2-42"},{"uid":"ad488fe2-8"}]},"ad488fe2-54":{"id":"vue","moduleParts":{},"imported":[],"importedBy":[{"uid":"ad488fe2-36"},{"uid":"ad488fe2-34"},{"uid":"ad488fe2-8"},{"uid":"ad488fe2-10"},{"uid":"ad488fe2-12"},{"uid":"ad488fe2-14"},{"uid":"ad488fe2-16"},{"uid":"ad488fe2-18"},{"uid":"ad488fe2-20"},{"uid":"ad488fe2-22"},{"uid":"ad488fe2-26"},{"uid":"ad488fe2-28"},{"uid":"ad488fe2-44"},{"uid":"ad488fe2-2"},{"uid":"ad488fe2-40"}],"isExternal":true},"ad488fe2-55":{"id":"classnames","moduleParts":{},"imported":[],"importedBy":[{"uid":"ad488fe2-36"},{"uid":"ad488fe2-34"}],"isExternal":true},"ad488fe2-56":{"id":"/src/utils/index.ts","moduleParts":{},"imported":[{"uid":"ad488fe2-61"},{"uid":"ad488fe2-30"},{"uid":"ad488fe2-32"},{"uid":"ad488fe2-62"}],"importedBy":[{"uid":"ad488fe2-36"}]},"ad488fe2-57":{"id":"/src/types/dictionary.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"ad488fe2-51"}]},"ad488fe2-58":{"id":"/src/types/form.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"ad488fe2-51"}]},"ad488fe2-59":{"id":"/src/types/field.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"ad488fe2-51"}]},"ad488fe2-60":{"id":"/src/form.vue","moduleParts":{},"imported":[{"uid":"ad488fe2-40"}],"importedBy":[{"uid":"ad488fe2-52"}]},"ad488fe2-61":{"id":"/src/utils/dynamic.ts","moduleParts":{},"imported":[{"uid":"ad488fe2-63"}],"importedBy":[{"uid":"ad488fe2-56"}]},"ad488fe2-62":{"id":"/src/utils/diff.ts","moduleParts":{},"imported":[{"uid":"ad488fe2-64"}],"importedBy":[{"uid":"ad488fe2-56"}]},"ad488fe2-63":{"id":"es-toolkit","moduleParts":{},"imported":[],"importedBy":[{"uid":"ad488fe2-61"},{"uid":"ad488fe2-40"}],"isExternal":true},"ad488fe2-64":{"id":"es-toolkit/compat","moduleParts":{},"imported":[],"importedBy":[{"uid":"ad488fe2-62"}],"isExternal":true}},"env":{"rollup":"4.62.2"},"options":{"gzip":true,"brotli":true,"sourcemap":false}};
|
|
4932
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.cjs","children":[{"name":"src","children":[{"name":"styles/index.css","uid":"59ce7164-1"},{"name":"config/appConfig.ts","uid":"59ce7164-3"},{"name":"utils","children":[{"uid":"59ce7164-5","name":"rendererProvider.ts"},{"uid":"59ce7164-7","name":"rulesProvider.ts"},{"uid":"59ce7164-23","name":"equal.ts"},{"uid":"59ce7164-29","name":"validation.ts"},{"uid":"59ce7164-31","name":"slot.ts"},{"uid":"59ce7164-39","name":"helpers.ts"}]},{"name":"hooks","children":[{"uid":"59ce7164-9","name":"useForm.ts"},{"uid":"59ce7164-11","name":"provideFormContext.ts"},{"uid":"59ce7164-13","name":"useField.ts"},{"uid":"59ce7164-15","name":"provideFieldContext.ts"},{"uid":"59ce7164-17","name":"useWatch.ts"},{"uid":"59ce7164-19","name":"useDictionary.ts"},{"uid":"59ce7164-21","name":"provideFormConfigContext.ts"},{"uid":"59ce7164-25","name":"useStableRef.ts"},{"uid":"59ce7164-27","name":"useViewSchemas.ts"}]},{"name":"components","children":[{"name":"FormGroup/index.tsx","uid":"59ce7164-33"},{"name":"FormItem","children":[{"uid":"59ce7164-35","name":"slot.tsx"},{"uid":"59ce7164-37","name":"index.tsx"}]}]},{"uid":"59ce7164-41","name":"form.vue?vue&type=script&setup=true&lang.ts"},{"uid":"59ce7164-43","name":"form.ts"},{"name":"hocs/withRemoteOptions.ts","uid":"59ce7164-45"},{"uid":"59ce7164-47","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"59ce7164-1":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"59ce7164-0"},"59ce7164-3":{"renderedLength":957,"gzipLength":384,"brotliLength":326,"metaUid":"59ce7164-2"},"59ce7164-5":{"renderedLength":65,"gzipLength":72,"brotliLength":52,"metaUid":"59ce7164-4"},"59ce7164-7":{"renderedLength":67,"gzipLength":68,"brotliLength":53,"metaUid":"59ce7164-6"},"59ce7164-9":{"renderedLength":815,"gzipLength":323,"brotliLength":286,"metaUid":"59ce7164-8"},"59ce7164-11":{"renderedLength":468,"gzipLength":280,"brotliLength":223,"metaUid":"59ce7164-10"},"59ce7164-13":{"renderedLength":1600,"gzipLength":561,"brotliLength":498,"metaUid":"59ce7164-12"},"59ce7164-15":{"renderedLength":410,"gzipLength":249,"brotliLength":198,"metaUid":"59ce7164-14"},"59ce7164-17":{"renderedLength":551,"gzipLength":219,"brotliLength":186,"metaUid":"59ce7164-16"},"59ce7164-19":{"renderedLength":2879,"gzipLength":953,"brotliLength":814,"metaUid":"59ce7164-18"},"59ce7164-21":{"renderedLength":483,"gzipLength":288,"brotliLength":239,"metaUid":"59ce7164-20"},"59ce7164-23":{"renderedLength":206,"gzipLength":156,"brotliLength":122,"metaUid":"59ce7164-22"},"59ce7164-25":{"renderedLength":240,"gzipLength":168,"brotliLength":143,"metaUid":"59ce7164-24"},"59ce7164-27":{"renderedLength":269,"gzipLength":168,"brotliLength":140,"metaUid":"59ce7164-26"},"59ce7164-29":{"renderedLength":788,"gzipLength":325,"brotliLength":267,"metaUid":"59ce7164-28"},"59ce7164-31":{"renderedLength":1278,"gzipLength":491,"brotliLength":404,"metaUid":"59ce7164-30"},"59ce7164-33":{"renderedLength":3726,"gzipLength":1330,"brotliLength":1126,"metaUid":"59ce7164-32"},"59ce7164-35":{"renderedLength":4194,"gzipLength":1528,"brotliLength":1268,"metaUid":"59ce7164-34"},"59ce7164-37":{"renderedLength":5525,"gzipLength":1897,"brotliLength":1561,"metaUid":"59ce7164-36"},"59ce7164-39":{"renderedLength":1052,"gzipLength":382,"brotliLength":332,"metaUid":"59ce7164-38"},"59ce7164-41":{"renderedLength":4713,"gzipLength":1498,"brotliLength":1309,"metaUid":"59ce7164-40"},"59ce7164-43":{"renderedLength":384,"gzipLength":269,"brotliLength":214,"metaUid":"59ce7164-42"},"59ce7164-45":{"renderedLength":1052,"gzipLength":455,"brotliLength":378,"metaUid":"59ce7164-44"},"59ce7164-47":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"59ce7164-46"}},"nodeMetas":{"59ce7164-0":{"id":"/src/styles/index.css","moduleParts":{"index.cjs":"59ce7164-1"},"imported":[],"importedBy":[{"uid":"59ce7164-46"},{"uid":"59ce7164-40"}]},"59ce7164-2":{"id":"/src/config/appConfig.ts","moduleParts":{"index.cjs":"59ce7164-3"},"imported":[{"uid":"59ce7164-55"}],"importedBy":[{"uid":"59ce7164-52"}]},"59ce7164-4":{"id":"/src/utils/rendererProvider.ts","moduleParts":{"index.cjs":"59ce7164-5"},"imported":[{"uid":"59ce7164-54"}],"importedBy":[{"uid":"59ce7164-46"},{"uid":"59ce7164-8"}]},"59ce7164-6":{"id":"/src/utils/rulesProvider.ts","moduleParts":{"index.cjs":"59ce7164-7"},"imported":[{"uid":"59ce7164-50"}],"importedBy":[{"uid":"59ce7164-46"},{"uid":"59ce7164-8"}]},"59ce7164-8":{"id":"/src/hooks/useForm.ts","moduleParts":{"index.cjs":"59ce7164-9"},"imported":[{"uid":"59ce7164-55"},{"uid":"59ce7164-50"},{"uid":"59ce7164-52"},{"uid":"59ce7164-4"},{"uid":"59ce7164-6"}],"importedBy":[{"uid":"59ce7164-48"}]},"59ce7164-10":{"id":"/src/hooks/provideFormContext.ts","moduleParts":{"index.cjs":"59ce7164-11"},"imported":[{"uid":"59ce7164-55"}],"importedBy":[{"uid":"59ce7164-48"},{"uid":"59ce7164-12"},{"uid":"59ce7164-16"},{"uid":"59ce7164-18"}]},"59ce7164-12":{"id":"/src/hooks/useField.ts","moduleParts":{"index.cjs":"59ce7164-13"},"imported":[{"uid":"59ce7164-55"},{"uid":"59ce7164-50"},{"uid":"59ce7164-10"}],"importedBy":[{"uid":"59ce7164-48"}]},"59ce7164-14":{"id":"/src/hooks/provideFieldContext.ts","moduleParts":{"index.cjs":"59ce7164-15"},"imported":[{"uid":"59ce7164-55"}],"importedBy":[{"uid":"59ce7164-48"},{"uid":"59ce7164-44"}]},"59ce7164-16":{"id":"/src/hooks/useWatch.ts","moduleParts":{"index.cjs":"59ce7164-17"},"imported":[{"uid":"59ce7164-55"},{"uid":"59ce7164-50"},{"uid":"59ce7164-10"}],"importedBy":[{"uid":"59ce7164-48"},{"uid":"59ce7164-18"}]},"59ce7164-18":{"id":"/src/hooks/useDictionary.ts","moduleParts":{"index.cjs":"59ce7164-19"},"imported":[{"uid":"59ce7164-55"},{"uid":"59ce7164-10"},{"uid":"59ce7164-16"}],"importedBy":[{"uid":"59ce7164-48"},{"uid":"59ce7164-44"}]},"59ce7164-20":{"id":"/src/hooks/provideFormConfigContext.ts","moduleParts":{"index.cjs":"59ce7164-21"},"imported":[{"uid":"59ce7164-55"}],"importedBy":[{"uid":"59ce7164-48"}]},"59ce7164-22":{"id":"/src/utils/equal.ts","moduleParts":{"index.cjs":"59ce7164-23"},"imported":[],"importedBy":[{"uid":"59ce7164-24"}]},"59ce7164-24":{"id":"/src/hooks/useStableRef.ts","moduleParts":{"index.cjs":"59ce7164-25"},"imported":[{"uid":"59ce7164-55"},{"uid":"59ce7164-22"}],"importedBy":[{"uid":"59ce7164-48"}]},"59ce7164-26":{"id":"/src/hooks/useViewSchemas.ts","moduleParts":{"index.cjs":"59ce7164-27"},"imported":[{"uid":"59ce7164-55"}],"importedBy":[{"uid":"59ce7164-48"}]},"59ce7164-28":{"id":"/src/utils/validation.ts","moduleParts":{"index.cjs":"59ce7164-29"},"imported":[],"importedBy":[{"uid":"59ce7164-57"}]},"59ce7164-30":{"id":"/src/utils/slot.ts","moduleParts":{"index.cjs":"59ce7164-31"},"imported":[],"importedBy":[{"uid":"59ce7164-57"}]},"59ce7164-32":{"id":"/src/components/FormGroup/index.tsx","moduleParts":{"index.cjs":"59ce7164-33"},"imported":[{"uid":"59ce7164-55"},{"uid":"59ce7164-56"},{"uid":"59ce7164-36"}],"importedBy":[{"uid":"59ce7164-46"},{"uid":"59ce7164-36"}]},"59ce7164-34":{"id":"/src/components/FormItem/slot.tsx","moduleParts":{"index.cjs":"59ce7164-35"},"imported":[{"uid":"59ce7164-55"},{"uid":"59ce7164-57"}],"importedBy":[{"uid":"59ce7164-36"}]},"59ce7164-36":{"id":"/src/components/FormItem/index.tsx","moduleParts":{"index.cjs":"59ce7164-37"},"imported":[{"uid":"59ce7164-55"},{"uid":"59ce7164-50"},{"uid":"59ce7164-56"},{"uid":"59ce7164-48"},{"uid":"59ce7164-57"},{"uid":"59ce7164-32"},{"uid":"59ce7164-34"}],"importedBy":[{"uid":"59ce7164-46"},{"uid":"59ce7164-42"},{"uid":"59ce7164-32"},{"uid":"59ce7164-40"}]},"59ce7164-38":{"id":"/src/utils/helpers.ts","moduleParts":{"index.cjs":"59ce7164-39"},"imported":[{"uid":"59ce7164-50"}],"importedBy":[{"uid":"59ce7164-40"}]},"59ce7164-40":{"id":"/src/form.vue?vue&type=script&setup=true&lang.ts","moduleParts":{"index.cjs":"59ce7164-41"},"imported":[{"uid":"59ce7164-55"},{"uid":"59ce7164-50"},{"uid":"59ce7164-64"},{"uid":"59ce7164-36"},{"uid":"59ce7164-48"},{"uid":"59ce7164-38"},{"uid":"59ce7164-0"}],"importedBy":[{"uid":"59ce7164-61"}]},"59ce7164-42":{"id":"/src/form.ts","moduleParts":{"index.cjs":"59ce7164-43"},"imported":[{"uid":"59ce7164-36"},{"uid":"59ce7164-52"},{"uid":"59ce7164-53"}],"importedBy":[{"uid":"59ce7164-46"}]},"59ce7164-44":{"id":"/src/hocs/withRemoteOptions.ts","moduleParts":{"index.cjs":"59ce7164-45"},"imported":[{"uid":"59ce7164-55"},{"uid":"59ce7164-14"},{"uid":"59ce7164-18"}],"importedBy":[{"uid":"59ce7164-49"}]},"59ce7164-46":{"id":"/src/index.ts","moduleParts":{"index.cjs":"59ce7164-47"},"imported":[{"uid":"59ce7164-0"},{"uid":"59ce7164-42"},{"uid":"59ce7164-4"},{"uid":"59ce7164-6"},{"uid":"59ce7164-48"},{"uid":"59ce7164-49"},{"uid":"59ce7164-36"},{"uid":"59ce7164-32"},{"uid":"59ce7164-50"},{"uid":"59ce7164-51"}],"importedBy":[],"isEntry":true},"59ce7164-48":{"id":"/src/hooks/index.ts","moduleParts":{},"imported":[{"uid":"59ce7164-8"},{"uid":"59ce7164-10"},{"uid":"59ce7164-12"},{"uid":"59ce7164-14"},{"uid":"59ce7164-16"},{"uid":"59ce7164-18"},{"uid":"59ce7164-20"},{"uid":"59ce7164-24"},{"uid":"59ce7164-26"}],"importedBy":[{"uid":"59ce7164-46"},{"uid":"59ce7164-36"},{"uid":"59ce7164-40"}]},"59ce7164-49":{"id":"/src/hocs/index.ts","moduleParts":{},"imported":[{"uid":"59ce7164-44"}],"importedBy":[{"uid":"59ce7164-46"}]},"59ce7164-50":{"id":"@schemx/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"59ce7164-46"},{"uid":"59ce7164-6"},{"uid":"59ce7164-36"},{"uid":"59ce7164-8"},{"uid":"59ce7164-12"},{"uid":"59ce7164-16"},{"uid":"59ce7164-40"},{"uid":"59ce7164-38"}],"isExternal":true},"59ce7164-51":{"id":"/src/types/index.ts","moduleParts":{},"imported":[{"uid":"59ce7164-58"},{"uid":"59ce7164-59"},{"uid":"59ce7164-60"}],"importedBy":[{"uid":"59ce7164-46"}]},"59ce7164-52":{"id":"/src/config/index.ts","moduleParts":{},"imported":[{"uid":"59ce7164-2"}],"importedBy":[{"uid":"59ce7164-42"},{"uid":"59ce7164-8"}]},"59ce7164-53":{"id":"/src/formRuntime.js","moduleParts":{},"imported":[{"uid":"59ce7164-61"}],"importedBy":[{"uid":"59ce7164-42"}]},"59ce7164-54":{"id":"@schemx/core/adapter","moduleParts":{},"imported":[],"importedBy":[{"uid":"59ce7164-4"}],"isExternal":true},"59ce7164-55":{"id":"vue","moduleParts":{},"imported":[],"importedBy":[{"uid":"59ce7164-36"},{"uid":"59ce7164-32"},{"uid":"59ce7164-8"},{"uid":"59ce7164-10"},{"uid":"59ce7164-12"},{"uid":"59ce7164-14"},{"uid":"59ce7164-16"},{"uid":"59ce7164-18"},{"uid":"59ce7164-20"},{"uid":"59ce7164-24"},{"uid":"59ce7164-26"},{"uid":"59ce7164-44"},{"uid":"59ce7164-34"},{"uid":"59ce7164-2"},{"uid":"59ce7164-40"}],"isExternal":true},"59ce7164-56":{"id":"classnames","moduleParts":{},"imported":[],"importedBy":[{"uid":"59ce7164-36"},{"uid":"59ce7164-32"}],"isExternal":true},"59ce7164-57":{"id":"/src/utils/index.ts","moduleParts":{},"imported":[{"uid":"59ce7164-62"},{"uid":"59ce7164-28"},{"uid":"59ce7164-30"},{"uid":"59ce7164-63"}],"importedBy":[{"uid":"59ce7164-36"},{"uid":"59ce7164-34"}]},"59ce7164-58":{"id":"/src/types/dictionary.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"59ce7164-51"}]},"59ce7164-59":{"id":"/src/types/form.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"59ce7164-51"}]},"59ce7164-60":{"id":"/src/types/field.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"59ce7164-51"}]},"59ce7164-61":{"id":"/src/form.vue","moduleParts":{},"imported":[{"uid":"59ce7164-40"}],"importedBy":[{"uid":"59ce7164-53"}]},"59ce7164-62":{"id":"/src/utils/dynamic.ts","moduleParts":{},"imported":[{"uid":"59ce7164-64"}],"importedBy":[{"uid":"59ce7164-57"}]},"59ce7164-63":{"id":"/src/utils/diff.ts","moduleParts":{},"imported":[{"uid":"59ce7164-65"}],"importedBy":[{"uid":"59ce7164-57"}]},"59ce7164-64":{"id":"es-toolkit","moduleParts":{},"imported":[],"importedBy":[{"uid":"59ce7164-62"},{"uid":"59ce7164-40"}],"isExternal":true},"59ce7164-65":{"id":"es-toolkit/compat","moduleParts":{},"imported":[],"importedBy":[{"uid":"59ce7164-63"}],"isExternal":true}},"env":{"rollup":"4.14.3"},"options":{"gzip":true,"brotli":true,"sourcemap":false}};
|
|
4933
4933
|
|
|
4934
4934
|
const run = () => {
|
|
4935
4935
|
const width = window.innerWidth;
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import { PropType, VNodeChild } from 'vue';
|
|
2
|
-
import { SchemxViewSchema, Values } from '@schemx/core';
|
|
3
2
|
/**
|
|
4
3
|
* FormItem 属性。
|
|
5
4
|
*
|
|
6
5
|
* @typeParam TValues - 表单值类型
|
|
7
6
|
*/
|
|
8
|
-
export interface SchemxItemProps
|
|
9
|
-
schema:
|
|
7
|
+
export interface SchemxItemProps {
|
|
8
|
+
schema: unknown;
|
|
10
9
|
}
|
|
11
10
|
declare const FormItem: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
12
11
|
schema: {
|
|
13
|
-
type: PropType<
|
|
12
|
+
type: PropType<unknown>;
|
|
14
13
|
required: true;
|
|
15
14
|
};
|
|
16
15
|
}>, () => VNodeChild, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
17
16
|
schema: {
|
|
18
|
-
type: PropType<
|
|
17
|
+
type: PropType<unknown>;
|
|
19
18
|
required: true;
|
|
20
19
|
};
|
|
21
20
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FormItem/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FormItem/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAA6C,QAAQ,EAAc,MAAM,KAAK,CAAA;AACrF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AA4BrC;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,OAAO,CAAA;CAChB;AAED,QAAA,MAAM,QAAQ;;cAKQ,QAAQ,CAAC,OAAO,CAAC;;;UAMxB,UAAU;;cANH,QAAQ,CAAC,OAAO,CAAC;;;iGAgBrC,CAAA;AA+LF,eAAe,QAAQ,CAAA"}
|