-
Notifications
You must be signed in to change notification settings - Fork 22
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
24 changed files
with
328 additions
and
740 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<template> | ||
<div> | ||
<button>原始样式</button> | ||
<input type="text" name="" id="" placeholder="原始样式"> | ||
<atguigu-row> | ||
<el-button>默认按钮</el-button> | ||
<el-button type="primary">主要按钮</el-button> | ||
<el-button type="success">成功按钮</el-button> | ||
<el-button type="info">信息按钮</el-button> | ||
<el-button type="warning">警告按钮</el-button> | ||
<el-button type="danger">危险按钮</el-button> | ||
</atguigu-row> | ||
|
||
<el-date-picker | ||
v-model="value2" | ||
align="right" | ||
type="date" | ||
placeholder="选择日期" | ||
:picker-options="pickerOptions"> | ||
</el-date-picker> | ||
|
||
<atguigu-row> | ||
<el-button icon="el-icon-search" circle></el-button> | ||
<el-button type="primary" icon="el-icon-edit" circle></el-button> | ||
<el-button type="success" icon="el-icon-check" circle></el-button> | ||
<el-button type="info" icon="el-icon-message" circle></el-button> | ||
<el-button type="warning" icon="el-icon-star-off" circle></el-button> | ||
<el-button type="danger" icon="el-icon-delete" circle></el-button> | ||
</atguigu-row> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name:'App', | ||
data() { | ||
return { | ||
pickerOptions: { | ||
disabledDate(time) { | ||
return time.getTime() > Date.now(); | ||
}, | ||
shortcuts: [{ | ||
text: '今天', | ||
onClick(picker) { | ||
picker.$emit('pick', new Date()); | ||
} | ||
}, { | ||
text: '昨天', | ||
onClick(picker) { | ||
const date = new Date(); | ||
date.setTime(date.getTime() - 3600 * 1000 * 24); | ||
picker.$emit('pick', date); | ||
} | ||
}, { | ||
text: '一周前', | ||
onClick(picker) { | ||
const date = new Date(); | ||
date.setTime(date.getTime() - 3600 * 1000 * 24 * 7); | ||
picker.$emit('pick', date); | ||
} | ||
}] | ||
}, | ||
value1: '', | ||
value2: '', | ||
}; | ||
} | ||
} | ||
</script> |
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,30 @@ | ||
//引入Vue | ||
import Vue from 'vue' | ||
|
||
//引入app | ||
import App from './App' | ||
|
||
//完整引入 | ||
//引入ElementUI组件库 | ||
// import ElementUI from 'element-ui'; | ||
//引人ElementUI全部样式 | ||
// import 'element-ui/lib/theme-chalk/index.css'; | ||
|
||
//按需引入 | ||
import { Row,Button,DatePicker } from 'element-ui' | ||
|
||
Vue.component('atguigu-row', Row ) | ||
Vue.component(Button.name, Button ) | ||
Vue.component(DatePicker.name, DatePicker ) | ||
|
||
//关闭vue的生产提示 | ||
Vue.config.productionTip = false | ||
|
||
//应用ElementUI | ||
// Vue.use(ElementUI); | ||
|
||
//创建vm | ||
new Vue({ | ||
el:'#app', | ||
render: h => h(App), | ||
}) |
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 |
---|---|---|
@@ -1,5 +1,15 @@ | ||
module.exports = { | ||
presets: [ | ||
'@vue/cli-plugin-babel/preset' | ||
'@vue/cli-plugin-babel/preset', | ||
["@babel/preset-env", { "modules": false }] | ||
], | ||
plugins: [ | ||
[ | ||
"component", | ||
{ | ||
"libraryName": "element-ui", | ||
"styleLibraryName": "theme-chalk" | ||
} | ||
] | ||
] | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.