Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
fui-uikit
Advanced tools
## 安装 需要先连公司 VPN,然后使用公司私有 npm 包源 http://npm.yonghuivip.com,再执行以下脚本进行安装 ```bash npm install @fui/bs ```
Readme
需要先连公司 VPN,然后使用公司私有 npm 包源 http://npm.yonghuivip.com,再执行以下脚本进行安装
npm install @fui/bs
引用方式:
import { CommonTable, FormItemGroup } from '@fui/bs';
或者
import UIKit from '@fui/bs';
const { CommonTable, FormItemGroup } = UIKit;
支持按需引用
import CommonTable from '@fui/bs/lib/CommonTable';
import FormItemGroup from '@fui/bs/lib/FormItemGroup';
import React, { Component } from 'react'
import { CommonTable } from '@/components'
export default class Basic extends Component {
static propTypes = {}
commonTableRef = {}
columns = [
{
title: '姓名',
dataIndex: 'name',
key: 'name',
},
{
title: '年龄',
dataIndex: 'age',
key: 'age',
},
{
title: '爱好',
dataIndex: 'habit',
key: 'habit',
},
{
title: '性别',
dataIndex: 'sex',
key: 'sex',
},
{
title: '住址',
dataIndex: 'address',
key: 'address',
},
]
render() {
const tableProps = {
url: 'xxxxxx',
isGeneralParamsFormat: true,
isShowSetTableColumns: true,
method: 'POST',
columns: this.columns,
refCallback: ref => {
this.commonTableRef = ref
},
search: {
datas: [
{
name: 'name',
type: 'input',
formProps: {
label: '姓名',
},
},
{
name: 'age',
type: 'input',
formProps: {
label: '年龄',
},
},
],
},
}
return <CommonTable {...tableProps} />
}
}
import React from 'react'
import { Form, Row, Col, Button } from 'antd'
import PropTypes from 'prop-types'
import { FormItemGroup } from '@/components'
import './index.less'
class Basic extends React.Component {
static propTypes = {
form: PropTypes.shape({
current: PropTypes.shape({}),
}).isRequired,
}
formRef = React.createRef()
handleSave = async () => {
try {
await this.formRef.current.validateFields()
} catch (e) {
console.log('[表单报错]', e)
}
}
render() {
const items = [
{
name: 'name',
label: '姓名',
type: 'input',
rules: [{ required: true }],
},
{
name: 'age',
label: '年龄',
type: 'inputNumber',
rules: [{ required: true }],
},
{
name: 'sex',
label: '性别',
type: 'select',
data: [
{
label: '男',
value: 1,
},
{
label: '女',
value: 2,
},
],
rules: [{ required: true }],
},
{
name: 'city',
label: '所在城市',
type: 'select',
data: [
{ label: '上海', value: 'shanghai' },
{ label: '北京', value: 'beijing' },
],
rules: [{ required: true }],
},
{
name: 'date',
label: '提交日期',
type: 'date',
rules: [{ required: true }],
},
{
name: 'customer',
label: '自定义组件',
render: () => <span>我是自定义组件</span>,
},
]
const form = this.formRef.current
return (
<div className="basic">
<Form ref={this.formRef} name="basic" form={form} labelCol={{ span: 8 }} wrapperCol={{ span: 16 }}>
<FormItemGroup items={items} cols={2} layout={8} form={this.props.form} />
<Row justify="center">
<Col>
<Button type="primary" onClick={this.handleSave}>
保存
</Button>
</Col>
</Row>
</Form>
</div>
)
}
}
export default Basic
FAQs
## 安装 需要先连公司 VPN,然后使用公司私有 npm 包源 http://npm.yonghuivip.com,再执行以下脚本进行安装 ```bash npm install @fui/bs ```
The npm package fui-uikit receives a total of 0 weekly downloads. As such, fui-uikit popularity was classified as not popular.
We found that fui-uikit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.