修改移动端样式

This commit is contained in:
jmal 2020-02-18 18:04:38 +08:00
parent 5e79d53482
commit a44d7b37c5
3 changed files with 221 additions and 842 deletions

View File

@ -14,7 +14,7 @@ import store from './store'
import router from './router'
// import WeVue from 'we-vue'
// import 'we-vue/lib/style.css'
import { Button, Cell, CellGroup, Image, List, PullRefresh, SwipeCell, Col, Row, Divider } from 'vant';
import { Button, Cell, CellGroup, Image, List, PullRefresh, SwipeCell, Col, Row, Divider, Sticky } from 'vant';
import '@/icons' // icon
import '@/permission' // permission control
@ -49,6 +49,7 @@ Vue.use(SwipeCell);
Vue.use(Col);
Vue.use(Row);
Vue.use(Divider);
Vue.use(Sticky);
Vue.use(uploader)
Vue.use(EVueContextmenu)

View File

@ -98,7 +98,9 @@ export function formatTime(agoTime) {
}
export function formatSize(size) {
if (size < 1024) {
if (size === 0) {
return ''
} else if (size < 1024) {
return size + 'B'
} else if (size < 1024 * 1024) {
return (size/1024).toFixed(2) + 'k'

File diff suppressed because it is too large Load Diff