@cniot/android-pda-components 0.2.60 → 0.2.63
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/build/assets/{index.e4d8716d.js → index.88f7e5c8.js} +49 -34
- package/build/assets/index.d00fe2ca.css +1 -0
- package/build/index.html +2 -2
- package/doc/index.jsx +104 -97
- package/es/index.cjs.js +3 -3
- package/es/index.es.js +29 -18
- package/es/style.css +1 -1
- package/package.json +1 -1
- package/build/assets/index.086f1b17.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.pda-button{display:block;box-sizing:border-box;padding-right:0;text-align:center;font-size:40px;height:90px;line-height:40px;color:#fff;background-color:#f3f4f8;border-radius:10px;width:100%;border-width:0;word-break:keep-all}.pda-button.pda-button-default{color:#000}.pda-button:active{background-color:#979797}.pda-button.pda-button-primary{background-color:#0091ea}.pda-button.pda-button-primary:active{background-color:#0074bb}.pda-button.pda-button-dark{background-color:#282828}.pda-button.pda-button-dark:active{background-color:#979797}.pda-button.pda-button-cutout{color:#0091ea;border-width:4px;border-color:#0091ea}.button-group{display:flex;flex-direction:row;padding:20px 24px;width:100%}.button-group .pda-button:not(:last-child){margin-right:16px}.pda-header{background-color:#000;display:flex;flex-direction:row;align-items:center;color:#fff;height:84px;padding-right:12px}.pda-header .header-click-area{padding-right:16px;height:100%;display:flex;align-items:center;flex-direction:row}.pda-header .pda-header-icon{height:100%;width:65px;background-size:100%;background-repeat:no-repeat;background-position:center}.pda-header .pda-header-icon-back{background-image:url(https://img.alicdn.com/imgextra/i4/O1CN01O46CYm1Gc4yvZtk7A_!!6000000000642-2-tps-36-64.png);background-size:17px 32px}.pda-header .pda-header-icon-scan{background-image:url(https://img.alicdn.com/imgextra/i4/O1CN017UD9RM1vCKxsjxsrE_!!6000000006136-2-tps-68-68.png);background-size:34px auto}.pda-header .pda-header-icon-select{background-image:url(https://img.alicdn.com/imgextra/i2/O1CN0170QXc91udWriUp19S_!!6000000006060-2-tps-74-72.png);background-size:36px auto}.pda-header .pda-header-icon-read{background-image:url(https://img.alicdn.com/imgextra/i2/O1CN01EMphgH1ylYGXImCZn_!!6000000006619-2-tps-70-70.png);background-size:35px auto}.pda-header .pda-title-text{font-size:40px;flex:1}.pda-header .pda-header-more{background-image:url(https://img.alicdn.com/imgextra/i4/O1CN01dTdXds1p9gz4wKAve_!!6000000005318-2-tps-70-26.png);background-size:36px auto}.pda-header .pda-header-config{background-image:url(https://img.alicdn.com/imgextra/i3/O1CN01SKQH1k1p7rQYTBXdn_!!6000000005314-2-tps-56-60.png);background-size:36px auto}.pda-header .pda-menus{background-color:#fff;border-radius:8px 8px 0 0;width:100%;padding:24px;display:flex;flex-direction:column}.pda-header .pda-menus>*{margin-bottom:12px}.pda-info-card{border-radius:16px;padding:16px;background-color:#fff;word-break:break-word}.pda-info-card .divda-info-card-title{font-size:32px;line-height:32px}.pda-info-card .pda-info-card-title-section{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.pda-info-card .pda-info-card-title-section .pda-info-card-title{font-size:32px;color:#666}.pda-info-card .pda-info-card-title-section .pda-info-card-tag{display:flex;align-items:center;justify-content:center;height:36px;padding:0 8px;background-color:#fc0;border-radius:8px}.pda-info-card .pda-info-card-highlight-section{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start}.pda-info-card .pda-info-card-highlight-section .pda-info-card-title{font-size:32px;color:#666;margin-top:20px}.pda-info-card .pda-info-card-highlight-section .pda-info-card-highlight{font-size:80px;line-height:64px;color:#0091ea;font-weight:700;padding-top:12px;display:flex;flex-direction:row;align-items:flex-end;flex-wrap:wrap}.pda-info-card .pda-info-card-highlight-section .pda-info-card-highlight .pda-info-card-highlight1CN{font-size:64px}.pda-info-card .pda-info-card-highlight-section .pda-info-card-highlight .pda-info-card-highlight2{font-size:50px;line-height:40px}.pda-info-card .pda-info-card-highlight-section .pda-info-card-highlight .pda-info-card-highlight2CN{font-size:40px;line-height:40px}.pda-info-card .pda-info-card-bold{font-weight:700;font-size:40px;line-height:48px;color:#000;margin-top:16px}.pda-info-card .pda-info-card-list{margin-top:12px;color:#4a4a4a;font-size:32px;line-height:32px;word-break:break-all}.pda-info-card-progress{background-color:#f3f4f8;height:12px;border-radius:6px;margin-top:16px}.pda-info-card-progress .pda-info-card-progress-inside{background-color:#0091ea;height:12px;border-radius:6px}.pda-info-card.pda-info-card-dark{background-color:#000}.pda-info-card.pda-info-card-dark .pda-info-card-title{color:#999}.pda-info-card.pda-info-card-dark .pda-info-card-highlight,.pda-info-card.pda-info-card-dark .pda-info-card-bold{color:#fff}.pda-info-card.pda-info-card-dark .pda-info-card-list{color:#999}.pda-step-card{display:flex;flex-direction:row}.pda-step-card .pda-step-indictor{display:flex;flex-direction:column;align-items:center;margin-right:16px}.pda-step-card .pda-step-indictor .pda-step-indictor-top{width:1px;background-color:#bec0c6;flex:1}.pda-step-card .pda-step-indictor .pda-step-indictor-top-hidden{background-color:#fff0}.pda-step-card .pda-step-indictor .pda-step-indictor-center{height:24px;width:24px;border-radius:12px;background-color:#bec0c6}.pda-step-card .pda-step-indictor .pda-step-indictor-center-active{background-color:#0091ea}.pda-step-card .pda-step-indictor .pda-step-indictor-bottom{flex:1;width:1px;background-color:#bec0c6}.pda-step-card .pda-step-indictor .pda-step-indictor-bottom-hidden{background-color:#fff0}.pda-step{border-radius:16px;padding:24px 16px;background-color:#fff;margin-bottom:16px}.pda-step p{margin:0}.pda-step .pda-step-title{font-size:60px;color:#0091ea}.pda-step .pda-step-list{margin-top:8px;color:#4a4a4a;font-size:32px;line-height:32px}.pda-step.pda-step-dark{background-color:#000}.pda-step.pda-step-dark .pda-step-title{color:#fff}.pda-step.pda-step-dark .pda-step-list{color:#bec0c6}.pda-list-item{padding:24px 16px;border-radius:16px;position:relative}.pda-list-item div{margin:0}.pda-list-item>div{margin-bottom:12px}.pda-list-item>div:last-child{margin-bottom:0}.pda-list-item .pda-listitem-highlight{width:100%;font-size:40px;line-height:40px;font-weight:700;color:#fff;display:flex;flex-direction:row;justify-content:space-between}.pda-list-item .pda-listitem-highlight div:first-child{flex:1;word-break:normal;white-space:normal;word-break:break-word}.pda-list-item .pda-listitem-header,.pda-list-item .pda-listitem-state-text,.pda-list-item .pda-listitem-subinfo{font-size:32px;line-height:32px;color:#999;word-break:break-all}.pda-list-item .pda-listitem-state-block{display:flex;flex-direction:row;flex-wrap:wrap;margin-bottom:0}.pda-list-item .pda-listitem-state-block>div{padding:6px 10px;border-radius:4px;background-color:#0091ea;margin-bottom:12px;margin-right:12px;font-size:24px;line-height:24px}.pda-list-item .pda-listitem-state-block>div.success{background-color:#0f0}.pda-list-item .pda-listitem-state-block>div.warning{background-color:#fc0}.pda-list-item .pda-listitem-state-block>div.error{background-color:red}.pda-list-item .pda-listitem-icon{position:absolute;top:0;right:0;width:60px;height:60px;background-color:#0091ea;border-radius:0 16px;display:flex;justify-content:center;align-items:center;opacity:.85}.pda-list-item .listitem-icon-container{background-size:100%;background-repeat:no-repeat;width:16px;height:24px}.pda-list-item .listitem-icon-next{background-image:url(https://img.alicdn.com/imgextra/i4/O1CN01FkZisA1tCg1sj3b6U_!!6000000005866-2-tps-40-58.png)}.confirm-wrap{background:#ffffff;border-radius:6px 6px 0 0;padding-top:24px;width:100%}.confirm-wrap .confirm-content{padding:0 24px}.confirm-wrap .confirm-title{font-size:2.4rem;font-weight:700}.confirm-wrap .confirm-message,.confirm-wrap .confirm-sub-message{font-size:2.2rem;margin-bottom:1rem}.confirm-wrap .confirm-sub-block{display:flex;flex-direction:row}.confirm-wrap .confirm-sub-block .confirm-sub-label{white-space:nowrap}.confirm-wrap .confirm-sub-block .confirm-sub-content{margin-left:12px;word-wrap:break-word;word-break:break-all}.confirm-wrap .confirm-btns>*:not(:first-child){padding-top:0}.confirm-wrap.confirm-warning{background-color:red}.confirm-wrap.confirm-warning .pda-button{background-color:transparent;color:#000;border:2px solid black;border-radius:40px}.toast-wrap{background:#00FF00;border-radius:6px;padding:10px 15px;width:100%;box-sizing:border-box}.toast-wrap.warning{background-color:#ffcb00}.toast-wrap.error{background-color:red}.toast-wrap .toast-title{font-size:50px;font-weight:700}.toast-wrap .toast-message{font-size:32px}.loading-box{background-color:#fff;border-radius:5%;display:flex;flex-direction:column;align-items:center;padding:10px 20px;margin-top:-10%}.loading-box svg{width:50px;height:50px;animation:rotate 1.5s linear infinite;margin:10px}.pda-tag{display:inline-block;padding:6px 10px;border-radius:4px;background-color:#0091ea;margin-bottom:12px;margin-right:12px;font-size:24px;line-height:24px;word-break:keep-all}.pda-tag.pda-tag-success{background-color:#0f0}.pda-tag.pda-tag-warning{background-color:#fc0}.pda-tag.pda-tag-error{background-color:red}.simple-card{display:inline-block;padding:12px 0 12px 18px;border-radius:12px}.simple-card .simple-card-title{font-weight:700;font-size:56px;line-height:40px;margin-top:12px}.simple-card .simple-card-content{font-size:28px;line-height:40px;margin-top:12px}.simple-card.simple-card-default{background-color:#f3f4f9}.simple-card.simple-card-default .simple-card-title{color:#0091ea}.simple-card.simple-card-default .simple-card-content{color:#000}.simple-card.simple-card-error{background-color:red}.simple-card.simple-card-error .simple-card-title{color:#fff}.simple-card.simple-card-error .simple-card-content{color:#ffafb1}.simple-card.simple-card-dark{background-color:#282828}.simple-card.simple-card-dark .simple-card-title{color:#fff}.simple-card.simple-card-dark .simple-card-content{color:#999}.simple-card-block{background-color:#fff;padding:24px 12px;border-radius:12px}.simple-card-block .simple-card-block-header{display:flex;justify-content:space-between}.simple-card-block .simple-card-block-title{color:#666;font-size:32px;line-height:32px}.simple-card-block .simple-card-block-content{display:flex;flex-wrap:wrap}.simple-card-block .simple-card-block-content>div{min-width:190px;margin-right:12px;margin-top:12px}.select-card{padding-top:12px}.select-card p{color:#999;font-size:32px;line-height:40px;margin-bottom:12px;padding-left:16px}.select-card .select-card-content{background-color:#282828;padding:24px 24px 24px 16px;border-radius:16px;display:flex;flex-direction:row;justify-content:space-between;color:#fff;font-size:40px;line-height:40px}.select-card .select-icon{background-image:url(https://img.alicdn.com/imgextra/i1/O1CN01WnYl6Z1qBM3uInOvw_!!6000000005457-2-tps-40-68.png);background-size:100%;background-repeat:no-repeat;background-position:center;width:20px}.v-mask{position:fixed;top:0;left:0;z-index:1000;display:block;width:100%;height:100%;background:rgba(0,0,0,.75);opacity:1;display:unset}.v-mask .image-viewer-content{width:100vw;height:100vh;max-height:-webkit-fill-available;touch-action:none}.v-mask .image-viewer-slides{height:100%;position:relative;z-index:1;cursor:grab;touch-action:none}.v-mask .image-viewer-indicator{position:absolute;z-index:2;left:50%;top:12px;transform:translate(-50%);color:#e6e6e6;font-size:14px}.v-mask .viewer-image-close{position:absolute;right:6px}.v-mask .viewer-image-close svg{fill:#fff;background:rgba(0,0,0,.3);box-sizing:content-box;height:24px;padding:12px;width:24px}.v-mask .image-viewer-slides-inner{height:100%;white-space:nowrap}.v-mask .image-viewer-image-wrapper{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.v-mask .image-viewer-image-wrapper img{display:block;max-width:100%;max-height:100%}.v-mask .viewer-image-arrow{position:absolute;top:calc(50% - 10px);z-index:999}.v-mask .viewer-image-arrow svg{fill:#fff;background:rgba(0,0,0,.3);box-sizing:content-box;height:24px;padding:18px;width:24px}.v-mask .viewer-prev{left:0}.v-mask .viewer-next{right:0}.v-mask .image-viewer-loading{display:flex;justify-content:center;align-items:center;position:fixed;left:0;top:0;width:100%;height:100%;background-color:#0000009d;z-index:998}.v-mask .image-viewer-loading .image-viewer-loading-reactor{animation:PhotoView__delayShow .4s linear both}.v-mask .image-viewer-loading .image-viewer-loading-reactor svg{animation:PhotoView__rotate .6s linear infinite}.image-uploader-wrap{display:inline-flex;flex-wrap:wrap;margin-bottom:8px}.image-space-item{margin-right:8px;padding-bottom:8px}.image-space-item .image-uploader-cell{position:relative;width:80px;height:80px;border-radius:4px;overflow:hidden}.image-space-item .image-uploader-cell-image{width:80px;height:80px}.image-space-item .image-uploader-cell-delete{position:absolute;top:0;right:0;width:14px;height:14px;background-color:#000000b3;border-radius:0 0 0 12px;font-size:8px;color:#fff;cursor:pointer}.image-space-item .image-uploader-cell-delete .uploader-delete-icon{position:absolute;right:2px;top:2px;display:inline-block;object-fit:cover;width:8px;height:8px}.image-space-item .image-uploader-img{object-fit:cover;display:block;width:100%;height:100%}.image-space-item .image-uploader-upload-button-wrap{position:relative}.image-space-item .image-uploader-upload-button-wrap .image-uploader-upload-button{display:flex;justify-content:center;align-items:center;background-color:#a2a2a2;cursor:pointer}.image-space-item .image-uploader-upload-button-wrap .uploader-add-icon{display:inline-block;object-fit:cover;width:32px;height:32px}.image-uploader-loading{display:flex;justify-content:center;align-items:center;position:fixed;left:0;top:0;width:100%;height:100%;background-color:#0000009d}.image-uploader-loading .image-uploader-loading-reactor{animation:PhotoView__delayShow .4s linear both}.image-uploader-loading .image-uploader-loading-reactor svg{animation:PhotoView__rotate .6s linear infinite}@keyframes PhotoView__rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes PhotoView__delayShow{0%,50%{opacity:0}to{opacity:1}}.presentation-card{margin:12px;background-color:#fff;border-radius:6px;text-align:center;padding:20px 6px}.presentation-card img{width:70%;height:auto}.presentation-card.transparent{background-color:transparent;color:#fff;margin-top:80px}.presentation-card .text{margin-top:12px;font-weight:700;font-size:32px}.presentation-card .sub-text{margin-top:6px;font-weight:700;font-size:24px;line-height:24px;color:#999}.android-pda-list .default-item{background-color:#282828;font-size:36px;padding:10px;border-radius:6px;color:#fff;display:flex;justify-content:space-between;align-items:center;cursor:pointer;margin-bottom:10px}.android-pda-list .default-item:hover,.android-pda-list .default-item:active,.android-pda-list .default-item:focus{background-color:#0061a1}.android-pda-list .default-item .text{flex:1}.android-pda-list .default-item .sub-text{font-size:80%;opacity:.7;line-height:1em}.android-pda-list .default-item .sub-tags{display:flex;margin-top:10px}.android-pda-list .default-item .sub-tags .sub-tag-item{background-color:#008fed;padding:.3em;font-size:40%;margin-right:5px;border-radius:6px;color:#fff;line-height:1em}.android-pda-list .default-item .sub-tags .sub-tag-item:first-child{margin-left:0}.android-pda-list .default-item .extra{font-size:80%;opacity:.7}.wakekeyborard .wakekeyborard-icon{width:80px;height:80px;background-image:url(https://img.alicdn.com/imgextra/i3/O1CN01kxYh3U25Xzr9nAcYp_!!6000000007537-2-tps-240-240.png);background-size:100%;position:fixed;right:24px;bottom:24px}.wakekeyborard-overlay{position:fixed;top:0;right:0;left:0;bottom:0;background-color:#dedede33}.wakekeyborard-inputbox{width:100%;display:flex;flex-direction:row;height:85px;position:absolute;bottom:0;left:0;right:0}.wakekeyborard-inputbox input{width:100%;border-radius:16px 0 0;border:0;font-size:42px;background-color:#fff;padding-left:20px}.wakekeyborard-inputbox input:focus{outline:none}.wakekeyborard-inputbox input::-webkit-input-placeholder{color:#d1d1d6;font-size:32px}.wakekeyborard-inputbox button{width:150px;border:0;border-radius:0 16px 0 0;background-color:#fff}.android-sub-card{background:#282828;border-radius:16px;padding:10px;color:#fff}.android-sub-card .android-sub-card-title-section{display:flex;justify-content:space-between}.android-sub-card .android-sub-card-title-section .android-sub-card-title{opacity:.6;font-size:21.312px}.android-sub-card .android-sub-card-title-section .android-sub-card-tag{margin-bottom:0}.android-sub-card .android-sub-card-title-section .android-sub-card-tag>div{padding:6px 10px;border-radius:4px;background-color:#0091ea;color:#fff;font-size:15.984px;line-height:15.984px}.android-sub-card .android-sub-card-title-section .android-sub-card-tag>div.success{background-color:#0f0}.android-sub-card .android-sub-card-title-section .android-sub-card-tag>div.warning{background-color:#fc0;color:#000}.android-sub-card .android-sub-card-title-section .android-sub-card-tag>div.error{background-color:red}.android-sub-card .android-sub-card-context{font-size:60px;line-height:60px;font-weight:700;word-break:break-all;word-wrap:break-word;margin-top:16px}.android-sub-card .android-sub-card-name{font-size:40px;line-height:40px;font-weight:700;margin-top:16px;margin-bottom:12px}.android-sub-card .android-sub-card-attrs{font-size:32px;line-height:32px;color:#999}.android-sub-card .android-sub-card-attrs>div{margin-top:12px}.pda-finish-card-top{display:flex;flex-direction:column;align-items:center;color:#fff}.pda-finish-card-top .pda-finish-card-img{width:100%;margin:50px auto 0}.pda-finish-card-top .pda-finish-card-title{font-size:50px;line-height:50px;color:#fff;font-weight:500;margin-bottom:16px;text-align:center}.pda-finish-card-top .pda-finish-card-list{margin-top:12px;color:#999;font-size:32px;line-height:30px;text-align:center}.baselayout-wrapper{height:100%;min-height:100%;display:flex;flex-direction:column;position:absolute;top:0;left:0;right:0;bottom:0;background-color:#000}.baselayout-wrapper .baselayout-container{padding:0 24px 16px;overflow-x:auto;flex:1}.baselayout-wrapper .baselayout-container>*{margin-top:16px}.baselayout-wrapper .baselayout-footer{padding:16px 0}.baselayout-wrapper .loading{position:absolute;top:0;left:0;right:0;bottom:0;color:#fff;background-color:#0006;background-image:url(https://img.alicdn.com/imgextra/i2/O1CN01PRSptR1YO1wOlBHCr_!!6000000003048-1-tps-240-240.gif);background-repeat:no-repeat;background-position:center;background-size:120px 120px}.pda-distance-card{border-radius:16px;padding:36px 16px;background-color:#fff}.pda-distance-card p{margin:0;font-size:28px;color:#738399}.pda-distance-card .pda-distance-card-highlight{font-size:60px;line-height:64px;color:#0091ea}.pda-distance-card .pda-distance-indictor{margin-top:36px;display:flex}.pda-distance-card .pda-distance-card-progress{background-color:#ebecf2;height:34px;border-radius:6px;border:4px solid #D9D9D9;margin-top:8px;position:relative}.pda-distance-card .pda-distance-card-progress .pda-distance-card-progress-indictor{position:absolute;bottom:0;left:5px}.pda-distance-card .pda-distance-card-progress .pda-distance-card-progress-inside{background-color:#0091ea;height:26px;border-radius:6px 0 0 6px}.pda-distance-card .pda-distance-label{display:flex;justify-content:space-between}.pda-infinite-scroll{margin-top:10px}.pda-infinite-scroll span{color:#999}.pda-infinite-scroll .pda-infinite-scroll-view{display:flex;align-items:center;justify-content:center}*{margin:0;padding:0}div{box-sizing:border-box}.op-overlay{top:0;left:0;position:fixed;right:0;bottom:0;display:flex;justify-content:center;align-items:center;background-color:#0006;z-index:100}.op-overlay.center{align-items:center;justify-content:center}.op-overlay.top{align-items:flex-start;justify-content:center}.op-overlay.bottom{align-items:flex-end;justify-content:center}.prompt-dialog{background:#ffffff;border-radius:6px 6px 0 0;padding:10px;width:80%}.prompt-dialog .prompt-title{font-size:30px;margin:10px 0}.prompt-dialog .prompt-input{transition:all .1s linear;border:1px solid #dcdfe6;background-color:#fff;outline:0;margin:0;font-weight:400;vertical-align:middle;background-color:#0000;color:#1f2633;font-size:24px;box-sizing:border-box;width:100%;padding:.5em;border-radius:4px}.prompt-dialog .prompt-input:hover,.prompt-dialog .prompt-input:active,.prompt-dialog .prompt-input:focus{border-color:#03c1fd}.prompt-dialog .prompt-btns{display:flex;margin-top:10px}.prompt-dialog .prompt-btns .pda-button{margin-left:10px}.prompt-dialog .prompt-btns .pda-button:first-child{margin-left:0}.mini-app-start-page{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100vw;height:100vh}.mini-app-start-page button{padding:.3em 3em;border-radius:6px;border:none;font-size:36px;background-color:#00bdff;color:#fff;margin-top:20px}.mini-app-start-page button:active{transform:scale(.95)}.mini-app-start-page .desc{opacity:.3}.loading-wrap{position:fixed;z-index:1000;left:0;top:0;background-color:#00000080;height:100vh;width:100vw;display:flex;align-items:center;justify-content:center}.loading-wrap .loading-box{background-color:#fff;border-radius:5%;display:flex;flex-direction:column;align-items:center;padding:10px 20px;margin-top:-10%}.loading-wrap .loading-box svg{width:50px;height:50px;animation:rotate 1.5s linear infinite;margin:10px}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.pda-app-list .pda-app-group{margin:25px}.pda-app-list .pda-app-group .group-name{line-height:1em;margin:0;font-size:32px;color:#fff;font-weight:400;opacity:.6}.pda-app-list .pda-app-group .group-apps{display:flex;flex-wrap:wrap;justify-content:space-between;margin-top:25px}.pda-app-list .pda-app-group .group-apps .app-item{display:flex;flex-direction:column;justify-content:center;align-items:center;background-image:linear-gradient(138deg,#0091EA 0%,#095FFF 100%);border-radius:12px;font-size:32px;color:#fff;min-height:126px;flex:1;min-width:48%;max-width:48%;margin-bottom:25px;cursor:pointer}.pda-app-list .pda-app-group .group-apps .app-item:hover,.pda-app-list .pda-app-group .group-apps .app-item:active,.pda-app-list .pda-app-group .group-apps .app-item:focus{background-image:linear-gradient(45deg,#0091EA 0%,#095FFF 100%);box-shadow:0 0 1px 2px #fff}.pda-app-list .pda-app-group .group-apps .app-item .app-name{text-align:center}.pda-app-list .pda-app-group .group-apps .app-item .app-subname{font-size:50%}.action-sheet{position:fixed;z-index:1000;width:100%;height:100%;background-color:#00000059;top:0;left:0;display:none}.action-sheet .action-sheet-container{position:absolute;background-color:#fff;z-index:1010;width:100%;bottom:0;left:0;max-height:80%;border-radius:9.9px 9.9px 0 0;padding-bottom:10.56px;display:flex;flex-direction:column}.action-sheet .action-sheet-container .action-sheet-body{flex:1;overflow-y:auto}.action-sheet .action-sheet-container .action-sheet-sticky-bottom{border-top:2px solid #F2F2F2}.action-sheet .action-sheet-container .action-sheet-item{margin:10.56px 15.84px 0;background-color:#f3f4f8;height:54px;display:flex;align-items:center;justify-content:center;font-size:24px;border-radius:9.9px}.action-sheet .action-sheet-container .action-sheet-sticky-bottom-row{display:flex}.action-sheet.show{display:block}.action-sheet.show .action-sheet-container{animation:slide-in .3s ease-out}@keyframes slide-in{0%{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}.lattice-mouth .lattice-mouth-row{display:flex}.lattice-mouth .lattice-mouth-row .lattice-mouth-item{--font-size: 14px;--color: #ffffff;--background-color: #BFBFBF;color:var(--color);background-color:var(--background-color);font-size:var(--font-size);flex:1;flex-direction:column;display:flex;margin:1%;border-radius:4px;overflow:hidden}.lattice-mouth .lattice-mouth-row .lattice-mouth-item.highlight{--color: #ffffff;--background-color: #008FED}.lattice-mouth .lattice-mouth-row .lattice-mouth-item.active{--color: #ffffff;--background-color: #282828}.lattice-mouth .lattice-mouth-row .lattice-mouth-item.default{--color: #ffffff;--background-color: #BFBFBF}.lattice-mouth .lattice-mouth-row .lattice-mouth-item.complete{--color: #000000;--background-color: #00FF00}.lattice-mouth .lattice-mouth-row .lattice-mouth-item.error{--color: #ffffff;--background-color: #f30f30}.lattice-mouth .lattice-mouth-row .lattice-mouth-item .lattice-mouth-value{text-align:center;flex:1;font-size:150%;min-height:2em;display:flex;justify-content:center;align-items:center}.lattice-mouth .lattice-mouth-row .lattice-mouth-item .lattice-mouth-label{background-color:#0000004d;text-align:center;min-height:1em}.android-op-card{--base-font-size: 20px;--background-color: #FFFFFF;--color: #000000;--main-color: #008FED;--border-radius: 6px;--progress-background-color: rgba(160, 160, 160, .5);--progress-foreground-color: #008FED;--tag-background-color: #008FED;--tag-color: #ffffff;background-color:var(--background-color);font-size:var(--base-font-size);color:var(--color);border-radius:var(--border-radius);padding:2%;position:relative}.android-op-card .card-h1{color:var(--color);opacity:.7;font-weight:700}.android-op-card .card-content{font-size:calc(var(--base-font-size) * 2.5);color:var(--main-color);font-weight:700;display:flex;align-items:baseline;line-height:1.1em}.android-op-card .card-content small{font-size:50%}.android-op-card .card-progress{background-color:var(--progress-background-color);border-radius:1em;overflow:hidden;height:1em;font-size:calc(var(--base-font-size) * .6);margin-bottom:1em}.android-op-card .card-progress .card-progress-bar{background-color:var(--progress-foreground-color);height:1em;opacity:1.5}.android-op-card .card-main-title{font-size:calc(var(--base-font-size) * 1.6);line-height:1.5em;margin-bottom:.2em}.android-op-card .card-info-list{color:var(--color);opacity:.6}.android-op-card .card-tags{display:flex;margin-top:.5em}.android-op-card .card-tags.top{position:absolute;top:4%;right:1%}.android-op-card .card-tags .card-tags-item{font-size:calc(var(--base-font-size) * .8);color:var(--tag-color);border-radius:.3em;background-color:var(--tag-background-color);padding:.2em .3em;margin-right:.5em}.components-container{display:flex}.components-example{flex-direction:column;border-right:1px solid #d8d8d8;min-height:100vh;padding-right:10px}.components-example h1{margin-top:20px}.components-example h2{color:#00000073;font-size:14px;margin-top:20px;border-bottom:1px solid #d8d8d8;padding-bottom:5px}.components-example .components-item{color:#000000d9;font-size:16px;padding:10px 0;margin-left:20px;align-items:center;cursor:pointer}.components-example .components-item:hover,.components-example .components-item.active{color:#4f10fd73}.components-example .components-item>small{margin-left:1em}.show-case{display:flex;flex-direction:column;padding:50px;flex:1}.show-case h2{margin:20px 0}.show-case .code{white-space:pre;border:1px solid #e8e8e8;border-radius:4px;background-color:#f9f9f9;padding:5px 10px;display:block;margin:20px 0}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}.pure-table{border-collapse:collapse;border-spacing:0;empty-cells:show;border:1px solid #cbcbcb}.pure-table caption{color:#000;font:italic 85%/1 arial,sans-serif;padding:1em 0;text-align:center}.pure-table td,.pure-table th{border-left:1px solid #cbcbcb;border-width:0 0 0 1px;font-size:inherit;margin:0;overflow:visible;padding:.5em 1em}.pure-table thead{background-color:#e0e0e0;color:#000;text-align:left;vertical-align:bottom}.pure-table td{background-color:transparent}.pure-table-bordered td{border-bottom:1px solid #cbcbcb}.pure-table-bordered tbody>tr:last-child>td{border-bottom-width:0}.demo-box{display:block;margin:5px 0;padding:15px;border:1px solid #e9e9e9;border-radius:6px;flex-direction:column}.demo-box:not(:last-child){margin-bottom:20px}.version{font-size:12px;margin-left:10px}.dark-block{background-color:#000;padding:24px}.light-block{background-color:#ddd;padding:24px}.light-block.pda{width:50%}.light-block-overlay{position:relative;height:300px}.light-block-overlay .op-overlay{position:absolute;width:100%;height:100%}
|
package/build/index.html
CHANGED
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
|
|
10
10
|
<script src="https://g.alicdn.com/code/lib/react/17.0.2/umd/react.production.min.js"></script>
|
|
11
11
|
<script src="https://g.alicdn.com/code/lib/react-dom/17.0.2/umd/react-dom.production.min.js"></script>
|
|
12
|
-
<script type="module" crossorigin src="./assets/index.
|
|
12
|
+
<script type="module" crossorigin src="./assets/index.88f7e5c8.js"></script>
|
|
13
13
|
<link rel="modulepreload" href="./assets/vendor.5080796b.js">
|
|
14
|
-
<link rel="stylesheet" href="./assets/index.
|
|
14
|
+
<link rel="stylesheet" href="./assets/index.d00fe2ca.css">
|
|
15
15
|
</head>
|
|
16
16
|
|
|
17
17
|
<body>
|
package/doc/index.jsx
CHANGED
|
@@ -3,6 +3,7 @@ import ReactDOM from "react-dom";
|
|
|
3
3
|
|
|
4
4
|
import First from "../packages/doc.jsx";
|
|
5
5
|
import Header from "../packages/Header/doc.jsx";
|
|
6
|
+
import PdaTitle from "../packages/PdaTitle/doc.jsx";
|
|
6
7
|
import Button from "../packages/Button/doc.jsx";
|
|
7
8
|
import InfoCard from "../packages/InfoCard/doc.jsx";
|
|
8
9
|
import Steps from "../packages/PdaSteps/doc.jsx";
|
|
@@ -10,12 +11,12 @@ import ListItem from "../packages/TaskCard/doc.jsx";
|
|
|
10
11
|
import Confirm from "../packages/Confirm/doc.jsx";
|
|
11
12
|
import Toast from "../packages/Toast/doc.jsx";
|
|
12
13
|
import Overlay from "../packages/Overlay/doc.jsx";
|
|
13
|
-
import Tag from
|
|
14
|
-
import SimpleCard from
|
|
15
|
-
import SimpleCardBlock from
|
|
16
|
-
import SelectCard from
|
|
17
|
-
import ImageUploader from
|
|
18
|
-
import ImageViewer from
|
|
14
|
+
import Tag from "../packages/Tag/doc.jsx";
|
|
15
|
+
import SimpleCard from "../packages/SimpleCard/doc.jsx";
|
|
16
|
+
import SimpleCardBlock from "../packages/SimpleCardBlock/doc.jsx";
|
|
17
|
+
import SelectCard from "../packages/SelectCard/doc.jsx";
|
|
18
|
+
import ImageUploader from "../packages/ImageUploader/doc.jsx";
|
|
19
|
+
import ImageViewer from "../packages/ImageViewer/doc.jsx";
|
|
19
20
|
|
|
20
21
|
import Presentation from "../packages/Presentation/doc.jsx";
|
|
21
22
|
import List from "../packages/List/doc.jsx";
|
|
@@ -24,18 +25,17 @@ import SubCard from "../packages/SubCard/doc.jsx";
|
|
|
24
25
|
import FinishCard from "../packages/PdaFinishCard/doc.jsx";
|
|
25
26
|
import DistanceCard from "../packages/PdaDistanceCard/doc.jsx";
|
|
26
27
|
import InfiniteScroll from "../packages/PdaInfiniteScroll/doc.jsx";
|
|
27
|
-
import ActionSheet from
|
|
28
|
-
import AppList from
|
|
29
|
-
import LatticeMouth from
|
|
30
|
-
import Card from
|
|
31
|
-
import pack from
|
|
32
|
-
import systemAlert from
|
|
33
|
-
import systemConfirm from
|
|
34
|
-
import systemToast from
|
|
35
|
-
import systemprompt from
|
|
36
|
-
import systemloading from
|
|
37
|
-
import BaseLayout from
|
|
38
|
-
|
|
28
|
+
import ActionSheet from "../packages/PdaActionSheet/doc.jsx";
|
|
29
|
+
import AppList from "../packages/AppList/doc.jsx";
|
|
30
|
+
import LatticeMouth from "../packages/LatticeMouth/doc.jsx";
|
|
31
|
+
import Card from "../packages/Card/doc.jsx";
|
|
32
|
+
import pack from "../package.json";
|
|
33
|
+
import systemAlert from "../packages/pageflow-system-pages/alert/doc";
|
|
34
|
+
import systemConfirm from "../packages/pageflow-system-pages/confirm/doc";
|
|
35
|
+
import systemToast from "../packages/pageflow-system-pages/toast/doc";
|
|
36
|
+
import systemprompt from "../packages/pageflow-system-pages/prompt/doc";
|
|
37
|
+
import systemloading from "../packages/pageflow-system-pages/loading/doc";
|
|
38
|
+
import BaseLayout from "../packages/BaseLayout/doc.jsx";
|
|
39
39
|
|
|
40
40
|
// 系统界面
|
|
41
41
|
// import PageFlowSystemPages from "../packages/pageflow-system-pages";
|
|
@@ -51,16 +51,17 @@ const docs = [
|
|
|
51
51
|
title: "快速开始",
|
|
52
52
|
doc: First,
|
|
53
53
|
},
|
|
54
|
-
// {
|
|
55
|
-
// key: "Title",
|
|
56
|
-
// title: "Title",
|
|
57
|
-
// doc: Title,
|
|
58
|
-
// },
|
|
59
54
|
{
|
|
60
55
|
key: "Header",
|
|
61
56
|
title: "Header",
|
|
62
57
|
doc: Header,
|
|
63
58
|
},
|
|
59
|
+
|
|
60
|
+
{
|
|
61
|
+
key: "Title",
|
|
62
|
+
title: "Title",
|
|
63
|
+
doc: PdaTitle,
|
|
64
|
+
},
|
|
64
65
|
{
|
|
65
66
|
key: "Button",
|
|
66
67
|
title: "Button",
|
|
@@ -79,12 +80,12 @@ const docs = [
|
|
|
79
80
|
{
|
|
80
81
|
key: "ImageUploader",
|
|
81
82
|
title: "ImageUploader",
|
|
82
|
-
doc: ImageUploader
|
|
83
|
+
doc: ImageUploader,
|
|
83
84
|
},
|
|
84
85
|
{
|
|
85
86
|
key: "ImageViewer",
|
|
86
87
|
title: "ImageViewer",
|
|
87
|
-
doc: ImageViewer
|
|
88
|
+
doc: ImageViewer,
|
|
88
89
|
},
|
|
89
90
|
{
|
|
90
91
|
key: "ListItem",
|
|
@@ -92,98 +93,98 @@ const docs = [
|
|
|
92
93
|
doc: ListItem,
|
|
93
94
|
},
|
|
94
95
|
{
|
|
95
|
-
key:"Confirm",
|
|
96
|
+
key: "Confirm",
|
|
96
97
|
title: "Confirm",
|
|
97
|
-
doc: Confirm
|
|
98
|
+
doc: Confirm,
|
|
98
99
|
},
|
|
99
100
|
{
|
|
100
|
-
key:"Toast",
|
|
101
|
-
title:"Toast",
|
|
102
|
-
doc: Toast
|
|
101
|
+
key: "Toast",
|
|
102
|
+
title: "Toast",
|
|
103
|
+
doc: Toast,
|
|
103
104
|
},
|
|
104
105
|
{
|
|
105
|
-
key:"Overlay",
|
|
106
|
-
title:"Overlay",
|
|
107
|
-
doc: Overlay
|
|
106
|
+
key: "Overlay",
|
|
107
|
+
title: "Overlay",
|
|
108
|
+
doc: Overlay,
|
|
108
109
|
},
|
|
109
110
|
{
|
|
110
|
-
key:"Tag",
|
|
111
|
-
title:"Tag",
|
|
112
|
-
doc: Tag
|
|
111
|
+
key: "Tag",
|
|
112
|
+
title: "Tag",
|
|
113
|
+
doc: Tag,
|
|
113
114
|
},
|
|
114
115
|
{
|
|
115
|
-
key:"SimpleCard",
|
|
116
|
-
title:"SimpleCard",
|
|
117
|
-
doc: SimpleCard
|
|
116
|
+
key: "SimpleCard",
|
|
117
|
+
title: "SimpleCard",
|
|
118
|
+
doc: SimpleCard,
|
|
118
119
|
},
|
|
119
120
|
{
|
|
120
|
-
key:"SimpleCardBlock",
|
|
121
|
-
title:"SimpleCardBlock",
|
|
122
|
-
doc: SimpleCardBlock
|
|
121
|
+
key: "SimpleCardBlock",
|
|
122
|
+
title: "SimpleCardBlock",
|
|
123
|
+
doc: SimpleCardBlock,
|
|
123
124
|
},
|
|
124
125
|
{
|
|
125
|
-
key:"SelectCard",
|
|
126
|
-
title:"SelectCard",
|
|
127
|
-
doc: SelectCard
|
|
126
|
+
key: "SelectCard",
|
|
127
|
+
title: "SelectCard",
|
|
128
|
+
doc: SelectCard,
|
|
128
129
|
},
|
|
129
130
|
|
|
130
131
|
{
|
|
131
|
-
key:"Presentation",
|
|
132
|
-
title:"Presentation",
|
|
133
|
-
doc: Presentation
|
|
132
|
+
key: "Presentation",
|
|
133
|
+
title: "Presentation",
|
|
134
|
+
doc: Presentation,
|
|
134
135
|
},
|
|
135
136
|
|
|
136
137
|
{
|
|
137
|
-
key:"List",
|
|
138
|
-
title:"List",
|
|
139
|
-
doc: List
|
|
138
|
+
key: "List",
|
|
139
|
+
title: "List",
|
|
140
|
+
doc: List,
|
|
140
141
|
},
|
|
141
142
|
|
|
142
143
|
{
|
|
143
|
-
key:"WakeKeyborard",
|
|
144
|
-
title:"WakeKeyborard",
|
|
145
|
-
doc: WakeKeyborard
|
|
144
|
+
key: "WakeKeyborard",
|
|
145
|
+
title: "WakeKeyborard",
|
|
146
|
+
doc: WakeKeyborard,
|
|
146
147
|
},
|
|
147
148
|
{
|
|
148
|
-
key:"SubCard",
|
|
149
|
-
title:"SubCard",
|
|
150
|
-
doc: SubCard
|
|
149
|
+
key: "SubCard",
|
|
150
|
+
title: "SubCard",
|
|
151
|
+
doc: SubCard,
|
|
151
152
|
},
|
|
152
153
|
{
|
|
153
|
-
key:"FinishCard",
|
|
154
|
-
title:"FinishCard",
|
|
155
|
-
doc: FinishCard
|
|
154
|
+
key: "FinishCard",
|
|
155
|
+
title: "FinishCard",
|
|
156
|
+
doc: FinishCard,
|
|
156
157
|
},
|
|
157
158
|
{
|
|
158
|
-
key:"DistanceCard",
|
|
159
|
-
title:"DistanceCard",
|
|
160
|
-
doc: DistanceCard
|
|
159
|
+
key: "DistanceCard",
|
|
160
|
+
title: "DistanceCard",
|
|
161
|
+
doc: DistanceCard,
|
|
161
162
|
},
|
|
162
163
|
{
|
|
163
|
-
key:"InfiniteScroll",
|
|
164
|
-
title:"InfiniteScroll",
|
|
165
|
-
doc: InfiniteScroll
|
|
164
|
+
key: "InfiniteScroll",
|
|
165
|
+
title: "InfiniteScroll",
|
|
166
|
+
doc: InfiniteScroll,
|
|
166
167
|
},
|
|
167
168
|
{
|
|
168
|
-
key:"ActionSheet",
|
|
169
|
-
title:"ActionSheet",
|
|
170
|
-
doc: ActionSheet
|
|
169
|
+
key: "ActionSheet",
|
|
170
|
+
title: "ActionSheet",
|
|
171
|
+
doc: ActionSheet,
|
|
171
172
|
},
|
|
172
173
|
{
|
|
173
|
-
key:"AppList",
|
|
174
|
-
title:"AppList",
|
|
175
|
-
doc: AppList
|
|
174
|
+
key: "AppList",
|
|
175
|
+
title: "AppList",
|
|
176
|
+
doc: AppList,
|
|
176
177
|
},
|
|
177
178
|
{
|
|
178
|
-
key:"LatticeMouth",
|
|
179
|
-
title:"LatticeMouth",
|
|
180
|
-
doc: LatticeMouth
|
|
179
|
+
key: "LatticeMouth",
|
|
180
|
+
title: "LatticeMouth",
|
|
181
|
+
doc: LatticeMouth,
|
|
181
182
|
},
|
|
182
183
|
{
|
|
183
|
-
key:"Card",
|
|
184
|
-
title:"Card",
|
|
185
|
-
doc: Card
|
|
186
|
-
}
|
|
184
|
+
key: "Card",
|
|
185
|
+
title: "Card",
|
|
186
|
+
doc: Card,
|
|
187
|
+
},
|
|
187
188
|
],
|
|
188
189
|
},
|
|
189
190
|
{
|
|
@@ -210,10 +211,10 @@ const docs = [
|
|
|
210
211
|
doc: systemprompt,
|
|
211
212
|
},
|
|
212
213
|
{
|
|
213
|
-
key:"/system/loading",
|
|
214
|
+
key: "/system/loading",
|
|
214
215
|
title: "/system/loading",
|
|
215
|
-
doc: systemloading
|
|
216
|
-
}
|
|
216
|
+
doc: systemloading,
|
|
217
|
+
},
|
|
217
218
|
],
|
|
218
219
|
},
|
|
219
220
|
{
|
|
@@ -229,15 +230,17 @@ const docs = [
|
|
|
229
230
|
];
|
|
230
231
|
|
|
231
232
|
function getDoc(key) {
|
|
232
|
-
return docs
|
|
233
|
-
|
|
234
|
-
return
|
|
235
|
-
|
|
236
|
-
|
|
233
|
+
return docs
|
|
234
|
+
.map((doc) => {
|
|
235
|
+
return doc.pages.filter(function (item) {
|
|
236
|
+
return item.key === key;
|
|
237
|
+
})[0];
|
|
238
|
+
})
|
|
239
|
+
.filter((a) => a)[0];
|
|
237
240
|
}
|
|
238
241
|
|
|
239
|
-
function getHashKey(){
|
|
240
|
-
return location.hash.replace(
|
|
242
|
+
function getHashKey() {
|
|
243
|
+
return location.hash.replace("#", "") || docs[0].pages[0].key;
|
|
241
244
|
}
|
|
242
245
|
|
|
243
246
|
function App() {
|
|
@@ -246,19 +249,23 @@ function App() {
|
|
|
246
249
|
location.hash = key;
|
|
247
250
|
// setCurrentIndex(key);
|
|
248
251
|
});
|
|
249
|
-
React.useEffect(function (){
|
|
250
|
-
window.addEventListener(
|
|
251
|
-
setCurrentIndex(getHashKey())
|
|
252
|
-
})
|
|
253
|
-
}, [])
|
|
252
|
+
React.useEffect(function () {
|
|
253
|
+
window.addEventListener("hashchange", function () {
|
|
254
|
+
setCurrentIndex(getHashKey());
|
|
255
|
+
});
|
|
256
|
+
}, []);
|
|
254
257
|
|
|
255
258
|
const currentDoc = getDoc(currentIndex);
|
|
256
259
|
return (
|
|
257
260
|
<div className="components-container">
|
|
258
261
|
<div className="components-example">
|
|
259
|
-
<h1
|
|
260
|
-
|
|
261
|
-
|
|
262
|
+
<h1
|
|
263
|
+
title="@cniot/android-pda-components"
|
|
264
|
+
style={{ lineHeight: "0.5em" }}
|
|
265
|
+
>
|
|
266
|
+
<span>Components</span>
|
|
267
|
+
<br />
|
|
268
|
+
<sub style={{ fontSize: 12 }}> version: [{pack.version}]</sub>
|
|
262
269
|
</h1>
|
|
263
270
|
{docs.map(function (item, index) {
|
|
264
271
|
return (
|