xianniu-ui 0.8.38 → 0.8.39
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 +36 -33
- package/lib/xianniu-ui.umd.js +36 -33
- package/lib/xianniu-ui.umd.min.js +2 -2
- package/package.json +1 -1
- package/packages/table/column.vue +15 -8
package/package.json
CHANGED
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
:key="idxBtn"
|
|
47
47
|
:confirm-button-text="itemBtn.options.confirmButtonText"
|
|
48
48
|
class="ml-10"
|
|
49
|
-
@confirm="handleClick(itemBtn.method, row, $index)"
|
|
49
|
+
@confirm="handleClick(itemBtn.method, row, $index, $event)"
|
|
50
50
|
>
|
|
51
51
|
<el-button
|
|
52
52
|
:type="itemBtn.type || 'text'"
|
|
@@ -66,7 +66,9 @@
|
|
|
66
66
|
:size="itemBtn.size || 'mini'"
|
|
67
67
|
:icon="itemBtn.icon"
|
|
68
68
|
:plain="itemBtn.plain"
|
|
69
|
-
@click.native.stop="
|
|
69
|
+
@click.native.stop="
|
|
70
|
+
handleClick(itemBtn.method, row, $index, $event)
|
|
71
|
+
"
|
|
70
72
|
>{{ label(itemBtn, row) }}</el-button
|
|
71
73
|
>
|
|
72
74
|
</template>
|
|
@@ -102,11 +104,15 @@ export default {
|
|
|
102
104
|
},
|
|
103
105
|
},
|
|
104
106
|
computed: {
|
|
105
|
-
showOverflowTooltip(){
|
|
106
|
-
return (attrs)=>{
|
|
107
|
-
const showTip =
|
|
108
|
-
|
|
109
|
-
|
|
107
|
+
showOverflowTooltip() {
|
|
108
|
+
return (attrs) => {
|
|
109
|
+
const showTip =
|
|
110
|
+
(attrs["showOverflowTooltip"] != undefined &&
|
|
111
|
+
attrs["showOverflowTooltip"] !== true) ||
|
|
112
|
+
(attrs["show-overflow-tooltip"] != undefined &&
|
|
113
|
+
attrs["show-overflow-tooltip"] !== true);
|
|
114
|
+
return attrs.more ? false : showTip ? !showTip : true;
|
|
115
|
+
};
|
|
110
116
|
},
|
|
111
117
|
label() {
|
|
112
118
|
return (itemBtn, row) => {
|
|
@@ -127,12 +133,13 @@ export default {
|
|
|
127
133
|
|
|
128
134
|
watch: {},
|
|
129
135
|
methods: {
|
|
130
|
-
handleClick(method, row, index) {
|
|
136
|
+
handleClick(method, row, index, ev) {
|
|
131
137
|
if (this.$parent) {
|
|
132
138
|
this.$parent.$emit("handle-buttons", {
|
|
133
139
|
method,
|
|
134
140
|
row,
|
|
135
141
|
index,
|
|
142
|
+
ev,
|
|
136
143
|
});
|
|
137
144
|
}
|
|
138
145
|
},
|