代码拉取完成,页面将自动刷新
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>Element UI 扩展</title>
<link href="./wwwroot/elementui/index.min.css" rel="stylesheet" />
<style scoped>
</style>
</head>
<body>
<div id="main" v-cloak>
<el-main>
<el-extend-search :load-data="handleLoadData" :add="handleAdd" :filter-json="filterJson"
:show-search="true"
:show-add="true"
:show-refresh="true"
></el-extend-search>
</el-main>
</div>
<script type="text/javascript" src="./wwwroot/vue/vue.js?v=2.0"></script>
<script type="text/javascript" src="./wwwroot/vue/vue-i18n.min.js?v=2.0"></script>
<script type="text/javascript" src="./wwwroot/elementui/index.min.js"></script>
<script type="text/javascript" src="./wwwroot/vue/axios.min.min.js"></script>
<script>
var $taskVue = new Vue({
el: "#main",
data() {
return {
filterJson: [
{
"type": "input",
"label": "大大姓名",
"prop": "name",
"default": ""
},
{
"type": "select",
"label": "性别",
"prop": "gender",
"default": null,
"options": [
{ "label": "男", "value": "male" },
{ "label": "女", "value": "female" }
]
},
{
"type": "switch",
"label": "是否同意",
"prop": "isAgree",
"default": false
},
{
"type": "datetimepicker",
"label": "预约时间",
"prop": "appointmentTime",
"default": null,
"placeholder": "请选择预约时间",
"format": "yyyy-MM-dd HH:mm:ss",
"valueFormat": "yyyy-MM-dd HH:mm:ss",
"dateTimePickerType": "datetime"
},
{
"type": "radio",
"label": "爱好",
"prop": "hobby",
"default": undefined,
"options": [
{ "label": "足球", "value": "soccer" },
{ "label": "篮球", "value": "basketball" }
]
},
{
"type": "checkbox",
"label": "技能",
"prop": "skills",
"default": [],
"options": [
{ "label": "编程", "value": "coding" },
{ "label": "设计", "value": "design" },
{ "label": "测试", "value": "test" },
{ "label": "部署", "value": "uat" },
]
}
],
}
},
created() {
},
methods: {
handleAdd() { },
handleLoadData(data) {
console.log(data)
}
},
filters: {
}
});
</script>
</body>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。