Commit aeb7c81c by luyt

other:调整deepclone为utils.deepclone

1 parent 525ab68b
This diff could not be displayed because it is too large.
......@@ -16,10 +16,8 @@
},
"dependencies": {
"core-js": "^3.6.5",
"deepcopy": "^2.1.0",
"element-ui": "^2.15.6",
"glsx-common": "^1.3.2",
"gulp": "^4.0.2",
"vue": "^2.6.11"
},
"devDependencies": {
......@@ -27,6 +25,7 @@
"@vue/cli-service": "~4.5.0",
"concurrently": "^7.1.0",
"del": "^6.0.0",
"gulp": "^4.0.2",
"gulp-autoprefixer": "^8.0.0",
"gulp-concat": "^2.6.1",
"gulp-cssmin": "^0.2.0",
......
......@@ -594,6 +594,7 @@ export default {
type: 'text',
//boolean或者函数
disabled: (row, condition) => {
// console.log(123456)
return 1==1
}
// disabled: false
......
<script>
import { hasPermission } from '../../Button'
import { objectType } from '../../../utils/index'
import * as deepcopy from 'deepcopy'
import { utils } from "glsx-common";
export default {
name: 'GLTableButton',
props: {
......@@ -86,7 +86,7 @@ export default {
const componentList = this.buttonList
.map(item => {
//处理attrs中属性为函数情况
item = deepcopy(item)
item = utils.deepClone(item)
let attrKeys = item.attrs ? Object.keys(item.attrs) : []
if (attrKeys.length > 0) {
for (let key of attrKeys) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!