xianniu-ui 0.1.9-beta → 0.1.11-beta
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/lib/xianniu-ui.common.js +22 -25
- package/lib/xianniu-ui.umd.js +22 -25
- package/lib/xianniu-ui.umd.min.js +1 -1
- package/package.json +1 -1
- package/packages/table/main.vue +9 -12
package/package.json
CHANGED
package/packages/table/main.vue
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div class="xn-table-box">
|
|
3
3
|
<div class="xn-table-box-tools" :class="{ 'is-border': !border }">
|
|
4
4
|
<div class="flex justify-content-between align-items-center">
|
|
5
|
-
<div class="fz-12" :class="{'pb-10':selection}">
|
|
5
|
+
<div class="fz-12" :class="{ 'pb-10': selection }">
|
|
6
6
|
<template v-if="selection">
|
|
7
7
|
<span>已选择 {{ selectedData.length }} 项</span>
|
|
8
8
|
<el-button
|
|
@@ -15,7 +15,10 @@
|
|
|
15
15
|
>
|
|
16
16
|
</template>
|
|
17
17
|
</div>
|
|
18
|
-
<div
|
|
18
|
+
<div
|
|
19
|
+
:class="{ 'pb-10': $slots.tools || tools.length }"
|
|
20
|
+
class="flex justify-content-between align-items-center"
|
|
21
|
+
>
|
|
19
22
|
<slot name="tools">
|
|
20
23
|
<!-- <el-button-group> -->
|
|
21
24
|
<div>
|
|
@@ -110,20 +113,14 @@
|
|
|
110
113
|
</el-table-column>
|
|
111
114
|
<el-table-column
|
|
112
115
|
width="50px"
|
|
113
|
-
label="
|
|
116
|
+
label="No."
|
|
114
117
|
v-if="index && data.length"
|
|
115
118
|
type="index"
|
|
116
119
|
></el-table-column>
|
|
117
120
|
|
|
118
|
-
<
|
|
119
|
-
<
|
|
120
|
-
|
|
121
|
-
:key="idx"
|
|
122
|
-
v-if="item.checked === true"
|
|
123
|
-
v-bind="item"
|
|
124
|
-
></column>
|
|
125
|
-
</template>
|
|
126
|
-
</slot>
|
|
121
|
+
<template v-for="(item, idx) in columns">
|
|
122
|
+
<column :key="idx" v-if="item.checked === true" v-bind="item"></column>
|
|
123
|
+
</template>
|
|
127
124
|
</el-table>
|
|
128
125
|
|
|
129
126
|
<template v-if="!$utils.isEmpty(page)">
|