Socket
Socket
Sign inDemoInstall

dxy-ui

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    dxy-ui

WOF-UI 是一款基于 Vue.js 2.0 的前端 UI 组件库,主要用于快速开发 PC 网站中后台产品


Version published
Weekly downloads
1
Maintainers
1
Install size
75.0 kB
Created
Weekly downloads
 

Readme

Source
说明

WOF-UI 是一款基于 Vue.js 2.0 的前端 UI 组件库,主要用于快速开发 PC 网站中后台产品

安装

cnpm i dxy-ui -S

使用

在 src/main.js import WOFUI from 'dxy-ui'; Vue.use(WOFUI); import 'dxy-ui/wof-ui.css';

组件
表格
<dxyui-table :columns="usersColumns" :tabledata="usersTableData"></dxyui-table>
<script>
export default {
    data() {
        return {
            // 表格
            usersColumns: [
                { title: '编号', key: 'id' },
                { title: '姓名', key: 'uname' },
                { title: '性别', key: 'sex' },
                {
                    title: '性别', key: 'sex1',
                    render: (row) => {
                        return `<b>${row.sex1 == 1 ? "男" : "女"}</b>`
                    }
                }
            ],
            usersTableData: [
                { id: 1, uname: '孙悟空', sex: '男', sex1: 1 },
                { id: 2, uname: '猪八戒', sex: '女', sex1: 0 },
                { id: 3, uname: '沙和尚', sex: '男', sex1: 1 },
            ],
        }
    },
}
</script>
分页
<f-page :total="total" :pagesize="pagesize" :pagenum.sync="pagenum"></f-page>
<script>
export default {
    data() {
        return{
            // 分页
            total: 16,
            pagesize: 3,
            pagenum: 4,
        }
    },
        watch: {
            pagenum(newData, oldData) {
                console.log('这是第' + newData + '页')
            }
        }
}
</script>

FAQs

Last updated on 24 Jun 2022

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc