• vue 引用 vue版本的 easyui


    easyui vue 版本 官方网站

    http://www.jeasyui.net/vue

    安装

    npm install vx-easyui --save

    如何引用? 当然是查看下载的包种的 readme文档

    在main.js 引入

    // import 'vx-easyui/dist/themes/default/easyui.css'
    // import 'vx-easyui/dist/themes/icon.css'
    // import 'vx-easyui/dist/themes/vue.css'
    // import EasyUI from 'vx-easyui'
    // import locale from 'vx-easyui/dist/locale/easyui-lang-en'
    // Vue.use(EasyUI, {
    //     locale: locale
    // })
     
    然后,任何页面都可以直接使用它的组件了。
     
    <template>
        <div>
            <DataGrid :data="data" style="height:250px">
                <GridColumn field="itemid" title="Item ID"></GridColumn>
                <GridColumn field="name" title="Name"></GridColumn>
                <GridColumn field="listprice" title="List Price" align="right"></GridColumn>
                <GridColumn field="unitcost" title="Unit Cost" align="right"></GridColumn>
                <GridColumn field="attr" title="Attribute" width="30%"></GridColumn>
                <GridColumn field="status" title="Status" align="center"></GridColumn>
            </DataGrid>
        </div>
    </template>
    <script>
        export default {
            data() {
                return {
                    data: [
                        {
                            "code": "FI-SW-01",
                            "name": "Koi",
                            "unitcost": 10.00,
                            "status": "P",
                            "listprice": 36.50,
                            "attr": "Large",
                            "itemid": "EST-1"
                        },
                        {
                            "code": "K9-DL-01",
                            "name": "Dalmation",
                            "unitcost": 12.00,
                            "status": "P",
                            "listprice": 18.50,
                            "attr": "Spotted Adult Female",
                            "itemid": "EST-10"
                        },
                        {
                            "code": "RP-SN-01",
                            "name": "Rattlesnake",
                            "unitcost": 12.00,
                            "status": "P",
                            "listprice": 38.50,
                            "attr": "Venomless",
                            "itemid": "EST-11"
                        },
                        {
                            "code": "RP-SN-01",
                            "name": "Rattlesnake",
                            "unitcost": 12.00,
                            "status": "P",
                            "listprice": 26.50,
                            "attr": "Rattleless",
                            "itemid": "EST-12"
                        },
                        {
                            "code": "RP-LI-02",
                            "name": "Iguana",
                            "unitcost": 12.00,
                            "status": "P",
                            "listprice": 35.50,
                            "attr": "Green Adult",
                            "itemid": "EST-13"
                        },
                        {
                            "code": "FL-DSH-01",
                            "name": "Manx",
                            "unitcost": 12.00,
                            "status": "P",
                            "listprice": 158.50,
                            "attr": "Tailless",
                            "itemid": "EST-14"
                        },
                        {
                            "code": "FL-DSH-01",
                            "name": "Manx",
                            "unitcost": 12.00,
                            "status": "P",
                            "listprice": 83.50,
                            "attr": "With tail",
                            "itemid": "EST-15"
                        },
                        {
                            "code": "FL-DLH-02",
                            "name": "Persian",
                            "unitcost": 12.00,
                            "status": "P",
                            "listprice": 23.50,
                            "attr": "Adult Female",
                            "itemid": "EST-16"
                        },
                        {
                            "code": "FL-DLH-02",
                            "name": "Persian",
                            "unitcost": 12.00,
                            "status": "P",
                            "listprice": 89.50,
                            "attr": "Adult Male",
                            "itemid": "EST-17"
                        },
                        {
                            "code": "AV-CB-01",
                            "name": "Amazon Parrot",
                            "unitcost": 92.00,
                            "status": "P",
                            "listprice": 63.50,
                            "attr": "Adult Male",
                            "itemid": "EST-18"
                        }
                    ]
                }
            }
        }
    </script>
    View Code
     
     
  • 相关阅读:
    TCP/IP——IP网络协议简记
    TCP/IP——基础概念简记
    TCP/IP——链路层简记
    linux——(8)数据流重定向、管道命令
    linux——(7)了解shell
    linux——(6)vim与vi
    linux——(5)文件与文件系统的压缩与打包
    linux——(4)磁盘与文件系统管理
    linux——(3)文件与目录管理
    大数据--Spark原理
  • 原文地址:https://www.cnblogs.com/hao-1234-1234/p/13042756.html
Copyright © 2020-2023  润新知