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
bc3f1ed7
Commit
bc3f1ed7
authored
Sep 19, 2019
by
WuFeiyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加了还没有经过测试的config
parent
171046b8
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
159 additions
and
48 deletions
+159
-48
src/App.vue
src/App.vue
+1
-1
src/components/Config/Config.vue
src/components/Config/Config.vue
+156
-45
src/models/WidgetRef.ts
src/models/WidgetRef.ts
+2
-2
No files found.
src/App.vue
View file @
bc3f1ed7
...
...
@@ -248,7 +248,7 @@ export default class App extends Vue {
var
newWidget
=
new
WidgetRef
();
newWidget
.
widgetComponentName
=
widgetName
;
newWidget
.
ref
=
this
.
lastWidgetIndex
.
toString
();
newWidget
.
y
=
this
.
lastWidgetIndex
*
4
;
newWidget
.
y
=
this
.
lastWidgetIndex
*
6
;
newWidget
.
i
=
Number
(
newWidget
.
ref
);
this
.
lastWidgetIndex
++
;
this
.
widgetList
=
[...
this
.
widgetList
,
newWidget
];
...
...
src/components/Config/Config.vue
View file @
bc3f1ed7
This diff is collapsed.
Click to expand it.
src/models/WidgetRef.ts
View file @
bc3f1ed7
...
...
@@ -9,7 +9,7 @@ export class WidgetRef {
//below is for grid layout
public
x
:
number
=
0
;
public
y
:
number
=
0
;
public
w
:
number
=
4
;
public
h
:
number
=
4
;
public
w
:
number
=
8
;
public
h
:
number
=
6
;
public
i
:
number
=
0
;
}
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