Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-easy-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
easyUI
hls-easy-ui
Commits
8fa33570
Commit
8fa33570
authored
Aug 26, 2020
by
JingChao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
field组件
parent
7f91df80
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
94 additions
and
96 deletions
+94
-96
OptionButton.vue
packages/components/ItemOption/OptionButton.vue
+1
-2
index.vue
packages/components/ItemOption/index.vue
+93
-93
demo.vue
src/pages/ItemOption/demo.vue
+0
-1
No files found.
packages/components/ItemOption/OptionButton.vue
View file @
8fa33570
<
template
>
<
template
>
<div
:class=
"type"
class=
"function"
@
touchstart
=
"itemClick"
>
{{
text
}}
</div>
<div
:class=
"type"
class=
"function"
@
click
=
"itemClick"
>
{{
text
}}
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -23,7 +23,6 @@ export default {
...
@@ -23,7 +23,6 @@ export default {
},
},
methods
:
{
methods
:
{
itemClick
(
e
)
{
itemClick
(
e
)
{
e
.
preventDefault
()
this
.
$parent
&&
this
.
$parent
.
reset
()
this
.
$parent
&&
this
.
$parent
.
reset
()
},
},
},
},
...
...
packages/components/ItemOption/index.vue
View file @
8fa33570
...
@@ -13,9 +13,9 @@
...
@@ -13,9 +13,9 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
optionButton
from
'./OptionButton'
import
optionButton
from
'./OptionButton'
export
default
{
export
default
{
name
:
'ItemOption'
,
name
:
'ItemOption'
,
components
:
{
optionButton
},
components
:
{
optionButton
},
props
:
{
props
:
{
...
@@ -113,7 +113,7 @@
...
@@ -113,7 +113,7 @@
}
}
},
},
},
},
}
}
</
script
>
</
script
>
<
style
lang=
"less"
scoped
type=
"text/less"
>
<
style
lang=
"less"
scoped
type=
"text/less"
>
...
...
src/pages/ItemOption/demo.vue
View file @
8fa33570
...
@@ -45,7 +45,6 @@ export default {
...
@@ -45,7 +45,6 @@ export default {
methods
:
{
methods
:
{
deleteFun
(
index
)
{
deleteFun
(
index
)
{
this
.
colors
.
remove
(
index
)
this
.
colors
.
remove
(
index
)
// this.$refs.option[index].reset()
this
.
colors
.
sort
()
this
.
colors
.
sort
()
},
},
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment