🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

hy-fs-components

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hy-fs-components

Hy-fs-components - A Vue.js 2.0 UI Toolkit for Web

latest
npmnpm
Version
1.0.1
Version published
Weekly downloads
7
600%
Maintainers
1
Weekly downloads
 
Created
Source
// 配置说明
let propsList = [
    {
        // 字段名
        name: 'nameOfTheVillageOrTown',
        // 查询条件
        label: '村/镇名',
        // 比如说你不想让他显示「模糊查询,多选」
        filterType: '模糊查询,多选',
        // 默认的查询条件 在固定时生效
        queryTypeVal: 'EQ',
        // 查询的 值的类型 List 是数组 String 字符串
        // Number 数字 在Number类型时 输入框 会做限制
        valueType: 'String',
        // 如果是 List 需要提供 List 「label-value」
        // todo: valueType 为 List 时 设置才有效
        selectOptions: [
            {
                label: '村/镇名',
                value: '村/镇名',
            },
            {
                label: '村/镇名2',
                value: '村/镇名2',
            }
        ],
        // 是否固定显示 默认 false
        fixed: true,
    }
];
const numberQueryOptions = Object.freeze( [
    { label: "等于", value: "EQ" },
    { label: "大于", value: "GT" },
    { label: "小于", value: "LT" },
    { label: "大于等于", value: "GTE" },
    { label: "小于等于", value: "LTE" },
] );
const stringQueryOptions = Object.freeze( [
    { label: "精准查询", value: "EQ" },
    { label: "模糊查询", value: "LIKE" },
    { label: "左匹配查询", value: "LLIKE" },
    { label: "右匹配查询", value: "RLIKE" },
    { label: "多选", value: "IN" },

    // 开始时间:GTDATE
    // 结束时间:LTDATE
    { label: "时间区间", value: "TIME" },
] );
字段名类型示例是否必填
nameString

村/镇名

valueTypeString | Number | List String
filterTypeString模糊查询,多选
queryTypeValStringEQ

FAQs

Package last updated on 21 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts