From 380dde7928094d8ab4bbf371c76fd0e1f4cb28e7 Mon Sep 17 00:00:00 2001 From: simonhs Date: Sat, 8 Feb 2025 16:11:19 +0800 Subject: [PATCH] feat feature FORGUNCY-26831:change cellType's default size after drag to page --- CellTypes/AvatarCellType.cs | 2 +- CellTypes/BackupTopCellType.cs | 2 +- CellTypes/Breadcrumb.cs | 2 +- CellTypes/CalendarCellType.cs | 2 +- CellTypes/CascaderCellType.cs | 2 +- CellTypes/DatePickerCellType.cs | 2 +- CellTypes/Input.cs | 2 +- CellTypes/InputNumberCellType.cs | 2 +- CellTypes/NavMenuCellType.cs | 2 +- CellTypes/PaginationCellType.cs | 2 +- CellTypes/ProgressCellType.cs | 2 +- CellTypes/RateCellType.cs | 2 +- CellTypes/SelectCellType.cs | 2 +- CellTypes/SliderCellType.cs | 2 +- CellTypes/TabHeader.cs | 2 +- CellTypes/TableCellType.cs | 2 +- CellTypes/TimePickerCellType.cs | 2 +- CellTypes/TimelineCellType.cs | 2 +- CellTypes/TransferCellTyle.cs | 2 +- CellTypes/TreeCellType.cs | 2 +- CellTypes/TreeSelect.cs | 2 +- CellTypes/UploadCellType.cs | 2 +- CellTypes/VirtualizedTableCellType.cs | 2 +- 23 files changed, 23 insertions(+), 23 deletions(-) diff --git a/CellTypes/AvatarCellType.cs b/CellTypes/AvatarCellType.cs index 9ee4a29..ba5062c 100644 --- a/CellTypes/AvatarCellType.cs +++ b/CellTypes/AvatarCellType.cs @@ -19,7 +19,7 @@ namespace ElementUI return control; } - public override Size DragDropDefaultSize { get; set; } = new Size(40, 40); + public override Size DragDropDefaultSize { get; set; } = new Size(32, 32); } [Icon("pack://application:,,,/ElementUI;component/Resources/Images/Avatar.png")] diff --git a/CellTypes/BackupTopCellType.cs b/CellTypes/BackupTopCellType.cs index 527676f..2e192d4 100644 --- a/CellTypes/BackupTopCellType.cs +++ b/CellTypes/BackupTopCellType.cs @@ -20,7 +20,7 @@ namespace ElementUI return control; } - public override Size DragDropDefaultSize { get; set; } = new Size(40, 40); + public override Size DragDropDefaultSize { get; set; } = new Size(50, 50); } [Designer("ElementUI.BackupTopCellTypeDesigner, ElementUI")] diff --git a/CellTypes/Breadcrumb.cs b/CellTypes/Breadcrumb.cs index 0258071..9878504 100644 --- a/CellTypes/Breadcrumb.cs +++ b/CellTypes/Breadcrumb.cs @@ -28,7 +28,7 @@ namespace ElementUI this.CellType.separator = "/"; } - public override Size DragDropDefaultSize { get; set; } = new Size(820, 40); + public override Size DragDropDefaultSize { get; set; } = new Size(608, 32); } [Icon("pack://application:,,,/ElementUI;component/Resources/Images/Breadcrumb.png")] diff --git a/CellTypes/CalendarCellType.cs b/CellTypes/CalendarCellType.cs index a8e9466..74845f2 100644 --- a/CellTypes/CalendarCellType.cs +++ b/CellTypes/CalendarCellType.cs @@ -24,7 +24,7 @@ namespace ElementUI return control; } - public override Size DragDropDefaultSize { get; set; } = new Size(820, 600); + public override Size DragDropDefaultSize { get; set; } = new Size(608, 384); } [Icon("pack://application:,,,/ElementUI;component/Resources/Images/Calendar.png")] diff --git a/CellTypes/CascaderCellType.cs b/CellTypes/CascaderCellType.cs index b3682b1..023ddc2 100644 --- a/CellTypes/CascaderCellType.cs +++ b/CellTypes/CascaderCellType.cs @@ -32,7 +32,7 @@ namespace ElementUI this.CellType.separator = "/"; } - public override Size DragDropDefaultSize { get; set; } = new Size(240, 40); + public override Size DragDropDefaultSize { get; set; } = new Size(320, 32); } [Icon("pack://application:,,,/ElementUI;component/Resources/Images/Cascader.png")] diff --git a/CellTypes/DatePickerCellType.cs b/CellTypes/DatePickerCellType.cs index 562aa7d..731a8a7 100644 --- a/CellTypes/DatePickerCellType.cs +++ b/CellTypes/DatePickerCellType.cs @@ -43,7 +43,7 @@ namespace ElementUI this.CellType.DefautWeekFormat = Resources.Data_DefautWeekFormat; } - public override System.Windows.Size DragDropDefaultSize { get; set; } = new System.Windows.Size(240, 40); + public override System.Windows.Size DragDropDefaultSize { get; set; } = new System.Windows.Size(320, 32); } diff --git a/CellTypes/Input.cs b/CellTypes/Input.cs index e5a594a..0ad5c38 100644 --- a/CellTypes/Input.cs +++ b/CellTypes/Input.cs @@ -20,7 +20,7 @@ namespace ElementUI } - public override Size DragDropDefaultSize { get; set; } = new Size(420, 40); + public override Size DragDropDefaultSize { get; set; } = new Size(320, 32); } diff --git a/CellTypes/InputNumberCellType.cs b/CellTypes/InputNumberCellType.cs index a712d62..9a7ddda 100644 --- a/CellTypes/InputNumberCellType.cs +++ b/CellTypes/InputNumberCellType.cs @@ -29,7 +29,7 @@ namespace ElementUI this.CellType.max = 100; this.CellType.step = 1; } - public override Size DragDropDefaultSize { get; set; } = new Size(180, 40); + public override Size DragDropDefaultSize { get; set; } = new Size(320, 32); } diff --git a/CellTypes/NavMenuCellType.cs b/CellTypes/NavMenuCellType.cs index b0b9b0a..61a7567 100644 --- a/CellTypes/NavMenuCellType.cs +++ b/CellTypes/NavMenuCellType.cs @@ -35,7 +35,7 @@ namespace ElementUI this.CellType.HideBorder = true; } - public override Size DragDropDefaultSize { get; set; } = new Size(240, 400); + public override Size DragDropDefaultSize { get; set; } = new Size(224, 384); } public class MenuNodeDesigner : ObjectDesigner diff --git a/CellTypes/PaginationCellType.cs b/CellTypes/PaginationCellType.cs index 18cd8ce..5455239 100644 --- a/CellTypes/PaginationCellType.cs +++ b/CellTypes/PaginationCellType.cs @@ -172,7 +172,7 @@ namespace ElementUI.CellTypes return result; } - public override Size DragDropDefaultSize { get; set; } = new Size(820, 40); + public override Size DragDropDefaultSize { get; set; } = new Size(608, 32); } [Icon("pack://application:,,,/ElementUI;component/Resources/Images/Pagination.png")] diff --git a/CellTypes/ProgressCellType.cs b/CellTypes/ProgressCellType.cs index 58cd26e..6c1c118 100644 --- a/CellTypes/ProgressCellType.cs +++ b/CellTypes/ProgressCellType.cs @@ -48,7 +48,7 @@ namespace ElementUI return base.GetDrawingControl(cellInfo, drawingHelper); } - public override Size DragDropDefaultSize { get; set; } = new Size(350, 20); + public override Size DragDropDefaultSize { get; set; } = new Size(320, 32); } [Icon("pack://application:,,,/ElementUI;component/Resources/Images/Progress.png")] diff --git a/CellTypes/RateCellType.cs b/CellTypes/RateCellType.cs index c199507..0d56afb 100644 --- a/CellTypes/RateCellType.cs +++ b/CellTypes/RateCellType.cs @@ -41,7 +41,7 @@ namespace ElementUI } } - public override Size DragDropDefaultSize { get; set; } = new Size(240, 40); + public override Size DragDropDefaultSize { get; set; } = new Size(160, 32); } [Icon("pack://application:,,,/ElementUI;component/Resources/Images/Rate.png")] diff --git a/CellTypes/SelectCellType.cs b/CellTypes/SelectCellType.cs index 6baa9a7..406d125 100644 --- a/CellTypes/SelectCellType.cs +++ b/CellTypes/SelectCellType.cs @@ -42,7 +42,7 @@ namespace ElementUI this.CellType.filterInServerOptions.loadingText = Resources.SelectCellType_loadingText_DefaultValue; } - public override Size DragDropDefaultSize { get; set; } = new Size(240, 40); + public override Size DragDropDefaultSize { get; set; } = new Size(320, 32); } [Icon("pack://application:,,,/ElementUI;component/Resources/Images/Select.png")] diff --git a/CellTypes/SliderCellType.cs b/CellTypes/SliderCellType.cs index 36c8836..b168d8d 100644 --- a/CellTypes/SliderCellType.cs +++ b/CellTypes/SliderCellType.cs @@ -28,7 +28,7 @@ namespace ElementUI this.CellType.step = 1; } - public override Size DragDropDefaultSize { get; set; } = new Size(580, 40); + public override Size DragDropDefaultSize { get; set; } = new Size(320, 32); } [Icon("pack://application:,,,/ElementUI;component/Resources/Images/Slider.png")] diff --git a/CellTypes/TabHeader.cs b/CellTypes/TabHeader.cs index 23daba0..527203d 100644 --- a/CellTypes/TabHeader.cs +++ b/CellTypes/TabHeader.cs @@ -34,7 +34,7 @@ namespace ElementUI } } - public override Size DragDropDefaultSize { get; set; } = new Size(820, 40); + public override Size DragDropDefaultSize { get; set; } = new Size(608, 60); } diff --git a/CellTypes/TableCellType.cs b/CellTypes/TableCellType.cs index d8db922..bbc4d6a 100644 --- a/CellTypes/TableCellType.cs +++ b/CellTypes/TableCellType.cs @@ -261,7 +261,7 @@ namespace ElementUI CellType.ElTableName = GetUniqueDefaultTableName(context); } - public override Size DragDropDefaultSize { get; set; } = new Size(820, 300); + public override Size DragDropDefaultSize { get; set; } = new Size(800, 416); } [Icon("pack://application:,,,/ElementUI;component/Resources/Images/Table.png")] diff --git a/CellTypes/TimePickerCellType.cs b/CellTypes/TimePickerCellType.cs index f5beb81..33dec99 100644 --- a/CellTypes/TimePickerCellType.cs +++ b/CellTypes/TimePickerCellType.cs @@ -43,7 +43,7 @@ namespace ElementUI this.CellType.step = new TimeSpan(0, 15, 0); } - public override Size DragDropDefaultSize { get; set; } = new Size(240, 40); + public override Size DragDropDefaultSize { get; set; } = new Size(320, 32); } [Icon("pack://application:,,,/ElementUI;component/Resources/Images/TimePicker.png")] diff --git a/CellTypes/TimelineCellType.cs b/CellTypes/TimelineCellType.cs index 45ead08..eb32b1f 100644 --- a/CellTypes/TimelineCellType.cs +++ b/CellTypes/TimelineCellType.cs @@ -49,7 +49,7 @@ namespace ElementUI var control = new TimelineDrawingControl(drawingHelper, this.CellType, cellStyle, GetDefaultOptions()); return control; } - public override Size DragDropDefaultSize { get; set; } = new Size(240, 400); + public override Size DragDropDefaultSize { get; set; } = new Size(224, 384); } [Icon("pack://application:,,,/ElementUI;component/Resources/Images/Timeline.png")] diff --git a/CellTypes/TransferCellTyle.cs b/CellTypes/TransferCellTyle.cs index cb0fee9..a18e638 100644 --- a/CellTypes/TransferCellTyle.cs +++ b/CellTypes/TransferCellTyle.cs @@ -36,7 +36,7 @@ namespace ElementUI this.CellType.filterPlaceholder = Resources.TransferCellType_filterPlaceholder_DefaultValue; } - public override Size DragDropDefaultSize { get; set; } = new Size(820, 300); + public override Size DragDropDefaultSize { get; set; } = new Size(608, 384); } [Icon("pack://application:,,,/ElementUI;component/Resources/Images/Transfer.png")] diff --git a/CellTypes/TreeCellType.cs b/CellTypes/TreeCellType.cs index a407934..c3b2c4e 100644 --- a/CellTypes/TreeCellType.cs +++ b/CellTypes/TreeCellType.cs @@ -54,7 +54,7 @@ public class TreeCellTypeDesigner : CellTypeDesigner, ISupportProp }); } - public override Size DragDropDefaultSize { get; set; } = new Size(240, 400); + public override Size DragDropDefaultSize { get; set; } = new Size(224, 384); } public class ElTreeViewItem : TreeViewItem diff --git a/CellTypes/TreeSelect.cs b/CellTypes/TreeSelect.cs index 58cbe24..9d9a8cb 100644 --- a/CellTypes/TreeSelect.cs +++ b/CellTypes/TreeSelect.cs @@ -29,7 +29,7 @@ namespace ElementUI CellType.placeholder = Resources.CascaderCellType_placeholder_DefaultValue; } - public override Size DragDropDefaultSize { get; set; } = new Size(240, 40); + public override Size DragDropDefaultSize { get; set; } = new Size(320, 32); } [Icon("pack://application:,,,/ElementUI;component/Resources/Images/TreeSelect.png")] diff --git a/CellTypes/UploadCellType.cs b/CellTypes/UploadCellType.cs index c388867..9a44f41 100644 --- a/CellTypes/UploadCellType.cs +++ b/CellTypes/UploadCellType.cs @@ -44,7 +44,7 @@ namespace ElementUI this.CellType.accept = ".jpg, .jpeg, .png"; } - public override Size DragDropDefaultSize { get; set; } = new Size(820, 180); + public override Size DragDropDefaultSize { get; set; } = new Size(320, 160); } [Icon("pack://application:,,,/ElementUI;component/Resources/Images/Upload.png")] diff --git a/CellTypes/VirtualizedTableCellType.cs b/CellTypes/VirtualizedTableCellType.cs index 4a089c7..3993f92 100644 --- a/CellTypes/VirtualizedTableCellType.cs +++ b/CellTypes/VirtualizedTableCellType.cs @@ -924,7 +924,7 @@ public class VirtualizedTableCellTypeDesigner : CellTypeDesigner