forked from nmxiaowei/avue
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
43 changed files
with
2,613 additions
and
1,546 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ | |
|
||
<body> | ||
<div id="app"> | ||
{{obj}} | ||
<avue-form :option="option" v-model="obj"></avue-form> | ||
</div> | ||
</body> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<!DOCTYPE html> | ||
|
||
<html class="no-js"> | ||
|
||
<head> | ||
<meta charset="utf-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<title></title> | ||
<meta name="description" content="" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<script | ||
src="https://webapi.amap.com/maps?v=1.4.11&key=7ab53b28352e55dc5754699add0ad862&plugin=AMap.PlaceSearch"></script> | ||
<script src="https://webapi.amap.com/ui/1.0/main.js?v=1.0.11"></script> | ||
<script src="https://cdn.staticfile.org/axios/0.19.0-beta.1/axios.js"></script> | ||
<script src="https://cdn.staticfile.org/vue/2.5.17/vue.js"></script> | ||
<link rel="stylesheet" href="https://cdn.staticfile.org/element-ui/2.13.0/theme-chalk/index.css" /> | ||
<script src="https://cdn.staticfile.org/element-ui/2.13.0/index.js"></script> | ||
<link rel="stylesheet" href="../../../lib/index.css" /> | ||
<script src="../../../lib/avue.js"></script> | ||
</head> | ||
|
||
<body> | ||
<div id="app"> | ||
{{obj}} | ||
<avue-form :option="option" v-model="obj"></avue-form> | ||
</div> | ||
</body> | ||
<script> | ||
new Vue({ | ||
el: '#app', | ||
data() { | ||
return { | ||
obj: { | ||
icon: '' | ||
}, | ||
option: { | ||
column: [ | ||
{ | ||
label: '图标', | ||
prop: 'icon', | ||
type: 'icon', | ||
iconList: [{ | ||
label: '基本图标', | ||
list: [{ | ||
label: '名称1', | ||
value: 'el-icon-info' | ||
}, { | ||
label: '名称2', | ||
value: 'el-icon-error' | ||
}, { | ||
label: '名称3', | ||
value: 'el-icon-success' | ||
}, { | ||
label: '名称4', | ||
value: 'el-icon-warning' | ||
}, { | ||
label: '名称5', | ||
value: 'el-icon-question' | ||
}] | ||
}, { | ||
label: '方向图标', | ||
list: ['el-icon-info', 'el-icon-back', 'el-icon-arrow-left', 'el-icon-arrow-down', 'el-icon-arrow-right', 'el-icon-arrow-up'] | ||
}, { | ||
label: '符号图标', | ||
list: ['el-icon-plus', 'el-icon-minus', 'el-icon-close', 'el-icon-check'] | ||
}, { | ||
label: '阿里云图标', | ||
list: ['icon-zhongyingwen', 'icon-rizhi1', 'icon-bug', 'icon-qq1', 'icon-weixin1'] | ||
}], | ||
rules: [ | ||
{ | ||
required: true, | ||
message: '请选择地图', | ||
trigger: 'change' | ||
} | ||
] | ||
}, | ||
] | ||
} | ||
} | ||
} | ||
}) | ||
</script> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<!DOCTYPE html> | ||
|
||
<html class="no-js"> | ||
|
||
<head> | ||
<meta charset="utf-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<title></title> | ||
<meta name="description" content="" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<script | ||
src="https://webapi.amap.com/maps?v=1.4.11&key=7ab53b28352e55dc5754699add0ad862&plugin=AMap.PlaceSearch"></script> | ||
<script src="https://webapi.amap.com/ui/1.0/main.js?v=1.0.11"></script> | ||
<script src="https://cdn.staticfile.org/axios/0.19.0-beta.1/axios.js"></script> | ||
<script src="https://cdn.staticfile.org/vue/2.5.17/vue.js"></script> | ||
<link rel="stylesheet" href="https://cdn.staticfile.org/element-ui/2.13.0/theme-chalk/index.css" /> | ||
<script src="https://cdn.staticfile.org/element-ui/2.13.0/index.js"></script> | ||
<link rel="stylesheet" href="../../../lib/index.css" /> | ||
<script src="../../../lib/avue.js"></script> | ||
</head> | ||
|
||
<body> | ||
<div id="app"> | ||
{{obj}} | ||
<avue-form :option="option" v-model="obj"></avue-form> | ||
</div> | ||
</body> | ||
<script> | ||
new Vue({ | ||
el: '#app', | ||
data() { | ||
return { | ||
obj: { | ||
map: '113.12209610000252,41.03928506034977, 内蒙古自治区乌兰察布市集宁区前进路街道新体大街航天小区' | ||
}, | ||
option: { | ||
column: [ | ||
{ | ||
label: '地图', | ||
prop: 'map', | ||
type: 'map', | ||
rules: [ | ||
{ | ||
required: true, | ||
message: '请选择地图', | ||
trigger: 'change' | ||
} | ||
] | ||
}] | ||
} | ||
} | ||
} | ||
}) | ||
</script> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<!DOCTYPE html> | ||
|
||
<html class="no-js"> | ||
|
||
<head> | ||
<meta charset="utf-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<title></title> | ||
<meta name="description" content="" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<script src="https://cdn.staticfile.org/axios/0.19.0-beta.1/axios.js"></script> | ||
<script src="https://cdn.staticfile.org/vue/2.5.17/vue.js"></script> | ||
<link rel="stylesheet" href="https://cdn.staticfile.org/element-ui/2.13.0/theme-chalk/index.css" /> | ||
<script src="https://cdn.staticfile.org/element-ui/2.13.0/index.js"></script> | ||
|
||
<link rel="stylesheet" href="../../../lib/index.css" /> | ||
<script src="../../../lib/avue.js"></script> | ||
</head> | ||
|
||
<body> | ||
<div id="app"> | ||
{{form}} | ||
<avue-form :option="option" v-model="form"></avue-form> | ||
</div> | ||
</body> | ||
<script> | ||
let baseUrl = 'https://cli.avuejs.com/api/area' | ||
new Vue({ | ||
el: '#app', | ||
data() { | ||
return { | ||
form: { | ||
province: ['110000', '130000', '120000', '140000'], | ||
}, | ||
option: { | ||
column: [ | ||
{ | ||
label: '省份', | ||
prop: 'province', | ||
type: 'select', | ||
remote: true, | ||
multiple: true, | ||
props: { | ||
label: 'name', | ||
value: 'code' | ||
}, | ||
dicUrl: `${baseUrl}/getProvince?id={{key}}`, | ||
rules: [ | ||
{ | ||
required: true, | ||
message: '请选择省份', | ||
trigger: 'blur' | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
}) | ||
</script> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.