Giter Site home page Giter Site logo

vue's Introduction

VUE

VsCode Snippets

TS

  • vue-ts
"Vue TS": {
    "prefix": "vue-ts",
    "body": [
        "<template>",
        "\t<div>",
        "\t$1",
        "\t</div>",
        "</template>\n",
        "<script lang=\"ts\">",
        "import { defineComponent } from 'vue';\n",
        "export default defineComponent({",
        "\tname: '$1',",
        "\tsetup (props, { attrs, slots, emit }) {",
        "\t\treturn {\n\t\t\t$2",
        "\t\t};",
        "\t}",
        "});",
        "</script>\n",
        "<style lang=\"scss\" scoped>\n",
        "</style>"
    ],
    "description": "Vue TS"
}
  • vuex-module
"vuex-module": {
    "prefix": "vuex-module",
    "body": [
        "import { Module } from 'vuex';",
        "import { RootState } from '../'';\n",
        "export interface State {\n\t$2\n}\n",
        "const initState: () => State = () => ({\n\t$3\n});\n",
        "const $1: Module<State, RootState> = {",
        "\tstate: initState(),",
        "\tmutations: {},",
        "\tactions: {},",
        "\tgetters: {},",
        "}\n",
        "export default $1;\n"
    ],
    "description": "vuex-module"
}

JS

  • vue
"Vue base": {
    "prefix": "vue",
    "body": [
        "<template>",
        "\t<div>",
        "\t\t$1",
        "\t</div>",
        "</template>\n",
        "<script>",
        "export default {",
        "\tname: '$1',",
        "\tdata() {",
        "\t\treturn {\n\t\t\t$2",
        "\t\t};",
        "\t},",
        "\tmethods: {\n\t\t",
        "\t},",
        "};",
        "</script>\n",
        "<style lang=\"scss\" scoped>\n",
        "</style>"
    ],
    "description": "Vue base"
}
  • vuex-module
"vuex-module": {
    "prefix": "vuex-module",
    "body": [
        "const initState = () => ({\n\t$2\n});\n",
        "const $1 = {",
        "\tstate: initState(),",
        "\tmutations: {},",
        "\tactions: {},",
        "\tgetters: {},",
        "}\n",
        "export default $1;\n"
    ],
    "description": "vuex-module"
}

TOOLS

占位图片

http://placehold.it/820x230

TIPS

1. 在header里不要用 "_" 下划线,可以用驼峰命名或者其他的符号代替。
2. 在nginx里的 nginx.conf文件中配置http的部分添加 : underscores_in_headers on;(默认值是off)

vue's People

Contributors

joey2217 avatar dependabot[bot] 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.