@@ -11,6 +11,9 @@ The complex writing feature supports various Excel data export requirements by s
1111### Overview
1212Dynamically select columns to export by setting a collection of column names, supporting ignoring columns or exporting only specific columns.
1313
14+ ### excel 示例
15+ ![ img] ( /images/docs/write_hard/excludeOrIncludeWrite.jpg )
16+
1417#### Code Example
1518``` java
1619@Test
@@ -40,6 +43,9 @@ public void excludeOrIncludeWrite() {
4043### Overview
4144Specify the column order using the ` @ExcelProperty ` annotation's ` index ` attribute.
4245
46+ ### excel 示例
47+ ![ img] ( /images/docs/write_hard/indexWrite.jpg )
48+
4349#### Sample Object
4450``` java
4551@Getter
@@ -72,6 +78,9 @@ public void indexWrite() {
7278### Overview
7379Supports setting multi-level headers by specifying main titles and sub-titles using the ` @ExcelProperty ` annotation.
7480
81+ ### excel 示例
82+ ![ img] ( /images/docs/write_hard/complexHeadWrite.jpg )
83+
7584#### Sample Object
7685``` java
7786@Getter
@@ -105,6 +114,9 @@ public void complexHeadWrite() {
105114### Overview
106115Write data to the same sheet or multiple sheets in batches to achieve pagination writing for large amounts of data.
107116
117+ ### excel 示例
118+ ![ img] ( /images/docs/write_hard/repeatedWrite.jpg )
119+
108120#### Code Example
109121``` java
110122@Test
@@ -136,6 +148,9 @@ public void repeatedWrite() {
136148### Overview
137149Supports date, number, or other custom formats through annotations.
138150
151+ ### excel 示例
152+ ![ img] ( /images/docs/write_hard/converterWrite.jpg )
153+
139154#### Sample Object
140155``` java
141156@Getter
@@ -175,6 +190,9 @@ public void converterWrite() {
175190#### Overview
176191Set cell styles in the entity class using annotations, including font, background color, row height, etc.
177192
193+ ### excel 示例
194+ ![ img] ( /images/docs/write_hard/annotationStyleWrite.jpg )
195+
178196#### Sample Object
179197``` java
180198@Getter
@@ -224,6 +242,9 @@ public void annotationStyleWrite() {
224242#### Overview
225243Dynamically set styles by implementing the ` WriteHandler ` interceptor interface, suitable for complex style logic.
226244
245+ ### excel 示例
246+ ![ img] ( /images/docs/write_hard/handlerStyleWrite.jpg )
247+
227248#### Example 1: Using Existing Strategy
228249Set styles for headers and content separately using ` HorizontalCellStyleStrategy ` .
229250
@@ -356,6 +377,9 @@ public void poiStyleWrite() {
356377### Overview
357378Supports exporting images using files, streams, byte arrays, URLs, and other methods.
358379
380+ ### excel 示例
381+ ![ img] ( /images/docs/write_hard/imageWrite.jpg )
382+
359383#### Sample Object
360384``` java
361385@Getter
@@ -400,6 +424,9 @@ public void imageWrite() throws Exception {
400424### Overview
401425Supports cell hyperlinks, adding comments, and setting formula content.
402426
427+ ### excel 示例
428+ ![ img] ( /images/docs/write_hard/writeCellDataWrite.jpg )
429+
403430#### Sample Object
404431``` java
405432@Getter
@@ -441,6 +468,9 @@ public void writeCellDataWrite() {
441468### Overview
442469Generate table headers dynamically for dynamic data or internationalization scenarios.
443470
471+ ### excel 示例
472+ ![ img] ( /images/docs/write_hard/dynamicHeadWrite.jpg )
473+
444474#### Code Example
445475``` java
446476@Test
@@ -465,6 +495,9 @@ public void dynamicHeadWrite() {
465495### Overview
466496Add comments to specific cells using interceptors, suitable for marking explanations or special tips.
467497
498+ ### excel 示例
499+ ![ img] ( /images/docs/write_hard/commentWrite.jpg )
500+
468501### Custom Comment Interceptor
469502``` java
470503@Slf4j
@@ -506,6 +539,9 @@ public void commentWrite() {
506539### Overview
507540Supports filling data on an existing template file, suitable for standardized output.
508541
542+ ### excel 示例
543+ ![ img] ( /images/docs/write_hard/commentWrite.jpg )
544+
509545### Sample Code
510546``` java
511547@Test
@@ -527,6 +563,9 @@ public void templateWrite() {
527563### Overview
528564Control column width and row height through annotations, suitable for scenarios with specific table format requirements.
529565
566+ ### excel 示例
567+ ![ img] ( /images/docs/write_hard/widthAndHeightWrite.jpg )
568+
530569### Sample Object
531570``` java
532571@Getter
@@ -567,6 +606,9 @@ public void widthAndHeightWrite() {
567606### Overview
568607Supports merging cells using annotations or custom merge strategies.
569608
609+ ### excel 示例
610+ ![ img] ( /images/docs/write_hard/mergeWrite.jpg )
611+
570612### Method 1: Annotation Form
571613``` java
572614@Getter
@@ -622,6 +664,9 @@ public void mergeWrite() {
622664### Overview
623665Supports writing multiple tables in one sheet.
624666
667+ ### excel 示例
668+ ![ img] ( /images/docs/write_hard/tableWrite.jpg )
669+
625670### Sample Code
626671``` java
627672@Test
@@ -646,6 +691,9 @@ public void tableWrite() {
646691### Overview
647692Generate dynamic table headers for scenarios where the header content changes dynamically.
648693
694+ ### excel 示例
695+ ![ img] ( /images/docs/write_hard/dynamicHeadWrite.jpg )
696+
649697### Sample Code
650698``` java
651699@Test
@@ -671,6 +719,9 @@ public void dynamicHeadWrite() {
671719### Overview
672720Custom logic implementation (such as adding dropdowns, setting hyperlinks) requires operation through interceptors.
673721
722+ ### excel 示例
723+ ![ img] ( /images/docs/write_hard/customHandlerWrite.jpg )
724+
674725### Example 1: Setting Dropdowns
675726``` java
676727public class DropdownWriteHandler implements SheetWriteHandler {
@@ -688,4 +739,12 @@ public class DropdownWriteHandler implements SheetWriteHandler {
688739### Sample Code
689740``` java
690741@Test
691- public void
742+ public void customHandlerWrite() {
743+ String fileName = " customHandlerWrite" + System . currentTimeMillis() + " .xlsx" ;
744+
745+ FastExcel . write(fileName, DemoData . class)
746+ .registerWriteHandler(new DropdownWriteHandler ())
747+ .sheet(" Custom Interceptors" )
748+ .doWrite(data());
749+ }
750+ ```
0 commit comments