image.pngelementui日期插件和vue结合
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<script src="vue.js"></script>
<script src="elementui/index.js"></script>
<link rel="stylesheet" type="text/css" href="elementui/index.css">
</head>
<body>
<div id="box">
<el-date-picker
v-model="value2"
align="right"
type="date"
placeholder="选择日期"
:picker-options="pickerOptions1">
</el-date-picker>
</div>
</body>
<script>
var box=new Vue({
el:"#box",
data:{
value1: true,
value2: true
}
})
</script>
</html>
网友评论