leisure-core 0.5.73 → 0.5.75
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/le-list/src/main.vue +21 -9
- package/package.json +1 -1
package/le-list/src/main.vue
CHANGED
|
@@ -57,15 +57,23 @@
|
|
|
57
57
|
</template>
|
|
58
58
|
<template v-else>
|
|
59
59
|
<div class="rowBtns">
|
|
60
|
-
<
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
60
|
+
<slot name="rowBtnStand" :scope="scope">
|
|
61
|
+
<le-button
|
|
62
|
+
@click="editItem(scope.row)"
|
|
63
|
+
v-if="disBtn === 'edit'"
|
|
64
|
+
>
|
|
65
|
+
{{ editBtnText }}</le-button
|
|
66
|
+
>
|
|
67
|
+
<le-button
|
|
68
|
+
@click="detail(scope.row)"
|
|
69
|
+
v-if="disBtn === 'detail'"
|
|
70
|
+
>
|
|
71
|
+
详情</le-button
|
|
72
|
+
>
|
|
73
|
+
<le-button-msg @click="del(scope.row.id)" v-if="isDispDelBtn"
|
|
74
|
+
>删除</le-button-msg
|
|
75
|
+
>
|
|
76
|
+
</slot>
|
|
69
77
|
<div class="rowBtnsExt">
|
|
70
78
|
<slot name="rowBtns" :scope="scope"></slot>
|
|
71
79
|
</div>
|
|
@@ -153,6 +161,10 @@ export default {
|
|
|
153
161
|
type: String,
|
|
154
162
|
default: "id",
|
|
155
163
|
},
|
|
164
|
+
editBtnText: {
|
|
165
|
+
type: String,
|
|
166
|
+
default: "编辑",
|
|
167
|
+
},
|
|
156
168
|
},
|
|
157
169
|
watch: {
|
|
158
170
|
searchParam: {
|