Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gic-store-group
Overview
Overview
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
vue-plugins
vue-gic-store-group
Commits
bf0fc5a9
Commit
bf0fc5a9
authored
Sep 17, 2018
by
zhangmeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add preview
parent
e90096eb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
11 deletions
+17
-11
README.md
README.md
+17
-11
1.jpg
preview/1.jpg
+0
-0
No files found.
README.md
View file @
bf0fc5a9
# vue 插件—-门店
选择联动
# vue 插件—-门店
分组单选组件
<<<<<<< HEAD
<<<<<<< HEAD
> A Vue.js Store select Plugin
> A Vue.js Store Group Plugin

## Install
## Install
```
shell
```
shell
npm install @gic-test/vue-gic-store-
linkage
-S
npm install @gic-test/vue-gic-store-
group
-S
```
```
## how to use
## how to use
```
```
// main.js
// main.js
import vueGicStore
Linkage from '@gic-test/vue-gic-store-linkage
'
import vueGicStore
Group from '@gic-test/vue-gic-store-group
'
Vue.use(vueGicStore
Linkage
)
Vue.use(vueGicStore
Group
)
// 使用页面
// 使用页面
<vue-gic-store-
linkage :msg="sendChildData" ref="selectTree" @sendSelectGroupData="getSelectGroupData"></vue-gic-store-linkage
>
<vue-gic-store-
group :model="storeGroupData" width="200" placeholder="请选择门店分组" @commit-store="getStoreData"></vue-gic-store-group
>
data() {
data() {
return {
return {
// 可传参数
// 可传参数 初始化的数据,回显的数据
sendChildData:{}, // 向子元素传递的对象
storeGroupData:{
id:'',
label:''
},
//控件的宽度 默认为200,可不传
width:'200'
}
}
}
}
methods: {
methods: {
//获得
子元素传递的
数据
//获得数据
getS
electGroupData(
) {
getS
toreData(val
) {
console.log(val)
console.log(val)
}
}
},
},
...
...
preview/1.jpg
0 → 100644
View file @
bf0fc5a9
46.1 KB
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