vue2-client 1.8.143 → 1.8.145

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.8.143",
3
+ "version": "1.8.145",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -397,7 +397,7 @@ export default {
397
397
  // 替换columns,合并data
398
398
  config.columns[i] = []
399
399
  const before = config.columns.slice(0, i)
400
- const after = config.columns.slice(i + 1, config.columns.length)
400
+ let after = config.columns.slice(i + 1, config.columns.length)
401
401
 
402
402
  const addArr = []
403
403
  for (let k = 0; k < this.configFromWeb[targetName].columns.length; k++) {
@@ -425,6 +425,11 @@ export default {
425
425
  })
426
426
 
427
427
  // 拼接之后的数组
428
+ if (after.length === 1) {
429
+ if (after[0].type === 'slot' || after[0][0].type === 'slot') {
430
+ after = []
431
+ }
432
+ }
428
433
  if (after.length > 0) {
429
434
  if (after.length >= 1) {
430
435
  after.forEach(item => {
@@ -443,7 +448,6 @@ export default {
443
448
  }
444
449
 
445
450
  config.data = { ...config.data, ...this.configFromWeb[targetName].data }
446
- this.configFromWeb = {}
447
451
  }
448
452
  }
449
453
  }
@@ -13,7 +13,12 @@
13
13
  <div class="inputsDivItem" v-for="(num, index) of calcFormatInputNum(item.format)" :key="index">
14
14
  <span class="inputsDivItemLabel">{{ displayFormatStartText(item.format) }}</span>
15
15
  <template v-if="!forDisplay">
16
- <a-input v-model="data[item.dataIndex][index]" :style="'width:' + (item.inputWidth ? item.inputWidth : '100') + '%'"/>
16
+ <template v-if="item.inputReadOnly === true">
17
+ <a-input v-model="data[item.dataIndex][index]" :style="'width:' + (item.inputWidth ? item.inputWidth : '100') + '%'" :disabled="true"/>
18
+ </template>
19
+ <template v-else>
20
+ <a-input v-model="data[item.dataIndex][index]" :style="'width:' + (item.inputWidth ? item.inputWidth : '100') + '%'"/>
21
+ </template>
17
22
  </template>
18
23
  <template v-else>
19
24
  {{ activatedConfig.data[item.dataIndex][index] }}
@@ -246,7 +246,8 @@ export default {
246
246
  {
247
247
  dataIndex: 'subTitleDate',
248
248
  format: '{}年{}月{}日',
249
- type: 'inputs'
249
+ type: 'inputs',
250
+ inputReadOnly: true
250
251
  },
251
252
  {
252
253
  dataIndex: 'subTitleCompany',