提交 25defc75 编写于 作者: Mosher's avatar Mosher

update:更新表格

上级 dbdcceba
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
{{/if}} {{/if}}
{{#if (eq item.widthUnit 'PX')}} {{#if (eq item.widthUnit 'PX')}}
width: {{item.width}}, width: {{item.width}},
{{else}} {{else if (gt item.width 1)}}
minWidth: {{item.width}}, minWidth: {{item.width}},
{{/if}} {{/if}}
resizable: true, resizable: true,
......
...@@ -171,7 +171,7 @@ export class GridControl extends MDControl { ...@@ -171,7 +171,7 @@ export class GridControl extends MDControl {
* @param {string} tag * @param {string} tag
* @memberof GridControl * @memberof GridControl
*/ */
public handleGridItemValueChange(rowIndex: number, tag: string, data: any) { private handleGridItemValueChange(rowIndex: number, tag: string, data: any) {
const { items } = toRefs(this.state); const { items } = toRefs(this.state);
if (items.value[rowIndex][tag] !== data) { if (items.value[rowIndex][tag] !== data) {
items.value[rowIndex][tag] = data; items.value[rowIndex][tag] = data;
......
...@@ -65,9 +65,13 @@ export class MDControl extends MainControl { ...@@ -65,9 +65,13 @@ export class MDControl extends MainControl {
let tempViewParams = deepCopy(viewParams ? viewParams : {}); let tempViewParams = deepCopy(viewParams ? viewParams : {});
const { noSort, minorSortDir, minorSortPSDEF } = mdCtrlSort; const { noSort, minorSortDir, minorSortPSDEF } = mdCtrlSort;
let { enablePagingBar, current, pageSize } = mdCtrlPaging; let { enablePagingBar, current, pageSize } = mdCtrlPaging;
if (!noSort && minorSortDir && minorSortPSDEF) { if (!noSort) {
if (arg && arg.sort) {
Object.assign(tempViewParams, { sort: arg.sort });
} else if (minorSortDir && minorSortPSDEF) {
Object.assign(tempViewParams, { sort: `${minorSortPSDEF},${minorSortDir}` }); Object.assign(tempViewParams, { sort: `${minorSortPSDEF},${minorSortDir}` });
} }
}
if (enablePagingBar) { if (enablePagingBar) {
Object.assign(tempViewParams, { page: current - 1, size: pageSize }); Object.assign(tempViewParams, { page: current - 1, size: pageSize });
} }
......
...@@ -10,8 +10,8 @@ body{ ...@@ -10,8 +10,8 @@ body{
// 滚动条样式 // 滚动条样式
::-webkit-scrollbar { ::-webkit-scrollbar {
background: transparent; background: transparent;
width: 4px; width: 6px;
height: 4px; height: 6px;
} }
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册