doway-coms 1.4.53 → 1.4.55
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
|
@@ -239,16 +239,22 @@
|
|
|
239
239
|
</template>
|
|
240
240
|
<template #operation_edit="scope">
|
|
241
241
|
<div>
|
|
242
|
+
<!-- 2个显示限制:页面状态visibleStatuss数组;根据其他字段限制visibleState对象 -->
|
|
242
243
|
<a-button
|
|
243
244
|
type="link"
|
|
244
245
|
@click="operationButtonClick(item, scope)"
|
|
245
246
|
v-show="
|
|
246
247
|
item.visible === true &&
|
|
247
248
|
!(scope.row['sysOperationDisVisible_' + item.field] === true) &&
|
|
249
|
+
item.visibleStatuss != undefined
|
|
250
|
+
? item.visibleStatuss.indexOf(scope.row.status) != -1
|
|
251
|
+
: true &&
|
|
248
252
|
item.visibleState != undefined &&
|
|
249
253
|
item.visibleState.field != undefined &&
|
|
250
254
|
item.visibleState.visibleStatuss != undefined
|
|
251
|
-
? item.visibleState.visibleStatuss.
|
|
255
|
+
? item.visibleState.visibleStatuss.indexOf(
|
|
256
|
+
scope.row[item.visibleState.field]
|
|
257
|
+
) != -1
|
|
252
258
|
: true
|
|
253
259
|
"
|
|
254
260
|
v-for="item in scope.column.params.columns"
|
package/packages/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import Vue from 'vue'
|
|
1
2
|
// 导入组件
|
|
2
3
|
import BaseInput from './BaseInput/index';
|
|
3
4
|
import BaseCheckbox from './BaseCheckbox/index';
|
|
@@ -84,7 +85,6 @@ Vue.use(Contextmenu);
|
|
|
84
85
|
const install = function (Vue) {
|
|
85
86
|
//注册grid组件
|
|
86
87
|
Vue.use(VXETable)
|
|
87
|
-
Vue.use(Contextmenu)
|
|
88
88
|
// 遍历注册全局组件
|
|
89
89
|
components.forEach((component) => {
|
|
90
90
|
Vue.component(component.name, component);
|