@cloudbase/weda-ui 0.2.14 → 0.2.17
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 +41 -167
- package/package.json +51 -19
- package/src/configs/components/calendar.json +75 -0
- package/src/configs/components/carousel.json +273 -0
- package/src/configs/components/chart/bar.json +711 -0
- package/src/configs/components/chart/line.json +666 -0
- package/src/configs/components/chart/pie.json +487 -0
- package/src/configs/components/chart/statisticsCard.json +331 -0
- package/src/configs/components/dataView.json +139 -0
- package/src/configs/components/form/location.json +152 -0
- package/src/configs/components/form/uploaderFile.json +2 -1
- package/src/configs/components/graphicCard.json +399 -0
- package/src/configs/components/image.json +4 -0
- package/src/configs/components/link.json +2 -2
- package/src/configs/components/listView.json +231 -0
- package/src/configs/components/navLayout.json +350 -0
- package/src/configs/components/swiper.json +3 -3
- package/src/configs/index.js +23 -0
- package/src/mp/components/button/index.js +12 -13
- package/src/mp/components/button/index.wxml +1 -1
- package/src/{web/wedatheme/src/styles/assets → mp/components/calendar}/arrowright--line.svg +3 -4
- package/src/mp/components/calendar/index.js +238 -0
- package/src/mp/components/calendar/index.json +4 -0
- package/src/mp/components/calendar/index.wxml +37 -0
- package/src/mp/components/calendar/index.wxss +178 -0
- package/src/mp/components/carousel/index.js +88 -0
- package/src/mp/components/carousel/index.json +7 -0
- package/src/mp/components/carousel/index.wxml +6 -0
- package/src/mp/components/chart/bar/index.js +254 -0
- package/src/mp/components/chart/bar/index.json +6 -0
- package/src/mp/components/chart/bar/index.wxml +3 -0
- package/src/mp/components/chart/bar/index.wxss +9 -0
- package/src/mp/components/chart/common/config/bar.js +50 -0
- package/src/mp/components/chart/common/config/global.js +16 -0
- package/src/mp/components/chart/common/config/line.js +48 -0
- package/src/mp/components/chart/common/config/pie.js +36 -0
- package/src/mp/components/chart/common/core/eChartBar.js +262 -0
- package/src/mp/components/chart/common/core/eChartBase.js +371 -0
- package/src/mp/components/chart/common/core/eChartLine.js +228 -0
- package/src/mp/components/chart/common/core/eChartPie.js +166 -0
- package/src/mp/components/chart/common/lib/echarts.min.js +18 -0
- package/src/mp/components/chart/ec-canvas/ec-canvas.js +277 -0
- package/src/mp/components/chart/ec-canvas/ec-canvas.json +4 -0
- package/src/mp/components/chart/ec-canvas/ec-canvas.wxml +4 -0
- package/src/mp/components/chart/ec-canvas/ec-canvas.wxss +4 -0
- package/src/mp/components/chart/ec-canvas/wx-canvas.js +107 -0
- package/src/mp/components/chart/line/index.js +243 -0
- package/src/mp/components/chart/line/index.json +6 -0
- package/src/mp/components/chart/line/index.wxml +3 -0
- package/src/mp/components/chart/line/index.wxss +9 -0
- package/src/mp/components/chart/pie/index.js +178 -0
- package/src/mp/components/chart/pie/index.json +6 -0
- package/src/mp/components/chart/pie/index.wxml +4 -0
- package/src/mp/components/chart/pie/index.wxss +9 -0
- package/src/mp/components/chart/statisticsCard/index.js +226 -0
- package/src/mp/components/chart/statisticsCard/index.json +4 -0
- package/src/mp/components/chart/statisticsCard/index.wxml +9 -0
- package/src/mp/components/chart/statisticsCard/index.wxss +45 -0
- package/src/mp/components/container/index.js +4 -0
- package/src/mp/components/dataView/index.js +34 -0
- package/src/mp/components/dataView/index.json +7 -0
- package/src/mp/components/dataView/index.wxml +15 -0
- package/src/{web/wedatheme/src/styles/theme/_icon.scss → mp/components/dataView/index.wxss} +0 -0
- package/src/mp/components/form/location/components/mapChoose/index.js +201 -0
- package/src/mp/components/form/location/components/mapChoose/index.json +4 -0
- package/src/mp/components/form/location/components/mapChoose/index.wxml +42 -0
- package/src/mp/components/form/location/components/mapChoose/index.wxss +188 -0
- package/src/mp/components/form/location/index.js +341 -0
- package/src/mp/components/form/location/index.json +6 -0
- package/src/mp/components/form/location/index.wxml +25 -0
- package/src/mp/components/form/location/index.wxss +91 -0
- package/src/mp/components/form/radio/index.js +5 -0
- package/src/mp/components/form/select/index.wxml +4 -4
- package/src/mp/components/form/textarea/index.wxml +6 -5
- package/src/mp/components/form/uploader/index.js +64 -40
- package/src/mp/components/form/uploader/index.wxml +15 -3
- package/src/mp/components/form/uploaderFile/index.js +102 -27
- package/src/mp/components/graphicCard/chevron-right.svg +3 -0
- package/src/mp/components/graphicCard/index.js +203 -0
- package/src/mp/components/graphicCard/index.json +4 -0
- package/src/mp/components/graphicCard/index.wxml +29 -0
- package/src/mp/components/graphicCard/index.wxss +157 -0
- package/src/mp/components/image/index.js +53 -52
- package/src/mp/components/internals/listView/arrow-right-line.svg +3 -0
- package/src/mp/components/internals/listView/index.js +286 -0
- package/src/mp/components/internals/listView/index.json +4 -0
- package/src/mp/components/internals/listView/index.wxml +40 -0
- package/src/mp/components/internals/listView/index.wxss +150 -0
- package/src/mp/components/internals/listView/more-line.svg +3 -0
- package/src/mp/components/listView/arrow-right-line.svg +3 -0
- package/src/mp/components/listView/index.js +279 -0
- package/src/mp/components/listView/index.json +4 -0
- package/src/mp/components/listView/index.wxml +40 -0
- package/src/mp/components/listView/index.wxss +150 -0
- package/src/mp/components/listView/more-line.svg +3 -0
- package/src/mp/components/navLayout/index.js +123 -0
- package/src/mp/components/navLayout/index.json +7 -0
- package/src/mp/components/navLayout/index.wxml +25 -0
- package/src/mp/components/navLayout/index.wxss +1193 -0
- package/src/mp/components/swiper/index.wxml +2 -0
- package/src/mp/components/text/index.wxss +6 -6
- package/src/mp/index.json +12 -1
- package/src/mp/utils/debounce.js +133 -0
- package/src/mp/utils/dr_square_point.js +25 -0
- package/src/mp/utils/platform.js +15 -0
- package/src/mp/utils/qqmap-wx-jssdk1.2/qqmap-wx-jssdk.js +1336 -0
- package/src/mp/utils/spark-md5.js +776 -0
- package/src/mp/utils/tcb.js +18 -0
- package/src/setupTests.js +2 -1
- package/src/web/components/button/index.tsx +1 -1
- package/src/web/components/calendar/index.css +382 -0
- package/src/web/components/calendar/index.jsx +312 -0
- package/src/web/components/calendar/util.js +90 -0
- package/src/web/components/carousel/index.css +119 -0
- package/src/web/components/carousel/index.tsx +417 -0
- package/src/web/components/chart/bar/index.tsx +139 -0
- package/src/web/components/chart/common/config/bar.js +49 -0
- package/src/web/components/chart/common/config/global.js +16 -0
- package/src/web/components/chart/common/config/line.js +50 -0
- package/src/web/components/chart/common/config/pie.js +37 -0
- package/src/web/components/chart/common/core/eChartBar.js +264 -0
- package/src/web/components/chart/common/core/eChartBase.ts +379 -0
- package/src/web/components/chart/common/core/eChartLine.js +229 -0
- package/src/web/components/chart/common/core/eChartPie.js +170 -0
- package/src/web/components/chart/common/core/type.ts +34 -0
- package/src/web/components/chart/common/echart.css +106 -0
- package/src/web/components/chart/common/echarts.ts +33 -0
- package/src/web/components/chart/common/useChart.tsx +69 -0
- package/src/web/components/chart/line/index.tsx +135 -0
- package/src/web/components/chart/pie/index.tsx +99 -0
- package/src/web/components/chart/statisticsCard/index.css +62 -0
- package/src/web/components/chart/statisticsCard/index.tsx +286 -0
- package/src/web/components/chart/statisticsCard/interface.ts +14 -0
- package/src/web/components/dataView/index.tsx +20 -0
- package/src/web/components/dataView/interface.ts +6 -0
- package/src/web/components/form/input/index.css +5 -3
- package/src/web/components/form/input/index.tsx +1 -0
- package/src/web/components/form/location/common/mapChoose.css +178 -0
- package/src/web/components/form/location/common/mapChoose.jsx +343 -0
- package/src/web/components/form/location/common/mapView.jsx +190 -0
- package/src/web/components/form/location/common/propsConfig.js +54 -0
- package/src/web/components/form/location/common/selectModal.css +44 -0
- package/src/web/components/form/location/common/selectModal.jsx +82 -0
- package/src/web/components/form/location/common/useLocationInfo.js +100 -0
- package/src/web/components/form/location/components/LocationH5/index.css +243 -0
- package/src/web/components/form/location/components/LocationH5/location.h5.jsx +403 -0
- package/src/web/components/form/location/components/LocationPC/Header.jsx +109 -0
- package/src/web/components/form/location/components/LocationPC/index.css +44 -0
- package/src/web/components/form/location/components/LocationPC/location.PC.jsx +323 -0
- package/src/web/components/form/location/constants.js +4 -0
- package/src/web/{wedatheme/src/styles/theme/_timeline.scss → components/form/location/index.css} +0 -0
- package/src/web/components/form/location/index.jsx +25 -0
- package/src/web/components/form/select/h5.tsx +3 -1
- package/src/web/components/form/select/time.jsx +1 -0
- package/src/web/components/form/uploader/uploader.h5.tsx +10 -2
- package/src/web/components/form/uploader/uploader.pc.tsx +4 -3
- package/src/web/components/form/uploaderFile/uploadFile.h5.tsx +119 -106
- package/src/web/components/form/uploaderFile/uploadFile.pc.tsx +3 -6
- package/src/web/components/graphicCard/index.css +159 -0
- package/src/web/components/graphicCard/index.tsx +310 -0
- package/src/web/components/image/image.tsx +107 -94
- package/src/web/components/image/index.tsx +1 -1
- package/src/web/components/index.js +18 -3
- package/src/web/components/listView/arrow-right-line.svg +3 -0
- package/src/web/components/listView/index.css +139 -0
- package/src/web/components/listView/index.tsx +354 -0
- package/src/web/components/listView/interface.ts +98 -0
- package/src/web/components/navLayout/index.css +332 -0
- package/src/web/components/navLayout/index.tsx +247 -0
- package/src/web/components/swiper/index.css +4 -0
- package/src/web/components/swiper/index.tsx +9 -4
- package/src/web/components/tabs/index.tsx +2 -2
- package/src/web/components/tabs/tabs.h5.tsx +7 -4
- package/src/web/components/uploaderFileView/index.css +9 -9
- package/src/web/components/uploaderFileView/index.jsx +34 -25
- package/src/web/types.d.ts +15 -14
- package/src/web/utils/debounce.js +98 -0
- package/src/web/utils/platform.js +31 -0
- package/src/web/utils/tcb.js +23 -0
- package/src/web/utils/tmap.js +4 -0
- package/CHANGELOG.md +0 -240
- package/src/.DS_Store +0 -0
- package/src/configs/.DS_Store +0 -0
- package/src/mp/.gitignore +0 -10
- package/src/web/.DS_Store +0 -0
- package/src/web/wedatheme/.code.yml +0 -16
- package/src/web/wedatheme/.editorconfig +0 -9
- package/src/web/wedatheme/.eslintrc +0 -20
- package/src/web/wedatheme/.git +0 -1
- package/src/web/wedatheme/.gitignore +0 -5
- package/src/web/wedatheme/.npmrc +0 -1
- package/src/web/wedatheme/.orange-ci.yml +0 -55
- package/src/web/wedatheme/.vscode/extensions.json +0 -3
- package/src/web/wedatheme/.vscode/settings.json +0 -11
- package/src/web/wedatheme/README.md +0 -50
- package/src/web/wedatheme/i18n/README.md +0 -4
- package/src/web/wedatheme/i18n/translation/index.js +0 -10
- package/src/web/wedatheme/i18n/translation/zh.js +0 -15
- package/src/web/wedatheme/jsconfig.json +0 -15
- package/src/web/wedatheme/mock/app.js +0 -42
- package/src/web/wedatheme/mock/history-context.js +0 -8
- package/src/web/wedatheme/mock/index.js +0 -3
- package/src/web/wedatheme/mock/layout/AppLayout.jsx +0 -28
- package/src/web/wedatheme/mock/layout/MenuWithRouter.jsx +0 -50
- package/src/web/wedatheme/mock/layout/index.js +0 -1
- package/src/web/wedatheme/package-lock.json +0 -14335
- package/src/web/wedatheme/package.json +0 -61
- package/src/web/wedatheme/public/index.html +0 -19
- package/src/web/wedatheme/src/app.js +0 -22
- package/src/web/wedatheme/src/components/README.md +0 -4
- package/src/web/wedatheme/src/configs/menu.js +0 -9
- package/src/web/wedatheme/src/routes/wedatheme-index/Component.jsx +0 -402
- package/src/web/wedatheme/src/routes/wedatheme-index/Form.jsx +0 -729
- package/src/web/wedatheme/src/routes/wedatheme-index/FormItem.jsx +0 -18
- package/src/web/wedatheme/src/routes/wedatheme-index/WedathemeIndex.jsx +0 -1276
- package/src/web/wedatheme/src/routes/wedatheme-index/index.js +0 -1
- package/src/web/wedatheme/src/routes/weui2td/WEUI2TD.jsx +0 -3
- package/src/web/wedatheme/src/routes/weui2td/index.js +0 -1
- package/src/web/wedatheme/src/styles/_btn.scss +0 -24
- package/src/web/wedatheme/src/styles/_icon.scss +0 -653
- package/src/web/wedatheme/src/styles/_map.scss +0 -12
- package/src/web/wedatheme/src/styles/_middle.scss +0 -340
- package/src/web/wedatheme/src/styles/_upload.scss +0 -47
- package/src/web/wedatheme/src/styles/assets/alert-close.svg +0 -3
- package/src/web/wedatheme/src/styles/assets/and.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/arrowdown--line.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/arrowdown.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/arrowleft--line.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/arrowleft.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/arrowright-blue--line.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/arrowright.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/arrowup--line.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/arrowup.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/bell-warning.svg +0 -3
- package/src/web/wedatheme/src/styles/assets/btnback.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/calendar.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/chartcolumn-1.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/chartcolumn.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/chartline-1.svg +0 -9
- package/src/web/wedatheme/src/styles/assets/chartline.svg +0 -9
- package/src/web/wedatheme/src/styles/assets/chartpie-1.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/chartpie.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/check-1.svg +0 -8
- package/src/web/wedatheme/src/styles/assets/check-2.svg +0 -1
- package/src/web/wedatheme/src/styles/assets/check.svg +0 -8
- package/src/web/wedatheme/src/styles/assets/close-1.svg +0 -8
- package/src/web/wedatheme/src/styles/assets/close.svg +0 -8
- package/src/web/wedatheme/src/styles/assets/consult.svg +0 -8
- package/src/web/wedatheme/src/styles/assets/convertip--blue.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/convertip.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/copy.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/cur-active.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/cur.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/daily.svg +0 -13
- package/src/web/wedatheme/src/styles/assets/database.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/datasheet.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/delete-white.svg +0 -8
- package/src/web/wedatheme/src/styles/assets/delete.svg +0 -8
- package/src/web/wedatheme/src/styles/assets/detail.svg +0 -13
- package/src/web/wedatheme/src/styles/assets/dismiss.svg +0 -8
- package/src/web/wedatheme/src/styles/assets/download.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/drop.svg +0 -15
- package/src/web/wedatheme/src/styles/assets/email-error.svg +0 -14
- package/src/web/wedatheme/src/styles/assets/email-warning.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/email.svg +0 -14
- package/src/web/wedatheme/src/styles/assets/emailv.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/error-1.svg +0 -8
- package/src/web/wedatheme/src/styles/assets/error-filled.svg +0 -3
- package/src/web/wedatheme/src/styles/assets/error.svg +0 -8
- package/src/web/wedatheme/src/styles/assets/externallink.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/favorable.svg +0 -9
- package/src/web/wedatheme/src/styles/assets/filter.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/firstpage.svg +0 -13
- package/src/web/wedatheme/src/styles/assets/folderclose.svg +0 -8
- package/src/web/wedatheme/src/styles/assets/folderopen.svg +0 -8
- package/src/web/wedatheme/src/styles/assets/fullscreenquit.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/fullsreen.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/globe-gray.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/guide.svg +0 -9
- package/src/web/wedatheme/src/styles/assets/help.svg +0 -8
- package/src/web/wedatheme/src/styles/assets/hide.svg +0 -8
- package/src/web/wedatheme/src/styles/assets/info.svg +0 -8
- package/src/web/wedatheme/src/styles/assets/infoblue-1.svg +0 -8
- package/src/web/wedatheme/src/styles/assets/infoblue-filled.svg +0 -3
- package/src/web/wedatheme/src/styles/assets/infoblue.svg +0 -8
- package/src/web/wedatheme/src/styles/assets/jump-black.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/jump.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/lastpage.svg +0 -13
- package/src/web/wedatheme/src/styles/assets/loading.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/local.svg +0 -10
- package/src/web/wedatheme/src/styles/assets/menu-fold-white.svg +0 -6
- package/src/web/wedatheme/src/styles/assets/menu-fold.svg +0 -6
- package/src/web/wedatheme/src/styles/assets/minus.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/monitor.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/more.svg +0 -8
- package/src/web/wedatheme/src/styles/assets/multi-line.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/news.svg +0 -3
- package/src/web/wedatheme/src/styles/assets/not.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/notice.svg +0 -8
- package/src/web/wedatheme/src/styles/assets/pencil.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/pending-1.svg +0 -8
- package/src/web/wedatheme/src/styles/assets/pending-gray.svg +0 -8
- package/src/web/wedatheme/src/styles/assets/pending.svg +0 -8
- package/src/web/wedatheme/src/styles/assets/percent-blue.svg +0 -16
- package/src/web/wedatheme/src/styles/assets/percent.svg +0 -16
- package/src/web/wedatheme/src/styles/assets/phone-error.svg +0 -11
- package/src/web/wedatheme/src/styles/assets/phone-warning.svg +0 -9
- package/src/web/wedatheme/src/styles/assets/phone.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/phonev.svg +0 -9
- package/src/web/wedatheme/src/styles/assets/plus.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/qq.svg +0 -11
- package/src/web/wedatheme/src/styles/assets/realname.svg +0 -8
- package/src/web/wedatheme/src/styles/assets/realnamev.svg +0 -9
- package/src/web/wedatheme/src/styles/assets/refresh-blue.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/refresh.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/relationship-1.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/relationship.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/remind.svg +0 -8
- package/src/web/wedatheme/src/styles/assets/search.svg +0 -8
- package/src/web/wedatheme/src/styles/assets/setting.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/shopcart.svg +0 -8
- package/src/web/wedatheme/src/styles/assets/show.svg +0 -8
- package/src/web/wedatheme/src/styles/assets/sort.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/sortdown.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/sortup.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/success-1.svg +0 -8
- package/src/web/wedatheme/src/styles/assets/success-filled.svg +0 -3
- package/src/web/wedatheme/src/styles/assets/success.svg +0 -8
- package/src/web/wedatheme/src/styles/assets/table-1.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/table.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/tag.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/time.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/transfer.svg +0 -8
- package/src/web/wedatheme/src/styles/assets/trenddown.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/trendup.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/viewgrid.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/viewlist.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/warning-1.svg +0 -8
- package/src/web/wedatheme/src/styles/assets/warning-filled.svg +0 -3
- package/src/web/wedatheme/src/styles/assets/warning.svg +0 -8
- package/src/web/wedatheme/src/styles/assets/wechat-error.svg +0 -14
- package/src/web/wedatheme/src/styles/assets/wechat-warning.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/wechat.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/wechatv.svg +0 -12
- package/src/web/wedatheme/src/styles/assets/zoom-in-white.svg +0 -4
- package/src/web/wedatheme/src/styles/assets/zoom-in.svg +0 -4
- package/src/web/wedatheme/src/styles/assets/zoom-out-white.svg +0 -4
- package/src/web/wedatheme/src/styles/assets/zoom-out.svg +0 -4
- package/src/web/wedatheme/src/styles/index.scss +0 -18
- package/src/web/wedatheme/src/styles/main.css +0 -166
- package/src/web/wedatheme/src/styles/theme/_alert.scss +0 -73
- package/src/web/wedatheme/src/styles/theme/_badge.scss +0 -38
- package/src/web/wedatheme/src/styles/theme/_blank-page-v2.scss +0 -7
- package/src/web/wedatheme/src/styles/theme/_breadcrumb.scss +0 -8
- package/src/web/wedatheme/src/styles/theme/_bubble.scss +0 -24
- package/src/web/wedatheme/src/styles/theme/_button.scss +0 -212
- package/src/web/wedatheme/src/styles/theme/_card.scss +0 -12
- package/src/web/wedatheme/src/styles/theme/_cascader.scss +0 -43
- package/src/web/wedatheme/src/styles/theme/_checkbox&radio.scss +0 -83
- package/src/web/wedatheme/src/styles/theme/_datepicker.scss +0 -36
- package/src/web/wedatheme/src/styles/theme/_dialog.scss +0 -39
- package/src/web/wedatheme/src/styles/theme/_divider.scss +0 -1
- package/src/web/wedatheme/src/styles/theme/_drawer.scss +0 -15
- package/src/web/wedatheme/src/styles/theme/_dropdown.scss +0 -53
- package/src/web/wedatheme/src/styles/theme/_form.scss +0 -38
- package/src/web/wedatheme/src/styles/theme/_input&textarea&select.scss +0 -85
- package/src/web/wedatheme/src/styles/theme/_inputnumber.scss +0 -16
- package/src/web/wedatheme/src/styles/theme/_link.scss +0 -14
- package/src/web/wedatheme/src/styles/theme/_list.scss +0 -41
- package/src/web/wedatheme/src/styles/theme/_metrics-board.scss +0 -14
- package/src/web/wedatheme/src/styles/theme/_notification.scss +0 -27
- package/src/web/wedatheme/src/styles/theme/_pagination.scss +0 -22
- package/src/web/wedatheme/src/styles/theme/_popconfirm.scss +0 -4
- package/src/web/wedatheme/src/styles/theme/_progress.scss +0 -28
- package/src/web/wedatheme/src/styles/theme/_region-select.scss +0 -17
- package/src/web/wedatheme/src/styles/theme/_search.scss +0 -18
- package/src/web/wedatheme/src/styles/theme/_segment.scss +0 -69
- package/src/web/wedatheme/src/styles/theme/_slider.scss +0 -18
- package/src/web/wedatheme/src/styles/theme/_status.scss +0 -4
- package/src/web/wedatheme/src/styles/theme/_steps.scss +0 -68
- package/src/web/wedatheme/src/styles/theme/_switch.scss +0 -11
- package/src/web/wedatheme/src/styles/theme/_table.scss +0 -44
- package/src/web/wedatheme/src/styles/theme/_tabs.scss +0 -44
- package/src/web/wedatheme/src/styles/theme/_tag-search.scss +0 -9
- package/src/web/wedatheme/src/styles/theme/_tag.scss +0 -48
- package/src/web/wedatheme/src/styles/theme/_toast.scss +0 -3
- package/src/web/wedatheme/src/styles/theme/_transfer.scss +0 -9
- package/src/web/wedatheme/src/styles/theme/_tree.scss +0 -11
- package/src/web/wedatheme/src/styles/theme/_upload.scss +0 -14
- package/src/web/wedatheme/src/styles/theme/_variables.scss +0 -140
- package/src/web/wedatheme/src/styles/theme/index.scss +0 -91
- package/src/web/wedatheme/style-package/README.md +0 -31
- package/src/web/wedatheme/style-package/ef6fa527e24e354765d806b826b41391.svg +0 -627
- package/src/web/wedatheme/style-package/index.css +0 -3
- package/src/web/wedatheme/style-package/package.json +0 -15
- package/src/web/wedatheme/tea.config.js +0 -66
- package/src/web/wedatheme/webpack/css.config.js +0 -114
- package/src/web/wedatheme/webpack/plugins/css-package-plugin.js +0 -23
- package/src/web/wedatheme/webpack/plugins/inject-assets-plugin.js +0 -32
- package/src/web/wedatheme/webpack/plugins/package-json-plugin.js +0 -66
|
@@ -1,43 +1,52 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { UploadFilePc } from '../form/uploaderFile/uploadFile.pc';
|
|
3
|
+
import { UploadFileH5 } from '../form/uploaderFile/uploadFile.h5';
|
|
3
4
|
import {
|
|
4
5
|
filterStrList,
|
|
5
6
|
isCloudFileID,
|
|
6
7
|
downloadFile,
|
|
8
|
+
usePlatform,
|
|
9
|
+
transFileCloudidToName,
|
|
7
10
|
} from '../../utils/platform';
|
|
8
11
|
import { getTempFileURL } from '../../utils/tcb';
|
|
9
12
|
import './index.css';
|
|
10
13
|
|
|
11
|
-
const CLASS_PREFIX = 'weda-file-view
|
|
14
|
+
const CLASS_PREFIX = 'weda-uploader-file-view';
|
|
12
15
|
|
|
13
16
|
/**
|
|
14
|
-
*
|
|
15
|
-
* single 表示单个文件回显
|
|
17
|
+
* 上传文件回显,传showType强制展示某端样式,否则根据平台自动判断
|
|
16
18
|
*/
|
|
17
19
|
export default function UploaderFileView({
|
|
18
20
|
value,
|
|
19
21
|
className,
|
|
20
|
-
single = true,
|
|
22
|
+
single = true, // 展示为单行 a 标签
|
|
23
|
+
showType, // 展示端为 pc 还是 h5 样式
|
|
21
24
|
...rest
|
|
22
25
|
}) {
|
|
23
26
|
const fileIDList = filterStrList(value);
|
|
24
|
-
if(single){
|
|
25
|
-
return <FileView fileID={fileIDList[0]}
|
|
26
|
-
}else{
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
27
|
+
if (single) {
|
|
28
|
+
return <FileView fileID={fileIDList[0]} />;
|
|
29
|
+
} else {
|
|
30
|
+
const platform = usePlatform();
|
|
31
|
+
const showTypeMix = showType ? (showType === 'h5' ? 'h5' : 'pc') : platform;
|
|
32
|
+
const uploadFileProps = {
|
|
33
|
+
...rest,
|
|
34
|
+
className: `${CLASS_PREFIX} ${className}`,
|
|
35
|
+
decorator: null,
|
|
36
|
+
labelVisible: false,
|
|
37
|
+
value: fileIDList,
|
|
38
|
+
isEdit: false,
|
|
39
|
+
};
|
|
40
|
+
return showTypeMix === 'pc' ? (
|
|
41
|
+
<UploadFilePc {...uploadFileProps} />
|
|
42
|
+
) : (
|
|
43
|
+
<UploadFileH5 {...uploadFileProps} />
|
|
44
|
+
);
|
|
36
45
|
}
|
|
37
46
|
}
|
|
38
47
|
|
|
39
48
|
/**
|
|
40
|
-
*
|
|
49
|
+
* 单个文件回显,用在表格里面
|
|
41
50
|
*/
|
|
42
51
|
const FileView = ({ fileID }) => {
|
|
43
52
|
const [src, setSrc] = React.useState('');
|
|
@@ -58,18 +67,18 @@ const FileView = ({ fileID }) => {
|
|
|
58
67
|
|
|
59
68
|
const title = React.useMemo(() => {
|
|
60
69
|
if (isCloudFileID(fileID)) {
|
|
61
|
-
|
|
62
|
-
const lastIndex = `${fileID}`.lastIndexOf('/');
|
|
63
|
-
const name = `${fileID}`.slice(lastIndex + 1);
|
|
64
|
-
const title = name.replace(uuidReg, '');
|
|
65
|
-
return title;
|
|
70
|
+
return transFileCloudidToName(fileID);
|
|
66
71
|
} else {
|
|
67
72
|
return fileID;
|
|
68
73
|
}
|
|
69
74
|
}, [fileID]);
|
|
70
75
|
return (
|
|
71
|
-
|
|
76
|
+
<a
|
|
77
|
+
title={title}
|
|
78
|
+
onClick={() => downloadFile(src)}
|
|
79
|
+
className={`${CLASS_PREFIX}__single`}
|
|
80
|
+
>
|
|
72
81
|
{title}
|
|
73
|
-
|
|
74
|
-
)
|
|
82
|
+
</a>
|
|
83
|
+
);
|
|
75
84
|
};
|
package/src/web/types.d.ts
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
/// <reference types="resize-observer-browser" />
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
|
|
3
|
+
import { any } from 'prop-types';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
export type unknownFunction = (...args: unknown[]) => unknown;
|
|
5
6
|
export interface CommonPropsType {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
id?: string;
|
|
9
|
+
events?: Record<string, unknownFunction>;
|
|
10
|
+
className?: string;
|
|
11
|
+
children?: React.ReactNode | undefined;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
|
-
|
|
14
14
|
declare global {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
15
|
+
var app: any;
|
|
16
|
+
interface Window {
|
|
17
|
+
app: any;
|
|
18
|
+
qq: any;
|
|
19
|
+
TMap: any;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
function isObject(value) {
|
|
2
|
+
const type = typeof value;
|
|
3
|
+
return value != null && (type === 'object' || type === 'function');
|
|
4
|
+
}
|
|
5
|
+
function debounce(func, wait, options) {
|
|
6
|
+
let lastArgs, lastThis, maxWait, result, timerId, lastCallTime;
|
|
7
|
+
let lastInvokeTime = 0;
|
|
8
|
+
let leading = false;
|
|
9
|
+
let maxing = false;
|
|
10
|
+
let trailing = true;
|
|
11
|
+
if (typeof func !== 'function') {
|
|
12
|
+
throw new TypeError('Expected a function');
|
|
13
|
+
}
|
|
14
|
+
wait = +wait || 0;
|
|
15
|
+
if (isObject(options)) {
|
|
16
|
+
leading = !!options.leading;
|
|
17
|
+
maxing = 'maxWait' in options;
|
|
18
|
+
maxWait = maxing ? Math.max(+options.maxWait || 0, wait) : maxWait;
|
|
19
|
+
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
|
20
|
+
}
|
|
21
|
+
function invokeFunc(time) {
|
|
22
|
+
const args = lastArgs;
|
|
23
|
+
const thisArg = lastThis;
|
|
24
|
+
|
|
25
|
+
lastArgs = lastThis = undefined;
|
|
26
|
+
lastInvokeTime = time;
|
|
27
|
+
result = func.apply(thisArg, args);
|
|
28
|
+
return result;
|
|
29
|
+
}
|
|
30
|
+
function startTimer(pendingFunc, wait) {
|
|
31
|
+
return setTimeout(pendingFunc, wait);
|
|
32
|
+
}
|
|
33
|
+
function leadingEdge(time) {
|
|
34
|
+
lastInvokeTime = time;
|
|
35
|
+
timerId = startTimer(timerExpired, wait);
|
|
36
|
+
return leading ? invokeFunc(time) : result;
|
|
37
|
+
}
|
|
38
|
+
function remainingWait(time) {
|
|
39
|
+
const timeSinceLastCall = time - lastCallTime;
|
|
40
|
+
const timeSinceLastInvoke = time - lastInvokeTime;
|
|
41
|
+
const timeWaiting = wait - timeSinceLastCall;
|
|
42
|
+
|
|
43
|
+
return maxing
|
|
44
|
+
? Math.min(timeWaiting, maxWait - timeSinceLastInvoke)
|
|
45
|
+
: timeWaiting;
|
|
46
|
+
}
|
|
47
|
+
function shouldInvoke(time) {
|
|
48
|
+
const timeSinceLastCall = time - lastCallTime;
|
|
49
|
+
const timeSinceLastInvoke = time - lastInvokeTime;
|
|
50
|
+
return (
|
|
51
|
+
lastCallTime === undefined ||
|
|
52
|
+
timeSinceLastCall >= wait ||
|
|
53
|
+
timeSinceLastCall < 0 ||
|
|
54
|
+
(maxing && timeSinceLastInvoke >= maxWait)
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
function timerExpired() {
|
|
58
|
+
const time = Date.now();
|
|
59
|
+
if (shouldInvoke(time)) {
|
|
60
|
+
return trailingEdge(time);
|
|
61
|
+
}
|
|
62
|
+
timerId = startTimer(timerExpired, remainingWait(time));
|
|
63
|
+
}
|
|
64
|
+
function trailingEdge(time) {
|
|
65
|
+
timerId = undefined;
|
|
66
|
+
if (trailing && lastArgs) {
|
|
67
|
+
return invokeFunc(time);
|
|
68
|
+
}
|
|
69
|
+
lastArgs = lastThis = undefined;
|
|
70
|
+
return result;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
//debouncedFunc
|
|
74
|
+
function debounced(...args) {
|
|
75
|
+
const time = Date.now();
|
|
76
|
+
const isInvoking = shouldInvoke(time);
|
|
77
|
+
|
|
78
|
+
lastArgs = args;
|
|
79
|
+
lastThis = this;
|
|
80
|
+
lastCallTime = time;
|
|
81
|
+
|
|
82
|
+
if (isInvoking) {
|
|
83
|
+
if (timerId === undefined) {
|
|
84
|
+
return leadingEdge(lastCallTime);
|
|
85
|
+
}
|
|
86
|
+
if (maxing) {
|
|
87
|
+
timerId = startTimer(timerExpired, wait);
|
|
88
|
+
return invokeFunc(lastCallTime);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
if (timerId === undefined) {
|
|
92
|
+
timerId = startTimer(timerExpired, wait);
|
|
93
|
+
}
|
|
94
|
+
return result;
|
|
95
|
+
}
|
|
96
|
+
return debounced;
|
|
97
|
+
}
|
|
98
|
+
export default debounce;
|
|
@@ -38,6 +38,21 @@ export function usePlatform() {
|
|
|
38
38
|
return touchDevice || smallScreen ? 'h5' : 'pc';
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
/**
|
|
42
|
+
* 在h5下,判断当前是否是移动浏览器
|
|
43
|
+
*/
|
|
44
|
+
export function inH5IsMobile() {
|
|
45
|
+
try {
|
|
46
|
+
// 区分h5是在编辑器还是移动浏览器
|
|
47
|
+
let is_mobile_ua = false;
|
|
48
|
+
const ua = navigator && navigator.userAgent;
|
|
49
|
+
is_mobile_ua = /Android|webOS|BlackBerry|iPhone|iPad|iPod|iOS/i.test(ua);
|
|
50
|
+
return is_mobile_ua;
|
|
51
|
+
} catch (e) {
|
|
52
|
+
console.log('isMobile err', e);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
41
56
|
/**
|
|
42
57
|
* 过滤非字符串,返回字符串数组
|
|
43
58
|
* 用于兼容单个组件和组件数组
|
|
@@ -101,3 +116,19 @@ export const cutFileTitle = (str = '', count = 10) => {
|
|
|
101
116
|
}
|
|
102
117
|
return title;
|
|
103
118
|
};
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* 判断是否在 ide 中
|
|
122
|
+
*/
|
|
123
|
+
export const isInIde = () => !!window?.app?.cloud?.IS_WEDA_IDE;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* cloudid和文件名转换
|
|
127
|
+
*/
|
|
128
|
+
export const transFileCloudidToName = (fileID) => {
|
|
129
|
+
const uuidReg = /(file-)?[0-9a-f]{8}((-)?[0-9a-f]{4}){3}(-)?[0-9a-f]{12}-/;
|
|
130
|
+
const lastIndex = `${fileID}`.lastIndexOf('/');
|
|
131
|
+
const name = `${fileID}`.slice(lastIndex + 1);
|
|
132
|
+
const title = name.replace(uuidReg, '');
|
|
133
|
+
return title;
|
|
134
|
+
};
|
package/src/web/utils/tcb.js
CHANGED
|
@@ -35,3 +35,26 @@ export async function getTempFileURL(data) {
|
|
|
35
35
|
return await window?.app?.cloud?.getTempFileURL(data);
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* 云函数获取数据
|
|
41
|
+
*/
|
|
42
|
+
export async function callDataSource(param) {
|
|
43
|
+
const { params, dataSourceName, methodName } = param;
|
|
44
|
+
try {
|
|
45
|
+
const res = await window?.app?.cloud?.callDataSource?.({
|
|
46
|
+
params,
|
|
47
|
+
dataSourceName,
|
|
48
|
+
methodName,
|
|
49
|
+
});
|
|
50
|
+
return res;
|
|
51
|
+
} catch (error) {
|
|
52
|
+
console.error('错误', error);
|
|
53
|
+
return {};
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
export function callWedaApi(...args) {
|
|
59
|
+
return window.app.cloud.callWedaApi(...args);
|
|
60
|
+
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,240 +0,0 @@
|
|
|
1
|
-
> 为了更好的区分组件类型,仅在更新日志中进行如下约定:低码组件使用大驼峰命名,源码组件使用小驼峰命名。
|
|
2
|
-
|
|
3
|
-
## [1.2] - 2021-08-24
|
|
4
|
-
|
|
5
|
-
### Changed
|
|
6
|
-
|
|
7
|
-
- swiper 轮播
|
|
8
|
-
|
|
9
|
-
- 添加示例图片
|
|
10
|
-
|
|
11
|
-
## [1.1] - 2021-08-09
|
|
12
|
-
|
|
13
|
-
### Added
|
|
14
|
-
|
|
15
|
-
- text 文本
|
|
16
|
-
|
|
17
|
-
- 新增事件 `tap`
|
|
18
|
-
|
|
19
|
-
- modal 模态弹窗
|
|
20
|
-
|
|
21
|
-
- 新增组件 `modal`, web 使用 tea 样式用于 PC 样式响应式。
|
|
22
|
-
|
|
23
|
-
- showModal 显示弹窗
|
|
24
|
-
|
|
25
|
-
- 新增动作 `showModal`,用于平台方法的 PC 大屏响应式版本,小程序对齐 wx.showModal api。
|
|
26
|
-
|
|
27
|
-
- FormTextarea 表单多行输入
|
|
28
|
-
|
|
29
|
-
- 新增组件 `FormTextarea`, 用以替代被移除的 `Textarea` 组件
|
|
30
|
-
|
|
31
|
-
- link 链接
|
|
32
|
-
|
|
33
|
-
- 新增组件 `link`,可通过插槽来配置自定义内容
|
|
34
|
-
|
|
35
|
-
### Changed
|
|
36
|
-
|
|
37
|
-
- button 按钮
|
|
38
|
-
|
|
39
|
-
- 添加响应式样式,屏幕宽度大于 **1024px** 时显示为方角
|
|
40
|
-
|
|
41
|
-
- swiper 轮播
|
|
42
|
-
|
|
43
|
-
- 添加响应式样式,屏幕宽度大于 1024px 时显示为方角
|
|
44
|
-
|
|
45
|
-
- FormRadio 表单单选
|
|
46
|
-
|
|
47
|
-
- 修复多个单选组件并存导致的选中问题
|
|
48
|
-
|
|
49
|
-
- FormCheckbox 表单复选
|
|
50
|
-
|
|
51
|
-
- 修复多个复选组件并存导致的选中问题
|
|
52
|
-
|
|
53
|
-
- 所有组件:
|
|
54
|
-
- 表单组件的默认背景色,统一配置为透明
|
|
55
|
-
- 组件最外层容器统一添加 `weda-ui` 类名,组件库级别重置样式及公共样式都限制在 `weda-ui` 类名下,防止污染
|
|
56
|
-
- 规范了组件事件的触发方式
|
|
57
|
-
|
|
58
|
-
## [1.0] - 2021-06-10
|
|
59
|
-
|
|
60
|
-
### Added
|
|
61
|
-
|
|
62
|
-
- text 文本:
|
|
63
|
-
|
|
64
|
-
- 新增属性 `maxLines` 最大显示行数
|
|
65
|
-
|
|
66
|
-
- FormRegion 表单区域选择:
|
|
67
|
-
|
|
68
|
-
- 新增组件 `FormRegion`, 用以替代被移除的 `RegionPicker` 组件
|
|
69
|
-
|
|
70
|
-
### Removed
|
|
71
|
-
|
|
72
|
-
- swiper 轮播:
|
|
73
|
-
|
|
74
|
-
- 移除属性 `displayMultipleItems`, `nextMargin`, `previousMargin`, `updated`
|
|
75
|
-
- 移除 `transition` 和 `animationfinished` 事件
|
|
76
|
-
|
|
77
|
-
- text 文本:
|
|
78
|
-
|
|
79
|
-
- 移除属性 `decode` 是否解码
|
|
80
|
-
- 移除 `tap` 事件
|
|
81
|
-
|
|
82
|
-
- image 图片:
|
|
83
|
-
|
|
84
|
-
- 移除属性 `webp` 能否解析 webp 格式
|
|
85
|
-
|
|
86
|
-
- button 按钮:
|
|
87
|
-
|
|
88
|
-
- 移除属性 `plain` 镂空
|
|
89
|
-
- 移除属性 `openType` 微信开放能力的 `获取用户信息` 选项
|
|
90
|
-
|
|
91
|
-
- FormInput 表单输入:
|
|
92
|
-
|
|
93
|
-
- 移除属性 `requiredFlag` 是否需要必填星号
|
|
94
|
-
- 移除属性 `underline` 是否需要底部下划线
|
|
95
|
-
|
|
96
|
-
- FormRadio 表单单选:
|
|
97
|
-
|
|
98
|
-
- 移除属性 `validateTrigger` 字段触发校验类型
|
|
99
|
-
- 移除属性 `validateStatus` 校验状态
|
|
100
|
-
- 移除属性 `requiredFlag` 是否需要必填星号
|
|
101
|
-
- 移除属性 `underline` 是否需要底部下划线
|
|
102
|
-
|
|
103
|
-
- FormCheckbox 表单复选:
|
|
104
|
-
|
|
105
|
-
- 移除属性 `validateTrigger` 字段触发校验类型
|
|
106
|
-
- 移除属性 `validateStatus` 校验状态
|
|
107
|
-
- 移除属性 `requiredFlag` 是否需要必填星号
|
|
108
|
-
- 移除属性 `underline` 是否需要底部下划线
|
|
109
|
-
|
|
110
|
-
- FormSwitch 表单开关:
|
|
111
|
-
|
|
112
|
-
- 移除属性 `type` 显示类型
|
|
113
|
-
- 移除属性 `checkedIcon` 选中图标
|
|
114
|
-
- 移除属性 `uncheckedIcon` 非选中图标
|
|
115
|
-
- 移除属性 `requiredFlag` 是否需要必填星号
|
|
116
|
-
- 移除属性 `underline` 是否需要底部下划线
|
|
117
|
-
|
|
118
|
-
- FormDate 表单日期:
|
|
119
|
-
|
|
120
|
-
- 移除属性 `suffixType` 操作尾部样式类型
|
|
121
|
-
- 移除属性 `suffixText` 操作尾部文案
|
|
122
|
-
- 移除属性 `requiredFlag` 是否需要必填星号
|
|
123
|
-
- 移除属性 `underline` 是否需要底部下划线
|
|
124
|
-
|
|
125
|
-
- FormTime 表单时间:
|
|
126
|
-
|
|
127
|
-
- 移除属性 `suffixType` 操作尾部样式类型
|
|
128
|
-
- 移除属性 `suffixText` 操作尾部文案
|
|
129
|
-
- 移除属性 `requiredFlag` 是否需要必填星号
|
|
130
|
-
- 移除属性 `underline` 是否需要底部下划线
|
|
131
|
-
|
|
132
|
-
- FormSelect 表单选择:
|
|
133
|
-
|
|
134
|
-
- 移除属性 `suffixType` 操作尾部样式类型
|
|
135
|
-
- 移除属性 `suffixText` 操作尾部文案
|
|
136
|
-
- 移除属性 `validateTrigger` 字段触发校验类型
|
|
137
|
-
- 移除属性 `validateStatus` 校验状态
|
|
138
|
-
- 移除属性 `rules` 校验规则
|
|
139
|
-
- 移除属性 `requiredFlag` 是否需要必填星号
|
|
140
|
-
- 移除属性 `underline` 是否需要底部下划线
|
|
141
|
-
|
|
142
|
-
- FormPhone 表单手机号码:
|
|
143
|
-
|
|
144
|
-
- 移除属性 `maxLength` 最大输入长度
|
|
145
|
-
- 移除属性 `rules` 校验规则
|
|
146
|
-
- 移除属性 `requiredFlag` 是否需要必填星号
|
|
147
|
-
- 移除属性 `underline` 是否需要底部下划线
|
|
148
|
-
|
|
149
|
-
- FormEmail 表单邮件地址:
|
|
150
|
-
|
|
151
|
-
- 移除属性 `rules` 校验规则
|
|
152
|
-
- 移除属性 `requiredFlag` 是否需要必填星号
|
|
153
|
-
- 移除属性 `underline` 是否需要底部下划线
|
|
154
|
-
|
|
155
|
-
- FormUrl 表单邮件地址:
|
|
156
|
-
|
|
157
|
-
- 移除属性 `rules` 校验规则
|
|
158
|
-
- 移除属性 `requiredFlag` 是否需要必填星号
|
|
159
|
-
- 移除属性 `underline` 是否需要底部下划线
|
|
160
|
-
|
|
161
|
-
- FormItem 表单元素:
|
|
162
|
-
|
|
163
|
-
- 移除组件
|
|
164
|
-
|
|
165
|
-
- FormCell 表单表格:
|
|
166
|
-
|
|
167
|
-
- 移除组件
|
|
168
|
-
|
|
169
|
-
- RegionPicker 地域选择:
|
|
170
|
-
|
|
171
|
-
- 移除组件
|
|
172
|
-
|
|
173
|
-
- Textarea 多行输入:
|
|
174
|
-
|
|
175
|
-
- 移除组件, 待优化后重新上架
|
|
176
|
-
|
|
177
|
-
### Changed
|
|
178
|
-
|
|
179
|
-
- image 图片:
|
|
180
|
-
|
|
181
|
-
- 默认大小由 320\*240 rpx 调整为 240\*240 rpx
|
|
182
|
-
|
|
183
|
-
- text 文本:
|
|
184
|
-
|
|
185
|
-
- 跟随小程序定义,`selectabble` 变更为 `userSelect`
|
|
186
|
-
- 样式调整:默认布局模式从 `inline` 编程 `block`
|
|
187
|
-
|
|
188
|
-
- button 按钮:
|
|
189
|
-
|
|
190
|
-
- 样式调整:从默认宽度 `100%` 调整为默认 `184px`
|
|
191
|
-
|
|
192
|
-
- Form 表单容器:
|
|
193
|
-
|
|
194
|
-
- 样式优化
|
|
195
|
-
|
|
196
|
-
- FormInput 表单输入:
|
|
197
|
-
|
|
198
|
-
- 样式优化
|
|
199
|
-
|
|
200
|
-
- FormRadio 表单单选:
|
|
201
|
-
|
|
202
|
-
- 属性 `name` 表单字段名称,默认值由 `thisIsRadioKey` 改为 `formRadio`
|
|
203
|
-
- 样式优化
|
|
204
|
-
|
|
205
|
-
- FormCheckbox 表单复选:
|
|
206
|
-
|
|
207
|
-
- 属性 `name` 表单字段名称,默认值由 `thisIsCheckboxKey` 改为 `formCheckbox`
|
|
208
|
-
- 样式优化
|
|
209
|
-
|
|
210
|
-
- FormSwitch 表单开关:
|
|
211
|
-
|
|
212
|
-
- 属性 `name` 表单字段名称,默认值由 `thisIsSelectKey` 改为 `formSwitch`
|
|
213
|
-
- 样式优化
|
|
214
|
-
|
|
215
|
-
- FormDate 表单日期:
|
|
216
|
-
|
|
217
|
-
- 属性 `name` 表单字段名称,默认值由 `thisIsDateKey` 改为 `formDate`
|
|
218
|
-
- 样式优化
|
|
219
|
-
|
|
220
|
-
- FormTime 表单时间:
|
|
221
|
-
|
|
222
|
-
- 属性 `name` 表单字段名称,默认值由 `thisIsTimeKey` 改为 `formTime`
|
|
223
|
-
- 样式优化
|
|
224
|
-
|
|
225
|
-
- FormSelect 表单选择:
|
|
226
|
-
|
|
227
|
-
- 属性 `name` 表单字段名称,默认值由 `thisIsSelectKey` 改为 `formSelect`
|
|
228
|
-
- 样式优化
|
|
229
|
-
|
|
230
|
-
- FormPhone 表单手机号码:
|
|
231
|
-
|
|
232
|
-
- 样式优化
|
|
233
|
-
|
|
234
|
-
- FormEmail 表单邮件地址:
|
|
235
|
-
|
|
236
|
-
- 样式优化
|
|
237
|
-
|
|
238
|
-
- FormUrl 表单邮件地址:
|
|
239
|
-
|
|
240
|
-
- 样式优化
|
package/src/.DS_Store
DELETED
|
Binary file
|
package/src/configs/.DS_Store
DELETED
|
Binary file
|
package/src/mp/.gitignore
DELETED
package/src/web/.DS_Store
DELETED
|
Binary file
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
source:
|
|
2
|
-
# 文件或目录使用绝对路径,绝对路径按代码库根目录计算,以/开头。
|
|
3
|
-
# 提供产品代码库中编写的测试代码存放目录或文件名格式,以便代码检查时进行排除处理
|
|
4
|
-
# 不要使用.*/等正则表达式屏蔽掉所有代码,会使得代码存在风险,还会导致Coverity扫不到任何代码而失败
|
|
5
|
-
test_source:
|
|
6
|
-
#用于匹配文件; 匹配方式为正则表达式,例如[".*/java/test/.*", ".*/test.java"]
|
|
7
|
-
filepath_regex:
|
|
8
|
-
# 提供产品代码库中工具或框架自动生成的且在代码库中的代码,没有可为空。以便代码检查时进行排除处理。
|
|
9
|
-
auto_generate_source:
|
|
10
|
-
# 自动生成代码文件的正则表达式,若无统一标识格式,可以指定具体目录,样例可参考test_source举例
|
|
11
|
-
filepath_regex: ["/style-package/*.*"]
|
|
12
|
-
# 提供产品代码库中直接以源码形式存在的第三方代码目录或代码文件名的正则表达。
|
|
13
|
-
# 此处备注的第三方代码将在代码检查时进行排除,若代码库中不存在需要排除的第三方代码,该项配置标识可为空
|
|
14
|
-
third_party_source:
|
|
15
|
-
#第三方代码文件的正则表达式,若无统一标识格式,可以指定具体目录,样例可参考test_source举例
|
|
16
|
-
filepath_regex:
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": {
|
|
3
|
-
"browser": true,
|
|
4
|
-
"es6": true
|
|
5
|
-
},
|
|
6
|
-
"settings": {
|
|
7
|
-
"react": {
|
|
8
|
-
"version": "detect"
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
"parser": "babel-eslint",
|
|
12
|
-
"parserOptions": {
|
|
13
|
-
"ecmaVersion": 6,
|
|
14
|
-
"sourceType": "module",
|
|
15
|
-
"ecmaFeatures": {
|
|
16
|
-
"jsx": true
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
"extends": ["@tencent/eslint-config-tencent", "plugin:react/recommended"]
|
|
20
|
-
}
|
package/src/web/wedatheme/.git
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
gitdir: ../../../.git/modules/src/web/wedatheme
|
package/src/web/wedatheme/.npmrc
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
registry=https://mirrors.tencent.com/npm/
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
### 该配置文件用于自动发布tnpm包,tnpm相关配置从git地址获取 ###
|
|
2
|
-
master:
|
|
3
|
-
push:
|
|
4
|
-
-
|
|
5
|
-
stages:
|
|
6
|
-
- name: 发布 npm 包
|
|
7
|
-
image: plugins/npm
|
|
8
|
-
envFrom: https://git.code.oa.com/tc-console/public-key/blob/master/tnpm.text
|
|
9
|
-
settings:
|
|
10
|
-
username: $TNPM_USER
|
|
11
|
-
password: $TNPM_PWD
|
|
12
|
-
email: $TNPM_EMAIL
|
|
13
|
-
registry: https://mirrors.tencent.com/npm/
|
|
14
|
-
folder: ./style-package/
|
|
15
|
-
- name: 获取包名
|
|
16
|
-
type: orange-ci:readFile
|
|
17
|
-
options:
|
|
18
|
-
filePath: ./style-package/package.json
|
|
19
|
-
envExport:
|
|
20
|
-
name: PACKAGE_NAME
|
|
21
|
-
- name: make message
|
|
22
|
-
script: echo '[http://mirrors.tencent.com/#/private/npm/detail?project_name=$PACKAGE_NAME](http://mirrors.tencent.com/#/private/npm/detail?project_name=$PACKAGE_NAME)' > message.txt
|
|
23
|
-
- name: send message
|
|
24
|
-
type: wework:message
|
|
25
|
-
options:
|
|
26
|
-
fromFile: message.txt
|
|
27
|
-
### 该配置文件用于自动构建并部署文件到服务器,通过企业微信返回内网预览地址 ###
|
|
28
|
-
### 接入配置可参考:http://km.oa.com/articles/show/422133 有疑问可联系youngerwang ###
|
|
29
|
-
dev:
|
|
30
|
-
push:
|
|
31
|
-
- docker:
|
|
32
|
-
image: node:10
|
|
33
|
-
env:
|
|
34
|
-
ORANGE_W_BUILD_SUCCESS_MSG: 预览地址:http://9.134.68.199/$ORANGE_REPO_SLUG/dist/index.html
|
|
35
|
-
stages:
|
|
36
|
-
### 需要每次都安装一次,后续下放到开发机器
|
|
37
|
-
- name: 安装 tnpm
|
|
38
|
-
script: npm install @tencent/tnpm -g --registry=https://mirrors.tencent.com/npm/
|
|
39
|
-
- name: 安装 tea-cli
|
|
40
|
-
script: tnpm i @tencent/tea-cli -g
|
|
41
|
-
- name: 安装依赖
|
|
42
|
-
script: tnpm install && tnpm i @tencent/tea-component
|
|
43
|
-
- name: 构建
|
|
44
|
-
script: tea login qaayH8xL2ATXSkWS8ahBB7IEYXMECyaKSAlbkDzX && tea build -l zh
|
|
45
|
-
- name: 预览地址
|
|
46
|
-
type: wework:message
|
|
47
|
-
options:
|
|
48
|
-
message: '[http://9.134.68.199/$ORANGE_REPO_SLUG/dist/index.html](http://9.134.68.199/$ORANGE_REPO_SLUG/dist/index.html)'
|
|
49
|
-
- name: 拷贝文件
|
|
50
|
-
type: orange-ci:transfer
|
|
51
|
-
options:
|
|
52
|
-
dist: '/'
|
|
53
|
-
to: /usr/share/nginx/html/$ORANGE_REPO_SLUG
|
|
54
|
-
ips:
|
|
55
|
-
- 9.134.68.199
|