Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
npm
/
glsx-components
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit aeb7c81c
authored
Jun 20, 2022
by
luyt
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
other:调整deepclone为utils.deepclone
1 parent
525ab68b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
package-lock.json
package.json
src/App.vue
src/packages/GlTableButton/src/index.vue
package-lock.json
View file @
aeb7c81
This diff could not be displayed because it is too large.
package.json
View file @
aeb7c81
...
@@ -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"
,
...
...
src/App.vue
View file @
aeb7c81
...
@@ -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
...
...
src/packages/GlTableButton/src/index.vue
View file @
aeb7c81
<
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
)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment