1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <template>
- <div style="padding:5px">
- <div class="card el-button--primary">
- <div class="card-content">
- <i :class="iconName"></i>
- <div>{{ name }}</div>
- </div>
- </div>
- </div>
- </template>
- <script>
- export default {
- data() {
- return {};
- },
- props: {
- name: {
- type: String
- },
- iconName: {
- type: String
- }
- },
- methods: {}
- };
- </script>
- <style lang="scss" scoped>
- .card{
- //background: #ff7d13;
- display: flex;
- justify-content: center;
- align-items: center;
- height: 14vh;
- .card-content{
- text-align: center;
- color: #fff;
- i{
- font-size: 30px;
- }
- }
- }
- </style>
|