Skip to content

Commit

Permalink
feat: lazy component
Browse files Browse the repository at this point in the history
  • Loading branch information
xrkffgg committed Jun 5, 2024
1 parent 62366c5 commit 1044dc5
Show file tree
Hide file tree
Showing 73 changed files with 94 additions and 21 deletions.
1 change: 1 addition & 0 deletions src/ActionSheet/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {
"ant-popup": "../Popup/index"
}
Expand Down
3 changes: 2 additions & 1 deletion src/Avatar/index.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"component": true
"component": true,
"lazyCodeLoading": "renderedComponents"
}
3 changes: 2 additions & 1 deletion src/Badge/index.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"component": true
"component": true,
"lazyCodeLoading": "renderedComponents"
}
1 change: 1 addition & 0 deletions src/Button/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {
"loading": "../Loading/index",
"ant-icon": "../Icon/index"
Expand Down
3 changes: 2 additions & 1 deletion src/Calendar/index.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"component": true
"component": true,
"lazyCodeLoading": "renderedComponents"
}
1 change: 1 addition & 0 deletions src/Checkbox/CheckboxGroup/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {
"list": "../../List/index",
"list-item": "../../List/ListItem/index",
Expand Down
1 change: 1 addition & 0 deletions src/Checkbox/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {
"ant-icon": "../Icon/index"
}
Expand Down
1 change: 1 addition & 0 deletions src/Checklist/ChecklistItem/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {
"icon": "../../Icon/index"
}
Expand Down
1 change: 1 addition & 0 deletions src/Checklist/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {
"ant-checklist-item": "./ChecklistItem/index",
"ant-icon": "../Icon/index"
Expand Down
1 change: 1 addition & 0 deletions src/Collapse/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {
"ant-icon": "../Icon/index"
}
Expand Down
3 changes: 2 additions & 1 deletion src/Container/index.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"component": true
"component": true,
"lazyCodeLoading": "renderedComponents"
}
1 change: 1 addition & 0 deletions src/DatePicker/RangePicker/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {
"icon": "../../Icon/index",
"ant-picker": "../../Picker/index"
Expand Down
1 change: 1 addition & 0 deletions src/DatePicker/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {
"ant-picker": "../Picker/index"
}
Expand Down
1 change: 1 addition & 0 deletions src/Divider/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {
}
}
1 change: 1 addition & 0 deletions src/Empty/index.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {}
}
1 change: 1 addition & 0 deletions src/Form/FormCascaderPicker/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {
"form-item": "../FormItem/index",
"ant-cascader-picker": "../../Picker/CascaderPicker/index",
Expand Down
1 change: 1 addition & 0 deletions src/Form/FormCheckboxGroup/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {
"form-item": "../FormItem/index",
"checkbox-group": "../../Checkbox/CheckboxGroup/index"
Expand Down
1 change: 1 addition & 0 deletions src/Form/FormDatePicker/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {
"form-item": "../FormItem/index",
"ant-date-picker": "../../DatePicker/index",
Expand Down
3 changes: 2 additions & 1 deletion src/Form/FormImageUpload/index.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {
"form-item": "../FormItem/index",
"image-upload": "../../ImageUpload/index"
}
}
}
1 change: 1 addition & 0 deletions src/Form/FormInput/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {
"form-item": "../FormItem/index",
"ant-input": "../../Input/index"
Expand Down
1 change: 1 addition & 0 deletions src/Form/FormItem/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {
"popover": "../../Popover/index",
"ant-icon": "../../Icon/index"
Expand Down
1 change: 1 addition & 0 deletions src/Form/FormPicker/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {
"form-item": "../FormItem/index",
"ant-picker": "../../Picker/index",
Expand Down
1 change: 1 addition & 0 deletions src/Form/FormRadioGroup/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {
"form-item": "../FormItem/index",
"ant-radio-group": "../../Radio/RadioGroup/index"
Expand Down
1 change: 1 addition & 0 deletions src/Form/FormRangePicker/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {
"form-item": "../FormItem/index",
"ant-range-picker": "../../DatePicker/RangePicker/index",
Expand Down
1 change: 1 addition & 0 deletions src/Form/FormRate/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {
"form-item": "../FormItem/index",
"icon": "../../Icon/index",
Expand Down
1 change: 1 addition & 0 deletions src/Form/FormSelector/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {
"form-item": "../FormItem/index",
"selector": "../../Selector/index"
Expand Down
3 changes: 2 additions & 1 deletion src/Form/FormSlider/index.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {
"form-item": "../FormItem/index",
"slider": "../../Slider/index"
}
}
}
3 changes: 2 additions & 1 deletion src/Form/FormStepper/index.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {
"form-item": "../FormItem/index",
"stepper": "../../Stepper/index"
}
}
}
3 changes: 2 additions & 1 deletion src/Form/FormSwitch/index.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {
"form-item": "../FormItem/index",
"switch": "../../Switch/index"
}
}
}
1 change: 1 addition & 0 deletions src/Form/FormTextarea/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {
"form-item": "../FormItem/index",
"ant-textarea": "../../Input/Textarea/index"
Expand Down
1 change: 1 addition & 0 deletions src/Grid/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {
"image-icon": "../ImageIcon/index",
"ant-pagination": "../Pagination/index"
Expand Down
1 change: 1 addition & 0 deletions src/GuideTour/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {
"mask": "../Mask/index",
"ant-button": "../Button/index",
Expand Down
5 changes: 3 additions & 2 deletions src/Icon/index.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"component": true
}
"component": true,
"lazyCodeLoading": "renderedComponents"
}
1 change: 1 addition & 0 deletions src/ImageIcon/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {
"icon": "../Icon/index"
}
Expand Down
3 changes: 2 additions & 1 deletion src/ImageUpload/index.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {
"icon": "../Icon/index",
"loading": "../Loading/index"
}
}
}
3 changes: 2 additions & 1 deletion src/IndexBar/index.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"component": true
"component": true,
"lazyCodeLoading": "renderedComponents"
}
3 changes: 2 additions & 1 deletion src/Input/InputBlur/index.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"component": true
"component": true,
"lazyCodeLoading": "renderedComponents"
}
1 change: 1 addition & 0 deletions src/Input/Textarea/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {
"icon": "../../Icon/index"
}
Expand Down
1 change: 1 addition & 0 deletions src/Input/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {
"icon": "../Icon/index"
}
Expand Down
1 change: 1 addition & 0 deletions src/List/ListItem/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {
"icon": "../../Icon/index",
"image-icon": "../../ImageIcon/index"
Expand Down
3 changes: 2 additions & 1 deletion src/List/index.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"component": true
"component": true,
"lazyCodeLoading": "renderedComponents"
}
3 changes: 2 additions & 1 deletion src/Loading/index.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"component": true
"component": true,
"lazyCodeLoading": "renderedComponents"
}
3 changes: 2 additions & 1 deletion src/Mask/index.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"component": true
"component": true,
"lazyCodeLoading": "renderedComponents"
}
1 change: 1 addition & 0 deletions src/Modal/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {
"ant-button": "../Button/index",
"ant-icon": "../Icon/index",
Expand Down
1 change: 1 addition & 0 deletions src/NoticeBar/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {
"icon": "../Icon/index",
"image-icon": "../ImageIcon/index"
Expand Down
1 change: 1 addition & 0 deletions src/NumberKeyboard/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {
"ant-icon": "../Icon/index"
}
Expand Down
3 changes: 2 additions & 1 deletion src/Pagination/index.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"component": true
"component": true,
"lazyCodeLoading": "renderedComponents"
}
1 change: 1 addition & 0 deletions src/Picker/CascaderPicker/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {
"ant-picker": "../index"
}
Expand Down
1 change: 1 addition & 0 deletions src/Picker/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {
"ant-popup": "../Popup/index"
}
Expand Down
1 change: 1 addition & 0 deletions src/Popover/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {
"mask": "../Mask/index"
}
Expand Down
1 change: 1 addition & 0 deletions src/Popup/index.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {}
}
1 change: 1 addition & 0 deletions src/Progress/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {
"ant-icon": "../Icon/index"
}
Expand Down
1 change: 1 addition & 0 deletions src/Radio/RadioGroup/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {
"list": "../../List/index",
"list-item": "../../List/ListItem/index",
Expand Down
1 change: 1 addition & 0 deletions src/Radio/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {
"ant-icon": "../Icon/index"
}
Expand Down
1 change: 1 addition & 0 deletions src/RareWordsKeyboard/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"component": true,
"lazyCodeLoading": "renderedComponents",
"usingComponents": {
"icon": "../Icon/index",
"result": "../Result/index",
Expand Down
Loading

0 comments on commit 1044dc5

Please sign in to comment.