Giter Site home page Giter Site logo

vue3-admin-luma's Introduction

vue-mall

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Run your tests

npm run test

Lints and fixes files

npm run lint

1、

vue.config.js配置scss

2、

component: () => import("@/views/Test.vue") 导入组件

3、

箭头函数:const Test = data => console.log(data);

4、

axios封装request的配置,api调用request、

5、

config.vue.js代理配置

6、

promise讲解,链式嵌套记得return promise

7、

.vue里面import scss文件

8、

路由设置一个hidden属性(自定义)来判断是显示在左侧列表栏里、使用template标签包裹(解决v-for和v-if同时会报错的问题)

9、

el里面的navMenu的router属性,来跳转,path作为路径

10、

修改el样式不能在vue的scoped改,全局scss改,在vue.config.js里面引入

11、

使用svg必须安装svg-sprite-loader依赖

12、

props传参required、validator属性、如果类型是数组 default: () => []

13、

const svgClass = computed(() => { if (props.className) { return svg-icon ${props.className}; } else { return svg-icon; } });

14、

vuex,异步:action里面需要请求接口返回token,然后再去调用commit,详细见登陆

15、

路由守卫

16、

封装弹窗等组件 => watch解决单向传值问题

17、

自定义全局方法global,封装vuex全局方法

21-5 filter 和 map 的使用

array JSON数组

let arrayData = data.filter(item => item.id == catagory.Id)[0];

id数组

let arrayId = data.map(item => item.id);

vue3-admin-luma's People

Contributors

a599768790 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.