vue2-client 1.16.64 → 1.16.66

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": "vue2-client",
3
- "version": "1.16.64",
3
+ "version": "1.16.66",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -93,7 +93,7 @@
93
93
  <a-select
94
94
  v-if="!attr.lazyLoad || attr.lazyLoad === 'false'"
95
95
  v-model="form[attr.model]"
96
- :disabled="disabled"
96
+ :disabled="disabled || readOnly"
97
97
  @change="handleSelectChange"
98
98
  :filter-option="filterOption"
99
99
  :getPopupContainer="getPopupContainer"
@@ -166,7 +166,7 @@
166
166
  <a-select
167
167
  v-else
168
168
  v-model="form[attr.model]"
169
- :disabled="disabled"
169
+ :disabled="disabled || readOnly"
170
170
  @change="handleSelectChange"
171
171
  :filter-option="filterOption"
172
172
  :getPopupContainer="getPopupContainer"
@@ -193,6 +193,7 @@
193
193
  </a-select>
194
194
  </a-form-model-item>
195
195
  <a-form-model-item
196
+ :disabled="disabled || readOnly"
196
197
  v-bind="bindOther"
197
198
  :rules="rules"
198
199
  v-else-if="attr.showMode === 'radioGroup'"
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <a-row id="has_row" type="flex" :gutter="gutter" :style="isWidget ? {margin: '0px'} : {'margin-bottom': '.5rem'}">
2
+ <a-row id="has_row" type="flex" :gutter="dynamicGutter" :style="isWidget ? {margin: '0px'} : {'margin-bottom': '.5rem'}">
3
3
  <template v-for="(cell, cellIndex) in columns">
4
4
  <a-col
5
5
  name="trGroup"
@@ -268,6 +268,18 @@ export default {
268
268
  }
269
269
  })
270
270
  return sum
271
+ },
272
+ // 动态 gutter 配置:当包含 x-sidebar 时禁用 gutter
273
+ dynamicGutter () {
274
+ // 检查当前行是否包含 x-sidebar 组件
275
+ const hasXSidebar = this.columns.some(cell => {
276
+ if (Array.isArray(cell)) {
277
+ return cell.some(item => item.slotType === 'x-sidebar')
278
+ }
279
+ return cell.slotType === 'x-sidebar'
280
+ })
281
+ // 如果包含 x-sidebar,禁用 gutter 以避免影响同级组件的 padding
282
+ return hasXSidebar ? 0 : this.gutter
271
283
  }
272
284
  },
273
285
  data () {
@@ -135,7 +135,10 @@ export default {
135
135
 
136
136
  // 设置布局样式
137
137
  Object.entries(layoutStyles).forEach(([property, value]) => {
138
- element.style.setProperty(property, value)
138
+ // 将驼峰命名转换为CSS标准命名
139
+ const cssProperty = property.replace(/([A-Z])/g, '-$1').toLowerCase()
140
+ element.style.setProperty(cssProperty, value)
141
+ console.log(`设置样式: ${cssProperty} = ${value}`, element)
139
142
  })
140
143
 
141
144
  // 恢复保护的样式
@@ -335,7 +338,7 @@ export default {
335
338
  // 使用安全的方式设置布局样式
336
339
  this.safeSetLayoutStyles(mainCol, {
337
340
  flex: '1 1 auto',
338
- maxWth: `calc(100% - ${remainingWidth} - ${width})`,
341
+ maxWidth: `calc(100% - ${remainingWidth} - ${width})`,
339
342
  transition: 'all 0.3s'
340
343
  })
341
344
  }
@@ -60,13 +60,13 @@ path: 'example',
60
60
  // component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
61
61
  // component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue'),
62
62
  // component: () => import('@vue2-client/base-client/components/common/XReport/XReportDemo.vue'),
63
- component: () => import('@vue2-client/base-client/components/common/HIS/demo.vue'),
63
+ component: () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo.vue'),
64
+ // component: () => import('@vue2-client/base-client/components/common/HIS/demo.vue'),
64
65
  // component: () => import('@vue2-client/base-client/components/common/XDatePicker/demo.vue'),
65
66
  // component: () => import('@vue2-client/base-client/components/common/XTab/XTabDemo.vue'),
66
67
  // component: () => import('@vue2-client/base-client/components/common/XRate/demo.vue'),
67
68
  // component: () => import('@vue2-client/base-client/components/common/XForm/demo.vue'),
68
69
  // component: () => import('@vue2-client/base-client/components/his/XTimeSelect/XTimeSelectDemo.vue'),
69
- // component: () => import('@vue2-client/base-client/components/his/XCharge/XChargeDemo.vue'),
70
70
  // component: () => import('@vue2-client/base-client/components/his/XImportExcelButton/XFrontImportExcelDemo.vue'),
71
71
  // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
72
72
  // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),