vue2-client 1.8.355 → 1.8.357

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.355",
3
+ "version": "1.8.357",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -79,27 +79,31 @@
79
79
  size="default"
80
80
  >
81
81
  <template
82
- v-for="(item, index) in tableColumns"
82
+ v-for="(item, c_index) in tableColumns"
83
83
  :slot="item.dataIndex"
84
- slot-scope="text, record">
84
+ slot-scope="text, record, index">
85
+ <!-- 序号列 -->
86
+ <span v-if="item.slotType === 'index'" :key="'index-' + c_index">
87
+ {{ index + 1 }}
88
+ </span>
85
89
  <!-- 文本溢出省略(ellipsis) -->
86
- <span v-if="item.slotType === 'ellipsis'" :key="'ellipsis-' + index">
90
+ <span v-if="item.slotType === 'ellipsis'" :key="'ellipsis-' + c_index">
87
91
  <ellipsis :length="item.slotValue" tooltip>{{ text === '' ? '--' : text }}</ellipsis>
88
92
  </span>
89
93
  <!-- 徽标(badge) -->
90
- <span v-else-if="item.slotType === 'badge'" :key="'badge-' + index">
94
+ <span v-else-if="item.slotType === 'badge'" :key="'badge-' + c_index">
91
95
  <x-badge v-if="text !== null && text !== undefined" :badge-key="item.slotKeyMap" :value="text"/>
92
96
  </span>
93
97
  <!-- 日期(date) -->
94
- <span v-else-if="item.slotType === 'date'" :key="'date-' + index">
98
+ <span v-else-if="item.slotType === 'date'" :key="'date-' + c_index">
95
99
  {{ format(text, 'yyyy-MM-dd') }}
96
100
  </span>
97
101
  <!-- 日期时间(datetime) -->
98
- <span v-else-if="item.slotType === 'dateTime'" :key="'dateTime-' + index">
102
+ <span v-else-if="item.slotType === 'dateTime'" :key="'dateTime-' + c_index">
99
103
  {{ format(text, 'yyyy-MM-dd hh:mm:ss') }}
100
104
  </span>
101
105
  <!-- 操作列(action) -->
102
- <span v-else-if="item.slotType === 'action'" :key="'action-' + index">
106
+ <span v-else-if="item.slotType === 'action'" :key="'action-' + c_index">
103
107
  <template v-if="item.actionArr && item.actionArr.length > 0">
104
108
  <a-dropdown>
105
109
  <a class="ant-dropdown-link" @click="e => e.preventDefault()">
@@ -109,7 +113,7 @@
109
113
  <a-menu-item
110
114
  v-for="(action_item, actionIndex) in item.actionArr"
111
115
  :key="actionIndex"
112
- v-if="!action_item.customFunction || executeStrFunction( action_item.customFunction,[record,index])">
116
+ v-if="!action_item.customFunction || executeStrFunction( action_item.customFunction,[record,c_index])">
113
117
  <a
114
118
  style="text-align: center"
115
119
  @click="action(record, item.dataIndex, action_item.func)"