Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
W
WidgetUI
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
WuFeiyang
WidgetUI
Commits
8f2d40e9
Commit
8f2d40e9
authored
Oct 29, 2019
by
WuFeiyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加了延时更新
parent
86ce3a91
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
35 additions
and
18 deletions
+35
-18
src/components/AutoBroadcast/AutoBroadcast.vue
src/components/AutoBroadcast/AutoBroadcast.vue
+21
-4
src/components/Config/Config.vue
src/components/Config/Config.vue
+2
-2
src/components/Method/Method.vue
src/components/Method/Method.vue
+2
-2
src/components/SlideShow/SlideShow.vue
src/components/SlideShow/SlideShow.vue
+2
-2
src/components/State/State.vue
src/components/State/State.vue
+2
-2
src/components/Status/Status.vue
src/components/Status/Status.vue
+2
-2
src/components/Thing/Thing.vue
src/components/Thing/Thing.vue
+2
-2
src/components/VarBroadcast/VarBroadcast.vue
src/components/VarBroadcast/VarBroadcast.vue
+2
-2
No files found.
src/components/AutoBroadcast/AutoBroadcast.vue
View file @
8f2d40e9
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
<b-container
class=
"bv-example-row"
>
<b-container
class=
"bv-example-row"
>
<b-row
style=
"margin-top:10px"
>
<b-row
style=
"margin-top:10px"
>
<b-col>
<b-col>
<span
style=
"float:left;"
v-show =
"!isShowPath"
class=
"
small
Font"
v-if =
"config.data.displayname != ''"
>
{{
config
.
data
.
displayname
}}
</span>
<span
style=
"float:left;"
v-show =
"!isShowPath"
class=
"
large
Font"
v-if =
"config.data.displayname != ''"
>
{{
config
.
data
.
displayname
}}
</span>
<span
style=
"float:left;"
v-show =
"!isShowPath"
class=
"
small
Font"
v-if =
"config.data.displayname == ''"
>
{{
config
.
data
.
url
}}
</span>
<span
style=
"float:left;"
v-show =
"!isShowPath"
class=
"
large
Font"
v-if =
"config.data.displayname == ''"
>
{{
config
.
data
.
url
}}
</span>
<b-form-input
v-show=
"isShowPath"
v-model=
"config.data.displayname"
></b-form-input>
<b-form-input
v-show=
"isShowPath"
v-model=
"config.data.displayname"
></b-form-input>
</b-col>
</b-col>
<b-col>
<b-col>
...
@@ -60,6 +60,8 @@
...
@@ -60,6 +60,8 @@
</b-col>
</b-col>
</b-row>
</b-row>
<br
/>
<b-row>
<b-row>
<b-col>
<b-col>
<b-input-group
size=
"lg"
prepend=
"BroadcastValue"
v-show=
"isShowPath"
>
<b-input-group
size=
"lg"
prepend=
"BroadcastValue"
v-show=
"isShowPath"
>
...
@@ -71,6 +73,16 @@
...
@@ -71,6 +73,16 @@
</b-col>
</b-col>
</b-row>
</b-row>
<br
/>
<b-row>
<b-col>
<b-input-group
size=
"lg"
prepend=
"DelayTime"
v-show=
"isShowPath"
append=
"ms"
>
<b-form-input
v-model=
"delayTime"
></b-form-input>
</b-input-group>
</b-col>
</b-row>
<br
/>
<br
/>
<b-row>
<b-row>
<b-col>
<b-col>
...
@@ -118,6 +130,7 @@ export default class AutoBroadcast extends Widget {
...
@@ -118,6 +130,7 @@ export default class AutoBroadcast extends Widget {
isShowParams
:
boolean
=
false
;
isShowParams
:
boolean
=
false
;
autoUpdateName
:
string
=
""
;
autoUpdateName
:
string
=
""
;
autoUpdateValue
:
string
=
""
;
autoUpdateValue
:
string
=
""
;
delayTime
:
number
=
0
;
config
:
WidgetConfig
=
{
config
:
WidgetConfig
=
{
WidgetComponentName
:
"
AutoBroadcast
"
,
WidgetComponentName
:
"
AutoBroadcast
"
,
...
@@ -260,8 +273,10 @@ export default class AutoBroadcast extends Widget {
...
@@ -260,8 +273,10 @@ export default class AutoBroadcast extends Widget {
variables
:
autoUpdateData
,
variables
:
autoUpdateData
,
target
:[
'
self
'
]
target
:[
'
self
'
]
}
}
PubSub
.
publish
(
'
VarBroadcast
'
,
autoUpdate
);
PubSub
.
publish
(
'
VarBroadcast
'
,
autoUpdate
);
this
.
preStatusValue
=
this
.
autoUpdateValue
;
this
.
preStatusValue
=
this
.
autoUpdateValue
;
}
}
}
}
...
@@ -286,8 +301,10 @@ export default class AutoBroadcast extends Widget {
...
@@ -286,8 +301,10 @@ export default class AutoBroadcast extends Widget {
variables
:
autoUpdateData
,
variables
:
autoUpdateData
,
target
:[
'
self
'
]
target
:[
'
self
'
]
}
}
PubSub
.
publish
(
'
VarBroadcast
'
,
autoUpdate
);
setTimeout
(()
=>
{
this
.
preStatusValue
=
this
.
StatusValue
;
PubSub
.
publish
(
'
VarBroadcast
'
,
autoUpdate
);
this
.
preStatusValue
=
this
.
autoUpdateValue
;
},
this
.
delayTime
);
}
}
}
}
}
}
...
...
src/components/Config/Config.vue
View file @
8f2d40e9
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
<b-container
class=
"bv-example-row"
>
<b-container
class=
"bv-example-row"
>
<b-row
style=
"margin-top:10px"
>
<b-row
style=
"margin-top:10px"
>
<b-col>
<b-col>
<span
style=
"float:left;"
v-show =
"!isShowPath"
class=
"
small
Font"
v-if =
"config.data.displayname != ''"
>
{{
config
.
data
.
displayname
}}
</span>
<span
style=
"float:left;"
v-show =
"!isShowPath"
class=
"
large
Font"
v-if =
"config.data.displayname != ''"
>
{{
config
.
data
.
displayname
}}
</span>
<span
style=
"float:left;"
v-show =
"!isShowPath"
class=
"
small
Font"
v-if =
"config.data.displayname == ''"
>
{{
config
.
data
.
get
.
url
}}
</span>
<span
style=
"float:left;"
v-show =
"!isShowPath"
class=
"
large
Font"
v-if =
"config.data.displayname == ''"
>
{{
config
.
data
.
get
.
url
}}
</span>
<b-form-input
v-show=
"isShowPath"
v-model=
"config.data.displayname"
></b-form-input>
<b-form-input
v-show=
"isShowPath"
v-model=
"config.data.displayname"
></b-form-input>
</b-col>
</b-col>
<b-col>
<b-col>
...
...
src/components/Method/Method.vue
View file @
8f2d40e9
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
<b-container
class=
"bv-example-row"
>
<b-container
class=
"bv-example-row"
>
<b-row
style=
"margin-top:10px"
>
<b-row
style=
"margin-top:10px"
>
<b-col>
<b-col>
<span
style=
"float:left;"
v-show =
"!isShowPath"
class=
"
small
Font"
v-if =
"config.data.displayname != ''"
>
{{
config
.
data
.
displayname
}}
</span>
<span
style=
"float:left;"
v-show =
"!isShowPath"
class=
"
large
Font"
v-if =
"config.data.displayname != ''"
>
{{
config
.
data
.
displayname
}}
</span>
<span
style=
"float:left;"
v-show =
"!isShowPath"
class=
"
small
Font"
v-if =
"config.data.displayname == ''"
>
{{
config
.
data
.
url
}}
</span>
<span
style=
"float:left;"
v-show =
"!isShowPath"
class=
"
large
Font"
v-if =
"config.data.displayname == ''"
>
{{
config
.
data
.
url
}}
</span>
<b-form-input
v-show=
"isShowPath"
v-model=
"config.data.displayname"
></b-form-input>
<b-form-input
v-show=
"isShowPath"
v-model=
"config.data.displayname"
></b-form-input>
</b-col>
</b-col>
<b-col>
<b-col>
...
...
src/components/SlideShow/SlideShow.vue
View file @
8f2d40e9
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
<b-container
class=
"bv-example-row"
>
<b-container
class=
"bv-example-row"
>
<b-row
style=
"margin-top:10px"
>
<b-row
style=
"margin-top:10px"
>
<b-col>
<b-col>
<span
style=
"float:left;"
size=
"lg"
v-show =
"!isShowPath"
class=
"
small
Font"
v-if =
"config.data.displayname != ''"
>
{{
config
.
data
.
displayname
}}
</span>
<span
style=
"float:left;"
size=
"lg"
v-show =
"!isShowPath"
class=
"
large
Font"
v-if =
"config.data.displayname != ''"
>
{{
config
.
data
.
displayname
}}
</span>
<span
style=
"float:left;"
size=
"lg"
v-show =
"!isShowPath"
class=
"
small
Font"
v-if =
"config.data.displayname == ''"
>
{{
config
.
data
.
url
}}
</span>
<span
style=
"float:left;"
size=
"lg"
v-show =
"!isShowPath"
class=
"
large
Font"
v-if =
"config.data.displayname == ''"
>
{{
config
.
data
.
url
}}
</span>
<b-form-input
v-show=
"isShowPath"
v-model=
"config.data.displayname"
></b-form-input>
<b-form-input
v-show=
"isShowPath"
v-model=
"config.data.displayname"
></b-form-input>
</b-col>
</b-col>
<b-col>
<b-col>
...
...
src/components/State/State.vue
View file @
8f2d40e9
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
<b-container
class=
"bv-example-row"
>
<b-container
class=
"bv-example-row"
>
<b-row
style=
"margin-top:10px"
>
<b-row
style=
"margin-top:10px"
>
<b-col>
<b-col>
<span
style=
"float:left;"
v-show =
"!isShowPath"
class=
"
small
Font"
v-if =
"config.data.displayname != ''"
>
{{
config
.
data
.
displayname
}}
</span>
<span
style=
"float:left;"
v-show =
"!isShowPath"
class=
"
large
Font"
v-if =
"config.data.displayname != ''"
>
{{
config
.
data
.
displayname
}}
</span>
<span
style=
"float:left;"
v-show =
"!isShowPath"
class=
"
small
Font"
v-if =
"config.data.displayname == ''"
>
{{
config
.
data
.
url
}}
</span>
<span
style=
"float:left;"
v-show =
"!isShowPath"
class=
"
large
Font"
v-if =
"config.data.displayname == ''"
>
{{
config
.
data
.
url
}}
</span>
<b-form-input
v-show=
"isShowPath"
v-model=
"config.data.displayname"
></b-form-input>
<b-form-input
v-show=
"isShowPath"
v-model=
"config.data.displayname"
></b-form-input>
</b-col>
</b-col>
<b-col>
<b-col>
...
...
src/components/Status/Status.vue
View file @
8f2d40e9
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
<b-container
class=
"bv-example-row"
>
<b-container
class=
"bv-example-row"
>
<b-row
style=
"margin-top:10px"
>
<b-row
style=
"margin-top:10px"
>
<b-col>
<b-col>
<span
style=
"float:left;"
v-show =
"!isShowPath"
class=
"
small
Font"
v-if =
"config.data.displayname != ''"
>
{{
config
.
data
.
displayname
}}
</span>
<span
style=
"float:left;"
v-show =
"!isShowPath"
class=
"
large
Font"
v-if =
"config.data.displayname != ''"
>
{{
config
.
data
.
displayname
}}
</span>
<span
style=
"float:left;"
v-show =
"!isShowPath"
class=
"
small
Font"
v-if =
"config.data.displayname == ''"
>
{{
config
.
data
.
url
}}
</span>
<span
style=
"float:left;"
v-show =
"!isShowPath"
class=
"
large
Font"
v-if =
"config.data.displayname == ''"
>
{{
config
.
data
.
url
}}
</span>
<b-form-input
v-show=
"isShowPath"
v-model=
"config.data.displayname"
></b-form-input>
<b-form-input
v-show=
"isShowPath"
v-model=
"config.data.displayname"
></b-form-input>
</b-col>
</b-col>
<b-col>
<b-col>
...
...
src/components/Thing/Thing.vue
View file @
8f2d40e9
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
<b-container
class=
"bv-example-row"
>
<b-container
class=
"bv-example-row"
>
<b-row
style=
"margin-top:10px"
>
<b-row
style=
"margin-top:10px"
>
<b-col>
<b-col>
<span
style=
"float:left;"
v-show =
"!isShowPath"
class=
"
small
Font"
v-if =
"config.data.displayname != ''"
>
{{
config
.
data
.
displayname
}}
</span>
<span
style=
"float:left;"
v-show =
"!isShowPath"
class=
"
large
Font"
v-if =
"config.data.displayname != ''"
>
{{
config
.
data
.
displayname
}}
</span>
<span
style=
"float:left;"
v-show =
"!isShowPath"
class=
"
small
Font"
v-if =
"config.data.displayname == ''"
>
{{
config
.
data
.
url
}}
</span>
<span
style=
"float:left;"
v-show =
"!isShowPath"
class=
"
large
Font"
v-if =
"config.data.displayname == ''"
>
{{
config
.
data
.
url
}}
</span>
<b-form-input
v-show=
"isShowPath"
v-model=
"config.data.displayname"
></b-form-input>
<b-form-input
v-show=
"isShowPath"
v-model=
"config.data.displayname"
></b-form-input>
</b-col>
</b-col>
<b-col>
<b-col>
...
...
src/components/VarBroadcast/VarBroadcast.vue
View file @
8f2d40e9
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
<b-container
class=
"bv-example-row"
>
<b-container
class=
"bv-example-row"
>
<b-row
style=
"margin-top:10px"
>
<b-row
style=
"margin-top:10px"
>
<b-col>
<b-col>
<span
style=
"float:left;"
v-show =
"!isShowPath"
class=
"
small
Font"
v-if =
"config.data.displayname != ''"
>
{{
config
.
data
.
displayname
}}
</span>
<span
style=
"float:left;"
v-show =
"!isShowPath"
class=
"
large
Font"
v-if =
"config.data.displayname != ''"
>
{{
config
.
data
.
displayname
}}
</span>
<span
style=
"float:left;"
v-show =
"!isShowPath"
class=
"
small
Font"
v-if =
"config.data.displayname == ''"
>
{{
config
.
data
.
url
}}
</span>
<span
style=
"float:left;"
v-show =
"!isShowPath"
class=
"
large
Font"
v-if =
"config.data.displayname == ''"
>
{{
config
.
data
.
url
}}
</span>
<b-form-input
v-show=
"isShowPath"
v-model=
"config.data.displayname"
></b-form-input>
<b-form-input
v-show=
"isShowPath"
v-model=
"config.data.displayname"
></b-form-input>
</b-col>
</b-col>
<b-col>
<b-col>
...
...
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