Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
H
hs-sky-ui
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
何虹
hs-sky-ui
Commits
4e0d53b9
Commit
4e0d53b9
authored
Apr 23, 2020
by
何虹
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
参照
parent
a4aa6a49
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
440 additions
and
349 deletions
+440
-349
HelloWorld.vue
src/components/HelloWorld.vue
+80
-27
index.vue
src/packages/hs-select-plus/index.vue
+360
-322
No files found.
src/components/HelloWorld.vue
View file @
4e0d53b9
<
template
>
<
template
>
<div
class=
"hello"
>
<div
style=
"width:500px"
>
<hsInput></hsInput>
<hsSelectPlus
<hsTable></hsTable>
ref=
'select'
:allSourceData=
'allSourceData'
></hsSelectPlus>
<el-button
@
click=
"change1"
>
change1
</el-button>
<el-button
@
click=
"change2"
>
change2
</el-button>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
name
:
'HelloWorld'
,
data
()
{
props
:
{
return
{
msg
:
String
allSourceData
:
{
config
:
{
url
:
""
,
proxyTag
:
"commonUtilAPI"
,
ref
:
{
const_id
:
"0"
,
table_name
:
"im_store_group"
,
columns
:
"id,name"
,
remote_condition
:
""
,
displayfield
:
""
,
writebackfield
:
[]
},
dyncQueryParms
:
{},
multiple
:
false
,
disabled
:
false
,
size
:
"mini"
,
clearable
:
true
,
title
:
"标题"
,
placeholder
:
"请选择"
,
value
:
"id"
,
label
:
"name"
,
is_computed
:
false
},
sourceData
:
[]
},
show
:
false
,
config
:
{
url
:
""
,
proxyTag
:
"commonUtilAPI"
,
ref
:
{
const_id
:
"0"
,
table_name
:
"im_store_group"
,
columns
:
"id,name"
,
remote_condition
:
""
,
displayfield
:
""
,
writebackfield
:
[]
},
dyncQueryParms
:
{},
multiple
:
false
,
disabled
:
false
,
size
:
"mini"
,
clearable
:
true
,
title
:
"标题"
,
placeholder
:
"请选择"
,
value
:
"id"
,
label
:
"name"
,
is_computed
:
false
}
};
},
mounted
()
{
this
.
init
();
},
methods
:
{
change1
(){
this
.
allSourceData
.
sourceData
=
[{
value
:
1
,
label
:
2
}]
},
change2
(){
this
.
allSourceData
.
sourceData
=
[{
value
:
2
,
label
:
3
}]
},
init
()
{
// this.getData();
},
async
getData
()
{
const
data
=
await
this
.
get_options
(
this
.
config
);
//this.allSourceData.config=this.config
this
.
allSourceData
.
sourceData
=
data
}
}
}
}
};
</
script
>
</
script
>
\ No newline at end of file
<!-- Add "scoped" attribute to limit CSS to this component only -->
<
style
scoped
>
h3
{
margin
:
40px
0
0
;
}
ul
{
list-style-type
:
none
;
padding
:
0
;
}
li
{
display
:
inline-block
;
margin
:
0
10px
;
}
a
{
color
:
#42b983
;
}
</
style
>
src/packages/hs-select-plus/index.vue
View file @
4e0d53b9
This diff is collapsed.
Click to expand it.
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