Coder Social home page Coder Social logo

zxjs's Introduction

使用说明

目录结构

plugin
├── zxjs
│   ├── component
│   ├── image
│   ├── less
│   ├── package
│   └── vuecomponents
├── config.js
├── require.js
├── css.min.js
└── zxcore.js

头部声明 设置全局变量

<script>
    window.zxjs = {
        //设置config.js 相对基础路径
        'base':'/plugin/zxjs',
        //设置上传功能地址
        'uploader':'/upload',
        //设置图片列表地址
        'filesLists':'/filesLists',
    };
</script>

package 包在百度网盘里面 链接:https://pan.baidu.com/s/1UZRy3r1ymqgiFU-4C-VDTg 提取码:vdaw

css 样式根据实际需求在 head 自行引入

require laravel 引入

<script src="{{asset('plugin/zxjs/require.js')}}"></script>
<script src="{{asset('plugin/zxjs/config.js')}}"></script>

require 普通引入

<script src="/plugin/zxjs/require.js"></script>
<script src="/plugin/zxjs/config.js"></script>

Vue 插件调用方法

Zxmoney

描述

  • 数字转换成货币格式

调用方法

  • html
<vue-money zx-label="收购价格" zx-name="buy_price" :val="val"></vue-money> 
  • js
 require(['vue','uveMoney'],function(vue,uveMoney){
    new vue({
        ...
        data:function(){
            return {
              val:0  
            };
        },
        components:{
            'vue-money':uveMoney
        }
    });
   })

参数说明

参数 说明
zx-label 插件标题
zx-name input name值
val 父组件传值

Zxuploadimage

描述

  • 上传图片功能

调用方法

  • html
<vue-upload-image upload-label="车预览图片" input-name="am_image" pre-image="/images/car.png " ></vue-upload-image>
  • js
 require(['vue','uveUploadImage'],function(vue,uveUploadImage){
    new vue({
        ...
        components:{
            'vue-upload-image':uveUploadImage
        }
    });
   })

参数说明

参数 说明
upload-label 插件标题
input-name input name值
pre-image 预览图片

Zxtimepicker

描述

  • 时间选择器

调用方法

  • html
 <vue-datepicker class-name="singleTime" date-label="时间区间" date-name="start" ></vue-datepicker> 
  • js
 require(['vue','zxTimePicker'],function(vue,zxTimePicker){
    new vue({
        ...
        components:{
            'vue-datepicker':zxTimePicker
        }
    });
   })

参数说明

参数 说明
class-name 当前节点class
date-label label值
date-name input name值

Zxsingleselect

描述

  • 单个下拉选择器

调用方法

  • html
<vue-select label-align="text-left" input-label="选择公司" defalut-val="暂无选项" defalut-id="2" input-name="componey" :data-arr="options" @select-change="selectChange"></vue-select>
  • js
 require(['vue','zxSingleSelect'],function(vue,zxSingleSelect){
    new vue({
        ...
        components:{
            'vue-select':zxSingleSelect
        }
    });
   })

参数说明

参数 说明 默认值
input-label label值
label-align label值 text-right
defalut-val 下拉默认选项
defalut-id input 隐藏默认值
input-name input 隐藏默name
data-arr 下拉框显示的数据
@select-change 下拉框改变传递函数

zxjs's People

Stargazers

 avatar

Watchers

 avatar

Forkers

a452746100

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.