Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@xiaohaih/condition-el-plus

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xiaohaih/condition-el-plus

> - 基于 `@xiaohaih/condition-core` 实现的条件校验 > - 提供了 `defineCondition` 函数来做 `ts` 提示 > - 提供了 `registerComponent` 函数来注册自定义的组件, `unregisterComponent` 函数来删除自定义的组件 > - 使用示例 > > ```html > <template> > <HWrapper :datum="conditions" :backfill="query" @se

  • 0.1.9
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
16
decreased by-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

条件校验 - element-ui 版本

  • 基于 @xiaohaih/condition-core 实现的条件校验
  • 提供了 defineCondition 函数来做 ts 提示
  • 提供了 registerComponent 函数来注册自定义的组件, unregisterComponent 函数来删除自定义的组件
  • 使用示例
<template>
    <HWrapper :datum="conditions" :backfill="query" @search="log('搜索事件', $event)"></HWrapper>
</template>
import { HWrapper, defineCondition } from '@xiaohaih/condition-el';

const conditions = () =>
    defineCondition({
        name: { t: 'input', placeholder: '名称搜索' },
        address: { t: 'input', placeholder: '地址搜索' },
    });

export default {
    components: {
        HWrapper,
    },
    data: () => ({
        conditions: conditions(),
        query: { name: '名称存在默认值' },
        log: console.log,
    }),
};

FAQs

Package last updated on 05 Jul 2023

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc