Giter VIP home page Giter VIP logo

saas's Introduction

Start

安装依赖包

npm i

开发 /build/

npm run dev

部署 /dist/

npm run build

自定义组件 /build/components/

npm run custom

=======

技术栈

vuejs webpack es6

模版

<template>

</template>
<script>
import headDocs from './app2/headDocs.vue'
export default {
  components: { headDocs },
  data(){
     return {
       param:{}
     }
  },
  methods: {
    query(){

    }
  }
}
</script>

组件列表

//下拉框
import vSelect from 'vue-strap/src/select'

<v-select :value.sync="standardname" :search="true" :options="standardlist" :close-on-select="true" placeholder="选择标准名称">
</v-select>
//选择时间
import datepicker from 'vue-strap/src/datepicker'
<datepicker :value.sync="sdate" :disabled-days-of-Week="disabled" format="yyyy-MM-dd" Width="120px" class="pull-left ">
</datepicker>

//分页
import pageDocs from '../general/pageDocs.vue'
<page-docs :count='count'></page-docs>

//tab切换
import tab from '../general/tab.vue'
<tab :data="tablist" :value="0" :tips="tips"></tab>

//单选
import radio from '../general/radioDocs.vue'
<radio :value.sync="model.GroupID" :options="radios" left="mg_l20"></radio>

//输入框提示
import textinfo from '../general/textinfo.vue'
<textinfo :value.sync="model.ExpressName" :list="showlist" width="170px" class=" pull-left"></textinfo>

//上传控件
import upload from '../general/upload.vue'
<upload upid=".filter-btn"></upload>

//模态框
import modal from 'vue-strap/src/modal'
<modal :show.sync="showModel" effect="fade" width="360px" :title="title">
  <div slot="modal-body" class="modal-body ">

  </div>
</modal>

计算属性

computed:{
  attr(){
    return this.text;
  }
}

监控属性

watch:{
  value(val){

  },
  'model.text': function(val){

  }
}

派发事件

//广播
this.$dispatch('event', data)
//接收
events:{
  'event':function(model){
    this.model=model;
  }
},

props

props: {
    model: {
        type: Number,
        default: 0
    }
},

saas's People

Contributors

cacivy avatar doany avatar malcn avatar

Watchers

James Cloos avatar  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.