1.1.5 • Published 1 year ago

baseadminelement v1.1.5

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Base Admin Element

Table and Form Generator based on Element UI 2 (中文.)

  • Automatically generate form
  • Automatically generate table query items
  • Automatically generate table field items
  • Automatically generate table action items
  • Automatically trigger interface queries
  • Configurable custom slots

Example

<base-admin-element 
  :filters="[
    { label: "Title", name: "title", element: "el-input" },
    { label: "Summary", name: "summary", element: "el-input" }
  ]"
  :columns="[
    { label: "Index", type: "index" },
    { label: "Title", prop: "title", element: "el-input" },
    { label: "Summary", prop: "summary", element: "el-input" },
    { label: "Publish Date", prop: "pushlishDate", element: "el-date-picker" }
  ]"
  :requests="{
    r: {
        request: "http://47.100.114.6:8081/api/web/ch/news?tabType=all&pageNum=1&pageSize=10", resolve: (res) => ({
            list: res.data.records,
            total: res.data.total
        })
    },
    c: { request: "news" },
    u: { request: "news" },
    d: { request: "news", urlParams: ['id'] },
  }"
   />

Result Table generated with form!

1.1.1

1 year ago

1.1.0

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.0.0

2 years ago