练习 antd table 调整数据顺序练习

要求

  1. 使用umi框架创建一个项目引入antd组件实现如下功能。 框架
  2. 请根据如下的数据,在table中显示并可以调整数据的顺序。 json数据如下:
    [
     {
         "deviceCommandId": 25,
         "deviceId": 7,
         "name": "测试设备指令",
         "description": "",
         "type": 0,
         "sequence": 1
     },
     {
         "deviceCommandId": 27,
         "deviceId": 12,
         "name": "------ANT1--TX",
         "type": 1,
         "sequence": 2
     },
     {
         "deviceCommandId": 28,
         "deviceId": 12,
         "name": "11B-1M-CH13(2471)",
         "type": 1,
         "sequence": 3
     },
     {
         "deviceCommandId": 29,
         "deviceId": 12,
         "name": "11B-11M-CH13(2472)",
         "type": 1,
         "sequence": 4
     }
    ]
    
    界面布局如下图所示: 界面

results matching ""

    No results matching ""