头像上传功能、性别选择

This commit is contained in:
橙子
2022-10-13 23:55:21 +08:00
parent 3555b08fe8
commit 8456320884
119 changed files with 51 additions and 31 deletions

View File

@@ -0,0 +1,20 @@
/**
* plugins/app.js
*
* Automatically loads and bootstraps files
* in the `./src/components/` folder.
*/
// Imports
import Vue from 'vue'
const requireComponent = require.context('@/components', true, /\.vue$/)
for (const file of requireComponent.keys()) {
const componentConfig = requireComponent(file)
Vue.component(
componentConfig.default.name,
componentConfig.default || componentConfig,
)
}

View File

@@ -0,0 +1,4 @@
import Vue from 'vue'
import 'chartist/dist/chartist.min.css'
Vue.use(require('vue-chartist'))

View File

@@ -0,0 +1,6 @@
// Automatically included in './src/main.js'
import './app'
import './chartist'
// import './webfontloader'
// import './vue-meta'

View File

@@ -0,0 +1,39 @@
// Vuetify Documentation https://vuetifyjs.com
import Vue from 'vue'
import Vuetify from 'vuetify/lib/framework'
import ripple from 'vuetify/lib/directives/ripple'
import zhHans from 'vuetify/es5/locale/zh-Hans' // 引入中文语言包
import 'typeface-roboto/index.css' // 引入本地的Roboto字体资源
import '@mdi/font/css/materialdesignicons.css' // 引入本地的Material Design Icons资源
Vue.use(Vuetify, { directives: { ripple } })
const theme = {
primary: '#E91E63',
secondary: '#9C27b0',
accent: '#e91e63',
info: '#00CAE3',
success: '#4CAF50',
warning: '#FB8C00',
error: '#FF5252',
}
export default new Vuetify({
lang:{
locales: {zhHans},
current: 'zhHans'
},
breakpoint: { mobileBreakpoint: 960 },
icons: {
iconfont: 'mdi',
values: { expand: 'mdi-menu-down' },
},
theme: {
themes: {
dark: theme,
light: theme,
},
},
})