Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2024-08-13 15:54:32 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
accf9217e313b6ca93826f0b28f7393c9f13e643
accf9217
1 parent
e8854522
fix 删掉用不到的组件引用
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
src/hooks/useComponentType.js
src/hooks/useComponentType.js
View file @
accf921
...
...
@@ -20,7 +20,7 @@ import IdentityField from '@/components/IdentityField/index.vue'
import
NumberField
from
'@/components/NumberField/index.vue'
import
DesField
from
'@/components/DesField/index.vue'
import
DividerField
from
'@/components/DividerField/index.vue'
import
VideoField
from
'@/components/VideoField/index.vue'
//
import VideoField from '@/components/VideoField/index.vue'
import
MarqueeField
from
'@/components/MarqueeField/index.vue'
import
ContactField
from
'@/components/ContactField/index.vue'
import
RuleField
from
'@/components/RuleField/index.vue'
...
...
@@ -151,10 +151,10 @@ export function createComponentType(data) {
item
.
name
=
item
.
key
;
item
.
component
=
DividerField
;
}
if
(
item
.
component_props
.
tag
===
'video'
)
{
item
.
name
=
item
.
key
;
item
.
component
=
VideoField
;
}
//
if (item.component_props.tag === 'video') {
//
item.name = item.key;
//
item.component = VideoField;
//
}
if
(
item
.
component_props
.
tag
===
'marquee'
)
{
item
.
name
=
item
.
key
;
item
.
component
=
MarqueeField
;
...
...
Please
register
or
login
to post a comment