1. 在 main.js 中写入以下内容:
	import ElementUI from 'element-ui';
	import 'element-ui/lib/theme-chalk/index.css';
	Vue.use(ElementUI);
	以上代码便完成了 Element 的引入。
  1. 引用了,当然就需要拥有了
    npm 安装
	npm i element-ui -S

或是 页面引入

<!-- 引入样式 -->
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
<!-- 引入组件库 -->
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
  1. 可以开始使用了
	<el-date-picker v-model="data_lis.end_time"  type="datetime"  placeholder="选择日期时间"> </el-date-picker>

VUE 中使用 Element 时间控件(简单上手)
大概就是这个样子; 参考: http://element-cn.eleme.io/#/zh-CN/component/installation

相关文章:

  • 2022-12-23
  • 2021-09-21
  • 2021-12-02
  • 2022-02-10
  • 2021-12-02
  • 2021-06-28
  • 2021-12-15
  • 2021-04-11
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
  • 2022-12-23
  • 2021-12-04
  • 2021-12-04
  • 2021-12-02
相关资源
相似解决方案