Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: optimize uncontrolled usage #331

Merged
merged 1 commit into from
Apr 7, 2022
Merged

fix: optimize uncontrolled usage #331

merged 1 commit into from
Apr 7, 2022

Conversation

LeeJim
Copy link
Collaborator

@LeeJim LeeJim commented Apr 7, 2022

优化非受控用法

@github-actions
Copy link
Contributor

github-actions bot commented Apr 7, 2022

Size Change: +409 B (0%)

Total Size: 170 kB

Filename Size Change
./miniprogram_dist/checkbox/props.js 754 B +2 B (0%)
./miniprogram_dist/rate/props.js 746 B +9 B (+1%)
./miniprogram_dist/slider/props.js 867 B +67 B (+8%) 🔍
./miniprogram_dist/stepper/props.js 486 B -2 B (0%)
./miniprogram_dist/steps/props.js 657 B -10 B (-1%)
./miniprogram_dist/switch/props.js 513 B +14 B (+3%)
./miniprogram_dist/tab-bar/props.js 543 B -5 B (-1%)
./miniprogram_dist/upload/props.js 1.04 kB +59 B (+6%) 🔍
./miniprogram_dist/badge/index.js 89 B +89 B (new file) 🆕
./miniprogram_dist/button/index.js 89 B +89 B (new file) 🆕
./miniprogram_dist/loading/index.js 97 B +97 B (new file) 🆕
ℹ️ View Unchanged
Filename Size
./miniprogram_dist/avatar/avatar-group-props.js 551 B
./miniprogram_dist/avatar/avatar-group.js 1.63 kB
./miniprogram_dist/avatar/avatar-group.json 80 B
./miniprogram_dist/avatar/avatar-group.wxml 368 B
./miniprogram_dist/avatar/avatar-group.wxs 291 B
./miniprogram_dist/avatar/avatar.js 1.07 kB
./miniprogram_dist/avatar/avatar.json 106 B
./miniprogram_dist/avatar/avatar.wxml 504 B
./miniprogram_dist/avatar/avatar.wxs 386 B
./miniprogram_dist/avatar/props.js 544 B
./miniprogram_dist/avatar/type.js 86 B
./miniprogram_dist/back-top/back-top.js 653 B
./miniprogram_dist/back-top/back-top.json 81 B
./miniprogram_dist/back-top/back-top.wxml 193 B
./miniprogram_dist/back-top/props.js 382 B
./miniprogram_dist/back-top/type.js 88 B
./miniprogram_dist/badge/badge.js 675 B
./miniprogram_dist/badge/badge.json 60 B
./miniprogram_dist/badge/badge.wxml 333 B
./miniprogram_dist/badge/badge.wxs 477 B
./miniprogram_dist/badge/props.js 653 B
./miniprogram_dist/badge/type.js 88 B
./miniprogram_dist/behaviors/dom.js 325 B
./miniprogram_dist/behaviors/touch.js 369 B
./miniprogram_dist/button-group/button-group.js 654 B
./miniprogram_dist/button-group/button-group.json 59 B
./miniprogram_dist/button-group/button-group.wxml 64 B
./miniprogram_dist/button/button.js 1.32 kB
./miniprogram_dist/button/button.json 81 B
./miniprogram_dist/button/button.wxml 513 B
./miniprogram_dist/button/props.js 1.81 kB
./miniprogram_dist/button/type.js 86 B
./miniprogram_dist/cell-group/cell-group.js 654 B
./miniprogram_dist/cell-group/cell-group.json 44 B
./miniprogram_dist/cell-group/cell-group.wxml 134 B
./miniprogram_dist/cell-group/props.js 269 B
./miniprogram_dist/cell-group/type.js 88 B
./miniprogram_dist/cell/cell.js 792 B
./miniprogram_dist/cell/cell.json 81 B
./miniprogram_dist/cell/cell.wxml 479 B
./miniprogram_dist/cell/props.js 682 B
./miniprogram_dist/cell/type.js 86 B
./miniprogram_dist/checkbox-group/checkbox-group.js 1.98 kB
./miniprogram_dist/checkbox-group/checkbox-group.json 85 B
./miniprogram_dist/checkbox-group/checkbox-group.wxml 219 B
./miniprogram_dist/checkbox/checkbox-group-props.js 522 B
./miniprogram_dist/checkbox/checkbox.js 1.41 kB
./miniprogram_dist/checkbox/checkbox.json 94 B
./miniprogram_dist/checkbox/checkbox.wxml 538 B
./miniprogram_dist/checkbox/type.js 86 B
./miniprogram_dist/collapse/collapse-panel-props.js 469 B
./miniprogram_dist/collapse/collapse-panel.js 1.35 kB
./miniprogram_dist/collapse/collapse-panel.json 81 B
./miniprogram_dist/collapse/collapse-panel.wxml 497 B
./miniprogram_dist/collapse/collapse.js 930 B
./miniprogram_dist/collapse/collapse.json 44 B
./miniprogram_dist/collapse/collapse.wxml 114 B
./miniprogram_dist/collapse/index.js 129 B
./miniprogram_dist/collapse/props.js 454 B
./miniprogram_dist/collapse/type.js 86 B
./miniprogram_dist/common/common.js 67 B
./miniprogram_dist/common/component.js 265 B
./miniprogram_dist/common/config.js 91 B
./miniprogram_dist/common/src/control.js 1.07 kB
./miniprogram_dist/common/src/flatTool.js 1.76 kB
./miniprogram_dist/common/src/index.js 129 B
./miniprogram_dist/common/src/instantiationDecorator.js 1.77 kB
./miniprogram_dist/common/src/superComponent.js 127 B
./miniprogram_dist/common/template/button.wxml 387 B
./miniprogram_dist/common/utils.js 1.19 kB
./miniprogram_dist/common/utils.wxs 303 B
./miniprogram_dist/common/version.js 540 B
./miniprogram_dist/count-down/count-down.js 1.15 kB
./miniprogram_dist/count-down/count-down.json 81 B
./miniprogram_dist/count-down/count-down.wxml 366 B
./miniprogram_dist/count-down/props.js 509 B
./miniprogram_dist/count-down/type.js 86 B
./miniprogram_dist/count-down/utils.js 864 B
./miniprogram_dist/date-time-picker/date-time-picker.js 3.06 kB
./miniprogram_dist/date-time-picker/date-time-picker.json 98 B
./miniprogram_dist/date-time-picker/date-time-picker.wxml 253 B
./miniprogram_dist/date-time-picker/date-time-range-picker-props.js 835 B
./miniprogram_dist/date-time-picker/locale/en.js 142 B
./miniprogram_dist/date-time-picker/locale/zh.js 175 B
./miniprogram_dist/date-time-picker/props.js 1.08 kB
./miniprogram_dist/date-time-picker/type.js 86 B
./miniprogram_dist/dialog/dialog.js 955 B
./miniprogram_dist/dialog/dialog.json 98 B
./miniprogram_dist/dialog/dialog.wxml 883 B
./miniprogram_dist/dialog/dialog.wxs 83 B
./miniprogram_dist/dialog/index.js 1.06 kB
./miniprogram_dist/dialog/props.js 780 B
./miniprogram_dist/dialog/type.js 86 B
./miniprogram_dist/divider/divider.js 672 B
./miniprogram_dist/divider/divider.json 44 B
./miniprogram_dist/divider/divider.wxml 244 B
./miniprogram_dist/divider/props.js 455 B
./miniprogram_dist/divider/type.js 88 B
./miniprogram_dist/drawer/drawer.js 803 B
./miniprogram_dist/drawer/drawer.json 95 B
./miniprogram_dist/drawer/drawer.wxml 312 B
./miniprogram_dist/drawer/props.js 424 B
./miniprogram_dist/drawer/type.js 86 B
./miniprogram_dist/dropdown-menu/dropdown-item.js 1.87 kB
./miniprogram_dist/dropdown-menu/dropdown-item.json 152 B
./miniprogram_dist/dropdown-menu/dropdown-item.wxml 1.02 kB
./miniprogram_dist/dropdown-menu/dropdown-menu.js 616 B
./miniprogram_dist/dropdown-menu/dropdown-menu.json 59 B
./miniprogram_dist/dropdown-menu/dropdown-menu.wxml 244 B
./miniprogram_dist/empty/empty.js 668 B
./miniprogram_dist/empty/empty.json 81 B
./miniprogram_dist/empty/empty.wxml 297 B
./miniprogram_dist/empty/empty.wxs 176 B
./miniprogram_dist/empty/props.js 321 B
./miniprogram_dist/empty/type.js 88 B
./miniprogram_dist/fab/fab.js 653 B
./miniprogram_dist/fab/fab.json 83 B
./miniprogram_dist/fab/fab.wxml 194 B
./miniprogram_dist/fab/props.js 312 B
./miniprogram_dist/fab/type.js 86 B
./miniprogram_dist/footer/footer.js 533 B
./miniprogram_dist/footer/footer.json 59 B
./miniprogram_dist/footer/footer.wxml 373 B
./miniprogram_dist/footer/props.js 447 B
./miniprogram_dist/footer/type.js 88 B
./miniprogram_dist/grid/grid-item-props.js 508 B
./miniprogram_dist/grid/grid-item.js 1.45 kB
./miniprogram_dist/grid/grid-item.json 82 B
./miniprogram_dist/grid/grid-item.wxml 412 B
./miniprogram_dist/grid/grid.js 1 kB
./miniprogram_dist/grid/grid.json 59 B
./miniprogram_dist/grid/grid.wxml 103 B
./miniprogram_dist/grid/props.js 477 B
./miniprogram_dist/grid/type.js 88 B
./miniprogram_dist/icon/icon.js 750 B
./miniprogram_dist/icon/icon.json 59 B
./miniprogram_dist/icon/icon.wxml 172 B
./miniprogram_dist/icon/props.js 323 B
./miniprogram_dist/icon/type.js 86 B
./miniprogram_dist/image/image-info.json 719 B
./miniprogram_dist/image/image.js 1.39 kB
./miniprogram_dist/image/image.json 96 B
./miniprogram_dist/image/image.wxml 529 B
./miniprogram_dist/image/index.js 90 B
./miniprogram_dist/image/props.js 1.24 kB
./miniprogram_dist/image/type.js 86 B
./miniprogram_dist/indexes/indexes.js 2.09 kB
./miniprogram_dist/indexes/indexes.json 108 B
./miniprogram_dist/indexes/indexes.wxml 558 B
./miniprogram_dist/indexes/props.js 432 B
./miniprogram_dist/indexes/type.js 88 B
./miniprogram_dist/input/input.js 1.17 kB
./miniprogram_dist/input/input.json 94 B
./miniprogram_dist/input/input.wxml 677 B
./miniprogram_dist/input/props.js 955 B
./miniprogram_dist/input/type.js 86 B
./miniprogram_dist/loading/loading.js 786 B
./miniprogram_dist/loading/loading.json 59 B
./miniprogram_dist/loading/loading.wxml 712 B
./miniprogram_dist/loading/props.js 648 B
./miniprogram_dist/loading/type.js 88 B
./miniprogram_dist/message/index.js 567 B
./miniprogram_dist/message/message.interface.js 170 B
./miniprogram_dist/message/message.js 2.41 kB
./miniprogram_dist/message/message.json 94 B
./miniprogram_dist/message/message.wxml 523 B
./miniprogram_dist/message/message.wxs 238 B
./miniprogram_dist/message/props.js 991 B
./miniprogram_dist/message/type.js 88 B
./miniprogram_dist/miniprogram_npm/dayjs/index.js 2.9 kB
./miniprogram_dist/navbar/navbar.js 1.93 kB
./miniprogram_dist/navbar/navbar.json 81 B
./miniprogram_dist/navbar/navbar.wxml 552 B
./miniprogram_dist/navbar/props.js 809 B
./miniprogram_dist/navbar/type.js 86 B
./miniprogram_dist/picker/picker-column.js 1.6 kB
./miniprogram_dist/picker/picker-column.json 59 B
./miniprogram_dist/picker/picker-column.wxml 296 B
./miniprogram_dist/picker/picker-item-props.js 233 B
./miniprogram_dist/picker/picker.js 1.01 kB
./miniprogram_dist/picker/picker.json 82 B
./miniprogram_dist/picker/picker.wxml 297 B
./miniprogram_dist/picker/props.js 418 B
./miniprogram_dist/picker/type.js 86 B
./miniprogram_dist/popup/popup.js 960 B
./miniprogram_dist/popup/popup.json 99 B
./miniprogram_dist/popup/popup.wxml 364 B
./miniprogram_dist/popup/props.js 648 B
./miniprogram_dist/popup/type.js 88 B
./miniprogram_dist/progress/progress.js 566 B
./miniprogram_dist/progress/progress.json 59 B
./miniprogram_dist/progress/progress.wxml 352 B
./miniprogram_dist/pull-down-refresh/props.js 398 B
./miniprogram_dist/pull-down-refresh/pull-down-refresh.js 2.69 kB
./miniprogram_dist/pull-down-refresh/pull-down-refresh.json 83 B
./miniprogram_dist/pull-down-refresh/pull-down-refresh.wxml 470 B
./miniprogram_dist/pull-down-refresh/type.js 88 B
./miniprogram_dist/radio-group/radio-group.js 1.28 kB
./miniprogram_dist/radio-group/radio-group.json 82 B
./miniprogram_dist/radio-group/radio-group.wxml 200 B
./miniprogram_dist/radio/props.js 705 B
./miniprogram_dist/radio/radio-group-props.js 433 B
./miniprogram_dist/radio/radio.js 1.13 kB
./miniprogram_dist/radio/radio.json 94 B
./miniprogram_dist/radio/radio.wxml 503 B
./miniprogram_dist/radio/type.js 86 B
./miniprogram_dist/rate/rate.js 1.28 kB
./miniprogram_dist/rate/rate.json 81 B
./miniprogram_dist/rate/rate.wxml 424 B
./miniprogram_dist/rate/rate.wxs 515 B
./miniprogram_dist/rate/type.js 86 B
./miniprogram_dist/search/props.js 505 B
./miniprogram_dist/search/search.js 842 B
./miniprogram_dist/search/search.json 81 B
./miniprogram_dist/search/search.wxml 552 B
./miniprogram_dist/search/type.js 86 B
./miniprogram_dist/segmented-control/segmented-control.js 435 B
./miniprogram_dist/segmented-control/segmented-control.json 44 B
./miniprogram_dist/segmented-control/segmented-control.wxml 223 B
./miniprogram_dist/skeleton/props.js 702 B
./miniprogram_dist/skeleton/skeleton.js 878 B
./miniprogram_dist/skeleton/skeleton.json 59 B
./miniprogram_dist/skeleton/skeleton.wxml 401 B
./miniprogram_dist/skeleton/type.js 88 B
./miniprogram_dist/slider/slider.js 3.3 kB
./miniprogram_dist/slider/slider.json 59 B
./miniprogram_dist/slider/slider.wxml 995 B
./miniprogram_dist/slider/slider.wxs 177 B
./miniprogram_dist/slider/tool.js 480 B
./miniprogram_dist/slider/type.js 86 B
./miniprogram_dist/stepper/stepper.js 1.14 kB
./miniprogram_dist/stepper/stepper.json 94 B
./miniprogram_dist/stepper/stepper.wxml 406 B
./miniprogram_dist/stepper/type.js 86 B
./miniprogram_dist/steps/step-item-props.js 432 B
./miniprogram_dist/steps/step-item.js 1.84 kB
./miniprogram_dist/steps/step-item.json 81 B
./miniprogram_dist/steps/step-item.wxml 713 B
./miniprogram_dist/steps/steps.js 1.05 kB
./miniprogram_dist/steps/steps.json 83 B
./miniprogram_dist/steps/steps.wxml 130 B
./miniprogram_dist/steps/type.js 86 B
./miniprogram_dist/sticky/props.js 474 B
./miniprogram_dist/sticky/sticky.js 1.28 kB
./miniprogram_dist/sticky/sticky.json 59 B
./miniprogram_dist/sticky/sticky.wxml 136 B
./miniprogram_dist/sticky/type.js 88 B
./miniprogram_dist/sticky/utils.js 544 B
./miniprogram_dist/swipe-cell/props.js 562 B
./miniprogram_dist/swipe-cell/swipe-cell.js 1.18 kB
./miniprogram_dist/swipe-cell/swipe-cell.json 44 B
./miniprogram_dist/swipe-cell/swipe-cell.wxml 408 B
./miniprogram_dist/swipe-cell/swipe-cell.wxs 1.47 kB
./miniprogram_dist/swipe-cell/type.js 88 B
./miniprogram_dist/swiper/common/constants.js 146 B
./miniprogram_dist/swiper/props.js 615 B
./miniprogram_dist/swiper/swiper-item.js 721 B
./miniprogram_dist/swiper/swiper-item.json 44 B
./miniprogram_dist/swiper/swiper-item.wxml 104 B
./miniprogram_dist/swiper/swiper-nav.js 1.27 kB
./miniprogram_dist/swiper/swiper-nav.json 44 B
./miniprogram_dist/swiper/swiper-nav.wxml 300 B
./miniprogram_dist/swiper/swiper.js 3.19 kB
./miniprogram_dist/swiper/swiper.json 95 B
./miniprogram_dist/swiper/swiper.wxml 636 B
./miniprogram_dist/swiper/swiper.wxs 1.35 kB
./miniprogram_dist/swiper/type.js 88 B
./miniprogram_dist/switch/switch.js 1.06 kB
./miniprogram_dist/switch/switch.json 59 B
./miniprogram_dist/switch/switch.wxml 230 B
./miniprogram_dist/switch/type.js 86 B
./miniprogram_dist/tab-bar/tab-bar-item-props.js 290 B
./miniprogram_dist/tab-bar/tab-bar-item.js 1.06 kB
./miniprogram_dist/tab-bar/tab-bar-item.json 95 B
./miniprogram_dist/tab-bar/tab-bar-item.wxml 540 B
./miniprogram_dist/tab-bar/tab-bar.js 1.09 kB
./miniprogram_dist/tab-bar/tab-bar.json 86 B
./miniprogram_dist/tab-bar/tab-bar.wxml 136 B
./miniprogram_dist/tab-bar/type.js 86 B
./miniprogram_dist/tabs/props.js 486 B
./miniprogram_dist/tabs/tab-panel-props.js 371 B
./miniprogram_dist/tabs/tab-panel.js 728 B
./miniprogram_dist/tabs/tab-panel.json 59 B
./miniprogram_dist/tabs/tab-panel.wxml 202 B
./miniprogram_dist/tabs/tabs.js 2.22 kB
./miniprogram_dist/tabs/tabs.json 44 B
./miniprogram_dist/tabs/tabs.wxml 466 B
./miniprogram_dist/tabs/tabs.wxs 288 B
./miniprogram_dist/tabs/type.js 86 B
./miniprogram_dist/tag/check-tag-props.js 517 B
./miniprogram_dist/tag/check-tag.js 688 B
./miniprogram_dist/tag/check-tag.json 83 B
./miniprogram_dist/tag/check-tag.wxml 250 B
./miniprogram_dist/tag/check-tag.wxs 400 B
./miniprogram_dist/tag/props.js 623 B
./miniprogram_dist/tag/tag.js 600 B
./miniprogram_dist/tag/tag.json 83 B
./miniprogram_dist/tag/tag.wxml 310 B
./miniprogram_dist/tag/tag.wxs 493 B
./miniprogram_dist/tag/type.js 86 B
./miniprogram_dist/textarea/props.js 698 B
./miniprogram_dist/textarea/textarea.js 1.18 kB
./miniprogram_dist/textarea/textarea.json 94 B
./miniprogram_dist/textarea/textarea.wxml 405 B
./miniprogram_dist/textarea/type.js 86 B
./miniprogram_dist/toast/index.js 654 B
./miniprogram_dist/toast/props.js 435 B
./miniprogram_dist/toast/toast.js 1.12 kB
./miniprogram_dist/toast/toast.json 96 B
./miniprogram_dist/toast/toast.wxml 443 B
./miniprogram_dist/toast/type.js 88 B
./miniprogram_dist/transition/props.js 455 B
./miniprogram_dist/transition/transition.js 971 B
./miniprogram_dist/transition/transition.json 59 B
./miniprogram_dist/transition/transition.wxml 161 B
./miniprogram_dist/transition/type.js 193 B
./miniprogram_dist/upload/type.js 86 B
./miniprogram_dist/upload/upload-info.json 1.34 kB
./miniprogram_dist/upload/upload.js 2.94 kB
./miniprogram_dist/upload/upload.json 125 B
./miniprogram_dist/upload/upload.wxml 812 B

@LeeJim LeeJim merged commit 4a3897f into develop Apr 7, 2022
@LeeJim LeeJim deleted the fix/uncontrol-usage branch April 7, 2022 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant