@longhongguo/form-create-ant-design-vue 3.2.87 → 3.2.89

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@longhongguo/form-create-ant-design-vue",
3
- "version": "3.2.87",
3
+ "version": "3.2.89",
4
4
  "description": "AntDesignVue版本低代码表单|FormCreate 是一个可以通过 JSON 生成具有动态渲染、数据收集、验证和提交功能的低代码表单生成组件。支持6个UI框架,适配移动端,并且支持生成任何 Vue 组件。内置20种常用表单组件和自定义组件,再复杂的表单都可以轻松搞定。",
5
5
  "main": "./dist/form-create.min.js",
6
6
  "module": "./dist/form-create.esm.js",
@@ -13,13 +13,31 @@ function getValue(obj, path) {
13
13
  return value
14
14
  }
15
15
 
16
+ // 文件加载时立即打印
17
+ console.log('[accTable] ✅ accTable.js 文件已加载')
18
+
16
19
  export default {
17
20
  name: 'accTable',
18
21
  mergeProp(ctx) {
22
+ console.log('[accTable] ========== mergeProp 被调用 ==========')
23
+ console.log('[accTable] 调用堆栈:', new Error().stack)
19
24
  const props = ctx.prop.props || {}
20
25
  const rule = ctx.rule
21
26
  const api = ctx.api
22
27
 
28
+ console.log('[accTable] mergeProp 基本信息:', {
29
+ ruleType: rule.type,
30
+ ruleName: rule.name,
31
+ hasEffect: !!rule.effect,
32
+ hasFetch: !!rule.effect?.fetch,
33
+ fetchValue: rule.effect?.fetch,
34
+ fetchType: typeof rule.effect?.fetch,
35
+ hasPagination: !!rule.props?.pagination,
36
+ paginationConfig: rule.props?.pagination,
37
+ paginationType: typeof rule.props?.pagination,
38
+ allRuleProps: Object.keys(rule.props || {})
39
+ })
40
+
23
41
  // 初始化列配置
24
42
  if (!hasProperty(props, 'columns')) {
25
43
  let columns = rule.props?.columns || []
@@ -79,8 +97,20 @@ export default {
79
97
  }
80
98
 
81
99
  // 处理分页配置
100
+ console.log('[accTable] 开始处理分页配置:', {
101
+ hasPaginationProp: hasProperty(props, 'pagination'),
102
+ paginationConfig: rule.props?.pagination,
103
+ paginationConfigType: typeof rule.props?.pagination
104
+ })
105
+
82
106
  if (!hasProperty(props, 'pagination')) {
83
107
  const paginationConfig = rule.props?.pagination
108
+ console.log('[accTable] 分页配置检查:', {
109
+ paginationConfig,
110
+ isFalse: paginationConfig === false,
111
+ isObject: paginationConfig && typeof paginationConfig === 'object'
112
+ })
113
+
84
114
  if (paginationConfig === false) {
85
115
  props.pagination = false
86
116
  } else if (paginationConfig && typeof paginationConfig === 'object') {
@@ -94,8 +124,17 @@ export default {
94
124
  ...paginationConfig
95
125
  }
96
126
 
127
+ console.log('[accTable] 检查是否需要添加分页请求参数:', {
128
+ hasFetch: !!rule.effect?.fetch,
129
+ fetchType: typeof rule.effect?.fetch,
130
+ fetchValue: rule.effect?.fetch,
131
+ paginationCurrent: paginationConfig.current,
132
+ currentDefined: paginationConfig.current !== undefined
133
+ })
134
+
97
135
  // 如果启用了分页且有远程数据源(fetch effect),添加 onChange 事件处理和初始化分页参数
98
136
  if (rule.effect?.fetch && paginationConfig.current !== undefined) {
137
+ console.log('[accTable] 进入分页请求参数处理逻辑')
99
138
  // 获取分页参数配置
100
139
  const pageParamName = rule.props?.paginationPageParam || 'page'
101
140
  const pageSizeParamName =
@@ -346,6 +385,7 @@ export default {
346
385
  }
347
386
  },
348
387
  render(children, ctx) {
388
+ console.log('[accTable] render 方法被调用')
349
389
  // 使用默认渲染
350
390
  return ctx.$render.defaultRender(ctx, children)
351
391
  }