Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bms-vue-obear
Project
Project
Details
Activity
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
daywrite
bms-vue-obear
Commits
1f5ebbda
Commit
1f5ebbda
authored
May 01, 2019
by
daywrite
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复singleRadio使用watch
parent
fd420726
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
11 deletions
+17
-11
singleItemMixin.js
src/components/common/singleItemMixin.js
+17
-11
No files found.
src/components/common/singleItemMixin.js
View file @
1f5ebbda
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
item
:
''
,
timeItem
:
''
,
timeItem
:
''
,
inputSelectItem
:
'rmb'
inputSelectItem
:
'rmb'
}
}
},
},
computed
:
{
// computed: {
item
:
{
// item: {
get
()
{
// set (val) {
return
this
.
formItem
// this.$emit('update:item', val)
},
// }
// }
set
(
val
)
{
// },
this
.
$emit
(
'update:item'
,
val
)
}
}
},
props
:
{
props
:
{
formItem
:
[
Number
,
String
],
formItem
:
[
Number
,
String
],
...
@@ -61,12 +58,21 @@ export default {
...
@@ -61,12 +58,21 @@ export default {
}
}
},
},
watch
:
{
watch
:
{
'formItem'
:
{
handler
(
val
)
{
this
.
item
=
val
},
immediate
:
true
},
'formTimeItem'
(
val
)
{
'formTimeItem'
(
val
)
{
this
.
timeItem
=
val
this
.
timeItem
=
val
},
},
'formInputSelect'
(
val
)
{
'formInputSelect'
(
val
)
{
this
.
inputSelectItem
=
val
this
.
inputSelectItem
=
val
},
},
'item'
(
val
)
{
this
.
$emit
(
'update:item'
,
val
)
},
'timeItem'
(
val
)
{
'timeItem'
(
val
)
{
this
.
$emit
(
'update:item'
,
val
)
this
.
$emit
(
'update:item'
,
val
)
},
},
...
...
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