-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
dd3fe8b
commit 90ea801
Showing
13 changed files
with
221 additions
and
8 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
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,2 +1,14 @@ | ||
@import "~iview/src/styles/index.less"; | ||
@import "./theme.less"; | ||
@import "./theme.less"; | ||
|
||
@keyframes loading-rotate{ | ||
from{transform:rotate(0)} | ||
to{transform:rotate(360deg)} | ||
} | ||
|
||
.loading-animation { | ||
font-size: 20px; | ||
display: inline-block; | ||
-webkit-animation: loading-rotate 2s linear infinite; | ||
animation: loading-rotate 2s linear infinite; | ||
} |
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,18 @@ | ||
<script> | ||
import { Card } from 'iview' | ||
export default { | ||
name: 'Card', | ||
extends: Card, | ||
props: { | ||
bordered: { | ||
type: Boolean, | ||
default: false | ||
}, | ||
'dis-hover': { | ||
type: Boolean, | ||
default: true | ||
} | ||
} | ||
} | ||
</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,3 @@ | ||
import Card from './Card' | ||
|
||
export default Card |
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
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
declare var store: any |
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
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,81 @@ | ||
<template> | ||
<div> | ||
<Table highlight-row ref="currentRowTable" :border="false" :columns="columns" :data="data"></Table> | ||
</div> | ||
</template> | ||
<script> | ||
export default { | ||
data() { | ||
return { | ||
columns: [ | ||
{ | ||
title: "商品编号", | ||
key: "goodid" | ||
}, | ||
{ | ||
title: "商品名称", | ||
key: "goodname" | ||
}, | ||
{ | ||
title: "商品条码", | ||
key: "goodcode" | ||
}, | ||
{ | ||
title: "单价", | ||
key: "goodprice", | ||
render: (h, params) => { | ||
let _goodprice = Number(params.row.goodprice).toFixed(2) | ||
return h('span', _goodprice) | ||
} | ||
}, | ||
{ | ||
title: '数量(件)', | ||
key: 'goodnumber' | ||
}, | ||
{ | ||
title: '全额', | ||
key: 'goodtotal', | ||
render: (h, params) => { | ||
let _goodtotal = Number(params.row.goodtotal).toFixed(2) | ||
return h('span', _goodtotal) | ||
} | ||
} | ||
], | ||
data: [ | ||
{ | ||
goodid: "1234561", | ||
goodname: '矿泉水550ml', | ||
goodcode: '12341234213', | ||
goodprice: 2.00, | ||
goodnumber: 1, | ||
goodtotal: 2.00 | ||
}, | ||
{ | ||
goodid: "1234562", | ||
goodname: '矿泉水550ml', | ||
goodcode: '12341234213', | ||
goodprice: 2.00, | ||
goodnumber: 1, | ||
goodtotal: 2.00 | ||
}, | ||
{ | ||
goodid: "1234563", | ||
goodname: '矿泉水550ml', | ||
goodcode: '12341234213', | ||
goodprice: 2.00, | ||
goodnumber: 1, | ||
goodtotal: 2.00 | ||
}, | ||
{ | ||
goodid: "1234564", | ||
goodname: '矿泉水550ml', | ||
goodcode: '12341234213', | ||
goodprice: 2.00, | ||
goodnumber: 1, | ||
goodtotal: 2.00 | ||
}, | ||
] | ||
}; | ||
} | ||
}; | ||
</script> |
Empty file.
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,35 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
<link rel="stylesheet" href="https://at.alicdn.com/t/font_1325591_5gekqyv7img.css"> | ||
<title>Document</title> | ||
<style type="text/css"> | ||
@keyframes rotating{ | ||
from{transform:rotate(0)} | ||
to{transform:rotate(360deg)} | ||
} | ||
|
||
.square { | ||
width: 50px; | ||
height: 50px; | ||
background-color: red; | ||
text-align: center; | ||
line-height: 50px; | ||
display: inline-block; | ||
} | ||
|
||
.loading { | ||
display: inline-block; | ||
animation:rotating 1.2s linear infinite | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="square"> | ||
<i class="loading iconfont mvloading"/> | ||
</div> | ||
</body> | ||
</html> |