vue2-client 1.10.1 → 1.10.3

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.10.1",
3
+ "version": "1.10.3",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -1,7 +1,7 @@
1
1
  <template>
2
- <div id="addressSearchCombobox">
2
+ <div id="addressSearchCombobox" style="padding: 4px 0;">
3
3
  <div style="display: flex; width: 100%;">
4
- <a-input-group style="flex: 1; display: flex;" compact>
4
+ <a-input-group style="flex: 1; display: flex;padding-top: 1px;" compact>
5
5
  <a-input
6
6
  v-model="addressInput"
7
7
  :read-only="readOnly || !this.addressObj.address"
@@ -7,7 +7,6 @@
7
7
  <a-form-model-item
8
8
  :ref="attr.model"
9
9
  :label="showLabel?attr.name:undefined"
10
- :style="layout === 'inline'&& attr.occupyCol && attr.occupyCol > 1? {width:`calc(100% - ${attr.occupyCol * 1.533}rem)`}:{}"
11
10
  :prop="attr.prop ? attr.prop : attr.model">
12
11
  <!-- 如果配置了后置按钮插槽 -->
13
12
  <a-input-group
@@ -417,8 +416,7 @@
417
416
  <a-form-model-item
418
417
  :ref="attr.model"
419
418
  :label="showLabel?attr.name:undefined"
420
- :prop="attr.prop ? attr.prop : attr.model"
421
- :style="layout === 'inline'&& attr.occupyCol && attr.occupyCol > 1? {width:`calc(100% - ${attr.occupyCol * 1.533}rem)`}:{}">
419
+ :prop="attr.prop ? attr.prop : attr.model">
422
420
  <address-search-combobox
423
421
  :emitFunc="emitFunc"
424
422
  :attr="attr"
@@ -67,12 +67,12 @@ export default {
67
67
  const columnsCount = 24 / realFlex
68
68
  // 2. 计算基准列宽
69
69
  const baseColumnWidth = (this.parentWidth / columnsCount) - ((columnsCount - 1) * 16)
70
- console.log('调试信息:', {
71
- parentWidth: this.parentWidth,
72
- computedFlex: realFlex,
73
- columnsCount,
74
- baseColumnWidth,
75
- })
70
+ // console.log('调试信息:', {
71
+ // parentWidth: this.parentWidth,
72
+ // computedFlex: realFlex,
73
+ // columnsCount,
74
+ // baseColumnWidth,
75
+ // })
76
76
  // 3. 计算label宽度
77
77
  const labelWidth = Math.max(baseColumnWidth / 3, 80)
78
78
  return {
@@ -138,6 +138,9 @@ export default {
138
138
  .ant-form-item-label {
139
139
  max-width: var(--form-label-width);
140
140
  }
141
+ .ant-form-item-control-wrapper{
142
+ width: calc(100% - var(--form-label-width));
143
+ }
141
144
  }
142
145
  }
143
146
  </style>