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
96db0cef
Commit
96db0cef
authored
Sep 19, 2019
by
WuFeiyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wigdetParams显示有误
parent
4bfab758
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
16 deletions
+14
-16
src/App.vue
src/App.vue
+3
-3
src/components/Common/WidgetParams.vue
src/components/Common/WidgetParams.vue
+11
-13
No files found.
src/App.vue
View file @
96db0cef
...
@@ -83,7 +83,7 @@ import Thing from "./components/Thing/Thing.vue";
...
@@ -83,7 +83,7 @@ import Thing from "./components/Thing/Thing.vue";
})
})
export
default
class
App
extends
Vue
{
export
default
class
App
extends
Vue
{
widgetList
:
WidgetRef
[]
=
[];
widgetList
:
WidgetRef
[]
=
[];
fileName
:
string
=
"
config
.json
"
;
fileName
:
string
=
"
widgetTemplate
.json
"
;
private
lastWidgetIndex
:
number
=
0
;
private
lastWidgetIndex
:
number
=
0
;
isShowAddWidget
:
Boolean
=
false
;
isShowAddWidget
:
Boolean
=
false
;
text
:
string
=
""
;
text
:
string
=
""
;
...
@@ -105,8 +105,8 @@ export default class App extends Vue {
...
@@ -105,8 +105,8 @@ export default class App extends Vue {
}
}
mounted
()
{
mounted
()
{
//
var fragment = window.location.hash;
var
fragment
=
window
.
location
.
hash
;
var
fragment
=
"
#/card0
"
;
//
var fragment = "#/card0";
console
.
log
(
fragment
);
console
.
log
(
fragment
);
if
(
fragment
!=
"
#
"
)
{
if
(
fragment
!=
"
#
"
)
{
fragment
=
fragment
.
substring
(
1
,
fragment
.
length
);
fragment
=
fragment
.
substring
(
1
,
fragment
.
length
);
...
...
src/components/Common/WidgetParams.vue
View file @
96db0cef
<
template
>
<
template
>
<div
style=
"margin-left: 0px"
>
<div
style=
"width:100%"
>
<div
v-for=
"(label, index) in userInputData.keys()"
:key=
"index"
class=
"col-md-3"
>
<div
v-for=
"(label, index) in userInputData.keys()"
:key=
"index"
>
<div
class=
"input-group"
>
<b-input-group
style=
"margin:5px"
>
<span
class=
"input-group-addon"
>
{{
label
}}
</span>
<template
v-slot:prepend
>
<input
v-model=
"tempUserInputData[label]"
type=
"text"
class=
"form-control"
/>
<b-input-group-text
class=
"smallFont"
>
{{
label
}}
</b-input-group-text>
</div>
</
template
>
<b-form-input
class=
"smallFont"
v-model=
"tempUserInputData[label]"
></b-form-input>
</b-input-group>
</div>
</div>
<div
class=
"col-md-1
"
>
<div
style=
"width:auto;margin:5px
"
>
<b
utton
type=
"button"
class=
"btn btn-primary btn-mid"
@
click=
"update"
>
<b
-button
variant=
"primary"
@
click=
"update"
>
<b>
{{ action }}
</b>
<b>
{{ action }}
</b>
<span
class=
"glyphicon glyphicon-save"
></span>
<span
class=
"glyphicon glyphicon-save"
></span>
</button>
</b
-b
utton>
</div>
</div>
</div>
</div>
</template>
</template>
<
script
lang=
"ts"
>
<
script
lang=
"ts"
>
import
{
Component
,
Prop
,
Vue
,
Watch
,
Emit
}
from
'
vue-property-decorator
'
;
import
{
Component
,
Prop
,
Vue
,
Watch
,
Emit
}
from
'
vue-property-decorator
'
;
import
{
UpdatePayload
}
from
'
../../models/UpdatePayload
'
;
import
{
UpdatePayload
}
from
'
../../models/UpdatePayload
'
;
...
@@ -61,7 +61,5 @@ export default class WidgetParams extends Vue{
...
@@ -61,7 +61,5 @@ export default class WidgetParams extends Vue{
}
}
this
.
$emit
(
'
updataVariables
'
,
Args
)
this
.
$emit
(
'
updataVariables
'
,
Args
)
}
}
}
}
</
script
>
</
script
>
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