pixuireactcomponents 1.2.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -6
- package/package.json +9 -66
- package/tsconfig.json +27 -13
- package/{src/pixUIReactComponents/ui → ui}/components/slapface/Slapface.tsx +17 -17
- package/ui/sample/Slapface/SlapfaceDemo.tsx +30 -0
- package/.eslintignore +0 -7
- package/.eslintrc.js +0 -48
- package/.pixiderc/apps.json +0 -12
- package/.pixiderc/devel-config.meta.json +0 -23
- package/.pixiderc/postinstall.js +0 -17
- package/.pixiderc/util.js +0 -136
- package/.pixiderc/webpack.js +0 -180
- package/faas/helloworld.js +0 -8
- package/gen/pbo/pandora_pb.d.ts +0 -1179
- package/gen/pbo/pandora_pb.js +0 -10475
- package/gen/pbo/pandora_pb_service.d.ts +0 -1317
- package/gen/pbo/pandora_pb_service.js +0 -2307
- package/gen/pbo/test_pb.d.ts +0 -99
- package/gen/pbo/test_pb.js +0 -889
- package/gen/pbo/test_pb_service.d.ts +0 -82
- package/gen/pbo/test_pb_service.js +0 -117
- package/lib/assets/border.png +0 -0
- package/lib/assets/check.html +0 -54
- package/lib/assets/pixui.png +0 -0
- package/lib/assets/preact.png +0 -0
- package/lib/check/main.less +0 -63
- package/lib/check/main.tsx +0 -42
- package/lib/check/tool.js +0 -3
- package/lib/check/util.tsx +0 -107
- package/lib/dom.ts +0 -16
- package/lib/ext.d.ts +0 -95
- package/lib/grpc-web/dist/ChunkParser.js +0 -115
- package/lib/grpc-web/dist/ChunkParser.js.map +0 -1
- package/lib/grpc-web/dist/Code.js +0 -58
- package/lib/grpc-web/dist/Code.js.map +0 -1
- package/lib/grpc-web/dist/client.js +0 -299
- package/lib/grpc-web/dist/client.js.map +0 -1
- package/lib/grpc-web/dist/debug.js +0 -16
- package/lib/grpc-web/dist/debug.js.map +0 -1
- package/lib/grpc-web/dist/detach.js +0 -7
- package/lib/grpc-web/dist/detach.js.map +0 -1
- package/lib/grpc-web/dist/index.js +0 -29
- package/lib/grpc-web/dist/index.js.map +0 -1
- package/lib/grpc-web/dist/invoke.js +0 -32
- package/lib/grpc-web/dist/invoke.js.map +0 -1
- package/lib/grpc-web/dist/message.js +0 -3
- package/lib/grpc-web/dist/message.js.map +0 -1
- package/lib/grpc-web/dist/metadata.js +0 -5
- package/lib/grpc-web/dist/metadata.js.map +0 -1
- package/lib/grpc-web/dist/service.js +0 -3
- package/lib/grpc-web/dist/service.js.map +0 -1
- package/lib/grpc-web/dist/transports/Transport.js +0 -13
- package/lib/grpc-web/dist/transports/Transport.js.map +0 -1
- package/lib/grpc-web/dist/transports/http/fetch.js +0 -112
- package/lib/grpc-web/dist/transports/http/fetch.js.map +0 -1
- package/lib/grpc-web/dist/transports/http/http.js +0 -15
- package/lib/grpc-web/dist/transports/http/http.js.map +0 -1
- package/lib/grpc-web/dist/transports/http/xhr.js +0 -127
- package/lib/grpc-web/dist/transports/http/xhr.js.map +0 -1
- package/lib/grpc-web/dist/transports/http/xhrUtil.js +0 -37
- package/lib/grpc-web/dist/transports/http/xhrUtil.js.map +0 -1
- package/lib/grpc-web/dist/transports/websocket/websocket.js +0 -95
- package/lib/grpc-web/dist/transports/websocket/websocket.js.map +0 -1
- package/lib/grpc-web/dist/typings/ChunkParser.d.ts +0 -17
- package/lib/grpc-web/dist/typings/Code.d.ts +0 -20
- package/lib/grpc-web/dist/typings/client.d.ts +0 -22
- package/lib/grpc-web/dist/typings/debug.d.ts +0 -1
- package/lib/grpc-web/dist/typings/detach.d.ts +0 -1
- package/lib/grpc-web/dist/typings/index.d.ts +0 -60
- package/lib/grpc-web/dist/typings/invoke.d.ts +0 -17
- package/lib/grpc-web/dist/typings/message.d.ts +0 -8
- package/lib/grpc-web/dist/typings/metadata.d.ts +0 -2
- package/lib/grpc-web/dist/typings/service.d.ts +0 -16
- package/lib/grpc-web/dist/typings/transports/Transport.d.ts +0 -22
- package/lib/grpc-web/dist/typings/transports/http/fetch.d.ts +0 -6
- package/lib/grpc-web/dist/typings/transports/http/http.d.ts +0 -5
- package/lib/grpc-web/dist/typings/transports/http/xhr.d.ts +0 -27
- package/lib/grpc-web/dist/typings/transports/http/xhrUtil.d.ts +0 -3
- package/lib/grpc-web/dist/typings/transports/websocket/websocket.d.ts +0 -2
- package/lib/grpc-web/dist/typings/unary.d.ts +0 -20
- package/lib/grpc-web/dist/typings/util.d.ts +0 -2
- package/lib/grpc-web/dist/unary.js +0 -44
- package/lib/grpc-web/dist/unary.js.map +0 -1
- package/lib/grpc-web/dist/util.js +0 -11
- package/lib/grpc-web/dist/util.js.map +0 -1
- package/lib/grpcTransport/PixHttp2Transport.ts +0 -104
- package/lib/grpcTransport/PixLuaTransport.ts +0 -80
- package/lib/pi_component/tinyList/tinyList.js +0 -573
- package/lib/pi_component/tinyList/tinyList.tsx +0 -586
- package/lib/preact/compat/src/Children.js +0 -26
- package/lib/preact/compat/src/PureComponent.js +0 -19
- package/lib/preact/compat/src/events.js +0 -36
- package/lib/preact/compat/src/forwardRef.js +0 -29
- package/lib/preact/compat/src/index.d.ts +0 -121
- package/lib/preact/compat/src/index.js +0 -159
- package/lib/preact/compat/src/internal.d.ts +0 -45
- package/lib/preact/compat/src/memo.js +0 -34
- package/lib/preact/compat/src/portals.js +0 -85
- package/lib/preact/compat/src/render.js +0 -166
- package/lib/preact/compat/src/suspense-list.d.ts +0 -14
- package/lib/preact/compat/src/suspense-list.js +0 -127
- package/lib/preact/compat/src/suspense.d.ts +0 -15
- package/lib/preact/compat/src/suspense.js +0 -165
- package/lib/preact/compat/src/util.js +0 -23
- package/lib/preact/hooks/src/index.d.ts +0 -133
- package/lib/preact/hooks/src/index.js +0 -339
- package/lib/preact/hooks/src/internal.d.ts +0 -55
- package/lib/preact/src/clone-element.js +0 -27
- package/lib/preact/src/compat.ts +0 -0
- package/lib/preact/src/component.js +0 -219
- package/lib/preact/src/constants.js +0 -3
- package/lib/preact/src/create-context.js +0 -55
- package/lib/preact/src/create-element.js +0 -102
- package/lib/preact/src/css.d.ts +0 -30341
- package/lib/preact/src/diff/catch-error.js +0 -41
- package/lib/preact/src/diff/children.js +0 -259
- package/lib/preact/src/diff/index.js +0 -445
- package/lib/preact/src/diff/props.js +0 -163
- package/lib/preact/src/index.d.ts +0 -275
- package/lib/preact/src/index.js +0 -14
- package/lib/preact/src/internal.d.ts +0 -94
- package/lib/preact/src/jsx.d.ts +0 -884
- package/lib/preact/src/options.js +0 -16
- package/lib/preact/src/render.js +0 -98
- package/lib/preact/src/util.js +0 -25
- package/lib/preact-router/.travis.yml +0 -3
- package/lib/preact-router/LICENSE +0 -21
- package/lib/preact-router/README.md +0 -254
- package/lib/preact-router/index.d.ts +0 -71
- package/lib/preact-router/match/index.d.ts +0 -16
- package/lib/preact-router/match/package.json +0 -13
- package/lib/preact-router/match/src/cjs.js +0 -4
- package/lib/preact-router/match/src/index.js +0 -36
- package/lib/preact-router/package-lock.json +0 -12330
- package/lib/preact-router/package.json +0 -78
- package/lib/preact-router/src/cjs.js +0 -11
- package/lib/preact-router/src/index.js +0 -270
- package/lib/preact-router/src/util.js +0 -87
- package/lib/react-window/src/FixedSizeGrid.js +0 -244
- package/lib/react-window/src/FixedSizeList.js +0 -130
- package/lib/react-window/src/VariableSizeGrid.js +0 -507
- package/lib/react-window/src/VariableSizeList.js +0 -316
- package/lib/react-window/src/__tests__/FixedSizeGrid.js +0 -1336
- package/lib/react-window/src/__tests__/FixedSizeList.js +0 -966
- package/lib/react-window/src/__tests__/VariableSizeGrid.js +0 -779
- package/lib/react-window/src/__tests__/VariableSizeList.js +0 -442
- package/lib/react-window/src/__tests__/__snapshots__/FixedSizeGrid.js.snap +0 -912
- package/lib/react-window/src/__tests__/__snapshots__/FixedSizeList.js.snap +0 -568
- package/lib/react-window/src/__tests__/__snapshots__/VariableSizeGrid.js.snap +0 -542
- package/lib/react-window/src/__tests__/__snapshots__/VariableSizeList.js.snap +0 -331
- package/lib/react-window/src/__tests__/areEqual.js +0 -32
- package/lib/react-window/src/__tests__/shouldComponentUpdate.js +0 -36
- package/lib/react-window/src/areEqual.js +0 -18
- package/lib/react-window/src/createGridComponent.js +0 -919
- package/lib/react-window/src/createListComponent.js +0 -729
- package/lib/react-window/src/domHelpers.js +0 -72
- package/lib/react-window/src/index.js +0 -9
- package/lib/react-window/src/shallowDiffers.js +0 -17
- package/lib/react-window/src/shouldComponentUpdate.js +0 -16
- package/lib/react-window/src/test.js.flow +0 -382
- package/lib/react-window/src/timer.js +0 -36
- package/src/app/demopage.tsx +0 -77
- package/src/app/index.html +0 -48
- package/src/app/main.tsx +0 -30
- package/src/asset/Textures/Alert/bg_tips.png +0 -0
- package/src/asset/Textures/Alert/btn_zhedie_a.png +0 -0
- package/src/asset/Textures/Alert/com_home_bg_left.png +0 -0
- package/src/asset/Textures/Alert/com_home_bg_rightbar.png +0 -0
- package/src/asset/Textures/Commons/com_home_bg_a.png +0 -0
- package/src/asset/Textures/Commons/com_home_bg_back_top.png +0 -0
- package/src/asset/Textures/Commons/com_home_bg_bottombar_sheet.png +0 -0
- package/src/asset/Textures/Commons/com_home_bg_list_xiala.png +0 -0
- package/src/asset/Textures/Commons/com_home_bg_rightbar_line.png +0 -0
- package/src/asset/Textures/Commons/com_home_bg_rightbar_selected.png +0 -0
- package/src/asset/Textures/Commons/com_home_bg_touxiang_140.png +0 -0
- package/src/asset/Textures/Commons/com_home_bg_touxiang_60.png +0 -0
- package/src/asset/Textures/Commons/com_home_bg_touxiang_80.png +0 -0
- package/src/asset/Textures/Commons/com_home_btn_back.png +0 -0
- package/src/asset/Textures/Commons/com_home_btn_bottombar.png +0 -0
- package/src/asset/Textures/Commons/com_home_btn_bottombar_fadongtai.png +0 -0
- package/src/asset/Textures/Commons/com_home_btn_close.png +0 -0
- package/src/asset/Textures/Commons/com_home_btn_guanzhu_126.png +0 -0
- package/src/asset/Textures/Commons/com_home_btn_guanzhu_86.png +0 -0
- package/src/asset/Textures/Commons/com_home_btn_left_bianji.png +0 -0
- package/src/asset/Textures/Commons/com_home_btn_left_dongtai.png +0 -0
- package/src/asset/Textures/Commons/com_home_btn_left_touxiang.png +0 -0
- package/src/asset/Textures/Commons/com_home_btn_selet.png +0 -0
- package/src/asset/Textures/Commons/com_home_btn_yiguanzhu_126.png +0 -0
- package/src/asset/Textures/Commons/com_home_btn_yiguanzhu_86.png +0 -0
- package/src/asset/Textures/Commons/com_home_icon_bottombar_fadongtai.png +0 -0
- package/src/asset/Textures/Commons/com_home_icon_bottombar_red.png +0 -0
- package/src/asset/Textures/Commons/com_home_icon_loading.png +0 -0
- package/src/asset/Textures/Commons/com_home_pic_touxiang_moren.png +0 -0
- package/src/asset/Textures/Commons/com_home_tab_left_a.png +0 -0
- package/src/asset/Textures/Commons/com_home_tab_left_b.png +0 -0
- package/src/asset/Textures/Commons/com_home_tab_left_c.png +0 -0
- package/src/asset/Textures/Commons/feedItems/gc1_huati_icon_middle_v.png +0 -0
- package/src/asset/Textures/Commons/feedItems/gc1_huati_icon_middle_yonghurenzheng.png +0 -0
- package/src/asset/Textures/Commons/feedItems/pinglun_bg.png +0 -0
- package/src/asset/Textures/Commons/feedItems/pinglun_bg_line.png +0 -0
- package/src/asset/Textures/Commons/feedItems/pinglun_bg_middle_chakan.png +0 -0
- package/src/asset/Textures/Commons/feedItems/pinglun_bg_middle_input.png +0 -0
- package/src/asset/Textures/Commons/feedItems/pinglun_bg_zan.png +0 -0
- package/src/asset/Textures/Commons/feedItems/pinglun_btn_middle_input.png +0 -0
- package/src/asset/Textures/Commons/feedItems/pinglun_btn_more.png +0 -0
- package/src/asset/Textures/Commons/feedItems/pinglun_btn_normal.png +0 -0
- package/src/asset/Textures/Commons/feedItems/pinglun_btn_photo_more.png +0 -0
- package/src/asset/Textures/Commons/feedItems/pinglun_btn_zhedie_a.png +0 -0
- package/src/asset/Textures/Commons/feedItems/pinglun_btn_zhedie_a_shadow.png +0 -0
- package/src/asset/Textures/Commons/feedItems/pinglun_btn_zhedie_b_normal.png +0 -0
- package/src/asset/Textures/Commons/feedItems/pinglun_btn_zhedie_b_pressed.png +0 -0
- package/src/asset/Textures/Commons/feedItems/pinglun_icon_a_normal.png +0 -0
- package/src/asset/Textures/Commons/feedItems/pinglun_icon_a_pressed.png +0 -0
- package/src/asset/Textures/Commons/feedItems/pinglun_icon_b_normal.png +0 -0
- package/src/asset/Textures/Commons/feedItems/pinglun_icon_c_normal.png +0 -0
- package/src/asset/Textures/Commons/feedItems/pinglun_icon_d.png +0 -0
- package/src/asset/Textures/Commons/feedItems/pinglun_icon_e.png +0 -0
- package/src/asset/Textures/Commons/feedItems/pinglun_icon_f_share.png +0 -0
- package/src/asset/Textures/Commons/feedItems/pinglun_icon_middle_input_back.png +0 -0
- package/src/asset/Textures/Commons/gc1_huati_bg_middle_topbtn.png +0 -0
- package/src/asset/Textures/Commons/gc1_huati_bg_middle_topbtn_pressd.png +0 -0
- package/src/asset/Textures/Commons/karaoke/rukou_bg_music.png +0 -0
- package/src/asset/Textures/Commons/karaoke/rukou_btn_a.png +0 -0
- package/src/asset/Textures/Commons/karaoke/rukou_btn_b.png +0 -0
- package/src/asset/Textures/Commons/karaoke/rukou_icon_b.png +0 -0
- package/src/asset/Textures/Commons/karaoke/rukou_icon_d.png +0 -0
- package/src/asset/Textures/Commons/karaoke/rukou_icon_e.png +0 -0
- package/src/asset/Textures/Commons/rukou_bg_bottombar_line.png +0 -0
- package/src/asset/Textures/Commons/rukou_icon_a.png +0 -0
- package/src/asset/Textures/Commons/tc_bianji_tab_a.png +0 -0
- package/src/asset/Textures/Commons/tc_zanshang_bg_line.png +0 -0
- package/src/asset/Textures/Commons/touxiang_bg_tishikuang.png +0 -0
- package/src/asset/Textures/Commons/video/rukou_icon_shipin.png +0 -0
- package/src/asset/Textures/Commons/video/xiangce_btn_bofang.png +0 -0
- package/src/asset/Textures/Commons/voice/rukou_icon_yuyin.png +0 -0
- package/src/asset/Textures/Commons/voice/tc_yuyin_bg.png +0 -0
- package/src/asset/Textures/Commons/voice/tc_yuyin_bg_load.png +0 -0
- package/src/asset/Textures/Commons/voice/tc_yuyin_bg_xinhao_a.png +0 -0
- package/src/asset/Textures/Commons/voice/tc_yuyin_bg_xinhao_b.png +0 -0
- package/src/asset/Textures/Commons/xiangce_icon_bottombar_gulita.png +0 -0
- package/src/asset/Textures/SocialSecond/com_tc_bg.png +0 -0
- package/src/asset/Textures/SocialSecond/com_tc_bg_bottom.png +0 -0
- package/src/asset/Textures/SocialSecond/com_tc_bg_input.png +0 -0
- package/src/asset/Textures/SocialSecond/com_tc_bg_tips.png +0 -0
- package/src/asset/Textures/SocialSecond/com_tc_bg_topbar_a.png +0 -0
- package/src/asset/Textures/SocialSecond/com_tc_bg_topbar_line.png +0 -0
- package/src/asset/Textures/SocialSecond/com_tc_bg_upload_photo.png +0 -0
- package/src/asset/Textures/SocialSecond/com_tc_bg_upload_photo_line.png +0 -0
- package/src/asset/Textures/SocialSecond/com_tc_bg_zhaopian_line.png +0 -0
- package/src/asset/Textures/SocialSecond/com_tc_btn.png +0 -0
- package/src/asset/Textures/SocialSecond/com_tc_btn_close.png +0 -0
- package/src/asset/Textures/SocialSecond/com_tc_btn_upload_photo.png +0 -0
- package/src/asset/Textures/SocialSecond/com_tc_radio_normal.png +0 -0
- package/src/asset/Textures/SocialSecond/com_tc_radio_normal_@slice_0.png +0 -0
- package/src/asset/Textures/SocialSecond/com_tc_radio_selected.png +0 -0
- package/src/asset/Textures/SocialSecond/com_tc_tab_a.png +0 -0
- package/src/asset/Textures/SocialSecond/gc1_huati_bg_middle_topbar.png +0 -0
- package/src/asset/Textures/SocialSecond/gc1_huati_bg_middle_topbar_pre.png +0 -0
- package/src/asset/Textures/SocialSecond/newmessage_bg_left_line.png +0 -0
- package/src/asset/Textures/SocialSecond/newmessage_bg_left_normal.png +0 -0
- package/src/asset/Textures/SocialSecond/newmessage_bg_left_selected.png +0 -0
- package/src/asset/Textures/SocialSecond/newmessage_bg_middle_new.png +0 -0
- package/src/asset/Textures/SocialSecond/paihang_bg_list.png +0 -0
- package/src/asset/Textures/SocialSecond/paihang_bg_list_line.png +0 -0
- package/src/asset/Textures/SocialSecond/paihang_bg_list_my.png +0 -0
- package/src/asset/Textures/SocialSecond/paihang_bg_list_top.png +0 -0
- package/src/asset/Textures/SocialSecond/paihang_bg_topbar_a.png +0 -0
- package/src/asset/Textures/SocialSecond/paihang_icon_topbar_selected.png +0 -0
- package/src/asset/Textures/SocialSecond/paihang_pic_1.png +0 -0
- package/src/asset/Textures/SocialSecond/paihang_pic_2.png +0 -0
- package/src/asset/Textures/SocialSecond/tc_fadongtai_btn_close.png +0 -0
- package/src/asset/Textures/SocialSecond/tc_guanzhu_bg_topbar.png +0 -0
- package/src/asset/Textures/SocialSecond/tc_guanzhu_bg_topbar_selected.png +0 -0
- package/src/asset/Textures/SocialSecond/tc_liwu_bg.png +0 -0
- package/src/asset/Textures/SocialSecond/tc_liwu_bg_daoju.png +0 -0
- package/src/asset/Textures/SocialSecond/tc_liwu_btn_a.png +0 -0
- package/src/asset/Textures/SocialSecond/tc_liwu_btn_b.png +0 -0
- package/src/asset/Textures/SocialSecond/tc_liwu_btn_c.png +0 -0
- package/src/asset/Textures/SocialSecond/tc_liwu_pic_daoju1.png +0 -0
- package/src/asset/Textures/SocialSecond/tc_liwu_pic_daoju2.png +0 -0
- package/src/asset/Textures/SocialSecond/tc_liwu_pic_daoju3.png +0 -0
- package/src/asset/Textures/SocialSecond/tc_pinglun_bg.png +0 -0
- package/src/asset/Textures/SocialSecond/tc_shipin_tianjiashipin.png +0 -0
- package/src/asset/Textures/SocialSecond/tc_yuyin_bg.png +0 -0
- package/src/asset/Textures/SocialSecond/tc_yuyin_bg_delete.png +0 -0
- package/src/asset/Textures/SocialSecond/tc_yuyin_bg_xinhao_a.png +0 -0
- package/src/asset/Textures/SocialSecond/tc_yuyin_bg_xinhao_b.png +0 -0
- package/src/asset/Textures/SocialSecond/tc_yuyin_star.png +0 -0
- package/src/asset/Textures/SocialSecond/tc_yuyin_stop.png +0 -0
- package/src/asset/Textures/SocialSecond/tc_zanshang_bg_line.png +0 -0
- package/src/asset/Textures/SocialSecond/touxiang_bg_tishikuang.png +0 -0
- package/src/asset/Textures/SocialSecond/xiangce_huadong.png +0 -0
- package/src/asset/Textures/SocialSecond/xiangce_huadong_xuanzhong.png +0 -0
- package/src/asset/Textures/SocialSecond/xiangce_icon_xiazai.png +0 -0
- package/src/asset/Textures/SocialVideo/com_home_btn_close.png +0 -0
- package/src/asset/Textures/SocialVideo/tc_shipin_bg_guodu.png +0 -0
- package/src/asset/Textures/SocialVideo/tc_shipin_jinduanjian.png +0 -0
- package/src/asset/Textures/SocialVideo/tc_shipin_jindutiao.png +0 -0
- package/src/asset/Textures/SocialVideo/tc_shipin_jindutiao_hui.png +0 -0
- package/src/asset/Textures/SocialVideo/tc_shipin_play.png +0 -0
- package/src/asset/Textures/SocialVideo/tc_shipin_play_big.png +0 -0
- package/src/asset/Textures/SocialVideo/tc_shipin_stop.png +0 -0
- package/src/asset/laugh.gif +0 -0
- package/src/asset/npms.png +0 -0
- package/src/asset/pixui.png +0 -0
- package/src/asset/preact.png +0 -0
- package/src/asset/template.html +0 -47
- package/src/common/frame/appsettings.js +0 -111
- package/src/common/frame/common.js +0 -17
- package/src/common/frame/platform-api-callback.js +0 -341
- package/src/common/frame/platform-api.d.ts +0 -156
- package/src/common/frame/platform-api.js +0 -479
- package/src/common/main.less +0 -119
- package/src/pixUIReactComponents/README.md +0 -8
- package/src/pixUIReactComponents/package.json +0 -11
- package/src/pixUIReactComponents/tsconfig.json +0 -45
- package/src/pixUIReactComponents/ui/sample/Slapface/SlapfaceDemo.tsx +0 -30
- package/src/pixUIReactUtils/GenerateConstructorAndGeterSeter.js +0 -227
- package/src/pixUIReactUtils/MakeImage.js +0 -207
- package/src/pixUIReactUtils/README.md +0 -124
- package/src/pixUIReactUtils/Version.js +0 -3
- package/src/pixUIReactUtils/img/makeImage.png +0 -0
- package/src/pixUIReactUtils/index.js +0 -1
- package/src/pixUIReactUtils/package.json +0 -16
- package/src/preprocess/index.html +0 -48
- package/src/preprocess/main.tsx +0 -17
- package/src/preprocess/preprocesspage.tsx +0 -41
- /package/{src/pixUIReactComponents/cmdAfterTsBuild.js → cmdAfterTsBuild.js} +0 -0
- /package/{src/pixUIReactComponents/index.js → index.js} +0 -0
- /package/{src/pixUIReactComponents/tools → tools}/EventDispatcherJs.tsx +0 -0
- /package/{src/pixUIReactComponents/tools → tools}/Logger.tsx +0 -0
- /package/{src/pixUIReactComponents/tools → tools}/img/logger.png +0 -0
- /package/{src/pixUIReactComponents/tools → tools}/tools.md +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/components/bulletscreen/BulletItemAnimation.tsx +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/components/bulletscreen/BulletScreenAnimation.tsx +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/components/bulletscreen/bullet.less +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/components/button/Button.tsx +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/components/carousel/Carousel.tsx +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/components/checkBox/CheckBox.tsx +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/components/dropdown/Dropdown.tsx +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/components/dropdown/DropdownOptionUI.tsx +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/components/dropdown/DropdownSpreadMainUI.tsx +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/components/dropdown/DropdownUnspreadMainUI.tsx +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/components/gradient/GradientText.tsx +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/components/outlinetext/OutlineText.tsx +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/components/progress/Progress.tsx +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/components/slapface/less/Slapface.less +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/components/slider/Slider.tsx +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/components/tab/Tab.tsx +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/components/tab/Tabs.tsx +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/components/togglegroup/ToggleGroup.tsx +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/components/videoplayer/VideoPlayer.tsx +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/components/waterfallcomponent/WaterfallComponent.jsx +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/components/waterfallcomponent/less/WaterfallComponent.less +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/Images.tsx +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/OutlineText/OutlineDemo.tsx +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/asset/btn_close.png +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/asset/changtai_button.jpg +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/asset/checkbox0.png +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/asset/checkbox1.png +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/asset/data_arrow_down.png +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/asset/data_arrow_up.png +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/asset/dot.png +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/asset/inner.png +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/asset/item_reddot.png +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/asset/loading.png +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/asset/money_dropdown.png +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/asset/money_dropdownall.png +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/asset/outer.png +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/asset/slapface_samplepic1.png +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/asset/slapface_samplepic2.png +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/asset/slapface_samplepic3.png +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/asset/slapface_samplepic4.png +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/asset/slapface_samplepic5.png +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/asset/slapface_samplepic6.png +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/asset/tab_choosed.png +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/asset/tabs_bg.png +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/asset/video_pause.png +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/asset/video_play.png +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/asset/video_reload.png +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/asset/xuanfu_button.jpg +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/asset/yaxia_button.jpg +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/bulletscreen/BulletDemo.tsx +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/button/ButtonDemo.tsx +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/carousel/carouselDemo.tsx +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/checkBox/checkBoxDemo.tsx +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/dropdown/DropdownDemo.tsx +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/dropdown/MoneyDropdownOption.tsx +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/dropdown/MoneyDropdownSpreadMain.tsx +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/dropdown/MoneyDropdownUnspreadMain.tsx +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/gradient/GradientDemo.tsx +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/less/video.less +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/progress/ProgressDemo.tsx +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/slider/SliderDemo.tsx +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/tab/TabDemo.tsx +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/tab/TopTab.tsx +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/togglegroup/ToggleGroupDemo.tsx +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/videoplayer/VideoPlayerDemo.tsx +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/sample/waterfallcomponent/WaterfallComponentDemo.jsx +0 -0
- /package/{src/pixUIReactComponents/ui → ui}/ui.md +0 -0
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { enqueueRender } from '../component';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Find the closest error boundary to a thrown error and call it
|
|
5
|
-
* @param {object} error The thrown value
|
|
6
|
-
* @param {import('../internal').VNode} vnode The vnode that threw
|
|
7
|
-
* the error that was caught (except for unmounting when this parameter
|
|
8
|
-
* is the highest parent that was being unmounted)
|
|
9
|
-
*/
|
|
10
|
-
export function _catchError(error, vnode) {
|
|
11
|
-
/** @type {import('../internal').Component} */
|
|
12
|
-
let component, hasCaught;
|
|
13
|
-
|
|
14
|
-
for (; (vnode = vnode._parent); ) {
|
|
15
|
-
if ((component = vnode._component) && !component._processingException) {
|
|
16
|
-
try {
|
|
17
|
-
if (
|
|
18
|
-
component.constructor &&
|
|
19
|
-
component.constructor.getDerivedStateFromError != null
|
|
20
|
-
) {
|
|
21
|
-
hasCaught = true;
|
|
22
|
-
component.setState(
|
|
23
|
-
component.constructor.getDerivedStateFromError(error)
|
|
24
|
-
);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
if (component.componentDidCatch != null) {
|
|
28
|
-
hasCaught = true;
|
|
29
|
-
component.componentDidCatch(error);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
if (hasCaught)
|
|
33
|
-
return enqueueRender((component._pendingError = component));
|
|
34
|
-
} catch (e) {
|
|
35
|
-
error = e;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
throw error;
|
|
41
|
-
}
|
|
@@ -1,259 +0,0 @@
|
|
|
1
|
-
import { diff, unmount, applyRef } from './index';
|
|
2
|
-
import { createVNode } from '../create-element';
|
|
3
|
-
import { EMPTY_OBJ, EMPTY_ARR } from '../constants';
|
|
4
|
-
import { removeNode } from '../util';
|
|
5
|
-
import { getDomSibling } from '../component';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Diff the children of a virtual node
|
|
9
|
-
* @param {import('../internal').PreactElement} parentDom The DOM element whose
|
|
10
|
-
* children are being diffed
|
|
11
|
-
* @param {import('../internal').VNode} newParentVNode The new virtual
|
|
12
|
-
* node whose children should be diff'ed against oldParentVNode
|
|
13
|
-
* @param {import('../internal').VNode} oldParentVNode The old virtual
|
|
14
|
-
* node whose children should be diff'ed against newParentVNode
|
|
15
|
-
* @param {object} globalContext The current context object - modified by getChildContext
|
|
16
|
-
* @param {boolean} isSvg Whether or not this DOM node is an SVG node
|
|
17
|
-
* @param {Array<import('../internal').PreactElement>} excessDomChildren
|
|
18
|
-
* @param {Array<import('../internal').Component>} commitQueue List of components
|
|
19
|
-
* which have callbacks to invoke in commitRoot
|
|
20
|
-
* @param {Node | Text} oldDom The current attached DOM
|
|
21
|
-
* element any new dom elements should be placed around. Likely `null` on first
|
|
22
|
-
* render (except when hydrating). Can be a sibling DOM element when diffing
|
|
23
|
-
* Fragments that have siblings. In most cases, it starts out as `oldChildren[0]._dom`.
|
|
24
|
-
* @param {boolean} isHydrating Whether or not we are in hydration
|
|
25
|
-
*/
|
|
26
|
-
export function diffChildren(
|
|
27
|
-
parentDom,
|
|
28
|
-
newParentVNode,
|
|
29
|
-
oldParentVNode,
|
|
30
|
-
globalContext,
|
|
31
|
-
isSvg,
|
|
32
|
-
excessDomChildren,
|
|
33
|
-
commitQueue,
|
|
34
|
-
oldDom,
|
|
35
|
-
isHydrating
|
|
36
|
-
) {
|
|
37
|
-
let i, j, oldVNode, newDom, sibDom, firstChildDom, refs;
|
|
38
|
-
|
|
39
|
-
// This is a compression of oldParentVNode!=null && oldParentVNode != EMPTY_OBJ && oldParentVNode._children || EMPTY_ARR
|
|
40
|
-
// as EMPTY_OBJ._children should be `undefined`.
|
|
41
|
-
let oldChildren = (oldParentVNode && oldParentVNode._children) || EMPTY_ARR;
|
|
42
|
-
|
|
43
|
-
let oldChildrenLength = oldChildren.length;
|
|
44
|
-
|
|
45
|
-
// Only in very specific places should this logic be invoked (top level `render` and `diffElementNodes`).
|
|
46
|
-
// I'm using `EMPTY_OBJ` to signal when `diffChildren` is invoked in these situations. I can't use `null`
|
|
47
|
-
// for this purpose, because `null` is a valid value for `oldDom` which can mean to skip to this logic
|
|
48
|
-
// (e.g. if mounting a new tree in which the old DOM should be ignored (usually for Fragments).
|
|
49
|
-
if (oldDom == EMPTY_OBJ) {
|
|
50
|
-
if (excessDomChildren != null) {
|
|
51
|
-
oldDom = excessDomChildren[0];
|
|
52
|
-
} else if (oldChildrenLength) {
|
|
53
|
-
oldDom = getDomSibling(oldParentVNode, 0);
|
|
54
|
-
} else {
|
|
55
|
-
oldDom = null;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
i = 0;
|
|
60
|
-
newParentVNode._children = toChildArray(newParentVNode._children, (childVNode) => {
|
|
61
|
-
if (childVNode != null) {
|
|
62
|
-
childVNode._parent = newParentVNode;
|
|
63
|
-
childVNode._depth = newParentVNode._depth + 1;
|
|
64
|
-
|
|
65
|
-
// Check if we find a corresponding element in oldChildren.
|
|
66
|
-
// If found, delete the array item by setting to `undefined`.
|
|
67
|
-
// We use `undefined`, as `null` is reserved for empty placeholders
|
|
68
|
-
// (holes).
|
|
69
|
-
oldVNode = oldChildren[i];
|
|
70
|
-
|
|
71
|
-
if (
|
|
72
|
-
oldVNode === null ||
|
|
73
|
-
(oldVNode && childVNode.key == oldVNode.key && childVNode.type === oldVNode.type)
|
|
74
|
-
) {
|
|
75
|
-
oldChildren[i] = undefined;
|
|
76
|
-
} else {
|
|
77
|
-
// Either oldVNode === undefined or oldChildrenLength > 0,
|
|
78
|
-
// so after this loop oldVNode == null or oldVNode is a valid value.
|
|
79
|
-
for (j = 0; j < oldChildrenLength; j++) {
|
|
80
|
-
oldVNode = oldChildren[j];
|
|
81
|
-
// If childVNode is unkeyed, we only match similarly unkeyed nodes, otherwise we match by key.
|
|
82
|
-
// We always match by type (in either case).
|
|
83
|
-
if (oldVNode && childVNode.key == oldVNode.key && childVNode.type === oldVNode.type) {
|
|
84
|
-
oldChildren[j] = undefined;
|
|
85
|
-
break;
|
|
86
|
-
}
|
|
87
|
-
oldVNode = null;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
oldVNode = oldVNode || EMPTY_OBJ;
|
|
92
|
-
|
|
93
|
-
// console.log("olddom",oldDom);
|
|
94
|
-
// Morph the old element into the new one, but don't append it to the dom yet
|
|
95
|
-
newDom = diff(
|
|
96
|
-
parentDom,
|
|
97
|
-
childVNode,
|
|
98
|
-
oldVNode,
|
|
99
|
-
globalContext,
|
|
100
|
-
isSvg,
|
|
101
|
-
excessDomChildren,
|
|
102
|
-
commitQueue,
|
|
103
|
-
oldDom,
|
|
104
|
-
isHydrating
|
|
105
|
-
);
|
|
106
|
-
|
|
107
|
-
if ((j = childVNode.ref) && oldVNode.ref != j) {
|
|
108
|
-
if (!refs) refs = [];
|
|
109
|
-
if (oldVNode.ref) refs.push(oldVNode.ref, null, childVNode);
|
|
110
|
-
refs.push(j, childVNode._component || newDom, childVNode);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
// Only proceed if the vnode has not been unmounted by `diff()` above.
|
|
114
|
-
if (newDom != null) {
|
|
115
|
-
if (firstChildDom == null) {
|
|
116
|
-
firstChildDom = newDom;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
let nextDom;
|
|
120
|
-
if (childVNode._nextDom !== undefined) {
|
|
121
|
-
// Only Fragments or components that return Fragment like VNodes will
|
|
122
|
-
// have a non-undefined _nextDom. Continue the diff from the sibling
|
|
123
|
-
// of last DOM child of this child VNode
|
|
124
|
-
nextDom = childVNode._nextDom;
|
|
125
|
-
|
|
126
|
-
// Eagerly cleanup _nextDom. We don't need to persist the value because
|
|
127
|
-
// it is only used by `diffChildren` to determine where to resume the diff after
|
|
128
|
-
// diffing Components and Fragments. Once we store it the nextDOM local var, we
|
|
129
|
-
// can clean up the property
|
|
130
|
-
childVNode._nextDom = undefined;
|
|
131
|
-
} else if (excessDomChildren == oldVNode || newDom != oldDom || newDom.parentNode == null) {
|
|
132
|
-
// NOTE: excessDomChildren==oldVNode above:
|
|
133
|
-
// This is a compression of excessDomChildren==null && oldVNode==null!
|
|
134
|
-
// The values only have the same type when `null`.
|
|
135
|
-
|
|
136
|
-
outer: if (oldDom == null || oldDom.parentNode !== parentDom) {
|
|
137
|
-
addOP(
|
|
138
|
-
`appendChild ${newDom.tagName || newDom.nodeName}(${newDom.data}) -> ${
|
|
139
|
-
parentDom.tagName
|
|
140
|
-
} reason[${oldDom == null ? 1 : 2}]`
|
|
141
|
-
);
|
|
142
|
-
parentDom.appendChild(newDom);
|
|
143
|
-
nextDom = null;
|
|
144
|
-
} else {
|
|
145
|
-
// `j<oldChildrenLength; j+=2` is an alternative to `j++<oldChildrenLength/2`
|
|
146
|
-
for (
|
|
147
|
-
sibDom = oldDom, j = 0;
|
|
148
|
-
(sibDom = sibDom.nextSibling) && j < oldChildrenLength;
|
|
149
|
-
j += 2
|
|
150
|
-
) {
|
|
151
|
-
if (sibDom == newDom) {
|
|
152
|
-
break outer;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
addOP(`insertBefore ${newDom.tagName} -> ${parentDom.tagName}`);
|
|
156
|
-
parentDom.insertBefore(newDom, oldDom);
|
|
157
|
-
nextDom = oldDom;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
// Browsers will infer an option's `value` from `textContent` when
|
|
161
|
-
// no value is present. This essentially bypasses our code to set it
|
|
162
|
-
// later in `diff()`. It works fine in all browsers except for IE11
|
|
163
|
-
// where it breaks setting `select.value`. There it will be always set
|
|
164
|
-
// to an empty string. Re-applying an options value will fix that, so
|
|
165
|
-
// there are probably some internal data structures that aren't
|
|
166
|
-
// updated properly.
|
|
167
|
-
//
|
|
168
|
-
// To fix it we make sure to reset the inferred value, so that our own
|
|
169
|
-
// value check in `diff()` won't be skipped.
|
|
170
|
-
if (newParentVNode.type == 'option') {
|
|
171
|
-
parentDom.value = '';
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
// If we have pre-calculated the nextDOM node, use it. Else calculate it now
|
|
176
|
-
// Strictly check for `undefined` here cuz `null` is a valid value of `nextDom`.
|
|
177
|
-
// See more detail in create-element.js:createVNode
|
|
178
|
-
if (nextDom !== undefined) {
|
|
179
|
-
oldDom = nextDom;
|
|
180
|
-
} else {
|
|
181
|
-
oldDom = newDom.nextSibling;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
if (typeof newParentVNode.type == 'function') {
|
|
185
|
-
// Because the newParentVNode is Fragment-like, we need to set it's
|
|
186
|
-
// _nextDom property to the nextSibling of its last child DOM node.
|
|
187
|
-
//
|
|
188
|
-
// `oldDom` contains the correct value here because if the last child
|
|
189
|
-
// is a Fragment-like, then oldDom has already been set to that child's _nextDom.
|
|
190
|
-
// If the last child is a DOM VNode, then oldDom will be set to that DOM
|
|
191
|
-
// node's nextSibling.
|
|
192
|
-
|
|
193
|
-
newParentVNode._nextDom = oldDom;
|
|
194
|
-
}
|
|
195
|
-
} else if (oldDom && oldVNode._dom == oldDom && oldDom.parentNode != parentDom) {
|
|
196
|
-
// The above condition is to handle null placeholders. See test in placeholder.test.js:
|
|
197
|
-
// `efficiently replace null placeholders in parent rerenders`
|
|
198
|
-
oldDom = getDomSibling(oldVNode);
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
i++;
|
|
203
|
-
return childVNode;
|
|
204
|
-
});
|
|
205
|
-
|
|
206
|
-
newParentVNode._dom = firstChildDom;
|
|
207
|
-
|
|
208
|
-
// Remove children that are not part of any vnode.
|
|
209
|
-
if (excessDomChildren != null && typeof newParentVNode.type != 'function') {
|
|
210
|
-
for (i = excessDomChildren.length; i--; ) {
|
|
211
|
-
if (excessDomChildren[i] != null) removeNode(excessDomChildren[i]);
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
// Remove remaining oldChildren if there are any.
|
|
216
|
-
for (i = oldChildrenLength; i--; ) {
|
|
217
|
-
if (oldChildren[i] != null) unmount(oldChildren[i], oldChildren[i]);
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
// Set refs only after unmount
|
|
221
|
-
if (refs) {
|
|
222
|
-
for (i = 0; i < refs.length; i++) {
|
|
223
|
-
applyRef(refs[i], refs[++i], refs[++i]);
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* Flatten and loop through the children of a virtual node
|
|
230
|
-
* @param {import('../index').ComponentChildren} children The unflattened
|
|
231
|
-
* children of a virtual node
|
|
232
|
-
* @param {(vnode: import('../internal').VNode) => import('../internal').VNode} [callback]
|
|
233
|
-
* A function to invoke for each child before it is added to the flattened list.
|
|
234
|
-
* @param {Array<import('../internal').VNode | string | number>} [flattened] An flat array of children to modify
|
|
235
|
-
* @returns {import('../internal').VNode[]}
|
|
236
|
-
*/
|
|
237
|
-
export function toChildArray(children, callback, flattened) {
|
|
238
|
-
if (flattened == null) flattened = [];
|
|
239
|
-
|
|
240
|
-
if (children == null || typeof children == 'boolean') {
|
|
241
|
-
if (callback) flattened.push(callback(null));
|
|
242
|
-
} else if (Array.isArray(children)) {
|
|
243
|
-
for (let i = 0; i < children.length; i++) {
|
|
244
|
-
toChildArray(children[i], callback, flattened);
|
|
245
|
-
}
|
|
246
|
-
} else if (!callback) {
|
|
247
|
-
flattened.push(children);
|
|
248
|
-
} else if (typeof children == 'string' || typeof children == 'number') {
|
|
249
|
-
flattened.push(callback(createVNode(null, children, null, null, children)));
|
|
250
|
-
} else if (children._dom != null || children._component != null) {
|
|
251
|
-
flattened.push(
|
|
252
|
-
callback(createVNode(children.type, children.props, children.key, null, children._original))
|
|
253
|
-
);
|
|
254
|
-
} else {
|
|
255
|
-
flattened.push(callback(children));
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
return flattened;
|
|
259
|
-
}
|