n20-common-lib 2.2.25 → 2.2.27

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.2.25",
3
+ "version": "2.2.27",
4
4
  "private": false,
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -67,8 +67,10 @@
67
67
  </slot>
68
68
  </el-table-column>
69
69
  <el-table-column v-if="readonly" :label="'附件上传' | $lc" :prop="keys.name">
70
- <slot slot="header" slot-scope="scope" name="name-header" :column="scope.column">{{ '附件上传' | $lc }}</slot>
71
- <slot slot-scope="{ row }" name="name" :row="row">
70
+ <slot slot="header" slot-scope="scope" name="upload-header" :column="scope.column">{{
71
+ '附件上传' | $lc
72
+ }}</slot>
73
+ <slot slot-scope="{ row }" name="upload" :row="row">
72
74
  {{ $options.filters.fileName(row, keys.url) || row[keys.name] }}
73
75
  </slot>
74
76
  </el-table-column>
@@ -116,7 +116,7 @@ export default {
116
116
  let i_f = this.format.indexOf('.')
117
117
  return i_f === -1 ? 0 : this.format.length - i_f - 1
118
118
  }
119
- if (this.dNum) {
119
+ if (this.dNum || this.dNum === 0) {
120
120
  return this.dNum
121
121
  }
122
122
  if (this.type === 'rate') {
@@ -19,8 +19,7 @@
19
19
  />
20
20
  <!-- <el-divider class="header-wrap-logo-hr" direction="vertical" /> -->
21
21
  <div class="m-l-m"></div>
22
- <!-- eslint-disable-next-line vue/no-v-html -->
23
- <h3 class="header-title m-r-auto" v-html="headerTitle"></h3>
22
+ <h3 class="header-title m-r-auto">{{ headerTitle | $l }}</h3>
24
23
  <!-- YSCW -->
25
24
  <slot name="header-ectad">
26
25
  <sapn v-if="ectad" class="f-s-s">
@@ -19,8 +19,7 @@
19
19
  />
20
20
  <!-- <el-divider class="header-wrap-logo-hr" direction="vertical" /> -->
21
21
  <div class="m-l-m"></div>
22
- <!-- eslint-disable-next-line vue/no-v-html -->
23
- <h3 class="header-title m-r-auto" v-html="headerTitle"></h3>
22
+ <h3 class="header-title m-r-auto">{{ headerTitle | $l }}</h3>
24
23
  <span v-if="byLabel && !inBack" class="header-uif-by">{{ byLabel }}</span>
25
24
  <!-- YSCW -->
26
25
  <slot name="header-ectad">
@@ -84,7 +83,7 @@
84
83
  <div class="uby-h flex-box flex-v">
85
84
  <i class="uby-h-icon iconfont icon-icon_huanyingmoshi"></i>
86
85
  <span
87
- >{{ '欢迎使用' | $lc }}<span>{{ headerTitle }}</span
86
+ >{{ '欢迎使用' | $lc }}<span>{{ headerTitle | $l }}</span
88
87
  >!</span
89
88
  >
90
89
  </div>
@@ -1,15 +1,16 @@
1
1
  <template>
2
2
  <span>
3
- <el-button
4
- v-for="item in dfBtns"
3
+ <el-link
4
+ v-for="(item, i) in dfBtns"
5
5
  :key="item.label"
6
- type="text"
7
- size="mini"
6
+ :class="i ? 'm-l' : ''"
7
+ :type="item.type || 'primary'"
8
+ :underline="false"
8
9
  :disabled="item.disabled | dbdBtn(row)"
9
10
  @click="$emit('command', item.command)"
10
- >{{ item.label }}</el-button
11
+ >{{ item.label }}</el-link
11
12
  >
12
- <el-dropdown v-if="moreBtns.length" @command="(c) => $emit('command', c)">
13
+ <el-dropdown v-if="moreBtns.length" class="m-l" @command="(c) => $emit('command', c)">
13
14
  <el-button class="n20-icon-moren" type="text" size="mini" />
14
15
  <el-dropdown-menu slot="dropdown" class="text-c">
15
16
  <el-dropdown-item
@@ -17,8 +18,10 @@
17
18
  :key="item.label"
18
19
  :command="item.command"
19
20
  :disabled="item.disabled | dbdBtn(row)"
20
- >{{ item.label }}</el-dropdown-item
21
21
  >
22
+ <el-link v-if="item.type" :type="item.type" :underline="false">{{ item.label }}</el-link>
23
+ <template v-else>{{ item.label }}</template>
24
+ </el-dropdown-item>
22
25
  </el-dropdown-menu>
23
26
  </el-dropdown>
24
27
  </span>