Commit Graph

94 Commits

Author SHA1 Message Date
jxcproject
d4270a9eae feat(module: tabs): add CreatePage method for reusetabs (#3671)
* Update ReuseTabsService.cs

pr3660

* Update ReuseTabsService.cs

* Update ReuseTabsService.cs

* refactor

* fix build error

---------

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2024-02-29 23:50:50 +08:00
thirking
bc4041eefc
fix(module: card): enable change tab size in card (#3661)
Co-authored-by: thirking <king2381955@sina.com>
2024-02-05 12:33:36 +08:00
James Yeung
487cb08a73
feat(module: tabs): reusetabs supports the interactive auto mode (#3564)
* add a entity to store the routedata

* reusetabs interactive

* avoid null routedata

* only need reload first page on browser

* fix ReuseTabsRouteData

* fix resue tabs navigate exception

* fix reusetabs page rendering

* fix
2023-12-20 23:30:15 +08:00
James Yeung
6a0bb0b26b merge master to feature 2023-11-19 17:48:04 +08:00
James Yeung
1ed06b76a1
fix(module: tabs): default to open first pinned page with reusetabs (#3519) 2023-11-19 17:26:25 +08:00
James Yeung
1409c277b5
chore: update Blazor to .NET 8 (#3514)
* update Blazor to .NET 8

* commont NetAnalyzers

* fix bunit bug

* fix tests
2023-11-16 12:33:01 +08:00
James Yeung
c9d95e31a8
feat(module: ReuseTabs): support separate the tab from the page (#3467)
* feat(module: ReuseTabs): support separate the tab from the page

* fix event invoke

* disable reuse for pages

* missing ScanReuseTabsPageAttribute

* fix ReusePages in ReuseTabs

* avoid loop ref
2023-10-29 16:52:01 +08:00
James Yeung
d05f24dd84
feat(module: tabs): reusetabs support reload page inside blazor (#3396)
* feat(module: tabs): reusetabs support reload page inside blazor

* add locale
2023-08-21 21:57:30 +08:00
Brian Weiss
26b4d948c0
feat(module: tabs): support keyboard navigation (#3320)
* fix(module: tabs): Add support for "Enter" pressed on tab.

* Fix formatting.

* Remove white space

* support arrow key navigating

* fix tests

---------

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2023-08-20 00:55:44 +08:00
James Yeung
fa29124c80
feat(module: tabs): ReuseTabs support specific the PinUrl for the routes which contains parameters (#3363)
* feat(module: datepicker): support specific popup placement (#3345)

* feat(module: datepicker): support specific popup placement

* remove tsx

* feat(module: tabs): ReuseTabs support specific the PinUrl for the routes which contains parameters
2023-08-05 22:12:33 +08:00
James Yeung
e5e8c7db71
feat(module: tabs): add order options for pinned tabs in reusetabs (#3335) 2023-08-01 22:08:43 +08:00
James Yeung
eb3594db08 feat(module: tabs): add keepalive parameter to choose whether to keep the page state (#3334) 2023-08-01 00:35:40 +08:00
James Yeung
f9cfdc54e3
fix(module: tabs): throwing navigate exceptiion while base path was set (#3362) 2023-07-23 16:00:50 +08:00
James Yeung
ff5dced7cb
fix(module: tabs): duplicated pinned tabs in reusetabs. (#3306) 2023-06-15 23:45:56 +08:00
James Yeung
1b3625e1bc
fix(module: tabs): animated cause display incorrectly (#3177)
* fix(module: tabs): animated cause display incorrectly

* fix test

* fix test
2023-04-09 16:23:26 +08:00
张晓栋
990fd19dd9
fix(module: tabs): rewrite the logic of ReuseTabs about tab key (#3153) 2023-03-05 18:02:48 +08:00
张晓栋
2430540c9f
fix(module: tabs): ReuseTabs causes errors when the base url is not the default (#3142) 2023-02-26 23:22:27 +08:00
James Yeung
afe71bbf79
fix(module: tabs): reusetabs title update (#3088) 2023-02-14 13:00:19 +08:00
James Yeung
5c7cfb1453
fix(module: tabs): reusetabs null reference exception (#3060) 2023-02-03 22:04:42 +08:00
James Yeung
cb76d18d90
fix(module: tabs): reusetabs keep obsoleted usage (#3051) 2023-01-31 23:52:15 +08:00
James Yeung
c56873aac2 merge feature to master 2023-01-20 15:57:43 +08:00
James Yeung
06d5169bc9
fix(module: menu): submenu montion & style (#3024)
* fix(module: menu): submenu open montion & style

* fix test
2023-01-18 18:44:57 +08:00
James Yeung
978ffcb5b0
refactor(module: reusetabs): remove ReuseTabsRouteView to reduce coupling to native components (#3009)
* refactor(module: reusetabs): remove ReuseTabsRouteView to reduce coupling to native components

* fix pin tabs

* remove test project
2023-01-13 23:28:09 +08:00
berkerdong
e41b89c276
fix(module: tabs): ReuseTabs close other tab rendering error (#3002) 2023-01-11 17:05:22 +08:00
James Yeung
d7face8414
fix(module: tabs): exception at first load while activekey is specificed to a disabled tab (#2997) 2023-01-09 14:30:11 +08:00
James Yeung
9f8392084b
fix(module: tabs): avoid exception when the first TabPane is set Disabled (#2982) 2023-01-05 23:41:36 +08:00
James Yeung
bd89940741
fix(module: tabs): avoid active pane after tabs is dispsed (#2981)
* fix(module: tabs): avoid active pane after tabs is dispsed

* clear lists
2023-01-05 15:59:36 +08:00
James Yeung
d852ed4da8
fix(module: tabs): some issues with dynamic rendering (#2967)
* fix(module: tabs): render issues

* remove change avoiding
2022-12-29 23:24:47 +08:00
James Yeung
ba60651b16
chore: sync ant-design v4.24.2 (#2877) 2022-11-24 23:11:02 +08:00
ldsenow
fc91fb9b2c
fix(module: tabs): Added support of tab bar css style and class (#2844)
* feat: #2372 Added support of tab bar css style and class

* add tests

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2022-10-31 17:07:49 +08:00
James Yeung
9805945f35
fix(module: tabs): panel without animated display incorrectly (#2677)
* fix(module: tabs): panel without animated display incorrectly

* add test
2022-09-05 17:13:06 +08:00
James Yeung
1360181b85
fix(module: tabs): the content overflow at animated mode (#2671) 2022-09-04 15:00:05 +08:00
James Yeung
e9edc35bad
fix(module: reusetabs): invaild uri exception (#2663) 2022-09-04 02:43:26 +08:00
James Yeung
13091ab8fb
fix(module: reusetabs): Invalid URI exception (#2650) 2022-08-29 19:07:23 +08:00
HZY
5d127bf763
feat(module: tabs): ReuseTabs support pinning tabs (#2545)
* 选项卡添加永久显示选项功能

* 解决选项卡长久停留选项,目前还存在排序问题

* 完善永久停留标签,添加 ReuseTabsService 服务

* refactor

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2022-08-06 22:45:15 +08:00
James Yeung
1659aef02d
chore: sync ant-design v4.20.7 (#2497)
* chore: sync ant-design v4.20.7

* fix style build

* clean the style

* fix dropdown overlay

* remove cdk styles

* fix dropdown overwrite styles

* fix doc styles
2022-06-04 00:44:34 +08:00
James Yeung
15f36f2a3c fix(module: tabs): TabTemplate can't display in the overflow dropdown (#2320) 2022-03-03 23:09:52 +08:00
James Yeung
783fddf4ef feat(module: tabs): add context menu and page config for ReuseTabs (#2075)
* feat(module: tabs): add context menu

* fix missing body

* remove icon

* add context menu de
2021-11-04 00:46:20 +08:00
Andrzej Bakun
1d8e923c17 fix(module: tabs): support tabs in a card (#2053)
* fix(module:tabs): support tabs in a card

* tests
2021-10-23 16:03:06 +08:00
Guyiming
cc836bcf10 feat(module: tabs): Add AuthorizeReuseTabsRouteView (#1910)
* 使MenItem同时支持Icon和IconFont,解决当使用iconfont.cn图标后,缩起内嵌菜单导致按钮样式不统一的问题。

* 空值判断

* add IconTemplate in MenuItem

* code format

* Add AuthorizeReuseTabsRouteView

* add readme.md

* remove comments

* Add AuthorizeResuseTabsRouteView test demo

* save

* save

* done

* refactor the test app

* fix test app

* debug

* debug

* fix tab render

* fix the copyright

* fix package infomation

* fix tab display order

* fix content focerender

Co-authored-by: BG345554 <ymgu@best-inc.com>
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-10-11 23:01:27 +08:00
James Yeung
5875929a89 refactor(module: tabs): improve rendering (#1970)
* refactor(module: tabs): improve rendering

* fix ForceRender & change constants to enums

* fix animated

* fix left extra content

* add Centered feature

* fix scroll distance

* fix scroll gap

* fix index out of range

* fix tests

* fix scroll distance

* fix dropdown button position

* fix ping left & right

* hide the dropdown button
2021-10-08 14:25:41 +08:00
anranruye
915d35a513 Merge 0.9.4 to feature 2021-09-14 21:57:15 +08:00
Tony Yip
4b04f09832 perf: avoid memory leak issue of event listener (#1857)
* perf: avoid memory leak #1834

Avoid memory leak by remove the exclusive parameter and logic in the code block on AddEventListener method in DomEventService class.

The following are the components affected:
components/affix/Affix.razor.cs
components/anchor/Anchor.razor.cs
components/carousel/Carousel.razor.cs
components/core/Component/Overlay/Overlay.razor.cs
components/core/Component/Overlay/OverlayTrigger.razor.cs
components/core/JsInterop/DomEventService.cs
components/descriptions/Descriptions.razor.cs
components/dropdown/DropdownButton.cs
components/grid/Row.razor.cs
components/input/Input.cs
components/input/TextArea.razor.cs
components/layout/Sider.razor.cs
components/list/ListItem.razor.cs
components/select/Select.razor.cs
components/select/internal/SelectContent.razor.cs
components/slider/Slider.razor.cs
components/table/Table.razor.cs
components/tabs/Tabs.razor.cs

* fix override AddEventListener method in AntDesign.TestKit project

* add register/remove event listerner for exclusive use in DomEventService class

* move _dotNetObjects to DomEventListerner class/service, so that users not required to maintain it in each component.

* * move share/reuse dom event listerner methods to DomEventListerner class

* remove method 'AddEventListener' that no longer exists in DomEventService class in AntDesign.TestKit project

* * change the component referring to an IDomEventListerner interface instead of a concrete class,
  so that the component can be tested via a mock TestDomEventListerner.

* introduce DisposeShared and Dispose method in DomEventListerner to ease user remove callback from DomEventListerner

* register IDomEventListerner into DI container instead of create manually

* fix FormatKey

* fix FormatKey

* fix tests

* fix test

* fix test

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-09-09 12:56:11 +08:00
James Yeung
077f857cc0 chore: sync ant-design v4.16.9 (#1782) 2021-07-27 23:44:51 +08:00
anranruye
16654f5b51 Merge 0.8.4 to feature 2021-07-18 00:04:11 +08:00
Brian Ding
a3602eea15 feat(module: tabs): scroll over tab pane (#1581)
* feat(module: tabs): scroll over tab pane

* feat(module: tabs): drop down hide visible tabs

* clean up the code

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-07-09 10:24:27 +08:00
James Yeung
486f6cb6cf fix(module: tabs): Exception caused by cascade assignment to TabTemplate (#1708) 2021-07-05 18:40:59 +08:00
James Yeung
6705eb23e5 feat(module: tabs): add reuse tabs routeview (#1704) 2021-07-04 23:19:38 +08:00
James Yeung
3a295f5c54 feat(module: tabs): add OnClose event and TabTemplate (#1698)
* feat(module: tab): add onclose event and tabtemplate

* add tests
2021-07-02 01:16:53 +08:00
James Yeung
c181916dea chore: sync ant-design v4.16.0 (#1569) 2021-05-25 10:01:53 +08:00