@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
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
|
|
3
|
+
"data": {
|
|
4
|
+
"properties": {
|
|
5
|
+
"navOption": {
|
|
6
|
+
"type": "array",
|
|
7
|
+
"title": "图文内容",
|
|
8
|
+
"icon":"icon",
|
|
9
|
+
"items": {
|
|
10
|
+
"type": "object",
|
|
11
|
+
"title": "示例标题",
|
|
12
|
+
"x-image": "this.icon",
|
|
13
|
+
"default": {
|
|
14
|
+
"icon": "https://qcloudimg.tencent-cloud.cn/raw/478c35e469057b4d6352ccc14e00ebc5.png",
|
|
15
|
+
"title": "示例标题",
|
|
16
|
+
"des":"这是一段示例描述,这是一段示例描述"
|
|
17
|
+
},
|
|
18
|
+
"display": "title",
|
|
19
|
+
"properties": {
|
|
20
|
+
"icon": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"x-component": "image",
|
|
23
|
+
"title": "图片",
|
|
24
|
+
"default": "https://qcloudimg.tencent-cloud.cn/raw/478c35e469057b4d6352ccc14e00ebc5.png",
|
|
25
|
+
"x-index": 20
|
|
26
|
+
},
|
|
27
|
+
"title": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"title": "标题",
|
|
30
|
+
"default": "示例标题",
|
|
31
|
+
"x-index": 10
|
|
32
|
+
},
|
|
33
|
+
"des": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"title": "描述",
|
|
36
|
+
"default": "这是一段示例描述,这是一段示例描述",
|
|
37
|
+
"x-index": 15
|
|
38
|
+
},
|
|
39
|
+
"tapStatus":{
|
|
40
|
+
"enum": [
|
|
41
|
+
{
|
|
42
|
+
"value": "tap",
|
|
43
|
+
"label": "无行为",
|
|
44
|
+
"icon": "weda-editor-icon-alert-close"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"value": "inside",
|
|
48
|
+
"label": "打开页面",
|
|
49
|
+
"icon": "weda-editor-icon-docs"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"value": "outer",
|
|
53
|
+
"label": "外部链接",
|
|
54
|
+
"icon": "weda-editor-icon-link",
|
|
55
|
+
"tooltip":[{
|
|
56
|
+
"platform":["ALL","MP"],
|
|
57
|
+
"text":"小程序平台不支持跳转外部链接"
|
|
58
|
+
}],
|
|
59
|
+
"disabled": [{
|
|
60
|
+
"platform":["MP"]
|
|
61
|
+
}]
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"type": "string",
|
|
65
|
+
"title": "点击时",
|
|
66
|
+
"default": "tap",
|
|
67
|
+
"x-index": 40,
|
|
68
|
+
"x-component": "icon-text-radio",
|
|
69
|
+
"x-linkages": [
|
|
70
|
+
{
|
|
71
|
+
"type": "value:visible",
|
|
72
|
+
"target": "*(dataForm.insideUrl)",
|
|
73
|
+
"condition": "{{$self.value=='inside'}}"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"type": "value:visible",
|
|
77
|
+
"target": "*(dataForm.outerUrl)",
|
|
78
|
+
"condition": "{{$self.value=='outer'}}"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"type": "value:visible",
|
|
82
|
+
"target": "*(dataForm.withParams)",
|
|
83
|
+
"condition": "{{$self.value=='inside'}}"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"type": "value:visible",
|
|
87
|
+
"target": "*(dataForm.newPage)",
|
|
88
|
+
"condition": "{{$self.value=='outer'}}"
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
"insideUrl": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"x-component": "page-list",
|
|
95
|
+
"default": "",
|
|
96
|
+
"title": "应用页面",
|
|
97
|
+
"x-category": "基础属性",
|
|
98
|
+
"x-index": 120,
|
|
99
|
+
"x-component-props": {
|
|
100
|
+
"hideAddPlatform": ["MP"],
|
|
101
|
+
"addHidden":true
|
|
102
|
+
},
|
|
103
|
+
"x-linkages": [
|
|
104
|
+
{
|
|
105
|
+
"type": "value:state",
|
|
106
|
+
"target": "*(dataForm.params)",
|
|
107
|
+
"condition": "{{$self.value && $self.value.length>0}}",
|
|
108
|
+
"state":{
|
|
109
|
+
"pageId":"{{$self.value}}"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
"outerUrl": {
|
|
116
|
+
"title": "URL地址",
|
|
117
|
+
"default": "",
|
|
118
|
+
"type": "string"
|
|
119
|
+
},
|
|
120
|
+
"newPage": {
|
|
121
|
+
"title": "打开新页面",
|
|
122
|
+
"default": false,
|
|
123
|
+
"type": "boolean"
|
|
124
|
+
},
|
|
125
|
+
"withParams": {
|
|
126
|
+
"title": "携带参数",
|
|
127
|
+
"default": false,
|
|
128
|
+
"type": "boolean",
|
|
129
|
+
"x-linkages": [
|
|
130
|
+
{
|
|
131
|
+
"type": "value:visible",
|
|
132
|
+
"target": "*(dataForm.params)",
|
|
133
|
+
"condition": "{{$self.value==true}}"
|
|
134
|
+
}
|
|
135
|
+
]
|
|
136
|
+
},
|
|
137
|
+
"params": {
|
|
138
|
+
"type": "array",
|
|
139
|
+
"title": "参数",
|
|
140
|
+
"pageId":"",
|
|
141
|
+
"x-component":"page-params",
|
|
142
|
+
"default": []
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"default": [
|
|
147
|
+
{
|
|
148
|
+
"icon": "https://qcloudimg.tencent-cloud.cn/raw/478c35e469057b4d6352ccc14e00ebc5.png",
|
|
149
|
+
"title": "示例标题",
|
|
150
|
+
"des":"这是一段示例描述,这是一段示例描述",
|
|
151
|
+
"tapStatus": "tap"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"icon": "https://qcloudimg.tencent-cloud.cn/raw/478c35e469057b4d6352ccc14e00ebc5.png",
|
|
155
|
+
"title": "示例标题",
|
|
156
|
+
"des":"这是一段示例描述,这是一段示例描述",
|
|
157
|
+
"tapStatus": "tap"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"icon": "https://qcloudimg.tencent-cloud.cn/raw/478c35e469057b4d6352ccc14e00ebc5.png",
|
|
161
|
+
"title": "示例标题",
|
|
162
|
+
"des":"这是一段示例描述,这是一段示例描述",
|
|
163
|
+
"tapStatus": "tap"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"icon": "https://qcloudimg.tencent-cloud.cn/raw/478c35e469057b4d6352ccc14e00ebc5.png",
|
|
167
|
+
"title": "示例标题",
|
|
168
|
+
"des":"这是一段示例描述,这是一段示例描述",
|
|
169
|
+
"tapStatus": "tap"
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
"x-index": 1,
|
|
173
|
+
"x-component": "list"
|
|
174
|
+
},
|
|
175
|
+
"ColMobile": {
|
|
176
|
+
"type": "number",
|
|
177
|
+
"default": 2,
|
|
178
|
+
"title": "移动端列数",
|
|
179
|
+
"x-category": "基础属性",
|
|
180
|
+
"enum": [
|
|
181
|
+
{
|
|
182
|
+
"label": "1",
|
|
183
|
+
"value": 1
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"label": "2",
|
|
187
|
+
"value": 2
|
|
188
|
+
}
|
|
189
|
+
]
|
|
190
|
+
},
|
|
191
|
+
"ColPC": {
|
|
192
|
+
"type": "number",
|
|
193
|
+
"default": 4,
|
|
194
|
+
"title": "PC端列数",
|
|
195
|
+
"x-category": "基础属性",
|
|
196
|
+
"enum": [
|
|
197
|
+
{
|
|
198
|
+
"label": "3",
|
|
199
|
+
"value": 3
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"label": "4",
|
|
203
|
+
"value": 4
|
|
204
|
+
}
|
|
205
|
+
]
|
|
206
|
+
},
|
|
207
|
+
"textAlign": {
|
|
208
|
+
"title": "对齐",
|
|
209
|
+
"type": "string",
|
|
210
|
+
"default": "left",
|
|
211
|
+
"x-component": "textAlign",
|
|
212
|
+
"x-index": 10,
|
|
213
|
+
"x-category": "高级属性"
|
|
214
|
+
},
|
|
215
|
+
"iconHeightSize": {
|
|
216
|
+
"type": "string",
|
|
217
|
+
"default": "100%",
|
|
218
|
+
"title": "图片高度",
|
|
219
|
+
"x-category": "高级属性",
|
|
220
|
+
"x-index": 20
|
|
221
|
+
},
|
|
222
|
+
"iconWidthSize": {
|
|
223
|
+
"type": "string",
|
|
224
|
+
"default": "100%",
|
|
225
|
+
"title": "图片宽度",
|
|
226
|
+
"description": "默认单位px",
|
|
227
|
+
"x-category": "高级属性",
|
|
228
|
+
"x-index": 25
|
|
229
|
+
},
|
|
230
|
+
"titleVisible": {
|
|
231
|
+
"title": "显示标题",
|
|
232
|
+
"type": "boolean",
|
|
233
|
+
"default": true,
|
|
234
|
+
"x-category": "高级属性",
|
|
235
|
+
"x-index": 30,
|
|
236
|
+
"x-linkages": [
|
|
237
|
+
{
|
|
238
|
+
"type": "value:visible",
|
|
239
|
+
"target": "*(titleColor,titleFontWeight,titleFontSize,titleLineHeight,titleMaxLines)",
|
|
240
|
+
"condition": "{{$self.value}}"
|
|
241
|
+
}
|
|
242
|
+
]
|
|
243
|
+
},
|
|
244
|
+
"titleColor": {
|
|
245
|
+
"title": "标题颜色",
|
|
246
|
+
"type": "string",
|
|
247
|
+
"x-component": "color",
|
|
248
|
+
"x-index": 40,
|
|
249
|
+
"x-category": "高级属性",
|
|
250
|
+
"default": "rgb(0, 0, 0)"
|
|
251
|
+
},
|
|
252
|
+
|
|
253
|
+
"titleFontWeight": {
|
|
254
|
+
"type": "string",
|
|
255
|
+
"title": "标题字重",
|
|
256
|
+
"default": "bolder",
|
|
257
|
+
"x-category": "高级属性",
|
|
258
|
+
"x-index": 50,
|
|
259
|
+
"enum": [
|
|
260
|
+
{
|
|
261
|
+
"label": "细",
|
|
262
|
+
"value": "lighter"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"label": "正常",
|
|
266
|
+
"value": "normal"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"label": "粗",
|
|
270
|
+
"value": "bolder"
|
|
271
|
+
}
|
|
272
|
+
]
|
|
273
|
+
},
|
|
274
|
+
"titleFontSize": {
|
|
275
|
+
"type": "number",
|
|
276
|
+
"title": "标题字号",
|
|
277
|
+
"default": 14,
|
|
278
|
+
"x-category": "高级属性",
|
|
279
|
+
"x-props":{
|
|
280
|
+
"min":0,
|
|
281
|
+
"max":100
|
|
282
|
+
},
|
|
283
|
+
"x-index":60
|
|
284
|
+
},
|
|
285
|
+
"titleLineHeight": {
|
|
286
|
+
"title": "标题行高",
|
|
287
|
+
"type": "string",
|
|
288
|
+
"x-index": 70,
|
|
289
|
+
"x-category": "高级属性",
|
|
290
|
+
"default": "auto"
|
|
291
|
+
},
|
|
292
|
+
"titleMaxLines": {
|
|
293
|
+
"title": "标题行数",
|
|
294
|
+
"type": "number",
|
|
295
|
+
"default": 1,
|
|
296
|
+
"x-index": 80,
|
|
297
|
+
"x-category": "高级属性"
|
|
298
|
+
},
|
|
299
|
+
"desVisible": {
|
|
300
|
+
"title": "显示描述",
|
|
301
|
+
"type": "boolean",
|
|
302
|
+
"default": true,
|
|
303
|
+
"x-category": "高级属性",
|
|
304
|
+
"x-index": 90,
|
|
305
|
+
"x-linkages": [
|
|
306
|
+
{
|
|
307
|
+
"type": "value:visible",
|
|
308
|
+
"target": "*(desColor,desFontWeight,desFontSize,desLineHeight,desMaxLines)",
|
|
309
|
+
"condition": "{{$self.value}}"
|
|
310
|
+
}
|
|
311
|
+
]
|
|
312
|
+
},
|
|
313
|
+
"desColor": {
|
|
314
|
+
"title": "描述颜色",
|
|
315
|
+
"type": "string",
|
|
316
|
+
"x-component": "color",
|
|
317
|
+
"x-index": 100,
|
|
318
|
+
"x-category": "高级属性",
|
|
319
|
+
"default": "rgba(0, 0, 0, 0.4)"
|
|
320
|
+
},
|
|
321
|
+
|
|
322
|
+
"desFontWeight": {
|
|
323
|
+
"type": "string",
|
|
324
|
+
"title": "描述字重",
|
|
325
|
+
"default": "normal",
|
|
326
|
+
"x-category": "高级属性",
|
|
327
|
+
"x-index": 110,
|
|
328
|
+
"enum": [
|
|
329
|
+
{
|
|
330
|
+
"label": "细",
|
|
331
|
+
"value": "lighter"
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"label": "正常",
|
|
335
|
+
"value": "normal"
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"label": "粗",
|
|
339
|
+
"value": "bolder"
|
|
340
|
+
}
|
|
341
|
+
]
|
|
342
|
+
},
|
|
343
|
+
"desFontSize": {
|
|
344
|
+
"type": "number",
|
|
345
|
+
"title": "描述字号",
|
|
346
|
+
"default": 14,
|
|
347
|
+
"x-category": "高级属性",
|
|
348
|
+
"x-props":{
|
|
349
|
+
"min":0,
|
|
350
|
+
"max":100
|
|
351
|
+
},
|
|
352
|
+
"x-index":120
|
|
353
|
+
},
|
|
354
|
+
"desLineHeight": {
|
|
355
|
+
"title": "描述行高",
|
|
356
|
+
"type": "string",
|
|
357
|
+
"x-index": 130,
|
|
358
|
+
"x-category": "高级属性",
|
|
359
|
+
"default": "auto"
|
|
360
|
+
},
|
|
361
|
+
"desMaxLines": {
|
|
362
|
+
"title": "描述行数",
|
|
363
|
+
"type": "number",
|
|
364
|
+
"default": 2,
|
|
365
|
+
"x-index": 140,
|
|
366
|
+
"x-category": "高级属性"
|
|
367
|
+
},
|
|
368
|
+
"buttonVisible": {
|
|
369
|
+
"title": "显示详情按钮",
|
|
370
|
+
"type": "boolean",
|
|
371
|
+
"default": true,
|
|
372
|
+
"x-category": "高级属性",
|
|
373
|
+
"x-index": 150,
|
|
374
|
+
"description":"无行为的按钮将保持隐藏",
|
|
375
|
+
"x-linkages": [
|
|
376
|
+
{
|
|
377
|
+
"type": "value:visible",
|
|
378
|
+
"target": "*(buttonText)",
|
|
379
|
+
"condition": "{{$self.value}}"
|
|
380
|
+
}
|
|
381
|
+
]
|
|
382
|
+
},
|
|
383
|
+
"buttonText": {
|
|
384
|
+
"title": "按钮文案",
|
|
385
|
+
"type": "string",
|
|
386
|
+
"default": "查看详情",
|
|
387
|
+
|
|
388
|
+
"x-category": "高级属性",
|
|
389
|
+
"x-index": 160
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
"meta": {
|
|
394
|
+
"title": "图文卡片",
|
|
395
|
+
"category": "展示",
|
|
396
|
+
"componentOrder": 501,
|
|
397
|
+
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/GraphicCard.svg"
|
|
398
|
+
}
|
|
399
|
+
}
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
"url": {
|
|
16
16
|
"type": "string",
|
|
17
17
|
"x-component": "page-list",
|
|
18
|
-
"default": "https://cloud.tencent.com",
|
|
19
18
|
"title": "跳转页面",
|
|
20
19
|
"description": "通过下拉选择应用页面,可以实现内部页面跳转",
|
|
21
20
|
"x-category": "基础属性",
|
|
@@ -54,7 +53,8 @@
|
|
|
54
53
|
"description": "",
|
|
55
54
|
"category": "文本",
|
|
56
55
|
"componentOrder": 10,
|
|
57
|
-
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/Link.svg"
|
|
56
|
+
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/Link.svg",
|
|
57
|
+
"platform": ["MOBILEWEB", "PCWEB"]
|
|
58
58
|
},
|
|
59
59
|
"events": [
|
|
60
60
|
{
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
|
|
3
|
+
"data": {
|
|
4
|
+
"properties": {
|
|
5
|
+
"datasource": {
|
|
6
|
+
"x-index": 10,
|
|
7
|
+
"title": "数据模型",
|
|
8
|
+
"type": "object",
|
|
9
|
+
"x-category": "基础属性",
|
|
10
|
+
"properties": {
|
|
11
|
+
"name": {
|
|
12
|
+
"title": "数据模型名",
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
15
|
+
"extra": {
|
|
16
|
+
"title": "数据模型属性",
|
|
17
|
+
"type": "object",
|
|
18
|
+
"properties": {
|
|
19
|
+
"viewId": {
|
|
20
|
+
"title": "数据模型视图id",
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
"methodName": {
|
|
24
|
+
"title": "数据模型方法名",
|
|
25
|
+
"type": "object"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"x-component": "datasource-selector",
|
|
31
|
+
"x-component-props": { "dataContainerType": "listView" },
|
|
32
|
+
"x-props": { "data-hidebind": true },
|
|
33
|
+
"x-linkages": [
|
|
34
|
+
{
|
|
35
|
+
"type": "value:schema",
|
|
36
|
+
"target": "params",
|
|
37
|
+
"schema": {
|
|
38
|
+
"x-component-props": "{{$value}}"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"type": "value:schema",
|
|
43
|
+
"condition": "{{ !!$value.name }}",
|
|
44
|
+
"target": "orderBy",
|
|
45
|
+
"schema": {
|
|
46
|
+
"enum": "{{getDataSourceValueOptions($value.name)}}"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"type": "value:state",
|
|
51
|
+
"condition": "{{!!$value.name && !!$form.values.orderBy && getDataSourceValueOptions($value.name).every(o => o.value !== $form.values.orderBy)}}",
|
|
52
|
+
"target": "orderBy",
|
|
53
|
+
"state": {
|
|
54
|
+
"value": ""
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"type": "value:schema",
|
|
59
|
+
"condition": "{{ !!$value.name }}",
|
|
60
|
+
"target": "where",
|
|
61
|
+
"schema": {
|
|
62
|
+
"x-component-props": "{{{selectedDataSourceName: $value.name}}}"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"type": "value:schema",
|
|
67
|
+
"condition": "{{ !$value.name }}",
|
|
68
|
+
"target": "orderBy",
|
|
69
|
+
"schema": {
|
|
70
|
+
"x-props": "{{{clearable: true, disabled: true, tooltip: '请先选择数据源'}}}"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"type": "value:schema",
|
|
75
|
+
"condition": "{{ !!$value.name }}",
|
|
76
|
+
"target": "orderBy",
|
|
77
|
+
"schema": {
|
|
78
|
+
"x-props": "{{{clearable: true,disabled: false}}}"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
"where": {
|
|
84
|
+
"x-index": 20,
|
|
85
|
+
"title": "数据筛选",
|
|
86
|
+
"x-category": "基础属性",
|
|
87
|
+
"type": "array",
|
|
88
|
+
"items": {},
|
|
89
|
+
"x-component": "condition-select",
|
|
90
|
+
"x-component-props": {
|
|
91
|
+
"selectedDataSourceName": null,
|
|
92
|
+
"customLogicOptions": [
|
|
93
|
+
{
|
|
94
|
+
"text": "且",
|
|
95
|
+
"value": "and"
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"blackListConfig": {
|
|
99
|
+
"format": ["related", "father-son", "x-file", "x-image"],
|
|
100
|
+
"type": ["object", "array"]
|
|
101
|
+
},
|
|
102
|
+
"customRelOptions": {
|
|
103
|
+
"number": [
|
|
104
|
+
{
|
|
105
|
+
"value": "equal",
|
|
106
|
+
"text": "等于",
|
|
107
|
+
"type": "equal"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"value": "unequal",
|
|
111
|
+
"text": "不等于",
|
|
112
|
+
"type": "unequal"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"value": "greater",
|
|
116
|
+
"text": "大于",
|
|
117
|
+
"type": "greate"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"value": "greater_or_equal",
|
|
121
|
+
"text": "大于等于",
|
|
122
|
+
"type": "greater_or_equal"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"value": "less",
|
|
126
|
+
"text": "小于",
|
|
127
|
+
"type": "less"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"value": "less_or_equal",
|
|
131
|
+
"text": "小于等于",
|
|
132
|
+
"type": "less_or_equal"
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"x-props": {
|
|
138
|
+
"data-hidebind": true,
|
|
139
|
+
"data-hideBindValue": true,
|
|
140
|
+
"data-withBindMeta": true
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"orderBy": {
|
|
144
|
+
"x-index": 30,
|
|
145
|
+
"title": "排序字段",
|
|
146
|
+
"x-category": "基础属性",
|
|
147
|
+
"type": "string",
|
|
148
|
+
"x-props": {
|
|
149
|
+
"clearable": true
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"orderType": {
|
|
153
|
+
"x-index": 40,
|
|
154
|
+
"title": "排序类型",
|
|
155
|
+
"x-category": "基础属性",
|
|
156
|
+
"type": "string",
|
|
157
|
+
"enum": [
|
|
158
|
+
{ "label": "升序", "value": "asc" },
|
|
159
|
+
{ "label": "降序", "value": "desc" }
|
|
160
|
+
],
|
|
161
|
+
"x-props": {
|
|
162
|
+
"clearable": true
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"pageSize": {
|
|
166
|
+
"x-index": 50,
|
|
167
|
+
"title": "显示条数",
|
|
168
|
+
"type": "number",
|
|
169
|
+
"default": 5,
|
|
170
|
+
"x-category": "基础属性",
|
|
171
|
+
"x-props": {
|
|
172
|
+
"min": 1
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"template": {
|
|
176
|
+
"x-index": 60,
|
|
177
|
+
"title": "模板",
|
|
178
|
+
"type": "string",
|
|
179
|
+
"x-category": "基础属性",
|
|
180
|
+
"default": "simpleList",
|
|
181
|
+
"enum": [
|
|
182
|
+
{ "label": "简单列表", "value": "simpleList" },
|
|
183
|
+
{ "label": "详细列表", "value": "detailList" },
|
|
184
|
+
{ "label": "图文列表", "value": "imageTextList" },
|
|
185
|
+
{ "label": "卡片列表", "value": "cardList" },
|
|
186
|
+
{ "label": "不使用模板", "value": "none" }
|
|
187
|
+
],
|
|
188
|
+
"x-component": "data-sources-template-selector"
|
|
189
|
+
},
|
|
190
|
+
"pagination": {
|
|
191
|
+
"x-index": 70,
|
|
192
|
+
"title": "分页",
|
|
193
|
+
"type": "string",
|
|
194
|
+
"x-category": "基础属性",
|
|
195
|
+
"default": "loadMoreButton",
|
|
196
|
+
"enum": [
|
|
197
|
+
{ "label": "点击加载更多", "value": "loadMoreButton" },
|
|
198
|
+
{ "label": "触底加载更多", "value": "bottomLoad" },
|
|
199
|
+
{ "label": "分页器", "value": "pagination" },
|
|
200
|
+
{ "label": "不分页", "value": "none" }
|
|
201
|
+
]
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
"events": [
|
|
206
|
+
{
|
|
207
|
+
"name": "queryEmpty",
|
|
208
|
+
"title": "查询为空"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"name": "querySuccess",
|
|
212
|
+
"title": "查询成功"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"name": "queryFail",
|
|
216
|
+
"title": "查询失败"
|
|
217
|
+
}
|
|
218
|
+
],
|
|
219
|
+
"compConfig": {
|
|
220
|
+
"isDataContainer": true,
|
|
221
|
+
"componentType": "listview"
|
|
222
|
+
},
|
|
223
|
+
"isContainer": true,
|
|
224
|
+
"meta": {
|
|
225
|
+
"title": "列表视图",
|
|
226
|
+
"category": "数据容器",
|
|
227
|
+
"description": "数据容器组件",
|
|
228
|
+
"componentOrder": 1000,
|
|
229
|
+
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/ListView.svg"
|
|
230
|
+
}
|
|
231
|
+
}
|