Skip to content

Commit

Permalink
perf(@0.6.2): 修改dialogWidth,dialogAppendToBody默认值
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Dec 20, 2020
1 parent 2f13b7a commit be6457d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ npm i element-pro-crud -S
| isMultiple | 是否开启多选 | Boolean | true,false | false |
| emptyText | 列表数据为空时显示文字 | String | - | 暂无数据 |
| prefill | 表单预填项(赋值初始值) | Object | - | null |
| dialogAppendToBody | 表单对话框是否插入至 body 元素上 | Boolean | true/false | false |
| dialogAppendToBody | 表单对话框是否插入至 body 元素上 | Boolean | true/false | true |
| dialogWidth | 表单宽度 | String | - | 80% |
| tableName | 表名 | String | - | '' |
| tableDesignerName | 用于请求表格设计 json 的 name,不传则默认读取 tableName | String | - | null |
| dialogFormDesignerName | 对话框内加载 FormDesigner 的表名,,不传则默认读取 tableName | String | - | null |
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "element-pro-crud",
"version": "0.6.1",
"version": "0.6.2",
"main": "lib/ProCrud.umd.min.js",
"files": [
"lib",
Expand Down
4 changes: 2 additions & 2 deletions packages/crud-table/src/CrudTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,10 @@ export default class CrudTable extends Vue {
@Prop({ default: null, type: Object }) prefill!: any;

// 弹出表单appendToBody
@Prop({ default: false, type: Boolean }) dialogAppendToBody!: boolean;
@Prop({ default: true, type: Boolean }) dialogAppendToBody!: boolean;

// 弹出表单width
@Prop({ default: '1000px', type: String }) dialogWidth!: string;
@Prop({ default: '80%', type: String }) dialogWidth!: string;

// 用于请求表格设计json的name
@Prop({
Expand Down
2 changes: 1 addition & 1 deletion packages/crud-table/src/GenerateFormDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default class GenerateFormDialog extends Vue {
// 对话框宽度
@Prop({
type: String,
default: '1400px',
default: '80%',
})
width!: string;

Expand Down

0 comments on commit be6457d

Please sign in to comment.