npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

fs-search-table

v1.0.7

Published

table查询组件

Downloads

1

Readme

项目介绍

配置化表单查询。可以通过一些配置化代码生成查询表单,从而直接生成对应的页面。该组件适用于B端系统。 基于vue3、element-plus二次封装。目前支持:输入框查询、下拉框查询、时间范围选择器、组合输入框查询、组合数字范围查询

引用方式

<!-- main.ts -->
import Search from 'fs-search-table';
const app = createApp(App);
app.use(Search);

<!-- demo.vue -->
<template>
    <fs-search/>
</template>

Attributes

configList:JSON数组形式。里面的每个对象可参考下面的配置详解 searchData:可通过$refs获取当前查询表单的值 flod:是否需要显示折叠按钮

Events

send-data:点击查询或重置按钮触发 reset-index:点击查询或重置按钮触发,如若需要重置分页索引,则回调此方法 reset:点击重置按钮触发,用于重置事件之后的自定义事件

配置详解

输入框查询 接收四个参数

  • label:用于显示的表单item名称
  • type:input,固定参数
  • fields:需要绑定的字段名
  • value:v-model需要绑定的值

下拉框查询 接收五个参数

  • label:用于显示的表单item名称
  • type:select,固定参数
  • fields:需要绑定的字段名
  • value:v-model需要绑定的值
  • optionList:下拉的选项,依赖label和value两个值

时间范围选择器 接收五个参数

  • label:用于显示的表单item名称
  • type:datePicker,固定参数
  • fields:需要绑定的字段名,这里为数组。因为时间范围是两个值
  • value:v-model需要绑定的值
  • valueFormat:格式化规则,参考element

组合输入框查询 接收三个参数

  • type:prepend,固定参数
  • value:v-model需要绑定的值
  • optionList:key下拉的选项,依赖label和value两个值

组合数字范围查询 接收四个参数

  • type:comboNum,固定参数
  • fields:需要绑定的字段名,这里是对象形式。每一个key对应optionList中的每一个value
  • value:v-model绑定的值。这里为数组
  • optionList:key下拉的选项,依赖label和value两个值