1.0.17 • Published 4 years ago

lx-page v1.0.17

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

Install

安装方法:
1.npm安装:
npm: npm install lx-page
2.yarn安装:
yarn add lx-page
3.引用lx-page,使用方法见下文

main.js

import LxPage from "lx-page";
Vue.use(LxPage);

hy-page-filter

传递的参数说明类型可选值默认值
className自定义类名String--
lableWidth表单域标签的的宽度String-80px
listTypeInfo相关列表Object-{}
filterList过滤器列表Array-必填
query参数Object-必填

handleEvent 事件

事件说明
el-selectchange
el-inputfocus
el-radiochange
el-date-pickerfocus

handleClick 事件

事件说明
el-buttonclick

引用 lx-page 的使用示例:

<template>
    <hy-page-filter
        :query.sync="filterInfo.query"
        :filter-list="filterInfo.list"
        :list-type-info="listTypeInfo"
        @handleClick="handleClick"
        @handleEvent="handleEvent"
    >
        <template slot="form-condition">
            <el-form-item label="自定义参数">
                {{filterInfo.query.name}}
            </el-form-item>
        </template>
    </hy-page-filter>
</template>

<script>
export default {
    data() {
        return {
            // 相关列表
            listTypeInfo: {},
            // 过滤相关配置
            filterInfo: {
                query: {name: "",},
                list: [
                    { key: "客户姓名", type: "input", label: "客户姓名", value: "name" },
                    { type: "slot", value: "condition" },
                    { type: "button", label: "重置", btType: "info", event: "reset", show: true },
                    { type: "button", label: "搜索",btType: "primary",event: "search",show: true }
                ],
            }
        },
    },
    methods: {
        // 按钮点击
        handleClick(event, data) {
            switch (event) {
                case "search":
                break;
            }
        },
        handleEvent(event, data) { },
    }
1.0.17

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago