vue2-client 1.8.171-test → 1.8.172-test
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
|
@@ -90,8 +90,11 @@
|
|
|
90
90
|
{{ item.scopedSlots?.customRender || item.slotValue }} <a-icon type="down" />
|
|
91
91
|
</a>
|
|
92
92
|
<a-menu slot="overlay">
|
|
93
|
-
<a-menu-item v-for="(action_item,index) in item.actionArr" :key="index">
|
|
94
|
-
<a
|
|
93
|
+
<a-menu-item v-for="(action_item, index) in item.actionArr" :key="index">
|
|
94
|
+
<a
|
|
95
|
+
@click="action(record, item.dataIndex, action_item.func)"
|
|
96
|
+
v-if="!item.customFunction || executeStringFunction( item.customFunction,[record,index])"
|
|
97
|
+
>{{ action_item.text }}</a>
|
|
95
98
|
</a-menu-item>
|
|
96
99
|
</a-menu>
|
|
97
100
|
</a-dropdown>
|
|
@@ -127,6 +130,7 @@ import { Modal } from 'ant-design-vue'
|
|
|
127
130
|
import { post } from '@vue2-client/services/api'
|
|
128
131
|
import { CommonTempTable } from '@vue2-client/services/api/commonTempTable'
|
|
129
132
|
import { mapState } from 'vuex'
|
|
133
|
+
import executeStringFunction from '@vue2-client/utils/runEvalFunction'
|
|
130
134
|
|
|
131
135
|
export default {
|
|
132
136
|
name: 'XTable',
|
|
@@ -248,6 +252,7 @@ export default {
|
|
|
248
252
|
},
|
|
249
253
|
mounted () {},
|
|
250
254
|
methods: {
|
|
255
|
+
executeStringFunction,
|
|
251
256
|
/**
|
|
252
257
|
* 初始化表格参数
|
|
253
258
|
*/
|