# 表格选择框配置说明
## crud.js
```
{
title: '单选本地',
key: 'select1',
sortable: true,
search: {
disabled: true
},
type: 'table-selector',
dict: {
url: '/api/system/user/',
value: 'id', // 数据字典中value字段的属性名
label: 'name', // 数据字典中label字段的属性名
getData: (url, dict, { form, component }) => {
return request({ url: url, params: { page: 1, limit: 1 } }).then(ret => {
component._elProps.page = ret.data.page
component._elProps.limit = ret.data.limit
component._elProps.total = ret.data.total
return ret.data.data
})
}
},
form: {
component: {
span: 12,
props: { multiple: true },
elProps: {
pagination: true,
columns: [
{
field: "name",
title: "名称",
},
{
field: "username",
title: "账号",
},
{
field: "role",
title: "角色Id",
},
{
field: "dept",
title: "部门Id",
},
]
}
}
}
}
```
## 配置说明
```
详细文档:
1.http://d2-crud-plus.docmirror.cn/d2-crud-plus/guide/dict.html
2.https://xuliangzhan_admin.gitee.io/vxe-table/#/grid/api
```
| Name | Description | Type | Required | Default |
| ---------- | ---------------- | ------- | -------- | -------------- |
| type | 字段所使用的组件 | String | true | table-selector |
| dict | 字典的配置 | Object | true | {} |
| multiple | 是否多选 | Boolean | false | false |
| pagination | 是否分页 | Boolean | false | false |
| columns | 表格的列配置 | Array | true | [] |
| field | 字段 | String | true | '' |
| title | 字段名称 | String | true | '' |
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
django-vue-admin-main.zip (443个子文件)
d2-admin.babel 7KB
.browserslistrc 21B
my.cnf 1017B
my.conf 937B
swagger-ui.css 140KB
bootstrap.min.css 119KB
font-awesome.min.css 30KB
font-awesome.min.css 30KB
bootstrap-theme.min.css 23KB
font-awesome-4.0.3.css 21KB
style.css 8KB
base.css 6KB
bootstrap-tweaks.css 3KB
highlight.css 2KB
jquery.json-view.min.css 1KB
default.css 1KB
style.css 1KB
prettify.css 817B
.env.development 266B
Dockerfile 371B
Dockerfile 370B
Dockerfile 304B
DockerfileBuild 610B
DockerfileBuild 105B
.editorconfig 121B
.env 357B
fontawesome-webfont.eot 162KB
fontawesome-webfont.eot 162KB
fontawesome-webfont.eot 37KB
glyphicons-halflings-regular.eot 20KB
.eslintignore 158B
.gitattributes 125B
.gitignore 1KB
.gitignore 241B
.gitignore 54B
index.html 10KB
oauth2-redirect.html 2KB
icon.ico 17KB
favicon.ico 5KB
jetbrains.jpeg 5KB
preview@2x.jpg 927KB
bg.jpg 359KB
preview@2x.jpg 225KB
bg.jpg 223KB
we.jpg 109KB
preview@2x.jpg 100KB
qq.jpg 95KB
bg.jpg 86KB
preview@2x.jpg 50KB
qr.jpg 38KB
preview@2x.jpg 33KB
preview@2x.jpg 23KB
redoc.min.js 1.04MB
swagger-ui-bundle.js 1015KB
swagger-ui-es-bundle.js 1014KB
redoc.min.js 904KB
swagger-ui-es-bundle-core.js 468KB
swagger-ui-standalone-preset.js 322KB
highlight.pack.js 294KB
coreapi-0.1.1.js 154KB
jquery-3.5.1.min.js 87KB
immutable.min.js 56KB
bootstrap.min.js 39KB
swagger-ui-init.js 14KB
prettify-min.js 13KB
page.js 13KB
crud.js 12KB
install.js 12KB
api.js 10KB
crud.js 9KB
crud.js 8KB
crud.js 8KB
service.js 7KB
crud.js 6KB
crud.js 6KB
url-polyfill.min.js 6KB
crud.js 6KB
crud.js 6KB
vue.config.js 5KB
crud.js 5KB
types.js 5KB
db.js 5KB
account.js 4KB
index.js 4KB
crud.js 4KB
index.js 4KB
crud.js 4KB
crud.js 4KB
crud.js 4KB
ajax-form.js 4KB
index.js 3KB
util.js 3KB
menu.js 3KB
index.js 3KB
crud.js 3KB
jquery.json-view.min.js 3KB
util.db.js 3KB
tools.js 2KB
index.js 2KB
dependencies-cdn.js 2KB
共 443 条
- 1
- 2
- 3
- 4
- 5
资源评论
m0_72731342
- 粉丝: 2
- 资源: 1832
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功