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 @@ ...@@ -16,10 +16,8 @@
}, },
"dependencies": { "dependencies": {
"core-js": "^3.6.5", "core-js": "^3.6.5",
"deepcopy": "^2.1.0",
"element-ui": "^2.15.6", "element-ui": "^2.15.6",
"glsx-common": "^1.3.2", "glsx-common": "^1.3.2",
"gulp": "^4.0.2",
"vue": "^2.6.11" "vue": "^2.6.11"
}, },
"devDependencies": { "devDependencies": {
...@@ -27,6 +25,7 @@ ...@@ -27,6 +25,7 @@
"@vue/cli-service": "~4.5.0", "@vue/cli-service": "~4.5.0",
"concurrently": "^7.1.0", "concurrently": "^7.1.0",
"del": "^6.0.0", "del": "^6.0.0",
"gulp": "^4.0.2",
"gulp-autoprefixer": "^8.0.0", "gulp-autoprefixer": "^8.0.0",
"gulp-concat": "^2.6.1", "gulp-concat": "^2.6.1",
"gulp-cssmin": "^0.2.0", "gulp-cssmin": "^0.2.0",
......
...@@ -594,6 +594,7 @@ export default { ...@@ -594,6 +594,7 @@ export default {
type: 'text', type: 'text',
//boolean或者函数 //boolean或者函数
disabled: (row, condition) => { disabled: (row, condition) => {
// console.log(123456)
return 1==1 return 1==1
} }
// disabled: false // disabled: false
......
<script> <script>
import { hasPermission } from '../../Button' import { hasPermission } from '../../Button'
import { objectType } from '../../../utils/index' import { objectType } from '../../../utils/index'
import * as deepcopy from 'deepcopy' import { utils } from "glsx-common";
export default { export default {
name: 'GLTableButton', name: 'GLTableButton',
props: { props: {
...@@ -86,7 +86,7 @@ export default { ...@@ -86,7 +86,7 @@ export default {
const componentList = this.buttonList const componentList = this.buttonList
.map(item => { .map(item => {
//处理attrs中属性为函数情况 //处理attrs中属性为函数情况
item = deepcopy(item) item = utils.deepClone(item)
let attrKeys = item.attrs ? Object.keys(item.attrs) : [] let attrKeys = item.attrs ? Object.keys(item.attrs) : []
if (attrKeys.length > 0) { if (attrKeys.length > 0) {
for (let key of attrKeys) { 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!