Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
jinhu.tung
9 years ago
Commit
4ea475465bdd35cde7026f559c37bd02084569af
1 parent
13f73641
add manual for plugins
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
10 deletions
apps/partial/views/action/index.hbs
public/js/plugins/README.md
apps/partial/views/action/index.hbs
View file @
4ea4754
...
...
@@ -100,16 +100,6 @@
<p
class=
"title"
>
9. 分页组件
</p>
<div
style=
"border: 1px solid #000; height: 200px; padding: 5px;"
>
<pre>
全局安装json-server
npm i -g json-server
启动
json-server --watch mock/address.json
</pre>
{{{
pagination
paginationOpts
}}}
</div>
...
...
@@ -161,6 +151,7 @@
<p
style=
"margin-top: 20px;"
>
14. 区域/选择地址组件
</p>
<div
style=
"padding: 5px; height: 300px;"
>
<p>
使用手册详见yohoblk/public/js/plugins/README.md
</p>
<div
id=
"address"
></div>
</div>
...
...
public/js/plugins/README.md
0 → 100644
View file @
4ea4754
### 组件使用手册
1.
地址选择组件
全局安装json-server模拟服务端返回数据
npm i -g json-server
启动
json-server --watch mock/address.json
API使用:
var address = cascadingAddress({
el: '#address',
url: 'http://localhost:3000/areas/0',
resource: 'areas'
});
获取选择地址文本:
address.getAreaLabels()
获取选择地址areaId:
address.getAreaIds()
设置地址:
address.setAddress({
province: '32', // 省
city: '3201', // 市
dist: '320102' // 区县
});
开发者: 董金虎
...
...
Please
register
or
login
to post a comment