n20-common-lib 2.5.21 → 2.5.23

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": "n20-common-lib",
3
- "version": "2.5.21",
3
+ "version": "2.5.23",
4
4
  "private": false,
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -467,7 +467,6 @@ export default {
467
467
  if (this.getFileMethod) {
468
468
  return this.getFileMethod(row, type)
469
469
  }
470
-
471
470
  let _url = row[this.keys.url]
472
471
  this.seePrefix && (_url = this.seePrefix + _url)
473
472
  if (_url) {
@@ -475,15 +474,15 @@ export default {
475
474
  // 预览
476
475
  return {
477
476
  url: `/api/onlinePreview?beid=${row[this.keys.url]}`,
478
- name: row.name + '.html',
479
- sameOrg: this.seeTypes.test(row.name)
477
+ name: row[this.keys.name] + '.html',
478
+ sameOrg: this.seeTypes.test(row[this.keys.name])
480
479
  }
481
480
  } else {
482
481
  // 下载
483
482
  let blob = await this.$axios.get(`/neams/eamsbaserecord/download/${row[this.keys.url]}`, null, {
484
483
  responseType: 'blob'
485
484
  })
486
- let name = row.name || blob.name
485
+ let name = row[this.keys.name] || blob.name
487
486
  return {
488
487
  url: URL.createObjectURL(blob),
489
488
  name: name,
@@ -3,6 +3,7 @@
3
3
  <el-input
4
4
  ref="input"
5
5
  v-model="valueStr"
6
+ v-bind="$attrs"
6
7
  class="n20-stc"
7
8
  :disabled="disabled"
8
9
  :placeholder="phd"
@@ -14,6 +15,12 @@
14
15
  @change="changeFn"
15
16
  @keydown.native="stepFn"
16
17
  >
18
+ <template slot="suffix">
19
+ <slot name="suffix"></slot>
20
+ </template>
21
+ <template slot="prefix">
22
+ <slot name="prefix"></slot>
23
+ </template>
17
24
  <template v-if="type === 'rate'">
18
25
  <span v-if="suffixV" slot="suffix" class="el-input__icon">{{ suffix }}</span>
19
26
  </template>
@@ -57,7 +57,6 @@
57
57
  :width="column.width"
58
58
  :align="column.align"
59
59
  :show-overflow-tooltip="column.showOverflowTooltip"
60
- :formatter="item.formatter | colfF(item.formatterMap)"
61
60
  >
62
61
  <template slot-scope="scope">
63
62
  <span v-html="scope.row[column.prop]"></span>