From f017805d761548b2ed56c261175cf809b8890ebd Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Mon, 3 Jun 2024 15:36:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E6=88=90vue3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 12 +- .env.hella13 | 11 + .env.hella14 | 11 + .env.hella15 | 11 + .env.hella16 | 11 + .env.hella8 | 12 + .env.hella9 | 11 + .env.production | 11 +- .env.test | 14 +- package.json | 10 +- src/api/http.ts | 80 +- src/api/request2.js | 62 +- src/common/balance.js | 8 + src/common/calc.js | 2 +- src/common/detail.js | 54 +- src/common/directory.js | 2 - src/common/record.js | 5 + src/common/style/new_style.css | 5568 +++++++++-------- src/common/style/pdabasic.css | 48 +- src/components/my-paging/my-paging.vue | 298 +- src/manifest.json | 194 +- src/mycomponents/balance/balance.vue | 224 +- src/mycomponents/balance/balanceSelect.vue | 53 +- src/mycomponents/balance/batch.vue | 26 +- src/mycomponents/balance/bussinessType.vue | 51 +- src/mycomponents/balance/handleBalance.vue | 130 +- src/mycomponents/balance/location.vue | 32 +- src/mycomponents/balance/pack.vue | 45 +- src/mycomponents/balance/productionLabel.vue | 87 +- src/mycomponents/balance/recommendBalance.vue | 126 +- src/mycomponents/balance/toLocation.vue | 30 +- src/mycomponents/button/requestButton.vue | 74 +- src/mycomponents/common/comBlankView.vue | 46 +- src/mycomponents/common/comEmptyView.vue | 29 +- src/mycomponents/common/comListItem.vue | 122 +- src/mycomponents/common/comMessage.vue | 940 +-- src/mycomponents/common/comPopup.vue | 25 +- .../container/targetContainer.vue | 111 +- src/mycomponents/detail/comDetailCard.vue | 296 +- src/mycomponents/detail/comJobDetailCard.vue | 276 +- .../detail/comRequestDetailCard.vue | 269 +- src/mycomponents/detail/detailBalanceInfo.vue | 40 +- src/mycomponents/detail/detailCommonInfo.vue | 103 +- src/mycomponents/detail/detailHandleInfo.vue | 29 +- src/mycomponents/detail/detailItemInfo.vue | 33 +- src/mycomponents/detail/detailPackageInfo.vue | 32 +- .../detail/detailRecommendInfo.vue | 41 +- src/mycomponents/detail/jobDetailPopup.vue | 123 +- .../detail/recordDetailCommonInfo.vue | 92 +- src/mycomponents/detail/recordDetailPopup.vue | 113 +- .../detail/requestDetailCommonInfo.vue | 102 +- src/mycomponents/item/item.vue | 62 +- src/mycomponents/item/itemCompareQty.vue | 100 +- src/mycomponents/item/itemInfo.vue | 85 +- src/mycomponents/item/itemInfoPopup.vue | 264 +- src/mycomponents/item/itemQty.vue | 86 +- src/mycomponents/job/jobBottom.vue | 36 +- src/mycomponents/job/jobComMainCard.vue | 27 +- src/mycomponents/job/jobComMainCardAsn.vue | 53 +- src/mycomponents/job/jobComMainDetailCard.vue | 130 +- src/mycomponents/job/jobCommonInfo.vue | 90 +- src/mycomponents/job/jobDetailPopup.vue | 127 +- src/mycomponents/job/jobFilter.vue | 301 +- src/mycomponents/job/jobNumber.vue | 28 +- src/mycomponents/job/jobPersonInfo.vue | 37 +- src/mycomponents/job/jobRequestInfo.vue | 80 +- src/mycomponents/job/jobSettingInfo.vue | 37 +- src/mycomponents/job/jobStatus.vue | 44 +- src/mycomponents/job/jobTop.vue | 37 +- src/mycomponents/job/jobTopAsn.vue | 58 +- src/mycomponents/jobList/jobList.vue | 65 + src/mycomponents/location/location.vue | 87 +- src/mycomponents/location/locationCompare.vue | 200 +- src/mycomponents/location/locationDetail.vue | 70 +- src/mycomponents/location/locationInfo.vue | 63 +- src/mycomponents/location/locationStatus.vue | 60 +- .../location/requiredLocation.vue | 118 +- src/mycomponents/package/packageCard.vue | 179 +- .../package/packageDetailPopup.vue | 417 +- src/mycomponents/package/packageList.vue | 332 +- .../package/packageRecordCard.vue | 195 +- .../package/packageRecordList.vue | 284 +- src/mycomponents/package/packageTarget.vue | 86 +- src/mycomponents/popup/selectList.vue | 198 +- .../production/productionInfo.vue | 50 +- src/mycomponents/qty/balanceQty.vue | 70 +- src/mycomponents/qty/balanceQtyEdit.vue | 395 +- src/mycomponents/qty/compareQty.vue | 101 +- src/mycomponents/qty/countQtyEdit.vue | 493 +- src/mycomponents/qty/packQty.vue | 30 +- src/mycomponents/qty/packUnit.vue | 51 +- src/mycomponents/qty/qty.vue | 96 +- src/mycomponents/qty/recommendQty.vue | 88 +- src/mycomponents/qty/recommendQtyEdit.vue | 412 +- src/mycomponents/qty/stdUom.vue | 38 +- src/mycomponents/qty/uom.vue | 38 +- src/mycomponents/recommend/recommend.vue | 238 +- src/mycomponents/recommend/recommendCount.vue | 221 +- src/mycomponents/record/record.vue | 150 +- .../record/recordComDetailCard.vue | 301 +- src/mycomponents/record/recordComMainCard.vue | 31 +- src/mycomponents/record/recordCommonInfo.vue | 97 +- src/mycomponents/record/recordDetailCard.vue | 295 +- src/mycomponents/record/recordFilter.vue | 198 +- src/mycomponents/record/recordItemInfo.vue | 154 +- .../record/recordListCommonInfo.vue | 144 +- src/mycomponents/record/recordMainInfo.vue | 361 +- src/mycomponents/record/recordNumber.vue | 43 +- src/mycomponents/record/recordPersonInfo.vue | 90 +- src/mycomponents/record/recordRequestInfo.vue | 82 +- src/mycomponents/record/recordStatus.vue | 66 +- src/mycomponents/record/recordTop.vue | 56 +- src/mycomponents/request/requestBottom.vue | 46 +- .../request/requestComMainCard.vue | 30 +- .../request/requestCommonInfo.vue | 95 +- src/mycomponents/request/requestFilter.vue | 173 +- .../request/requestListCommonInfo.vue | 135 +- src/mycomponents/request/requestNumber.vue | 28 +- src/mycomponents/request/requestStatus.vue | 50 +- src/mycomponents/request/requestTop.vue | 36 +- src/mycomponents/scan/winCheckFgLabel.vue | 239 + src/mycomponents/scan/winComScan.vue | 501 +- .../scan/winComScanCustomerLabel.vue | 198 + src/mycomponents/scan/winComScanFg.vue | 546 +- src/mycomponents/scan/winScanAsnNumber.vue | 117 +- src/mycomponents/scan/winScanButton.vue | 68 +- src/mycomponents/scan/winScanContainer.vue | 210 +- src/mycomponents/scan/winScanFgLabel.vue | 187 +- src/mycomponents/scan/winScanItem.vue | 300 +- src/mycomponents/scan/winScanJobNumber.vue | 129 +- src/mycomponents/scan/winScanLocation.vue | 294 +- src/mycomponents/scan/winScanPack.vue | 184 +- .../scan/winScanPackAndLocation.vue | 830 ++- .../scan/winScanPackAndLocationNoBalance.vue | 700 +-- .../scan/winScanPackAndPosition.vue | 413 +- src/mycomponents/scan/winScanPackJob.vue | 103 + src/mycomponents/status/balanceStatus.vue | 109 +- src/mycomponents/status/status.vue | 46 +- src/mycomponents/status/statusEdit.vue | 99 +- src/mycomponents/workStation/workStation.vue | 127 +- src/pages.json | 33 +- src/pages/check/checkFgLabel.vue | 195 + src/pages/common/textview/index.vue | 43 - src/pages/common/webview/index.vue | 34 - src/pages/config/config.vue | 120 - src/pages/container/coms/comPalletRecord.vue | 294 +- .../container/record/containerBindRecord.vue | 766 ++- src/pages/count/coms/comCountDetailCard.vue | 257 +- src/pages/count/coms/comCountJobCard.vue | 60 +- src/pages/count/coms/detailInfoPopup.vue | 80 +- src/pages/count/coms/jobInfoPopup.vue | 65 +- src/pages/count/coms/jobListPopup.vue | 75 +- src/pages/count/job/countDetail.vue | 1567 +++-- src/pages/count/job/countJob.vue | 517 +- src/pages/count/record/countRecord.vue | 996 ++- .../customerReturn/coms/comReturnJobCard.vue | 45 +- .../customerReturn/coms/comReturnRecord.vue | 297 +- .../coms/comReturnRequestCard.vue | 45 +- .../customerReturn/coms/detailInfoPopup.vue | 85 +- .../customerReturn/coms/jobInfoPopup.vue | 130 +- .../customerReturn/coms/jobListPopup.vue | 82 +- .../coms/requestDetailInfoPopup.vue | 144 +- .../customerReturn/coms/requestInfoPopup.vue | 194 +- src/pages/customerReturn/job/returnDetail.vue | 963 ++- src/pages/customerReturn/job/returnJob.vue | 516 +- .../customerReturn/record/returnRecord.vue | 818 ++- .../request/customerReturnRequest.vue | 716 +-- .../request/customerReturnRequestCreate.vue | 860 ++- .../request/customerReturnRequestDetail.vue | 195 +- .../deliver/coms/comDeliverDetailCard.vue | 297 +- src/pages/deliver/coms/comDeliverJobCard.vue | 45 +- .../deliver/coms/comDeliverRequestCard.vue | 45 +- .../deliver/coms/comDeliverRequestCreator.vue | 94 +- .../deliver/coms/comDeliverRequestPopup.vue | 523 +- src/pages/deliver/coms/comScanDeliverPack.vue | 937 ++- src/pages/deliver/coms/detailInfoPopup.vue | 88 +- src/pages/deliver/coms/jobInfoPopup.vue | 128 +- src/pages/deliver/coms/jobListPopup.vue | 75 +- .../deliver/coms/requestDetailInfoPopup.vue | 143 +- src/pages/deliver/coms/requestInfoPopup.vue | 185 +- src/pages/deliver/job/deliverDetail.vue | 836 ++- src/pages/deliver/job/deliverJob.vue | 528 +- src/pages/deliver/record/deliverRecord.vue | 883 ++- src/pages/deliver/request/deliverRequest.vue | 708 +-- .../deliver/request/deliverRequestCreate.vue | 349 +- .../deliver/request/deliverRequestDetail.vue | 224 +- src/pages/demo/demo.vue | 703 --- src/pages/demo/page.vue | 128 - src/pages/error/404.vue | 34 - src/pages/index/index.vue | 1157 ++-- .../inspect/coms/comInspectRequestCard.vue | 60 +- src/pages/inspect/coms/requestInfoPopup.vue | 220 +- src/pages/inspect/job/inspectJob.vue | 512 +- src/pages/inspect/request/inspectRequest.vue | 680 +- .../inspect/request/inspectRequestDetail.vue | 209 +- .../coms/comInventoryDetailCard.vue | 246 +- .../coms/comInventoryJobCard.vue | 45 +- src/pages/inventoryMove/coms/comMoveJob.vue | 591 +- .../inventoryMove/coms/comMoveRecord.vue | 781 ++- .../inventoryMove/coms/comMoveRecordCard.vue | 332 +- .../inventoryMove/coms/detailInfoPopup.vue | 88 +- src/pages/inventoryMove/coms/jobInfoPopup.vue | 84 +- src/pages/inventoryMove/coms/jobListPopup.vue | 73 +- .../inventoryMove/job/holdToOkMoveJob.vue | 63 +- .../inventoryMove/job/holdToScrapMoveJob.vue | 63 +- .../inventoryMove/job/inventoryMoveDetail.vue | 1046 ++-- .../inventoryMove/job/inventoryMoveJob.vue | 490 +- src/pages/inventoryMove/job/moveJob.vue | 62 +- .../inventoryMove/job/okToHoldMoveJob.vue | 60 +- .../inventoryMove/job/okToScrapMoveJob.vue | 63 +- .../inventoryMove/job/scrapToHoldMoveJob.vue | 63 +- .../inventoryMove/record/holdToOkRecord.vue | 26 +- .../record/holdToScrapRecord.vue | 30 +- .../inventoryMove/record/moveFreeRecord.vue | 30 +- .../inventoryMove/record/okToHoldRecord.vue | 27 +- .../inventoryMove/record/okToScrapRecord.vue | 28 +- .../record/scrapToHoldRecord.vue | 31 +- .../coms/comIssueDetailCard.vue | 214 - .../coms/comIssueJobCard.vue | 56 - .../coms/comIssueRecommend.vue | 120 - .../coms/comScanIssueList.vue | 54 - .../coms/comScanIssuePack.vue | 336 - .../issue-按批次推荐/job/issueDetail.vue | 693 -- .../issue-按批次推荐/job/issueJob.vue | 356 -- src/pages/issue/coms/comIssueDetailCard.vue | 321 +- src/pages/issue/coms/comIssueJobCard.vue | 45 +- src/pages/issue/coms/comIssueRequestCard.vue | 45 +- .../issue/coms/comIssueRequestCreator.vue | 249 +- .../issue/coms/comIssueRequestDetailCard.vue | 250 +- src/pages/issue/coms/comIssueRequestInfo.vue | 83 +- src/pages/issue/coms/comIssueRequestPopup.vue | 763 ++- src/pages/issue/coms/comScanIssuePack.vue | 985 ++- src/pages/issue/coms/jobInfoPopup.vue | 89 +- src/pages/issue/coms/jobListPopup.vue | 72 +- .../issue/coms/requestDetailInfoPopup.vue | 150 +- src/pages/issue/coms/requestInfoPopup.vue | 139 +- src/pages/issue/job/issueDetail.vue | 923 ++- src/pages/issue/job/issueJob.vue | 586 +- src/pages/issue/js/issue.js | 2 +- src/pages/issue/record/directIssue.vue | 485 ++ src/pages/issue/record/issueRecord.vue | 769 +-- src/pages/issue/request/issueRequest.vue | 722 +-- .../issue/request/issueRequestCreate.vue | 385 +- .../issue/request/issueRequestDetail.vue | 211 +- src/pages/issue/request/issueScanRequest.vue | 265 +- src/pages/login/index.vue | 588 +- src/pages/message/details.vue | 147 +- src/pages/message/index.vue | 597 +- src/pages/package/coms/comOverPackJobCard.vue | 45 +- .../package/coms/comOverPackJobDetailCard.vue | 308 +- src/pages/package/coms/comScanPackagePack.vue | 943 ++- src/pages/package/job/overPackageJob.vue | 553 +- .../package/job/overPackageJobDetail.vue | 1040 ++- .../package/record/overPackageRecord.vue | 876 ++- src/pages/point/index.vue | 249 +- src/pages/pointProductReceipt/index.vue | 250 + src/pages/pointProductReceipt/webview.vue | 26 + src/pages/print/index.vue | 34 - .../job/productDismantleJob.vue | 494 +- .../productPutaway/coms/comProductJobCard.vue | 45 +- .../coms/comPutawayRequestCard.vue | 46 +- .../productPutaway/coms/detailInfoPopup.vue | 70 +- .../productPutaway/coms/jobInfoPopup.vue | 80 +- .../productPutaway/coms/jobListPopup.vue | 73 +- .../coms/requestDetailInfoPopup.vue | 117 +- .../productPutaway/coms/requestInfoPopup.vue | 130 +- .../job/fgProductPutawayJob.vue | 70 +- .../job/productPutawayDetail.vue | 943 ++- .../productPutaway/job/productPutawayJob.vue | 637 +- .../job/semiProductPutawayJob.vue | 70 +- .../record/productPutawayRecord.vue | 805 ++- .../productPutaway/request/putawayRequest.vue | 729 +-- .../request/putawayRequestCreate.vue | 740 +-- .../request/putawayRequestDetail.vue | 204 +- src/pages/productReceipt/coms/comFgCard.vue | 89 +- .../coms/comProductDetailCard.vue | 294 +- .../productReceipt/coms/comProductJobCard.vue | 43 +- .../productReceipt/coms/comProductRecord.vue | 291 +- .../productReceipt/coms/jobInfoPopup.vue | 112 +- .../productReceipt/coms/jobListPopup.vue | 72 +- .../coms/productDetailInfoPopup.vue | 172 +- .../productReceipt/job/completeReceiveJob.vue | 502 +- .../job/fgProductReceiptDetail.vue | 955 +-- .../job/fgProductReceiptJob.vue | 72 +- .../job/productReceiptDetail.vue | 896 ++- .../productReceipt/job/productReceiptJob.vue | 680 +- .../productReceipt/job/scrapReceiptDetail.vue | 749 +-- .../productReceipt/job/scrapReceiptJob.vue | 65 +- .../job/semiProductReceiptJob.vue | 71 +- .../record/productReceiptRecord.vue | 907 ++- .../productRecycle/coms/comRecycleJobCard.vue | 41 +- .../coms/recycleDetailInfoPopup.vue | 88 +- .../productRecycle/coms/returnInfoPopup.vue | 131 +- .../coms/returnJobListPopup.vue | 78 +- .../productRecycle/job/productRecycleJob.vue | 552 +- .../job/productRecycleJobDetail.vue | 847 ++- .../record/productRecycleRecord.vue | 709 +-- .../coms/comProductionJobCard.vue | 45 +- .../coms/comProductionRecord.vue | 335 +- .../coms/detailInfoPopup.vue | 102 +- .../productionReceipt/coms/jobInfoPopup.vue | 98 +- .../productionReceipt/coms/jobListPopup.vue | 73 +- .../job/productionReceiptDetail.vue | 985 ++- .../job/productionReceiptJob.vue | 523 +- .../coms/comReturnCommonRequest.vue | 783 ++- .../coms/comReturnDetailCard.vue | 275 +- .../coms/comReturnJobCard.vue | 59 +- .../productionReturn/coms/comReturnRecord.vue | 322 +- .../coms/comReturnRecordTitle.vue | 96 +- .../coms/comReturnRequestCard.vue | 45 +- .../coms/comReturnRequestCreator.vue | 261 +- .../coms/comReturnRequestInfo.vue | 85 +- .../coms/comReturnRequestPopup.vue | 690 +- .../coms/comScanReturnPack.vue | 917 ++- .../productionReturn/coms/detailInfoPopup.vue | 94 +- .../productionReturn/coms/jobInfoPopup.vue | 86 +- .../productionReturn/coms/jobListPopup.vue | 73 +- .../coms/requestDetailInfoPopup.vue | 151 +- .../coms/requestInfoPopup.vue | 130 +- .../coms/returnDetailInfoPopup.vue | 113 +- .../productionReturn/job/returnDetail.vue | 877 ++- src/pages/productionReturn/job/returnJob.vue | 526 +- .../productionReturn/record/returnToHold.vue | 1018 ++- .../productionReturn/record/returnToStore.vue | 1099 ++-- .../request/requestDetail.vue | 234 +- .../request/returnRequestCreate.vue | 410 +- .../request/returnToHoldRequest.vue | 88 +- .../request/returnToStoreRequest.vue | 87 +- .../coms/comReceiptDetailCard.vue | 291 +- .../coms/comReceiptJobCard.vue | 42 +- .../coms/receiptDetailInfoPopup.vue | 196 +- .../purchaseReceipt/coms/receiptInfoPopup.vue | 136 +- .../coms/receiptJobListPopup.vue | 72 +- .../purchaseReceipt/job/purchaseReceipt.vue | 73 +- .../purchaseReceipt/job/purchaseReject.vue | 72 +- .../purchaseReceipt/job/receiptDetail.vue | 1148 ++-- src/pages/purchaseReceipt/job/receiptJob.vue | 672 +- .../purchaseReturn/coms/comReturnJobCard.vue | 26 +- .../coms/comReturnRequestCard.vue | 45 +- .../coms/requestDetailInfoPopup.vue | 195 +- .../purchaseReturn/coms/requestInfoPopup.vue | 188 +- .../coms/returnDetailInfoPopup.vue | 85 +- .../purchaseReturn/coms/returnInfoPopup.vue | 131 +- .../coms/returnJobListPopup.vue | 74 +- src/pages/purchaseReturn/job/returnDetail.vue | 813 +-- src/pages/purchaseReturn/job/returnJob.vue | 550 +- .../purchaseReturn/record/returnRecord.vue | 705 +-- .../purchaseReturn/request/returnRequest.vue | 711 +-- .../request/returnRequestCreate.vue | 617 +- .../request/returnRequestDetail.vue | 161 +- src/pages/putaway/coms/comPutawayJobCard.vue | 61 +- .../putaway/coms/comPutawayRequestCard.vue | 32 +- .../putaway/coms/putawayDetailInfoPopup.vue | 84 +- src/pages/putaway/coms/putawayInfoPopup.vue | 49 +- .../putaway/coms/putawayJobListPopup.vue | 55 +- .../putaway/coms/requestDetailInfoPopup.vue | 149 +- src/pages/putaway/coms/requestInfoPopup.vue | 127 +- src/pages/putaway/job/putawayDetail.vue | 1029 ++- src/pages/putaway/job/putawayJob.vue | 566 +- src/pages/putaway/record/putawayRecord.vue | 909 ++- .../putaway/record/putawayRecord_bat.vue | 443 ++ src/pages/putaway/request/putawayRequest.vue | 709 +-- .../putaway/request/putawayRequestCreate.vue | 575 +- .../putaway/request/putawayRequestDetail.vue | 151 +- src/pages/query/coms/comItemBalance.vue | 138 +- src/pages/query/coms/comItemDetailCard.vue | 120 +- .../query/coms/comLocationDetailCard.vue | 113 +- src/pages/query/item.vue | 532 +- src/pages/query/location.vue | 468 +- .../repleinsh/coms/comRepleinshJobCard.vue | 42 +- .../coms/comRepleinshRequestPopup.vue | 536 +- .../repleinsh/coms/comRepleishDetailCard.vue | 290 +- .../repleinsh/coms/comScanReplishPack.vue | 1066 ++-- .../repleinsh/coms/repleinshInfoPopup.vue | 127 +- .../repleinsh/coms/repleinshJobListPopup.vue | 69 +- src/pages/repleinsh/job/repleinshDetail.vue | 930 ++- src/pages/repleinsh/job/repleinshJob.vue | 515 +- .../repleinsh/record/repleinshRecord.vue | 1010 ++- src/pages/scrap/coms/comScrapDetailCard.vue | 211 +- src/pages/scrap/coms/comScrapJobCard.vue | 41 +- src/pages/scrap/coms/comScrapRequestCard.vue | 45 +- .../scrap/coms/requestDetailInfoPopup.vue | 133 +- src/pages/scrap/coms/requestInfoPopup.vue | 96 +- src/pages/scrap/coms/scrapInfoPopup.vue | 119 +- src/pages/scrap/coms/scrapJobListPopup.vue | 72 +- src/pages/scrap/job/scrapJob.vue | 524 +- src/pages/scrap/job/scrapJobDetail.vue | 826 ++- src/pages/scrap/record/scrapRecord.vue | 644 +- .../scrap/request/scrapRequestCreate.vue | 696 +-- .../scrap/request/scrapRequestDetail.vue | 195 +- src/pages/scrap/request/scrapRrequest.vue | 699 +-- src/pages/setter/index.vue | 351 +- src/pages/setter/passwordpage.vue | 180 +- src/pages/stockUp/coms/comScanStockUpPack.vue | 921 ++- .../stockUp/coms/comStockUpDetailCard.vue | 290 +- src/pages/stockUp/coms/comStockUpJobCard.vue | 45 +- src/pages/stockUp/coms/jobInfoPopup.vue | 128 +- src/pages/stockUp/coms/jobListPopup.vue | 73 +- src/pages/stockUp/job/stockUpJob.vue | 517 +- src/pages/stockUp/job/stockUpJobDetail.vue | 872 ++- .../supplierDeliver/coms/comRecordCard.vue | 43 +- .../coms/comRecordDetailCard.vue | 137 +- .../coms/recordDetailInfoPopup.vue | 287 +- .../supplierDeliver/coms/recordInfoPopup.vue | 202 +- .../supplierDeliver/coms/recordListPopup.vue | 72 +- .../record/supplierDeliverRecord.vue | 445 +- .../record/supplierDeliverRecordDetail.vue | 413 +- .../transfer/coms/comReceiptDetailCard.vue | 260 +- .../transfer/coms/comTransferJobCard.vue | 45 +- src/pages/transfer/coms/detailInfoPopup.vue | 70 +- src/pages/transfer/coms/jobInfoPopup.vue | 98 +- src/pages/transfer/coms/jobListPopup.vue | 73 +- src/pages/transfer/job/issueDetail.vue | 965 ++- src/pages/transfer/job/issueJob.vue | 496 +- src/pages/transfer/job/receiptDetail.vue | 1027 ++- src/pages/transfer/job/receiptJob.vue | 523 +- src/pages/transfer/record/deliverRecord.vue | 817 ++- src/pages/transfer/record/receiptRecord.vue | 768 +-- src/pages/unPlanned/coms/comIssueJobCard.vue | 45 +- .../unPlanned/coms/comIssueRequestCard.vue | 45 +- .../unPlanned/coms/comReceiptDetailCard.vue | 266 +- .../unPlanned/coms/comReceiptJobCard.vue | 45 +- src/pages/unPlanned/coms/comReceiptRecord.vue | 295 +- .../unPlanned/coms/comReceiptRequestCard.vue | 45 +- .../unPlanned/coms/comReceiptRequestPopup.vue | 478 +- src/pages/unPlanned/coms/detailInfoPopup.vue | 80 +- src/pages/unPlanned/coms/jobInfoPopup.vue | 63 +- src/pages/unPlanned/coms/jobListPopup.vue | 80 +- .../coms/requestIssDetailInfoPopup.vue | 126 +- .../unPlanned/coms/requestIssInfoPopup.vue | 100 +- .../coms/requestRecDetailInfoPopup.vue | 159 +- .../unPlanned/coms/requestRecInfoPopup.vue | 100 +- src/pages/unPlanned/job/issueJob.vue | 532 +- src/pages/unPlanned/job/issueJobDetail.vue | 768 ++- src/pages/unPlanned/job/receiptJob.vue | 484 +- src/pages/unPlanned/job/receiptJobDetail.vue | 760 ++- src/pages/unPlanned/record/issueRecord.vue | 505 +- src/pages/unPlanned/record/receiptRecord.vue | 718 +-- src/pages/unPlanned/request/issueRequest.vue | 728 +-- .../unPlanned/request/issueRequestCreate.vue | 515 +- .../unPlanned/request/issueRequestDetail.vue | 207 +- .../unPlanned/request/receiptRequest.vue | 719 +-- .../request/receiptRequestCreate.vue | 430 +- .../request/receiptRequestDetail.vue | 213 +- src/static/config.js | 2 +- src/static/icons/icon_copy.svg | 1 + src/static/icons/icon_customer.svg | 2 +- src/static/icons/icon_date.svg | 2 +- src/static/menus/bind_pallet.svg | 2 +- src/static/menus/count.svg | 2 +- src/static/menus/customer_return.svg | 2 +- src/static/menus/deliver.svg | 2 +- src/static/menus/hold_to_ok.svg | 2 +- src/static/menus/hold_to_scrap.svg | 2 +- src/static/menus/inspect.svg | 2 +- src/static/menus/inventory_move.svg | 2 +- src/static/menus/issue.svg | 2 +- src/static/menus/merge_package.svg | 2 +- src/static/menus/ok_to_hold.svg | 2 +- src/static/menus/ok_to_scrap.svg | 2 +- src/static/menus/over_package.svg | 2 +- src/static/menus/product_putaway.svg | 2 +- src/static/menus/product_receipt.svg | 6 +- src/static/menus/production_receipt.svg | 6 +- src/static/menus/production_return.svg | 2 +- src/static/menus/purchase_receipt.svg | 2 +- src/static/menus/purchase_return.svg | 2 +- src/static/menus/putaway.svg | 2 +- src/static/menus/query_container.svg | 2 +- src/static/menus/query_inspect.svg | 2 +- src/static/menus/query_issue_request.svg | 2 +- src/static/menus/query_item.svg | 2 +- src/static/menus/query_location.svg | 2 +- src/static/menus/query_supplier_deliver.svg | 2 +- src/static/menus/repleinsh.svg | 2 +- src/static/menus/return_to_hold.svg | 2 +- src/static/menus/return_to_store.svg | 2 +- src/static/menus/scrap.svg | 2 +- src/static/menus/scrap_to_hold.svg | 2 +- src/static/menus/split_package.svg | 2 +- src/static/menus/transfer_deliver.svg | 2 +- src/static/menus/transfer_receipt.svg | 2 +- src/static/menus/unbind_pallet.svg | 2 +- src/static/menus/unplanned_issue.svg | 2 +- src/static/menus/unplanned_receipt.svg | 2 +- src/store/modules/countStore.ts | 1 + src/uni_modules/uni-badge/changelog.md | 29 - .../components/uni-badge/uni-badge.vue | 268 - src/uni_modules/uni-badge/package.json | 88 - src/uni_modules/uni-badge/readme.md | 10 - src/uni_modules/uni-breadcrumb/changelog.md | 6 - .../uni-breadcrumb-item.vue | 121 - .../uni-breadcrumb/uni-breadcrumb.vue | 41 - src/uni_modules/uni-breadcrumb/package.json | 85 - src/uni_modules/uni-breadcrumb/readme.md | 66 - src/uni_modules/uni-calendar/changelog.md | 16 - .../components/uni-calendar/calendar.js | 546 -- .../components/uni-calendar/i18n/en.json | 12 - .../components/uni-calendar/i18n/index.js | 8 - .../components/uni-calendar/i18n/zh-Hans.json | 12 - .../components/uni-calendar/i18n/zh-Hant.json | 12 - .../uni-calendar/uni-calendar-item.vue | 181 - .../components/uni-calendar/uni-calendar.vue | 554 -- .../components/uni-calendar/util.js | 354 -- src/uni_modules/uni-calendar/package.json | 88 - src/uni_modules/uni-calendar/readme.md | 103 - src/uni_modules/uni-card/changelog.md | 26 - .../uni-card/components/uni-card/uni-card.vue | 270 - src/uni_modules/uni-card/package.json | 90 - src/uni_modules/uni-card/readme.md | 12 - src/uni_modules/uni-collapse/changelog.md | 36 - .../uni-collapse-item/uni-collapse-item.vue | 404 -- .../components/uni-collapse/uni-collapse.vue | 147 - src/uni_modules/uni-collapse/package.json | 89 - src/uni_modules/uni-collapse/readme.md | 12 - src/uni_modules/uni-countdown/changelog.md | 24 - .../components/uni-countdown/i18n/en.json | 6 - .../components/uni-countdown/i18n/index.js | 8 - .../uni-countdown/i18n/zh-Hans.json | 6 - .../uni-countdown/i18n/zh-Hant.json | 6 - .../uni-countdown/uni-countdown.vue | 271 - src/uni_modules/uni-countdown/package.json | 86 - src/uni_modules/uni-countdown/readme.md | 10 - .../uni-data-checkbox/changelog.md | 43 - .../uni-data-checkbox/uni-data-checkbox.vue | 817 --- .../uni-data-checkbox/package.json | 87 - src/uni_modules/uni-data-checkbox/readme.md | 18 - src/uni_modules/uni-data-picker/changelog.md | 64 - .../components/uni-data-picker/keypress.js | 45 - .../uni-data-picker/uni-data-picker.vue | 554 -- .../uni-data-pickerview/uni-data-picker.js | 563 -- .../uni-data-pickerview.vue | 333 - src/uni_modules/uni-data-picker/package.json | 93 - src/uni_modules/uni-data-picker/readme.md | 22 - src/uni_modules/uni-dateformat/changelog.md | 10 - .../components/uni-dateformat/date-format.js | 200 - .../uni-dateformat/uni-dateformat.vue | 88 - src/uni_modules/uni-dateformat/package.json | 88 - src/uni_modules/uni-dateformat/readme.md | 11 - .../uni-datetime-picker/changelog.md | 93 - .../uni-datetime-picker/calendar-item.vue | 185 - .../uni-datetime-picker/calendar.js | 546 -- .../uni-datetime-picker/calendar.vue | 907 --- .../uni-datetime-picker/i18n/en.json | 22 - .../uni-datetime-picker/i18n/index.js | 8 - .../uni-datetime-picker/i18n/zh-Hans.json | 22 - .../uni-datetime-picker/i18n/zh-Hant.json | 22 - .../uni-datetime-picker/keypress.js | 45 - .../uni-datetime-picker/time-picker.vue | 927 --- .../uni-datetime-picker.vue | 1012 --- .../components/uni-datetime-picker/util.js | 410 -- .../uni-datetime-picker/package.json | 90 - src/uni_modules/uni-datetime-picker/readme.md | 21 - src/uni_modules/uni-drawer/changelog.md | 13 - .../components/uni-drawer/keypress.js | 45 - .../components/uni-drawer/uni-drawer.vue | 183 - src/uni_modules/uni-drawer/package.json | 87 - src/uni_modules/uni-drawer/readme.md | 10 - src/uni_modules/uni-easyinput/changelog.md | 47 - .../components/uni-easyinput/common.js | 56 - .../uni-easyinput/uni-easyinput.vue | 593 -- src/uni_modules/uni-easyinput/package.json | 90 - src/uni_modules/uni-easyinput/readme.md | 11 - src/uni_modules/uni-fab/changelog.md | 17 - .../uni-fab/components/uni-fab/uni-fab.vue | 475 -- .../components/uni-fab/uni-fab.vue.bak | 379 -- src/uni_modules/uni-fab/package.json | 87 - src/uni_modules/uni-fab/readme.md | 9 - src/uni_modules/uni-fav/changelog.md | 19 - .../uni-fav/components/uni-fav/i18n/en.json | 4 - .../uni-fav/components/uni-fav/i18n/index.js | 8 - .../components/uni-fav/i18n/zh-Hans.json | 4 - .../components/uni-fav/i18n/zh-Hant.json | 4 - .../uni-fav/components/uni-fav/uni-fav.vue | 161 - src/uni_modules/uni-fav/package.json | 89 - src/uni_modules/uni-fav/readme.md | 10 - src/uni_modules/uni-file-picker/changelog.md | 63 - .../uni-file-picker/choose-and-upload-file.js | 224 - .../uni-file-picker/uni-file-picker.vue | 656 -- .../uni-file-picker/upload-file.vue | 325 - .../uni-file-picker/upload-image.vue | 292 - .../components/uni-file-picker/utils.js | 109 - src/uni_modules/uni-file-picker/package.json | 86 - src/uni_modules/uni-file-picker/readme.md | 11 - src/uni_modules/uni-forms/changelog.md | 86 - .../uni-forms-item/uni-forms-item.vue | 627 -- .../components/uni-forms/uni-forms.vue | 397 -- .../uni-forms/components/uni-forms/utils.js | 293 - .../components/uni-forms/validate.js | 486 -- src/uni_modules/uni-forms/package.json | 91 - src/uni_modules/uni-forms/readme.md | 23 - src/uni_modules/uni-goods-nav/changelog.md | 18 - .../components/uni-goods-nav/i18n/en.json | 6 - .../components/uni-goods-nav/i18n/index.js | 8 - .../uni-goods-nav/i18n/zh-Hans.json | 6 - .../uni-goods-nav/i18n/zh-Hant.json | 6 - .../uni-goods-nav/uni-goods-nav.vue | 229 - src/uni_modules/uni-goods-nav/package.json | 88 - src/uni_modules/uni-goods-nav/readme.md | 10 - src/uni_modules/uni-grid/changelog.md | 13 - .../uni-grid-item/uni-grid-item.vue | 127 - .../uni-grid/components/uni-grid/uni-grid.vue | 142 - src/uni_modules/uni-grid/package.json | 86 - src/uni_modules/uni-grid/readme.md | 11 - src/uni_modules/uni-group/changelog.md | 16 - .../components/uni-group/uni-group.vue | 134 - src/uni_modules/uni-group/package.json | 87 - src/uni_modules/uni-group/readme.md | 9 - src/uni_modules/uni-icons/changelog.md | 22 - .../uni-icons/components/uni-icons/icons.js | 1169 ---- .../components/uni-icons/uni-icons.vue | 96 - .../uni-icons/components/uni-icons/uni.ttf | Bin 26164 -> 0 bytes .../components/uni-icons/uniicons.css | 663 -- .../components/uni-icons/uniicons.ttf | Bin 35760 -> 0 bytes src/uni_modules/uni-icons/package.json | 86 - src/uni_modules/uni-icons/readme.md | 8 - src/uni_modules/uni-indexed-list/changelog.md | 17 - .../uni-indexed-list-item.vue | 144 - .../uni-indexed-list/uni-indexed-list.vue | 367 -- src/uni_modules/uni-indexed-list/package.json | 89 - src/uni_modules/uni-indexed-list/readme.md | 11 - src/uni_modules/uni-link/changelog.md | 17 - .../uni-link/components/uni-link/uni-link.vue | 128 - src/uni_modules/uni-link/package.json | 87 - src/uni_modules/uni-link/readme.md | 11 - src/uni_modules/uni-list/changelog.md | 20 - .../components/uni-list-ad/uni-list-ad.vue | 107 - .../uni-list-chat/uni-list-chat.scss | 58 - .../uni-list-chat/uni-list-chat.vue | 538 -- .../uni-list-item/uni-list-item.vue | 454 -- .../components/uni-list/uni-list - 副本.vue | 106 - .../uni-list/components/uni-list/uni-list.vue | 108 - .../components/uni-list/uni-refresh.vue | 65 - .../components/uni-list/uni-refresh.wxs | 87 - src/uni_modules/uni-list/package.json | 91 - src/uni_modules/uni-list/readme.md | 346 - src/uni_modules/uni-load-more/changelog.md | 19 - .../components/uni-load-more/i18n/en.json | 5 - .../components/uni-load-more/i18n/index.js | 8 - .../uni-load-more/i18n/zh-Hans.json | 5 - .../uni-load-more/i18n/zh-Hant.json | 5 - .../uni-load-more/uni-load-more.vue | 399 -- src/uni_modules/uni-load-more/package.json | 86 - src/uni_modules/uni-load-more/readme.md | 14 - src/uni_modules/uni-nav-bar/changelog.md | 41 - .../components/uni-nav-bar/uni-nav-bar.vue | 348 -- .../components/uni-nav-bar/uni-status-bar.vue | 27 - src/uni_modules/uni-nav-bar/package.json | 89 - src/uni_modules/uni-nav-bar/readme.md | 15 - src/uni_modules/uni-notice-bar/changelog.md | 16 - .../uni-notice-bar/uni-notice-bar.vue | 395 -- src/uni_modules/uni-notice-bar/package.json | 90 - src/uni_modules/uni-notice-bar/readme.md | 13 - src/uni_modules/uni-number-box/changelog.md | 25 - .../uni-number-box/uni-number-box.vue | 220 - src/uni_modules/uni-number-box/package.json | 85 - src/uni_modules/uni-number-box/readme.md | 13 - src/uni_modules/uni-popup/changelog.md | 60 - .../components/uni-popup-dialog/keypress.js | 45 - .../uni-popup-dialog/uni-popup-dialog.vue | 271 - .../uni-popup-message/uni-popup-message.vue | 143 - .../uni-popup-share/uni-popup-share.vue | 187 - .../components/uni-popup/i18n/en.json | 7 - .../components/uni-popup/i18n/index.js | 8 - .../components/uni-popup/i18n/zh-Hans.json | 7 - .../components/uni-popup/i18n/zh-Hant.json | 7 - .../components/uni-popup/keypress.js | 45 - .../uni-popup/components/uni-popup/popup.js | 26 - .../components/uni-popup/uni-popup.vue | 474 -- src/uni_modules/uni-popup/package.json | 90 - src/uni_modules/uni-popup/readme.md | 17 - src/uni_modules/uni-rate/changelog.md | 25 - .../uni-rate/components/uni-rate/uni-rate.vue | 361 -- src/uni_modules/uni-rate/package.json | 88 - src/uni_modules/uni-rate/readme.md | 12 - src/uni_modules/uni-row/changelog.md | 10 - .../uni-row/components/uni-col/uni-col.vue | 317 - .../uni-row/components/uni-row/uni-row.vue | 190 - src/uni_modules/uni-row/package.json | 87 - src/uni_modules/uni-row/readme.md | 10 - src/uni_modules/uni-scss/changelog.md | 8 - src/uni_modules/uni-scss/index.scss | 1 - src/uni_modules/uni-scss/package.json | 82 - src/uni_modules/uni-scss/readme.md | 4 - src/uni_modules/uni-scss/styles/index.scss | 7 - .../uni-scss/styles/setting/_border.scss | 3 - .../uni-scss/styles/setting/_color.scss | 66 - .../uni-scss/styles/setting/_radius.scss | 55 - .../uni-scss/styles/setting/_space.scss | 56 - .../uni-scss/styles/setting/_styles.scss | 167 - .../uni-scss/styles/setting/_text.scss | 24 - .../uni-scss/styles/setting/_variables.scss | 146 - .../uni-scss/styles/tools/functions.scss | 19 - src/uni_modules/uni-scss/theme.scss | 31 - src/uni_modules/uni-scss/variables.scss | 62 - src/uni_modules/uni-search-bar/changelog.md | 33 - .../components/uni-search-bar/i18n/en.json | 4 - .../components/uni-search-bar/i18n/index.js | 8 - .../uni-search-bar/i18n/zh-Hans.json | 4 - .../uni-search-bar/i18n/zh-Hant.json | 4 - .../uni-search-bar/uni-search-bar.vue | 298 - src/uni_modules/uni-search-bar/package.json | 89 - src/uni_modules/uni-search-bar/readme.md | 14 - src/uni_modules/uni-section/changelog.md | 2 - .../components/uni-section/uni-section.vue | 167 - src/uni_modules/uni-section/package.json | 87 - src/uni_modules/uni-section/readme.md | 8 - .../uni-segmented-control/changelog.md | 9 - .../uni-segmented-control.vue | 145 - .../uni-segmented-control/package.json | 87 - .../uni-segmented-control/readme.md | 13 - src/uni_modules/uni-steps/changelog.md | 16 - .../components/uni-steps/uni-steps.vue | 269 - src/uni_modules/uni-steps/package.json | 89 - src/uni_modules/uni-steps/readme.md | 13 - src/uni_modules/uni-swipe-action/changelog.md | 41 - .../uni-swipe-action-item/bindingx.js | 302 - .../uni-swipe-action-item/index.wxs | 323 - .../components/uni-swipe-action-item/isPC.js | 12 - .../uni-swipe-action-item/mpalipay.js | 193 - .../uni-swipe-action-item/mpother.js | 259 - .../components/uni-swipe-action-item/mpwxs.js | 83 - .../uni-swipe-action-item/render.js | 270 - .../uni-swipe-action-item.vue | 347 - .../components/uni-swipe-action-item/wx.wxs | 341 - .../uni-swipe-action/uni-swipe-action.vue | 60 - src/uni_modules/uni-swipe-action/package.json | 87 - src/uni_modules/uni-swipe-action/readme.md | 11 - src/uni_modules/uni-swiper-dot/changelog.md | 12 - .../uni-swiper-dot/uni-swiper-dot.vue | 218 - src/uni_modules/uni-swiper-dot/package.json | 87 - src/uni_modules/uni-swiper-dot/readme.md | 11 - src/uni_modules/uni-table/changelog.md | 23 - .../components/uni-table/uni-table.vue | 455 -- .../components/uni-tbody/uni-tbody.vue | 29 - .../uni-table/components/uni-td/uni-td.vue | 90 - .../components/uni-th/filter-dropdown.vue | 503 -- .../uni-table/components/uni-th/uni-th.vue | 278 - .../components/uni-thead/uni-thead.vue | 129 - .../components/uni-tr/table-checkbox.vue | 179 - .../uni-table/components/uni-tr/uni-tr.vue | 171 - src/uni_modules/uni-table/i18n/en.json | 9 - src/uni_modules/uni-table/i18n/es.json | 9 - src/uni_modules/uni-table/i18n/fr.json | 9 - src/uni_modules/uni-table/i18n/index.js | 12 - src/uni_modules/uni-table/i18n/zh-Hans.json | 9 - src/uni_modules/uni-table/i18n/zh-Hant.json | 9 - src/uni_modules/uni-table/package.json | 86 - src/uni_modules/uni-table/readme.md | 13 - src/uni_modules/uni-tag/changelog.md | 21 - .../uni-tag/components/uni-tag/uni-tag.vue | 252 - src/uni_modules/uni-tag/package.json | 87 - src/uni_modules/uni-tag/readme.md | 13 - src/uni_modules/uni-title/changelog.md | 10 - .../components/uni-title/uni-title.vue | 171 - src/uni_modules/uni-title/package.json | 88 - src/uni_modules/uni-title/readme.md | 14 - src/uni_modules/uni-tooltip/changelog.md | 10 - .../components/uni-tooltip/uni-tooltip.vue | 68 - src/uni_modules/uni-tooltip/package.json | 83 - src/uni_modules/uni-tooltip/readme.md | 8 - src/uni_modules/uni-transition/changelog.md | 20 - .../uni-transition/createAnimation.js | 128 - .../uni-transition/uni-transition.vue | 277 - src/uni_modules/uni-transition/package.json | 87 - src/uni_modules/uni-transition/readme.md | 11 - src/uni_modules/z-paging/changelog.md | 6 - .../z-paging-cell/z-paging-cell.vue | 34 - .../z-paging-empty-view.vue | 162 - .../z-paging-swiper-item.vue | 143 - .../z-paging-swiper/z-paging-swiper.vue | 170 - .../components/z-paging-load-more.vue | 141 - .../z-paging/components/z-paging-refresh.vue | 182 - .../components/z-paging/config/index.js | 3 - .../components/z-paging/css/z-paging-main.css | 228 - .../z-paging/css/z-paging-static.css | 35 - .../z-paging/components/z-paging/i18n/en.json | 22 - .../components/z-paging/i18n/index.js | 8 - .../components/z-paging/i18n/zh-Hans.json | 22 - .../components/z-paging/i18n/zh-Hant.json | 22 - .../z-paging/js/hooks/useZPaging.js | 25 - .../z-paging/js/hooks/useZPagingComp.js | 26 - .../z-paging/js/modules/back-to-top.js | 100 - .../z-paging/js/modules/common-layout.js | 116 - .../z-paging/js/modules/data-handle.js | 741 --- .../components/z-paging/js/modules/empty.js | 147 - .../components/z-paging/js/modules/i18n.js | 101 - .../z-paging/js/modules/load-more.js | 315 - .../components/z-paging/js/modules/loading.js | 93 - .../components/z-paging/js/modules/nvue.js | 249 - .../z-paging/js/modules/refresher.js | 677 -- .../z-paging/js/modules/scroller.js | 464 -- .../z-paging/js/modules/virtual-list.js | 461 -- .../components/z-paging/js/z-paging-config.js | 21 - .../z-paging/js/z-paging-constant.js | 12 - .../components/z-paging/js/z-paging-enum.js | 44 - .../z-paging/js/z-paging-interceptor.js | 48 - .../components/z-paging/js/z-paging-main.js | 446 -- .../components/z-paging/js/z-paging-mixin.js | 22 - .../components/z-paging/js/z-paging-static.js | 13 - .../components/z-paging/js/z-paging-utils.js | 228 - .../z-paging/wxs/z-paging-renderjs.js | 58 - .../components/z-paging/wxs/z-paging-wxs.wxs | 340 - .../z-paging/components/z-paging/z-paging.vue | 307 - src/uni_modules/z-paging/package.json | 86 - src/uni_modules/z-paging/readme.md | 53 - src/uni_modules/z-tabs/changelog.md | 2 - .../z-tabs/components/z-tabs/config/index.js | 4 - .../z-tabs/components/z-tabs/z-tabs.vue | 736 --- src/uni_modules/z-tabs/package.json | 82 - src/uni_modules/z-tabs/readme.md | 175 - 811 files changed, 58887 insertions(+), 113650 deletions(-) create mode 100644 .env.hella13 create mode 100644 .env.hella14 create mode 100644 .env.hella15 create mode 100644 .env.hella16 create mode 100644 .env.hella8 create mode 100644 .env.hella9 create mode 100644 src/mycomponents/jobList/jobList.vue create mode 100644 src/mycomponents/scan/winCheckFgLabel.vue create mode 100644 src/mycomponents/scan/winComScanCustomerLabel.vue create mode 100644 src/mycomponents/scan/winScanPackJob.vue create mode 100644 src/pages/check/checkFgLabel.vue delete mode 100644 src/pages/common/textview/index.vue delete mode 100644 src/pages/common/webview/index.vue delete mode 100644 src/pages/config/config.vue delete mode 100644 src/pages/demo/demo.vue delete mode 100644 src/pages/demo/page.vue delete mode 100644 src/pages/error/404.vue delete mode 100644 src/pages/issue-按批次推荐/coms/comIssueDetailCard.vue delete mode 100644 src/pages/issue-按批次推荐/coms/comIssueJobCard.vue delete mode 100644 src/pages/issue-按批次推荐/coms/comIssueRecommend.vue delete mode 100644 src/pages/issue-按批次推荐/coms/comScanIssueList.vue delete mode 100644 src/pages/issue-按批次推荐/coms/comScanIssuePack.vue delete mode 100644 src/pages/issue-按批次推荐/job/issueDetail.vue delete mode 100644 src/pages/issue-按批次推荐/job/issueJob.vue create mode 100644 src/pages/issue/record/directIssue.vue create mode 100644 src/pages/pointProductReceipt/index.vue create mode 100644 src/pages/pointProductReceipt/webview.vue delete mode 100644 src/pages/print/index.vue create mode 100644 src/pages/putaway/record/putawayRecord_bat.vue create mode 100644 src/static/icons/icon_copy.svg delete mode 100644 src/uni_modules/uni-badge/changelog.md delete mode 100644 src/uni_modules/uni-badge/components/uni-badge/uni-badge.vue delete mode 100644 src/uni_modules/uni-badge/package.json delete mode 100644 src/uni_modules/uni-badge/readme.md delete mode 100644 src/uni_modules/uni-breadcrumb/changelog.md delete mode 100644 src/uni_modules/uni-breadcrumb/components/uni-breadcrumb-item/uni-breadcrumb-item.vue delete mode 100644 src/uni_modules/uni-breadcrumb/components/uni-breadcrumb/uni-breadcrumb.vue delete mode 100644 src/uni_modules/uni-breadcrumb/package.json delete mode 100644 src/uni_modules/uni-breadcrumb/readme.md delete mode 100644 src/uni_modules/uni-calendar/changelog.md delete mode 100644 src/uni_modules/uni-calendar/components/uni-calendar/calendar.js delete mode 100644 src/uni_modules/uni-calendar/components/uni-calendar/i18n/en.json delete mode 100644 src/uni_modules/uni-calendar/components/uni-calendar/i18n/index.js delete mode 100644 src/uni_modules/uni-calendar/components/uni-calendar/i18n/zh-Hans.json delete mode 100644 src/uni_modules/uni-calendar/components/uni-calendar/i18n/zh-Hant.json delete mode 100644 src/uni_modules/uni-calendar/components/uni-calendar/uni-calendar-item.vue delete mode 100644 src/uni_modules/uni-calendar/components/uni-calendar/uni-calendar.vue delete mode 100644 src/uni_modules/uni-calendar/components/uni-calendar/util.js delete mode 100644 src/uni_modules/uni-calendar/package.json delete mode 100644 src/uni_modules/uni-calendar/readme.md delete mode 100644 src/uni_modules/uni-card/changelog.md delete mode 100644 src/uni_modules/uni-card/components/uni-card/uni-card.vue delete mode 100644 src/uni_modules/uni-card/package.json delete mode 100644 src/uni_modules/uni-card/readme.md delete mode 100644 src/uni_modules/uni-collapse/changelog.md delete mode 100644 src/uni_modules/uni-collapse/components/uni-collapse-item/uni-collapse-item.vue delete mode 100644 src/uni_modules/uni-collapse/components/uni-collapse/uni-collapse.vue delete mode 100644 src/uni_modules/uni-collapse/package.json delete mode 100644 src/uni_modules/uni-collapse/readme.md delete mode 100644 src/uni_modules/uni-countdown/changelog.md delete mode 100644 src/uni_modules/uni-countdown/components/uni-countdown/i18n/en.json delete mode 100644 src/uni_modules/uni-countdown/components/uni-countdown/i18n/index.js delete mode 100644 src/uni_modules/uni-countdown/components/uni-countdown/i18n/zh-Hans.json delete mode 100644 src/uni_modules/uni-countdown/components/uni-countdown/i18n/zh-Hant.json delete mode 100644 src/uni_modules/uni-countdown/components/uni-countdown/uni-countdown.vue delete mode 100644 src/uni_modules/uni-countdown/package.json delete mode 100644 src/uni_modules/uni-countdown/readme.md delete mode 100644 src/uni_modules/uni-data-checkbox/changelog.md delete mode 100644 src/uni_modules/uni-data-checkbox/components/uni-data-checkbox/uni-data-checkbox.vue delete mode 100644 src/uni_modules/uni-data-checkbox/package.json delete mode 100644 src/uni_modules/uni-data-checkbox/readme.md delete mode 100644 src/uni_modules/uni-data-picker/changelog.md delete mode 100644 src/uni_modules/uni-data-picker/components/uni-data-picker/keypress.js delete mode 100644 src/uni_modules/uni-data-picker/components/uni-data-picker/uni-data-picker.vue delete mode 100644 src/uni_modules/uni-data-picker/components/uni-data-pickerview/uni-data-picker.js delete mode 100644 src/uni_modules/uni-data-picker/components/uni-data-pickerview/uni-data-pickerview.vue delete mode 100644 src/uni_modules/uni-data-picker/package.json delete mode 100644 src/uni_modules/uni-data-picker/readme.md delete mode 100644 src/uni_modules/uni-dateformat/changelog.md delete mode 100644 src/uni_modules/uni-dateformat/components/uni-dateformat/date-format.js delete mode 100644 src/uni_modules/uni-dateformat/components/uni-dateformat/uni-dateformat.vue delete mode 100644 src/uni_modules/uni-dateformat/package.json delete mode 100644 src/uni_modules/uni-dateformat/readme.md delete mode 100644 src/uni_modules/uni-datetime-picker/changelog.md delete mode 100644 src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar-item.vue delete mode 100644 src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar.js delete mode 100644 src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar.vue delete mode 100644 src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/en.json delete mode 100644 src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/index.js delete mode 100644 src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hans.json delete mode 100644 src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hant.json delete mode 100644 src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/keypress.js delete mode 100644 src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/time-picker.vue delete mode 100644 src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.vue delete mode 100644 src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/util.js delete mode 100644 src/uni_modules/uni-datetime-picker/package.json delete mode 100644 src/uni_modules/uni-datetime-picker/readme.md delete mode 100644 src/uni_modules/uni-drawer/changelog.md delete mode 100644 src/uni_modules/uni-drawer/components/uni-drawer/keypress.js delete mode 100644 src/uni_modules/uni-drawer/components/uni-drawer/uni-drawer.vue delete mode 100644 src/uni_modules/uni-drawer/package.json delete mode 100644 src/uni_modules/uni-drawer/readme.md delete mode 100644 src/uni_modules/uni-easyinput/changelog.md delete mode 100644 src/uni_modules/uni-easyinput/components/uni-easyinput/common.js delete mode 100644 src/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue delete mode 100644 src/uni_modules/uni-easyinput/package.json delete mode 100644 src/uni_modules/uni-easyinput/readme.md delete mode 100644 src/uni_modules/uni-fab/changelog.md delete mode 100644 src/uni_modules/uni-fab/components/uni-fab/uni-fab.vue delete mode 100644 src/uni_modules/uni-fab/components/uni-fab/uni-fab.vue.bak delete mode 100644 src/uni_modules/uni-fab/package.json delete mode 100644 src/uni_modules/uni-fab/readme.md delete mode 100644 src/uni_modules/uni-fav/changelog.md delete mode 100644 src/uni_modules/uni-fav/components/uni-fav/i18n/en.json delete mode 100644 src/uni_modules/uni-fav/components/uni-fav/i18n/index.js delete mode 100644 src/uni_modules/uni-fav/components/uni-fav/i18n/zh-Hans.json delete mode 100644 src/uni_modules/uni-fav/components/uni-fav/i18n/zh-Hant.json delete mode 100644 src/uni_modules/uni-fav/components/uni-fav/uni-fav.vue delete mode 100644 src/uni_modules/uni-fav/package.json delete mode 100644 src/uni_modules/uni-fav/readme.md delete mode 100644 src/uni_modules/uni-file-picker/changelog.md delete mode 100644 src/uni_modules/uni-file-picker/components/uni-file-picker/choose-and-upload-file.js delete mode 100644 src/uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.vue delete mode 100644 src/uni_modules/uni-file-picker/components/uni-file-picker/upload-file.vue delete mode 100644 src/uni_modules/uni-file-picker/components/uni-file-picker/upload-image.vue delete mode 100644 src/uni_modules/uni-file-picker/components/uni-file-picker/utils.js delete mode 100644 src/uni_modules/uni-file-picker/package.json delete mode 100644 src/uni_modules/uni-file-picker/readme.md delete mode 100644 src/uni_modules/uni-forms/changelog.md delete mode 100644 src/uni_modules/uni-forms/components/uni-forms-item/uni-forms-item.vue delete mode 100644 src/uni_modules/uni-forms/components/uni-forms/uni-forms.vue delete mode 100644 src/uni_modules/uni-forms/components/uni-forms/utils.js delete mode 100644 src/uni_modules/uni-forms/components/uni-forms/validate.js delete mode 100644 src/uni_modules/uni-forms/package.json delete mode 100644 src/uni_modules/uni-forms/readme.md delete mode 100644 src/uni_modules/uni-goods-nav/changelog.md delete mode 100644 src/uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/en.json delete mode 100644 src/uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/index.js delete mode 100644 src/uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/zh-Hans.json delete mode 100644 src/uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/zh-Hant.json delete mode 100644 src/uni_modules/uni-goods-nav/components/uni-goods-nav/uni-goods-nav.vue delete mode 100644 src/uni_modules/uni-goods-nav/package.json delete mode 100644 src/uni_modules/uni-goods-nav/readme.md delete mode 100644 src/uni_modules/uni-grid/changelog.md delete mode 100644 src/uni_modules/uni-grid/components/uni-grid-item/uni-grid-item.vue delete mode 100644 src/uni_modules/uni-grid/components/uni-grid/uni-grid.vue delete mode 100644 src/uni_modules/uni-grid/package.json delete mode 100644 src/uni_modules/uni-grid/readme.md delete mode 100644 src/uni_modules/uni-group/changelog.md delete mode 100644 src/uni_modules/uni-group/components/uni-group/uni-group.vue delete mode 100644 src/uni_modules/uni-group/package.json delete mode 100644 src/uni_modules/uni-group/readme.md delete mode 100644 src/uni_modules/uni-icons/changelog.md delete mode 100644 src/uni_modules/uni-icons/components/uni-icons/icons.js delete mode 100644 src/uni_modules/uni-icons/components/uni-icons/uni-icons.vue delete mode 100644 src/uni_modules/uni-icons/components/uni-icons/uni.ttf delete mode 100644 src/uni_modules/uni-icons/components/uni-icons/uniicons.css delete mode 100644 src/uni_modules/uni-icons/components/uni-icons/uniicons.ttf delete mode 100644 src/uni_modules/uni-icons/package.json delete mode 100644 src/uni_modules/uni-icons/readme.md delete mode 100644 src/uni_modules/uni-indexed-list/changelog.md delete mode 100644 src/uni_modules/uni-indexed-list/components/uni-indexed-list/uni-indexed-list-item.vue delete mode 100644 src/uni_modules/uni-indexed-list/components/uni-indexed-list/uni-indexed-list.vue delete mode 100644 src/uni_modules/uni-indexed-list/package.json delete mode 100644 src/uni_modules/uni-indexed-list/readme.md delete mode 100644 src/uni_modules/uni-link/changelog.md delete mode 100644 src/uni_modules/uni-link/components/uni-link/uni-link.vue delete mode 100644 src/uni_modules/uni-link/package.json delete mode 100644 src/uni_modules/uni-link/readme.md delete mode 100644 src/uni_modules/uni-list/changelog.md delete mode 100644 src/uni_modules/uni-list/components/uni-list-ad/uni-list-ad.vue delete mode 100644 src/uni_modules/uni-list/components/uni-list-chat/uni-list-chat.scss delete mode 100644 src/uni_modules/uni-list/components/uni-list-chat/uni-list-chat.vue delete mode 100644 src/uni_modules/uni-list/components/uni-list-item/uni-list-item.vue delete mode 100644 src/uni_modules/uni-list/components/uni-list/uni-list - 副本.vue delete mode 100644 src/uni_modules/uni-list/components/uni-list/uni-list.vue delete mode 100644 src/uni_modules/uni-list/components/uni-list/uni-refresh.vue delete mode 100644 src/uni_modules/uni-list/components/uni-list/uni-refresh.wxs delete mode 100644 src/uni_modules/uni-list/package.json delete mode 100644 src/uni_modules/uni-list/readme.md delete mode 100644 src/uni_modules/uni-load-more/changelog.md delete mode 100644 src/uni_modules/uni-load-more/components/uni-load-more/i18n/en.json delete mode 100644 src/uni_modules/uni-load-more/components/uni-load-more/i18n/index.js delete mode 100644 src/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hans.json delete mode 100644 src/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hant.json delete mode 100644 src/uni_modules/uni-load-more/components/uni-load-more/uni-load-more.vue delete mode 100644 src/uni_modules/uni-load-more/package.json delete mode 100644 src/uni_modules/uni-load-more/readme.md delete mode 100644 src/uni_modules/uni-nav-bar/changelog.md delete mode 100644 src/uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar.vue delete mode 100644 src/uni_modules/uni-nav-bar/components/uni-nav-bar/uni-status-bar.vue delete mode 100644 src/uni_modules/uni-nav-bar/package.json delete mode 100644 src/uni_modules/uni-nav-bar/readme.md delete mode 100644 src/uni_modules/uni-notice-bar/changelog.md delete mode 100644 src/uni_modules/uni-notice-bar/components/uni-notice-bar/uni-notice-bar.vue delete mode 100644 src/uni_modules/uni-notice-bar/package.json delete mode 100644 src/uni_modules/uni-notice-bar/readme.md delete mode 100644 src/uni_modules/uni-number-box/changelog.md delete mode 100644 src/uni_modules/uni-number-box/components/uni-number-box/uni-number-box.vue delete mode 100644 src/uni_modules/uni-number-box/package.json delete mode 100644 src/uni_modules/uni-number-box/readme.md delete mode 100644 src/uni_modules/uni-popup/changelog.md delete mode 100644 src/uni_modules/uni-popup/components/uni-popup-dialog/keypress.js delete mode 100644 src/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue delete mode 100644 src/uni_modules/uni-popup/components/uni-popup-message/uni-popup-message.vue delete mode 100644 src/uni_modules/uni-popup/components/uni-popup-share/uni-popup-share.vue delete mode 100644 src/uni_modules/uni-popup/components/uni-popup/i18n/en.json delete mode 100644 src/uni_modules/uni-popup/components/uni-popup/i18n/index.js delete mode 100644 src/uni_modules/uni-popup/components/uni-popup/i18n/zh-Hans.json delete mode 100644 src/uni_modules/uni-popup/components/uni-popup/i18n/zh-Hant.json delete mode 100644 src/uni_modules/uni-popup/components/uni-popup/keypress.js delete mode 100644 src/uni_modules/uni-popup/components/uni-popup/popup.js delete mode 100644 src/uni_modules/uni-popup/components/uni-popup/uni-popup.vue delete mode 100644 src/uni_modules/uni-popup/package.json delete mode 100644 src/uni_modules/uni-popup/readme.md delete mode 100644 src/uni_modules/uni-rate/changelog.md delete mode 100644 src/uni_modules/uni-rate/components/uni-rate/uni-rate.vue delete mode 100644 src/uni_modules/uni-rate/package.json delete mode 100644 src/uni_modules/uni-rate/readme.md delete mode 100644 src/uni_modules/uni-row/changelog.md delete mode 100644 src/uni_modules/uni-row/components/uni-col/uni-col.vue delete mode 100644 src/uni_modules/uni-row/components/uni-row/uni-row.vue delete mode 100644 src/uni_modules/uni-row/package.json delete mode 100644 src/uni_modules/uni-row/readme.md delete mode 100644 src/uni_modules/uni-scss/changelog.md delete mode 100644 src/uni_modules/uni-scss/index.scss delete mode 100644 src/uni_modules/uni-scss/package.json delete mode 100644 src/uni_modules/uni-scss/readme.md delete mode 100644 src/uni_modules/uni-scss/styles/index.scss delete mode 100644 src/uni_modules/uni-scss/styles/setting/_border.scss delete mode 100644 src/uni_modules/uni-scss/styles/setting/_color.scss delete mode 100644 src/uni_modules/uni-scss/styles/setting/_radius.scss delete mode 100644 src/uni_modules/uni-scss/styles/setting/_space.scss delete mode 100644 src/uni_modules/uni-scss/styles/setting/_styles.scss delete mode 100644 src/uni_modules/uni-scss/styles/setting/_text.scss delete mode 100644 src/uni_modules/uni-scss/styles/setting/_variables.scss delete mode 100644 src/uni_modules/uni-scss/styles/tools/functions.scss delete mode 100644 src/uni_modules/uni-scss/theme.scss delete mode 100644 src/uni_modules/uni-scss/variables.scss delete mode 100644 src/uni_modules/uni-search-bar/changelog.md delete mode 100644 src/uni_modules/uni-search-bar/components/uni-search-bar/i18n/en.json delete mode 100644 src/uni_modules/uni-search-bar/components/uni-search-bar/i18n/index.js delete mode 100644 src/uni_modules/uni-search-bar/components/uni-search-bar/i18n/zh-Hans.json delete mode 100644 src/uni_modules/uni-search-bar/components/uni-search-bar/i18n/zh-Hant.json delete mode 100644 src/uni_modules/uni-search-bar/components/uni-search-bar/uni-search-bar.vue delete mode 100644 src/uni_modules/uni-search-bar/package.json delete mode 100644 src/uni_modules/uni-search-bar/readme.md delete mode 100644 src/uni_modules/uni-section/changelog.md delete mode 100644 src/uni_modules/uni-section/components/uni-section/uni-section.vue delete mode 100644 src/uni_modules/uni-section/package.json delete mode 100644 src/uni_modules/uni-section/readme.md delete mode 100644 src/uni_modules/uni-segmented-control/changelog.md delete mode 100644 src/uni_modules/uni-segmented-control/components/uni-segmented-control/uni-segmented-control.vue delete mode 100644 src/uni_modules/uni-segmented-control/package.json delete mode 100644 src/uni_modules/uni-segmented-control/readme.md delete mode 100644 src/uni_modules/uni-steps/changelog.md delete mode 100644 src/uni_modules/uni-steps/components/uni-steps/uni-steps.vue delete mode 100644 src/uni_modules/uni-steps/package.json delete mode 100644 src/uni_modules/uni-steps/readme.md delete mode 100644 src/uni_modules/uni-swipe-action/changelog.md delete mode 100644 src/uni_modules/uni-swipe-action/components/uni-swipe-action-item/bindingx.js delete mode 100644 src/uni_modules/uni-swipe-action/components/uni-swipe-action-item/index.wxs delete mode 100644 src/uni_modules/uni-swipe-action/components/uni-swipe-action-item/isPC.js delete mode 100644 src/uni_modules/uni-swipe-action/components/uni-swipe-action-item/mpalipay.js delete mode 100644 src/uni_modules/uni-swipe-action/components/uni-swipe-action-item/mpother.js delete mode 100644 src/uni_modules/uni-swipe-action/components/uni-swipe-action-item/mpwxs.js delete mode 100644 src/uni_modules/uni-swipe-action/components/uni-swipe-action-item/render.js delete mode 100644 src/uni_modules/uni-swipe-action/components/uni-swipe-action-item/uni-swipe-action-item.vue delete mode 100644 src/uni_modules/uni-swipe-action/components/uni-swipe-action-item/wx.wxs delete mode 100644 src/uni_modules/uni-swipe-action/components/uni-swipe-action/uni-swipe-action.vue delete mode 100644 src/uni_modules/uni-swipe-action/package.json delete mode 100644 src/uni_modules/uni-swipe-action/readme.md delete mode 100644 src/uni_modules/uni-swiper-dot/changelog.md delete mode 100644 src/uni_modules/uni-swiper-dot/components/uni-swiper-dot/uni-swiper-dot.vue delete mode 100644 src/uni_modules/uni-swiper-dot/package.json delete mode 100644 src/uni_modules/uni-swiper-dot/readme.md delete mode 100644 src/uni_modules/uni-table/changelog.md delete mode 100644 src/uni_modules/uni-table/components/uni-table/uni-table.vue delete mode 100644 src/uni_modules/uni-table/components/uni-tbody/uni-tbody.vue delete mode 100644 src/uni_modules/uni-table/components/uni-td/uni-td.vue delete mode 100644 src/uni_modules/uni-table/components/uni-th/filter-dropdown.vue delete mode 100644 src/uni_modules/uni-table/components/uni-th/uni-th.vue delete mode 100644 src/uni_modules/uni-table/components/uni-thead/uni-thead.vue delete mode 100644 src/uni_modules/uni-table/components/uni-tr/table-checkbox.vue delete mode 100644 src/uni_modules/uni-table/components/uni-tr/uni-tr.vue delete mode 100644 src/uni_modules/uni-table/i18n/en.json delete mode 100644 src/uni_modules/uni-table/i18n/es.json delete mode 100644 src/uni_modules/uni-table/i18n/fr.json delete mode 100644 src/uni_modules/uni-table/i18n/index.js delete mode 100644 src/uni_modules/uni-table/i18n/zh-Hans.json delete mode 100644 src/uni_modules/uni-table/i18n/zh-Hant.json delete mode 100644 src/uni_modules/uni-table/package.json delete mode 100644 src/uni_modules/uni-table/readme.md delete mode 100644 src/uni_modules/uni-tag/changelog.md delete mode 100644 src/uni_modules/uni-tag/components/uni-tag/uni-tag.vue delete mode 100644 src/uni_modules/uni-tag/package.json delete mode 100644 src/uni_modules/uni-tag/readme.md delete mode 100644 src/uni_modules/uni-title/changelog.md delete mode 100644 src/uni_modules/uni-title/components/uni-title/uni-title.vue delete mode 100644 src/uni_modules/uni-title/package.json delete mode 100644 src/uni_modules/uni-title/readme.md delete mode 100644 src/uni_modules/uni-tooltip/changelog.md delete mode 100644 src/uni_modules/uni-tooltip/components/uni-tooltip/uni-tooltip.vue delete mode 100644 src/uni_modules/uni-tooltip/package.json delete mode 100644 src/uni_modules/uni-tooltip/readme.md delete mode 100644 src/uni_modules/uni-transition/changelog.md delete mode 100644 src/uni_modules/uni-transition/components/uni-transition/createAnimation.js delete mode 100644 src/uni_modules/uni-transition/components/uni-transition/uni-transition.vue delete mode 100644 src/uni_modules/uni-transition/package.json delete mode 100644 src/uni_modules/uni-transition/readme.md delete mode 100644 src/uni_modules/z-paging/changelog.md delete mode 100644 src/uni_modules/z-paging/components/z-paging-cell/z-paging-cell.vue delete mode 100644 src/uni_modules/z-paging/components/z-paging-empty-view/z-paging-empty-view.vue delete mode 100644 src/uni_modules/z-paging/components/z-paging-swiper-item/z-paging-swiper-item.vue delete mode 100644 src/uni_modules/z-paging/components/z-paging-swiper/z-paging-swiper.vue delete mode 100644 src/uni_modules/z-paging/components/z-paging/components/z-paging-load-more.vue delete mode 100644 src/uni_modules/z-paging/components/z-paging/components/z-paging-refresh.vue delete mode 100644 src/uni_modules/z-paging/components/z-paging/config/index.js delete mode 100644 src/uni_modules/z-paging/components/z-paging/css/z-paging-main.css delete mode 100644 src/uni_modules/z-paging/components/z-paging/css/z-paging-static.css delete mode 100644 src/uni_modules/z-paging/components/z-paging/i18n/en.json delete mode 100644 src/uni_modules/z-paging/components/z-paging/i18n/index.js delete mode 100644 src/uni_modules/z-paging/components/z-paging/i18n/zh-Hans.json delete mode 100644 src/uni_modules/z-paging/components/z-paging/i18n/zh-Hant.json delete mode 100644 src/uni_modules/z-paging/components/z-paging/js/hooks/useZPaging.js delete mode 100644 src/uni_modules/z-paging/components/z-paging/js/hooks/useZPagingComp.js delete mode 100644 src/uni_modules/z-paging/components/z-paging/js/modules/back-to-top.js delete mode 100644 src/uni_modules/z-paging/components/z-paging/js/modules/common-layout.js delete mode 100644 src/uni_modules/z-paging/components/z-paging/js/modules/data-handle.js delete mode 100644 src/uni_modules/z-paging/components/z-paging/js/modules/empty.js delete mode 100644 src/uni_modules/z-paging/components/z-paging/js/modules/i18n.js delete mode 100644 src/uni_modules/z-paging/components/z-paging/js/modules/load-more.js delete mode 100644 src/uni_modules/z-paging/components/z-paging/js/modules/loading.js delete mode 100644 src/uni_modules/z-paging/components/z-paging/js/modules/nvue.js delete mode 100644 src/uni_modules/z-paging/components/z-paging/js/modules/refresher.js delete mode 100644 src/uni_modules/z-paging/components/z-paging/js/modules/scroller.js delete mode 100644 src/uni_modules/z-paging/components/z-paging/js/modules/virtual-list.js delete mode 100644 src/uni_modules/z-paging/components/z-paging/js/z-paging-config.js delete mode 100644 src/uni_modules/z-paging/components/z-paging/js/z-paging-constant.js delete mode 100644 src/uni_modules/z-paging/components/z-paging/js/z-paging-enum.js delete mode 100644 src/uni_modules/z-paging/components/z-paging/js/z-paging-interceptor.js delete mode 100644 src/uni_modules/z-paging/components/z-paging/js/z-paging-main.js delete mode 100644 src/uni_modules/z-paging/components/z-paging/js/z-paging-mixin.js delete mode 100644 src/uni_modules/z-paging/components/z-paging/js/z-paging-static.js delete mode 100644 src/uni_modules/z-paging/components/z-paging/js/z-paging-utils.js delete mode 100644 src/uni_modules/z-paging/components/z-paging/wxs/z-paging-renderjs.js delete mode 100644 src/uni_modules/z-paging/components/z-paging/wxs/z-paging-wxs.wxs delete mode 100644 src/uni_modules/z-paging/components/z-paging/z-paging.vue delete mode 100644 src/uni_modules/z-paging/package.json delete mode 100644 src/uni_modules/z-paging/readme.md delete mode 100644 src/uni_modules/z-tabs/changelog.md delete mode 100644 src/uni_modules/z-tabs/components/z-tabs/config/index.js delete mode 100644 src/uni_modules/z-tabs/components/z-tabs/z-tabs.vue delete mode 100644 src/uni_modules/z-tabs/package.json delete mode 100644 src/uni_modules/z-tabs/readme.md diff --git a/.env.development b/.env.development index 74c2b448..2901a85d 100644 --- a/.env.development +++ b/.env.development @@ -1,4 +1,10 @@ +#VITE_BASE_URL=http://dev.ccwin-in.com:25300/api/admin-api +#VITE_BASE_URL_IMAGE=http://dev.ccwin-in.com:25300/api/admin-api + +VITE_BASE_URL=http://localhost:12080/admin-api VITE_BASE_URL_IMAGE=http://localhost:12080/admin-api # 租户配置 VITE_TENANT='[{"text":"长春","value":1},{"text":"成都","value":2}]' -VITE_BASE_URL=http://localhost:12080/admin-api -#VITE_BASE_URL=http://dev.ccwin-in.com:25203/api/admin-api -VITE_BASE_URL_IMAGE=http://localhost:12080/admin-api \ No newline at end of file +# 是否是测试环境 +VITE_isDevelopment=true + +# 积木报表请求路径 +VITE_JMREPORT_BASE_URL='http://dev.ccwin-in.com:25310' \ No newline at end of file diff --git a/.env.hella13 b/.env.hella13 new file mode 100644 index 00000000..6c92015d --- /dev/null +++ b/.env.hella13 @@ -0,0 +1,11 @@ +VITE_BASE_URL=http://172.21.32.13:81/api/admin-api +VITE_BASE_URL_IMAGE=http://172.21.32.13:81/admin-api + +# 租户配置 +VITE_TENANT='[{"text":"长春","value":1}]' + +# 是否是测试环境 +VITE_isDevelopment=false + +# 积木报表请求路径 +VITE_JMREPORT_BASE_URL='http://172.21.32.13:90' diff --git a/.env.hella14 b/.env.hella14 new file mode 100644 index 00000000..531b171f --- /dev/null +++ b/.env.hella14 @@ -0,0 +1,11 @@ +VITE_BASE_URL=http://172.21.32.14:81/api/admin-api +VITE_BASE_URL_IMAGE=http://172.21.32.14:81/admin-api + +# 租户配置 +VITE_TENANT='[{"text":"长春","value":1}]' + +# 是否是测试环境 +VITE_isDevelopment=false + +# 积木报表请求路径 +VITE_JMREPORT_BASE_URL='http://172.21.32.14:90' diff --git a/.env.hella15 b/.env.hella15 new file mode 100644 index 00000000..272382af --- /dev/null +++ b/.env.hella15 @@ -0,0 +1,11 @@ +VITE_BASE_URL=https://scp.faway-hella.com:81/api/admin-api +VITE_BASE_URL_IMAGE=https://scp.faway-hella.com:81/admin-api + +# 租户配置 +VITE_TENANT='[{"text":"长春","value":1}]' + +# 是否是测试环境 +VITE_isDevelopment=false + +# 积木报表请求路径 +VITE_JMREPORT_BASE_URL='https://scp.faway-hella.com' diff --git a/.env.hella16 b/.env.hella16 new file mode 100644 index 00000000..12a1e8c8 --- /dev/null +++ b/.env.hella16 @@ -0,0 +1,11 @@ +VITE_BASE_URL=https://scptest.faway-hella.com:81/api/admin-api +VITE_BASE_URL_IMAGE=https://scptest.faway-hella.com:81/admin-api + +# 租户配置 +VITE_TENANT='[{"text":"长春","value":1},{"text":"成都","value":2}]' + +# 是否是测试环境 +VITE_isDevelopment=false + +# 积木报表请求路径 +VITE_JMREPORT_BASE_URL='https://scptest.faway-hella.com' diff --git a/.env.hella8 b/.env.hella8 new file mode 100644 index 00000000..d937607a --- /dev/null +++ b/.env.hella8 @@ -0,0 +1,12 @@ +VITE_BASE_URL=http://172.22.32.8:81/api/admin-api +VITE_BASE_URL_IMAGE=http://172.22.32.8:81/admin-api + +# 租户配置 +VITE_TENANT='[{"text":"成都","value":2}]' + +# 是否是测试环境 +VITE_isDevelopment=false + + +# 积木报表请求路径 +VITE_JMREPORT_BASE_URL='http://172.22.32.8:90' diff --git a/.env.hella9 b/.env.hella9 new file mode 100644 index 00000000..588c20f7 --- /dev/null +++ b/.env.hella9 @@ -0,0 +1,11 @@ +VITE_BASE_URL=http://172.22.32.9:81/api/admin-api +VITE_BASE_URL_IMAGE=http://172.22.32.9:81/admin-api + +# 租户配置 +VITE_TENANT='[{"text":"成都","value":2}]' + +# 是否是测试环境 +VITE_isDevelopment=false + +# 积木报表请求路径 +VITE_JMREPORT_BASE_URL='http://172.22.32.9:90' diff --git a/.env.production b/.env.production index c4663c1d..9175d1cc 100644 --- a/.env.production +++ b/.env.production @@ -1,4 +1,7 @@ -# VITE_BASE_URL=http://dev.ccwin-in.com:23111/app -# VITE_BASE_URL_IMAGE=http://dev.ccwin-in.com:23111 -VITE_BASE_URL=https://tmsapp.hongxianggroup.com.cn -VITE_BASE_URL_IMAGE=https://tmsapp.hongxianggroup.com.cn \ No newline at end of file +VITE_BASE_URL=http://172.21.32.14:81/api/admin-api VITE_BASE_URL_IMAGE=http://172.21.32.14:81/admin-api # 租户配置 VITE_TENANT='[{"text":"长春","value":1},{"text":"成都","value":2}]' + +# 是否是测试环境 +VITE_isDevelopment=false + +# 积木报表请求路径 +VITE_JMREPORT_BASE_URL='http://172.21.32.14:90' diff --git a/.env.test b/.env.test index 9d265b12..4c55b151 100644 --- a/.env.test +++ b/.env.test @@ -1,2 +1,12 @@ -VITE_BASE_URL=http://dev.ccwin-in.com:25203/api/admin-api -VITE_BASE_URL_IMAGE=http://dev.ccwin-in.com:25203/api/admin-api \ No newline at end of file + +VITE_BASE_URL=http://dev.ccwin-in.com:25300/api/admin-api +VITE_BASE_URL_IMAGE=http://dev.ccwin-in.com:25300/admin-api + +# 租户配置 +VITE_TENANT='[{"text":"长春","value":1},{"text":"成都","value":2}]' + +# 是否是测试环境 +VITE_isDevelopment=false + +# 积木报表请求路径 +VITE_JMREPORT_BASE_URL='http://dev.ccwin-in.com:25310' diff --git a/package.json b/package.json index 9bb9a762..58fe94ff 100644 --- a/package.json +++ b/package.json @@ -11,10 +11,16 @@ "test:mp-weixin": "uni build -p mp-weixin", "test:app": "uni build -p app", "test:custom": "uni build -p", - "prod": "uni build --mode production", "prod:mp-weixin": "uni build -p mp-weixin --mode production", "prod:app": "uni build -p app --mode production", - "prod:custom": "uni build -p --mode production" + "prod:custom": "uni build -p --mode production", + "prod": "uni build --mode production", + "hella8": "uni build --mode hella8", + "hella9": "uni build --mode hella9", + "hella13": "uni build --mode hella13", + "hella14": "uni build --mode hella14", + "hella15": "uni build --mode hella15", + "hella16": "uni build --mode hella16" }, "dependencies": { "@dcloudio/uni-app": "3.0.0-alpha-3060920221114001", diff --git a/src/api/http.ts b/src/api/http.ts index a3f62b75..d0e64e78 100644 --- a/src/api/http.ts +++ b/src/api/http.ts @@ -20,7 +20,16 @@ const instance = axios.create({ resolve(res) }, fail: (error : any) => { - reject(error) + // var message = error.errMsg + // if (message === 'Network Error') { + // message = '接口连接异常' + // } else if (message.includes('timeout')) { + // message = '接口请求超时' + // } else if (message.includes('Request failed with status code')) { + // message = '接口' + message.substr(message.length - 3) + '异常' + // } + // reject("系统异常:"+message); + // console.log("系统异常",message) } }) }) @@ -34,10 +43,11 @@ const instance = axios.create({ instance.interceptors.request.use((config) => { const { method, params, url } = config // 附带鉴权的token - const tenantId = 1 + // const tenantId = 1 + var tenantId = uni.getStorageSync('tenantId') const headers : any = { token: getAccessToken(), - "tenant-id":tenantId, + "tenant-id": tenantId, 'Authorization': 'Bearer ' + getAccessToken() } if (uni.getStorageSync('openId')) { @@ -66,45 +76,37 @@ instance.interceptors.request.use((config) => { * 响应拦截 */ instance.interceptors.response.use((v) => { - const code = v.data?.code || 200 - if (code === 401) { - // alert('即将跳转登录页。。。', '登录过期') - // setTimeout(redirectHome, 1500) - removeToken() - uni.showModal({ - title: '系统提示', - content: '登录状态已过期,您可以继续留在该页面,或者重新登录', - cancelText: '关闭', - confirmText: '重新登录', - success: function (res) { - if (res.confirm) { - uni.reLaunch({ url: '/pages/login' }) - } + if (v) { + if (v.statusCode == 200) { + if (v.data.code == 0) { + // return v.data + return Promise.resolve(v.data) + }else if(v.data.code == 404){ + uni.showModal({ + title: '系统提示', + content: '登录状态已过期,您可以继续留在该页面,或者重新登录', + cancelText: '关闭', + confirmText: '重新登录', + success: function (res) { + if (res.confirm) { + uni.reLaunch({ url: '/pages/login' }) + } + } + }) + } else { + // return v.data + return Promise.reject("系统异常:" + v.data.msg) } - }) - return v.data - } else if (code === 500) { - uni.showToast({ - title: v.data.msg, - icon: 'none' - }) - return v.data - } else if (code !== 200) { - uni.showToast({ - title: v.data.msg, - icon: 'none' - }) - return v.data - } - // @ts-ignore - if ((v.status || v.statusCode) === 200) { - return v.data - }else{ - + } else { + return Promise.reject("系统异常:" + v.data.msg) + } + + } else { + return Promise.reject("系统异常:" + v.data.msg) } - return Promise.reject(v) -},error=>{ + +}, error => { console.log(error) uni.showToast({ title: '网络错误', diff --git a/src/api/request2.js b/src/api/request2.js index 0b32b413..94f96ef7 100644 --- a/src/api/request2.js +++ b/src/api/request2.js @@ -16,6 +16,7 @@ export function login(username, password, code, uuid) { password, code, uuid, + tenantName } return http.post('/system/auth/login', data) } @@ -285,7 +286,7 @@ export function getMesPackInfo(code) { * */ export function getBasicLocationByCode(code) { - var parmas = { + var params = { code: code, pageNo: 1, pageSize: 100 @@ -730,7 +731,7 @@ export function cancleTakePutawayJob(id) { * @param {*} params */ export function putawayJobSubmit(params) { - return http.put("/wms/putaway-job-main/execute" + params) + return http.put("/wms/putaway-job-main/execute", params) } /** * 采购上架申请 获取任务列表 @@ -1420,6 +1421,14 @@ export function productDismantleJobSubmit() { export function productDismantleRecordSubmit(params) { return http.put("/wms/purchasereceipt-job-main/abandon",params) } +/** + * 拒收接口 + * @param {*} id + * + */ +export function productDismantleJobClose(params) { + return http.put("/wms/purchasereceipt-job-main/refusal?id="+params) +} /** * 制品发货 任务 * status 任务状态 @@ -2118,11 +2127,13 @@ export function productionReturnRecordSubmit(params) { * @param {*} */ export function getUnPlannedIssueRequestList(params) { - return request({ - url: baseApi + "/wms/unplannedissue-request-detail/senior", - method: "post", - data: params, - }); + // return request({ + // url: baseApi + "/wms/unplannedissue-request-detail/senior", + // method: "post", + // data: params, + // }); + + return http.post("/wms/unplannedissue-request-detail/senior",params) } /** @@ -2379,7 +2390,7 @@ export function mergePackageRecordSubmit(params) { */ export function overPackageRecordSubmit(params) { - return http.post("/wms/packageover-main/createe" ,params) + return http.post("/wms/packageover-main/create" ,params) } /** @@ -2393,6 +2404,21 @@ export function getManagementPrecision(params) { return http.post("/wms/rule/getPrecisionStrategyByItemCodes" ,params) } +// 装配收货详情--打印功能 +export function getPrintProductReceiptList(params) { + return http.get("/wms/barbasic/getBarbasicByPackingNumber" ,{params}) +} + +// 根据库存余额获取包装信息进行打印标签 H5 +export function getBalanceToPackage(params) { + return http.get("/wms/package/getBalanceToPackage" ,{params}) +} + + +// 批量打印标签 H5 +export function batchPrintingLable(params) { + return http.post("/wms/package/batchPrintingLable" ,params) +} /** * 查询库存通过多种条件 高级筛选 * @param {*} @@ -2528,6 +2554,20 @@ export function getOverPageJobDetail(id) { * 翻包任务 提交 * @param {*} params */ -export function overPageSubmit(params) { - return http.put("/wms/packageover-job-main/execute") -} \ No newline at end of file +export function overPageSubmit(data) { + return http.put("/wms/packageover-job-main/execute",data) +} +export function getPackageLabel(packageCode) { + var data = { + name: name, + pageNo: 1, + pageSize: 10, + sort:"", + filters:[{ + action: "==", + column:"relateNumber", + value: packageCode + }] + } + return http.post("/wms/barbasic/senior",data) +} diff --git a/src/common/balance.js b/src/common/balance.js index 1a53c9f6..d87945d8 100644 --- a/src/common/balance.js +++ b/src/common/balance.js @@ -84,16 +84,19 @@ export function getPrecisionStrategyList(itemList, callback) { }; getPrecisionStrategy(itemList).then(res => { + console.log(111,res.data) if (res.data == null) { result.success = false result.message = '未查询到管理精度信息' } else { result.list = res.data; } + console.log('haha',result) callback(result); }).catch(error => { result.success = false; result.message = error; + console.log('hehe',result) callback(result); }) } @@ -133,17 +136,21 @@ export function getManagementPrecisions(itemCodes, locationCode, callback) { } export function getBalanceByManagementPrecision(label, locationCode, fromInventoryStatuses, callback) { + let result = { list: [], success: true, message: '' }; + let params = { itemCodes: [label.itemCode], locationCode: locationCode }; // let jsonParem = JSON.stringify(param) getManagementPrecision(params).then(res => { + + console.log("成功"+res) let managementPrecision = res.data[0].ManagementPrecision; switch (managementPrecision) { case 'BY_PACKAGING': @@ -172,6 +179,7 @@ export function getBalanceByManagementPrecision(label, locationCode, fromInvento break; } }).catch(error => { + console.log("失败"+error) let result = { success: false, message: error diff --git a/src/common/calc.js b/src/common/calc.js index 2b48e481..6c5da860 100644 --- a/src/common/calc.js +++ b/src/common/calc.js @@ -1,5 +1,5 @@ /* 解决js计算精度问题 */ -import { Decimal } from 'decimal.js';//引入 +import Decimal from 'decimal.js' class Calc { add(num1,num2) { return new Decimal(num1).add(new Decimal(num2)).toNumber() diff --git a/src/common/detail.js b/src/common/detail.js index 9cfb545f..08e9cc2a 100644 --- a/src/common/detail.js +++ b/src/common/detail.js @@ -34,8 +34,8 @@ export function getTreeDataSource(dataList) { items.forEach(r => r.subList.forEach(s => { s.packList = childList.filter(c => c.parentPackingNumber == s.packingNumber) - s.packList.forEach(pac=>{ - pac.scaned=false; + s.packList.forEach(pac => { + pac.scaned = false; }) }) ) @@ -45,23 +45,23 @@ export function getTreeDataSource(dataList) { } export function getDataSource(subList) { - let items = []; - subList.forEach(detail => { - var item = items.find(r => - r.itemCode == detail.itemCode) - if (item == undefined) { - item = createItemInfo(detail); - let newDetail = createDetailInfo(detail); // - item.subList.push(newDetail); - items.push(item) - } else { - item.qty = calc.add(item.qty, detail.qty) - let newDetail = createDetailInfo(detail); // - item.subList.push(newDetail); - } - }) - return items; - } + let items = []; + subList.forEach(detail => { + var item = items.find(r => + r.itemCode == detail.itemCode) + if (item == undefined) { + item = createItemInfo(detail); + let newDetail = createDetailInfo(detail); // + item.subList.push(newDetail); + items.push(item) + } else { + item.qty = calc.add(item.qty, detail.qty) + let newDetail = createDetailInfo(detail); // + item.subList.push(newDetail); + } + }) + return items; +} export function createItemInfo(detail) { let item = { @@ -104,8 +104,10 @@ export function calcHandleQty(detailSource) { item.handleQty = new Decimal(0).toNumber(); item.qty = new Decimal(0).toNumber(); for (let detail of item.subList) { - if (detail != undefined && detail.scaned) { - item.handleQty = calc.add(item.handleQty, detail.handleQty); + if (detail != undefined) { + if (detail.scaned) { + item.handleQty = calc.add(item.handleQty, detail.handleQty); + } item.qty = calc.add(item.qty, detail.qty); } } @@ -115,14 +117,14 @@ export function calcHandleQty(detailSource) { export function calcTreeHandleQty(detailSource) { for (let item of detailSource) { item.handleQty = new Decimal(0).toNumber(); - + for (let detail of item.subList) { if (detail != undefined && detail.scaned) { - if(detail.packList.length>0){ + if (detail.packList.length > 0) { detail.handleQty = new Decimal(0).toNumber(); - for (let pack of detail.packList){ - if(pack!=undefined&&pack.scaned){ - detail.handleQty = calc.add(detail.handleQty, pack.handleQty); + for (let pack of detail.packList) { + if (pack != undefined && pack.scaned) { + detail.handleQty = calc.add(detail.handleQty, pack.handleQty); } } } diff --git a/src/common/directory.js b/src/common/directory.js index 5eae6dcb..fb6436e3 100644 --- a/src/common/directory.js +++ b/src/common/directory.js @@ -568,5 +568,3 @@ export function getPackUnitName(value) { return resultInfo } - -locationAreaTypeList \ No newline at end of file diff --git a/src/common/record.js b/src/common/record.js index ab5d0c9a..4bd90e91 100644 --- a/src/common/record.js +++ b/src/common/record.js @@ -36,6 +36,8 @@ export function createDetailInfo(balance, pack) { detail.packUnit = pack.packUnit detail.handleQty = new Decimal(detail.qty).toNumber() ; detail.package = pack; + detail.productionlineCode = pack.productionLineCode; // 制品回收记录需要加的 + detail.toInventoryStatus = balance.inventoryStatus; // 制品回收记录需要加的 return detail; } @@ -43,10 +45,13 @@ export function createDetailInfo(balance, pack) { //计算实际数量 export function calcHandleQty(detailSource) { for (let item of detailSource) { + console.log('qqqqqqqqq') item.handleQty = new Decimal(0).toNumber(); item.qty = new Decimal(0).toNumber(); + console.log('bbbbbb') for (let detail of item.subList) { if(detail!=undefined){ + console.log(detail) if(detail.scaned){ item.handleQty = calc.add(item.handleQty,detail.handleQty); } diff --git a/src/common/style/new_style.css b/src/common/style/new_style.css index 3ed4e86c..9e694dcf 100644 --- a/src/common/style/new_style.css +++ b/src/common/style/new_style.css @@ -1,2780 +1,2790 @@ -/*WMY 20220818 cssv1.0*/ -/*公共*/ -uni-page-head .uni-page-head { - z-index: 98 !important; - background-color: #fff !important; -} - -uni-page-head .uni-page-head__title { - font-weight: normal; -} - -.whole { - width: 100%; -} - -.fl { - float: left; -} - -.fr { - float: right; -} - -.tc { - text-align: center; -} - -.text_bold { - font-weight: bold; -} - -.text_black { - color: #101010; -} - -.text_packingCode { - color: #101010; - word-break: break-all; -} - -.text_lightblue { - color: #6A6E7A; -} - -.text_darkblue { - color: #434556; -} - -.text_blue { - color: #5A7CF3; -} - -.font_xs { - font-size: 0.775rem; -} - -.font_sm { - font-size: 0.825rem; -} - -.font_xl { - font-size: 1.125rem; -} - -.font_default { - font-size: 1rem; -} - -.margin_top { - margin-top: 20rpx; -} - -.margin_bottom { - margin-bottom: 20rpx; -} - -.margin_xs_top { - margin-top: 10rpx; -} - -.margin_xs_bottom { - margin-bottom: 10rpx; -} - -.margin_right { - margin-right: 20rpx; -} - -.margin { - margin: 20rpx; -} - -.padding_10 { - padding: 10rpx; -} - -.padding_15 { - padding: 15rpx; -} - -.padding_20 { - padding: 20rpx; -} - -.padding { - padding: 20rpx; -} - -.padding_bottom { - padding-bottom: 20rpx; -} - -.nopad { - padding: 0 !important; -} - -.nopad_bot { - padding-bottom: 0 !important; -} - -/* -物料状态 -未知,可用,隔离,新增,规划,禁用 -*/ - -.item_active { - background-color: #5FCB94; - color: #FFFFFF; -} - -.item_hold { - background-color: #FF4206; - color: #FFFFFF; -} - -.item_new { - background-color: #E6A23C; - color: #FFFFFF; -} - -.item_plan { - background-color: #2677F9; - color: #FFFFFF; -} - -.item_disable { - background-color: #666; - color: #FFFFFF; -} - -/* 器具状态 */ -.container_empty { - background-color: #FF4206; - color: #FFFFFF; -} - -.container_useing { - background-color: #5FCB94; - color: #FFFFFF; -} - - -.container_repair { - background-color: #666; - color: #FFFFFF; -} - -.container_scrap { - background-color: #E6A23C; - color: #FFFFFF; -} - - - -.scan_float { - position: fixed; - z-index: 10; - right: 20rpx; - bottom: 20%; - width: 110rpx; - height: 110rpx; - background-color: #5A7CF3; - border-radius: 50%; - text-align: center; - box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2); - opacity: 0.8; -} - -.scan_float image { - width: 40rpx; - height: 40rpx; - margin-top: 10rpx; -} - -.scan_float view { - color: #fff; - font-size: .725rem; - margin-top: -8rpx; -} - -.top_card { - background-color: #5A7CF3; - overflow: hidden; - /* padding: 20rpx 0; */ -} - -.top_card .device-detail { - /* margin-top: 0 !important; */ -} - -.top_card .mini-type-style { - color: #fff !important; - font-weight: normal; - height: 46rpx; -} - -.cen_card { - padding: 0 0rpx; - width: 100%; - box-sizing: border-box; - float: left; -} - -.cell_box { - width: 100%; -} - -.cell_box .cell_info { - position: relative; - /* width: 25%; */ - padding: 0 20rpx; - /* margin: 0 0 20rpx; */ - text-align: center; -} - -.cell_box .cell_long { - /* width: 33%; */ -} - -.cell_box .cell_info view { - font-size: 0.9375rem; - margin-bottom: 10rpx; - color: #7B8195; -} - -.cell_box .cell_info .text_black { - font-size: 0.875rem; - color: #101010; -} - -.cell_box .cell_info .text_lightblue { - color: #949CB6; - font-size: 0.8rem; -} - -.cell_box .cell_info::after { - position: absolute; - content: ""; - right: 0; - top: 50%; - transform: translateY(-50%); - width: 1px; - height: 20px; - background-color: #ddd; -} - -.cell_box .cell_info:last-child::after { - width: 0; -} - -.cen_card .label_box { - margin-bottom: 20rpx; -} - -.cen_card .label_box .label_info { - background-color: #eee; - color: #434556; - font-size: 0.875rem; - padding: 8rpx; - border-radius: 8rpx; - margin-right: 10rpx; - vertical-align: middle; -} - -.cen_card .label_box .label_info image { - /* float: left; */ - vertical-align: middle; -} - -.cen_card .label_box .label_info text { - /* line-height: 1.25; */ - /* float: left; */ - vertical-align: middle; -} - -.photo_btn { - background-color: #ececec; - color: #5A7CF3; - font-size: 0.875rem; - padding: 8rpx 10rpx; - border-radius: 8rpx; -} - -.photo_btn text { - line-height: 1.5; -} - -.cen_card .cell_box .text_black { - font-size: 0.875rem; -} - -.cen_card .cell_box .cell_info .text_lightblue { - font-size: 0.925rem; -} - -.bot_card { - background-color: #f8f8f8; - padding: 16rpx; - overflow: hidden; -} - -.bot_card_item { - width: 50%; - text-align: left; - height: 60rpx; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; -} - -/* .item_long{ - width: 32% !important; -} -*/ -.item_short { - width: 20%; -} - -.bot_card_item uni-text { - font-size: .725rem; - margin-left: 4rpx; - color: #333333; - background-color: transparent; -} - -.bot_card_item .icon_state { - float: left; - margin-top: 22rpx; -} - -.summary_wrap { - padding: 20rpx; - padding-top: 0; -} - -.summary_state .state_point { - font-size: 0.825rem; -} - -.summary_item uni-text { - font-size: 0.825rem; -} - -.bot_card_item uni-text.state_point { - background-color: transparent; -} - -.bot_card_item label { - vertical-align: middle; -} - -.icon_normal { - width: 58rpx; - height: 58rpx; - vertical-align: middle -} - -.bot_card_item .icon_normal { - float: left; - width: 46rpx; - height: 46rpx; -} - -.icon_bg { - display: inline-block; - width: 46rpx; - height: 46rpx; - border-radius: 4rpx; -} - -.icon_bg_xm { - background-color: #45B5F3; -} - -.icon_bg_kw { - background-color: #5A7CF3; -} - -.icon_bg_pc { - background-color: #BF94EB; -} - -.icon_state { - display: inline-block; - width: 20rpx; - height: 20rpx; - border-radius: 50%; -} - -.state_point { - background: none; -} - -.title_tab { - display: flex; - justify-content: center; - height: 100rpx; -} - -.bottom { - padding: 0 !important; -} - -.uni-popup .uni-scroll-view { - overflow: visible !important; -} - -.uni-popup .uni-scroll-view-content { - overflow-y: scroll; - max-height: 94vh; - background-color: #fff; - border-top-left-radius: 20rpx; - border-top-right-radius: 20rpx; -} - -.uni-popup .scroll-Y { - padding-bottom: 0; -} - -.popup_box { - position: relative; - border-top-left-radius: 16rpx; - border-top-right-radius: 16rpx; - background: #fff url(@/static/icons_ui/popup_bot_bg.png) no-repeat left top; - background-size: 100%; - max-height: 93vh; -} - -.popup_box .pop_title { - font-size: 0.9rem; - font-weight: bold; - color: #fff; - padding: 20rpx 20rpx; - font-size: 35rpx; -} - -.popup_box .pop_title text { - font-size: 0.9rem; - font-weight: normal; -} - -.popup_box .uni-steps { - width: 98%; -} - -.popup_box .top_bg { - width: 100%; - height: inherit; -} - -.popup_box .pop_tab { - padding: 20rpx; - box-sizing: border-box; - width: 100%; -} - -.popup_box .pop_tab .tab_tit { - font-size: .825rem; - text-align: center; - color: #333; - background-color: #fff; - /* width: 30%; */ - box-sizing: border-box; - padding: 10rpx 16rpx; - border-top-left-radius: 8rpx; - border-top-right-radius: 8rpx; - margin-right: 6rpx; -} - -.popup_box .pop_tab .tab_tit_active { - color: #5A7CF3; - font-weight: bold; - /* font-size: 0.875rem; */ -} - -.popup_box .pop_tab .tab_info { - position: relative; - background-color: #fff; - border-radius: 8rpx; - box-shadow: 0 6rpx 20rpx rgba(90, 124, 143, 0.1); - min-height: 100rpx; -} - -.popup_box .pop_tab .tab_info textarea { - height: 320rpx; -} - -.popup_box .pop_tab .tab_info .uni-textarea-placeholder { - font-size: 0.825rem; -} - -.popup_box .scan_scroll { - max-height: 41vh; - width: 100%; - overflow-x: hidden; - overflow-y: scroll; -} - -.popup_box .scan_scroll .uni-scroll-view-content { - /* width: 104%; */ - overflow-x: hidden; - background-color: transparent; -} - -.popup_box .pop_tab .next_info { - box-shadow: 0 0 20rpx rgba(90, 124, 143, 0.1); -} - -.popup_box .pop_tab .tab_notitle { - border-radius: 8rpx; -} - -.popup_box .pop_tab .tab_info button { - position: absolute; - bottom: 10rpx; - right: 20rpx; - background: #3C9CFF; - color: #fff; - border: 0; - border-radius: 8rpx; - width: 130rpx; - float: right; - font-size: .725rem; -} - -.popup_box .pop_tab .tab_info textarea { - padding-top: 20rpx; -} - -.list_wrap { - margin: 20rpx; -} - -.ljh_box { - padding: 20rpx; - z-index: 10; - width: 100%; - float: left; - box-sizing: border-box; -} - -.ljh_left { - margin-top: 10rpx; -} - -/* .ljh_right{ - float: right; -} */ -.ljh_right uni-text { - line-height: 1.5; -} - -.ljh_right .tnum .num_edit { - background-color: #FFF9DB; - width: 150rpx; -} - -.ljh_right .tnum { - font-size: 1.25rem; - color: #EC5B28; - font-weight: bold; - margin-right: 4rpx; -} - -.ljh_right .tunit { - font-size: 0.875rem; - color: #F5AB91; -} - -.ljh_box .tit_ljh { - line-height: 1.5; - font-size: 0.875rem; - color: #101010; - font-weight: bold; - word-break: break-all; -} - -.ljh_box .tit_ljh .mini-type-style { - float: left; - margin-top: 10rpx; - padding: 0 8rpx; - font-size: 0.725rem; -} - -.ljh_box .tit_ljh .state-style, -.top_card .state-style { - font-size: .625rem; - padding: 4rpx 6rpx; - margin-right: 8rpx; - vertical-align: middle; - font-weight: normal; - border-radius: 4rpx; - color: #fff; -} - -.ljh_box .tit_ljh .state-style { - /* padding: 6rpx; */ -} - -.ljh_box .tit_ljh text { - float: left; -} - -.ljh_box .desc_ljh { - line-height: 1.5; -} - -.label_normal { - margin-top: 20rpx; -} - -.label_normal .label_col image { - float: left; - vertical-align: middle; -} - -.label_normal .label_col text { - font-size: 0.825rem; - line-height: 1.25; - float: left; - color: #434556; -} - -.lo_cellbox { - margin-top: 20rpx; -} - -.lo_cellbox .cell_info { - margin-bottom: 0; -} - -/*提交按钮*/ -.new_btn_bot { - position: fixed; - bottom: 0; - left: 0; - box-sizing: border-box; - width: 100%; - background-color: #fff; - padding: 20rpx; - z-index: 10; - box-shadow: 0 0 20rpx rgba(0, 0, 0, 0.2); -} - -.bot_pos { - position: initial; -} - -.new_btn_bot .new_save_btn { - background-color: #E7ECFF; - color: #5A7CF3; - font-size: .875rem; -} - -.new_btn_bot .new_clear_btn { - background-color: #FFDADD; - color: #f00; - font-size: .875rem; - margin-right: 20rpx; -} - -.new_btn_bot .new_cancel_btn { - background-color: #eee; - color: #333; - font-size: .875rem; - margin-right: 20rpx; -} - -.new_btn_bot .btn_double { - width: 50%; -} - -.new_btn_bot uni-button:after { - border: 0; -} - -.choose_main { - position: relative; - z-index: 2; -} - -.choose_layout { - position: relative; - width: 100%; - height: 130rpx; - background-color: #fff; - -} - -.choose_icon_layout { - position: absolute; - right: 160rpx; - top: 10rpx; - bottom: 0rpx; - /* width: 100rpx; - height:100rpx; */ -} - -.choose_icon { - margin-top: 5rpx; - margin-bottom: 10rpx; - width: 100rpx; - height: 100rpx; -} - -.choose_marked { - position: absolute; - width: 100%; - /* height: 100%; */ - top: 0; - left: 0; - bottom: 0; - right: 0; - border-top: 6rpx solid #5FCB94; - background-image: linear-gradient(rgba(95, 203, 148, 0.5), rgba(95, 203, 148, 0)); - border-top-left-radius: 16rpx; - border-top-right-radius: 16rpx; -} - -.choose_marked_faild { - position: absolute; - width: 100%; - height: 100%; - top: 0; - left: 0; - border-top: 6rpx solid #FF0000; - background-image: linear-gradient(rgba(255, 100, 97, 0.3), rgba(255, 100, 97, 0)); - border-top-left-radius: 16rpx; - border-top-right-radius: 16rpx; -} - -.nodeliver_tag { - position: absolute; - width: 100%; - height: 100%; - top: 0; - left: 0; - border-top-left-radius: 16rpx; - border-top-right-radius: 16rpx; - border-top: 6rpx solid #F54D4D; - background-image: linear-gradient(rgba(245, 77, 77, 0.1), rgba(245, 77, 77, 0)); - -} - -.choose_marked image { - float: right; - margin-right: 28%; - margin-top: 20rpx; - width: 120rpx; - height: 120rpx; -} - -.choose_marked_faild image { - float: right; - margin-right: 28%; - margin-top: 20rpx; - width: 120rpx; - height: 120rpx; -} - -.pop_list { - background-color: #fff; - /* padding: 20rpx; */ - padding-top: 0; - margin-top: 20rpx; -} - -.uni-scroll-view-content .creattp_list { - padding: 6rpx 20rpx 0; - box-sizing: border-box; - width: 96%; -} - -.list_info .uni-scroll-view-content { - max-height: 10vh; -} - -.pop_list .detail-content { - margin-bottom: 20rpx; - border-radius: 16rpx; - overflow: hidden; - box-shadow: 0 0 14rpx rgba(0, 0, 0, 0.1); -} - -.pop_btn { - padding: 20rpx; - padding-top: 0; -} - -.pop_btn button { - width: 49%; - height: 90rpx; - line-height: 90rpx; - font-size: 0.875rem; - margin: 0; - color: #333; -} - -.pop_btn button::after { - border: 0; -} - -.pop_btn .cancel { - background-color: #eee; -} - -.pop_btn .save { - background-color: #5A7CF3; - color: #fff; -} - -.popinpop { - margin: 10px 1%; - border-radius: 8px; - background-color: #fff; - color: #666666; - line-height: 1.5; - box-shadow: 0 0 20rpx rgba(0, 0, 0, 0.1); - width: 98%; - -} - -.scan_btn:after { - border: 8rpx; -} - -.popup_box .pop_tab .tab_info .clean_scan_btn { - background-color: #eee; - color: #333; - margin-right: 140rpx; - border-radius: 8rpx; -} - -.popup_box .pop_tab .tab_info .clean_scan_btn::after { - border: 0; -} - -/*检验任务-topline*/ -.card_task { - padding: 20rpx; - padding-bottom: 0; -} - -.task_num { - border-bottom: 1px solid #eee; - padding-bottom: 10rpx; - margin-bottom: 10rpx; - overflow: hidden; -} - -.top_card .task_num { - border: 0; -} - -.task_num image { - vertical-align: middle; - margin-right: 10rpx; -} - -.task_num text { - color: #333; - vertical-align: middle; -} - -.label_order image { - /* vertical-align: text-bottom; */ - vertical-align: middle; -} - -.label_order text { - font-size: .825rem; - vertical-align: middle; -} - -.tit_jxs { - font-size: 1rem !important; - margin-bottom: 10rpx; -} - -.tit_jxs .state-style { - vertical-align: middle; - margin-top: 6rpx; -} - -/* 为按序发货添加 */ -/* .state-style{ - background-color: #ececec; -} */ -.receipt_bot { - justify-content: space-between; - border-top: 1px solid #eee; - padding-top: 10rpx; -} - -/*收货列表*/ -.require_wrap { - background-color: #fff; - padding: 20rpx; -} - -.require_wrap uni-button:after { - border: 0; -} - -.require_wrap .require_cell { - background: #f5f5f5; - font-size: .825rem; - padding: 10rpx 20rpx; - margin-right: 20rpx; - border-radius: 50rpx; - line-height: 1.5; - margin-left: 0; - border: 1px solid #f5f5f5; -} - -.require_wrap .require_active { - border: 1px solid #5A7CF3; - background-color: #EFF6FF; - color: #5A7CF3; -} - -.require_wrap .require_active text { - display: inline-block; - width: 20rpx; - height: 20rpx; - background-color: #5A7CF3; - border-radius: 50%; - float: left; - margin: 12rpx 10rpx 12rpx 0; -} - -.list_inspect .uni-input-input { - color: #f00; -} - -.list_form { - padding: 20rpx; - padding-top: 0; -} - -.list_form .uni-table-tr { - background-color: #f8f8f8; - color: red; -} - -.list_form .uni-table-th { - padding: 10rpx !important; - border-bottom: 1px solid #ececec; - font-weight: normal !important; - font-size: 0.775rem; - color: red; -} - -.list_form .uni-easyinput { - background-color: #FFF9DB; -} - -.list_form .uni-easyinput__content { - min-height: 50rpx !important; - text-align: center; -} - -.count_shadow { - box-shadow: 0 0 20rpx rgba(0, 0, 0, 0.1); -} - -.count_list { - font-size: 0.8rem; - color: #0F5EFF; - padding: 10rpx 0; -} - -.count_list text:first-child { - margin-left: 0; -} - -.count_list text { - margin: 10rpx; -} - -.popuni_list::after { - height: 0 !important; -} - -.uni-list .list_cell { - margin-bottom: 20rpx; - height: 100rpx; - align-items: center; - box-shadow: 0 0 20rpx rgba(0, 0, 0, 0.1); -} - -.uni-list .list_cell:last-child { - margin-bottom: 0; -} - -.uni-list .list_cell .is-input-border { - border: 0; -} - -.uni-list .list_cell .title { - padding-left: 20rpx; - font-size: 0.875rem; -} - -.uni-list .list_cell .info { - padding-right: 20rpx; - color: #333; - font-size: 0.875rem; -} - -.popuni_list .list_cell { - background-color: #fff; - border-radius: 8rpx; - box-shadow: 0 0 20rpx rgba(0, 0, 0, 0.1); -} - -.popuni_list .list_cell .uni-data-tree-input { - padding-left: 0; -} - -.popuni_list .list_cell .input-value-border { - border: 0; - padding: 0; -} - -.popuni_list .list_cell .selected-list { - padding-left: 0; -} - -/* .uni-list .list_cell .necessary_tag{ - padding-right: 0; - color: #f00; -} */ -.uni-list .list_cell .uni-easyinput { - padding-right: 20rpx; - text-align: right; - box-sizing: border-box; - border: 0; -} - -.uni-list .list_cell .uni-input-input { - font-size: 0.875rem; -} - -.list_card { - margin-top: 20rpx; - box-shadow: 0 0 20rpx rgba(0, 0, 0, 0.1); -} - -.list_card:first-child { - margin-top: 10rpx; -} - -.inspect_form .uni-label { - font-size: 0.875rem; -} - -.pda-list-cell-db .is-input-border, -.pda-list-cell-db .input-value-border { - border: 0 !important; -} - -.list_locode { - padding: 20rpx; - padding-top: 0; -} - -.inspect_card { - background-color: #fff; - margin: 20rpx; - border-radius: 16rpx; -} - -.inspect_card .ljh_box text { - line-height: 1.75; -} - -.inspect_list_locode { - border-bottom: 1px solid #eee; - padding-bottom: 20rpx; -} - -.inspect_list_locode image { - vertical-align: middle; -} - -.default_nodata { - position: relative; - left: 50%; - transform: translateX(-50%); - margin-top: 100rpx; - width: 390rpx; - height: 300rpx; - -} - - -.default_goscan { - width: 100%; -} - -.default_goscan .img_goscan { - position: relative; - width: 500rpx; - height: 500rpx; - left: 50%; - transform: translateX(-50%); -} - -.default_goscan button { - width: 60%; - height: 100rpx; - background-color: #5A7CF3; - color: #fff; - border-radius: 50rpx; - text-align: center; - line-height: 100rpx; -} - -.default_goscan button image { - width: 30rpx; - height: 30rpx; - margin-right: 20rpx; - vertical-align: middle; - margin-top: -8rpx; - -} - -.new_bot_box { - position: fixed; - width: 100%; - left: 0; - bottom: 0; - background-color: transparent; - z-index: 10; -} - -.new_bot_box .uni-collapse { - background-color: transparent !important; -} - -.new_bot_box .uni-collapse-item__title.uni-collapse-item-border { - width: 96%; - margin: 0 2%; - border-top-left-radius: 16rpx; - border-top-right-radius: 16rpx; - overflow: hidden; - text-align: center; -} - -.new_bot_box .uni-collapse-item__title-text { - padding-left: 40rpx; -} - -.new_bot_box .uni-collapse-item__title.uni-collapse-item-border, -.new_bot_box .uni-collapse-item__title-box { - background-color: #7B8195 !important; - color: #fff !important; -} - -.new_bot_box .uni-collapse-item__title-box { - height: 80rpx !important; - line-height: 80rpx !important; -} - -.new_bot_box .content { - background-color: #fff !important; -} - -.new_bot_box .content .uni-easyinput { - box-sizing: border-box; -} - -.new_bot_box .content .uni-data-picker, -.new_bot_box .input-value, -.new_bot_box .uni-input-input, -.new_bot_box .selected-item, -.new_bot_box .placeholder, -.new_bot_box .uni-easyinput__content-input { - font-size: 0.875rem !important; -} - -.new_bot_box .content .tit_bot_box { - padding: 20rpx 20rpx 10rpx; - font-size: 0.875rem; -} - -.new_bot_box .uni-collapse-item__wrap-content.uni-collapse-item--border { - border: 0; -} - -.new_bot_box .border .uni-easyinput { - border: 1px solid #e5e5e5; - border-radius: 10rpx; -} - -.hold_form .uni-table-th-content { - font-weight: normal; - font-size: 0.775rem; -} - -.top_wrap { - padding: 20rpx; - background-color: #fff; -} - -.top_wrap .top_card { - border-radius: 8px; - color: #fff; - line-height: 100rpx; -} - -.top_wrap .top_card .top_lines_info { - padding: 0 20rpx; -} - -.top_wrap .top_card .top_lines_info text { - font-size: 0.9rem; - margin-left: 10rpx; -} - -/* 按序收货 */ -.recept_form { - padding: 20rpx; -} - -.recept_form .form_title { - padding: 20rpx 20rpx 0; -} - -.recept_form .form_title image { - float: left; - margin-top: 10rpx; - margin-right: 10rpx; -} - -.recept_form .form_title text { - font-size: 1rem; - vertical-align: middle; -} - -.recept_form .table--border { - border: 0 !important; -} - -.recept_form th { - background-color: #F3F6FF; - color: #434556 !important; -} - -.recept_form th.table--border, -.recept_form td.table--border { - border: 0; -} - -.recept_form .recept_form_info { - background-color: #fff; - border-radius: 16rpx; - padding-bottom: 16rpx; -} - -.recept_form .uni-table-td { - font-size: 0.8rem; -} - -/* 天津发货详情 */ -.deliver_card { - flex: 1; - line-height: 30px; - margin: 20rpx 20rpx 0; - border-radius: 16rpx; - overflow: hidden; - background-color: transparent; - position: relative; - border-bottom-color: #f5f5f5; - border-bottom-width: 1px; - border-bottom-style: solid; -} - -.deliver_card .card_info { - background-color: #fff; -} - -.deliver_card .deliverState { - background-color: #fff; - padding: 20rpx 10rpx; - background-color: transparent; - border-left: 10rpx solid transparent; -} - -.deliver_card .deliverState .content-text image { - vertical-align: text-bottom; - margin-right: 6rpx; -} - -.deliver_card .deliverState .content-text text { - margin-right: 10rpx; -} - -.deliver_card .deliverState1 { - background-color: #fff; - border-left: 10rpx solid #F6CB61; -} - -.deliver_card .deliverState3 { - background-color: #fff; - border-left: 10rpx solid #5FCB94; -} - -.deliver_card .deliverState4 { - background-color: #fff; - border-left: 10rpx solid #EC5B28; -} - -.deliver_card .card_state { - border: 1px solid transparent; - padding: 0 20rpx; - font-size: 0.8rem; - position: absolute; - right: 20rpx; - top: 50%; - transform: translateY(-50%); - border-radius: 80rpx; -} - -.deliver_card .tjpending { - border-color: #F6CB61; - color: #F6CB61; -} - -.deliver_card .tjsent { - border-color: #5FCB94; - color: #5FCB94; -} - -.deliver_card .tjnosend { - border-color: #EC5B28; - color: #EC5B28; -} - -.login_wrap { - width: 100%; - position: relative; - top: -20rpx; - background-color: #fff; - border-top-left-radius: 16rpx; - border-top-right-radius: 16rpx; -} - -.login_title { - position: absolute; - top: 120rpx; - left: 30rpx; - color: #fff; - font-size: 1.125rem; - font-weight: bold; - letter-spacing: 4rpx; - line-height: 1.5; -} - -.login_title text { - font-size: 1.125rem; - letter-spacing: 0; -} - -/* 登录 */ -.mybox .is-input-border { - border: 0 !important; -} - -/* 消息列表 */ -.msg_body { - background-color: #fff; -} - -.msg_list { - padding-top: 20rpx; -} - -.msg_list .uni-list-chat__header { - width: 60rpx !important; - height: 60rpx !important; - background-color: #3d7eff; - border-color: transparent !important; - border-radius: 6rpx !important; -} - -.msg_list .uni-list--border-top, -.msg_list .uni-list--border-bottom, -.msg_list .uni-list--border:after, -.msg_body .uni-list:after { - height: 0 !important; -} - -.msg_list .uni-list-chat__header-image { - width: 50rpx !important; - height: 50rpx !important; -} - -.msg_list .uni-badge--dot { - left: inherit !important; - right: 20rpx; - top: 40rpx !important; -} - -.msg_list .uni-list-chat__content-title { - font-size: .9rem !important; -} - -.msg_list .hasread .uni-list-chat__header { - background-color: #ccc; -} - -/* index */ -.index_top { - background-color: #5A7CF3; - width: 100%; -} - -.index_top .uni-searchbar { - padding-right: 0 !important; -} - -.index_top .index_btn { - background-color: transparent; - font-size: 0.825rem; - padding: 0 0.9rem; - -} - -.index_top uni-button:after { - border: 0 !important; -} - -.index_top .uni-searchbar__box { - background-color: rgba(255, 255, 255, 0.3) !important; - border-color: transparent !important; - justify-content: inherit !important; -} - -.index_top .uni-searchbar__text-input, -.uni-searchbar__box-icon-search, -.index_top .uniui-search { - color: #fff !important; -} - -.index_top .uni-searchbar__text-placeholder, -.index_top .uni-input-placeholder { - color: #eee !important; -} - -.index_top .uni-input-input { - color: #fff; -} - -.common_title { - font-size: .825rem; - font-weight: bold; -} - -.common_icons { - width: 100%; - padding: 20rpx; - box-sizing: border-box; -} - -.common_icons .common_info { - position: relative; - top: -120rpx; - background-color: #fff; - width: 100%; - box-sizing: border-box; - padding: 20rpx; - border-radius: 16rpx; - - /* box-shadow: 0 0 10rpx rgba(0,0,0,0.1); */ -} - -.common_icons .common_info .common_cell { - margin-right: 20rpx; - text-align: center; -} - -.common_icons .common_info .common_cell .cell_icon { - background-color: #EEF2FE; - border-radius: 50%; - width: 110rpx; - height: 110rpx; - margin: 20rpx 20rpx 0; -} - -.common_icons .common_info .common_cell .cell_icon image { - float: left; - width: 50rpx; - height: 50rpx; - margin: 35rpx; -} - -.common_icons .common_info .cell_last { - margin-right: 0; -} - -uni-tabbar .uni-tabbar-border { - height: 0; -} - -.index_menu { - width: 100%; - float: left; - margin-top: -100rpx; - /* height: calc(100% - 200px); */ -} - -.index_menu .menu_content { - width: 26%; - text-align: center; - float: left; - height: 100%; - overflow-y: scroll; -} - -.index_menu .index_title .title_left { - width: 100%; - border-left: 2px solid transparent; - line-height: 80rpx; - font-size: 0.825rem; - text-align: center; -} - -.index_menu .menu_content .index_title { - width: 100%; - float: left; - line-height: 100rpx; - font-size: 0.825rem; -} - -.index_menu .menu_content .tit_active { - box-sizing: border-box; - background-color: #fff; - border-left: 2px solid #5A7CF3; - font-weight: bold; - float: left; -} - -.index_menuinfo { - width: 74%; - float: left; - box-sizing: border-box; - padding: 20rpx; - position: relative; - overflow-y: scroll; - background-color: #fff; - /* height: 100%; */ - -} - -.menu_ab { - position: absolute; - top: 420rpx; - left: 0; - width: 100%; - z-index: 10; - /* height: calc(100% - 185px); */ - -} - -.index_menuinfo .icon_block { - position: relative; - text-align: center; - width: 33%; - float: left; - /* margin-top: -10rpx; */ -} - -.index_menuinfo .icon_block image { - float: left; - width: 80%; - height: 80rpx; - margin: 3% 10% 0; -} - -.index_menuinfo .icon_block text { - float: left; - width: 100%; - font-size: .8rem; - height: 80rpx; - color: #101010; -} - -.index_menuinfo .icon_block .index_badge { - width: 42rpx; - height: 42rpx; - font-size: 0.6rem; - background-color: #c00; - position: absolute; - right: 0; - color: #fff; - text-align: center; - line-height: 42rpx; - border-radius: 50%; -} - -uni-tabbar.uni-tabbar-bottom .uni-tabbar { - box-shadow: 0 0 20rpx rgba(0, 0, 0, 0.1); -} - -uni-modal .uni-modal__bd { - font-size: 1rem !important; - color: #000 !important; -} - -.passwordpage .uni-forms-item__label .label-text { - font-size: 0.8rem !important; -} - -.passwordpage .is-input-border { - border: 0 !important; -} - -.passwordpage .is-direction-left { - padding: 10rpx 20rpx; - background-color: #fff; - /* margin: 20rpx 0; */ -} - -.passwordpage .uni-forms-item__inner { - padding-bottom: 10rpx !important; -} - -.passwordpage .new_save_btn { - font-size: 1rem; -} - -.personal uni-button:after { - border: 0 !important; -} - -.personal .uni-list:after { - height: 0 !important; -} - -.personal .uni-list-item__icon { - margin-right: 0 !important; -} - -.personal .uni-list-item__extra-text { - font-size: 1rem !important; - color: #101010 !important; - font-weight: bold; -} - -.personal .uni-list--border-top, -.uni-list--border-bottom, -.uni-list--border::after { - background-color: transparent !important; -} - -uni-modal .uni-modal__ft { - font-size: 0.875rem; -} - -uni-modal .uni-modal__title { - color: #333; -} - -uni-modal .uni-modal__bd { - padding: 1.3em 1.6em 1.3em; - min-height: 40px; - /* font-size: 15px; */ - line-height: 1.4; - /* color: #999; */ - max-height: 400px; - overflow-x: hidden; - overflow-y: auto; -} - -uni-modal .uni-modal__hd { - padding: 1em 1.6em .3em; - height: 30px; -} - -/*dy_add*/ -.btn_unusual button { - margin-right: 10rpx; -} - -.btn_unusual button:last-child { - margin-right: 0; -} - -/* .tit_ljh .text_white{ - color: #fff !important; - font-size: 0.725rem; - font-weight: normal; - padding: 4rpx; -} */ -.bot_card .pending { - color: #5FCB94; -} - -.camera_pop { - border-top-left-radius: 16rpx; - border-top-right-radius: 16rpx; -} - -.camera_list { - padding: 20rpx; - box-sizing: border-box; - max-height: 75vh; - overflow-y: scroll; -} - -.camera_list .list_cell { - border-bottom: 1px solid #eee; - box-shadow: none; - margin-bottom: 0; -} - -.camera_list .list_cell .uni-easyinput { - padding-right: 0; -} - -.camera_list .list_cell .title { - color: #666; -} - -.camera_list .selected-item { - font-size: 0.875rem; -} - -.camera_list .input-value span { - padding: 0; - font-size: 0.875rem; -} - -.camera_pop .pop_btn { - background-color: #fff; -} - -.cell_box .result_card .text_black { - font-size: 1rem; -} - -.cell_box .result_card .red { - color: #c00; -} - -.new_btn_bot .btn_triple { - margin-right: 10rpx; -} - -.cell_box .scan_btn_fr { - float: right; - background-color: #ececec; - color: #5A7CF3; - font-size: 0.725rem; - padding: 10rpx 20rpx; - border-radius: 16rpx; - line-height: 2; - margin: 0 20rpx 20rpx 0; - height: 60rpx; -} - -.cell_box .scan_btn_fr image { - /* margin-top: 4rpx; */ - /* float: left; */ -} - -.cell_box .scan_btn_fr text {} - -.login_wrap .content-clear-icon { - display: none; -} - -.login_wrap .conone .uni-easyinput { - padding-left: 10rpx !important; -} - -.quality_cell { - height: auto !important; -} - -.quality_cell .title { - line-height: 80rpx; - color: #666; -} - -.check_textarea { - font-size: 0.875rem; - color: #333; -} - -.check_textarea uni-textarea { - padding: 10rpx 20rpx; - height: 40px; -} - -.check_textarea .uni-textarea-placeholder { - font-size: 0.875rem; - color: #ccc; -} - -.common_card .ljh_box, -.pop_card .ljh { - width: 100%; - box-sizing: border-box; -} - -.common_card .ljh_box .tit_ljh, -.pop_card .ljh_box .tit_ljh { - float: left; - width: 50%; -} - -.common_card .ljh_info, -.pop_card .ljh_info { - width: 100%; - box-sizing: border-box; -} - -.common_card .desc_card, -.pop_card .desc_card { - width: 100%; - box-sizing: border-box; - padding: 0; -} - -.common_card .label_xm, -.pop_card .label_xm { - background-color: #45B5F3; - line-height: 2.0; - padding: 0 10rpx; - color: #fff; - border-radius: 8rpx; - max-width: 300rpx; - font-size: 0.7rem; - overflow: visble; - word-break: break-all; - /* overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - font-size: 0.7rem;*/ -} - -.result_nodata text { - display: inline-block; - width: 100%; - text-align: center; - color: #999; - font-size: 1.125rem; - margin-top: -20rpx; -} - -.passwordpage .uni-forms-item__label { - width: 180rpx !important; -} - -/* 20221114add */ -.semi_col { - margin-top: 0; -} - -.semi_col .uni-collapse-item__title-text span { - font-size: 1rem; - /* font-weight: bold; */ -} - -.semi_col .common_card .ljh_box .tit_ljh { - font-size: 1rem; - width: 56%; - /* font-weight: normal; */ -} - -.semi_col .num_color { - color: #EC5B28; -} - -.issuelist { - position: relative; -} - -.issuelist .notuse, -.issuelist .use { - float: right; - color: #333; - font-size: 0.825rem; -} - -.issuelist .notuse image, -.issuelist .use image { - vertical-align: middle; -} - -.issuecard .task_num { - border: 0; - margin-bottom: 0; - padding: 0; - - border-bottom: 1px solid #eee; - padding-bottom: 10rpx; - margin-bottom: 10rpx; - overflow: hidden; -} - -.issuelist .tag_icon { - width: 94rpx; - height: 94rpx; - position: absolute; - right: 0; - top: -6rpx; -} - -button::after { - border: none; - border-radius: 0; -} - -.btn_confirm { - width: 50%; - border: none; - background: #009EFF; - border-radius: 0; - color: #FFFFFF; -} - -.btn_cancle { - width: 50%; - border: none; - background: #FFFFFF; - border-radius: 0; - color: #000000; -} - -.line_color { - /* color: #E7E6E4; */ - color: #F5EBF4; - /* padding-top: 10rpx; - padding-bottom: 10rpx; */ -} - - - -.filter_button { - font-size: 28rpx; - padding-left: 20rpx; - padding-right: 20rpx; - /* width: 240rpx; */ - color: #fff; - background-color: #3C9CFF; -} - -.filter_button_after { - opacity: 0.7; -} - -.btn_edit_big_confirm { - font-size: 35rpx; - width: 50%; - color: #fff; - background-color: #3C9CFF; - border: none; - border-radius: 0; -} - -.btn_edit_big_cancle { - font-size: 35rpx; - width: 50%; - color: #303133; - border: none; - border-radius: 0; - box-shadow: none; - background-color: #fff; - -} - -.btn_edit_big_after { - opacity: 0.7; -} - -.btn_add_big { - background-color: #D8D8D8; - color: #fff; - text-align: center; - display: flex; - justify-content: center; - align-items: center; -} - -.icons_close { - width: 70rpx; - height: 70rpx; - margin: 10rpx; -} - -.paizhao { - padding-bottom: 10rpx; - padding-top: 20rpx; - padding-left: 20rpx; -} - -.paizhao image { - width: 50rpx; - height: 50rpx; -} - -.card_partCode { - font-size: 36rpx; - font-weight: 500; - padding: 10rpx; - -} - -.card_itemCode { - font-size: 38rpx; - font-weight: bold; - font-weight: 500; -/* padding: 5rpx 10rpx; */ - /* width: 210rpx; */ - word-wrap: break-word; - word-break: break-all; -} - -.card_itemName { - color: #909399; - font-size: 30rpx; - /* padding: 5rpx 10rpx; */ - /* width: 210rpx; */ - word-wrap: break-word; - word-break: break-all; -} - -.card_ProdLine { - color: #909399; - font-size: 30rpx; - padding: 5rpx 30rpx; -} - - -/* .std_pack { - display: flex; - flex-direction: row; - justify-content: center; - align-items: center; - padding: 0px; - color: #909399; - font-size: 30rpx; -} - */ - - -.card_content { - font-size: 32rpx; - padding: 5px; -} - -.card_icon_normal { - width: 45rpx; - height: 45rpx; - vertical-align: middle -} - -.card_packing_code { - color: #3315EB; - padding: 5px; -} - -.card_batch { - color: #9747FF; - padding: 5px; -} - -.card_container { - color: #0076F6; - padding: 5px; -} - - -.card_container_content { - font-size: 32rpx; - padding: 5px; -} - -.card_business { - color: #F1A532; - padding: 5px; -} - -.card_business_content { - font-size: 32rpx; - padding: 5px; -} - -.card_location { - color: #DA8910; - padding: 5px; -} - -.card_to_location { - color: #329362; - padding: 5px; -} - -.card_location_content { - font-size: 32rpx; - padding: 5px; -} - -.card_supportCode { - color: #DA8910; - padding: 5px; -} - -.card_supportCode_content { - font-size: 32rpx; -} - -.card_item_code { - color: #F1A532; - padding: 5px; -} - -.card_product_date { - color: #329362; - padding: 5px; -} - -.card_order { - color: #0076F6; - padding: 5px; -} - -.scan_view { - /* #0CC2B6 20% */ - background: linear-gradient(90deg, rgba(12, 194, 182, 0.2) 0%, rgba(12, 194, 182, 0) 100%) -} - -.card_view { - font-size: 32rpx; - padding: 5rpx; -} - -/* -.pack_view { - font-size: 32rpx; - padding: 5rpx; -} - -.location_view { - font-size: 32rpx; - padding: 5rpx; -} - -.batch_view { - font-size: 32rpx; - padding: 5rpx; -} - */ -.business_view { - font-size: 32rpx; - padding: 5rpx; -} - -.pop_customer { - border-radius: 8rpx; - background-color: #fff; -} - -.nodata { - width: 390rpx; - height: 300rpx; -} - -.text_ellipsis { - white-space: nowrap; - text-overflow: ellipsis; - overflow: hidden; -} - -.task_top { - margin: 0rpx 10rpx; - background-color: #fff; -} - -.task_item { - margin: 0rpx 10rpx; - margin-top: 10rpx; - background-color: #fff; -} - -.task_card { - padding: 12rpx; - background-color: #fff; - border-radius: 10rpx; - margin: 12rpx; -} - -.task_number { - font-size: 35rpx; - font-weight: 600; - /* bold */ -} - -.task_text { - font-size: 30rpx; - margin: 5rpx 0rpx; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} - -.request_state_un-doing { - font-size: 28rpx; - background: rgba(95, 203, 148, 0.2); - color: #22AF68; - padding: 10rpx 20rpx 10rpx 20rpx; - border-radius: 10rpx; -} - -.job_state_doing { - font-size: 28rpx; - background: rgba(236, 156, 0, 0.2); - color: #EC9C00; - padding: 10rpx 20rpx 10rpx 20rpx; - border-radius: 10rpx; -} - -.job_state_un-doing { - font-size: 28rpx; - background: rgba(95, 203, 148, 0.2); - color: #22AF68; - padding: 10rpx 20rpx 10rpx 20rpx; - border-radius: 10rpx; -} - -.job_state_completed { - font-size: 28rpx; - background: rgba(95, 203, 148, 0.2); - color: #22AF68; - padding: 10rpx 20rpx 10rpx 20rpx; - border-radius: 10rpx; -} - -.job_state_close { - font-size: 28rpx; - background: rgba(95, 203, 148, 0.2); - color: #22AF68; - padding: 10rpx 20rpx 10rpx 20rpx; - border-radius: 10rpx; -} - - -.job_state_cancelled { - font-size: 28rpx; - background: rgba(95, 203, 148, 0.2); - color: #ff0000; - padding: 10rpx 20rpx 10rpx 20rpx; - border-radius: 10rpx; -} - -.pop_detail { - background-color: #fff; - width: 100%; - border-radius: 8rpx 8rpx 0rpx 0rpx; - padding: 15rpx; -} - -.pop_detail .item { - padding-top: 5rpx; - padding-bottom: 5rpx; - - margin-left: 10rpx; - margin-right: 10rpx; - - display: flex; - flex-direction: row; - - -webkit-justify-content: space-between; - justify-content: space-between; -} - -.pop_detail .item_title { - padding-top: 5rpx; - padding-bottom: 5rpx; -} - -.pop_detail .text_wrap { - color: #909399; - word-break: break-all; - text-align: right; -} - -.pop_detail .item_big_title { - /* color: #2196F3; */ - /* font-size: 35rpx; */ - margin-left: 10rpx; - margin-right: 10rpx; - margin-top: 10rpx; - margin-bottom: 10rpx; -} - - - - -/deep/.uni-popup .uni-popup__wrapper { - width: 100% !important; - padding: 15rpx 20rpx 15rpx 20rpx; -} - -.btn_bottom { - position: fixed; - bottom: 10rpx; - right: 0; -} - -.btn_add_small { - - background-color: #3C9CFF; - width: 200rpx; - font-size: 30rpx; - color: #fff; - border-radius: 5rpx; -} - -.btn_add_small_after { - opacity: 0.7; -} - -.btn_commit_after { - opacity: 0.7; -} - -/* 禁用时样式 */ -button[disabled] { - background-color: #fff; - color: #666; -} - -.btn_commit { - background-color: #3C9CFF; - font-size: 30rpx; - color: #fff; - text-align: center; - padding-left: 80rpx; - padding-right: 80rpx; - margin-right: 20rpx; - margin-left: 10rpx; -} - -.btn_add { - display: flex; - flex-direction: row; - justify-content: center; - align-items: center; - - position: absolute; - width: 97%; - height: 35px; - border-radius: 3px; - opacity: 1; - padding: 5px; - margin-left: 5px; - margin-right: 5px; - - box-sizing: border-box; - border: 1px dashed #AAAAAA; - background: #D8D8D8; - - color: #FFFFFF; - font-size: 16px; - font-weight: normal; - line-height: 26px; - letter-spacing: 0em; -} - -.btn_clear_after { - opacity: 0.7; -} - - -.btn_clear { - background-color: #fff; - font-size: 30rpx; - color: #000; - text-align: center; - padding-left: 80rpx; - padding-right: 80rpx; - margin-right: 10rpx; - margin-left: 20rpx; -} - -.icons_scan_close { - width: 35rpx; - height: 35rpx; -} - -.count_image { - width: 45rpx; - height: 45rpx; -} - -.count_type_light { - color: #0CC2B6; - font-size: 30rpx; - margin-left: 10rpx; - margin-right: 10rpx; -} - -.count_type_black { - color: #FA5151; - font-size: 30rpx; - margin-left: 10rpx; - margin-right: 10rpx; -} - -.btn_bot { - position: fixed; - bottom: 0; - right: 0; - padding-bottom: 20rpx; - padding-right: 20rpx; - z-index: 10; -} - -.btn_single_commit { - background-color: #3C9CFF; - font-size: 30rpx; - color: #fff; - text-align: center; - width: 180rpx; -} - -.btn_single_reject { - background-color: #F56C6C; - font-size: 30rpx; - color: #fff; - text-align: center; - width: 180rpx; -} - -.center { - display: flex; - flex-direction: row; - justify-content: center; - align-items: center; -} - -.space_between { - display: flex; - flex-direction: row; - justify-content: space-between; -} - -.text_recommend { - color: #0A84FF; - font-size: 38rpx; -} - -.text_balance { - font-size: 36rpx; -} - -.text_default { - color: #000000; - font-size: 36rpx; -} - -.text_greater { - color: #F56C6C; - font-size: 36rpx; -} - -.text_less { - color: #FF9500; - font-size: 36rpx; -} - -.text_equal { - color: #34C759; - font-size: 38rpx; -} - -.std_pack { - display: flex; - flex-direction: row; - justify-content: center; - align-items: center; - padding: 0px; - color: #909399; - font-size: 30rpx; -} - -.std_uom { - color: #909399; - font-size: 30rpx; - margin-left: 5rpx; - margin-right: 5rpx; -} - -.uom { - color: #909399; - font-size: 30rpx; - margin-left: 5rpx; - margin-right: 5rpx; - display: flex; - flex-direction: row; - align-items: center; -} - - -.std_split { - color: #909399; - font-size: 36rpx; - margin-left: 5rpx; - margin-right: 5rpx; -} - -.inspect_job { - color: #F1A532; - font-size: 36rpx; - margin-right: 10rpx; -} - -.ok_job { - color: #53C21D; - font-size: 36rpx; - margin-right: 2rpx; -} - -.nook_job { - color: #E45656; - font-size: 36rpx; - margin-right: 10rpx; -} - -.raw_location { - padding-top: 5rpx; - padding-bottom: 5rpx; - padding-left: 15rpx; - padding-right: 15rpx; - background-color: #34C759; - color: #fff; - font-size: 35rpx; -} - -.fg_location { - padding-top: 5rpx; - padding-bottom: 5rpx; - padding-left: 15rpx; - padding-right: 15rpx; - background-color: #5A7CF3; - color: #fff; - font-size: 35rpx; -} - -.semi_location { - padding-top: 5rpx; - padding-bottom: 5rpx; - padding-left: 15rpx; - padding-right: 15rpx; - background-color: #FF9500; - color: #fff; - font-size: 35rpx; -} - -.hold_location { - padding-top: 5rpx; - padding-bottom: 5rpx; - padding-left: 15rpx; - padding-right: 15rpx; - background-color: #F56C6C; - color: #fff; - font-size: 35rpx; -} - -.unk_location { - padding-top: 5rpx; - padding-bottom: 5rpx; - padding-left: 15rpx; - padding-right: 15rpx; - background-color: #999999; - color: #fff; - font-size: 35rpx; -} - -.qty_input { - width: 150rpx; - height: 60rpx; - line-height: 10rpx; - font-size: 10rpx; - color: #000000; - text-align: right; - border: 1px solid rgb(220, 211, 211); - padding: 5rpx; -} - -.qty_inspect_input { - width: 150rpx; - height: 60rpx; - line-height: 10rpx; - font-size: 10rpx; - color: #000000; - text-align: center; - border: 1px solid rgb(220, 211, 211); - padding: 5rpx; -} - -.icon_close { - width: 100rpx; - height: 100rpx; - opacity: 1; - -} - -.icon_edit { - width: 30rpx; - height: 40%; - opacity: 1; - margin-left: 10rpx; -} - -.title_popup { - margin-top: 16px; - margin-bottom: 16px; - margin-left: 8px; - margin-right: 8px; - font-size: 35rpx; - text-align: center; -} - -.close_button { - /* 自动布局子元素 */ - position: static; - left: 20px; - /* top: 1109.01px; */ - width: 100%; - height: 40px; - border-radius: 40px; - opacity: 1; - - /* 自动布局 */ - display: flex; - flex-direction: row; - justify-content: center; - align-items: center; - padding: 9px 12px; - gap: 10px; - align-self: stretch; - - /* 颜色/白色 */ - background: #FFFFFF; - box-sizing: border-box; - /* 颜色/边框 */ - border: 1px solid #E7E6E4; - z-index: 3; -} - -/** - * 申请状态 新增 - */ -.request_status_new { - font-size: 28rpx; - padding: 10rpx 20rpx 10rpx 20rpx; - border-radius: 10rpx; - background: rgba(34, 175, 104, 0.2); - color: rgba(34, 175, 104, 1); -} - -/** - * 申请状态 审批中 - */ -.request_status_reviewing { - font-size: 28rpx; - background: rgba(236, 156, 0, 0.2); - color: rgba(236, 156, 0, 1); - padding: 10rpx 20rpx 10rpx 20rpx; - border-radius: 10rpx; -} - -/** - * 申请状态 审批通过 - */ -.request_status_agreed { - font-size: 28rpx; - background: rgba(103, 194, 57, 0.2); - color: rgba(103, 194, 57, 1); - padding: 10rpx 20rpx 10rpx 20rpx; - border-radius: 10rpx; -} - -/** - * 申请状态 审批驳回 - */ -.request_status_refused { - font-size: 28rpx; - background: rgba(245, 108, 108, 0.2); - color: rgba(245, 108, 108, 1); - padding: 10rpx 20rpx 10rpx 20rpx; - border-radius: 10rpx; -} - -/** - * 申请状态 处理中 - */ -.request_status_handling { - font-size: 28rpx; - background: rgba(60, 156, 255, 0.2); - color: rgba(60, 156, 255, 1); - padding: 10rpx 20rpx 10rpx 20rpx; - border-radius: 10rpx; -} - -/** - * 申请状态 部分完成 - */ -.request_status_partial { - font-size: 28rpx; - background: #D3FF3C; - color: #ffffff; - padding: 10rpx 20rpx 10rpx 20rpx; - border-radius: 10rpx; -} - -/** - * 申请状态 已完成 - */ -.request_status_completed { - font-size: 28rpx; - background: #D3FF3C; - color: #ffffff; - padding: 10rpx 20rpx 10rpx 20rpx; - border-radius: 10rpx; -} - -/** - * 申请状态 中止 - */ -.request_status_abort { - font-size: 28rpx; - background: #F33140; - color: #ffffff; - padding: 10rpx 20rpx 10rpx 20rpx; - border-radius: 10rpx; -} - -/** - * 申请状态 已关闭 - */ -.request_status_cancelled { - font-size: 28rpx; - background: #F33140; - color: #ffffff; - padding: 10rpx 20rpx 10rpx 20rpx; - border-radius: 10rpx; -} - -.split_line { - background-color: #e0e0e0; - height: 1px; - margin: 10rpx; +/*WMY 20220818 cssv1.0*/ +/*公共*/ +uni-page-head .uni-page-head { + z-index: 98 !important; + background-color: #fff !important; +} + +uni-page-head .uni-page-head__title { + font-weight: normal; +} + +.whole { + width: 100%; +} + +.fl { + float: left; +} + +.fr { + float: right; +} + +.tc { + text-align: center; +} + +.text_bold { + font-weight: bold; +} + +.text_black { + color: #101010; +} + +.text_packingCode { + color: #101010; + word-break: break-all; +} + +.text_lightblue { + color: #6A6E7A; +} + +.text_darkblue { + color: #434556; +} + +.text_blue { + color: #5A7CF3; +} + +.font_xs { + font-size: 0.775rem; +} + +.font_sm { + font-size: 0.825rem; +} + +.font_xl { + font-size: 1.125rem; +} + +.font_default { + font-size: 1rem; +} + +.margin_top { + margin-top: 20rpx; +} + +.margin_bottom { + margin-bottom: 20rpx; +} + +.margin_xs_top { + margin-top: 10rpx; +} + +.margin_xs_bottom { + margin-bottom: 10rpx; +} + +.margin_right { + margin-right: 20rpx; +} + +.margin { + margin: 20rpx; +} + +.padding_10 { + padding: 10rpx; +} + +.padding_15 { + padding: 15rpx; +} + +.padding_20 { + padding: 20rpx; +} + +.padding { + padding: 20rpx; +} + +.padding_bottom { + padding-bottom: 20rpx; +} + +.nopad { + padding: 0 !important; +} + +.nopad_bot { + padding-bottom: 0 !important; +} + +/* +物料状态 +未知,可用,隔离,新增,规划,禁用 +*/ + +.item_active { + background-color: #5FCB94; + color: #FFFFFF; +} + +.item_hold { + background-color: #FF4206; + color: #FFFFFF; +} + +.item_new { + background-color: #E6A23C; + color: #FFFFFF; +} + +.item_plan { + background-color: #2677F9; + color: #FFFFFF; +} + +.item_disable { + background-color: #666; + color: #FFFFFF; +} + +/* 器具状态 */ +.container_empty { + background-color: #FF4206; + color: #FFFFFF; +} + +.container_useing { + background-color: #5FCB94; + color: #FFFFFF; +} + + +.container_repair { + background-color: #666; + color: #FFFFFF; +} + +.container_scrap { + background-color: #E6A23C; + color: #FFFFFF; +} + + + +.scan_float { + position: fixed; + z-index: 10; + right: 20rpx; + bottom: 20%; + width: 110rpx; + height: 110rpx; + background-color: #5A7CF3; + border-radius: 50%; + text-align: center; + box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2); + opacity: 0.8; + display: flex; + align-items: center; + justify-content: center; + flex-direction: column; +} + +.scan_float image { + width: 40rpx; + height: 40rpx; +} + +.scan_float view { + color: #fff; + font-size: .725rem; +} + +.top_card { + background-color: #5A7CF3; + overflow: hidden; + /* padding: 20rpx 0; */ +} + +.top_card .device-detail { + /* margin-top: 0 !important; */ +} + +.top_card .mini-type-style { + color: #fff !important; + font-weight: normal; + height: 46rpx; +} + +.cen_card { + padding: 0 0rpx; + width: 100%; + box-sizing: border-box; + background:#EEF4FA; + padding:20rpx; + border-radius: 10rpx; +} + +.cell_box { + width: 100%; +} + +.cell_box .cell_info { + position: relative; + /* width: 25%; */ + padding: 0 20rpx; + /* margin: 0 0 20rpx; */ + text-align: center; + flex:1 +} + +.cell_box .cell_long { + /* width: 33%; */ +} + +.cell_box .cell_info view { + font-size: 0.9375rem; + margin-bottom: 10rpx; + color: #515562; + word-wrap:break-word +} + +.cell_box .cell_info .text_black { + font-size: 0.875rem; + color: #101010; +} + +.cell_box .cell_info .text_lightblue { + color: #949CB6; + font-size: 0.8rem; +} + +.cell_box .cell_info::after { + position: absolute; + content: ""; + right: 0; + top: 50%; + transform: translateY(-50%); + width: 1px; + height: 20px; + background-color: #ddd; +} + +.cell_box .cell_info:last-child::after { + width: 0; +} + +.cen_card .label_box { + margin-bottom: 20rpx; +} + +.cen_card .label_box .label_info { + background-color: #eee; + color: #434556; + font-size: 0.875rem; + padding: 8rpx; + border-radius: 8rpx; + margin-right: 10rpx; + vertical-align: middle; +} + +.cen_card .label_box .label_info image { + /* float: left; */ + vertical-align: middle; +} + +.cen_card .label_box .label_info text { + /* line-height: 1.25; */ + /* float: left; */ + vertical-align: middle; +} + +.photo_btn { + background-color: #ececec; + color: #5A7CF3; + font-size: 0.875rem; + padding: 8rpx 10rpx; + border-radius: 8rpx; +} + +.photo_btn text { + line-height: 1.5; +} + +.cen_card .cell_box .text_black { + font-size: 0.875rem; +} + +.cen_card .cell_box .cell_info .text_lightblue { + font-size:26rpx; +} + +.bot_card { + background-color: #f8f8f8; + padding: 16rpx; + overflow: hidden; +} + +.bot_card_item { + width: 50%; + text-align: left; + height: 60rpx; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; +} + +/* .item_long{ + width: 32% !important; +} +*/ +.item_short { + width: 20%; +} + +.bot_card_item uni-text { + font-size: .725rem; + margin-left: 4rpx; + color: #333333; + background-color: transparent; +} + +.bot_card_item .icon_state { + float: left; + margin-top: 22rpx; +} + +.summary_wrap { + padding: 20rpx; + padding-top: 0; +} + +.summary_state .state_point { + font-size: 0.825rem; +} + +.summary_item uni-text { + font-size: 0.825rem; +} + +.bot_card_item uni-text.state_point { + background-color: transparent; +} + +.bot_card_item label { + vertical-align: middle; +} + +.icon_normal { + width: 58rpx; + height: 58rpx; + vertical-align: middle +} + +.bot_card_item .icon_normal { + float: left; + width: 46rpx; + height: 46rpx; +} + +.icon_bg { + display: inline-block; + width: 46rpx; + height: 46rpx; + border-radius: 4rpx; +} + +.icon_bg_xm { + background-color: #45B5F3; +} + +.icon_bg_kw { + background-color: #5A7CF3; +} + +.icon_bg_pc { + background-color: #BF94EB; +} + +.icon_state { + display: inline-block; + width: 20rpx; + height: 20rpx; + border-radius: 50%; +} + +.state_point { + background: none; +} + +.title_tab { + display: flex; + justify-content: center; + height: 100rpx; +} + +.bottom { + padding: 0 !important; +} + +.uni-popup .uni-scroll-view { + overflow: visible !important; +} + +.uni-popup .uni-scroll-view-content { + overflow-y: scroll; + max-height: 94vh; + background-color: #fff; + border-top-left-radius: 20rpx; + border-top-right-radius: 20rpx; +} + +.uni-popup .scroll-Y { + padding-bottom: 0; +} + +.popup_box { + position: relative; + border-top-left-radius: 16rpx; + border-top-right-radius: 16rpx; + background: #fff url(@/static/icons_ui/popup_bot_bg.png) no-repeat left top; + background-size: 100%; + max-height: 93vh; +} + +.popup_box .pop_title { + font-size: 0.9rem; + font-weight: bold; + color: #fff; + padding: 20rpx 20rpx; + font-size: 35rpx; +} + +.popup_box .pop_title text { + font-size: 0.9rem; + font-weight: normal; +} + +.popup_box .uni-steps { + width: 98%; +} + +.popup_box .top_bg { + width: 100%; + height: inherit; +} + +.popup_box .pop_tab { + padding: 20rpx; + box-sizing: border-box; + width: 100%; +} + +.popup_box .pop_tab .tab_tit { + font-size: .825rem; + text-align: center; + color: #333; + background-color: #fff; + /* width: 30%; */ + box-sizing: border-box; + padding: 10rpx 16rpx; + border-top-left-radius: 8rpx; + border-top-right-radius: 8rpx; + margin-right: 6rpx; +} + +.popup_box .pop_tab .tab_tit_active { + color: #5A7CF3; + font-weight: bold; + /* font-size: 0.875rem; */ +} + +.popup_box .pop_tab .tab_info { + position: relative; + background-color: #fff; + border-radius: 8rpx; + box-shadow: 0 6rpx 20rpx rgba(90, 124, 143, 0.1); + min-height: 100rpx; +} + +.popup_box .pop_tab .tab_info textarea { + height: 320rpx; +} + +.popup_box .pop_tab .tab_info .uni-textarea-placeholder { + font-size: 0.825rem; +} + +.popup_box .scan_scroll { + max-height: 41vh; + width: 100%; + overflow-x: hidden; + overflow-y: scroll; +} + +.popup_box .scan_scroll .uni-scroll-view-content { + /* width: 104%; */ + overflow-x: hidden; + background-color: transparent; +} + +.popup_box .pop_tab .next_info { + box-shadow: 0 0 20rpx rgba(90, 124, 143, 0.1); +} + +.popup_box .pop_tab .tab_notitle { + border-radius: 8rpx; +} + +.popup_box .pop_tab .tab_info button { + position: absolute; + bottom: 10rpx; + right: 20rpx; + background: #3C9CFF; + color: #fff; + border: 0; + border-radius: 8rpx; + width: 130rpx; + float: right; + font-size: .725rem; +} + +.popup_box .pop_tab .tab_info textarea { + padding-top: 20rpx; +} + +.list_wrap { + margin: 20rpx; +} + +.ljh_box { + padding: 20rpx; + z-index: 10; + width: 100%; + float: left; + box-sizing: border-box; +} + +.ljh_left { + margin-top: 10rpx; +} + +/* .ljh_right{ + float: right; +} */ +.ljh_right uni-text { + line-height: 1.5; +} + +.ljh_right .tnum .num_edit { + background-color: #FFF9DB; + width: 150rpx; +} + +.ljh_right .tnum { + font-size: 1.25rem; + color: #EC5B28; + font-weight: bold; + margin-right: 4rpx; +} + +.ljh_right .tunit { + font-size: 0.875rem; + color: #F5AB91; +} + +.ljh_box .tit_ljh { + line-height: 1.5; + font-size: 0.875rem; + color: #101010; + font-weight: bold; + word-break: break-all; +} + +.ljh_box .tit_ljh .mini-type-style { + float: left; + margin-top: 10rpx; + padding: 0 8rpx; + font-size: 0.725rem; +} + +.ljh_box .tit_ljh .state-style, +.top_card .state-style { + font-size: .625rem; + padding: 4rpx 6rpx; + margin-right: 8rpx; + vertical-align: middle; + font-weight: normal; + border-radius: 4rpx; + color: #fff; +} + +.ljh_box .tit_ljh .state-style { + /* padding: 6rpx; */ +} + +.ljh_box .tit_ljh text { + float: left; +} + +.ljh_box .desc_ljh { + line-height: 1.5; +} + +.label_normal { + margin-top: 20rpx; +} + +.label_normal .label_col image { + float: left; + vertical-align: middle; +} + +.label_normal .label_col text { + font-size: 0.825rem; + line-height: 1.25; + float: left; + color: #434556; +} + +.lo_cellbox { + margin-top: 20rpx; +} + +.lo_cellbox .cell_info { + margin-bottom: 0; +} + +/*提交按钮*/ +.new_btn_bot { + position: fixed; + bottom: 0; + left: 0; + box-sizing: border-box; + width: 100%; + background-color: #fff; + padding: 20rpx; + z-index: 10; + box-shadow: 0 0 20rpx rgba(0, 0, 0, 0.2); +} + +.bot_pos { + position: initial; +} + +.new_btn_bot .new_save_btn { + background-color: #E7ECFF; + color: #5A7CF3; + font-size: .875rem; +} + +.new_btn_bot .new_clear_btn { + background-color: #FFDADD; + color: #f00; + font-size: .875rem; + margin-right: 20rpx; +} + +.new_btn_bot .new_cancel_btn { + background-color: #eee; + color: #333; + font-size: .875rem; + margin-right: 20rpx; +} + +.new_btn_bot .btn_double { + width: 50%; +} + +.new_btn_bot uni-button:after { + border: 0; +} + +.choose_main { + position: relative; + z-index: 2; +} + +.choose_layout { + position: relative; + width: 100%; + height: 130rpx; + background-color: #fff; + +} + +.choose_icon_layout { + position: absolute; + right: 160rpx; + top: 10rpx; + bottom: 0rpx; + /* width: 100rpx; + height:100rpx; */ +} + +.choose_icon { + margin-top: 5rpx; + margin-bottom: 10rpx; + width: 100rpx; + height: 100rpx; +} + +.choose_marked { + position: absolute; + width: 100%; + /* height: 100%; */ + top: 0; + left: 0; + bottom: 0; + right: 0; + border-top: 6rpx solid #5FCB94; + background-image: linear-gradient(rgba(95, 203, 148, 0.5), rgba(95, 203, 148, 0)); + border-top-left-radius: 16rpx; + border-top-right-radius: 16rpx; +} + +.choose_marked_faild { + position: absolute; + width: 100%; + height: 100%; + top: 0; + left: 0; + border-top: 6rpx solid #FF0000; + background-image: linear-gradient(rgba(255, 100, 97, 0.3), rgba(255, 100, 97, 0)); + border-top-left-radius: 16rpx; + border-top-right-radius: 16rpx; +} + +.nodeliver_tag { + position: absolute; + width: 100%; + height: 100%; + top: 0; + left: 0; + border-top-left-radius: 16rpx; + border-top-right-radius: 16rpx; + border-top: 6rpx solid #F54D4D; + background-image: linear-gradient(rgba(245, 77, 77, 0.1), rgba(245, 77, 77, 0)); + +} + +.choose_marked image { + float: right; + margin-right: 28%; + margin-top: 20rpx; + width: 120rpx; + height: 120rpx; +} + +.choose_marked_faild image { + float: right; + margin-right: 28%; + margin-top: 20rpx; + width: 120rpx; + height: 120rpx; +} + +.pop_list { + background-color: #fff; + /* padding: 20rpx; */ + padding-top: 0; + margin-top: 20rpx; +} + +.uni-scroll-view-content .creattp_list { + padding: 6rpx 20rpx 0; + box-sizing: border-box; + width: 96%; +} + +.list_info .uni-scroll-view-content { + max-height: 10vh; +} + +.pop_list .detail-content { + margin-bottom: 20rpx; + border-radius: 16rpx; + overflow: hidden; + box-shadow: 0 0 14rpx rgba(0, 0, 0, 0.1); +} + +.pop_btn { + padding: 20rpx; + padding-top: 0; +} + +.pop_btn button { + width: 49%; + height: 90rpx; + line-height: 90rpx; + font-size: 0.875rem; + margin: 0; + color: #333; +} + +.pop_btn button::after { + border: 0; +} + +.pop_btn .cancel { + background-color: #eee; +} + +.pop_btn .save { + background-color: #5A7CF3; + color: #fff; +} + +.popinpop { + margin: 10px 1%; + border-radius: 8px; + background-color: #fff; + color: #666666; + line-height: 1.5; + box-shadow: 0 0 20rpx rgba(0, 0, 0, 0.1); + width: 98%; + +} + +.scan_btn:after { + border: 8rpx; +} + +.popup_box .pop_tab .tab_info .clean_scan_btn { + background-color: #eee; + color: #333; + margin-right: 140rpx; + border-radius: 8rpx; +} + +.popup_box .pop_tab .tab_info .clean_scan_btn::after { + border: 0; +} + +/*检验任务-topline*/ +.card_task { + padding: 20rpx; + padding-bottom: 0; +} + +.task_num { + border-bottom: 1px solid #eee; + padding-bottom: 10rpx; + margin-bottom: 10rpx; + overflow: hidden; +} + +.top_card .task_num { + border: 0; +} + +.task_num image { + vertical-align: middle; + margin-right: 10rpx; +} + +.task_num text { + color: #333; + vertical-align: middle; +} + +.label_order image { + /* vertical-align: text-bottom; */ + vertical-align: middle; +} + +.label_order text { + font-size: .825rem; + vertical-align: middle; +} + +.tit_jxs { + font-size: 1rem !important; + margin-bottom: 10rpx; +} + +.tit_jxs .state-style { + vertical-align: middle; + margin-top: 6rpx; +} + +/* 为按序发货添加 */ +/* .state-style{ + background-color: #ececec; +} */ +.receipt_bot { + justify-content: space-between; + border-top: 1px solid #eee; + padding-top: 10rpx; +} + +/*收货列表*/ +.require_wrap { + background-color: #fff; + padding: 20rpx; +} + +.require_wrap uni-button:after { + border: 0; +} + +.require_wrap .require_cell { + background: #f5f5f5; + font-size: .825rem; + padding: 10rpx 20rpx; + margin-right: 20rpx; + border-radius: 50rpx; + line-height: 1.5; + margin-left: 0; + border: 1px solid #f5f5f5; +} + +.require_wrap .require_active { + border: 1px solid #5A7CF3; + background-color: #EFF6FF; + color: #5A7CF3; +} + +.require_wrap .require_active text { + display: inline-block; + width: 20rpx; + height: 20rpx; + background-color: #5A7CF3; + border-radius: 50%; + float: left; + margin: 12rpx 10rpx 12rpx 0; +} + +.list_inspect .uni-input-input { + color: #f00; +} + +.list_form { + padding: 20rpx; + padding-top: 0; +} + +.list_form .uni-table-tr { + background-color: #f8f8f8; + color: red; +} + +.list_form .uni-table-th { + padding: 10rpx !important; + border-bottom: 1px solid #ececec; + font-weight: normal !important; + font-size: 0.775rem; + color: red; +} + +.list_form .uni-easyinput { + background-color: #FFF9DB; +} + +.list_form .uni-easyinput__content { + min-height: 50rpx !important; + text-align: center; +} + +.count_shadow { + box-shadow: 0 0 20rpx rgba(0, 0, 0, 0.1); +} + +.count_list { + font-size: 0.8rem; + color: #0F5EFF; + padding: 10rpx 0; +} + +.count_list text:first-child { + margin-left: 0; +} + +.count_list text { + margin: 10rpx; +} + +.popuni_list::after { + height: 0 !important; +} + +.uni-list .list_cell { + margin-bottom: 20rpx; + height: 100rpx; + align-items: center; + box-shadow: 0 0 20rpx rgba(0, 0, 0, 0.1); +} + +.uni-list .list_cell:last-child { + margin-bottom: 0; +} + +.uni-list .list_cell .is-input-border { + border: 0; +} + +.uni-list .list_cell .title { + padding-left: 20rpx; + font-size: 0.875rem; +} + +.uni-list .list_cell .info { + padding-right: 20rpx; + color: #333; + font-size: 0.875rem; +} + +.popuni_list .list_cell { + background-color: #fff; + border-radius: 8rpx; + box-shadow: 0 0 20rpx rgba(0, 0, 0, 0.1); +} + +.popuni_list .list_cell .uni-data-tree-input { + padding-left: 0; +} + +.popuni_list .list_cell .input-value-border { + border: 0; + padding: 0; +} + +.popuni_list .list_cell .selected-list { + padding-left: 0; +} + +/* .uni-list .list_cell .necessary_tag{ + padding-right: 0; + color: #f00; +} */ +.uni-list .list_cell .uni-easyinput { + padding-right: 20rpx; + text-align: right; + box-sizing: border-box; + border: 0; +} + +.uni-list .list_cell .uni-input-input { + font-size: 0.875rem; +} + +.list_card { + margin-top: 20rpx; + box-shadow: 0 0 20rpx rgba(0, 0, 0, 0.1); +} + +.list_card:first-child { + margin-top: 10rpx; +} + +.inspect_form .uni-label { + font-size: 0.875rem; +} + +.pda-list-cell-db .is-input-border, +.pda-list-cell-db .input-value-border { + border: 0 !important; +} + +.list_locode { + padding: 20rpx; + padding-top: 0; +} + +.inspect_card { + background-color: #fff; + margin: 20rpx; + border-radius: 16rpx; +} + +.inspect_card .ljh_box text { + line-height: 1.75; +} + +.inspect_list_locode { + border-bottom: 1px solid #eee; + padding-bottom: 20rpx; +} + +.inspect_list_locode image { + vertical-align: middle; +} + +.default_nodata { + position: relative; + left: 50%; + transform: translateX(-50%); + margin-top: 100rpx; + width: 390rpx; + height: 300rpx; + +} + + +.default_goscan { + width: 100%; +} + +.default_goscan .img_goscan { + position: relative; + width: 500rpx; + height: 500rpx; + left: 50%; + transform: translateX(-50%); +} + +.default_goscan button { + width: 60%; + height: 100rpx; + background-color: #5A7CF3; + color: #fff; + border-radius: 50rpx; + text-align: center; + line-height: 100rpx; +} + +.default_goscan button image { + width: 30rpx; + height: 30rpx; + margin-right: 20rpx; + vertical-align: middle; + margin-top: -8rpx; + +} + +.new_bot_box { + position: fixed; + width: 100%; + left: 0; + bottom: 0; + background-color: transparent; + z-index: 10; +} + +.new_bot_box .uni-collapse { + background-color: transparent !important; +} + +.new_bot_box .uni-collapse-item__title.uni-collapse-item-border { + width: 96%; + margin: 0 2%; + border-top-left-radius: 16rpx; + border-top-right-radius: 16rpx; + overflow: hidden; + text-align: center; +} + +.new_bot_box .uni-collapse-item__title-text { + padding-left: 40rpx; +} + +.new_bot_box .uni-collapse-item__title.uni-collapse-item-border, +.new_bot_box .uni-collapse-item__title-box { + background-color: #7B8195 !important; + color: #fff !important; +} + +.new_bot_box .uni-collapse-item__title-box { + height: 80rpx !important; + line-height: 80rpx !important; +} + +.new_bot_box .content { + background-color: #fff !important; +} + +.new_bot_box .content .uni-easyinput { + box-sizing: border-box; +} + +.new_bot_box .content .uni-data-picker, +.new_bot_box .input-value, +.new_bot_box .uni-input-input, +.new_bot_box .selected-item, +.new_bot_box .placeholder, +.new_bot_box .uni-easyinput__content-input { + font-size: 0.875rem !important; +} + +.new_bot_box .content .tit_bot_box { + padding: 20rpx 20rpx 10rpx; + font-size: 0.875rem; +} + +.new_bot_box .uni-collapse-item__wrap-content.uni-collapse-item--border { + border: 0; +} + +.new_bot_box .border .uni-easyinput { + border: 1px solid #e5e5e5; + border-radius: 10rpx; +} + +.hold_form .uni-table-th-content { + font-weight: normal; + font-size: 0.775rem; +} + +.top_wrap { + padding: 20rpx; + background-color: #fff; +} + +.top_wrap .top_card { + border-radius: 8px; + color: #fff; + line-height: 100rpx; +} + +.top_wrap .top_card .top_lines_info { + padding: 0 20rpx; +} + +.top_wrap .top_card .top_lines_info text { + font-size: 0.9rem; + margin-left: 10rpx; +} + +/* 按序收货 */ +.recept_form { + padding: 20rpx; +} + +.recept_form .form_title { + padding: 20rpx 20rpx 0; +} + +.recept_form .form_title image { + float: left; + margin-top: 10rpx; + margin-right: 10rpx; +} + +.recept_form .form_title text { + font-size: 1rem; + vertical-align: middle; +} + +.recept_form .table--border { + border: 0 !important; +} + +.recept_form th { + background-color: #F3F6FF; + color: #434556 !important; +} + +.recept_form th.table--border, +.recept_form td.table--border { + border: 0; +} + +.recept_form .recept_form_info { + background-color: #fff; + border-radius: 16rpx; + padding-bottom: 16rpx; +} + +.recept_form .uni-table-td { + font-size: 0.8rem; +} + +/* 天津发货详情 */ +.deliver_card { + flex: 1; + line-height: 30px; + margin: 20rpx 20rpx 0; + border-radius: 16rpx; + overflow: hidden; + background-color: transparent; + position: relative; + border-bottom-color: #f5f5f5; + border-bottom-width: 1px; + border-bottom-style: solid; +} + +.deliver_card .card_info { + background-color: #fff; +} + +.deliver_card .deliverState { + background-color: #fff; + padding: 20rpx 10rpx; + background-color: transparent; + border-left: 10rpx solid transparent; +} + +.deliver_card .deliverState .content-text image { + vertical-align: text-bottom; + margin-right: 6rpx; +} + +.deliver_card .deliverState .content-text text { + margin-right: 10rpx; +} + +.deliver_card .deliverState1 { + background-color: #fff; + border-left: 10rpx solid #F6CB61; +} + +.deliver_card .deliverState3 { + background-color: #fff; + border-left: 10rpx solid #5FCB94; +} + +.deliver_card .deliverState4 { + background-color: #fff; + border-left: 10rpx solid #EC5B28; +} + +.deliver_card .card_state { + border: 1px solid transparent; + padding: 0 20rpx; + font-size: 0.8rem; + position: absolute; + right: 20rpx; + top: 50%; + transform: translateY(-50%); + border-radius: 80rpx; +} + +.deliver_card .tjpending { + border-color: #F6CB61; + color: #F6CB61; +} + +.deliver_card .tjsent { + border-color: #5FCB94; + color: #5FCB94; +} + +.deliver_card .tjnosend { + border-color: #EC5B28; + color: #EC5B28; +} + +.login_wrap { + width: 100%; + position: relative; + top: -20rpx; + background-color: #fff; + border-top-left-radius: 16rpx; + border-top-right-radius: 16rpx; +} + +.login_title { + position: absolute; + top: 120rpx; + left: 30rpx; + color: #fff; + font-size: 1.125rem; + font-weight: bold; + letter-spacing: 4rpx; + line-height: 1.5; +} + +.login_title text { + font-size: 1.125rem; + letter-spacing: 0; +} + +/* 登录 */ +.mybox .is-input-border { + border: 0 !important; +} + +/* 消息列表 */ +.msg_body { + background-color: #fff; +} + +.msg_list { +} + +.msg_list ::v-deep .u-card__head--left__thumb{ + width: 60rpx !important; + height: 60rpx !important; + padding:12rpx; + background-color: #3d7eff!important; + border-color: transparent !important; + border-radius: 6rpx !important; +} + +.msg_list .uni-list--border-top, +.msg_list .uni-list--border-bottom, +.msg_list .uni-list--border:after, +.msg_body .uni-list:after { + height: 0 !important; +} + +.msg_list .uni-list-chat__header-image { + width: 50rpx !important; + height: 50rpx !important; +} + +.msg_list .uni-badge--dot { + left: inherit !important; + right: 20rpx; + top: 40rpx !important; +} + +.msg_list .uni-list-chat__content-title { + font-size: .9rem !important; +} + ::v-deep .msg_list .hasread .u-card__head--left__thumb { + background-color: #ccc!important; +} + +/* index */ +.index_top { + background-color: #5A7CF3; + width: 100%; +} + +.index_top .uni-searchbar { + padding-right: 0 !important; +} + +.index_top .index_btn { + background-color: transparent; + font-size: 0.825rem; + padding: 0 0.9rem; + +} + +.index_top uni-button:after { + border: 0 !important; +} + +.index_top .uni-searchbar__box { + background-color: rgba(255, 255, 255, 0.3) !important; + border-color: transparent !important; + justify-content: inherit !important; +} + +.index_top .uni-searchbar__text-input, +.uni-searchbar__box-icon-search, +.index_top .uniui-search { + color: #fff !important; +} + +.index_top .uni-searchbar__text-placeholder, +.index_top .uni-input-placeholder { + color: #eee !important; +} + +.index_top .uni-input-input { + color: #fff; +} + +.common_title { + font-size: .825rem; + font-weight: bold; +} + +.common_icons { + width: 100%; + padding: 20rpx; + box-sizing: border-box; +} + +.common_icons .common_info { + position: relative; + top: -120rpx; + background-color: #fff; + width: 100%; + box-sizing: border-box; + padding: 20rpx; + border-radius: 16rpx; + + /* box-shadow: 0 0 10rpx rgba(0,0,0,0.1); */ +} + +.common_icons .common_info .common_cell { + margin-right: 20rpx; + text-align: center; +} + +.common_icons .common_info .common_cell .cell_icon { + background-color: #EEF2FE; + border-radius: 50%; + width: 110rpx; + height: 110rpx; + margin: 20rpx 20rpx 0; +} + +.common_icons .common_info .common_cell .cell_icon image { + float: left; + width: 50rpx; + height: 50rpx; + margin: 35rpx; +} + +.common_icons .common_info .cell_last { + margin-right: 0; +} + +uni-tabbar .uni-tabbar-border { + height: 0; +} + +.index_menu { + width: 100%; + float: left; + margin-top: -100rpx; + /* height: calc(100% - 200px); */ +} + +.index_menu .menu_content { + width: 26%; + text-align: center; + float: left; + height: 100%; + overflow-y: scroll; +} + +.index_menu .index_title .title_left { + width: 100%; + border-left: 2px solid transparent; + line-height: 80rpx; + font-size: 0.825rem; + text-align: center; +} + +.index_menu .menu_content .index_title { + width: 100%; + float: left; + line-height: 100rpx; + font-size: 0.825rem; +} + +.index_menu .menu_content .tit_active { + box-sizing: border-box; + background-color: #fff; + border-left: 2px solid #5A7CF3; + font-weight: bold; + float: left; +} + +.index_menuinfo { + width: 74%; + float: left; + box-sizing: border-box; + padding: 20rpx; + position: relative; + overflow-y: scroll; + background-color: #fff; + /* height: 100%; */ + +} + +.menu_ab { + position: absolute; + top: 420rpx; + left: 0; + width: 100%; + z-index: 10; + /* height: calc(100% - 185px); */ + +} + +.index_menuinfo .icon_block { + position: relative; + text-align: center; + width: 33%; + float: left; + /* margin-top: -10rpx; */ +} + +.index_menuinfo .icon_block image { + float: left; + width: 80%; + height: 80rpx; + margin: 3% 10% 0; +} + +.index_menuinfo .icon_block text { + float: left; + width: 100%; + font-size: .8rem; + height: 80rpx; + color: #101010; +} + +.index_menuinfo .icon_block .index_badge { + width: 42rpx; + height: 42rpx; + font-size: 0.6rem; + background-color: #c00; + position: absolute; + right: 0; + color: #fff; + text-align: center; + line-height: 42rpx; + border-radius: 50%; +} + +uni-tabbar.uni-tabbar-bottom .uni-tabbar { + box-shadow: 0 0 20rpx rgba(0, 0, 0, 0.1); +} + +uni-modal .uni-modal__bd { + font-size: 1rem !important; + color: #000 !important; +} + +.passwordpage .uni-forms-item__label .label-text { + font-size: 0.8rem !important; +} + +.passwordpage .is-input-border { + border: 0 !important; +} + +.passwordpage .is-direction-left { + padding: 10rpx 20rpx; + background-color: #fff; + /* margin: 20rpx 0; */ +} + +.passwordpage .uni-forms-item__inner { + padding-bottom: 10rpx !important; +} + +.passwordpage .new_save_btn { + font-size: 1rem; +} + +.personal uni-button:after { + border: 0 !important; +} + +.personal .uni-list:after { + height: 0 !important; +} + +.personal .uni-list-item__icon { + margin-right: 0 !important; +} + +.personal .uni-list-item__extra-text { + font-size: 1rem !important; + color: #101010 !important; + font-weight: bold; +} + +.personal .uni-list--border-top, +.uni-list--border-bottom, +.uni-list--border::after { + background-color: transparent !important; +} + +uni-modal .uni-modal__ft { + font-size: 0.875rem; +} + +uni-modal .uni-modal__title { + color: #333; +} + +uni-modal .uni-modal__bd { + padding: 1.3em 1.6em 1.3em; + min-height: 40px; + /* font-size: 15px; */ + line-height: 1.4; + /* color: #999; */ + max-height: 400px; + overflow-x: hidden; + overflow-y: auto; +} + +uni-modal .uni-modal__hd { + padding: 1em 1.6em .3em; + height: 30px; +} + +/*dy_add*/ +.btn_unusual button { + margin-right: 10rpx; +} + +.btn_unusual button:last-child { + margin-right: 0; +} + +/* .tit_ljh .text_white{ + color: #fff !important; + font-size: 0.725rem; + font-weight: normal; + padding: 4rpx; +} */ +.bot_card .pending { + color: #5FCB94; +} + +.camera_pop { + border-top-left-radius: 16rpx; + border-top-right-radius: 16rpx; +} + +.camera_list { + padding: 20rpx; + box-sizing: border-box; + max-height: 75vh; + overflow-y: scroll; +} + +.camera_list .list_cell { + border-bottom: 1px solid #eee; + box-shadow: none; + margin-bottom: 0; +} + +.camera_list .list_cell .uni-easyinput { + padding-right: 0; +} + +.camera_list .list_cell .title { + color: #666; +} + +.camera_list .selected-item { + font-size: 0.875rem; +} + +.camera_list .input-value span { + padding: 0; + font-size: 0.875rem; +} + +.camera_pop .pop_btn { + background-color: #fff; +} + +.cell_box .result_card .text_black { + font-size: 1rem; +} + +.cell_box .result_card .red { + color: #c00; +} + +.new_btn_bot .btn_triple { + margin-right: 10rpx; +} + +.cell_box .scan_btn_fr { + float: right; + background-color: #ececec; + color: #5A7CF3; + font-size: 0.725rem; + padding: 10rpx 20rpx; + border-radius: 16rpx; + line-height: 2; + margin: 0 20rpx 20rpx 0; + height: 60rpx; +} + +.cell_box .scan_btn_fr image { + /* margin-top: 4rpx; */ + /* float: left; */ +} + +.cell_box .scan_btn_fr text {} + +.login_wrap .content-clear-icon { + display: none; +} + +.login_wrap .conone .uni-easyinput { + padding-left: 10rpx !important; +} + +.quality_cell { + height: auto !important; +} + +.quality_cell .title { + line-height: 80rpx; + color: #666; +} + +.check_textarea { + font-size: 0.875rem; + color: #333; +} + +.check_textarea uni-textarea { + padding: 10rpx 20rpx; + height: 40px; +} + +.check_textarea .uni-textarea-placeholder { + font-size: 0.875rem; + color: #ccc; +} + +.common_card .ljh_box, +.pop_card .ljh { + width: 100%; + box-sizing: border-box; +} + +.common_card .ljh_box .tit_ljh, +.pop_card .ljh_box .tit_ljh { + float: left; + width: 50%; +} + +.common_card .ljh_info, +.pop_card .ljh_info { + width: 100%; + box-sizing: border-box; +} + +.common_card .desc_card, +.pop_card .desc_card { + width: 100%; + box-sizing: border-box; + padding: 0; +} + +.common_card .label_xm, +.pop_card .label_xm { + background-color: #45B5F3; + line-height: 2.0; + padding: 0 10rpx; + color: #fff; + border-radius: 8rpx; + max-width: 300rpx; + font-size: 0.7rem; + overflow: visble; + word-break: break-all; + /* overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + font-size: 0.7rem;*/ +} + +.result_nodata text { + display: inline-block; + width: 100%; + text-align: center; + color: #999; + font-size: 1.125rem; + margin-top: -20rpx; +} + +.passwordpage .uni-forms-item__label { + width: 180rpx !important; +} + +/* 20221114add */ +.semi_col { + margin-top: 0; +} + +.semi_col .uni-collapse-item__title-text span { + font-size: 1rem; + /* font-weight: bold; */ +} + +.semi_col .common_card .ljh_box .tit_ljh { + font-size: 1rem; + width: 56%; + /* font-weight: normal; */ +} + +.semi_col .num_color { + color: #EC5B28; +} + +.issuelist { + position: relative; +} + +.issuelist .notuse, +.issuelist .use { + float: right; + color: #333; + font-size: 0.825rem; +} + +.issuelist .notuse image, +.issuelist .use image { + vertical-align: middle; +} + +.issuecard .task_num { + border: 0; + margin-bottom: 0; + padding: 0; + + border-bottom: 1px solid #eee; + padding-bottom: 10rpx; + margin-bottom: 10rpx; + overflow: hidden; +} + +.issuelist .tag_icon { + width: 94rpx; + height: 94rpx; + position: absolute; + right: 0; + top: -6rpx; +} + +button::after { + border: none; + border-radius: 0; +} + +.btn_confirm { + width: 50%; + border: none; + background: #009EFF; + border-radius: 0; + color: #FFFFFF; +} + +.btn_cancle { + width: 50%; + border: none; + background: #FFFFFF; + border-radius: 0; + color: #000000; +} + +.line_color { + /* color: #E7E6E4; */ + color: #F5EBF4; + /* padding-top: 10rpx; + padding-bottom: 10rpx; */ +} + + + +.filter_button { + font-size: 28rpx; + padding-left: 20rpx; + padding-right: 20rpx; + /* width: 240rpx; */ + color: #fff; + background-color: #3C9CFF; +} + +.filter_button_after { + opacity: 0.7; +} + +.btn_edit_big_confirm { + font-size: 35rpx; + width: 50%; + color: #fff; + background-color: #3C9CFF; + border: none; + border-radius: 0; +} + +.btn_edit_big_cancle { + font-size: 35rpx; + width: 50%; + color: #303133; + border: none; + border-radius: 0; + box-shadow: none; + background-color: #fff; + +} + +.btn_edit_big_after { + opacity: 0.7; +} + +.btn_add_big { + background-color: #D8D8D8; + color: #fff; + text-align: center; + display: flex; + justify-content: center; + align-items: center; +} + +.icons_close { + width: 70rpx; + height: 70rpx; + margin: 10rpx; +} + +.paizhao { + padding-bottom: 10rpx; + padding-top: 20rpx; + padding-left: 20rpx; +} + +.paizhao image { + width: 50rpx; + height: 50rpx; +} + +.card_partCode { + font-size: 36rpx; + font-weight: 500; + padding: 10rpx; + +} + +.card_itemCode { + font-size: 32rpx; + font-weight: bold; +/* padding: 5rpx 10rpx; */ + /* width: 210rpx; */ + word-wrap: break-word; + word-break: break-all; +} + +.card_itemName { + color: #909399; + font-size: 26rpx; + /* padding: 5rpx 10rpx; */ + /* width: 210rpx; */ + word-wrap: break-word; + word-break: break-all; +} + +.card_ProdLine { + color: #909399; + font-size: 30rpx; + padding: 5rpx 30rpx; +} + + +/* .std_pack { + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + padding: 0px; + color: #909399; + font-size: 30rpx; +} + */ + + +.card_content { + font-size: 32rpx; + color:#2E3A63; + margin-left:20rpx +} + +.card_icon_normal { + width: 30rpx; + height: 30rpx; + vertical-align: middle; + margin-right:12rpx +} + +.card_packing_code { + color: #1677FF; + font-size: 26rpx; + font-style: italic; +} + +.card_batch { + color: #9747FF; + font-size: 26rpx; + font-style: italic; +} + +.card_container { + color: #0076F6; + padding: 5px; +} + + +.card_container_content { + font-size: 32rpx; + padding: 5px; +} + +.card_business { + color: #F1A532; font-size: 26rpx; font-style: italic; +} + +.card_business_content { + font-size: 32rpx; color:#2E3A63; margin-left:20rpx +} + +.card_location { + color: #DA8910; + font-size: 26rpx; + font-style: italic; +} + +.card_to_location { + color: #329362; + font-size: 26rpx; + font-style: italic; +} + +.card_location_content { + font-size: 32rpx; + padding: 5px; +} + +.card_supportCode { + color: #DA8910; + padding: 5px; +} + +.card_supportCode_content { + font-size: 32rpx; +} + +.card_item_code { + color: #F1A532; + padding: 5px; +} + +.card_product_date { + color: #329362; + padding: 5px; +} + +.card_order { + color: #0076F6; + padding: 5px; +} + +.scan_view { + /* #0CC2B6 20% */ + background: linear-gradient(90deg, rgba(12, 194, 182, 0.2) 0%, rgba(12, 194, 182, 0.05) 100%); + border-radius:14rpx; + padding:10rpx 20rpx 16rpx +} + +.card_view { + font-size: 32rpx; + margin-top:14rpx +} + +/* +.pack_view { + font-size: 32rpx; + padding: 5rpx; +} + +.location_view { + font-size: 32rpx; + padding: 5rpx; +} + +.batch_view { + font-size: 32rpx; + padding: 5rpx; +} + */ +.business_view { + font-size: 32rpx; + padding: 5rpx; +} + +.pop_customer { + border-radius: 8rpx; + background-color: #fff; +} + +.nodata { + width: 390rpx; + height: 300rpx; +} + +.text_ellipsis { + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; +} + +.task_top { + margin: 0rpx 10rpx; + background-color: #fff; + vertical-align: middle; +} + +.task_item { + background-color: #fff; + padding:20rpx 0px +} + +.task_card { + padding:0px 20rpx; + background-color: #fff; + border-radius: 10rpx; +} + +.task_number { + font-size: 36rpx; + font-weight: 600; + /* bold */ +} + +.task_text { + font-size: 30rpx; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +.request_state_un-doing { + font-size: 28rpx; + background: rgba(95, 203, 148, 0.2); + color: #22AF68; + padding: 10rpx 20rpx 10rpx 20rpx; + border-radius: 10rpx; +} + +.job_state_doing { + font-size: 28rpx; + background: rgba(236, 156, 0, 0.2); + color: #EC9C00; + padding: 10rpx 20rpx 10rpx 20rpx; + border-radius: 10rpx; +} + +.job_state_un-doing { + font-size: 28rpx; + background: rgba(95, 203, 148, 0.2); + color: #22AF68; + padding: 10rpx 20rpx 10rpx 20rpx; + border-radius: 10rpx; +} + +.job_state_completed { + font-size: 28rpx; + background: rgba(95, 203, 148, 0.2); + color: #22AF68; + padding: 10rpx 20rpx 10rpx 20rpx; + border-radius: 10rpx; +} + +.job_state_close { + font-size: 28rpx; + background: rgba(95, 203, 148, 0.2); + color: #22AF68; + padding: 10rpx 20rpx 10rpx 20rpx; + border-radius: 10rpx; +} + + +.job_state_cancelled { + font-size: 28rpx; + background: rgba(95, 203, 148, 0.2); + color: #ff0000; + padding: 10rpx 20rpx 10rpx 20rpx; + border-radius: 10rpx; +} + +.pop_detail { + background-color: #fff; + width: 100%; + border-radius: 8rpx 8rpx 0rpx 0rpx; + padding:0px 30rpx; +} + +.pop_detail .item { + padding-top: 5rpx; + padding-bottom: 5rpx; + + /* margin-left: 10rpx; */ +/* margin-right: 10rpx; */ + + display: flex; + flex-direction: row; + + -webkit-justify-content: space-between; + justify-content: space-between; + align-items:center +} + +.pop_detail .item_title { + padding-top: 5rpx; + padding-bottom: 5rpx; +} + +.pop_detail .text_wrap { + color: #909399; + word-break: break-all; + text-align: right; +} + +.pop_detail .item_big_title { + /* color: #2196F3; */ + /* font-size: 35rpx; */ + margin-left: 10rpx; + margin-right: 10rpx; + margin-top: 10rpx; + margin-bottom: 10rpx; +} + + + + +/deep/.uni-popup .uni-popup__wrapper { + width: 100% !important; + padding: 15rpx 20rpx 15rpx 20rpx; +} + +.btn_bottom { + position: fixed; + bottom: 10rpx; + right: 0; +} + +.btn_add_small { + + background-color: #3C9CFF; + width: 200rpx; + font-size: 30rpx; + color: #fff; + border-radius: 5rpx; +} + +.btn_add_small_after { + opacity: 0.7; +} + +.btn_commit_after { + opacity: 0.7; +} + +/* 禁用时样式 */ +button[disabled] { + background-color: #fff; + color: #666; +} + +.btn_commit { + background-color: #3C9CFF; + font-size: 30rpx; + color: #fff; + text-align: center; + padding-left: 80rpx; + padding-right: 80rpx; + margin-right: 20rpx; + margin-left: 10rpx; +} + +.btn_add { + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + + position: absolute; + width: 97%; + height: 35px; + border-radius: 3px; + opacity: 1; + padding: 5px; + margin-left: 5px; + margin-right: 5px; + + box-sizing: border-box; + border: 1px dashed #AAAAAA; + background: #D8D8D8; + + color: #FFFFFF; + font-size: 16px; + font-weight: normal; + line-height: 26px; + letter-spacing: 0em; +} + +.btn_clear_after { + opacity: 0.7; +} + + +.btn_clear { + background-color: #fff; + font-size: 30rpx; + color: #000; + text-align: center; + padding-left: 80rpx; + padding-right: 80rpx; + margin-right: 10rpx; + margin-left: 20rpx; +} + +.icons_scan_close { + width: 35rpx; + height: 35rpx; +} + +.count_image { + width: 45rpx; + height: 45rpx; +} + +.count_type_light { + color: #0CC2B6; + font-size: 30rpx; + margin-left: 10rpx; + margin-right: 10rpx; +} + +.count_type_black { + color: #FA5151; + font-size: 30rpx; + margin-left: 10rpx; + margin-right: 10rpx; +} + +.btn_bot { + position: fixed; + bottom: 0; + right: 0; + padding-bottom: 20rpx; + padding-right: 20rpx; + z-index: 10; +} + +.btn_single_commit { + background-color: #3C9CFF; + font-size: 30rpx; + color: #fff; + text-align: center; + width: 180rpx; +} + +.btn_single_reject { + background-color: #F56C6C; + font-size: 30rpx; + color: #fff; + text-align: center; + width: 180rpx; +} + +.center { + display: flex; + flex-direction: row; + justify-content: flex-end; + align-items: center; +} + +.space_between { + display: flex; + flex-direction: row; + justify-content: space-between; +} + +.text_recommend { + color: #0A84FF; + font-size: 38rpx; + font-weight:bold +} + +.text_balance { + font-size: 36rpx; +} + +.text_default { + color: #000000; + font-size: 36rpx; +} + +.text_greater { + color: #F56C6C; + font-size: 36rpx; +} + +.text_less { + color: #FF9500; + font-size: 36rpx; +} + +.text_equal { + color: #34C759; + font-size: 38rpx; +} + +.std_pack { + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + padding: 0px; + color: #909399; + font-size:26rpx; +} + +.std_uom { + color: #909399; + font-size: 30rpx; + margin-left: 5rpx; + margin-right: 5rpx; +} + +.uom { + color: #909399; + font-size: 26rpx; + margin-left: 5rpx; + margin-right: 5rpx; + display: flex; + flex-direction: row; + align-items: center; +} + + +.std_split { + color: #909399; + font-size: 36rpx; + margin-left: 5rpx; + margin-right: 5rpx; +} + +.inspect_job { + color: #F1A532; + font-size: 36rpx; + margin-right: 10rpx; +} + +.ok_job { + color: #53C21D; + font-size: 36rpx; + margin-right: 2rpx; +} + +.nook_job { + color: #E45656; + font-size: 36rpx; + margin-right: 10rpx; +} + +.raw_location { + padding-top: 5rpx; + padding-bottom: 5rpx; + padding-left: 15rpx; + padding-right: 15rpx; + background-color: #34C759; + color: #fff; + font-size: 35rpx; +} + +.fg_location { + padding-top: 5rpx; + padding-bottom: 5rpx; + padding-left: 15rpx; + padding-right: 15rpx; + background-color: #5A7CF3; + color: #fff; + font-size: 35rpx; +} + +.semi_location { + padding-top: 5rpx; + padding-bottom: 5rpx; + padding-left: 15rpx; + padding-right: 15rpx; + background-color: #FF9500; + color: #fff; + font-size: 35rpx; +} + +.hold_location { + padding-top: 5rpx; + padding-bottom: 5rpx; + padding-left: 15rpx; + padding-right: 15rpx; + background-color: #F56C6C; + color: #fff; + font-size: 35rpx; +} + +.unk_location { + padding-top: 5rpx; + padding-bottom: 5rpx; + padding-left: 15rpx; + padding-right: 15rpx; + background-color: #999999; + color: #fff; + font-size: 35rpx; +} + +.qty_input { + width: 150rpx; + height: 60rpx; + line-height: 10rpx; + font-size: 10rpx; + color: #000000; + text-align: right; + border: 1px solid rgb(220, 211, 211); + padding: 5rpx; +} + +.qty_inspect_input { + width: 150rpx; + height: 60rpx; + line-height: 10rpx; + font-size: 10rpx; + color: #000000; + text-align: center; + border: 1px solid rgb(220, 211, 211); + padding: 5rpx; +} + +.icon_close { + width: 100rpx; + height: 100rpx; + opacity: 1; + +} + +.icon_edit { + width: 30rpx; + height: 40%; + opacity: 1; + margin-left: 10rpx; +} + +.title_popup { + margin-top: 16px; + margin-bottom: 16px; + margin-left: 8px; + margin-right: 8px; + font-size: 35rpx; + text-align: center; +} + +.close_button { + /* 自动布局子元素 */ + position: static; + left: 20px; + /* top: 1109.01px; */ + width: 100%; + height: 40px; + border-radius: 40px; + opacity: 1; + + /* 自动布局 */ + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + padding: 9px 12px; + gap: 10px; + align-self: stretch; + + /* 颜色/白色 */ + background:rgba(60, 156, 255, 1); + box-sizing: border-box; + color:white; + /* 颜色/边框 */ + border: 1px solid #E7E6E4; + z-index: 3; +} + +/** + * 申请状态 新增 + */ +.request_status_new { + font-size: 28rpx; + padding: 10rpx 20rpx 10rpx 20rpx; + border-radius: 10rpx; + background: rgba(34, 175, 104, 0.2); + color: rgba(34, 175, 104, 1); +} + +/** + * 申请状态 审批中 + */ +.request_status_reviewing { + font-size: 28rpx; + background: rgba(236, 156, 0, 0.2); + color: rgba(236, 156, 0, 1); + padding: 10rpx 20rpx 10rpx 20rpx; + border-radius: 10rpx; +} + +/** + * 申请状态 审批通过 + */ +.request_status_agreed { + font-size: 28rpx; + background: rgba(103, 194, 57, 0.2); + color: rgba(103, 194, 57, 1); + padding: 10rpx 20rpx 10rpx 20rpx; + border-radius: 10rpx; +} + +/** + * 申请状态 审批驳回 + */ +.request_status_refused { + font-size: 28rpx; + background: rgba(245, 108, 108, 0.2); + color: rgba(245, 108, 108, 1); + padding: 10rpx 20rpx 10rpx 20rpx; + border-radius: 10rpx; +} + +/** + * 申请状态 处理中 + */ +.request_status_handling { + font-size: 28rpx; + background: rgba(60, 156, 255, 0.2); + color: rgba(60, 156, 255, 1); + padding: 10rpx 20rpx 10rpx 20rpx; + border-radius: 10rpx; +} + +/** + * 申请状态 部分完成 + */ +.request_status_partial { + font-size: 28rpx; + background: #D3FF3C; + color: #ffffff; + padding: 10rpx 20rpx 10rpx 20rpx; + border-radius: 10rpx; +} + +/** + * 申请状态 已完成 + */ +.request_status_completed { + font-size: 28rpx; + background: #D3FF3C; + color: #ffffff; + padding: 10rpx 20rpx 10rpx 20rpx; + border-radius: 10rpx; +} + +/** + * 申请状态 中止 + */ +.request_status_abort { + font-size: 28rpx; + background: #F33140; + color: #ffffff; + padding: 10rpx 20rpx 10rpx 20rpx; + border-radius: 10rpx; +} + +/** + * 申请状态 已关闭 + */ +.request_status_cancelled { + font-size: 28rpx; + background: #F33140; + color: #ffffff; + padding: 10rpx 20rpx 10rpx 20rpx; + border-radius: 10rpx; +} + +.split_line { + background-color: rgba(230,230,230,0.5); + height: 1px; } \ No newline at end of file diff --git a/src/common/style/pdabasic.css b/src/common/style/pdabasic.css index d3b92cec..727d5140 100644 --- a/src/common/style/pdabasic.css +++ b/src/common/style/pdabasic.css @@ -253,7 +253,6 @@ font-size: 28rpx; background: rgba(95, 203, 148, 0.2); color: #22AF68; - padding: 10rpx 20rpx 10rpx 20rpx; border-radius: 10rpx; } @@ -282,8 +281,9 @@ /* 关闭 */ .other { - background-color: #808080; - color: #FFFFFF; + /* background-color: #808080; */ + color: #b4a5ff; + font-size: 26rpx; border-radius: 10rpx; } @@ -329,16 +329,19 @@ .inventory_status_insp { color: #F9AE3D; margin-right: 10rpx; + font-size:26rpx } .inventory_status_ok { color: #67C23A; margin-right: 10rpx; + font-size:26rpx } .inventory_status_nok { color: #FF2424; margin-right: 10rpx; + font-size:26rpx } .inventory_status_hold { @@ -480,10 +483,9 @@ export function getItemTypeStyle(val) { .detail-list { background-color: #fff; - padding:5rpx 10rpx; - /* margin: 20rpx; */ - /* border-radius: 16rpx; */ - /* overflow: hidden; */ + margin:20rpx 20rpx; + padding:0px 20rpx; + border-radius: 16rpx; } .detail-content { @@ -721,19 +723,27 @@ page { flex-direction: column; width: 100%; height: 100%; - /* background-color: #fff; */ + background-color: #f5f5f5; } .page-header { - background-color: #fff; + background-color: rgb(60, 156, 255) !important; font-size: 35rpx; - padding: 10rpx 20rpx; + padding: 10rpx 20rpx 20rpx; +} +.page-header-box{ + background-color: #fff !important; + padding:0px 20rpx 20rpx; + border-radius: 12rpx; } .page-header .header_item { /* padding-left: 10rpx; */ - padding: 5rpx 10rpx; - font-size:32rpx ; + font-size:28rpx ; + color:#777E94; +} +.page-header .header_item text{ + color:#011C43; } .page-header .header_job_top { @@ -742,7 +752,6 @@ page { .page-main { flex: 1; position: relative; - background: #fff; } .page-main-scroll { @@ -760,3 +769,16 @@ page { background: #e0e0e0; } + +.choose-box1{ + background: white; + padding:10rpx 20rpx +} +.choose-item1{ + border: 1px solid rgba(230, 230, 230, 1); + padding: 20rpx; + display: flex +} +.choose-text1{ + flex:1 +} diff --git a/src/components/my-paging/my-paging.vue b/src/components/my-paging/my-paging.vue index 7c049290..e8447694 100644 --- a/src/components/my-paging/my-paging.vue +++ b/src/components/my-paging/my-paging.vue @@ -1,157 +1,159 @@ - - + diff --git a/src/manifest.json b/src/manifest.json index 4000faec..5607a59b 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,82 +1,114 @@ { - "name" : "富维汽车镜", - "appid" : "__UNI__DA78BC9", - "description" : "", - "versionName" : "1.0.0", - "versionCode" : "100", - "transformPx" : false, - /* 5+App特有相关 */ - "app-plus" : { - "usingComponents" : true, - "nvueStyleCompiler" : "uni-app", - "compilerVersion" : 3, - "splashscreen" : { - "alwaysShowBeforeRender" : true, - "waiting" : true, - "autoclose" : true, - "delay" : 0 - }, - /* 模块配置 */ - "modules" : {}, - /* 应用发布信息 */ - "distribute" : { - /* android打包配置 */ - "android" : { - "permissions" : [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ] - }, - /* ios打包配置 */ - "ios" : { - "dSYMs" : false - }, - /* SDK配置 */ - "sdkConfigs" : { - "ad" : {} - } - } - }, - /* 快应用特有相关 */ - "quickapp" : {}, - /* 小程序特有相关 */ - "mp-weixin" : { - "appid" : "wx6176535b0b0153f0", - "setting" : { - "urlCheck" : false - }, - "usingComponents" : true - }, - "mp-alipay" : { - "usingComponents" : true - }, - "mp-baidu" : { - "usingComponents" : true - }, - "mp-toutiao" : { - "usingComponents" : true - }, - "uniStatistics" : { - "enable" : false - }, - "vueVersion" : "3", - "h5" : { - "template" : "index.html", - "devServer" : { - "port" : 9020 - } - } -} + "name": "富维汽车镜", + "appid": "__UNI__DA78BC9", + "description": "", + "versionName": "1.0.0", + "versionCode": "100", + "transformPx": false, + /* 5+App特有相关 */ + "app-plus": { + "usingComponents": true, + "nvueStyleCompiler": "uni-app", + "compilerVersion": 3, + "splashscreen": { + "alwaysShowBeforeRender": true, + "waiting": true, + "autoclose": true, + "delay": 0 + }, + /* 模块配置 */ + "modules": {}, + /* 应用发布信息 */ + "distribute": { + /* android打包配置 */ + "android": { + "permissions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ] + }, + /* ios打包配置 */ + "ios": { + "dSYMs": false + }, + /* SDK配置 */ + "sdkConfigs": { + "ad": {} + }, + "nativePlugins": { + "TestModule": { + "__plugin_info__": { + "name": "TestModule", + "description": "打印", + "platforms": "Android", + "url": "", + "android_package_name": "", + "ios_bundle_id": "", + "isCloud": false, + "bought": -1, + "pid": "", + "parameters": {} + } + } + } + }, + "nativePlugins": { + "TestModule": { + "__plugin_info__": { + "name": "TestModule", + "description": "打印", + "platforms": "Android", + "url": "", + "android_package_name": "", + "ios_bundle_id": "", + "isCloud": false, + "bought": -1, + "pid": "", + "parameters": {} + } + } + } + }, + /* 快应用特有相关 */ + "quickapp": {}, + /* 小程序特有相关 */ + "mp-weixin": { + "appid": "wx6176535b0b0153f0", + "setting": { + "urlCheck": false + }, + "usingComponents": true + }, + "mp-alipay": { + "usingComponents": true + }, + "mp-baidu": { + "usingComponents": true + }, + "mp-toutiao": { + "usingComponents": true + }, + "uniStatistics": { + "enable": false + }, + "vueVersion": "3", + "h5": { + "template": "index.html", + "devServer": { + "port": 9020 + } + } +} \ No newline at end of file diff --git a/src/mycomponents/balance/balance.vue b/src/mycomponents/balance/balance.vue index 86762135..ac489bc6 100644 --- a/src/mycomponents/balance/balance.vue +++ b/src/mycomponents/balance/balance.vue @@ -1,149 +1,95 @@ - - \ No newline at end of file + diff --git a/src/mycomponents/balance/balanceSelect.vue b/src/mycomponents/balance/balanceSelect.vue index 0b63c993..982c7ac2 100644 --- a/src/mycomponents/balance/balanceSelect.vue +++ b/src/mycomponents/balance/balanceSelect.vue @@ -1,7 +1,7 @@ - + \ No newline at end of file diff --git a/src/mycomponents/balance/batch.vue b/src/mycomponents/balance/batch.vue index 1fda0710..851a547b 100644 --- a/src/mycomponents/balance/batch.vue +++ b/src/mycomponents/balance/batch.vue @@ -1,23 +1,17 @@ - + diff --git a/src/mycomponents/balance/handleBalance.vue b/src/mycomponents/balance/handleBalance.vue index 5eaf56eb..0f9b067c 100644 --- a/src/mycomponents/balance/handleBalance.vue +++ b/src/mycomponents/balance/handleBalance.vue @@ -1,83 +1,59 @@ - \ No newline at end of file +.recommend { + position: absolute; + left: 25px; + top: 70px; + width: 10px; + height: 30px; + opacity: 1; +} + diff --git a/src/mycomponents/balance/location.vue b/src/mycomponents/balance/location.vue index d5956aa4..9e552662 100644 --- a/src/mycomponents/balance/location.vue +++ b/src/mycomponents/balance/location.vue @@ -1,30 +1,22 @@ - + diff --git a/src/mycomponents/balance/productionLabel.vue b/src/mycomponents/balance/productionLabel.vue index 4f3824a4..7f2e45bf 100644 --- a/src/mycomponents/balance/productionLabel.vue +++ b/src/mycomponents/balance/productionLabel.vue @@ -1,59 +1,40 @@ - - + diff --git a/src/mycomponents/balance/recommendBalance.vue b/src/mycomponents/balance/recommendBalance.vue index 1acfad8a..2c63d0e3 100644 --- a/src/mycomponents/balance/recommendBalance.vue +++ b/src/mycomponents/balance/recommendBalance.vue @@ -1,84 +1,56 @@ - diff --git a/src/mycomponents/balance/toLocation.vue b/src/mycomponents/balance/toLocation.vue index d44ba995..84f2c8bf 100644 --- a/src/mycomponents/balance/toLocation.vue +++ b/src/mycomponents/balance/toLocation.vue @@ -1,30 +1,20 @@ - - + diff --git a/src/mycomponents/common/comEmptyView.vue b/src/mycomponents/common/comEmptyView.vue index c8b41abd..445b7c9b 100644 --- a/src/mycomponents/common/comEmptyView.vue +++ b/src/mycomponents/common/comEmptyView.vue @@ -4,36 +4,11 @@ - - - diff --git a/src/mycomponents/common/comListItem.vue b/src/mycomponents/common/comListItem.vue index 6d7794f6..a4717ca9 100644 --- a/src/mycomponents/common/comListItem.vue +++ b/src/mycomponents/common/comListItem.vue @@ -1,27 +1,25 @@ - \ No newline at end of file +.slot-content { + font-size: 36rpx; + display: flex; //弹性布局 + flex-direction: column; //垂直排列 + align-items: center; //子元素居中 + // background-image: url() +} + +.icon { + width: 70rpx; + height: 70rpx; + opacity: 1; //透明度 + margin-top: 16px; +} + +.title { + font-size: 35rpx; +} + +.content { + width: 100%; + margin-top: 16px; + margin-bottom: 16px; + margin-left: 8px; + margin-right: 8px; + font-size: 32rpx; + text-align: center; +} + +.cance_button { + width: 100%; + margin-top: 10px; + margin-bottom: 10px; + font-size: 32rpx; + display: flex; + justify-content: center; + align-items: center; +} + +.confirm_button { + width: 100%; + margin-top: 10px; + margin-bottom: 10px; + font-size: 32rpx; + display: flex; + justify-content: center; + align-items: center; +} + +.confirm_text { + // color: $uni-color-primary; +} + +.def_text { + color: $uni-color-primary; +} + diff --git a/src/mycomponents/common/comPopup.vue b/src/mycomponents/common/comPopup.vue index d0b37dc6..6c3e9f3c 100644 --- a/src/mycomponents/common/comPopup.vue +++ b/src/mycomponents/common/comPopup.vue @@ -10,26 +10,13 @@ - + diff --git a/src/mycomponents/detail/comDetailCard.vue b/src/mycomponents/detail/comDetailCard.vue index d229d897..66f55847 100644 --- a/src/mycomponents/detail/comDetailCard.vue +++ b/src/mycomponents/detail/comDetailCard.vue @@ -1,163 +1,145 @@ - - \ No newline at end of file + diff --git a/src/mycomponents/detail/comJobDetailCard.vue b/src/mycomponents/detail/comJobDetailCard.vue index ee9407fc..66b31772 100644 --- a/src/mycomponents/detail/comJobDetailCard.vue +++ b/src/mycomponents/detail/comJobDetailCard.vue @@ -1,161 +1,125 @@ - - \ No newline at end of file + diff --git a/src/mycomponents/detail/comRequestDetailCard.vue b/src/mycomponents/detail/comRequestDetailCard.vue index dc5aef20..350a75a0 100644 --- a/src/mycomponents/detail/comRequestDetailCard.vue +++ b/src/mycomponents/detail/comRequestDetailCard.vue @@ -1,150 +1,135 @@ - diff --git a/src/mycomponents/detail/detailBalanceInfo.vue b/src/mycomponents/detail/detailBalanceInfo.vue index 43cfb89b..f080625a 100644 --- a/src/mycomponents/detail/detailBalanceInfo.vue +++ b/src/mycomponents/detail/detailBalanceInfo.vue @@ -15,12 +15,12 @@ 数量 : {{Number(dataContent.qty)}} - {{getUomInfo(dataContent.uom)}} + {{handleGetUomInfo(dataContent.uom)}} 库存状态 : - {{getInventoryStatusInfo(dataContent.inventoryStatus)}} + {{handleGetInventoryStatusInfo(dataContent.inventoryStatus)}} 来源库位 : @@ -29,37 +29,25 @@ - + diff --git a/src/mycomponents/detail/detailHandleInfo.vue b/src/mycomponents/detail/detailHandleInfo.vue index aa0597d8..669a5753 100644 --- a/src/mycomponents/detail/detailHandleInfo.vue +++ b/src/mycomponents/detail/detailHandleInfo.vue @@ -29,32 +29,19 @@ - diff --git a/src/mycomponents/detail/detailItemInfo.vue b/src/mycomponents/detail/detailItemInfo.vue index b1d54b80..75249cd2 100644 --- a/src/mycomponents/detail/detailItemInfo.vue +++ b/src/mycomponents/detail/detailItemInfo.vue @@ -10,34 +10,21 @@ 数量 : - {{dataContent.qty}}{{getUomInfo(dataContent.uom)}} + {{dataContent.qty}}{{handleGetUomInfo(dataContent.uom)}} - diff --git a/src/mycomponents/detail/detailPackageInfo.vue b/src/mycomponents/detail/detailPackageInfo.vue index 8a45c8de..f3dd3980 100644 --- a/src/mycomponents/detail/detailPackageInfo.vue +++ b/src/mycomponents/detail/detailPackageInfo.vue @@ -27,37 +27,19 @@ - + \ No newline at end of file diff --git a/src/mycomponents/detail/jobDetailPopup.vue b/src/mycomponents/detail/jobDetailPopup.vue index 2e65f35f..626fe41b 100644 --- a/src/mycomponents/detail/jobDetailPopup.vue +++ b/src/mycomponents/detail/jobDetailPopup.vue @@ -1,79 +1,66 @@ - diff --git a/src/mycomponents/detail/recordDetailCommonInfo.vue b/src/mycomponents/detail/recordDetailCommonInfo.vue index 1ec09e4a..507762b5 100644 --- a/src/mycomponents/detail/recordDetailCommonInfo.vue +++ b/src/mycomponents/detail/recordDetailCommonInfo.vue @@ -1,60 +1,42 @@ - - + diff --git a/src/mycomponents/detail/recordDetailPopup.vue b/src/mycomponents/detail/recordDetailPopup.vue index 19122fc8..263ce6e3 100644 --- a/src/mycomponents/detail/recordDetailPopup.vue +++ b/src/mycomponents/detail/recordDetailPopup.vue @@ -1,71 +1,52 @@ - - + diff --git a/src/mycomponents/detail/requestDetailCommonInfo.vue b/src/mycomponents/detail/requestDetailCommonInfo.vue index 9e19ff1f..b8a8087b 100644 --- a/src/mycomponents/detail/requestDetailCommonInfo.vue +++ b/src/mycomponents/detail/requestDetailCommonInfo.vue @@ -1,65 +1,47 @@ - - + diff --git a/src/mycomponents/item/item.vue b/src/mycomponents/item/item.vue index f6cfc843..b998c765 100644 --- a/src/mycomponents/item/item.vue +++ b/src/mycomponents/item/item.vue @@ -1,46 +1,26 @@ - - + diff --git a/src/mycomponents/item/itemCompareQty.vue b/src/mycomponents/item/itemCompareQty.vue index 4779ba7f..3bac1b38 100644 --- a/src/mycomponents/item/itemCompareQty.vue +++ b/src/mycomponents/item/itemCompareQty.vue @@ -1,67 +1,43 @@ - - \ No newline at end of file + diff --git a/src/mycomponents/item/itemInfo.vue b/src/mycomponents/item/itemInfo.vue index f40e16c8..3d980aeb 100644 --- a/src/mycomponents/item/itemInfo.vue +++ b/src/mycomponents/item/itemInfo.vue @@ -1,58 +1,43 @@ - - + diff --git a/src/mycomponents/item/itemInfoPopup.vue b/src/mycomponents/item/itemInfoPopup.vue index ea5eb275..3b228122 100644 --- a/src/mycomponents/item/itemInfoPopup.vue +++ b/src/mycomponents/item/itemInfoPopup.vue @@ -1,32 +1,28 @@ - - + diff --git a/src/mycomponents/item/itemQty.vue b/src/mycomponents/item/itemQty.vue index dc9623f7..4e8fe76b 100644 --- a/src/mycomponents/item/itemQty.vue +++ b/src/mycomponents/item/itemQty.vue @@ -1,59 +1,37 @@ - - + diff --git a/src/mycomponents/job/jobBottom.vue b/src/mycomponents/job/jobBottom.vue index 46e9ad60..7a9d5d7b 100644 --- a/src/mycomponents/job/jobBottom.vue +++ b/src/mycomponents/job/jobBottom.vue @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/src/mycomponents/job/jobComMainCard.vue b/src/mycomponents/job/jobComMainCard.vue index a75716f9..beb81591 100644 --- a/src/mycomponents/job/jobComMainCard.vue +++ b/src/mycomponents/job/jobComMainCard.vue @@ -10,30 +10,15 @@ - + diff --git a/src/mycomponents/job/jobComMainDetailCard.vue b/src/mycomponents/job/jobComMainDetailCard.vue index 464570e5..4de51472 100644 --- a/src/mycomponents/job/jobComMainDetailCard.vue +++ b/src/mycomponents/job/jobComMainDetailCard.vue @@ -1,79 +1,61 @@ - - \ No newline at end of file + diff --git a/src/mycomponents/job/jobCommonInfo.vue b/src/mycomponents/job/jobCommonInfo.vue index aa6baedf..6f0322b3 100644 --- a/src/mycomponents/job/jobCommonInfo.vue +++ b/src/mycomponents/job/jobCommonInfo.vue @@ -1,62 +1,44 @@ - - + diff --git a/src/mycomponents/job/jobDetailPopup.vue b/src/mycomponents/job/jobDetailPopup.vue index fa69104f..2e7da039 100644 --- a/src/mycomponents/job/jobDetailPopup.vue +++ b/src/mycomponents/job/jobDetailPopup.vue @@ -1,79 +1,70 @@ - diff --git a/src/mycomponents/job/jobFilter.vue b/src/mycomponents/job/jobFilter.vue index a209c2af..b5387eb5 100644 --- a/src/mycomponents/job/jobFilter.vue +++ b/src/mycomponents/job/jobFilter.vue @@ -1,155 +1,166 @@ + + + + + 只看当天 - diff --git a/src/mycomponents/job/jobNumber.vue b/src/mycomponents/job/jobNumber.vue index 94a38499..f40f1296 100644 --- a/src/mycomponents/job/jobNumber.vue +++ b/src/mycomponents/job/jobNumber.vue @@ -5,27 +5,13 @@ - + \ No newline at end of file diff --git a/src/mycomponents/job/jobSettingInfo.vue b/src/mycomponents/job/jobSettingInfo.vue index db1ab473..37efe861 100644 --- a/src/mycomponents/job/jobSettingInfo.vue +++ b/src/mycomponents/job/jobSettingInfo.vue @@ -6,7 +6,7 @@ 允许修改库位 : {{ converter( dataContent.allowModifyLocation)}} - + 允许修改数量 : {{converter(dataContent.allowModifyQty)}} @@ -44,34 +44,19 @@ - + \ No newline at end of file diff --git a/src/mycomponents/job/jobStatus.vue b/src/mycomponents/job/jobStatus.vue index 26ea46ae..4fcf76ba 100644 --- a/src/mycomponents/job/jobStatus.vue +++ b/src/mycomponents/job/jobStatus.vue @@ -1,45 +1,31 @@ - + \ No newline at end of file diff --git a/src/mycomponents/job/jobTop.vue b/src/mycomponents/job/jobTop.vue index 7aab393c..1f81c625 100644 --- a/src/mycomponents/job/jobTop.vue +++ b/src/mycomponents/job/jobTop.vue @@ -1,5 +1,5 @@ - + diff --git a/src/mycomponents/jobList/jobList.vue b/src/mycomponents/jobList/jobList.vue new file mode 100644 index 00000000..62820e98 --- /dev/null +++ b/src/mycomponents/jobList/jobList.vue @@ -0,0 +1,65 @@ + + + + + diff --git a/src/mycomponents/location/location.vue b/src/mycomponents/location/location.vue index b2286bf3..0672192e 100644 --- a/src/mycomponents/location/location.vue +++ b/src/mycomponents/location/location.vue @@ -1,55 +1,42 @@ - - \ No newline at end of file + diff --git a/src/mycomponents/location/locationCompare.vue b/src/mycomponents/location/locationCompare.vue index 9d44998e..05720566 100644 --- a/src/mycomponents/location/locationCompare.vue +++ b/src/mycomponents/location/locationCompare.vue @@ -1,126 +1,90 @@ - - \ No newline at end of file + diff --git a/src/mycomponents/location/locationDetail.vue b/src/mycomponents/location/locationDetail.vue index c6fd752f..0fc1bdc1 100644 --- a/src/mycomponents/location/locationDetail.vue +++ b/src/mycomponents/location/locationDetail.vue @@ -1,47 +1,35 @@ - - + diff --git a/src/mycomponents/location/locationInfo.vue b/src/mycomponents/location/locationInfo.vue index 6a63f0a5..cf1e70ed 100644 --- a/src/mycomponents/location/locationInfo.vue +++ b/src/mycomponents/location/locationInfo.vue @@ -1,45 +1,32 @@ - - + diff --git a/src/mycomponents/location/locationStatus.vue b/src/mycomponents/location/locationStatus.vue index cf26117b..a1b29bfe 100644 --- a/src/mycomponents/location/locationStatus.vue +++ b/src/mycomponents/location/locationStatus.vue @@ -1,46 +1,30 @@ - - + diff --git a/src/mycomponents/location/requiredLocation.vue b/src/mycomponents/location/requiredLocation.vue index aac2b2d7..a9283dcd 100644 --- a/src/mycomponents/location/requiredLocation.vue +++ b/src/mycomponents/location/requiredLocation.vue @@ -1,79 +1,53 @@ - - + diff --git a/src/mycomponents/package/packageCard.vue b/src/mycomponents/package/packageCard.vue index f56df994..3e0aee10 100644 --- a/src/mycomponents/package/packageCard.vue +++ b/src/mycomponents/package/packageCard.vue @@ -4,9 +4,10 @@ - - + + @@ -14,23 +15,23 @@ - + - + - - 复制 + + - diff --git a/src/mycomponents/package/packageDetailPopup.vue b/src/mycomponents/package/packageDetailPopup.vue index ded87c43..3052ff71 100644 --- a/src/mycomponents/package/packageDetailPopup.vue +++ b/src/mycomponents/package/packageDetailPopup.vue @@ -1,204 +1,227 @@ - - + diff --git a/src/mycomponents/package/packageList.vue b/src/mycomponents/package/packageList.vue index 7f631f8b..25301e4f 100644 --- a/src/mycomponents/package/packageList.vue +++ b/src/mycomponents/package/packageList.vue @@ -1,34 +1,37 @@ - + diff --git a/src/mycomponents/popup/selectList.vue b/src/mycomponents/popup/selectList.vue index a7e95530..fd27e31e 100644 --- a/src/mycomponents/popup/selectList.vue +++ b/src/mycomponents/popup/selectList.vue @@ -1,116 +1,96 @@ - +const showList = ref([]) +const pageCurrent = ref(1) +const pageSize = ref(10) +const total = ref(0) +const isShow = ref(false) +const queryList = (lineCode) => { + const filters = [] + filters.push({ + column: 'customerCode', + action: '==', + value: lineCode + }) + + const params = { + filters, + pageNo: pageCurrent.value, + pageSize: pageSize.value + } + getCustomerItemList(params) + .then((res) => { + if (res.data != null && res.data.list.length > 0) { + showList.value = res.data.list + total.value = res.data.total + isShow.value = true + } else { + // 没有查询到生产线对应的物料信息 + // this.showErrorMessage('未查找到生产线【' + lineCode + '】对应的物料'); + isShow.value = true + } + }) + .catch((error) => { + // this.showErrorMessage(error); + }) +} +const openPopup = (items) => { + showList.value = items + isShow.value = true +} +const closePopup = () => { + isShow.value = false +} +const selectItem = (item) => { + emit('selectedItem', item) + isShow.value = false +} +const change = (e) => { + pageCurrent.value = e.current +} +// 传递给父类 +const emit = defineEmits(['selectedItem']) +defineExpose({ + queryList +}) + diff --git a/src/mycomponents/production/productionInfo.vue b/src/mycomponents/production/productionInfo.vue index e54bbaa6..661a1fb2 100644 --- a/src/mycomponents/production/productionInfo.vue +++ b/src/mycomponents/production/productionInfo.vue @@ -1,39 +1,21 @@ - - + diff --git a/src/mycomponents/qty/balanceQty.vue b/src/mycomponents/qty/balanceQty.vue index 1ea92f78..34ac3f1b 100644 --- a/src/mycomponents/qty/balanceQty.vue +++ b/src/mycomponents/qty/balanceQty.vue @@ -6,7 +6,6 @@ {{Number(dataContent.qty)}} - @@ -15,62 +14,39 @@ - + \ No newline at end of file diff --git a/src/mycomponents/qty/balanceQtyEdit.vue b/src/mycomponents/qty/balanceQtyEdit.vue index 11f048de..a7a9ee32 100644 --- a/src/mycomponents/qty/balanceQtyEdit.vue +++ b/src/mycomponents/qty/balanceQtyEdit.vue @@ -1,215 +1,204 @@ - diff --git a/src/mycomponents/qty/compareQty.vue b/src/mycomponents/qty/compareQty.vue index d2b3dbdb..c71d21c4 100644 --- a/src/mycomponents/qty/compareQty.vue +++ b/src/mycomponents/qty/compareQty.vue @@ -1,10 +1,10 @@ - diff --git a/src/mycomponents/qty/packQty.vue b/src/mycomponents/qty/packQty.vue index d8893220..b9660562 100644 --- a/src/mycomponents/qty/packQty.vue +++ b/src/mycomponents/qty/packQty.vue @@ -5,32 +5,22 @@ - + \ No newline at end of file diff --git a/src/mycomponents/qty/packUnit.vue b/src/mycomponents/qty/packUnit.vue index d7d95710..63cba315 100644 --- a/src/mycomponents/qty/packUnit.vue +++ b/src/mycomponents/qty/packUnit.vue @@ -2,45 +2,34 @@ - {{getPackUnitName(dataContent.packUnit)}}({{Number(dataContent.packQty)}}{{getUomInfo(dataContent.uom)}}) - + {{getPackUnit(dataContent.packUnit)}}({{Number(dataContent.packQty)}}{{getUom(dataContent.uom)}}) + - diff --git a/src/mycomponents/qty/qty.vue b/src/mycomponents/qty/qty.vue index 31c148ed..b95c5c8a 100644 --- a/src/mycomponents/qty/qty.vue +++ b/src/mycomponents/qty/qty.vue @@ -1,64 +1,42 @@ - - - + diff --git a/src/mycomponents/qty/recommendQty.vue b/src/mycomponents/qty/recommendQty.vue index c96707ac..adebd633 100644 --- a/src/mycomponents/qty/recommendQty.vue +++ b/src/mycomponents/qty/recommendQty.vue @@ -2,82 +2,56 @@ - + {{Number(dataContent.qty)}} - - - - - - diff --git a/src/mycomponents/qty/stdUom.vue b/src/mycomponents/qty/stdUom.vue index 7a495d07..f5e7ae79 100644 --- a/src/mycomponents/qty/stdUom.vue +++ b/src/mycomponents/qty/stdUom.vue @@ -5,36 +5,26 @@ - + \ No newline at end of file diff --git a/src/mycomponents/qty/uom.vue b/src/mycomponents/qty/uom.vue index d2bcc540..c08af7c7 100644 --- a/src/mycomponents/qty/uom.vue +++ b/src/mycomponents/qty/uom.vue @@ -1,40 +1,30 @@ - + \ No newline at end of file diff --git a/src/mycomponents/recommend/recommend.vue b/src/mycomponents/recommend/recommend.vue index b362feed..ca861123 100644 --- a/src/mycomponents/recommend/recommend.vue +++ b/src/mycomponents/recommend/recommend.vue @@ -1,157 +1,103 @@ - - \ No newline at end of file + diff --git a/src/mycomponents/recommend/recommendCount.vue b/src/mycomponents/recommend/recommendCount.vue index 4d2bc57b..c5876206 100644 --- a/src/mycomponents/recommend/recommendCount.vue +++ b/src/mycomponents/recommend/recommendCount.vue @@ -1,146 +1,95 @@ - - + diff --git a/src/mycomponents/record/record.vue b/src/mycomponents/record/record.vue index e22d36c2..7578eda2 100644 --- a/src/mycomponents/record/record.vue +++ b/src/mycomponents/record/record.vue @@ -1,96 +1,68 @@ - - + diff --git a/src/mycomponents/record/recordComDetailCard.vue b/src/mycomponents/record/recordComDetailCard.vue index ddcce89c..54341f28 100644 --- a/src/mycomponents/record/recordComDetailCard.vue +++ b/src/mycomponents/record/recordComDetailCard.vue @@ -1,179 +1,150 @@ - diff --git a/src/mycomponents/record/recordComMainCard.vue b/src/mycomponents/record/recordComMainCard.vue index 7d3442a0..42a2fbc6 100644 --- a/src/mycomponents/record/recordComMainCard.vue +++ b/src/mycomponents/record/recordComMainCard.vue @@ -9,33 +9,18 @@ - + \ No newline at end of file diff --git a/src/mycomponents/record/recordCommonInfo.vue b/src/mycomponents/record/recordCommonInfo.vue index 524d54f3..db17c590 100644 --- a/src/mycomponents/record/recordCommonInfo.vue +++ b/src/mycomponents/record/recordCommonInfo.vue @@ -1,72 +1,49 @@ - - + diff --git a/src/mycomponents/record/recordDetailCard.vue b/src/mycomponents/record/recordDetailCard.vue index ecaceb37..4e7e5e3f 100644 --- a/src/mycomponents/record/recordDetailCard.vue +++ b/src/mycomponents/record/recordDetailCard.vue @@ -1,173 +1,132 @@ - - \ No newline at end of file + diff --git a/src/mycomponents/record/recordFilter.vue b/src/mycomponents/record/recordFilter.vue index c848b583..076667c7 100644 --- a/src/mycomponents/record/recordFilter.vue +++ b/src/mycomponents/record/recordFilter.vue @@ -1,116 +1,100 @@ - - diff --git a/src/mycomponents/record/recordItemInfo.vue b/src/mycomponents/record/recordItemInfo.vue index dc911f51..9d6a539b 100644 --- a/src/mycomponents/record/recordItemInfo.vue +++ b/src/mycomponents/record/recordItemInfo.vue @@ -1,91 +1,73 @@ - - - + diff --git a/src/mycomponents/record/recordListCommonInfo.vue b/src/mycomponents/record/recordListCommonInfo.vue index 5d8cabe3..a1e8fba8 100644 --- a/src/mycomponents/record/recordListCommonInfo.vue +++ b/src/mycomponents/record/recordListCommonInfo.vue @@ -1,80 +1,78 @@ - - + diff --git a/src/mycomponents/record/recordMainInfo.vue b/src/mycomponents/record/recordMainInfo.vue index 8958184e..e714e4b6 100644 --- a/src/mycomponents/record/recordMainInfo.vue +++ b/src/mycomponents/record/recordMainInfo.vue @@ -1,198 +1,173 @@ - + - + diff --git a/src/mycomponents/record/recordNumber.vue b/src/mycomponents/record/recordNumber.vue index 94a38499..8884b46f 100644 --- a/src/mycomponents/record/recordNumber.vue +++ b/src/mycomponents/record/recordNumber.vue @@ -1,36 +1,19 @@ - - - + - + diff --git a/src/mycomponents/record/recordPersonInfo.vue b/src/mycomponents/record/recordPersonInfo.vue index 628a0a89..6eac91ee 100644 --- a/src/mycomponents/record/recordPersonInfo.vue +++ b/src/mycomponents/record/recordPersonInfo.vue @@ -1,57 +1,43 @@ - - + diff --git a/src/mycomponents/record/recordRequestInfo.vue b/src/mycomponents/record/recordRequestInfo.vue index 66d18570..ea91d07d 100644 --- a/src/mycomponents/record/recordRequestInfo.vue +++ b/src/mycomponents/record/recordRequestInfo.vue @@ -1,53 +1,39 @@ - - + diff --git a/src/mycomponents/record/recordStatus.vue b/src/mycomponents/record/recordStatus.vue index f0a516f7..96b57e75 100644 --- a/src/mycomponents/record/recordStatus.vue +++ b/src/mycomponents/record/recordStatus.vue @@ -1,47 +1,29 @@ - - - + diff --git a/src/mycomponents/record/recordTop.vue b/src/mycomponents/record/recordTop.vue index 215c0e9e..f7766eac 100644 --- a/src/mycomponents/record/recordTop.vue +++ b/src/mycomponents/record/recordTop.vue @@ -1,41 +1,27 @@ - - + diff --git a/src/mycomponents/request/requestBottom.vue b/src/mycomponents/request/requestBottom.vue index 120265e5..06879351 100644 --- a/src/mycomponents/request/requestBottom.vue +++ b/src/mycomponents/request/requestBottom.vue @@ -1,49 +1,33 @@ - + \ No newline at end of file diff --git a/src/mycomponents/request/requestComMainCard.vue b/src/mycomponents/request/requestComMainCard.vue index 1ae30fe9..be0f1962 100644 --- a/src/mycomponents/request/requestComMainCard.vue +++ b/src/mycomponents/request/requestComMainCard.vue @@ -9,33 +9,17 @@ - + \ No newline at end of file diff --git a/src/mycomponents/request/requestCommonInfo.vue b/src/mycomponents/request/requestCommonInfo.vue index d8f18495..7bf2eaab 100644 --- a/src/mycomponents/request/requestCommonInfo.vue +++ b/src/mycomponents/request/requestCommonInfo.vue @@ -1,70 +1,39 @@ - - + diff --git a/src/mycomponents/request/requestFilter.vue b/src/mycomponents/request/requestFilter.vue index cfdd185a..bcd21b66 100644 --- a/src/mycomponents/request/requestFilter.vue +++ b/src/mycomponents/request/requestFilter.vue @@ -1,20 +1,18 @@ - + \ No newline at end of file diff --git a/src/mycomponents/request/requestListCommonInfo.vue b/src/mycomponents/request/requestListCommonInfo.vue index 611942bc..8488f42f 100644 --- a/src/mycomponents/request/requestListCommonInfo.vue +++ b/src/mycomponents/request/requestListCommonInfo.vue @@ -4,79 +4,72 @@ - + \ No newline at end of file diff --git a/src/mycomponents/request/requestTop.vue b/src/mycomponents/request/requestTop.vue index 5a49dbe2..3e6871cf 100644 --- a/src/mycomponents/request/requestTop.vue +++ b/src/mycomponents/request/requestTop.vue @@ -7,35 +7,21 @@ - + \ No newline at end of file diff --git a/src/mycomponents/scan/winCheckFgLabel.vue b/src/mycomponents/scan/winCheckFgLabel.vue new file mode 100644 index 00000000..5bf820c4 --- /dev/null +++ b/src/mycomponents/scan/winCheckFgLabel.vue @@ -0,0 +1,239 @@ + + + + + diff --git a/src/mycomponents/scan/winComScan.vue b/src/mycomponents/scan/winComScan.vue index 9a408e09..bd5f3543 100644 --- a/src/mycomponents/scan/winComScan.vue +++ b/src/mycomponents/scan/winComScan.vue @@ -1,289 +1,238 @@ - + // // #ifdef H5 + // if (document.querySelector('textarea') != null) { + // document.querySelector('textarea').setAttribute('inputmode', 'none') + // } + // // #endif + // hide() + // document.querySelector('textarea').setAttribute('inputmode', 'none') +}) +// 监视属性 +watch( + () => props.placeholder, + (val) => { + placeholderValue.value = `请扫描${val}` + } +) +const hide = () => { + // #ifdef APP-PLUS + // 只是解决软键盘的闪现 + const interval = setInterval(function () { + uni.hideKeyboard() // 隐藏软键盘 + }, 5) + setTimeout(() => { + clearInterval(interval) + }, 1000) + // #endif +} +const getValue = () => { + return scanMsg.value +} +const setValue = (val) => { + scanMsg.value = val +} +const clearScanValue = () => { + scanMsg.value = '' + getfocus() +} +const clickScanMsg = () => { + scanMsg.value += '\n' + handelScanMsg() +} +const handelScanMsg = () => { + // 点击了回车 + const index = scanMsg.value.indexOf('\n') + if (index >= 0) { + // that.scanMsg = 'HPQ;V1.0;ICE115F11161AG;PP20230427000027;B20230427002;Q50'; + setTimeout(() => { + losefocus() + const content = scanMsg.value.trim() + if (content == '') { + getfocus() + comMessageRef.value.showErrorMessage('扫描内容为空,请重新扫描', (res) => { + if (res) { + scanMsg.value = '' + getfocus() + } + }) + return + } + if (props.isShowHistory) { + scanList.value.unshift(content) + } + getLabelInfo(content, props.headerType, (callback) => { + // uni.hideLoading(); + const scanResult = callback + if (scanResult.success) { + clear() + // that.getfocus();//不能自动获取焦点 + emit('getResult', scanResult) + } else { + clear() + comMessageRef.value.showErrorMessage(scanResult.message, (res) => { + if (res) { + getfocus() + } + }) + } + }) + }, 500) + } +} +const getfocus = () => { + nextTick((r) => { + boxfocus.value = true + }) + hide() +} +const losefocus = () => { + nextTick((r) => { + boxfocus.value = false + }) +} +const clear = () => { + cursorIndex.value = 0 + scanMsg.value = '' +} +const iconClick = (type) => { + emit('clearResult', scanMsg.value) +} +const expands = () => { + expand.value = !expand.value + expendIcon.value = expand.value == true ? 'arrow-down' : 'arrow-up' +} +const scanClick = () => { + handelScanMsg() +} +const cancelClick = () => { + clear() + getfocus() +} +const showItem = (item) => { + comMessageRef.value.showErrorMessage(item, (res) => { + if (res) { + } + }) +} +const scanQRCode = () => { + uni.scanCode({ + onlyFromCamera: true, + success: (res) => { + scanMsg.value = res.result + emit('getResult', res.result) + // console.log('扫描二维码成功,结果:' + res.result); + }, + fail: (res) => { + showItem(`扫描出现错误:${res.result}`) + console.log(`扫描出现错误:${res.result}`) + } + }) +} +// 传递给父类 +const emit = defineEmits(['getResult', 'clearResult']) +defineExpose({ + getfocus, + handelScanMsg, + clearScanValue, + clear, + clickScanMsg, + losefocus +}) + - \ No newline at end of file + diff --git a/src/mycomponents/scan/winComScanCustomerLabel.vue b/src/mycomponents/scan/winComScanCustomerLabel.vue new file mode 100644 index 00000000..d49d5bba --- /dev/null +++ b/src/mycomponents/scan/winComScanCustomerLabel.vue @@ -0,0 +1,198 @@ + + + + + + + diff --git a/src/mycomponents/scan/winComScanFg.vue b/src/mycomponents/scan/winComScanFg.vue index e61fef82..a3a965c9 100644 --- a/src/mycomponents/scan/winComScanFg.vue +++ b/src/mycomponents/scan/winComScanFg.vue @@ -1,304 +1,282 @@ - - \ No newline at end of file + diff --git a/src/mycomponents/scan/winScanAsnNumber.vue b/src/mycomponents/scan/winScanAsnNumber.vue index 38a7f906..61227dde 100644 --- a/src/mycomponents/scan/winScanAsnNumber.vue +++ b/src/mycomponents/scan/winScanAsnNumber.vue @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/src/mycomponents/scan/winScanContainer.vue b/src/mycomponents/scan/winScanContainer.vue index 3324db49..14249a41 100644 --- a/src/mycomponents/scan/winScanContainer.vue +++ b/src/mycomponents/scan/winScanContainer.vue @@ -1,119 +1,105 @@ - - + diff --git a/src/mycomponents/scan/winScanFgLabel.vue b/src/mycomponents/scan/winScanFgLabel.vue index 2992510a..4bdb3657 100644 --- a/src/mycomponents/scan/winScanFgLabel.vue +++ b/src/mycomponents/scan/winScanFgLabel.vue @@ -1,114 +1,97 @@ - \ No newline at end of file +.scroll-view { + overflow-y: scroll; + height: auto; + max-height: 300rpx; +} + diff --git a/src/mycomponents/scan/winScanItem.vue b/src/mycomponents/scan/winScanItem.vue index bac4db70..2d89a3ee 100644 --- a/src/mycomponents/scan/winScanItem.vue +++ b/src/mycomponents/scan/winScanItem.vue @@ -1,173 +1,145 @@ - - + diff --git a/src/mycomponents/scan/winScanJobNumber.vue b/src/mycomponents/scan/winScanJobNumber.vue index 96cfe6c7..f6dbc861 100644 --- a/src/mycomponents/scan/winScanJobNumber.vue +++ b/src/mycomponents/scan/winScanJobNumber.vue @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/src/mycomponents/scan/winScanLocation.vue b/src/mycomponents/scan/winScanLocation.vue index 24f8dfc8..ad36b249 100644 --- a/src/mycomponents/scan/winScanLocation.vue +++ b/src/mycomponents/scan/winScanLocation.vue @@ -1,164 +1,144 @@ - - + diff --git a/src/mycomponents/scan/winScanPack.vue b/src/mycomponents/scan/winScanPack.vue index c23e40d7..46985b49 100644 --- a/src/mycomponents/scan/winScanPack.vue +++ b/src/mycomponents/scan/winScanPack.vue @@ -1,113 +1,101 @@ - diff --git a/src/mycomponents/scan/winScanPackAndLocation.vue b/src/mycomponents/scan/winScanPackAndLocation.vue index 1e6b5283..c8c7cf7e 100644 --- a/src/mycomponents/scan/winScanPackAndLocation.vue +++ b/src/mycomponents/scan/winScanPackAndLocation.vue @@ -1,450 +1,398 @@ - diff --git a/src/mycomponents/scan/winScanPackAndLocationNoBalance.vue b/src/mycomponents/scan/winScanPackAndLocationNoBalance.vue index 9c1b4781..8ed355d0 100644 --- a/src/mycomponents/scan/winScanPackAndLocationNoBalance.vue +++ b/src/mycomponents/scan/winScanPackAndLocationNoBalance.vue @@ -1,454 +1,264 @@ - diff --git a/src/mycomponents/scan/winScanPackAndPosition.vue b/src/mycomponents/scan/winScanPackAndPosition.vue index 8709d076..cd28d389 100644 --- a/src/mycomponents/scan/winScanPackAndPosition.vue +++ b/src/mycomponents/scan/winScanPackAndPosition.vue @@ -1,225 +1,202 @@ - diff --git a/src/mycomponents/scan/winScanPackJob.vue b/src/mycomponents/scan/winScanPackJob.vue new file mode 100644 index 00000000..c5d4474f --- /dev/null +++ b/src/mycomponents/scan/winScanPackJob.vue @@ -0,0 +1,103 @@ + + + + + diff --git a/src/mycomponents/status/balanceStatus.vue b/src/mycomponents/status/balanceStatus.vue index 786c4ff9..ad7e0357 100644 --- a/src/mycomponents/status/balanceStatus.vue +++ b/src/mycomponents/status/balanceStatus.vue @@ -1,71 +1,50 @@ - - - + - + diff --git a/src/mycomponents/status/status.vue b/src/mycomponents/status/status.vue index 03cc9cac..66b68652 100644 --- a/src/mycomponents/status/status.vue +++ b/src/mycomponents/status/status.vue @@ -1,44 +1,34 @@ - @@ -49,4 +39,4 @@ + \ No newline at end of file diff --git a/src/mycomponents/status/statusEdit.vue b/src/mycomponents/status/statusEdit.vue index f626d4e2..e1205792 100644 --- a/src/mycomponents/status/statusEdit.vue +++ b/src/mycomponents/status/statusEdit.vue @@ -1,5 +1,5 @@ - + \ No newline at end of file diff --git a/src/mycomponents/workStation/workStation.vue b/src/mycomponents/workStation/workStation.vue index da284da9..172d3e5e 100644 --- a/src/mycomponents/workStation/workStation.vue +++ b/src/mycomponents/workStation/workStation.vue @@ -1,77 +1,70 @@ - - diff --git a/src/pages.json b/src/pages.json index 50725bf3..8dc83159 100644 --- a/src/pages.json +++ b/src/pages.json @@ -435,7 +435,7 @@ // 右边按钮 { "float": "right", - "fontSize": "58rpx", //按钮上文字的大小 + "fontSize": "46rpx", //按钮上文字的大小 "text": "\ue696", "fontSrc": "/static/ali_icon/iconfont.ttf" @@ -443,7 +443,7 @@ { "float": "right", - "fontSize": "52rpx", //按钮上文字的大小 + "fontSize": "46rpx", //按钮上文字的大小 "text": "\ue6e2", "fontSrc": "/static/ali_icon/iconfont.ttf" } @@ -559,6 +559,16 @@ } } }, + { + "path": "pages/issue/record/directIssue", + "style": { + "navigationBarTitleText": "直接发料记录", + "enablePullDownRefresh": true, + "titleNView": { + "autoBackButton": "true" + } + } + }, { "path": "pages/productionReceipt/job/productionReceiptJob", "style": { @@ -2033,6 +2043,25 @@ "navigationBarTitleText": "打印", "enablePullDownRefresh": false } + },{ + "path": "pages/pointProductReceipt/index", + "style": { + "navigationBarTitleText": "打印", + "enablePullDownRefresh": false + } + },{ + "path": "pages/pointProductReceipt/webview", + "style": { + "navigationBarTitleText": "打印", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/check/checkFgLabel", + "style": { + "navigationBarTitleText": "标签成品标签", + "enablePullDownRefresh": false + } } ], "globalStyle": { diff --git a/src/pages/check/checkFgLabel.vue b/src/pages/check/checkFgLabel.vue new file mode 100644 index 00000000..cb4946f2 --- /dev/null +++ b/src/pages/check/checkFgLabel.vue @@ -0,0 +1,195 @@ + + + + + diff --git a/src/pages/common/textview/index.vue b/src/pages/common/textview/index.vue deleted file mode 100644 index e9b05fbb..00000000 --- a/src/pages/common/textview/index.vue +++ /dev/null @@ -1,43 +0,0 @@ - - - - - diff --git a/src/pages/common/webview/index.vue b/src/pages/common/webview/index.vue deleted file mode 100644 index 8388c76f..00000000 --- a/src/pages/common/webview/index.vue +++ /dev/null @@ -1,34 +0,0 @@ - - - diff --git a/src/pages/config/config.vue b/src/pages/config/config.vue deleted file mode 100644 index 4365512f..00000000 --- a/src/pages/config/config.vue +++ /dev/null @@ -1,120 +0,0 @@ - - - - - diff --git a/src/pages/container/coms/comPalletRecord.vue b/src/pages/container/coms/comPalletRecord.vue index 7842c96b..3f0283d7 100644 --- a/src/pages/container/coms/comPalletRecord.vue +++ b/src/pages/container/coms/comPalletRecord.vue @@ -1,18 +1,20 @@ - - methods: { - - } - } - - - + diff --git a/src/pages/customerReturn/coms/comReturnRecord.vue b/src/pages/customerReturn/coms/comReturnRecord.vue index ec8b8f5a..8b4f412b 100644 --- a/src/pages/customerReturn/coms/comReturnRecord.vue +++ b/src/pages/customerReturn/coms/comReturnRecord.vue @@ -1,17 +1,19 @@ - - methods: { - - } - } - - - + diff --git a/src/pages/customerReturn/coms/detailInfoPopup.vue b/src/pages/customerReturn/coms/detailInfoPopup.vue index 487c1998..d8868dd6 100644 --- a/src/pages/customerReturn/coms/detailInfoPopup.vue +++ b/src/pages/customerReturn/coms/detailInfoPopup.vue @@ -1,57 +1,40 @@ - - + diff --git a/src/pages/customerReturn/coms/jobInfoPopup.vue b/src/pages/customerReturn/coms/jobInfoPopup.vue index 56c95d71..16d2fd2d 100644 --- a/src/pages/customerReturn/coms/jobInfoPopup.vue +++ b/src/pages/customerReturn/coms/jobInfoPopup.vue @@ -1,78 +1,64 @@ - - + diff --git a/src/pages/customerReturn/coms/jobListPopup.vue b/src/pages/customerReturn/coms/jobListPopup.vue index 07de2e65..34f7e537 100644 --- a/src/pages/customerReturn/coms/jobListPopup.vue +++ b/src/pages/customerReturn/coms/jobListPopup.vue @@ -1,47 +1,35 @@ - - - - - + + + + + diff --git a/src/pages/customerReturn/coms/requestDetailInfoPopup.vue b/src/pages/customerReturn/coms/requestDetailInfoPopup.vue index 54490011..5b84ccd9 100644 --- a/src/pages/customerReturn/coms/requestDetailInfoPopup.vue +++ b/src/pages/customerReturn/coms/requestDetailInfoPopup.vue @@ -1,87 +1,69 @@ + + + + + + + 销售订单号 : + {{ dataContent.soNumber }} + + + 销售订单行 : + {{ dataContent.soLine }} + - - + diff --git a/src/pages/customerReturn/coms/requestInfoPopup.vue b/src/pages/customerReturn/coms/requestInfoPopup.vue index cf979d8d..6d47e57b 100644 --- a/src/pages/customerReturn/coms/requestInfoPopup.vue +++ b/src/pages/customerReturn/coms/requestInfoPopup.vue @@ -1,105 +1,101 @@ - - + diff --git a/src/pages/customerReturn/job/returnDetail.vue b/src/pages/customerReturn/job/returnDetail.vue index 9d3342fc..c23a7d14 100644 --- a/src/pages/customerReturn/job/returnDetail.vue +++ b/src/pages/customerReturn/job/returnDetail.vue @@ -1,522 +1,457 @@ - diff --git a/src/pages/customerReturn/job/returnJob.vue b/src/pages/customerReturn/job/returnJob.vue index 8a058220..2800a136 100644 --- a/src/pages/customerReturn/job/returnJob.vue +++ b/src/pages/customerReturn/job/returnJob.vue @@ -1,12 +1,9 @@ - - + diff --git a/src/pages/customerReturn/record/returnRecord.vue b/src/pages/customerReturn/record/returnRecord.vue index d8f273b9..348449c4 100644 --- a/src/pages/customerReturn/record/returnRecord.vue +++ b/src/pages/customerReturn/record/returnRecord.vue @@ -1,461 +1,373 @@ - diff --git a/src/pages/customerReturn/request/customerReturnRequest.vue b/src/pages/customerReturn/request/customerReturnRequest.vue index 9a80dcc5..77be37fd 100644 --- a/src/pages/customerReturn/request/customerReturnRequest.vue +++ b/src/pages/customerReturn/request/customerReturnRequest.vue @@ -1,393 +1,345 @@ - - + diff --git a/src/pages/customerReturn/request/customerReturnRequestCreate.vue b/src/pages/customerReturn/request/customerReturnRequestCreate.vue index a41a9bcf..09b3097e 100644 --- a/src/pages/customerReturn/request/customerReturnRequestCreate.vue +++ b/src/pages/customerReturn/request/customerReturnRequestCreate.vue @@ -1,480 +1,404 @@ - diff --git a/src/pages/customerReturn/request/customerReturnRequestDetail.vue b/src/pages/customerReturn/request/customerReturnRequestDetail.vue index 7cab635f..caf8e27b 100644 --- a/src/pages/customerReturn/request/customerReturnRequestDetail.vue +++ b/src/pages/customerReturn/request/customerReturnRequestDetail.vue @@ -1,125 +1,94 @@ - - + diff --git a/src/pages/deliver/coms/comDeliverDetailCard.vue b/src/pages/deliver/coms/comDeliverDetailCard.vue index 31da1f5c..a4f310e1 100644 --- a/src/pages/deliver/coms/comDeliverDetailCard.vue +++ b/src/pages/deliver/coms/comDeliverDetailCard.vue @@ -1,169 +1,148 @@ - - + diff --git a/src/pages/deliver/coms/comDeliverJobCard.vue b/src/pages/deliver/coms/comDeliverJobCard.vue index dfb3bb26..032a0066 100644 --- a/src/pages/deliver/coms/comDeliverJobCard.vue +++ b/src/pages/deliver/coms/comDeliverJobCard.vue @@ -1,34 +1,23 @@ - - \ No newline at end of file + diff --git a/src/pages/deliver/coms/comDeliverRequestCard.vue b/src/pages/deliver/coms/comDeliverRequestCard.vue index 911f880c..70741f72 100644 --- a/src/pages/deliver/coms/comDeliverRequestCard.vue +++ b/src/pages/deliver/coms/comDeliverRequestCard.vue @@ -1,34 +1,19 @@ + + + + - - methods: { - - } - } - - - + diff --git a/src/pages/deliver/coms/comDeliverRequestCreator.vue b/src/pages/deliver/coms/comDeliverRequestCreator.vue index 5f75ab38..d4ba001a 100644 --- a/src/pages/deliver/coms/comDeliverRequestCreator.vue +++ b/src/pages/deliver/coms/comDeliverRequestCreator.vue @@ -1,59 +1,45 @@ - - + diff --git a/src/pages/deliver/coms/comDeliverRequestPopup.vue b/src/pages/deliver/coms/comDeliverRequestPopup.vue index 14e332b3..d2fa57fd 100644 --- a/src/pages/deliver/coms/comDeliverRequestPopup.vue +++ b/src/pages/deliver/coms/comDeliverRequestPopup.vue @@ -1,297 +1,268 @@ - - diff --git a/src/pages/deliver/coms/comScanDeliverPack.vue b/src/pages/deliver/coms/comScanDeliverPack.vue index 30305545..394ae650 100644 --- a/src/pages/deliver/coms/comScanDeliverPack.vue +++ b/src/pages/deliver/coms/comScanDeliverPack.vue @@ -1,76 +1,37 @@ - diff --git a/src/pages/deliver/coms/detailInfoPopup.vue b/src/pages/deliver/coms/detailInfoPopup.vue index 487c1998..77766af8 100644 --- a/src/pages/deliver/coms/detailInfoPopup.vue +++ b/src/pages/deliver/coms/detailInfoPopup.vue @@ -1,57 +1,43 @@ - - + diff --git a/src/pages/deliver/coms/jobInfoPopup.vue b/src/pages/deliver/coms/jobInfoPopup.vue index f5e5970c..032c4ec6 100644 --- a/src/pages/deliver/coms/jobInfoPopup.vue +++ b/src/pages/deliver/coms/jobInfoPopup.vue @@ -1,76 +1,64 @@ - - + diff --git a/src/pages/deliver/coms/jobListPopup.vue b/src/pages/deliver/coms/jobListPopup.vue index e63d998e..f7787bea 100644 --- a/src/pages/deliver/coms/jobListPopup.vue +++ b/src/pages/deliver/coms/jobListPopup.vue @@ -1,47 +1,40 @@ - - + diff --git a/src/pages/deliver/coms/requestDetailInfoPopup.vue b/src/pages/deliver/coms/requestDetailInfoPopup.vue index ac7ff32a..49ed8f04 100644 --- a/src/pages/deliver/coms/requestDetailInfoPopup.vue +++ b/src/pages/deliver/coms/requestDetailInfoPopup.vue @@ -1,87 +1,68 @@ - - + diff --git a/src/pages/deliver/coms/requestInfoPopup.vue b/src/pages/deliver/coms/requestInfoPopup.vue index 991575c8..64afb718 100644 --- a/src/pages/deliver/coms/requestInfoPopup.vue +++ b/src/pages/deliver/coms/requestInfoPopup.vue @@ -1,99 +1,98 @@ + + + + + + - - + diff --git a/src/pages/deliver/job/deliverDetail.vue b/src/pages/deliver/job/deliverDetail.vue index 39d4a47e..39f39e0c 100644 --- a/src/pages/deliver/job/deliverDetail.vue +++ b/src/pages/deliver/job/deliverDetail.vue @@ -1,468 +1,388 @@ - diff --git a/src/pages/deliver/job/deliverJob.vue b/src/pages/deliver/job/deliverJob.vue index 38f09253..d2b6d201 100644 --- a/src/pages/deliver/job/deliverJob.vue +++ b/src/pages/deliver/job/deliverJob.vue @@ -1,286 +1,252 @@ - - + diff --git a/src/pages/deliver/record/deliverRecord.vue b/src/pages/deliver/record/deliverRecord.vue index 9e58789d..b8348f86 100644 --- a/src/pages/deliver/record/deliverRecord.vue +++ b/src/pages/deliver/record/deliverRecord.vue @@ -1,488 +1,411 @@ - diff --git a/src/pages/deliver/request/deliverRequest.vue b/src/pages/deliver/request/deliverRequest.vue index a635d02f..a26736d6 100644 --- a/src/pages/deliver/request/deliverRequest.vue +++ b/src/pages/deliver/request/deliverRequest.vue @@ -1,391 +1,337 @@ - - - + diff --git a/src/pages/deliver/request/deliverRequestCreate.vue b/src/pages/deliver/request/deliverRequestCreate.vue index 853cc3aa..bc52f12d 100644 --- a/src/pages/deliver/request/deliverRequestCreate.vue +++ b/src/pages/deliver/request/deliverRequestCreate.vue @@ -1,197 +1,162 @@ - - + diff --git a/src/pages/deliver/request/deliverRequestDetail.vue b/src/pages/deliver/request/deliverRequestDetail.vue index d1dfa6bf..701d318e 100644 --- a/src/pages/deliver/request/deliverRequestDetail.vue +++ b/src/pages/deliver/request/deliverRequestDetail.vue @@ -1,137 +1,99 @@ - - + diff --git a/src/pages/demo/demo.vue b/src/pages/demo/demo.vue deleted file mode 100644 index 1a87fe6a..00000000 --- a/src/pages/demo/demo.vue +++ /dev/null @@ -1,703 +0,0 @@ - - - - - diff --git a/src/pages/demo/page.vue b/src/pages/demo/page.vue deleted file mode 100644 index 491d6a24..00000000 --- a/src/pages/demo/page.vue +++ /dev/null @@ -1,128 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/pages/error/404.vue b/src/pages/error/404.vue deleted file mode 100644 index 2f29e39e..00000000 --- a/src/pages/error/404.vue +++ /dev/null @@ -1,34 +0,0 @@ - - - - - diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 9a38eacc..da997f4b 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -1,591 +1,582 @@ - \ No newline at end of file +.u-wrap { + height: calc(100vh); + /* #ifdef H5 */ + height: calc(100vh - var(--window-top)); + /* #endif */ + display: flex; + flex-direction: column; + background: #ebeef0; +} + +.u-search-box { + padding: 18rpx 30rpx; +} + +.u-menu-wrap { + flex: 1; + display: flex; + overflow: hidden; +} + +.u-search-inner { + background-color: rgb(234, 234, 234); + border-radius: 100rpx; + display: flex; + align-items: center; + padding: 10rpx 16rpx; +} + +.u-search-text { + font-size: 26rpx; + color: $u-tips-color; + margin-left: 10rpx; +} + +.u-tab-view { + width: 180rpx; + height: 100%; +} + +.u-tab-item { + height: 110rpx; + background: #ebeef0; + box-sizing: border-box; + display: flex; + align-items: center; + justify-content: center; + font-size: 28rpx; + color: #444; + font-weight: 400; + line-height: 1; +} + +.u-tab-item-active { + position: relative; + color: #000; + font-size: 28rpx; + font-weight: 600; + background: #fff; +} + +.u-tab-item-active::before { + content: ''; + position: absolute; + border-left: 4px solid $u-type-primary; + height: 100%; + left: 0; + top: 0rpx; +} + +.u-tab-view { + height: 100%; +} + +.right-box { + background-color: #f5f5f5; +} + +.page-view { + padding: 16rpx; +} + +.class-item { + margin-bottom: 20rpx; + background-color: #fff; + padding: 16rpx; + border-radius: 8rpx; +} + +.class-item:last-child { + min-height: 100vh; +} + +.item-title { + font-size: 32rpx; + color: $u-main-color; + font-weight: bold; +} + +.item-menu-name { + font-weight: normal; + font-size: 28rpx; + color: #787e84; + width: 120rpx; + // word-wrap: break-word; + // word-break: break-all; + // white-space: pre-wrap; +} + +.item-container { + display: flex; + flex-wrap: wrap; +} + +.thumb-box { + width: 33.333333%; + display: flex; + align-items: center; + // justify-content: center; + flex-direction: column; + margin-top: 10rpx; + margin-bottom: 10rpx; + text-align: center; +} + +.item-menu-image { + width: 32px; + height: 32px; +} + +.item-menu-badge { + width: 36rpx; + height: 36rpx; + align-items: center; + // top: -5px; + // right: -5px; + font-size: 0.6rem; + background-color: #fa3534; + position: absolute; + right: 0; + color: #fff; + text-align: center; + line-height: 36rpx; + border-radius: 50%; +} + +.serch { + width: 100%; + display: flex; + /* height: 130upx; */ + align-items: center; + background: #3c9cff; + padding: 0px 20rpx 20rpx; +} + +.flex1 { + flex: 1; + font-size: 18px; +} + +.menu { + width: 100%; +} + +.nomore { + font-size: 30rpx; + color: #666; + text-align: center; + align-items: center; +} + diff --git a/src/pages/inspect/coms/comInspectRequestCard.vue b/src/pages/inspect/coms/comInspectRequestCard.vue index f6c79311..e0acacf5 100644 --- a/src/pages/inspect/coms/comInspectRequestCard.vue +++ b/src/pages/inspect/coms/comInspectRequestCard.vue @@ -1,45 +1,23 @@ + + + 采购收货记录单号 : {{ dataContent.purchaseReceiptRecordNumber }} + 订单号 : {{ dataContent.poNumber }} + 订单行 : {{ dataContent.poLine }} + 供应商代码 : {{ dataContent.supplierCode }} + + + - - methods: { - - } - } - - - + diff --git a/src/pages/inspect/coms/requestInfoPopup.vue b/src/pages/inspect/coms/requestInfoPopup.vue index 6b26321d..52239701 100644 --- a/src/pages/inspect/coms/requestInfoPopup.vue +++ b/src/pages/inspect/coms/requestInfoPopup.vue @@ -1,116 +1,116 @@ - - + diff --git a/src/pages/inspect/job/inspectJob.vue b/src/pages/inspect/job/inspectJob.vue index fa093d52..0b984828 100644 --- a/src/pages/inspect/job/inspectJob.vue +++ b/src/pages/inspect/job/inspectJob.vue @@ -1,296 +1,280 @@ - + diff --git a/src/pages/inspect/request/inspectRequest.vue b/src/pages/inspect/request/inspectRequest.vue index 27e32769..824db5dd 100644 --- a/src/pages/inspect/request/inspectRequest.vue +++ b/src/pages/inspect/request/inspectRequest.vue @@ -1,381 +1,335 @@ - - + diff --git a/src/pages/inspect/request/inspectRequestDetail.vue b/src/pages/inspect/request/inspectRequestDetail.vue index 7fb0f7be..d1deab4f 100644 --- a/src/pages/inspect/request/inspectRequestDetail.vue +++ b/src/pages/inspect/request/inspectRequestDetail.vue @@ -1,130 +1,89 @@ - - + diff --git a/src/pages/inventoryMove/coms/comInventoryDetailCard.vue b/src/pages/inventoryMove/coms/comInventoryDetailCard.vue index 0dcd67b6..cb9600e3 100644 --- a/src/pages/inventoryMove/coms/comInventoryDetailCard.vue +++ b/src/pages/inventoryMove/coms/comInventoryDetailCard.vue @@ -1,142 +1,124 @@ - - + diff --git a/src/pages/inventoryMove/coms/comInventoryJobCard.vue b/src/pages/inventoryMove/coms/comInventoryJobCard.vue index d8a43bf2..109c7daa 100644 --- a/src/pages/inventoryMove/coms/comInventoryJobCard.vue +++ b/src/pages/inventoryMove/coms/comInventoryJobCard.vue @@ -1,34 +1,19 @@ + + + + - - methods: { - - } - } - - - + diff --git a/src/pages/inventoryMove/coms/comMoveJob.vue b/src/pages/inventoryMove/coms/comMoveJob.vue index ea4ce8b2..8615f84d 100644 --- a/src/pages/inventoryMove/coms/comMoveJob.vue +++ b/src/pages/inventoryMove/coms/comMoveJob.vue @@ -1,321 +1,280 @@ - - + diff --git a/src/pages/inventoryMove/coms/comMoveRecord.vue b/src/pages/inventoryMove/coms/comMoveRecord.vue index 79283255..a86b4698 100644 --- a/src/pages/inventoryMove/coms/comMoveRecord.vue +++ b/src/pages/inventoryMove/coms/comMoveRecord.vue @@ -1,444 +1,391 @@ - - + diff --git a/src/pages/inventoryMove/coms/comMoveRecordCard.vue b/src/pages/inventoryMove/coms/comMoveRecordCard.vue index 80c1c590..7fa9945e 100644 --- a/src/pages/inventoryMove/coms/comMoveRecordCard.vue +++ b/src/pages/inventoryMove/coms/comMoveRecordCard.vue @@ -1,18 +1,21 @@ - - methods: { - - } - } - - - + diff --git a/src/pages/issue/coms/comIssueRequestCard.vue b/src/pages/issue/coms/comIssueRequestCard.vue index 55036b26..70741f72 100644 --- a/src/pages/issue/coms/comIssueRequestCard.vue +++ b/src/pages/issue/coms/comIssueRequestCard.vue @@ -1,34 +1,19 @@ + + + + - - methods: { - - } - } - - - + diff --git a/src/pages/issue/coms/comIssueRequestCreator.vue b/src/pages/issue/coms/comIssueRequestCreator.vue index ce68e6dd..cf726392 100644 --- a/src/pages/issue/coms/comIssueRequestCreator.vue +++ b/src/pages/issue/coms/comIssueRequestCreator.vue @@ -1,151 +1,112 @@ - - + diff --git a/src/pages/issue/coms/comIssueRequestDetailCard.vue b/src/pages/issue/coms/comIssueRequestDetailCard.vue index 1737cd31..eba283d2 100644 --- a/src/pages/issue/coms/comIssueRequestDetailCard.vue +++ b/src/pages/issue/coms/comIssueRequestDetailCard.vue @@ -1,151 +1,113 @@ - - + diff --git a/src/pages/issue/coms/comIssueRequestInfo.vue b/src/pages/issue/coms/comIssueRequestInfo.vue index b1245958..6121a9c8 100644 --- a/src/pages/issue/coms/comIssueRequestInfo.vue +++ b/src/pages/issue/coms/comIssueRequestInfo.vue @@ -1,56 +1,39 @@ - - - + - + diff --git a/src/pages/issue/coms/comIssueRequestPopup.vue b/src/pages/issue/coms/comIssueRequestPopup.vue index 33d04731..a383acdd 100644 --- a/src/pages/issue/coms/comIssueRequestPopup.vue +++ b/src/pages/issue/coms/comIssueRequestPopup.vue @@ -1,406 +1,371 @@ - diff --git a/src/pages/issue/coms/comScanIssuePack.vue b/src/pages/issue/coms/comScanIssuePack.vue index 6d13149d..4308a495 100644 --- a/src/pages/issue/coms/comScanIssuePack.vue +++ b/src/pages/issue/coms/comScanIssuePack.vue @@ -1,533 +1,466 @@ - diff --git a/src/pages/issue/coms/jobInfoPopup.vue b/src/pages/issue/coms/jobInfoPopup.vue index f654d6b4..6cdcb74a 100644 --- a/src/pages/issue/coms/jobInfoPopup.vue +++ b/src/pages/issue/coms/jobInfoPopup.vue @@ -1,58 +1,43 @@ - - + diff --git a/src/pages/issue/coms/jobListPopup.vue b/src/pages/issue/coms/jobListPopup.vue index 6e49a0d1..4bd14d65 100644 --- a/src/pages/issue/coms/jobListPopup.vue +++ b/src/pages/issue/coms/jobListPopup.vue @@ -1,46 +1,38 @@ - - + diff --git a/src/pages/issue/coms/requestDetailInfoPopup.vue b/src/pages/issue/coms/requestDetailInfoPopup.vue index 377a384e..6c655604 100644 --- a/src/pages/issue/coms/requestDetailInfoPopup.vue +++ b/src/pages/issue/coms/requestDetailInfoPopup.vue @@ -1,85 +1,77 @@ - - + diff --git a/src/pages/issue/coms/requestInfoPopup.vue b/src/pages/issue/coms/requestInfoPopup.vue index c2ce5c56..031ab098 100644 --- a/src/pages/issue/coms/requestInfoPopup.vue +++ b/src/pages/issue/coms/requestInfoPopup.vue @@ -1,77 +1,74 @@ - - + diff --git a/src/pages/issue/job/issueDetail.vue b/src/pages/issue/job/issueDetail.vue index 01e75dc1..e7f04f67 100644 --- a/src/pages/issue/job/issueDetail.vue +++ b/src/pages/issue/job/issueDetail.vue @@ -1,518 +1,423 @@ - diff --git a/src/pages/issue/job/issueJob.vue b/src/pages/issue/job/issueJob.vue index 9d26a187..567d235b 100644 --- a/src/pages/issue/job/issueJob.vue +++ b/src/pages/issue/job/issueJob.vue @@ -1,309 +1,287 @@ - - + diff --git a/src/pages/issue/js/issue.js b/src/pages/issue/js/issue.js index 0cabca84..696ff895 100644 --- a/src/pages/issue/js/issue.js +++ b/src/pages/issue/js/issue.js @@ -55,7 +55,7 @@ export function createItemInfo(detail) { itemName: detail.itemName, productionLineCode: detail.productionLineCode, workStationCode: detail.workStationCode, - stdPackQty: detail.stdPackQty, + packQty: detail.packQty, packUnit: detail.packUnit, qty: detail.qty, uom: detail.uom, diff --git a/src/pages/issue/record/directIssue.vue b/src/pages/issue/record/directIssue.vue new file mode 100644 index 00000000..f266ddff --- /dev/null +++ b/src/pages/issue/record/directIssue.vue @@ -0,0 +1,485 @@ + + + + + diff --git a/src/pages/issue/record/issueRecord.vue b/src/pages/issue/record/issueRecord.vue index 478b634c..96b42863 100644 --- a/src/pages/issue/record/issueRecord.vue +++ b/src/pages/issue/record/issueRecord.vue @@ -1,432 +1,349 @@ - - + diff --git a/src/pages/issue/request/issueRequest.vue b/src/pages/issue/request/issueRequest.vue index 820642b7..017b1d73 100644 --- a/src/pages/issue/request/issueRequest.vue +++ b/src/pages/issue/request/issueRequest.vue @@ -1,397 +1,335 @@ - - + diff --git a/src/pages/issue/request/issueRequestCreate.vue b/src/pages/issue/request/issueRequestCreate.vue index fe896681..1cc42bc4 100644 --- a/src/pages/issue/request/issueRequestCreate.vue +++ b/src/pages/issue/request/issueRequestCreate.vue @@ -1,215 +1,180 @@ - - + diff --git a/src/pages/issue/request/issueRequestDetail.vue b/src/pages/issue/request/issueRequestDetail.vue index 290179a9..6f9f42f8 100644 --- a/src/pages/issue/request/issueRequestDetail.vue +++ b/src/pages/issue/request/issueRequestDetail.vue @@ -1,135 +1,86 @@ - - + diff --git a/src/pages/issue/request/issueScanRequest.vue b/src/pages/issue/request/issueScanRequest.vue index d69caa27..e0bf3621 100644 --- a/src/pages/issue/request/issueScanRequest.vue +++ b/src/pages/issue/request/issueScanRequest.vue @@ -1,159 +1,130 @@ - - + diff --git a/src/pages/login/index.vue b/src/pages/login/index.vue index 8f5f45b0..3bc96d77 100644 --- a/src/pages/login/index.vue +++ b/src/pages/login/index.vue @@ -1,320 +1,320 @@ \ No newline at end of file +.conone .uni-eye-active { + color: #5a7cf3; +} + diff --git a/src/pages/message/details.vue b/src/pages/message/details.vue index 915b210a..65221372 100644 --- a/src/pages/message/details.vue +++ b/src/pages/message/details.vue @@ -1,96 +1,79 @@ - diff --git a/src/pages/message/index.vue b/src/pages/message/index.vue index a9ba807e..b77fc523 100644 --- a/src/pages/message/index.vue +++ b/src/pages/message/index.vue @@ -1,323 +1,290 @@ - diff --git a/src/pages/package/coms/comOverPackJobCard.vue b/src/pages/package/coms/comOverPackJobCard.vue index d8a43bf2..109c7daa 100644 --- a/src/pages/package/coms/comOverPackJobCard.vue +++ b/src/pages/package/coms/comOverPackJobCard.vue @@ -1,34 +1,19 @@ + + + + - - methods: { - - } - } - - - + diff --git a/src/pages/package/coms/comOverPackJobDetailCard.vue b/src/pages/package/coms/comOverPackJobDetailCard.vue index 024daed0..8d67183a 100644 --- a/src/pages/package/coms/comOverPackJobDetailCard.vue +++ b/src/pages/package/coms/comOverPackJobDetailCard.vue @@ -1,186 +1,138 @@ - - + diff --git a/src/pages/package/coms/comScanPackagePack.vue b/src/pages/package/coms/comScanPackagePack.vue index 29cb3297..4850d9aa 100644 --- a/src/pages/package/coms/comScanPackagePack.vue +++ b/src/pages/package/coms/comScanPackagePack.vue @@ -1,20 +1,16 @@ - diff --git a/src/pages/package/job/overPackageJob.vue b/src/pages/package/job/overPackageJob.vue index 21bb9fb4..66f477db 100644 --- a/src/pages/package/job/overPackageJob.vue +++ b/src/pages/package/job/overPackageJob.vue @@ -1,305 +1,256 @@ - - - + diff --git a/src/pages/package/job/overPackageJobDetail.vue b/src/pages/package/job/overPackageJobDetail.vue index ffa515e9..37e6ca37 100644 --- a/src/pages/package/job/overPackageJobDetail.vue +++ b/src/pages/package/job/overPackageJobDetail.vue @@ -1,589 +1,465 @@ - - \ No newline at end of file +.uni-numbox__value { + width: 40px; +} + +button[disabled] { + background-color: #3c9cff; + color: #fff; + opacity: 0.7; +} + +// /deep/ .input-value { +// font-size: 16px; +// } + +// /deep/ .uni-collapse-item__title-text { +// font-size: 16px; +// } + +// /deep/ .uni-collapse-item--border { +// border-bottom-width: 0px; +// border-bottom-color: #ebeef5; +// } + +// /deep/ .uni-collapse-item--border { +// border-bottom-width: 1px; +// border-bottom-color: #ebeef5; +// } + diff --git a/src/pages/package/record/overPackageRecord.vue b/src/pages/package/record/overPackageRecord.vue index 7bd7be06..dec0477b 100644 --- a/src/pages/package/record/overPackageRecord.vue +++ b/src/pages/package/record/overPackageRecord.vue @@ -1,475 +1,415 @@ - \ No newline at end of file + text-align: center; + background: #e0e0e0; +} + diff --git a/src/pages/point/index.vue b/src/pages/point/index.vue index 87236005..0dcf6b80 100644 --- a/src/pages/point/index.vue +++ b/src/pages/point/index.vue @@ -1,27 +1,27 @@ - \ No newline at end of file diff --git a/src/pages/pointProductReceipt/webview.vue b/src/pages/pointProductReceipt/webview.vue new file mode 100644 index 00000000..eb9a4fbf --- /dev/null +++ b/src/pages/pointProductReceipt/webview.vue @@ -0,0 +1,26 @@ + + + diff --git a/src/pages/print/index.vue b/src/pages/print/index.vue deleted file mode 100644 index 51fdc9e9..00000000 --- a/src/pages/print/index.vue +++ /dev/null @@ -1,34 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/pages/productDismantle/job/productDismantleJob.vue b/src/pages/productDismantle/job/productDismantleJob.vue index e566a891..bf1617ad 100644 --- a/src/pages/productDismantle/job/productDismantleJob.vue +++ b/src/pages/productDismantle/job/productDismantleJob.vue @@ -1,287 +1,273 @@ + const params = { + filters, + pageNo: 1, + pageSize: 100 + } + getProductDismantleJobList(params) + .then((res) => { + uni.hideLoading() + if (res.data.list.length == 0) { + that.showMessage('未查找到' + `【${code}】的收货任务`) + } else if (res.data.list.length == 1) { + that.openJobDetail(res.data.list[0]) + } + }) + .catch((error) => { + uni.hideLoading() + that.showMessage(error) + }) + }, - + diff --git a/src/pages/productPutaway/coms/comProductJobCard.vue b/src/pages/productPutaway/coms/comProductJobCard.vue index d8a43bf2..109c7daa 100644 --- a/src/pages/productPutaway/coms/comProductJobCard.vue +++ b/src/pages/productPutaway/coms/comProductJobCard.vue @@ -1,34 +1,19 @@ + + + + - - methods: { - - } - } - - - + diff --git a/src/pages/productPutaway/coms/comPutawayRequestCard.vue b/src/pages/productPutaway/coms/comPutawayRequestCard.vue index 3093a56a..70741f72 100644 --- a/src/pages/productPutaway/coms/comPutawayRequestCard.vue +++ b/src/pages/productPutaway/coms/comPutawayRequestCard.vue @@ -1,35 +1,19 @@ + + + + - - methods: { - - } - } - - - + diff --git a/src/pages/productPutaway/coms/detailInfoPopup.vue b/src/pages/productPutaway/coms/detailInfoPopup.vue index 4b64c50c..9a947a8e 100644 --- a/src/pages/productPutaway/coms/detailInfoPopup.vue +++ b/src/pages/productPutaway/coms/detailInfoPopup.vue @@ -1,9 +1,9 @@ - - + diff --git a/src/pages/productPutaway/coms/jobInfoPopup.vue b/src/pages/productPutaway/coms/jobInfoPopup.vue index 91888580..3671a850 100644 --- a/src/pages/productPutaway/coms/jobInfoPopup.vue +++ b/src/pages/productPutaway/coms/jobInfoPopup.vue @@ -1,53 +1,39 @@ - - + diff --git a/src/pages/productPutaway/coms/jobListPopup.vue b/src/pages/productPutaway/coms/jobListPopup.vue index f4c0e319..0f55b54e 100644 --- a/src/pages/productPutaway/coms/jobListPopup.vue +++ b/src/pages/productPutaway/coms/jobListPopup.vue @@ -1,47 +1,38 @@ - - + diff --git a/src/pages/productPutaway/coms/requestDetailInfoPopup.vue b/src/pages/productPutaway/coms/requestDetailInfoPopup.vue index a5bf0df1..2a02f841 100644 --- a/src/pages/productPutaway/coms/requestDetailInfoPopup.vue +++ b/src/pages/productPutaway/coms/requestDetailInfoPopup.vue @@ -1,73 +1,56 @@ - - + diff --git a/src/pages/productPutaway/coms/requestInfoPopup.vue b/src/pages/productPutaway/coms/requestInfoPopup.vue index 0168f889..018f736e 100644 --- a/src/pages/productPutaway/coms/requestInfoPopup.vue +++ b/src/pages/productPutaway/coms/requestInfoPopup.vue @@ -1,73 +1,69 @@ - - + diff --git a/src/pages/productPutaway/job/fgProductPutawayJob.vue b/src/pages/productPutaway/job/fgProductPutawayJob.vue index fa9385a2..d6634a39 100644 --- a/src/pages/productPutaway/job/fgProductPutawayJob.vue +++ b/src/pages/productPutaway/job/fgProductPutawayJob.vue @@ -1,45 +1,35 @@ - - \ No newline at end of file + diff --git a/src/pages/productPutaway/job/productPutawayDetail.vue b/src/pages/productPutaway/job/productPutawayDetail.vue index 6fb00480..2bc50ed9 100644 --- a/src/pages/productPutaway/job/productPutawayDetail.vue +++ b/src/pages/productPutaway/job/productPutawayDetail.vue @@ -1,520 +1,433 @@ - - \ No newline at end of file + diff --git a/src/pages/productPutaway/job/productPutawayJob.vue b/src/pages/productPutaway/job/productPutawayJob.vue index 93010b71..747af082 100644 --- a/src/pages/productPutaway/job/productPutawayJob.vue +++ b/src/pages/productPutaway/job/productPutawayJob.vue @@ -1,313 +1,334 @@ - - \ No newline at end of file + diff --git a/src/pages/productPutaway/job/semiProductPutawayJob.vue b/src/pages/productPutaway/job/semiProductPutawayJob.vue index ef249e3e..cbda6f83 100644 --- a/src/pages/productPutaway/job/semiProductPutawayJob.vue +++ b/src/pages/productPutaway/job/semiProductPutawayJob.vue @@ -1,45 +1,35 @@ - - \ No newline at end of file + diff --git a/src/pages/productPutaway/record/productPutawayRecord.vue b/src/pages/productPutaway/record/productPutawayRecord.vue index adba4f24..f4d83c8c 100644 --- a/src/pages/productPutaway/record/productPutawayRecord.vue +++ b/src/pages/productPutaway/record/productPutawayRecord.vue @@ -1,446 +1,375 @@ - diff --git a/src/pages/productPutaway/request/putawayRequest.vue b/src/pages/productPutaway/request/putawayRequest.vue index 4323d297..f37527cb 100644 --- a/src/pages/productPutaway/request/putawayRequest.vue +++ b/src/pages/productPutaway/request/putawayRequest.vue @@ -1,399 +1,340 @@ - - + diff --git a/src/pages/productPutaway/request/putawayRequestCreate.vue b/src/pages/productPutaway/request/putawayRequestCreate.vue index 28c7b5f8..b2ec1bfd 100644 --- a/src/pages/productPutaway/request/putawayRequestCreate.vue +++ b/src/pages/productPutaway/request/putawayRequestCreate.vue @@ -1,428 +1,330 @@ - diff --git a/src/pages/productPutaway/request/putawayRequestDetail.vue b/src/pages/productPutaway/request/putawayRequestDetail.vue index ab816d24..ba777c14 100644 --- a/src/pages/productPutaway/request/putawayRequestDetail.vue +++ b/src/pages/productPutaway/request/putawayRequestDetail.vue @@ -1,123 +1,95 @@ - - + diff --git a/src/pages/productReceipt/coms/comFgCard.vue b/src/pages/productReceipt/coms/comFgCard.vue index 0250637d..c5f10acc 100644 --- a/src/pages/productReceipt/coms/comFgCard.vue +++ b/src/pages/productReceipt/coms/comFgCard.vue @@ -1,62 +1,45 @@ - - \ No newline at end of file + diff --git a/src/pages/productReceipt/coms/comProductDetailCard.vue b/src/pages/productReceipt/coms/comProductDetailCard.vue index 7b251c84..afe745bf 100644 --- a/src/pages/productReceipt/coms/comProductDetailCard.vue +++ b/src/pages/productReceipt/coms/comProductDetailCard.vue @@ -1,164 +1,148 @@ - - \ No newline at end of file + diff --git a/src/pages/productReceipt/coms/comProductJobCard.vue b/src/pages/productReceipt/coms/comProductJobCard.vue index 8710f316..c94d9399 100644 --- a/src/pages/productReceipt/coms/comProductJobCard.vue +++ b/src/pages/productReceipt/coms/comProductJobCard.vue @@ -1,7 +1,7 @@ - - \ No newline at end of file + diff --git a/src/pages/productReceipt/coms/comProductRecord.vue b/src/pages/productReceipt/coms/comProductRecord.vue index 2e8c04a5..6cd01b5d 100644 --- a/src/pages/productReceipt/coms/comProductRecord.vue +++ b/src/pages/productReceipt/coms/comProductRecord.vue @@ -1,169 +1,162 @@ - - methods: { - - } - } - - - + diff --git a/src/pages/productionReceipt/coms/comProductionRecord.vue b/src/pages/productionReceipt/coms/comProductionRecord.vue index 50456a6f..87feb1ed 100644 --- a/src/pages/productionReceipt/coms/comProductionRecord.vue +++ b/src/pages/productionReceipt/coms/comProductionRecord.vue @@ -1,194 +1,177 @@ - - methods: { - - } - } - - - + diff --git a/src/pages/productionReturn/coms/comReturnRequestCreator.vue b/src/pages/productionReturn/coms/comReturnRequestCreator.vue index cc648dd6..933a3924 100644 --- a/src/pages/productionReturn/coms/comReturnRequestCreator.vue +++ b/src/pages/productionReturn/coms/comReturnRequestCreator.vue @@ -1,159 +1,116 @@ - - + diff --git a/src/pages/productionReturn/coms/comReturnRequestInfo.vue b/src/pages/productionReturn/coms/comReturnRequestInfo.vue index 8c876373..b692b6f0 100644 --- a/src/pages/productionReturn/coms/comReturnRequestInfo.vue +++ b/src/pages/productionReturn/coms/comReturnRequestInfo.vue @@ -1,57 +1,40 @@ - - - + - \ No newline at end of file + diff --git a/src/pages/productionReturn/coms/comReturnRequestPopup.vue b/src/pages/productionReturn/coms/comReturnRequestPopup.vue index 0484cdc0..8f59babc 100644 --- a/src/pages/productionReturn/coms/comReturnRequestPopup.vue +++ b/src/pages/productionReturn/coms/comReturnRequestPopup.vue @@ -1,377 +1,349 @@ - diff --git a/src/pages/productionReturn/coms/comScanReturnPack.vue b/src/pages/productionReturn/coms/comScanReturnPack.vue index 2f11c595..06f10d27 100644 --- a/src/pages/productionReturn/coms/comScanReturnPack.vue +++ b/src/pages/productionReturn/coms/comScanReturnPack.vue @@ -1,513 +1,418 @@ - diff --git a/src/pages/productionReturn/coms/detailInfoPopup.vue b/src/pages/productionReturn/coms/detailInfoPopup.vue index 3c0d9640..de172741 100644 --- a/src/pages/productionReturn/coms/detailInfoPopup.vue +++ b/src/pages/productionReturn/coms/detailInfoPopup.vue @@ -1,57 +1,49 @@ - - + diff --git a/src/pages/productionReturn/coms/jobInfoPopup.vue b/src/pages/productionReturn/coms/jobInfoPopup.vue index 91888580..cd6a7cd3 100644 --- a/src/pages/productionReturn/coms/jobInfoPopup.vue +++ b/src/pages/productionReturn/coms/jobInfoPopup.vue @@ -1,53 +1,45 @@ - - + diff --git a/src/pages/productionReturn/coms/jobListPopup.vue b/src/pages/productionReturn/coms/jobListPopup.vue index 07de2e65..71746310 100644 --- a/src/pages/productionReturn/coms/jobListPopup.vue +++ b/src/pages/productionReturn/coms/jobListPopup.vue @@ -1,47 +1,38 @@ - - + diff --git a/src/pages/productionReturn/coms/requestDetailInfoPopup.vue b/src/pages/productionReturn/coms/requestDetailInfoPopup.vue index e9258a9e..6b538386 100644 --- a/src/pages/productionReturn/coms/requestDetailInfoPopup.vue +++ b/src/pages/productionReturn/coms/requestDetailInfoPopup.vue @@ -1,86 +1,77 @@ - - + diff --git a/src/pages/productionReturn/coms/requestInfoPopup.vue b/src/pages/productionReturn/coms/requestInfoPopup.vue index 240f9064..3be506ec 100644 --- a/src/pages/productionReturn/coms/requestInfoPopup.vue +++ b/src/pages/productionReturn/coms/requestInfoPopup.vue @@ -1,73 +1,69 @@ - - + diff --git a/src/pages/productionReturn/coms/returnDetailInfoPopup.vue b/src/pages/productionReturn/coms/returnDetailInfoPopup.vue index 67862954..5d0df81b 100644 --- a/src/pages/productionReturn/coms/returnDetailInfoPopup.vue +++ b/src/pages/productionReturn/coms/returnDetailInfoPopup.vue @@ -1,70 +1,55 @@ - - + diff --git a/src/pages/productionReturn/job/returnDetail.vue b/src/pages/productionReturn/job/returnDetail.vue index 3314d567..09d80fde 100644 --- a/src/pages/productionReturn/job/returnDetail.vue +++ b/src/pages/productionReturn/job/returnDetail.vue @@ -1,510 +1,381 @@ - - \ No newline at end of file + diff --git a/src/pages/productionReturn/job/returnJob.vue b/src/pages/productionReturn/job/returnJob.vue index 0871c6cd..a277866f 100644 --- a/src/pages/productionReturn/job/returnJob.vue +++ b/src/pages/productionReturn/job/returnJob.vue @@ -1,289 +1,247 @@ - - + diff --git a/src/pages/productionReturn/record/returnToHold.vue b/src/pages/productionReturn/record/returnToHold.vue index f31af81d..30e1e0c5 100644 --- a/src/pages/productionReturn/record/returnToHold.vue +++ b/src/pages/productionReturn/record/returnToHold.vue @@ -1,556 +1,478 @@ - diff --git a/src/pages/productionReturn/record/returnToStore.vue b/src/pages/productionReturn/record/returnToStore.vue index 27983949..e41cb132 100644 --- a/src/pages/productionReturn/record/returnToStore.vue +++ b/src/pages/productionReturn/record/returnToStore.vue @@ -1,597 +1,518 @@ - diff --git a/src/pages/productionReturn/request/requestDetail.vue b/src/pages/productionReturn/request/requestDetail.vue index 2e8c137a..87a88a7e 100644 --- a/src/pages/productionReturn/request/requestDetail.vue +++ b/src/pages/productionReturn/request/requestDetail.vue @@ -1,139 +1,105 @@ - - \ No newline at end of file + diff --git a/src/pages/productionReturn/request/returnRequestCreate.vue b/src/pages/productionReturn/request/returnRequestCreate.vue index a204b7d6..b21052df 100644 --- a/src/pages/productionReturn/request/returnRequestCreate.vue +++ b/src/pages/productionReturn/request/returnRequestCreate.vue @@ -1,228 +1,192 @@ - - + diff --git a/src/pages/productionReturn/request/returnToHoldRequest.vue b/src/pages/productionReturn/request/returnToHoldRequest.vue index 05d247b9..5e38f28e 100644 --- a/src/pages/productionReturn/request/returnToHoldRequest.vue +++ b/src/pages/productionReturn/request/returnToHoldRequest.vue @@ -1,58 +1,40 @@ - - + diff --git a/src/pages/productionReturn/request/returnToStoreRequest.vue b/src/pages/productionReturn/request/returnToStoreRequest.vue index 834e6d80..1cc2f8c1 100644 --- a/src/pages/productionReturn/request/returnToStoreRequest.vue +++ b/src/pages/productionReturn/request/returnToStoreRequest.vue @@ -1,58 +1,39 @@ - - + diff --git a/src/pages/purchaseReceipt/coms/comReceiptDetailCard.vue b/src/pages/purchaseReceipt/coms/comReceiptDetailCard.vue index 7906aa22..faf10318 100644 --- a/src/pages/purchaseReceipt/coms/comReceiptDetailCard.vue +++ b/src/pages/purchaseReceipt/coms/comReceiptDetailCard.vue @@ -1,179 +1,122 @@ - - \ No newline at end of file + diff --git a/src/pages/purchaseReceipt/coms/comReceiptJobCard.vue b/src/pages/purchaseReceipt/coms/comReceiptJobCard.vue index 6f4e1daf..50b5c575 100644 --- a/src/pages/purchaseReceipt/coms/comReceiptJobCard.vue +++ b/src/pages/purchaseReceipt/coms/comReceiptJobCard.vue @@ -1,34 +1,18 @@ + - + diff --git a/src/pages/purchaseReceipt/coms/receiptDetailInfoPopup.vue b/src/pages/purchaseReceipt/coms/receiptDetailInfoPopup.vue index 73aac0f6..826fc3f0 100644 --- a/src/pages/purchaseReceipt/coms/receiptDetailInfoPopup.vue +++ b/src/pages/purchaseReceipt/coms/receiptDetailInfoPopup.vue @@ -1,110 +1,98 @@ - - + diff --git a/src/pages/purchaseReceipt/coms/receiptInfoPopup.vue b/src/pages/purchaseReceipt/coms/receiptInfoPopup.vue index 90d4b648..c711d498 100644 --- a/src/pages/purchaseReceipt/coms/receiptInfoPopup.vue +++ b/src/pages/purchaseReceipt/coms/receiptInfoPopup.vue @@ -1,80 +1,68 @@ - - + diff --git a/src/pages/purchaseReceipt/coms/receiptJobListPopup.vue b/src/pages/purchaseReceipt/coms/receiptJobListPopup.vue index e494bc3e..a492cc9d 100644 --- a/src/pages/purchaseReceipt/coms/receiptJobListPopup.vue +++ b/src/pages/purchaseReceipt/coms/receiptJobListPopup.vue @@ -1,46 +1,38 @@ - - + diff --git a/src/pages/purchaseReceipt/job/purchaseReceipt.vue b/src/pages/purchaseReceipt/job/purchaseReceipt.vue index 854e0fd1..d3285312 100644 --- a/src/pages/purchaseReceipt/job/purchaseReceipt.vue +++ b/src/pages/purchaseReceipt/job/purchaseReceipt.vue @@ -1,49 +1,36 @@ - - \ No newline at end of file + diff --git a/src/pages/purchaseReceipt/job/purchaseReject.vue b/src/pages/purchaseReceipt/job/purchaseReject.vue index 3f20e0f6..67993938 100644 --- a/src/pages/purchaseReceipt/job/purchaseReject.vue +++ b/src/pages/purchaseReceipt/job/purchaseReject.vue @@ -1,48 +1,36 @@ - - \ No newline at end of file + diff --git a/src/pages/purchaseReceipt/job/receiptDetail.vue b/src/pages/purchaseReceipt/job/receiptDetail.vue index e6da59a5..3a89776f 100644 --- a/src/pages/purchaseReceipt/job/receiptDetail.vue +++ b/src/pages/purchaseReceipt/job/receiptDetail.vue @@ -1,627 +1,539 @@ - \ No newline at end of file + text-align: center; + background: #e0e0e0; +} + diff --git a/src/pages/purchaseReceipt/job/receiptJob.vue b/src/pages/purchaseReceipt/job/receiptJob.vue index 73ca3f5a..d69b0ab9 100644 --- a/src/pages/purchaseReceipt/job/receiptJob.vue +++ b/src/pages/purchaseReceipt/job/receiptJob.vue @@ -1,321 +1,361 @@ - - \ No newline at end of file + diff --git a/src/pages/purchaseReturn/coms/comReturnJobCard.vue b/src/pages/purchaseReturn/coms/comReturnJobCard.vue index 216deb18..4b25962f 100644 --- a/src/pages/purchaseReturn/coms/comReturnJobCard.vue +++ b/src/pages/purchaseReturn/coms/comReturnJobCard.vue @@ -4,29 +4,15 @@ - + diff --git a/src/pages/purchaseReturn/coms/requestDetailInfoPopup.vue b/src/pages/purchaseReturn/coms/requestDetailInfoPopup.vue index c3c0e081..2b715f0b 100644 --- a/src/pages/purchaseReturn/coms/requestDetailInfoPopup.vue +++ b/src/pages/purchaseReturn/coms/requestDetailInfoPopup.vue @@ -1,105 +1,102 @@ - - + diff --git a/src/pages/purchaseReturn/coms/requestInfoPopup.vue b/src/pages/purchaseReturn/coms/requestInfoPopup.vue index 62821cc5..8e55e67f 100644 --- a/src/pages/purchaseReturn/coms/requestInfoPopup.vue +++ b/src/pages/purchaseReturn/coms/requestInfoPopup.vue @@ -1,102 +1,98 @@ - - + diff --git a/src/pages/purchaseReturn/coms/returnDetailInfoPopup.vue b/src/pages/purchaseReturn/coms/returnDetailInfoPopup.vue index 642fa7ee..ff4c69b0 100644 --- a/src/pages/purchaseReturn/coms/returnDetailInfoPopup.vue +++ b/src/pages/purchaseReturn/coms/returnDetailInfoPopup.vue @@ -1,57 +1,40 @@ - - + diff --git a/src/pages/purchaseReturn/coms/returnInfoPopup.vue b/src/pages/purchaseReturn/coms/returnInfoPopup.vue index 3e0cdd9a..159ded81 100644 --- a/src/pages/purchaseReturn/coms/returnInfoPopup.vue +++ b/src/pages/purchaseReturn/coms/returnInfoPopup.vue @@ -1,79 +1,64 @@ - - + diff --git a/src/pages/purchaseReturn/coms/returnJobListPopup.vue b/src/pages/purchaseReturn/coms/returnJobListPopup.vue index 4f5e672b..b8cb17f2 100644 --- a/src/pages/purchaseReturn/coms/returnJobListPopup.vue +++ b/src/pages/purchaseReturn/coms/returnJobListPopup.vue @@ -1,52 +1,34 @@ - - + diff --git a/src/pages/purchaseReturn/job/returnDetail.vue b/src/pages/purchaseReturn/job/returnDetail.vue index f982cf88..96351bfc 100644 --- a/src/pages/purchaseReturn/job/returnDetail.vue +++ b/src/pages/purchaseReturn/job/returnDetail.vue @@ -1,472 +1,351 @@ - - + diff --git a/src/pages/purchaseReturn/job/returnJob.vue b/src/pages/purchaseReturn/job/returnJob.vue index 31d2c012..ce7738f3 100644 --- a/src/pages/purchaseReturn/job/returnJob.vue +++ b/src/pages/purchaseReturn/job/returnJob.vue @@ -1,306 +1,254 @@ - - + diff --git a/src/pages/purchaseReturn/record/returnRecord.vue b/src/pages/purchaseReturn/record/returnRecord.vue index aea24018..197e84e6 100644 --- a/src/pages/purchaseReturn/record/returnRecord.vue +++ b/src/pages/purchaseReturn/record/returnRecord.vue @@ -1,396 +1,325 @@ - diff --git a/src/pages/purchaseReturn/request/returnRequest.vue b/src/pages/purchaseReturn/request/returnRequest.vue index fbd4ca9b..d1622641 100644 --- a/src/pages/purchaseReturn/request/returnRequest.vue +++ b/src/pages/purchaseReturn/request/returnRequest.vue @@ -1,397 +1,324 @@ - - + diff --git a/src/pages/purchaseReturn/request/returnRequestCreate.vue b/src/pages/purchaseReturn/request/returnRequestCreate.vue index 3fc09f71..8f0eb3f2 100644 --- a/src/pages/purchaseReturn/request/returnRequestCreate.vue +++ b/src/pages/purchaseReturn/request/returnRequestCreate.vue @@ -1,355 +1,278 @@ - diff --git a/src/pages/purchaseReturn/request/returnRequestDetail.vue b/src/pages/purchaseReturn/request/returnRequestDetail.vue index f17b7941..438cb785 100644 --- a/src/pages/purchaseReturn/request/returnRequestDetail.vue +++ b/src/pages/purchaseReturn/request/returnRequestDetail.vue @@ -1,13 +1,14 @@ - + \ No newline at end of file diff --git a/src/pages/putaway/coms/comPutawayJobCard.vue b/src/pages/putaway/coms/comPutawayJobCard.vue index 27fcac4d..951e5033 100644 --- a/src/pages/putaway/coms/comPutawayJobCard.vue +++ b/src/pages/putaway/coms/comPutawayJobCard.vue @@ -4,50 +4,35 @@ - + diff --git a/src/pages/putaway/coms/putawayInfoPopup.vue b/src/pages/putaway/coms/putawayInfoPopup.vue index e3e2e798..e6ac1155 100644 --- a/src/pages/putaway/coms/putawayInfoPopup.vue +++ b/src/pages/putaway/coms/putawayInfoPopup.vue @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/src/pages/putaway/coms/putawayJobListPopup.vue b/src/pages/putaway/coms/putawayJobListPopup.vue index abbceb7f..349c85c2 100644 --- a/src/pages/putaway/coms/putawayJobListPopup.vue +++ b/src/pages/putaway/coms/putawayJobListPopup.vue @@ -1,47 +1,36 @@ - + \ No newline at end of file diff --git a/src/pages/putaway/coms/requestDetailInfoPopup.vue b/src/pages/putaway/coms/requestDetailInfoPopup.vue index 21a597b9..62bce791 100644 --- a/src/pages/putaway/coms/requestDetailInfoPopup.vue +++ b/src/pages/putaway/coms/requestDetailInfoPopup.vue @@ -1,86 +1,77 @@ - - + diff --git a/src/pages/putaway/coms/requestInfoPopup.vue b/src/pages/putaway/coms/requestInfoPopup.vue index d7eca4f0..aa3ad25d 100644 --- a/src/pages/putaway/coms/requestInfoPopup.vue +++ b/src/pages/putaway/coms/requestInfoPopup.vue @@ -1,73 +1,66 @@ - - + diff --git a/src/pages/putaway/job/putawayDetail.vue b/src/pages/putaway/job/putawayDetail.vue index edfca2e1..0f76c858 100644 --- a/src/pages/putaway/job/putawayDetail.vue +++ b/src/pages/putaway/job/putawayDetail.vue @@ -1,549 +1,490 @@ - - \ No newline at end of file + diff --git a/src/pages/putaway/job/putawayJob.vue b/src/pages/putaway/job/putawayJob.vue index 1c52bbdc..f03dc0ce 100644 --- a/src/pages/putaway/job/putawayJob.vue +++ b/src/pages/putaway/job/putawayJob.vue @@ -1,290 +1,328 @@ - - + diff --git a/src/pages/putaway/record/putawayRecord.vue b/src/pages/putaway/record/putawayRecord.vue index 9a67134d..9340c49e 100644 --- a/src/pages/putaway/record/putawayRecord.vue +++ b/src/pages/putaway/record/putawayRecord.vue @@ -1,506 +1,421 @@ - diff --git a/src/pages/putaway/record/putawayRecord_bat.vue b/src/pages/putaway/record/putawayRecord_bat.vue new file mode 100644 index 00000000..cd5535e1 --- /dev/null +++ b/src/pages/putaway/record/putawayRecord_bat.vue @@ -0,0 +1,443 @@ + + + + + diff --git a/src/pages/putaway/request/putawayRequest.vue b/src/pages/putaway/request/putawayRequest.vue index fd983a83..a5fcae0d 100644 --- a/src/pages/putaway/request/putawayRequest.vue +++ b/src/pages/putaway/request/putawayRequest.vue @@ -1,396 +1,323 @@ - - + diff --git a/src/pages/putaway/request/putawayRequestCreate.vue b/src/pages/putaway/request/putawayRequestCreate.vue index 5f7c3df6..273f5c0c 100644 --- a/src/pages/putaway/request/putawayRequestCreate.vue +++ b/src/pages/putaway/request/putawayRequestCreate.vue @@ -6,13 +6,14 @@ - - 来源库位 : {{fromLocationCode}} + + + 来源库位 : {{fromLocationCode}} - 供应商代码 : {{supplierCode}} + 供应商代码 : {{supplierCode}} - + @@ -31,25 +32,33 @@ - - - - + + - + + - + \ No newline at end of file diff --git a/src/pages/putaway/request/putawayRequestDetail.vue b/src/pages/putaway/request/putawayRequestDetail.vue index 732e20f4..c7ca3584 100644 --- a/src/pages/putaway/request/putawayRequestDetail.vue +++ b/src/pages/putaway/request/putawayRequestDetail.vue @@ -1,13 +1,15 @@ - diff --git a/src/pages/query/coms/comItemBalance.vue b/src/pages/query/coms/comItemBalance.vue index aab76ce0..ac900cc0 100644 --- a/src/pages/query/coms/comItemBalance.vue +++ b/src/pages/query/coms/comItemBalance.vue @@ -1,87 +1,61 @@ - - + diff --git a/src/pages/query/coms/comItemDetailCard.vue b/src/pages/query/coms/comItemDetailCard.vue index 4d9066a2..32ee65da 100644 --- a/src/pages/query/coms/comItemDetailCard.vue +++ b/src/pages/query/coms/comItemDetailCard.vue @@ -1,76 +1,54 @@ - - - - + diff --git a/src/pages/query/coms/comLocationDetailCard.vue b/src/pages/query/coms/comLocationDetailCard.vue index 1e49dbf0..ba0af680 100644 --- a/src/pages/query/coms/comLocationDetailCard.vue +++ b/src/pages/query/coms/comLocationDetailCard.vue @@ -1,77 +1,46 @@ - - + diff --git a/src/pages/query/item.vue b/src/pages/query/item.vue index bcdc8592..883bf558 100644 --- a/src/pages/query/item.vue +++ b/src/pages/query/item.vue @@ -1,302 +1,268 @@ - diff --git a/src/pages/query/location.vue b/src/pages/query/location.vue index cb61e4e9..e58152c0 100644 --- a/src/pages/query/location.vue +++ b/src/pages/query/location.vue @@ -1,257 +1,225 @@ - diff --git a/src/pages/repleinsh/coms/comRepleinshJobCard.vue b/src/pages/repleinsh/coms/comRepleinshJobCard.vue index 65e0f99e..109c7daa 100644 --- a/src/pages/repleinsh/coms/comRepleinshJobCard.vue +++ b/src/pages/repleinsh/coms/comRepleinshJobCard.vue @@ -1,35 +1,19 @@ - - + diff --git a/src/pages/repleinsh/coms/comRepleinshRequestPopup.vue b/src/pages/repleinsh/coms/comRepleinshRequestPopup.vue index 9c37d050..3d2be5fc 100644 --- a/src/pages/repleinsh/coms/comRepleinshRequestPopup.vue +++ b/src/pages/repleinsh/coms/comRepleinshRequestPopup.vue @@ -1,320 +1,274 @@ - diff --git a/src/pages/repleinsh/coms/comRepleishDetailCard.vue b/src/pages/repleinsh/coms/comRepleishDetailCard.vue index 3b2c7a76..c09cbb0e 100644 --- a/src/pages/repleinsh/coms/comRepleishDetailCard.vue +++ b/src/pages/repleinsh/coms/comRepleishDetailCard.vue @@ -1,173 +1,137 @@ - - + diff --git a/src/pages/repleinsh/coms/comScanReplishPack.vue b/src/pages/repleinsh/coms/comScanReplishPack.vue index 00dc9ba5..85cca531 100644 --- a/src/pages/repleinsh/coms/comScanReplishPack.vue +++ b/src/pages/repleinsh/coms/comScanReplishPack.vue @@ -1,13 +1,13 @@ - \ No newline at end of file +button { + border: none; +} + +button::after { + border: none; +} + +// .scroll-view { +// overflow-y: scroll; +// height: auto; +// max-height: 300rpx; +// padding: 10rpx; +// } +::v-deep uni-movable-view { + width: auto !important; +} + diff --git a/src/pages/repleinsh/coms/repleinshInfoPopup.vue b/src/pages/repleinsh/coms/repleinshInfoPopup.vue index 88b2e0f8..0344b5e9 100644 --- a/src/pages/repleinsh/coms/repleinshInfoPopup.vue +++ b/src/pages/repleinsh/coms/repleinshInfoPopup.vue @@ -1,80 +1,59 @@ - - + diff --git a/src/pages/repleinsh/coms/repleinshJobListPopup.vue b/src/pages/repleinsh/coms/repleinshJobListPopup.vue index abbceb7f..b8cb17f2 100644 --- a/src/pages/repleinsh/coms/repleinshJobListPopup.vue +++ b/src/pages/repleinsh/coms/repleinshJobListPopup.vue @@ -1,47 +1,34 @@ - - + diff --git a/src/pages/repleinsh/job/repleinshDetail.vue b/src/pages/repleinsh/job/repleinshDetail.vue index e23b3a21..746e6e12 100644 --- a/src/pages/repleinsh/job/repleinshDetail.vue +++ b/src/pages/repleinsh/job/repleinshDetail.vue @@ -1,510 +1,430 @@ - - + diff --git a/src/pages/repleinsh/job/repleinshJob.vue b/src/pages/repleinsh/job/repleinshJob.vue index e7702afc..9245d667 100644 --- a/src/pages/repleinsh/job/repleinshJob.vue +++ b/src/pages/repleinsh/job/repleinshJob.vue @@ -1,287 +1,258 @@ - - + diff --git a/src/pages/repleinsh/record/repleinshRecord.vue b/src/pages/repleinsh/record/repleinshRecord.vue index 8a1fab48..2984e5af 100644 --- a/src/pages/repleinsh/record/repleinshRecord.vue +++ b/src/pages/repleinsh/record/repleinshRecord.vue @@ -1,558 +1,468 @@ - diff --git a/src/pages/scrap/coms/comScrapDetailCard.vue b/src/pages/scrap/coms/comScrapDetailCard.vue index aabb5aa5..bfc7c367 100644 --- a/src/pages/scrap/coms/comScrapDetailCard.vue +++ b/src/pages/scrap/coms/comScrapDetailCard.vue @@ -1,12 +1,12 @@ - - + diff --git a/src/pages/scrap/coms/comScrapJobCard.vue b/src/pages/scrap/coms/comScrapJobCard.vue index 4b3da68a..109c7daa 100644 --- a/src/pages/scrap/coms/comScrapJobCard.vue +++ b/src/pages/scrap/coms/comScrapJobCard.vue @@ -1,34 +1,19 @@ - - + diff --git a/src/pages/scrap/coms/comScrapRequestCard.vue b/src/pages/scrap/coms/comScrapRequestCard.vue index 911f880c..70741f72 100644 --- a/src/pages/scrap/coms/comScrapRequestCard.vue +++ b/src/pages/scrap/coms/comScrapRequestCard.vue @@ -1,34 +1,19 @@ + + + + - - methods: { - - } - } - - - + diff --git a/src/pages/scrap/coms/requestDetailInfoPopup.vue b/src/pages/scrap/coms/requestDetailInfoPopup.vue index 4c965d15..712e865b 100644 --- a/src/pages/scrap/coms/requestDetailInfoPopup.vue +++ b/src/pages/scrap/coms/requestDetailInfoPopup.vue @@ -1,78 +1,67 @@ + - + diff --git a/src/pages/scrap/coms/requestInfoPopup.vue b/src/pages/scrap/coms/requestInfoPopup.vue index e700f817..caa92fb9 100644 --- a/src/pages/scrap/coms/requestInfoPopup.vue +++ b/src/pages/scrap/coms/requestInfoPopup.vue @@ -1,60 +1,50 @@ + - + diff --git a/src/pages/scrap/coms/scrapInfoPopup.vue b/src/pages/scrap/coms/scrapInfoPopup.vue index 516a9722..853df219 100644 --- a/src/pages/scrap/coms/scrapInfoPopup.vue +++ b/src/pages/scrap/coms/scrapInfoPopup.vue @@ -1,74 +1,57 @@ - - + diff --git a/src/pages/scrap/coms/scrapJobListPopup.vue b/src/pages/scrap/coms/scrapJobListPopup.vue index 4961c4ab..7038a7bd 100644 --- a/src/pages/scrap/coms/scrapJobListPopup.vue +++ b/src/pages/scrap/coms/scrapJobListPopup.vue @@ -1,46 +1,38 @@ - - + diff --git a/src/pages/scrap/job/scrapJob.vue b/src/pages/scrap/job/scrapJob.vue index d1d38ed2..8fb604d7 100644 --- a/src/pages/scrap/job/scrapJob.vue +++ b/src/pages/scrap/job/scrapJob.vue @@ -1,284 +1,250 @@ - - + diff --git a/src/pages/scrap/job/scrapJobDetail.vue b/src/pages/scrap/job/scrapJobDetail.vue index e122f8cc..ea527888 100644 --- a/src/pages/scrap/job/scrapJobDetail.vue +++ b/src/pages/scrap/job/scrapJobDetail.vue @@ -1,449 +1,393 @@ - diff --git a/src/pages/scrap/record/scrapRecord.vue b/src/pages/scrap/record/scrapRecord.vue index d565bd37..69a62a90 100644 --- a/src/pages/scrap/record/scrapRecord.vue +++ b/src/pages/scrap/record/scrapRecord.vue @@ -1,382 +1,334 @@ - diff --git a/src/pages/scrap/request/scrapRequestCreate.vue b/src/pages/scrap/request/scrapRequestCreate.vue index c80e2ec2..ac822011 100644 --- a/src/pages/scrap/request/scrapRequestCreate.vue +++ b/src/pages/scrap/request/scrapRequestCreate.vue @@ -1,386 +1,326 @@ - diff --git a/src/pages/scrap/request/scrapRequestDetail.vue b/src/pages/scrap/request/scrapRequestDetail.vue index fdf08bac..6b80ee2b 100644 --- a/src/pages/scrap/request/scrapRequestDetail.vue +++ b/src/pages/scrap/request/scrapRequestDetail.vue @@ -1,123 +1,90 @@ + - + diff --git a/src/pages/scrap/request/scrapRrequest.vue b/src/pages/scrap/request/scrapRrequest.vue index fc896d13..0e88f18d 100644 --- a/src/pages/scrap/request/scrapRrequest.vue +++ b/src/pages/scrap/request/scrapRrequest.vue @@ -1,391 +1,346 @@ - - + diff --git a/src/pages/setter/index.vue b/src/pages/setter/index.vue index 03eb9ffa..82be4849 100644 --- a/src/pages/setter/index.vue +++ b/src/pages/setter/index.vue @@ -1,193 +1,170 @@ - \ No newline at end of file +.txbox { + display: flex; + flex-direction: column; + align-items: center; +} + +.tx { + width: 200rpx; + height: 200rpx; + margin: 30rpx 0 30rpx; + border-radius: 150upx; +} + +.text { + font-size: 20upx; + text-align: center; +} + +.footbox { + display: flex; + align-items: center; +} + +.footbtn { + margin-top: 120rpx; + width: 300rpx; + border-radius: 50rpx; + background-color: #fff; + font-size: 0.825rem; + color: #333; + line-height: 90rpx; +} + diff --git a/src/pages/setter/passwordpage.vue b/src/pages/setter/passwordpage.vue index 72434c61..10e8c522 100644 --- a/src/pages/setter/passwordpage.vue +++ b/src/pages/setter/passwordpage.vue @@ -1,108 +1,88 @@ - diff --git a/src/pages/stockUp/coms/comScanStockUpPack.vue b/src/pages/stockUp/coms/comScanStockUpPack.vue index eecd97d4..7fca42f6 100644 --- a/src/pages/stockUp/coms/comScanStockUpPack.vue +++ b/src/pages/stockUp/coms/comScanStockUpPack.vue @@ -1,20 +1,17 @@ - diff --git a/src/pages/stockUp/coms/comStockUpDetailCard.vue b/src/pages/stockUp/coms/comStockUpDetailCard.vue index dcfd5cc1..eda116f5 100644 --- a/src/pages/stockUp/coms/comStockUpDetailCard.vue +++ b/src/pages/stockUp/coms/comStockUpDetailCard.vue @@ -1,170 +1,140 @@ - - + diff --git a/src/pages/stockUp/coms/comStockUpJobCard.vue b/src/pages/stockUp/coms/comStockUpJobCard.vue index dc9ffc44..109c7daa 100644 --- a/src/pages/stockUp/coms/comStockUpJobCard.vue +++ b/src/pages/stockUp/coms/comStockUpJobCard.vue @@ -1,34 +1,19 @@ + + + + - - methods: { - - } - } - - - + diff --git a/src/pages/stockUp/coms/jobInfoPopup.vue b/src/pages/stockUp/coms/jobInfoPopup.vue index f5e5970c..032c4ec6 100644 --- a/src/pages/stockUp/coms/jobInfoPopup.vue +++ b/src/pages/stockUp/coms/jobInfoPopup.vue @@ -1,76 +1,64 @@ - - + diff --git a/src/pages/stockUp/coms/jobListPopup.vue b/src/pages/stockUp/coms/jobListPopup.vue index e63d998e..f1c9b151 100644 --- a/src/pages/stockUp/coms/jobListPopup.vue +++ b/src/pages/stockUp/coms/jobListPopup.vue @@ -1,47 +1,38 @@ - - + diff --git a/src/pages/stockUp/job/stockUpJob.vue b/src/pages/stockUp/job/stockUpJob.vue index bce3411a..55dd2c6e 100644 --- a/src/pages/stockUp/job/stockUpJob.vue +++ b/src/pages/stockUp/job/stockUpJob.vue @@ -1,286 +1,241 @@ - - + diff --git a/src/pages/stockUp/job/stockUpJobDetail.vue b/src/pages/stockUp/job/stockUpJobDetail.vue index b9d7ad26..21301924 100644 --- a/src/pages/stockUp/job/stockUpJobDetail.vue +++ b/src/pages/stockUp/job/stockUpJobDetail.vue @@ -1,494 +1,402 @@ - \ No newline at end of file +.uni-numbox__value { + width: 40px; +} + +button[disabled] { + background-color: #3c9cff; + color: #fff; + opacity: 0.7; +} + +// /deep/ .input-value { +// font-size: 16px; +// } + +// /deep/ .uni-collapse-item__title-text { +// font-size: 16px; +// } + +// /deep/ .uni-collapse-item--border { +// border-bottom-width: 0px; +// border-bottom-color: #ebeef5; +// } + +// /deep/ .uni-collapse-item--border { +// border-bottom-width: 1px; +// border-bottom-color: #ebeef5; +// } + diff --git a/src/pages/supplierDeliver/coms/comRecordCard.vue b/src/pages/supplierDeliver/coms/comRecordCard.vue index 39c9d8ea..05153580 100644 --- a/src/pages/supplierDeliver/coms/comRecordCard.vue +++ b/src/pages/supplierDeliver/coms/comRecordCard.vue @@ -1,5 +1,5 @@ - - \ No newline at end of file + diff --git a/src/pages/supplierDeliver/coms/comRecordDetailCard.vue b/src/pages/supplierDeliver/coms/comRecordDetailCard.vue index 0ede393c..dcee711a 100644 --- a/src/pages/supplierDeliver/coms/comRecordDetailCard.vue +++ b/src/pages/supplierDeliver/coms/comRecordDetailCard.vue @@ -1,11 +1,11 @@ - - + diff --git a/src/pages/supplierDeliver/coms/recordDetailInfoPopup.vue b/src/pages/supplierDeliver/coms/recordDetailInfoPopup.vue index d20f4f90..ccfd7bca 100644 --- a/src/pages/supplierDeliver/coms/recordDetailInfoPopup.vue +++ b/src/pages/supplierDeliver/coms/recordDetailInfoPopup.vue @@ -1,163 +1,142 @@ - - + diff --git a/src/pages/supplierDeliver/coms/recordInfoPopup.vue b/src/pages/supplierDeliver/coms/recordInfoPopup.vue index b13f5cd8..190e93b0 100644 --- a/src/pages/supplierDeliver/coms/recordInfoPopup.vue +++ b/src/pages/supplierDeliver/coms/recordInfoPopup.vue @@ -1,116 +1,100 @@ - - + diff --git a/src/pages/supplierDeliver/coms/recordListPopup.vue b/src/pages/supplierDeliver/coms/recordListPopup.vue index ecfaf32e..0a58d91e 100644 --- a/src/pages/supplierDeliver/coms/recordListPopup.vue +++ b/src/pages/supplierDeliver/coms/recordListPopup.vue @@ -1,46 +1,38 @@ - - + diff --git a/src/pages/supplierDeliver/record/supplierDeliverRecord.vue b/src/pages/supplierDeliver/record/supplierDeliverRecord.vue index 5f6e43f2..ca9ff282 100644 --- a/src/pages/supplierDeliver/record/supplierDeliverRecord.vue +++ b/src/pages/supplierDeliver/record/supplierDeliverRecord.vue @@ -1,248 +1,217 @@ - - \ No newline at end of file + diff --git a/src/pages/supplierDeliver/record/supplierDeliverRecordDetail.vue b/src/pages/supplierDeliver/record/supplierDeliverRecordDetail.vue index fb980336..6631eb14 100644 --- a/src/pages/supplierDeliver/record/supplierDeliverRecordDetail.vue +++ b/src/pages/supplierDeliver/record/supplierDeliverRecordDetail.vue @@ -1,29 +1,22 @@ - \ No newline at end of file + text-align: center; + background: #e0e0e0; +} + diff --git a/src/pages/transfer/coms/comReceiptDetailCard.vue b/src/pages/transfer/coms/comReceiptDetailCard.vue index f17645dd..5ee85a47 100644 --- a/src/pages/transfer/coms/comReceiptDetailCard.vue +++ b/src/pages/transfer/coms/comReceiptDetailCard.vue @@ -1,11 +1,11 @@ - - + diff --git a/src/pages/transfer/coms/comTransferJobCard.vue b/src/pages/transfer/coms/comTransferJobCard.vue index dc9ffc44..109c7daa 100644 --- a/src/pages/transfer/coms/comTransferJobCard.vue +++ b/src/pages/transfer/coms/comTransferJobCard.vue @@ -1,34 +1,19 @@ + + + + - - methods: { - - } - } - - - + diff --git a/src/pages/transfer/coms/detailInfoPopup.vue b/src/pages/transfer/coms/detailInfoPopup.vue index 4b64c50c..9a947a8e 100644 --- a/src/pages/transfer/coms/detailInfoPopup.vue +++ b/src/pages/transfer/coms/detailInfoPopup.vue @@ -1,9 +1,9 @@ - - + diff --git a/src/pages/transfer/coms/jobInfoPopup.vue b/src/pages/transfer/coms/jobInfoPopup.vue index 29ff5a15..9aa44026 100644 --- a/src/pages/transfer/coms/jobInfoPopup.vue +++ b/src/pages/transfer/coms/jobInfoPopup.vue @@ -1,62 +1,48 @@ - - + diff --git a/src/pages/transfer/coms/jobListPopup.vue b/src/pages/transfer/coms/jobListPopup.vue index a601d112..d5c53004 100644 --- a/src/pages/transfer/coms/jobListPopup.vue +++ b/src/pages/transfer/coms/jobListPopup.vue @@ -1,47 +1,38 @@ - - + diff --git a/src/pages/transfer/job/issueDetail.vue b/src/pages/transfer/job/issueDetail.vue index f2c8810f..b654946d 100644 --- a/src/pages/transfer/job/issueDetail.vue +++ b/src/pages/transfer/job/issueDetail.vue @@ -1,524 +1,457 @@ - diff --git a/src/pages/transfer/job/issueJob.vue b/src/pages/transfer/job/issueJob.vue index 4c6d88c0..ea536b7f 100644 --- a/src/pages/transfer/job/issueJob.vue +++ b/src/pages/transfer/job/issueJob.vue @@ -1,13 +1,10 @@ - - + diff --git a/src/pages/transfer/job/receiptDetail.vue b/src/pages/transfer/job/receiptDetail.vue index a54da83b..5c44f7bf 100644 --- a/src/pages/transfer/job/receiptDetail.vue +++ b/src/pages/transfer/job/receiptDetail.vue @@ -1,562 +1,481 @@ - diff --git a/src/pages/transfer/job/receiptJob.vue b/src/pages/transfer/job/receiptJob.vue index a24880b6..fcdf0241 100644 --- a/src/pages/transfer/job/receiptJob.vue +++ b/src/pages/transfer/job/receiptJob.vue @@ -1,287 +1,246 @@ - - + diff --git a/src/pages/transfer/record/deliverRecord.vue b/src/pages/transfer/record/deliverRecord.vue index 1100fe8e..bdea47f4 100644 --- a/src/pages/transfer/record/deliverRecord.vue +++ b/src/pages/transfer/record/deliverRecord.vue @@ -1,456 +1,375 @@ - - diff --git a/src/pages/transfer/record/receiptRecord.vue b/src/pages/transfer/record/receiptRecord.vue index 8d3254b5..baa84a21 100644 --- a/src/pages/transfer/record/receiptRecord.vue +++ b/src/pages/transfer/record/receiptRecord.vue @@ -1,432 +1,352 @@ - diff --git a/src/pages/unPlanned/coms/comIssueJobCard.vue b/src/pages/unPlanned/coms/comIssueJobCard.vue index dc9ffc44..109c7daa 100644 --- a/src/pages/unPlanned/coms/comIssueJobCard.vue +++ b/src/pages/unPlanned/coms/comIssueJobCard.vue @@ -1,34 +1,19 @@ + + + + - - methods: { - - } - } - - - + diff --git a/src/pages/unPlanned/coms/comIssueRequestCard.vue b/src/pages/unPlanned/coms/comIssueRequestCard.vue index 911f880c..70741f72 100644 --- a/src/pages/unPlanned/coms/comIssueRequestCard.vue +++ b/src/pages/unPlanned/coms/comIssueRequestCard.vue @@ -1,34 +1,19 @@ + + + + - - methods: { - - } - } - - - + diff --git a/src/pages/unPlanned/coms/comReceiptDetailCard.vue b/src/pages/unPlanned/coms/comReceiptDetailCard.vue index 3a23d8b7..c0831cce 100644 --- a/src/pages/unPlanned/coms/comReceiptDetailCard.vue +++ b/src/pages/unPlanned/coms/comReceiptDetailCard.vue @@ -1,13 +1,12 @@ - - + diff --git a/src/pages/unPlanned/coms/comReceiptJobCard.vue b/src/pages/unPlanned/coms/comReceiptJobCard.vue index dc9ffc44..109c7daa 100644 --- a/src/pages/unPlanned/coms/comReceiptJobCard.vue +++ b/src/pages/unPlanned/coms/comReceiptJobCard.vue @@ -1,34 +1,19 @@ + + + + - - methods: { - - } - } - - - + diff --git a/src/pages/unPlanned/coms/comReceiptRecord.vue b/src/pages/unPlanned/coms/comReceiptRecord.vue index 1307391d..309fa247 100644 --- a/src/pages/unPlanned/coms/comReceiptRecord.vue +++ b/src/pages/unPlanned/coms/comReceiptRecord.vue @@ -1,17 +1,19 @@ - - methods: { - - } - } - - - + diff --git a/src/pages/unPlanned/coms/comReceiptRequestPopup.vue b/src/pages/unPlanned/coms/comReceiptRequestPopup.vue index 5889bbe8..dbb007b6 100644 --- a/src/pages/unPlanned/coms/comReceiptRequestPopup.vue +++ b/src/pages/unPlanned/coms/comReceiptRequestPopup.vue @@ -1,260 +1,232 @@ - diff --git a/src/pages/unPlanned/coms/detailInfoPopup.vue b/src/pages/unPlanned/coms/detailInfoPopup.vue index be4a5712..c59a4f3c 100644 --- a/src/pages/unPlanned/coms/detailInfoPopup.vue +++ b/src/pages/unPlanned/coms/detailInfoPopup.vue @@ -1,53 +1,39 @@ - - + diff --git a/src/pages/unPlanned/coms/jobInfoPopup.vue b/src/pages/unPlanned/coms/jobInfoPopup.vue index f361f301..af30d5de 100644 --- a/src/pages/unPlanned/coms/jobInfoPopup.vue +++ b/src/pages/unPlanned/coms/jobInfoPopup.vue @@ -1,45 +1,30 @@ - - + diff --git a/src/pages/unPlanned/coms/jobListPopup.vue b/src/pages/unPlanned/coms/jobListPopup.vue index bdb30cdf..9cd548a1 100644 --- a/src/pages/unPlanned/coms/jobListPopup.vue +++ b/src/pages/unPlanned/coms/jobListPopup.vue @@ -1,51 +1,41 @@ - - + diff --git a/src/pages/unPlanned/coms/requestIssDetailInfoPopup.vue b/src/pages/unPlanned/coms/requestIssDetailInfoPopup.vue index 0e72cf65..dbd5050e 100644 --- a/src/pages/unPlanned/coms/requestIssDetailInfoPopup.vue +++ b/src/pages/unPlanned/coms/requestIssDetailInfoPopup.vue @@ -1,78 +1,60 @@ - - + diff --git a/src/pages/unPlanned/coms/requestIssInfoPopup.vue b/src/pages/unPlanned/coms/requestIssInfoPopup.vue index a09af7cc..850db41a 100644 --- a/src/pages/unPlanned/coms/requestIssInfoPopup.vue +++ b/src/pages/unPlanned/coms/requestIssInfoPopup.vue @@ -1,60 +1,52 @@ - - + diff --git a/src/pages/unPlanned/coms/requestRecDetailInfoPopup.vue b/src/pages/unPlanned/coms/requestRecDetailInfoPopup.vue index 8f8d7992..821466f1 100644 --- a/src/pages/unPlanned/coms/requestRecDetailInfoPopup.vue +++ b/src/pages/unPlanned/coms/requestRecDetailInfoPopup.vue @@ -1,95 +1,76 @@ - - + diff --git a/src/pages/unPlanned/coms/requestRecInfoPopup.vue b/src/pages/unPlanned/coms/requestRecInfoPopup.vue index e54eca41..4d8da3a3 100644 --- a/src/pages/unPlanned/coms/requestRecInfoPopup.vue +++ b/src/pages/unPlanned/coms/requestRecInfoPopup.vue @@ -1,60 +1,52 @@ - - + diff --git a/src/pages/unPlanned/job/issueJob.vue b/src/pages/unPlanned/job/issueJob.vue index 3f0706ea..ff1cbb2d 100644 --- a/src/pages/unPlanned/job/issueJob.vue +++ b/src/pages/unPlanned/job/issueJob.vue @@ -1,292 +1,250 @@ - - + diff --git a/src/pages/unPlanned/job/issueJobDetail.vue b/src/pages/unPlanned/job/issueJobDetail.vue index 97420978..c9a77716 100644 --- a/src/pages/unPlanned/job/issueJobDetail.vue +++ b/src/pages/unPlanned/job/issueJobDetail.vue @@ -1,424 +1,354 @@ - - + diff --git a/src/pages/unPlanned/job/receiptJob.vue b/src/pages/unPlanned/job/receiptJob.vue index 4854c390..6d96b1b1 100644 --- a/src/pages/unPlanned/job/receiptJob.vue +++ b/src/pages/unPlanned/job/receiptJob.vue @@ -1,13 +1,10 @@ - - + diff --git a/src/pages/unPlanned/job/receiptJobDetail.vue b/src/pages/unPlanned/job/receiptJobDetail.vue index 73d60f6a..910d2236 100644 --- a/src/pages/unPlanned/job/receiptJobDetail.vue +++ b/src/pages/unPlanned/job/receiptJobDetail.vue @@ -1,410 +1,360 @@ - - + diff --git a/src/pages/unPlanned/record/issueRecord.vue b/src/pages/unPlanned/record/issueRecord.vue index a4c39d21..204d8236 100644 --- a/src/pages/unPlanned/record/issueRecord.vue +++ b/src/pages/unPlanned/record/issueRecord.vue @@ -1,293 +1,256 @@ + + + + + + + + + + + + + + + - diff --git a/src/pages/unPlanned/record/receiptRecord.vue b/src/pages/unPlanned/record/receiptRecord.vue index ad4c88d6..dd956c79 100644 --- a/src/pages/unPlanned/record/receiptRecord.vue +++ b/src/pages/unPlanned/record/receiptRecord.vue @@ -1,392 +1,340 @@ - diff --git a/src/pages/unPlanned/request/issueRequest.vue b/src/pages/unPlanned/request/issueRequest.vue index 58d7916b..90822545 100644 --- a/src/pages/unPlanned/request/issueRequest.vue +++ b/src/pages/unPlanned/request/issueRequest.vue @@ -1,399 +1,339 @@ - - - + diff --git a/src/pages/unPlanned/request/issueRequestCreate.vue b/src/pages/unPlanned/request/issueRequestCreate.vue index 4647037c..786ece1b 100644 --- a/src/pages/unPlanned/request/issueRequestCreate.vue +++ b/src/pages/unPlanned/request/issueRequestCreate.vue @@ -1,291 +1,234 @@ - - + diff --git a/src/pages/unPlanned/request/issueRequestDetail.vue b/src/pages/unPlanned/request/issueRequestDetail.vue index a5b1ed77..95ee3a00 100644 --- a/src/pages/unPlanned/request/issueRequestDetail.vue +++ b/src/pages/unPlanned/request/issueRequestDetail.vue @@ -1,123 +1,94 @@ - - + diff --git a/src/pages/unPlanned/request/receiptRequest.vue b/src/pages/unPlanned/request/receiptRequest.vue index d66a2dcc..976dd254 100644 --- a/src/pages/unPlanned/request/receiptRequest.vue +++ b/src/pages/unPlanned/request/receiptRequest.vue @@ -1,394 +1,335 @@ - - + diff --git a/src/pages/unPlanned/request/receiptRequestCreate.vue b/src/pages/unPlanned/request/receiptRequestCreate.vue index 1b0884c4..9cac256d 100644 --- a/src/pages/unPlanned/request/receiptRequestCreate.vue +++ b/src/pages/unPlanned/request/receiptRequestCreate.vue @@ -1,239 +1,201 @@ - - + diff --git a/src/pages/unPlanned/request/receiptRequestDetail.vue b/src/pages/unPlanned/request/receiptRequestDetail.vue index 0c9b6b34..4e58bf35 100644 --- a/src/pages/unPlanned/request/receiptRequestDetail.vue +++ b/src/pages/unPlanned/request/receiptRequestDetail.vue @@ -1,126 +1,97 @@ - - + diff --git a/src/static/config.js b/src/static/config.js index d5fe7571..477e2527 100644 --- a/src/static/config.js +++ b/src/static/config.js @@ -1,6 +1,6 @@ let request_url = "http://dev.ccwin-in.com:25102/api/admin-api" -let isDevelopment = true +let isDevelopment = import.meta.env.VITE_isDevelopment=='true'; export default { request_url, diff --git a/src/static/icons/icon_copy.svg b/src/static/icons/icon_copy.svg new file mode 100644 index 00000000..a14b8f42 --- /dev/null +++ b/src/static/icons/icon_copy.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/static/icons/icon_customer.svg b/src/static/icons/icon_customer.svg index 1ec26047..7a5b65c5 100644 --- a/src/static/icons/icon_customer.svg +++ b/src/static/icons/icon_customer.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/static/icons/icon_date.svg b/src/static/icons/icon_date.svg index fd7b17c2..c7ac5732 100644 --- a/src/static/icons/icon_date.svg +++ b/src/static/icons/icon_date.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/static/menus/bind_pallet.svg b/src/static/menus/bind_pallet.svg index b2f3cd55..6d130eff 100644 --- a/src/static/menus/bind_pallet.svg +++ b/src/static/menus/bind_pallet.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/static/menus/count.svg b/src/static/menus/count.svg index 12ee9bb7..273b32ff 100644 --- a/src/static/menus/count.svg +++ b/src/static/menus/count.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/static/menus/customer_return.svg b/src/static/menus/customer_return.svg index 4c7f32c1..ea867ca0 100644 --- a/src/static/menus/customer_return.svg +++ b/src/static/menus/customer_return.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/static/menus/deliver.svg b/src/static/menus/deliver.svg index 5148af07..80a98c7f 100644 --- a/src/static/menus/deliver.svg +++ b/src/static/menus/deliver.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/static/menus/hold_to_ok.svg b/src/static/menus/hold_to_ok.svg index bb22391b..aa19c513 100644 --- a/src/static/menus/hold_to_ok.svg +++ b/src/static/menus/hold_to_ok.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/static/menus/hold_to_scrap.svg b/src/static/menus/hold_to_scrap.svg index 6e46345e..07898ff3 100644 --- a/src/static/menus/hold_to_scrap.svg +++ b/src/static/menus/hold_to_scrap.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/static/menus/inspect.svg b/src/static/menus/inspect.svg index a18cd656..c7c5276d 100644 --- a/src/static/menus/inspect.svg +++ b/src/static/menus/inspect.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/static/menus/inventory_move.svg b/src/static/menus/inventory_move.svg index e310f682..c0ee236f 100644 --- a/src/static/menus/inventory_move.svg +++ b/src/static/menus/inventory_move.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/static/menus/issue.svg b/src/static/menus/issue.svg index 3222d1ae..cfa90648 100644 --- a/src/static/menus/issue.svg +++ b/src/static/menus/issue.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/static/menus/merge_package.svg b/src/static/menus/merge_package.svg index b2d27ad2..ffea9ec7 100644 --- a/src/static/menus/merge_package.svg +++ b/src/static/menus/merge_package.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/static/menus/ok_to_hold.svg b/src/static/menus/ok_to_hold.svg index 4f5d182d..798aaed5 100644 --- a/src/static/menus/ok_to_hold.svg +++ b/src/static/menus/ok_to_hold.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/static/menus/ok_to_scrap.svg b/src/static/menus/ok_to_scrap.svg index 1dee0362..4b083f59 100644 --- a/src/static/menus/ok_to_scrap.svg +++ b/src/static/menus/ok_to_scrap.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/static/menus/over_package.svg b/src/static/menus/over_package.svg index 7a3c2035..6bdd43e9 100644 --- a/src/static/menus/over_package.svg +++ b/src/static/menus/over_package.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/static/menus/product_putaway.svg b/src/static/menus/product_putaway.svg index e14ec511..bba4e895 100644 --- a/src/static/menus/product_putaway.svg +++ b/src/static/menus/product_putaway.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/static/menus/product_receipt.svg b/src/static/menus/product_receipt.svg index bb318a2e..87239cde 100644 --- a/src/static/menus/product_receipt.svg +++ b/src/static/menus/product_receipt.svg @@ -1,5 +1 @@ - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/static/menus/production_receipt.svg b/src/static/menus/production_receipt.svg index bb318a2e..5e3804f5 100644 --- a/src/static/menus/production_receipt.svg +++ b/src/static/menus/production_receipt.svg @@ -1,5 +1 @@ - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/static/menus/production_return.svg b/src/static/menus/production_return.svg index 86ab3159..fcb7bd9c 100644 --- a/src/static/menus/production_return.svg +++ b/src/static/menus/production_return.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/static/menus/purchase_receipt.svg b/src/static/menus/purchase_receipt.svg index b2d972ff..750070f0 100644 --- a/src/static/menus/purchase_receipt.svg +++ b/src/static/menus/purchase_receipt.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/static/menus/purchase_return.svg b/src/static/menus/purchase_return.svg index 1dcb2cf5..59f90a5d 100644 --- a/src/static/menus/purchase_return.svg +++ b/src/static/menus/purchase_return.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/static/menus/putaway.svg b/src/static/menus/putaway.svg index aeafb4f4..2d73c02d 100644 --- a/src/static/menus/putaway.svg +++ b/src/static/menus/putaway.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/static/menus/query_container.svg b/src/static/menus/query_container.svg index 23278b22..e635a84f 100644 --- a/src/static/menus/query_container.svg +++ b/src/static/menus/query_container.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/static/menus/query_inspect.svg b/src/static/menus/query_inspect.svg index cecb0138..a0da9d8a 100644 --- a/src/static/menus/query_inspect.svg +++ b/src/static/menus/query_inspect.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/static/menus/query_issue_request.svg b/src/static/menus/query_issue_request.svg index 112a70d2..1f875154 100644 --- a/src/static/menus/query_issue_request.svg +++ b/src/static/menus/query_issue_request.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/static/menus/query_item.svg b/src/static/menus/query_item.svg index bdbb713b..83bda623 100644 --- a/src/static/menus/query_item.svg +++ b/src/static/menus/query_item.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/static/menus/query_location.svg b/src/static/menus/query_location.svg index 3b1587a2..681f6bf3 100644 --- a/src/static/menus/query_location.svg +++ b/src/static/menus/query_location.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/static/menus/query_supplier_deliver.svg b/src/static/menus/query_supplier_deliver.svg index b1000171..0cc44e91 100644 --- a/src/static/menus/query_supplier_deliver.svg +++ b/src/static/menus/query_supplier_deliver.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/static/menus/repleinsh.svg b/src/static/menus/repleinsh.svg index afaf5f97..558e301b 100644 --- a/src/static/menus/repleinsh.svg +++ b/src/static/menus/repleinsh.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/static/menus/return_to_hold.svg b/src/static/menus/return_to_hold.svg index 9faa33d9..39c89045 100644 --- a/src/static/menus/return_to_hold.svg +++ b/src/static/menus/return_to_hold.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/static/menus/return_to_store.svg b/src/static/menus/return_to_store.svg index 71349db4..fabc8731 100644 --- a/src/static/menus/return_to_store.svg +++ b/src/static/menus/return_to_store.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/static/menus/scrap.svg b/src/static/menus/scrap.svg index d17ef49f..5449f521 100644 --- a/src/static/menus/scrap.svg +++ b/src/static/menus/scrap.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/static/menus/scrap_to_hold.svg b/src/static/menus/scrap_to_hold.svg index 92777a58..cd4cd75c 100644 --- a/src/static/menus/scrap_to_hold.svg +++ b/src/static/menus/scrap_to_hold.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/static/menus/split_package.svg b/src/static/menus/split_package.svg index 5a4b0a37..adf73261 100644 --- a/src/static/menus/split_package.svg +++ b/src/static/menus/split_package.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/static/menus/transfer_deliver.svg b/src/static/menus/transfer_deliver.svg index acd90f7b..007e190f 100644 --- a/src/static/menus/transfer_deliver.svg +++ b/src/static/menus/transfer_deliver.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/static/menus/transfer_receipt.svg b/src/static/menus/transfer_receipt.svg index 007cc6da..2dc6f14e 100644 --- a/src/static/menus/transfer_receipt.svg +++ b/src/static/menus/transfer_receipt.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/static/menus/unbind_pallet.svg b/src/static/menus/unbind_pallet.svg index 2849d841..b366958d 100644 --- a/src/static/menus/unbind_pallet.svg +++ b/src/static/menus/unbind_pallet.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/static/menus/unplanned_issue.svg b/src/static/menus/unplanned_issue.svg index 1eb87650..3eb4bed8 100644 --- a/src/static/menus/unplanned_issue.svg +++ b/src/static/menus/unplanned_issue.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/static/menus/unplanned_receipt.svg b/src/static/menus/unplanned_receipt.svg index 29dc3a12..4e1f3090 100644 --- a/src/static/menus/unplanned_receipt.svg +++ b/src/static/menus/unplanned_receipt.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/store/modules/countStore.ts b/src/store/modules/countStore.ts index d152f09e..dfc0e889 100644 --- a/src/store/modules/countStore.ts +++ b/src/store/modules/countStore.ts @@ -44,6 +44,7 @@ const useStore = defineStore('storeId', { setToken(res) resolve(res) }).catch(error => { + console.log(error) reject(error) }) }) diff --git a/src/uni_modules/uni-badge/changelog.md b/src/uni_modules/uni-badge/changelog.md deleted file mode 100644 index 544ecc13..00000000 --- a/src/uni_modules/uni-badge/changelog.md +++ /dev/null @@ -1,29 +0,0 @@ -## 1.2.0(2021-11-19) -- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) -- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-badge](https://uniapp.dcloud.io/component/uniui/uni-badge) -## 1.1.7(2021-11-08) -- 优化 升级ui -- 修改 size 属性默认值调整为 small -- 修改 type 属性,默认值调整为 error,info 替换 default -## 1.1.6(2021-09-22) -- 修复 在字节小程序上样式不生效的 bug -## 1.1.5(2021-07-30) -- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) -## 1.1.4(2021-07-29) -- 修复 去掉 nvue 不支持css 的 align-self 属性,nvue 下不暂支持 absolute 属性 -## 1.1.3(2021-06-24) -- 优化 示例项目 -## 1.1.1(2021-05-12) -- 新增 组件示例地址 -## 1.1.0(2021-05-12) -- 新增 uni-badge 的 absolute 属性,支持定位 -- 新增 uni-badge 的 offset 属性,支持定位偏移 -- 新增 uni-badge 的 is-dot 属性,支持仅显示有一个小点 -- 新增 uni-badge 的 max-num 属性,支持自定义封顶的数字值,超过 99 显示99+ -- 优化 uni-badge 属性 custom-style, 支持以对象形式自定义样式 -## 1.0.7(2021-05-07) -- 修复 uni-badge 在 App 端,数字小于10时不是圆形的bug -- 修复 uni-badge 在父元素不是 flex 布局时,宽度缩小的bug -- 新增 uni-badge 属性 custom-style, 支持自定义样式 -## 1.0.6(2021-02-04) -- 调整为uni_modules目录规范 diff --git a/src/uni_modules/uni-badge/components/uni-badge/uni-badge.vue b/src/uni_modules/uni-badge/components/uni-badge/uni-badge.vue deleted file mode 100644 index 1981b4e7..00000000 --- a/src/uni_modules/uni-badge/components/uni-badge/uni-badge.vue +++ /dev/null @@ -1,268 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-badge/package.json b/src/uni_modules/uni-badge/package.json deleted file mode 100644 index 7ba6d2f6..00000000 --- a/src/uni_modules/uni-badge/package.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "id": "uni-badge", - "displayName": "uni-badge 数字角标", - "version": "1.2.0", - "description": "数字角标(徽章)组件,在元素周围展示消息提醒,一般用于列表、九宫格、按钮等地方。", - "keywords": [ - "", - "badge", - "uni-ui", - "uniui", - "数字角标", - "徽章" -], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "" - }, - "directories": { - "example": "../../temps/example_temps" - }, - "dcloudext": { - "category": [ - "前端组件", - "通用组件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" - }, - "uni_modules": { - "dependencies": [], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y" - }, - "快应用": { - "华为": "y", - "联盟": "y" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} \ No newline at end of file diff --git a/src/uni_modules/uni-badge/readme.md b/src/uni_modules/uni-badge/readme.md deleted file mode 100644 index bdf175da..00000000 --- a/src/uni_modules/uni-badge/readme.md +++ /dev/null @@ -1,10 +0,0 @@ -## Badge 数字角标 -> **组件名:uni-badge** -> 代码块: `uBadge` - -数字角标一般和其它控件(列表、9宫格等)配合使用,用于进行数量提示,默认为实心灰色背景, - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-badge) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 - - diff --git a/src/uni_modules/uni-breadcrumb/changelog.md b/src/uni_modules/uni-breadcrumb/changelog.md deleted file mode 100644 index 016e6cee..00000000 --- a/src/uni_modules/uni-breadcrumb/changelog.md +++ /dev/null @@ -1,6 +0,0 @@ -## 0.1.2(2022-06-08) -- 修复 微信小程序 separator 不显示问题 -## 0.1.1(2022-06-02) -- 新增 支持 uni.scss 修改颜色 -## 0.1.0(2022-04-21) -- 初始化 diff --git a/src/uni_modules/uni-breadcrumb/components/uni-breadcrumb-item/uni-breadcrumb-item.vue b/src/uni_modules/uni-breadcrumb/components/uni-breadcrumb-item/uni-breadcrumb-item.vue deleted file mode 100644 index b9edbd62..00000000 --- a/src/uni_modules/uni-breadcrumb/components/uni-breadcrumb-item/uni-breadcrumb-item.vue +++ /dev/null @@ -1,121 +0,0 @@ - - - diff --git a/src/uni_modules/uni-breadcrumb/components/uni-breadcrumb/uni-breadcrumb.vue b/src/uni_modules/uni-breadcrumb/components/uni-breadcrumb/uni-breadcrumb.vue deleted file mode 100644 index 94493a21..00000000 --- a/src/uni_modules/uni-breadcrumb/components/uni-breadcrumb/uni-breadcrumb.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - diff --git a/src/uni_modules/uni-breadcrumb/package.json b/src/uni_modules/uni-breadcrumb/package.json deleted file mode 100644 index e5f33e85..00000000 --- a/src/uni_modules/uni-breadcrumb/package.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "id": "uni-breadcrumb", - "displayName": "uni-breadcrumb 面包屑", - "version": "0.1.2", - "description": "Breadcrumb 面包屑", - "keywords": [ - "uni-breadcrumb", - "breadcrumb", - "uni-ui", - "面包屑导航", - "面包屑" -], - "repository": "", - "engines": { - "HBuilderX": "^3.1.0" - }, - "dcloudext": { - "category": [ - "前端组件", - "通用组件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "" - }, - "uni_modules": { - "dependencies": [], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "Vue": { - "vue2": "y", - "vue3": "y" - }, - "App": { - "app-vue": "y", - "app-nvue": "n" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "u", - "百度": "u", - "字节跳动": "u", - "QQ": "u", - "京东": "u" - }, - "快应用": { - "华为": "u", - "联盟": "u" - } - } - } - } -} diff --git a/src/uni_modules/uni-breadcrumb/readme.md b/src/uni_modules/uni-breadcrumb/readme.md deleted file mode 100644 index 6976b8d7..00000000 --- a/src/uni_modules/uni-breadcrumb/readme.md +++ /dev/null @@ -1,66 +0,0 @@ - -## breadcrumb 面包屑导航 -> **组件名:uni-breadcrumb** -> 代码块: `ubreadcrumb` - -显示当前页面的路径,快速返回之前的任意页面。 - -### 安装方式 - -本组件符合[easycom](https://uniapp.dcloud.io/collocation/pages?id=easycom)规范,`HBuilderX 2.5.5`起,只需将本组件导入项目,在页面`template`中即可直接使用,无需在页面中`import`和注册`components`。 - -如需通过`npm`方式使用`uni-ui`组件,另见文档:[https://ext.dcloud.net.cn/plugin?id=55](https://ext.dcloud.net.cn/plugin?id=55) - -### 基本用法 - -在 ``template`` 中使用组件 - -```html - - {{route.name}} - -``` - -```js -export default { - name: "uni-stat-breadcrumb", - data() { - return { - routes: [{ - to: '/A', - name: 'A页面' - }, { - to: '/B', - name: 'B页面' - }, { - to: '/C', - name: 'C页面' - }] - }; - } - } -``` - - -## API - -### Breadcrumb Props - -|属性名 |类型 |默认值 |说明 | -|:-: |:-: |:-: |:-: | -|separator |String |斜杠'/' |分隔符 | -|separatorClass |String | |图标分隔符 class | - -### Breadcrumb Item Props - -|属性名 |类型 |默认值 |说明 | -|:-: |:-: |:-: |:-: | -|to |String | |路由跳转页面路径 | -|replace|Boolean | |在使用 to 进行路由跳转时,启用 replace 将不会向 history 添加新记录(仅 h5 支持) | - - - - -## 组件示例 - -点击查看:[https://hellouniapp.dcloud.net.cn/pages/extUI/breadcrumb/breadcrumb](https://hellouniapp.dcloud.net.cn/pages/extUI/breadcrumb/breadcrumb) \ No newline at end of file diff --git a/src/uni_modules/uni-calendar/changelog.md b/src/uni_modules/uni-calendar/changelog.md deleted file mode 100644 index 6df4493e..00000000 --- a/src/uni_modules/uni-calendar/changelog.md +++ /dev/null @@ -1,16 +0,0 @@ -## 1.4.5(2022-02-25) -- 修复 条件编译 nvue 不支持的 css 样式 -## 1.4.4(2022-02-25) -- 修复 条件编译 nvue 不支持的 css 样式 -## 1.4.3(2021-09-22) -- 修复 startDate、 endDate 属性失效的 bug -## 1.4.2(2021-08-24) -- 新增 支持国际化 -## 1.4.1(2021-08-05) -- 修复 弹出层被 tabbar 遮盖 bug -## 1.4.0(2021-07-30) -- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) -## 1.3.16(2021-05-12) -- 新增 组件示例地址 -## 1.3.15(2021-02-04) -- 调整为uni_modules目录规范 diff --git a/src/uni_modules/uni-calendar/components/uni-calendar/calendar.js b/src/uni_modules/uni-calendar/components/uni-calendar/calendar.js deleted file mode 100644 index b8d7d6fc..00000000 --- a/src/uni_modules/uni-calendar/components/uni-calendar/calendar.js +++ /dev/null @@ -1,546 +0,0 @@ -/** -* @1900-2100区间内的公历、农历互转 -* @charset UTF-8 -* @github https://github.com/jjonline/calendar.js -* @Author Jea杨(JJonline@JJonline.Cn) -* @Time 2014-7-21 -* @Time 2016-8-13 Fixed 2033hex、Attribution Annals -* @Time 2016-9-25 Fixed lunar LeapMonth Param Bug -* @Time 2017-7-24 Fixed use getTerm Func Param Error.use solar year,NOT lunar year -* @Version 1.0.3 -* @公历转农历:calendar.solar2lunar(1987,11,01); //[you can ignore params of prefix 0] -* @农历转公历:calendar.lunar2solar(1987,09,10); //[you can ignore params of prefix 0] -*/ -/* eslint-disable */ -var calendar = { - - /** - * 农历1900-2100的润大小信息表 - * @Array Of Property - * @return Hex - */ - lunarInfo: [0x04bd8, 0x04ae0, 0x0a570, 0x054d5, 0x0d260, 0x0d950, 0x16554, 0x056a0, 0x09ad0, 0x055d2, // 1900-1909 - 0x04ae0, 0x0a5b6, 0x0a4d0, 0x0d250, 0x1d255, 0x0b540, 0x0d6a0, 0x0ada2, 0x095b0, 0x14977, // 1910-1919 - 0x04970, 0x0a4b0, 0x0b4b5, 0x06a50, 0x06d40, 0x1ab54, 0x02b60, 0x09570, 0x052f2, 0x04970, // 1920-1929 - 0x06566, 0x0d4a0, 0x0ea50, 0x06e95, 0x05ad0, 0x02b60, 0x186e3, 0x092e0, 0x1c8d7, 0x0c950, // 1930-1939 - 0x0d4a0, 0x1d8a6, 0x0b550, 0x056a0, 0x1a5b4, 0x025d0, 0x092d0, 0x0d2b2, 0x0a950, 0x0b557, // 1940-1949 - 0x06ca0, 0x0b550, 0x15355, 0x04da0, 0x0a5b0, 0x14573, 0x052b0, 0x0a9a8, 0x0e950, 0x06aa0, // 1950-1959 - 0x0aea6, 0x0ab50, 0x04b60, 0x0aae4, 0x0a570, 0x05260, 0x0f263, 0x0d950, 0x05b57, 0x056a0, // 1960-1969 - 0x096d0, 0x04dd5, 0x04ad0, 0x0a4d0, 0x0d4d4, 0x0d250, 0x0d558, 0x0b540, 0x0b6a0, 0x195a6, // 1970-1979 - 0x095b0, 0x049b0, 0x0a974, 0x0a4b0, 0x0b27a, 0x06a50, 0x06d40, 0x0af46, 0x0ab60, 0x09570, // 1980-1989 - 0x04af5, 0x04970, 0x064b0, 0x074a3, 0x0ea50, 0x06b58, 0x05ac0, 0x0ab60, 0x096d5, 0x092e0, // 1990-1999 - 0x0c960, 0x0d954, 0x0d4a0, 0x0da50, 0x07552, 0x056a0, 0x0abb7, 0x025d0, 0x092d0, 0x0cab5, // 2000-2009 - 0x0a950, 0x0b4a0, 0x0baa4, 0x0ad50, 0x055d9, 0x04ba0, 0x0a5b0, 0x15176, 0x052b0, 0x0a930, // 2010-2019 - 0x07954, 0x06aa0, 0x0ad50, 0x05b52, 0x04b60, 0x0a6e6, 0x0a4e0, 0x0d260, 0x0ea65, 0x0d530, // 2020-2029 - 0x05aa0, 0x076a3, 0x096d0, 0x04afb, 0x04ad0, 0x0a4d0, 0x1d0b6, 0x0d250, 0x0d520, 0x0dd45, // 2030-2039 - 0x0b5a0, 0x056d0, 0x055b2, 0x049b0, 0x0a577, 0x0a4b0, 0x0aa50, 0x1b255, 0x06d20, 0x0ada0, // 2040-2049 - /** Add By JJonline@JJonline.Cn**/ - 0x14b63, 0x09370, 0x049f8, 0x04970, 0x064b0, 0x168a6, 0x0ea50, 0x06b20, 0x1a6c4, 0x0aae0, // 2050-2059 - 0x0a2e0, 0x0d2e3, 0x0c960, 0x0d557, 0x0d4a0, 0x0da50, 0x05d55, 0x056a0, 0x0a6d0, 0x055d4, // 2060-2069 - 0x052d0, 0x0a9b8, 0x0a950, 0x0b4a0, 0x0b6a6, 0x0ad50, 0x055a0, 0x0aba4, 0x0a5b0, 0x052b0, // 2070-2079 - 0x0b273, 0x06930, 0x07337, 0x06aa0, 0x0ad50, 0x14b55, 0x04b60, 0x0a570, 0x054e4, 0x0d160, // 2080-2089 - 0x0e968, 0x0d520, 0x0daa0, 0x16aa6, 0x056d0, 0x04ae0, 0x0a9d4, 0x0a2d0, 0x0d150, 0x0f252, // 2090-2099 - 0x0d520], // 2100 - - /** - * 公历每个月份的天数普通表 - * @Array Of Property - * @return Number - */ - solarMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], - - /** - * 天干地支之天干速查表 - * @Array Of Property trans["甲","乙","丙","丁","戊","己","庚","辛","壬","癸"] - * @return Cn string - */ - Gan: ['\u7532', '\u4e59', '\u4e19', '\u4e01', '\u620a', '\u5df1', '\u5e9a', '\u8f9b', '\u58ec', '\u7678'], - - /** - * 天干地支之地支速查表 - * @Array Of Property - * @trans["子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"] - * @return Cn string - */ - Zhi: ['\u5b50', '\u4e11', '\u5bc5', '\u536f', '\u8fb0', '\u5df3', '\u5348', '\u672a', '\u7533', '\u9149', '\u620c', '\u4ea5'], - - /** - * 天干地支之地支速查表<=>生肖 - * @Array Of Property - * @trans["鼠","牛","虎","兔","龙","蛇","马","羊","猴","鸡","狗","猪"] - * @return Cn string - */ - Animals: ['\u9f20', '\u725b', '\u864e', '\u5154', '\u9f99', '\u86c7', '\u9a6c', '\u7f8a', '\u7334', '\u9e21', '\u72d7', '\u732a'], - - /** - * 24节气速查表 - * @Array Of Property - * @trans["小寒","大寒","立春","雨水","惊蛰","春分","清明","谷雨","立夏","小满","芒种","夏至","小暑","大暑","立秋","处暑","白露","秋分","寒露","霜降","立冬","小雪","大雪","冬至"] - * @return Cn string - */ - solarTerm: ['\u5c0f\u5bd2', '\u5927\u5bd2', '\u7acb\u6625', '\u96e8\u6c34', '\u60ca\u86f0', '\u6625\u5206', '\u6e05\u660e', '\u8c37\u96e8', '\u7acb\u590f', '\u5c0f\u6ee1', '\u8292\u79cd', '\u590f\u81f3', '\u5c0f\u6691', '\u5927\u6691', '\u7acb\u79cb', '\u5904\u6691', '\u767d\u9732', '\u79cb\u5206', '\u5bd2\u9732', '\u971c\u964d', '\u7acb\u51ac', '\u5c0f\u96ea', '\u5927\u96ea', '\u51ac\u81f3'], - - /** - * 1900-2100各年的24节气日期速查表 - * @Array Of Property - * @return 0x string For splice - */ - sTermInfo: ['9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf97c3598082c95f8c965cc920f', - '97bd0b06bdb0722c965ce1cfcc920f', 'b027097bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', - '97bcf97c359801ec95f8c965cc920f', '97bd0b06bdb0722c965ce1cfcc920f', 'b027097bd097c36b0b6fc9274c91aa', - '97b6b97bd19801ec9210c965cc920e', '97bcf97c359801ec95f8c965cc920f', '97bd0b06bdb0722c965ce1cfcc920f', - 'b027097bd097c36b0b6fc9274c91aa', '9778397bd19801ec9210c965cc920e', '97b6b97bd19801ec95f8c965cc920f', - '97bd09801d98082c95f8e1cfcc920f', '97bd097bd097c36b0b6fc9210c8dc2', '9778397bd197c36c9210c9274c91aa', - '97b6b97bd19801ec95f8c965cc920e', '97bd09801d98082c95f8e1cfcc920f', '97bd097bd097c36b0b6fc9210c8dc2', - '9778397bd097c36c9210c9274c91aa', '97b6b97bd19801ec95f8c965cc920e', '97bcf97c3598082c95f8e1cfcc920f', - '97bd097bd097c36b0b6fc9210c8dc2', '9778397bd097c36c9210c9274c91aa', '97b6b97bd19801ec9210c965cc920e', - '97bcf97c3598082c95f8c965cc920f', '97bd097bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', - '97b6b97bd19801ec9210c965cc920e', '97bcf97c3598082c95f8c965cc920f', '97bd097bd097c35b0b6fc920fb0722', - '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf97c359801ec95f8c965cc920f', - '97bd097bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', - '97bcf97c359801ec95f8c965cc920f', '97bd097bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', - '97b6b97bd19801ec9210c965cc920e', '97bcf97c359801ec95f8c965cc920f', '97bd097bd07f595b0b6fc920fb0722', - '9778397bd097c36b0b6fc9210c8dc2', '9778397bd19801ec9210c9274c920e', '97b6b97bd19801ec95f8c965cc920f', - '97bd07f5307f595b0b0bc920fb0722', '7f0e397bd097c36b0b6fc9210c8dc2', '9778397bd097c36c9210c9274c920e', - '97b6b97bd19801ec95f8c965cc920f', '97bd07f5307f595b0b0bc920fb0722', '7f0e397bd097c36b0b6fc9210c8dc2', - '9778397bd097c36c9210c9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bd07f1487f595b0b0bc920fb0722', - '7f0e397bd097c36b0b6fc9210c8dc2', '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', - '97bcf7f1487f595b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', - '97b6b97bd19801ec9210c965cc920e', '97bcf7f1487f595b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', - '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf7f1487f531b0b0bb0b6fb0722', - '7f0e397bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', - '97bcf7f1487f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', - '97b6b97bd19801ec9210c9274c920e', '97bcf7f0e47f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722', - '9778397bd097c36b0b6fc9210c91aa', '97b6b97bd197c36c9210c9274c920e', '97bcf7f0e47f531b0b0bb0b6fb0722', - '7f0e397bd07f595b0b0bc920fb0722', '9778397bd097c36b0b6fc9210c8dc2', '9778397bd097c36c9210c9274c920e', - '97b6b7f0e47f531b0723b0b6fb0722', '7f0e37f5307f595b0b0bc920fb0722', '7f0e397bd097c36b0b6fc9210c8dc2', - '9778397bd097c36b0b70c9274c91aa', '97b6b7f0e47f531b0723b0b6fb0721', '7f0e37f1487f595b0b0bb0b6fb0722', - '7f0e397bd097c35b0b6fc9210c8dc2', '9778397bd097c36b0b6fc9274c91aa', '97b6b7f0e47f531b0723b0b6fb0721', - '7f0e27f1487f595b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', - '97b6b7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', - '9778397bd097c36b0b6fc9274c91aa', '97b6b7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', - '7f0e397bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b7f0e47f531b0723b0b6fb0721', - '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722', '9778397bd097c36b0b6fc9274c91aa', - '97b6b7f0e47f531b0723b0787b0721', '7f0e27f0e47f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722', - '9778397bd097c36b0b6fc9210c91aa', '97b6b7f0e47f149b0723b0787b0721', '7f0e27f0e47f531b0723b0b6fb0722', - '7f0e397bd07f595b0b0bc920fb0722', '9778397bd097c36b0b6fc9210c8dc2', '977837f0e37f149b0723b0787b0721', - '7f07e7f0e47f531b0723b0b6fb0722', '7f0e37f5307f595b0b0bc920fb0722', '7f0e397bd097c35b0b6fc9210c8dc2', - '977837f0e37f14998082b0787b0721', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e37f1487f595b0b0bb0b6fb0722', - '7f0e397bd097c35b0b6fc9210c8dc2', '977837f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', - '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', '977837f0e37f14998082b0787b06bd', - '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', - '977837f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', - '7f0e397bd07f595b0b0bc920fb0722', '977837f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', - '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722', '977837f0e37f14998082b0787b06bd', - '7f07e7f0e47f149b0723b0787b0721', '7f0e27f0e47f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722', - '977837f0e37f14998082b0723b06bd', '7f07e7f0e37f149b0723b0787b0721', '7f0e27f0e47f531b0723b0b6fb0722', - '7f0e397bd07f595b0b0bc920fb0722', '977837f0e37f14898082b0723b02d5', '7ec967f0e37f14998082b0787b0721', - '7f07e7f0e47f531b0723b0b6fb0722', '7f0e37f1487f595b0b0bb0b6fb0722', '7f0e37f0e37f14898082b0723b02d5', - '7ec967f0e37f14998082b0787b0721', '7f07e7f0e47f531b0723b0b6fb0722', '7f0e37f1487f531b0b0bb0b6fb0722', - '7f0e37f0e37f14898082b0723b02d5', '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', - '7f0e37f1487f531b0b0bb0b6fb0722', '7f0e37f0e37f14898082b072297c35', '7ec967f0e37f14998082b0787b06bd', - '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e37f0e37f14898082b072297c35', - '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', - '7f0e37f0e366aa89801eb072297c35', '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f149b0723b0787b0721', - '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e37f0e366aa89801eb072297c35', '7ec967f0e37f14998082b0723b06bd', - '7f07e7f0e47f149b0723b0787b0721', '7f0e27f0e47f531b0723b0b6fb0722', '7f0e37f0e366aa89801eb072297c35', - '7ec967f0e37f14998082b0723b06bd', '7f07e7f0e37f14998083b0787b0721', '7f0e27f0e47f531b0723b0b6fb0722', - '7f0e37f0e366aa89801eb072297c35', '7ec967f0e37f14898082b0723b02d5', '7f07e7f0e37f14998082b0787b0721', - '7f07e7f0e47f531b0723b0b6fb0722', '7f0e36665b66aa89801e9808297c35', '665f67f0e37f14898082b0723b02d5', - '7ec967f0e37f14998082b0787b0721', '7f07e7f0e47f531b0723b0b6fb0722', '7f0e36665b66a449801e9808297c35', - '665f67f0e37f14898082b0723b02d5', '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', - '7f0e36665b66a449801e9808297c35', '665f67f0e37f14898082b072297c35', '7ec967f0e37f14998082b0787b06bd', - '7f07e7f0e47f531b0723b0b6fb0721', '7f0e26665b66a449801e9808297c35', '665f67f0e37f1489801eb072297c35', - '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722'], - - /** - * 数字转中文速查表 - * @Array Of Property - * @trans ['日','一','二','三','四','五','六','七','八','九','十'] - * @return Cn string - */ - nStr1: ['\u65e5', '\u4e00', '\u4e8c', '\u4e09', '\u56db', '\u4e94', '\u516d', '\u4e03', '\u516b', '\u4e5d', '\u5341'], - - /** - * 日期转农历称呼速查表 - * @Array Of Property - * @trans ['初','十','廿','卅'] - * @return Cn string - */ - nStr2: ['\u521d', '\u5341', '\u5eff', '\u5345'], - - /** - * 月份转农历称呼速查表 - * @Array Of Property - * @trans ['正','一','二','三','四','五','六','七','八','九','十','冬','腊'] - * @return Cn string - */ - nStr3: ['\u6b63', '\u4e8c', '\u4e09', '\u56db', '\u4e94', '\u516d', '\u4e03', '\u516b', '\u4e5d', '\u5341', '\u51ac', '\u814a'], - - /** - * 返回农历y年一整年的总天数 - * @param lunar Year - * @return Number - * @eg:var count = calendar.lYearDays(1987) ;//count=387 - */ - lYearDays: function (y) { - var i; var sum = 348 - for (i = 0x8000; i > 0x8; i >>= 1) { sum += (this.lunarInfo[y - 1900] & i) ? 1 : 0 } - return (sum + this.leapDays(y)) - }, - - /** - * 返回农历y年闰月是哪个月;若y年没有闰月 则返回0 - * @param lunar Year - * @return Number (0-12) - * @eg:var leapMonth = calendar.leapMonth(1987) ;//leapMonth=6 - */ - leapMonth: function (y) { // 闰字编码 \u95f0 - return (this.lunarInfo[y - 1900] & 0xf) - }, - - /** - * 返回农历y年闰月的天数 若该年没有闰月则返回0 - * @param lunar Year - * @return Number (0、29、30) - * @eg:var leapMonthDay = calendar.leapDays(1987) ;//leapMonthDay=29 - */ - leapDays: function (y) { - if (this.leapMonth(y)) { - return ((this.lunarInfo[y - 1900] & 0x10000) ? 30 : 29) - } - return (0) - }, - - /** - * 返回农历y年m月(非闰月)的总天数,计算m为闰月时的天数请使用leapDays方法 - * @param lunar Year - * @return Number (-1、29、30) - * @eg:var MonthDay = calendar.monthDays(1987,9) ;//MonthDay=29 - */ - monthDays: function (y, m) { - if (m > 12 || m < 1) { return -1 }// 月份参数从1至12,参数错误返回-1 - return ((this.lunarInfo[y - 1900] & (0x10000 >> m)) ? 30 : 29) - }, - - /** - * 返回公历(!)y年m月的天数 - * @param solar Year - * @return Number (-1、28、29、30、31) - * @eg:var solarMonthDay = calendar.leapDays(1987) ;//solarMonthDay=30 - */ - solarDays: function (y, m) { - if (m > 12 || m < 1) { return -1 } // 若参数错误 返回-1 - var ms = m - 1 - if (ms == 1) { // 2月份的闰平规律测算后确认返回28或29 - return (((y % 4 == 0) && (y % 100 != 0) || (y % 400 == 0)) ? 29 : 28) - } else { - return (this.solarMonth[ms]) - } - }, - - /** - * 农历年份转换为干支纪年 - * @param lYear 农历年的年份数 - * @return Cn string - */ - toGanZhiYear: function (lYear) { - var ganKey = (lYear - 3) % 10 - var zhiKey = (lYear - 3) % 12 - if (ganKey == 0) ganKey = 10// 如果余数为0则为最后一个天干 - if (zhiKey == 0) zhiKey = 12// 如果余数为0则为最后一个地支 - return this.Gan[ganKey - 1] + this.Zhi[zhiKey - 1] - }, - - /** - * 公历月、日判断所属星座 - * @param cMonth [description] - * @param cDay [description] - * @return Cn string - */ - toAstro: function (cMonth, cDay) { - var s = '\u9b54\u7faf\u6c34\u74f6\u53cc\u9c7c\u767d\u7f8a\u91d1\u725b\u53cc\u5b50\u5de8\u87f9\u72ee\u5b50\u5904\u5973\u5929\u79e4\u5929\u874e\u5c04\u624b\u9b54\u7faf' - var arr = [20, 19, 21, 21, 21, 22, 23, 23, 23, 23, 22, 22] - return s.substr(cMonth * 2 - (cDay < arr[cMonth - 1] ? 2 : 0), 2) + '\u5ea7'// 座 - }, - - /** - * 传入offset偏移量返回干支 - * @param offset 相对甲子的偏移量 - * @return Cn string - */ - toGanZhi: function (offset) { - return this.Gan[offset % 10] + this.Zhi[offset % 12] - }, - - /** - * 传入公历(!)y年获得该年第n个节气的公历日期 - * @param y公历年(1900-2100);n二十四节气中的第几个节气(1~24);从n=1(小寒)算起 - * @return day Number - * @eg:var _24 = calendar.getTerm(1987,3) ;//_24=4;意即1987年2月4日立春 - */ - getTerm: function (y, n) { - if (y < 1900 || y > 2100) { return -1 } - if (n < 1 || n > 24) { return -1 } - var _table = this.sTermInfo[y - 1900] - var _info = [ - parseInt('0x' + _table.substr(0, 5)).toString(), - parseInt('0x' + _table.substr(5, 5)).toString(), - parseInt('0x' + _table.substr(10, 5)).toString(), - parseInt('0x' + _table.substr(15, 5)).toString(), - parseInt('0x' + _table.substr(20, 5)).toString(), - parseInt('0x' + _table.substr(25, 5)).toString() - ] - var _calday = [ - _info[0].substr(0, 1), - _info[0].substr(1, 2), - _info[0].substr(3, 1), - _info[0].substr(4, 2), - - _info[1].substr(0, 1), - _info[1].substr(1, 2), - _info[1].substr(3, 1), - _info[1].substr(4, 2), - - _info[2].substr(0, 1), - _info[2].substr(1, 2), - _info[2].substr(3, 1), - _info[2].substr(4, 2), - - _info[3].substr(0, 1), - _info[3].substr(1, 2), - _info[3].substr(3, 1), - _info[3].substr(4, 2), - - _info[4].substr(0, 1), - _info[4].substr(1, 2), - _info[4].substr(3, 1), - _info[4].substr(4, 2), - - _info[5].substr(0, 1), - _info[5].substr(1, 2), - _info[5].substr(3, 1), - _info[5].substr(4, 2) - ] - return parseInt(_calday[n - 1]) - }, - - /** - * 传入农历数字月份返回汉语通俗表示法 - * @param lunar month - * @return Cn string - * @eg:var cnMonth = calendar.toChinaMonth(12) ;//cnMonth='腊月' - */ - toChinaMonth: function (m) { // 月 => \u6708 - if (m > 12 || m < 1) { return -1 } // 若参数错误 返回-1 - var s = this.nStr3[m - 1] - s += '\u6708'// 加上月字 - return s - }, - - /** - * 传入农历日期数字返回汉字表示法 - * @param lunar day - * @return Cn string - * @eg:var cnDay = calendar.toChinaDay(21) ;//cnMonth='廿一' - */ - toChinaDay: function (d) { // 日 => \u65e5 - var s - switch (d) { - case 10: - s = '\u521d\u5341'; break - case 20: - s = '\u4e8c\u5341'; break - break - case 30: - s = '\u4e09\u5341'; break - break - default : - s = this.nStr2[Math.floor(d / 10)] - s += this.nStr1[d % 10] - } - return (s) - }, - - /** - * 年份转生肖[!仅能大致转换] => 精确划分生肖分界线是“立春” - * @param y year - * @return Cn string - * @eg:var animal = calendar.getAnimal(1987) ;//animal='兔' - */ - getAnimal: function (y) { - return this.Animals[(y - 4) % 12] - }, - - /** - * 传入阳历年月日获得详细的公历、农历object信息 <=>JSON - * @param y solar year - * @param m solar month - * @param d solar day - * @return JSON object - * @eg:console.log(calendar.solar2lunar(1987,11,01)); - */ - solar2lunar: function (y, m, d) { // 参数区间1900.1.31~2100.12.31 - // 年份限定、上限 - if (y < 1900 || y > 2100) { - return -1// undefined转换为数字变为NaN - } - // 公历传参最下限 - if (y == 1900 && m == 1 && d < 31) { - return -1 - } - // 未传参 获得当天 - if (!y) { - var objDate = new Date() - } else { - var objDate = new Date(y, parseInt(m) - 1, d) - } - var i; var leap = 0; var temp = 0 - // 修正ymd参数 - var y = objDate.getFullYear() - var m = objDate.getMonth() + 1 - var d = objDate.getDate() - var offset = (Date.UTC(objDate.getFullYear(), objDate.getMonth(), objDate.getDate()) - Date.UTC(1900, 0, 31)) / 86400000 - for (i = 1900; i < 2101 && offset > 0; i++) { - temp = this.lYearDays(i) - offset -= temp - } - if (offset < 0) { - offset += temp; i-- - } - - // 是否今天 - var isTodayObj = new Date() - var isToday = false - if (isTodayObj.getFullYear() == y && isTodayObj.getMonth() + 1 == m && isTodayObj.getDate() == d) { - isToday = true - } - // 星期几 - var nWeek = objDate.getDay() - var cWeek = this.nStr1[nWeek] - // 数字表示周几顺应天朝周一开始的惯例 - if (nWeek == 0) { - nWeek = 7 - } - // 农历年 - var year = i - var leap = this.leapMonth(i) // 闰哪个月 - var isLeap = false - - // 效验闰月 - for (i = 1; i < 13 && offset > 0; i++) { - // 闰月 - if (leap > 0 && i == (leap + 1) && isLeap == false) { - --i - isLeap = true; temp = this.leapDays(year) // 计算农历闰月天数 - } else { - temp = this.monthDays(year, i)// 计算农历普通月天数 - } - // 解除闰月 - if (isLeap == true && i == (leap + 1)) { isLeap = false } - offset -= temp - } - // 闰月导致数组下标重叠取反 - if (offset == 0 && leap > 0 && i == leap + 1) { - if (isLeap) { - isLeap = false - } else { - isLeap = true; --i - } - } - if (offset < 0) { - offset += temp; --i - } - // 农历月 - var month = i - // 农历日 - var day = offset + 1 - // 天干地支处理 - var sm = m - 1 - var gzY = this.toGanZhiYear(year) - - // 当月的两个节气 - // bugfix-2017-7-24 11:03:38 use lunar Year Param `y` Not `year` - var firstNode = this.getTerm(y, (m * 2 - 1))// 返回当月「节」为几日开始 - var secondNode = this.getTerm(y, (m * 2))// 返回当月「节」为几日开始 - - // 依据12节气修正干支月 - var gzM = this.toGanZhi((y - 1900) * 12 + m + 11) - if (d >= firstNode) { - gzM = this.toGanZhi((y - 1900) * 12 + m + 12) - } - - // 传入的日期的节气与否 - var isTerm = false - var Term = null - if (firstNode == d) { - isTerm = true - Term = this.solarTerm[m * 2 - 2] - } - if (secondNode == d) { - isTerm = true - Term = this.solarTerm[m * 2 - 1] - } - // 日柱 当月一日与 1900/1/1 相差天数 - var dayCyclical = Date.UTC(y, sm, 1, 0, 0, 0, 0) / 86400000 + 25567 + 10 - var gzD = this.toGanZhi(dayCyclical + d - 1) - // 该日期所属的星座 - var astro = this.toAstro(m, d) - - return { 'lYear': year, 'lMonth': month, 'lDay': day, 'Animal': this.getAnimal(year), 'IMonthCn': (isLeap ? '\u95f0' : '') + this.toChinaMonth(month), 'IDayCn': this.toChinaDay(day), 'cYear': y, 'cMonth': m, 'cDay': d, 'gzYear': gzY, 'gzMonth': gzM, 'gzDay': gzD, 'isToday': isToday, 'isLeap': isLeap, 'nWeek': nWeek, 'ncWeek': '\u661f\u671f' + cWeek, 'isTerm': isTerm, 'Term': Term, 'astro': astro } - }, - - /** - * 传入农历年月日以及传入的月份是否闰月获得详细的公历、农历object信息 <=>JSON - * @param y lunar year - * @param m lunar month - * @param d lunar day - * @param isLeapMonth lunar month is leap or not.[如果是农历闰月第四个参数赋值true即可] - * @return JSON object - * @eg:console.log(calendar.lunar2solar(1987,9,10)); - */ - lunar2solar: function (y, m, d, isLeapMonth) { // 参数区间1900.1.31~2100.12.1 - var isLeapMonth = !!isLeapMonth - var leapOffset = 0 - var leapMonth = this.leapMonth(y) - var leapDay = this.leapDays(y) - if (isLeapMonth && (leapMonth != m)) { return -1 }// 传参要求计算该闰月公历 但该年得出的闰月与传参的月份并不同 - if (y == 2100 && m == 12 && d > 1 || y == 1900 && m == 1 && d < 31) { return -1 }// 超出了最大极限值 - var day = this.monthDays(y, m) - var _day = day - // bugFix 2016-9-25 - // if month is leap, _day use leapDays method - if (isLeapMonth) { - _day = this.leapDays(y, m) - } - if (y < 1900 || y > 2100 || d > _day) { return -1 }// 参数合法性效验 - - // 计算农历的时间差 - var offset = 0 - for (var i = 1900; i < y; i++) { - offset += this.lYearDays(i) - } - var leap = 0; var isAdd = false - for (var i = 1; i < m; i++) { - leap = this.leapMonth(y) - if (!isAdd) { // 处理闰月 - if (leap <= i && leap > 0) { - offset += this.leapDays(y); isAdd = true - } - } - offset += this.monthDays(y, i) - } - // 转换闰月农历 需补充该年闰月的前一个月的时差 - if (isLeapMonth) { offset += day } - // 1900年农历正月一日的公历时间为1900年1月30日0时0分0秒(该时间也是本农历的最开始起始点) - var stmap = Date.UTC(1900, 1, 30, 0, 0, 0) - var calObj = new Date((offset + d - 31) * 86400000 + stmap) - var cY = calObj.getUTCFullYear() - var cM = calObj.getUTCMonth() + 1 - var cD = calObj.getUTCDate() - - return this.solar2lunar(cY, cM, cD) - } -} - -export default calendar diff --git a/src/uni_modules/uni-calendar/components/uni-calendar/i18n/en.json b/src/uni_modules/uni-calendar/components/uni-calendar/i18n/en.json deleted file mode 100644 index fcbd13cf..00000000 --- a/src/uni_modules/uni-calendar/components/uni-calendar/i18n/en.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "uni-calender.ok": "ok", - "uni-calender.cancel": "cancel", - "uni-calender.today": "today", - "uni-calender.MON": "MON", - "uni-calender.TUE": "TUE", - "uni-calender.WED": "WED", - "uni-calender.THU": "THU", - "uni-calender.FRI": "FRI", - "uni-calender.SAT": "SAT", - "uni-calender.SUN": "SUN" -} diff --git a/src/uni_modules/uni-calendar/components/uni-calendar/i18n/index.js b/src/uni_modules/uni-calendar/components/uni-calendar/i18n/index.js deleted file mode 100644 index de7509c8..00000000 --- a/src/uni_modules/uni-calendar/components/uni-calendar/i18n/index.js +++ /dev/null @@ -1,8 +0,0 @@ -import en from './en.json' -import zhHans from './zh-Hans.json' -import zhHant from './zh-Hant.json' -export default { - en, - 'zh-Hans': zhHans, - 'zh-Hant': zhHant -} diff --git a/src/uni_modules/uni-calendar/components/uni-calendar/i18n/zh-Hans.json b/src/uni_modules/uni-calendar/components/uni-calendar/i18n/zh-Hans.json deleted file mode 100644 index 1ca43de0..00000000 --- a/src/uni_modules/uni-calendar/components/uni-calendar/i18n/zh-Hans.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "uni-calender.ok": "确定", - "uni-calender.cancel": "取消", - "uni-calender.today": "今日", - "uni-calender.SUN": "日", - "uni-calender.MON": "一", - "uni-calender.TUE": "二", - "uni-calender.WED": "三", - "uni-calender.THU": "四", - "uni-calender.FRI": "五", - "uni-calender.SAT": "六" -} diff --git a/src/uni_modules/uni-calendar/components/uni-calendar/i18n/zh-Hant.json b/src/uni_modules/uni-calendar/components/uni-calendar/i18n/zh-Hant.json deleted file mode 100644 index e0fe33b9..00000000 --- a/src/uni_modules/uni-calendar/components/uni-calendar/i18n/zh-Hant.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "uni-calender.ok": "確定", - "uni-calender.cancel": "取消", - "uni-calender.today": "今日", - "uni-calender.SUN": "日", - "uni-calender.MON": "一", - "uni-calender.TUE": "二", - "uni-calender.WED": "三", - "uni-calender.THU": "四", - "uni-calender.FRI": "五", - "uni-calender.SAT": "六" -} diff --git a/src/uni_modules/uni-calendar/components/uni-calendar/uni-calendar-item.vue b/src/uni_modules/uni-calendar/components/uni-calendar/uni-calendar-item.vue deleted file mode 100644 index 0353011e..00000000 --- a/src/uni_modules/uni-calendar/components/uni-calendar/uni-calendar-item.vue +++ /dev/null @@ -1,181 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-calendar/components/uni-calendar/uni-calendar.vue b/src/uni_modules/uni-calendar/components/uni-calendar/uni-calendar.vue deleted file mode 100644 index a2c33d0d..00000000 --- a/src/uni_modules/uni-calendar/components/uni-calendar/uni-calendar.vue +++ /dev/null @@ -1,554 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-calendar/components/uni-calendar/util.js b/src/uni_modules/uni-calendar/components/uni-calendar/util.js deleted file mode 100644 index bae92737..00000000 --- a/src/uni_modules/uni-calendar/components/uni-calendar/util.js +++ /dev/null @@ -1,354 +0,0 @@ -import CALENDAR from './calendar.js' - -class Calendar { - constructor({ - date, - selected, - startDate, - endDate, - range - } = {}) { - // 当前日期 - this.date = this.getDate(new Date()) // 当前初入日期 - // 打点信息 - this.selected = selected || []; - // 范围开始 - this.startDate = startDate - // 范围结束 - this.endDate = endDate - this.range = range - // 多选状态 - this.cleanMultipleStatus() - // 每周日期 - this.weeks = {} - // this._getWeek(this.date.fullDate) - } - /** - * 设置日期 - * @param {Object} date - */ - setDate(date) { - this.selectDate = this.getDate(date) - this._getWeek(this.selectDate.fullDate) - } - - /** - * 清理多选状态 - */ - cleanMultipleStatus() { - this.multipleStatus = { - before: '', - after: '', - data: [] - } - } - - /** - * 重置开始日期 - */ - resetSatrtDate(startDate) { - // 范围开始 - this.startDate = startDate - - } - - /** - * 重置结束日期 - */ - resetEndDate(endDate) { - // 范围结束 - this.endDate = endDate - } - - /** - * 获取任意时间 - */ - getDate(date, AddDayCount = 0, str = 'day') { - if (!date) { - date = new Date() - } - if (typeof date !== 'object') { - date = date.replace(/-/g, '/') - } - const dd = new Date(date) - switch (str) { - case 'day': - dd.setDate(dd.getDate() + AddDayCount) // 获取AddDayCount天后的日期 - break - case 'month': - if (dd.getDate() === 31) { - dd.setDate(dd.getDate() + AddDayCount) - } else { - dd.setMonth(dd.getMonth() + AddDayCount) // 获取AddDayCount天后的日期 - } - break - case 'year': - dd.setFullYear(dd.getFullYear() + AddDayCount) // 获取AddDayCount天后的日期 - break - } - const y = dd.getFullYear() - const m = dd.getMonth() + 1 < 10 ? '0' + (dd.getMonth() + 1) : dd.getMonth() + 1 // 获取当前月份的日期,不足10补0 - const d = dd.getDate() < 10 ? '0' + dd.getDate() : dd.getDate() // 获取当前几号,不足10补0 - return { - fullDate: y + '-' + m + '-' + d, - year: y, - month: m, - date: d, - day: dd.getDay() - } - } - - - /** - * 获取上月剩余天数 - */ - _getLastMonthDays(firstDay, full) { - let dateArr = [] - for (let i = firstDay; i > 0; i--) { - const beforeDate = new Date(full.year, full.month - 1, -i + 1).getDate() - dateArr.push({ - date: beforeDate, - month: full.month - 1, - lunar: this.getlunar(full.year, full.month - 1, beforeDate), - disable: true - }) - } - return dateArr - } - /** - * 获取本月天数 - */ - _currentMonthDys(dateData, full) { - let dateArr = [] - let fullDate = this.date.fullDate - for (let i = 1; i <= dateData; i++) { - let isinfo = false - let nowDate = full.year + '-' + (full.month < 10 ? - full.month : full.month) + '-' + (i < 10 ? - '0' + i : i) - // 是否今天 - let isDay = fullDate === nowDate - // 获取打点信息 - let info = this.selected && this.selected.find((item) => { - if (this.dateEqual(nowDate, item.date)) { - return item - } - }) - - // 日期禁用 - let disableBefore = true - let disableAfter = true - if (this.startDate) { - // let dateCompBefore = this.dateCompare(this.startDate, fullDate) - // disableBefore = this.dateCompare(dateCompBefore ? this.startDate : fullDate, nowDate) - disableBefore = this.dateCompare(this.startDate, nowDate) - } - - if (this.endDate) { - // let dateCompAfter = this.dateCompare(fullDate, this.endDate) - // disableAfter = this.dateCompare(nowDate, dateCompAfter ? this.endDate : fullDate) - disableAfter = this.dateCompare(nowDate, this.endDate) - } - let multiples = this.multipleStatus.data - let checked = false - let multiplesStatus = -1 - if (this.range) { - if (multiples) { - multiplesStatus = multiples.findIndex((item) => { - return this.dateEqual(item, nowDate) - }) - } - if (multiplesStatus !== -1) { - checked = true - } - } - let data = { - fullDate: nowDate, - year: full.year, - date: i, - multiple: this.range ? checked : false, - beforeMultiple: this.dateEqual(this.multipleStatus.before, nowDate), - afterMultiple: this.dateEqual(this.multipleStatus.after, nowDate), - month: full.month, - lunar: this.getlunar(full.year, full.month, i), - disable: !(disableBefore && disableAfter), - isDay - } - if (info) { - data.extraInfo = info - } - - dateArr.push(data) - } - return dateArr - } - /** - * 获取下月天数 - */ - _getNextMonthDays(surplus, full) { - let dateArr = [] - for (let i = 1; i < surplus + 1; i++) { - dateArr.push({ - date: i, - month: Number(full.month) + 1, - lunar: this.getlunar(full.year, Number(full.month) + 1, i), - disable: true - }) - } - return dateArr - } - - /** - * 获取当前日期详情 - * @param {Object} date - */ - getInfo(date) { - if (!date) { - date = new Date() - } - const dateInfo = this.canlender.find(item => item.fullDate === this.getDate(date).fullDate) - return dateInfo - } - - /** - * 比较时间大小 - */ - dateCompare(startDate, endDate) { - // 计算截止时间 - startDate = new Date(startDate.replace('-', '/').replace('-', '/')) - // 计算详细项的截止时间 - endDate = new Date(endDate.replace('-', '/').replace('-', '/')) - if (startDate <= endDate) { - return true - } else { - return false - } - } - - /** - * 比较时间是否相等 - */ - dateEqual(before, after) { - // 计算截止时间 - before = new Date(before.replace('-', '/').replace('-', '/')) - // 计算详细项的截止时间 - after = new Date(after.replace('-', '/').replace('-', '/')) - if (before.getTime() - after.getTime() === 0) { - return true - } else { - return false - } - } - - - /** - * 获取日期范围内所有日期 - * @param {Object} begin - * @param {Object} end - */ - geDateAll(begin, end) { - var arr = [] - var ab = begin.split('-') - var ae = end.split('-') - var db = new Date() - db.setFullYear(ab[0], ab[1] - 1, ab[2]) - var de = new Date() - de.setFullYear(ae[0], ae[1] - 1, ae[2]) - var unixDb = db.getTime() - 24 * 60 * 60 * 1000 - var unixDe = de.getTime() - 24 * 60 * 60 * 1000 - for (var k = unixDb; k <= unixDe;) { - k = k + 24 * 60 * 60 * 1000 - arr.push(this.getDate(new Date(parseInt(k))).fullDate) - } - return arr - } - /** - * 计算阴历日期显示 - */ - getlunar(year, month, date) { - return CALENDAR.solar2lunar(year, month, date) - } - /** - * 设置打点 - */ - setSelectInfo(data, value) { - this.selected = value - this._getWeek(data) - } - - /** - * 获取多选状态 - */ - setMultiple(fullDate) { - let { - before, - after - } = this.multipleStatus - - if (!this.range) return - if (before && after) { - this.multipleStatus.before = '' - this.multipleStatus.after = '' - this.multipleStatus.data = [] - } else { - if (!before) { - this.multipleStatus.before = fullDate - } else { - this.multipleStatus.after = fullDate - if (this.dateCompare(this.multipleStatus.before, this.multipleStatus.after)) { - this.multipleStatus.data = this.geDateAll(this.multipleStatus.before, this.multipleStatus.after); - } else { - this.multipleStatus.data = this.geDateAll(this.multipleStatus.after, this.multipleStatus.before); - } - } - } - this._getWeek(fullDate) - } - - /** - * 获取每周数据 - * @param {Object} dateData - */ - _getWeek(dateData) { - const { - fullDate, - year, - month, - date, - day - } = this.getDate(dateData) - let firstDay = new Date(year, month - 1, 1).getDay() - let currentDay = new Date(year, month, 0).getDate() - let dates = { - lastMonthDays: this._getLastMonthDays(firstDay, this.getDate(dateData)), // 上个月末尾几天 - currentMonthDys: this._currentMonthDys(currentDay, this.getDate(dateData)), // 本月天数 - nextMonthDays: [], // 下个月开始几天 - weeks: [] - } - let canlender = [] - const surplus = 42 - (dates.lastMonthDays.length + dates.currentMonthDys.length) - dates.nextMonthDays = this._getNextMonthDays(surplus, this.getDate(dateData)) - canlender = canlender.concat(dates.lastMonthDays, dates.currentMonthDys, dates.nextMonthDays) - let weeks = {} - // 拼接数组 上个月开始几天 + 本月天数+ 下个月开始几天 - for (let i = 0; i < canlender.length; i++) { - if (i % 7 === 0) { - weeks[parseInt(i / 7)] = new Array(7) - } - weeks[parseInt(i / 7)][i % 7] = canlender[i] - } - this.canlender = canlender - this.weeks = weeks - } - - //静态方法 - // static init(date) { - // if (!this.instance) { - // this.instance = new Calendar(date); - // } - // return this.instance; - // } -} - - -export default Calendar diff --git a/src/uni_modules/uni-calendar/package.json b/src/uni_modules/uni-calendar/package.json deleted file mode 100644 index 40455c87..00000000 --- a/src/uni_modules/uni-calendar/package.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "id": "uni-calendar", - "displayName": "uni-calendar 日历", - "version": "1.4.5", - "description": "日历组件", - "keywords": [ - "uni-ui", - "uniui", - "日历", - "", - "打卡", - "日历选择" -], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "" - }, - "directories": { - "example": "../../temps/example_temps" - }, - "dcloudext": { - "category": [ - "前端组件", - "通用组件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" - }, - "uni_modules": { - "dependencies": [], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y" - }, - "快应用": { - "华为": "u", - "联盟": "u" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} \ No newline at end of file diff --git a/src/uni_modules/uni-calendar/readme.md b/src/uni_modules/uni-calendar/readme.md deleted file mode 100644 index 4f3ca0e8..00000000 --- a/src/uni_modules/uni-calendar/readme.md +++ /dev/null @@ -1,103 +0,0 @@ - - -## Calendar 日历 -> **组件名:uni-calendar** -> 代码块: `uCalendar` - - -日历组件 - -> **注意事项** -> 为了避免错误使用,给大家带来不好的开发体验,请在使用组件前仔细阅读下面的注意事项,可以帮你避免一些错误。 -> - 本组件农历转换使用的js是 [@1900-2100区间内的公历、农历互转](https://github.com/jjonline/calendar.js) -> - 仅支持自定义组件模式 -> - `date`属性传入的应该是一个 String ,如: 2019-06-27 ,而不是 new Date() -> - 通过 `insert` 属性来确定当前的事件是 @change 还是 @confirm 。理应合并为一个事件,但是为了区分模式,现使用两个事件,这里需要注意 -> - 弹窗模式下无法阻止后面的元素滚动,如有需要阻止,请在弹窗弹出后,手动设置滚动元素为不可滚动 - - -### 安装方式 - -本组件符合[easycom](https://uniapp.dcloud.io/collocation/pages?id=easycom)规范,`HBuilderX 2.5.5`起,只需将本组件导入项目,在页面`template`中即可直接使用,无需在页面中`import`和注册`components`。 - -如需通过`npm`方式使用`uni-ui`组件,另见文档:[https://ext.dcloud.net.cn/plugin?id=55](https://ext.dcloud.net.cn/plugin?id=55) - -### 基本用法 - -在 ``template`` 中使用组件 - -```html - - - -``` - -### 通过方法打开日历 - -需要设置 `insert` 为 `false` - -```html - - - - -``` - -```javascript - -export default { - data() { - return {}; - }, - methods: { - open(){ - this.$refs.calendar.open(); - }, - confirm(e) { - console.log(e); - } - } -}; - -``` - - -## API - -### Calendar Props - -| 属性名 | 类型 | 默认值| 说明 | -| | | -| date | String |- | 自定义当前时间,默认为今天 | -| lunar | Boolean | false | 显示农历 | -| startDate | String |- | 日期选择范围-开始日期 | -| endDate | String |- | 日期选择范围-结束日期 | -| range | Boolean | false | 范围选择 | -| insert | Boolean | false | 插入模式,可选值,ture:插入模式;false:弹窗模式;默认为插入模式 | -|clearDate |Boolean |true |弹窗模式是否清空上次选择内容 | -| selected | Array |- | 打点,期待格式[{date: '2019-06-27', info: '签到', data: { custom: '自定义信息', name: '自定义消息头',xxx:xxx... }}] | -|showMonth | Boolean | true | 是否显示月份为背景 | - -### Calendar Events - -| 事件名 | 说明 |返回值| -| | | | -| open | 弹出日历组件,`insert :false` 时生效|- | - - - - - -## 组件示例 - -点击查看:[https://hellouniapp.dcloud.net.cn/pages/extUI/calendar/calendar](https://hellouniapp.dcloud.net.cn/pages/extUI/calendar/calendar) \ No newline at end of file diff --git a/src/uni_modules/uni-card/changelog.md b/src/uni_modules/uni-card/changelog.md deleted file mode 100644 index c3cd8c45..00000000 --- a/src/uni_modules/uni-card/changelog.md +++ /dev/null @@ -1,26 +0,0 @@ -## 1.3.1(2021-12-20) -- 修复 在vue页面下略缩图显示不正常的bug -## 1.3.0(2021-11-19) -- 重构插槽的用法 ,header 替换为 title -- 新增 actions 插槽 -- 新增 cover 封面图属性和插槽 -- 新增 padding 内容默认内边距离 -- 新增 margin 卡片默认外边距离 -- 新增 spacing 卡片默认内边距 -- 新增 shadow 卡片阴影属性 -- 取消 mode 属性,可使用组合插槽代替 -- 取消 note 属性 ,使用actions插槽代替 -- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) -- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-card](https://uniapp.dcloud.io/component/uniui/uni-card) -## 1.2.1(2021-07-30) -- 优化 vue3下事件警告的问题 -## 1.2.0(2021-07-13) -- 组件兼容 vue3,如何创建vue3项目详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) -## 1.1.8(2021-07-01) -- 优化 图文卡片无图片加载时,提供占位图标 -- 新增 header 插槽,自定义卡片头部( 图文卡片 mode="style" 时,不支持) -- 修复 thumbnail 不存在仍然占位的 bug -## 1.1.7(2021-05-12) -- 新增 组件示例地址 -## 1.1.6(2021-02-04) -- 调整为uni_modules目录规范 diff --git a/src/uni_modules/uni-card/components/uni-card/uni-card.vue b/src/uni_modules/uni-card/components/uni-card/uni-card.vue deleted file mode 100644 index 38cf594c..00000000 --- a/src/uni_modules/uni-card/components/uni-card/uni-card.vue +++ /dev/null @@ -1,270 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-card/package.json b/src/uni_modules/uni-card/package.json deleted file mode 100644 index f16224de..00000000 --- a/src/uni_modules/uni-card/package.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "id": "uni-card", - "displayName": "uni-card 卡片", - "version": "1.3.1", - "description": "Card 组件,提供常见的卡片样式。", - "keywords": [ - "uni-ui", - "uniui", - "card", - "", - "卡片" -], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "" - }, - "directories": { - "example": "../../temps/example_temps" - }, - "dcloudext": { - "category": [ - "前端组件", - "通用组件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" - }, - "uni_modules": { - "dependencies": [ - "uni-icons", - "uni-scss" - ], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y" - }, - "快应用": { - "华为": "u", - "联盟": "u" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} diff --git a/src/uni_modules/uni-card/readme.md b/src/uni_modules/uni-card/readme.md deleted file mode 100644 index 7434e71d..00000000 --- a/src/uni_modules/uni-card/readme.md +++ /dev/null @@ -1,12 +0,0 @@ - - -## Card 卡片 -> **组件名:uni-card** -> 代码块: `uCard` - -卡片视图组件。 - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-card) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 - - diff --git a/src/uni_modules/uni-collapse/changelog.md b/src/uni_modules/uni-collapse/changelog.md deleted file mode 100644 index 292e4c79..00000000 --- a/src/uni_modules/uni-collapse/changelog.md +++ /dev/null @@ -1,36 +0,0 @@ -## 1.4.3(2022-01-25) -- 修复 初始化的时候 ,open 属性失效的bug -## 1.4.2(2022-01-21) -- 修复 微信小程序resize后组件收起的bug -## 1.4.1(2021-11-22) -- 修复 vue3中个别scss变量无法找到的问题 -## 1.4.0(2021-11-19) -- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) -- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-collapse](https://uniapp.dcloud.io/component/uniui/uni-collapse) -## 1.3.3(2021-08-17) -- 优化 show-arrow 属性默认为true -## 1.3.2(2021-08-17) -- 新增 show-arrow 属性,控制是否显示右侧箭头 -## 1.3.1(2021-07-30) -- 优化 vue3下小程序事件警告的问题 -## 1.3.0(2021-07-30) -- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) -## 1.2.2(2021-07-21) -- 修复 由1.2.0版本引起的 change 事件返回 undefined 的Bug -## 1.2.1(2021-07-21) -- 优化 组件示例 -## 1.2.0(2021-07-21) -- 新增 组件折叠动画 -- 新增 value\v-model 属性 ,动态修改面板折叠状态 -- 新增 title 插槽 ,可定义面板标题 -- 新增 border 属性 ,显示隐藏面板内容分隔线 -- 新增 title-border 属性 ,显示隐藏面板标题分隔线 -- 修复 resize 方法失效的Bug -- 修复 change 事件返回参数不正确的Bug -- 优化 H5、App 平台自动更具内容更新高度,无需调用 reszie() 方法 -## 1.1.7(2021-05-12) -- 新增 组件示例地址 -## 1.1.6(2021-02-05) -- 优化 组件引用关系,通过uni_modules引用组件 -## 1.1.5(2021-02-05) -- 调整为uni_modules目录规范 \ No newline at end of file diff --git a/src/uni_modules/uni-collapse/components/uni-collapse-item/uni-collapse-item.vue b/src/uni_modules/uni-collapse/components/uni-collapse-item/uni-collapse-item.vue deleted file mode 100644 index 50a72a55..00000000 --- a/src/uni_modules/uni-collapse/components/uni-collapse-item/uni-collapse-item.vue +++ /dev/null @@ -1,404 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-collapse/components/uni-collapse/uni-collapse.vue b/src/uni_modules/uni-collapse/components/uni-collapse/uni-collapse.vue deleted file mode 100644 index 384c39a9..00000000 --- a/src/uni_modules/uni-collapse/components/uni-collapse/uni-collapse.vue +++ /dev/null @@ -1,147 +0,0 @@ - - - diff --git a/src/uni_modules/uni-collapse/package.json b/src/uni_modules/uni-collapse/package.json deleted file mode 100644 index 65349cf9..00000000 --- a/src/uni_modules/uni-collapse/package.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "id": "uni-collapse", - "displayName": "uni-collapse 折叠面板", - "version": "1.4.3", - "description": "Collapse 组件,可以折叠 / 展开的内容区域。", - "keywords": [ - "uni-ui", - "折叠", - "折叠面板", - "手风琴" -], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "" - }, - "directories": { - "example": "../../temps/example_temps" - }, - "dcloudext": { - "category": [ - "前端组件", - "通用组件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" - }, - "uni_modules": { - "dependencies": [ - "uni-scss", - "uni-icons" - ], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y" - }, - "快应用": { - "华为": "u", - "联盟": "u" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} diff --git a/src/uni_modules/uni-collapse/readme.md b/src/uni_modules/uni-collapse/readme.md deleted file mode 100644 index bc758ebc..00000000 --- a/src/uni_modules/uni-collapse/readme.md +++ /dev/null @@ -1,12 +0,0 @@ - - -## Collapse 折叠面板 -> **组件名:uni-collapse** -> 代码块: `uCollapse` -> 关联组件:`uni-collapse-item`、`uni-icons`。 - - -折叠面板用来折叠/显示过长的内容或者是列表。通常是在多内容分类项使用,折叠不重要的内容,显示重要内容。点击可以展开折叠部分。 - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-collapse) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 \ No newline at end of file diff --git a/src/uni_modules/uni-countdown/changelog.md b/src/uni_modules/uni-countdown/changelog.md deleted file mode 100644 index f25beefc..00000000 --- a/src/uni_modules/uni-countdown/changelog.md +++ /dev/null @@ -1,24 +0,0 @@ -## 1.2.2(2022-01-19) -- 修复 在微信小程序中样式不生效的bug -## 1.2.1(2022-01-18) -- 新增 update 方法 ,在动态更新时间后,刷新组件 -## 1.2.0(2021-11-19) -- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) -- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-countdown](https://uniapp.dcloud.io/component/uniui/uni-countdown) -## 1.1.3(2021-10-18) -- 重构 -- 新增 font-size 支持自定义字体大小 -## 1.1.2(2021-08-24) -- 新增 支持国际化 -## 1.1.1(2021-07-30) -- 优化 vue3下小程序事件警告的问题 -## 1.1.0(2021-07-30) -- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) -## 1.0.5(2021-06-18) -- 修复 uni-countdown 重复赋值跳两秒的 bug -## 1.0.4(2021-05-12) -- 新增 组件示例地址 -## 1.0.3(2021-05-08) -- 修复 uni-countdown 不能控制倒计时的 bug -## 1.0.2(2021-02-04) -- 调整为uni_modules目录规范 diff --git a/src/uni_modules/uni-countdown/components/uni-countdown/i18n/en.json b/src/uni_modules/uni-countdown/components/uni-countdown/i18n/en.json deleted file mode 100644 index 06309cb0..00000000 --- a/src/uni_modules/uni-countdown/components/uni-countdown/i18n/en.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "uni-countdown.day": "day", - "uni-countdown.h": "h", - "uni-countdown.m": "m", - "uni-countdown.s": "s" -} diff --git a/src/uni_modules/uni-countdown/components/uni-countdown/i18n/index.js b/src/uni_modules/uni-countdown/components/uni-countdown/i18n/index.js deleted file mode 100644 index de7509c8..00000000 --- a/src/uni_modules/uni-countdown/components/uni-countdown/i18n/index.js +++ /dev/null @@ -1,8 +0,0 @@ -import en from './en.json' -import zhHans from './zh-Hans.json' -import zhHant from './zh-Hant.json' -export default { - en, - 'zh-Hans': zhHans, - 'zh-Hant': zhHant -} diff --git a/src/uni_modules/uni-countdown/components/uni-countdown/i18n/zh-Hans.json b/src/uni_modules/uni-countdown/components/uni-countdown/i18n/zh-Hans.json deleted file mode 100644 index 358cdd16..00000000 --- a/src/uni_modules/uni-countdown/components/uni-countdown/i18n/zh-Hans.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "uni-countdown.day": "天", - "uni-countdown.h": "时", - "uni-countdown.m": "分", - "uni-countdown.s": "秒" -} diff --git a/src/uni_modules/uni-countdown/components/uni-countdown/i18n/zh-Hant.json b/src/uni_modules/uni-countdown/components/uni-countdown/i18n/zh-Hant.json deleted file mode 100644 index e5a63dea..00000000 --- a/src/uni_modules/uni-countdown/components/uni-countdown/i18n/zh-Hant.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "uni-countdown.day": "天", - "uni-countdown.h": "時", - "uni-countdown.m": "分", - "uni-countdown.s": "秒" -} diff --git a/src/uni_modules/uni-countdown/components/uni-countdown/uni-countdown.vue b/src/uni_modules/uni-countdown/components/uni-countdown/uni-countdown.vue deleted file mode 100644 index 1f8ef4eb..00000000 --- a/src/uni_modules/uni-countdown/components/uni-countdown/uni-countdown.vue +++ /dev/null @@ -1,271 +0,0 @@ - - - diff --git a/src/uni_modules/uni-countdown/package.json b/src/uni_modules/uni-countdown/package.json deleted file mode 100644 index 70e99ee7..00000000 --- a/src/uni_modules/uni-countdown/package.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "id": "uni-countdown", - "displayName": "uni-countdown 倒计时", - "version": "1.2.2", - "description": "CountDown 倒计时组件", - "keywords": [ - "uni-ui", - "uniui", - "countdown", - "倒计时" -], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "" - }, - "directories": { - "example": "../../temps/example_temps" - }, - "dcloudext": { - "category": [ - "前端组件", - "通用组件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" - }, - "uni_modules": { - "dependencies": ["uni-scss"], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y" - }, - "快应用": { - "华为": "u", - "联盟": "u" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} \ No newline at end of file diff --git a/src/uni_modules/uni-countdown/readme.md b/src/uni_modules/uni-countdown/readme.md deleted file mode 100644 index 4bcb1aa7..00000000 --- a/src/uni_modules/uni-countdown/readme.md +++ /dev/null @@ -1,10 +0,0 @@ - - -## CountDown 倒计时 -> **组件名:uni-countdown** -> 代码块: `uCountDown` - -倒计时组件。 - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-countdown) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 \ No newline at end of file diff --git a/src/uni_modules/uni-data-checkbox/changelog.md b/src/uni_modules/uni-data-checkbox/changelog.md deleted file mode 100644 index dbc517a3..00000000 --- a/src/uni_modules/uni-data-checkbox/changelog.md +++ /dev/null @@ -1,43 +0,0 @@ -## 1.0.2(2022-06-30) -- 优化 在 uni-forms 中的依赖注入方式 -## 1.0.1(2022-02-07) -- 修复 multiple 为 true 时,v-model 的值为 null 报错的 bug -## 1.0.0(2021-11-19) -- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) -- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-data-checkbox](https://uniapp.dcloud.io/component/uniui/uni-data-checkbox) -## 0.2.5(2021-08-23) -- 修复 在uni-forms中 modelValue 中不存在当前字段,当前字段必填写也不参与校验的问题 -## 0.2.4(2021-08-17) -- 修复 单选 list 模式下 ,icon 为 left 时,选中图标不显示的问题 -## 0.2.3(2021-08-11) -- 修复 在 uni-forms 中重置表单,错误信息无法清除的问题 -## 0.2.2(2021-07-30) -- 优化 在uni-forms组件,与label不对齐的问题 -## 0.2.1(2021-07-27) -- 修复 单选默认值为0不能选中的Bug -## 0.2.0(2021-07-13) -- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) -## 0.1.11(2021-07-06) -- 优化 删除无用日志 -## 0.1.10(2021-07-05) -- 修复 由 0.1.9 引起的非 nvue 端图标不显示的问题 -## 0.1.9(2021-07-05) -- 修复 nvue 黑框样式问题 -## 0.1.8(2021-06-28) -- 修复 selectedTextColor 属性不生效的Bug -## 0.1.7(2021-06-02) -- 新增 map 属性,可以方便映射text/value属性 -## 0.1.6(2021-05-26) -- 修复 不关联服务空间的情况下组件报错的Bug -## 0.1.5(2021-05-12) -- 新增 组件示例地址 -## 0.1.4(2021-04-09) -- 修复 nvue 下无法选中的问题 -## 0.1.3(2021-03-22) -- 新增 disabled属性 -## 0.1.2(2021-02-24) -- 优化 默认颜色显示 -## 0.1.1(2021-02-24) -- 新增 支持nvue -## 0.1.0(2021-02-18) -- “暂无数据”显示居中 diff --git a/src/uni_modules/uni-data-checkbox/components/uni-data-checkbox/uni-data-checkbox.vue b/src/uni_modules/uni-data-checkbox/components/uni-data-checkbox/uni-data-checkbox.vue deleted file mode 100644 index 2e517123..00000000 --- a/src/uni_modules/uni-data-checkbox/components/uni-data-checkbox/uni-data-checkbox.vue +++ /dev/null @@ -1,817 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-data-checkbox/package.json b/src/uni_modules/uni-data-checkbox/package.json deleted file mode 100644 index 51470a95..00000000 --- a/src/uni_modules/uni-data-checkbox/package.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "id": "uni-data-checkbox", - "displayName": "uni-data-checkbox 数据选择器", - "version": "1.0.2", - "description": "通过数据驱动的单选框和复选框", - "keywords": [ - "uni-ui", - "checkbox", - "单选", - "多选", - "单选多选" -], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "^3.1.1" - }, - "directories": { - "example": "../../temps/example_temps" - }, - "dcloudext": { - "category": [ - "前端组件", - "通用组件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" - }, - "uni_modules": { - "dependencies": ["uni-load-more","uni-scss"], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y" - }, - "快应用": { - "华为": "u", - "联盟": "u" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} diff --git a/src/uni_modules/uni-data-checkbox/readme.md b/src/uni_modules/uni-data-checkbox/readme.md deleted file mode 100644 index 6eb253d4..00000000 --- a/src/uni_modules/uni-data-checkbox/readme.md +++ /dev/null @@ -1,18 +0,0 @@ - - -## DataCheckbox 数据驱动的单选复选框 -> **组件名:uni-data-checkbox** -> 代码块: `uDataCheckbox` - - -本组件是基于uni-app基础组件checkbox的封装。本组件要解决问题包括: - -1. 数据绑定型组件:给本组件绑定一个data,会自动渲染一组候选内容。再以往,开发者需要编写不少代码实现类似功能 -2. 自动的表单校验:组件绑定了data,且符合[uni-forms](https://ext.dcloud.net.cn/plugin?id=2773)组件的表单校验规范,搭配使用会自动实现表单校验 -3. 本组件合并了单选多选 -4. 本组件有若干风格选择,如普通的单选多选框、并列button风格、tag风格。开发者可以快速选择需要的风格。但作为一个封装组件,样式代码虽然不用自己写了,却会牺牲一定的样式自定义性 - -在uniCloud开发中,`DB Schema`中配置了enum枚举等类型后,在web控制台的[自动生成表单](https://uniapp.dcloud.io/uniCloud/schema?id=autocode)功能中,会自动生成``uni-data-checkbox``组件并绑定好data - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-data-checkbox) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 \ No newline at end of file diff --git a/src/uni_modules/uni-data-picker/changelog.md b/src/uni_modules/uni-data-picker/changelog.md deleted file mode 100644 index 083e521f..00000000 --- a/src/uni_modules/uni-data-picker/changelog.md +++ /dev/null @@ -1,64 +0,0 @@ -## 1.0.7(2022-07-06) -- 优化 pc端图标位置不正确的问题 -## 1.0.6(2022-07-05) -- 优化 显示样式 -## 1.0.5(2022-07-04) -- 修复 uni-data-picker 在 uni-forms-item 中宽度不正确的bug -## 1.0.4(2022-04-19) -- 修复 字节小程序 本地数据无法选择下一级的Bug -## 1.0.3(2022-02-25) -- 修复 nvue 不支持的 v-show 的 bug -## 1.0.2(2022-02-25) -- 修复 条件编译 nvue 不支持的 css 样式 -## 1.0.1(2021-11-23) -- 修复 由上个版本引发的map、v-model等属性不生效的bug -## 1.0.0(2021-11-19) -- 优化 组件 UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) -- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-data-picker](https://uniapp.dcloud.io/component/uniui/uni-data-picker) -## 0.4.9(2021-10-28) -- 修复 VUE2 v-model 概率无效的 bug -## 0.4.8(2021-10-27) -- 修复 v-model 概率无效的 bug -## 0.4.7(2021-10-25) -- 新增 属性 spaceInfo 服务空间配置 HBuilderX 3.2.11+ -- 修复 树型 uniCloud 数据类型为 int 时报错的 bug -## 0.4.6(2021-10-19) -- 修复 非 VUE3 v-model 为 0 时无法选中的 bug -## 0.4.5(2021-09-26) -- 新增 清除已选项的功能(通过 clearIcon 属性配置是否显示按钮),同时提供 clear 方法以供调用,二者等效 -- 修复 readonly 为 true 时报错的 bug -## 0.4.4(2021-09-26) -- 修复 上一版本造成的 map 属性失效的 bug -- 新增 ellipsis 属性,支持配置 tab 选项长度过长时是否自动省略 -## 0.4.3(2021-09-24) -- 修复 某些情况下级联未触发的 bug -## 0.4.2(2021-09-23) -- 新增 提供 show 和 hide 方法,开发者可以通过 ref 调用 -- 新增 选项内容过长自动添加省略号 -## 0.4.1(2021-09-15) -- 新增 map 属性 字段映射,将 text/value 映射到数据中的其他字段 -## 0.4.0(2021-07-13) -- 组件兼容 vue3,如何创建 vue3 项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) -## 0.3.5(2021-06-04) -- 修复 无法加载云端数据的问题 -## 0.3.4(2021-05-28) -- 修复 v-model 无效问题 -- 修复 loaddata 为空数据组时加载时间过长问题 -- 修复 上个版本引出的本地数据无法选择带有 children 的 2 级节点 -## 0.3.3(2021-05-12) -- 新增 组件示例地址 -## 0.3.2(2021-04-22) -- 修复 非树形数据有 where 属性查询报错的问题 -## 0.3.1(2021-04-15) -- 修复 本地数据概率无法回显时问题 -## 0.3.0(2021-04-07) -- 新增 支持云端非树形表结构数据 -- 修复 根节点 parent_field 字段等于 null 时选择界面错乱问题 -## 0.2.0(2021-03-15) -- 修复 nodeclick、popupopened、popupclosed 事件无法触发的问题 -## 0.1.9(2021-03-09) -- 修复 微信小程序某些情况下无法选择的问题 -## 0.1.8(2021-02-05) -- 优化 部分样式在 nvue 上的兼容表现 -## 0.1.7(2021-02-05) -- 调整为 uni_modules 目录规范 diff --git a/src/uni_modules/uni-data-picker/components/uni-data-picker/keypress.js b/src/uni_modules/uni-data-picker/components/uni-data-picker/keypress.js deleted file mode 100644 index 6ef26a26..00000000 --- a/src/uni_modules/uni-data-picker/components/uni-data-picker/keypress.js +++ /dev/null @@ -1,45 +0,0 @@ -// #ifdef H5 -export default { - name: 'Keypress', - props: { - disable: { - type: Boolean, - default: false - } - }, - mounted () { - const keyNames = { - esc: ['Esc', 'Escape'], - tab: 'Tab', - enter: 'Enter', - space: [' ', 'Spacebar'], - up: ['Up', 'ArrowUp'], - left: ['Left', 'ArrowLeft'], - right: ['Right', 'ArrowRight'], - down: ['Down', 'ArrowDown'], - delete: ['Backspace', 'Delete', 'Del'] - } - const listener = ($event) => { - if (this.disable) { - return - } - const keyName = Object.keys(keyNames).find(key => { - const keyName = $event.key - const value = keyNames[key] - return value === keyName || (Array.isArray(value) && value.includes(keyName)) - }) - if (keyName) { - // 避免和其他按键事件冲突 - setTimeout(() => { - this.$emit(keyName, {}) - }, 0) - } - } - document.addEventListener('keyup', listener) - this.$once('hook:beforeDestroy', () => { - document.removeEventListener('keyup', listener) - }) - }, - render: () => {} -} -// #endif diff --git a/src/uni_modules/uni-data-picker/components/uni-data-picker/uni-data-picker.vue b/src/uni_modules/uni-data-picker/components/uni-data-picker/uni-data-picker.vue deleted file mode 100644 index 410888df..00000000 --- a/src/uni_modules/uni-data-picker/components/uni-data-picker/uni-data-picker.vue +++ /dev/null @@ -1,554 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-data-picker/components/uni-data-pickerview/uni-data-picker.js b/src/uni_modules/uni-data-picker/components/uni-data-pickerview/uni-data-picker.js deleted file mode 100644 index c12fd54b..00000000 --- a/src/uni_modules/uni-data-picker/components/uni-data-pickerview/uni-data-picker.js +++ /dev/null @@ -1,563 +0,0 @@ -export default { - props: { - localdata: { - type: [Array, Object], - default () { - return [] - } - }, - spaceInfo: { - type: Object, - default () { - return {} - } - }, - collection: { - type: String, - default: '' - }, - action: { - type: String, - default: '' - }, - field: { - type: String, - default: '' - }, - orderby: { - type: String, - default: '' - }, - where: { - type: [String, Object], - default: '' - }, - pageData: { - type: String, - default: 'add' - }, - pageCurrent: { - type: Number, - default: 1 - }, - pageSize: { - type: Number, - default: 20 - }, - getcount: { - type: [Boolean, String], - default: false - }, - getone: { - type: [Boolean, String], - default: false - }, - gettree: { - type: [Boolean, String], - default: false - }, - manual: { - type: Boolean, - default: false - }, - value: { - type: [Array, String, Number], - default () { - return [] - } - }, - modelValue: { - type: [Array, String, Number], - default () { - return [] - } - }, - preload: { - type: Boolean, - default: false - }, - stepSearh: { - type: Boolean, - default: true - }, - selfField: { - type: String, - default: '' - }, - parentField: { - type: String, - default: '' - }, - multiple: { - type: Boolean, - default: false - }, - map: { - type: Object, - default() { - return { - text: "text", - value: "value" - } - } - } - }, - data() { - return { - loading: false, - errorMessage: '', - loadMore: { - contentdown: '', - contentrefresh: '', - contentnomore: '' - }, - dataList: [], - selected: [], - selectedIndex: 0, - page: { - current: this.pageCurrent, - size: this.pageSize, - count: 0 - } - } - }, - computed: { - isLocaldata() { - return !this.collection.length - }, - postField() { - let fields = [this.field]; - if (this.parentField) { - fields.push(`${this.parentField} as parent_value`); - } - return fields.join(','); - }, - dataValue() { - let isModelValue = Array.isArray(this.modelValue) ? (this.modelValue.length > 0) : (this.modelValue !== null || this.modelValue !== undefined) - return isModelValue ? this.modelValue : this.value - }, - hasValue() { - if (typeof this.dataValue === 'number') { - return true - } - return (this.dataValue != null) && (this.dataValue.length > 0) - } - }, - created() { - this.$watch(() => { - var al = []; - ['pageCurrent', - 'pageSize', - 'spaceInfo', - 'value', - 'modelValue', - 'localdata', - 'collection', - 'action', - 'field', - 'orderby', - 'where', - 'getont', - 'getcount', - 'gettree' - ].forEach(key => { - al.push(this[key]) - }); - return al - }, (newValue, oldValue) => { - let needReset = false - for (let i = 2; i < newValue.length; i++) { - if (newValue[i] != oldValue[i]) { - needReset = true - break - } - } - if (newValue[0] != oldValue[0]) { - this.page.current = this.pageCurrent - } - this.page.size = this.pageSize - - this.onPropsChange() - }) - this._treeData = [] - }, - methods: { - onPropsChange() { - this._treeData = [] - }, - getCommand(options = {}) { - /* eslint-disable no-undef */ - let db = uniCloud.database(this.spaceInfo) - - const action = options.action || this.action - if (action) { - db = db.action(action) - } - - const collection = options.collection || this.collection - db = db.collection(collection) - - const where = options.where || this.where - if (!(!where || !Object.keys(where).length)) { - db = db.where(where) - } - - const field = options.field || this.field - if (field) { - db = db.field(field) - } - - const orderby = options.orderby || this.orderby - if (orderby) { - db = db.orderBy(orderby) - } - - const current = options.pageCurrent !== undefined ? options.pageCurrent : this.page.current - const size = options.pageSize !== undefined ? options.pageSize : this.page.size - const getCount = options.getcount !== undefined ? options.getcount : this.getcount - const getTree = options.gettree !== undefined ? options.gettree : this.gettree - - const getOptions = { - getCount, - getTree - } - if (options.getTreePath) { - getOptions.getTreePath = options.getTreePath - } - - db = db.skip(size * (current - 1)).limit(size).get(getOptions) - - return db - }, - getNodeData(callback) { - if (this.loading) { - return - } - this.loading = true - this.getCommand({ - field: this.postField, - where: this._pathWhere() - }).then((res) => { - this.loading = false - this.selected = res.result.data - callback && callback() - }).catch((err) => { - this.loading = false - this.errorMessage = err - }) - }, - getTreePath(callback) { - if (this.loading) { - return - } - this.loading = true - - this.getCommand({ - field: this.postField, - getTreePath: { - startWith: `${this.selfField}=='${this.dataValue}'` - } - }).then((res) => { - this.loading = false - let treePath = [] - this._extractTreePath(res.result.data, treePath) - this.selected = treePath - callback && callback() - }).catch((err) => { - this.loading = false - this.errorMessage = err - }) - }, - loadData() { - if (this.isLocaldata) { - this._processLocalData() - return - } - - if (this.dataValue != null) { - this._loadNodeData((data) => { - this._treeData = data - this._updateBindData() - this._updateSelected() - }) - return - } - - if (this.stepSearh) { - this._loadNodeData((data) => { - this._treeData = data - this._updateBindData() - }) - } else { - this._loadAllData((data) => { - this._treeData = [] - this._extractTree(data, this._treeData, null) - this._updateBindData() - }) - } - }, - _loadAllData(callback) { - if (this.loading) { - return - } - this.loading = true - - this.getCommand({ - field: this.postField, - gettree: true, - startwith: `${this.selfField}=='${this.dataValue}'` - }).then((res) => { - this.loading = false - callback(res.result.data) - this.onDataChange() - }).catch((err) => { - this.loading = false - this.errorMessage = err - }) - }, - _loadNodeData(callback, pw) { - if (this.loading) { - return - } - this.loading = true - - this.getCommand({ - field: this.postField, - where: pw || this._postWhere(), - pageSize: 500 - }).then((res) => { - this.loading = false - callback(res.result.data) - this.onDataChange() - }).catch((err) => { - this.loading = false - this.errorMessage = err - }) - }, - _pathWhere() { - let result = [] - let where_field = this._getParentNameByField(); - if (where_field) { - result.push(`${where_field} == '${this.dataValue}'`) - } - - if (this.where) { - return `(${this.where}) && (${result.join(' || ')})` - } - - return result.join(' || ') - }, - _postWhere() { - let result = [] - let selected = this.selected - let parentField = this.parentField - if (parentField) { - result.push(`${parentField} == null || ${parentField} == ""`) - } - if (selected.length) { - for (var i = 0; i < selected.length - 1; i++) { - result.push(`${parentField} == '${selected[i].value}'`) - } - } - - let where = [] - if (this.where) { - where.push(`(${this.where})`) - } - if (result.length) { - where.push(`(${result.join(' || ')})`) - } - - return where.join(' && ') - }, - _nodeWhere() { - let result = [] - let selected = this.selected - if (selected.length) { - result.push(`${this.parentField} == '${selected[selected.length - 1].value}'`) - } - - if (this.where) { - return `(${this.where}) && (${result.join(' || ')})` - } - - return result.join(' || ') - }, - _getParentNameByField() { - const fields = this.field.split(','); - let where_field = null; - for (let i = 0; i < fields.length; i++) { - const items = fields[i].split('as'); - if (items.length < 2) { - continue; - } - if (items[1].trim() === 'value') { - where_field = items[0].trim(); - break; - } - } - return where_field - }, - _isTreeView() { - return (this.parentField && this.selfField) - }, - _updateSelected() { - var dl = this.dataList - var sl = this.selected - let textField = this.map.text - let valueField = this.map.value - for (var i = 0; i < sl.length; i++) { - var value = sl[i].value - var dl2 = dl[i] - for (var j = 0; j < dl2.length; j++) { - var item2 = dl2[j] - if (item2[valueField] === value) { - sl[i].text = item2[textField] - break - } - } - } - }, - _updateBindData(node) { - const { - dataList, - hasNodes - } = this._filterData(this._treeData, this.selected) - - let isleaf = this._stepSearh === false && !hasNodes - - if (node) { - node.isleaf = isleaf - } - - this.dataList = dataList - this.selectedIndex = dataList.length - 1 - - if (!isleaf && this.selected.length < dataList.length) { - this.selected.push({ - value: null, - text: "请选择" - }) - } - - return { - isleaf, - hasNodes - } - }, - _filterData(data, paths) { - let dataList = [] - let hasNodes = true - - dataList.push(data.filter((item) => { - return (item.parent_value === null || item.parent_value === undefined || item.parent_value === '') - })) - for (let i = 0; i < paths.length; i++) { - var value = paths[i].value - var nodes = data.filter((item) => { - return item.parent_value === value - }) - - if (nodes.length) { - dataList.push(nodes) - } else { - hasNodes = false - } - } - - return { - dataList, - hasNodes - } - }, - _extractTree(nodes, result, parent_value) { - let list = result || [] - let valueField = this.map.value - for (let i = 0; i < nodes.length; i++) { - let node = nodes[i] - - let child = {} - for (let key in node) { - if (key !== 'children') { - child[key] = node[key] - } - } - if (parent_value !== null && parent_value !== undefined && parent_value !== '') { - child.parent_value = parent_value - } - result.push(child) - - let children = node.children - if (children) { - this._extractTree(children, result, node[valueField]) - } - } - }, - _extractTreePath(nodes, result) { - let list = result || [] - for (let i = 0; i < nodes.length; i++) { - let node = nodes[i] - - let child = {} - for (let key in node) { - if (key !== 'children') { - child[key] = node[key] - } - } - result.push(child) - - let children = node.children - if (children) { - this._extractTreePath(children, result) - } - } - }, - _findNodePath(key, nodes, path = []) { - let textField = this.map.text - let valueField = this.map.value - for (let i = 0; i < nodes.length; i++) { - let node = nodes[i] - let children = node.children - let text = node[textField] - let value = node[valueField] - - path.push({ - value, - text - }) - - if (value === key) { - return path - } - - if (children) { - const p = this._findNodePath(key, children, path) - if (p.length) { - return p - } - } - - path.pop() - } - return [] - }, - _processLocalData() { - this._treeData = [] - this._extractTree(this.localdata, this._treeData) - - var inputValue = this.dataValue - if (inputValue === undefined) { - return - } - - if (Array.isArray(inputValue)) { - inputValue = inputValue[inputValue.length - 1] - if (typeof inputValue === 'object' && inputValue[this.map.value]) { - inputValue = inputValue[this.map.value] - } - } - - this.selected = this._findNodePath(inputValue, this.localdata) - } - } -} diff --git a/src/uni_modules/uni-data-picker/components/uni-data-pickerview/uni-data-pickerview.vue b/src/uni_modules/uni-data-picker/components/uni-data-pickerview/uni-data-pickerview.vue deleted file mode 100644 index 065aac2b..00000000 --- a/src/uni_modules/uni-data-picker/components/uni-data-pickerview/uni-data-pickerview.vue +++ /dev/null @@ -1,333 +0,0 @@ - - - - diff --git a/src/uni_modules/uni-data-picker/package.json b/src/uni_modules/uni-data-picker/package.json deleted file mode 100644 index 99003802..00000000 --- a/src/uni_modules/uni-data-picker/package.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "id": "uni-data-picker", - "displayName": "uni-data-picker 数据驱动的picker选择器", - "version": "1.0.7", - "description": "单列、多列级联选择器,常用于省市区城市选择、公司部门选择、多级分类等场景", - "keywords": [ - "uni-ui", - "uniui", - "picker", - "级联", - "省市区", - "" -], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "" - }, - "directories": { - "example": "../../temps/example_temps" - }, - "dcloudext": { - "category": [ - "前端组件", - "通用组件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" - }, - "uni_modules": { - "dependencies": [ - "uni-load-more", - "uni-icons", - "uni-scss" - ], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y", - "京东": "u" - }, - "快应用": { - "华为": "u", - "联盟": "u" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} \ No newline at end of file diff --git a/src/uni_modules/uni-data-picker/readme.md b/src/uni_modules/uni-data-picker/readme.md deleted file mode 100644 index 6cda2240..00000000 --- a/src/uni_modules/uni-data-picker/readme.md +++ /dev/null @@ -1,22 +0,0 @@ -## DataPicker 级联选择 -> **组件名:uni-data-picker** -> 代码块: `uDataPicker` -> 关联组件:`uni-data-pickerview`、`uni-load-more`。 - - -`` 是一个选择类[datacom组件](https://uniapp.dcloud.net.cn/component/datacom)。 - -支持单列、和多列级联选择。列数没有限制,如果屏幕显示不全,顶部tab区域会左右滚动。 - -候选数据支持一次性加载完毕,也支持懒加载,比如示例图中,选择了“北京”后,动态加载北京的区县数据。 - -`` 组件尤其适用于地址选择、分类选择等选择类。 - -`` 支持本地数据、云端静态数据(json),uniCloud云数据库数据。 - -`` 可以通过JQL直连uniCloud云数据库,配套[DB Schema](https://uniapp.dcloud.net.cn/uniCloud/schema),可在schema2code中自动生成前端页面,还支持服务器端校验。 - -在uniCloud数据表中新建表“uni-id-address”和“opendb-city-china”,这2个表的schema自带foreignKey关联。在“uni-id-address”表的表结构页面使用schema2code生成前端页面,会自动生成地址管理的维护页面,自动从“opendb-city-china”表包含的中国所有省市区信息里选择地址。 - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-data-picker) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 \ No newline at end of file diff --git a/src/uni_modules/uni-dateformat/changelog.md b/src/uni_modules/uni-dateformat/changelog.md deleted file mode 100644 index d551d7b8..00000000 --- a/src/uni_modules/uni-dateformat/changelog.md +++ /dev/null @@ -1,10 +0,0 @@ -## 1.0.0(2021-11-19) -- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) -- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-dateformat](https://uniapp.dcloud.io/component/uniui/uni-dateformat) -## 0.0.5(2021-07-08) -- 调整 默认时间不再是当前时间,而是显示'-'字符 -## 0.0.4(2021-05-12) -- 新增 组件示例地址 -## 0.0.3(2021-02-04) -- 调整为uni_modules目录规范 -- 修复 iOS 平台日期格式化出错的问题 diff --git a/src/uni_modules/uni-dateformat/components/uni-dateformat/date-format.js b/src/uni_modules/uni-dateformat/components/uni-dateformat/date-format.js deleted file mode 100644 index e00d5597..00000000 --- a/src/uni_modules/uni-dateformat/components/uni-dateformat/date-format.js +++ /dev/null @@ -1,200 +0,0 @@ -// yyyy-MM-dd hh:mm:ss.SSS 所有支持的类型 -function pad(str, length = 2) { - str += '' - while (str.length < length) { - str = '0' + str - } - return str.slice(-length) -} - -const parser = { - yyyy: (dateObj) => { - return pad(dateObj.year, 4) - }, - yy: (dateObj) => { - return pad(dateObj.year) - }, - MM: (dateObj) => { - return pad(dateObj.month) - }, - M: (dateObj) => { - return dateObj.month - }, - dd: (dateObj) => { - return pad(dateObj.day) - }, - d: (dateObj) => { - return dateObj.day - }, - hh: (dateObj) => { - return pad(dateObj.hour) - }, - h: (dateObj) => { - return dateObj.hour - }, - mm: (dateObj) => { - return pad(dateObj.minute) - }, - m: (dateObj) => { - return dateObj.minute - }, - ss: (dateObj) => { - return pad(dateObj.second) - }, - s: (dateObj) => { - return dateObj.second - }, - SSS: (dateObj) => { - return pad(dateObj.millisecond, 3) - }, - S: (dateObj) => { - return dateObj.millisecond - }, -} - -// 这都n年了iOS依然不认识2020-12-12,需要转换为2020/12/12 -function getDate(time) { - if (time instanceof Date) { - return time - } - switch (typeof time) { - case 'string': - { - // 2020-12-12T12:12:12.000Z、2020-12-12T12:12:12.000 - if (time.indexOf('T') > -1) { - return new Date(time) - } - return new Date(time.replace(/-/g, '/')) - } - default: - return new Date(time) - } -} - -export function formatDate(date, format = 'yyyy/MM/dd hh:mm:ss') { - if (!date && date !== 0) { - return '' - } - date = getDate(date) - const dateObj = { - year: date.getFullYear(), - month: date.getMonth() + 1, - day: date.getDate(), - hour: date.getHours(), - minute: date.getMinutes(), - second: date.getSeconds(), - millisecond: date.getMilliseconds() - } - const tokenRegExp = /yyyy|yy|MM|M|dd|d|hh|h|mm|m|ss|s|SSS|SS|S/ - let flag = true - let result = format - while (flag) { - flag = false - result = result.replace(tokenRegExp, function(matched) { - flag = true - return parser[matched](dateObj) - }) - } - return result -} - -export function friendlyDate(time, { - locale = 'zh', - threshold = [60000, 3600000], - format = 'yyyy/MM/dd hh:mm:ss' -}) { - if (time === '-') { - return time - } - if (!time && time !== 0) { - return '' - } - const localeText = { - zh: { - year: '年', - month: '月', - day: '天', - hour: '小时', - minute: '分钟', - second: '秒', - ago: '前', - later: '后', - justNow: '刚刚', - soon: '马上', - template: '{num}{unit}{suffix}' - }, - en: { - year: 'year', - month: 'month', - day: 'day', - hour: 'hour', - minute: 'minute', - second: 'second', - ago: 'ago', - later: 'later', - justNow: 'just now', - soon: 'soon', - template: '{num} {unit} {suffix}' - } - } - const text = localeText[locale] || localeText.zh - let date = getDate(time) - let ms = date.getTime() - Date.now() - let absMs = Math.abs(ms) - if (absMs < threshold[0]) { - return ms < 0 ? text.justNow : text.soon - } - if (absMs >= threshold[1]) { - return formatDate(date, format) - } - let num - let unit - let suffix = text.later - if (ms < 0) { - suffix = text.ago - ms = -ms - } - const seconds = Math.floor((ms) / 1000) - const minutes = Math.floor(seconds / 60) - const hours = Math.floor(minutes / 60) - const days = Math.floor(hours / 24) - const months = Math.floor(days / 30) - const years = Math.floor(months / 12) - switch (true) { - case years > 0: - num = years - unit = text.year - break - case months > 0: - num = months - unit = text.month - break - case days > 0: - num = days - unit = text.day - break - case hours > 0: - num = hours - unit = text.hour - break - case minutes > 0: - num = minutes - unit = text.minute - break - default: - num = seconds - unit = text.second - break - } - - if (locale === 'en') { - if (num === 1) { - num = 'a' - } else { - unit += 's' - } - } - - return text.template.replace(/{\s*num\s*}/g, num + '').replace(/{\s*unit\s*}/g, unit).replace(/{\s*suffix\s*}/g, - suffix) -} diff --git a/src/uni_modules/uni-dateformat/components/uni-dateformat/uni-dateformat.vue b/src/uni_modules/uni-dateformat/components/uni-dateformat/uni-dateformat.vue deleted file mode 100644 index c5ed0307..00000000 --- a/src/uni_modules/uni-dateformat/components/uni-dateformat/uni-dateformat.vue +++ /dev/null @@ -1,88 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-dateformat/package.json b/src/uni_modules/uni-dateformat/package.json deleted file mode 100644 index 786a670b..00000000 --- a/src/uni_modules/uni-dateformat/package.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "id": "uni-dateformat", - "displayName": "uni-dateformat 日期格式化", - "version": "1.0.0", - "description": "日期格式化组件,可以将日期格式化为1分钟前、刚刚等形式", - "keywords": [ - "uni-ui", - "uniui", - "日期格式化", - "时间格式化", - "格式化时间", - "" -], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "" - }, - "directories": { - "example": "../../temps/example_temps" - }, - "dcloudext": { - "category": [ - "前端组件", - "通用组件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" - }, - "uni_modules": { - "dependencies": ["uni-scss"], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y" - }, - "快应用": { - "华为": "y", - "联盟": "y" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} \ No newline at end of file diff --git a/src/uni_modules/uni-dateformat/readme.md b/src/uni_modules/uni-dateformat/readme.md deleted file mode 100644 index 37ddb6ec..00000000 --- a/src/uni_modules/uni-dateformat/readme.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### DateFormat 日期格式化 -> **组件名:uni-dateformat** -> 代码块: `uDateformat` - - -日期格式化组件。 - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-dateformat) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 \ No newline at end of file diff --git a/src/uni_modules/uni-datetime-picker/changelog.md b/src/uni_modules/uni-datetime-picker/changelog.md deleted file mode 100644 index 5c9735a1..00000000 --- a/src/uni_modules/uni-datetime-picker/changelog.md +++ /dev/null @@ -1,93 +0,0 @@ -## 2.2.6(2022-06-30) -- 优化 组件样式,调整了组件图标大小、高度、颜色等,与uni-ui风格保持一致 -## 2.2.5(2022-06-24) -- 修复 日历顶部年月及底部确认未国际化 bug -## 2.2.4(2022-03-31) -- 修复 Vue3 下动态赋值,单选类型未响应的 bug -## 2.2.3(2022-03-28) -- 修复 Vue3 下动态赋值未响应的 bug -## 2.2.2(2021-12-10) -- 修复 clear-icon 属性在小程序平台不生效的 bug -## 2.2.1(2021-12-10) -- 修复 日期范围选在小程序平台,必须多点击一次才能取消选中状态的 bug -## 2.2.0(2021-11-19) -- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) -- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-datetime-picker](https://uniapp.dcloud.io/component/uniui/uni-datetime-picker) -## 2.1.5(2021-11-09) -- 新增 提供组件设计资源,组件样式调整 -## 2.1.4(2021-09-10) -- 修复 hide-second 在移动端的 bug -- 修复 单选赋默认值时,赋值日期未高亮的 bug -- 修复 赋默认值时,移动端未正确显示时间的 bug -## 2.1.3(2021-09-09) -- 新增 hide-second 属性,支持只使用时分,隐藏秒 -## 2.1.2(2021-09-03) -- 优化 取消选中时(范围选)直接开始下一次选择, 避免多点一次 -- 优化 移动端支持清除按钮,同时支持通过 ref 调用组件的 clear 方法 -- 优化 调整字号大小,美化日历界面 -- 修复 因国际化导致的 placeholder 失效的 bug -## 2.1.1(2021-08-24) -- 新增 支持国际化 -- 优化 范围选择器在 pc 端过宽的问题 -## 2.1.0(2021-08-09) -- 新增 适配 vue3 -## 2.0.19(2021-08-09) -- 新增 支持作为 uni-forms 子组件相关功能 -- 修复 在 uni-forms 中使用时,选择时间报 NAN 错误的 bug -## 2.0.18(2021-08-05) -- 修复 type 属性动态赋值无效的 bug -- 修复 ‘确认’按钮被 tabbar 遮盖 bug -- 修复 组件未赋值时范围选左、右日历相同的 bug -## 2.0.17(2021-08-04) -- 修复 范围选未正确显示当前值的 bug -- 修复 h5 平台(移动端)报错 'cale' of undefined 的 bug -## 2.0.16(2021-07-21) -- 新增 return-type 属性支持返回 date 日期对象 -## 2.0.15(2021-07-14) -- 修复 单选日期类型,初始赋值后不在当前日历的 bug -- 新增 clearIcon 属性,显示框的清空按钮可配置显示隐藏(仅 pc 有效) -- 优化 移动端移除显示框的清空按钮,无实际用途 -## 2.0.14(2021-07-14) -- 修复 组件赋值为空,界面未更新的 bug -- 修复 start 和 end 不能动态赋值的 bug -- 修复 范围选类型,用户选择后再次选择右侧日历(结束日期)显示不正确的 bug -## 2.0.13(2021-07-08) -- 修复 范围选择不能动态赋值的 bug -## 2.0.12(2021-07-08) -- 修复 范围选择的初始时间在一个月内时,造成无法选择的bug -## 2.0.11(2021-07-08) -- 优化 弹出层在超出视窗边缘定位不准确的问题 -## 2.0.10(2021-07-08) -- 修复 范围起始点样式的背景色与今日样式的字体前景色融合,导致日期字体看不清的 bug -- 优化 弹出层在超出视窗边缘被遮盖的问题 -## 2.0.9(2021-07-07) -- 新增 maskClick 事件 -- 修复 特殊情况日历 rpx 布局错误的 bug,rpx -> px -- 修复 范围选择时清空返回值不合理的bug,['', ''] -> [] -## 2.0.8(2021-07-07) -- 新增 日期时间显示框支持插槽 -## 2.0.7(2021-07-01) -- 优化 添加 uni-icons 依赖 -## 2.0.6(2021-05-22) -- 修复 图标在小程序上不显示的 bug -- 优化 重命名引用组件,避免潜在组件命名冲突 -## 2.0.5(2021-05-20) -- 优化 代码目录扁平化 -## 2.0.4(2021-05-12) -- 新增 组件示例地址 -## 2.0.3(2021-05-10) -- 修复 ios 下不识别 '-' 日期格式的 bug -- 优化 pc 下弹出层添加边框和阴影 -## 2.0.2(2021-05-08) -- 修复 在 admin 中获取弹出层定位错误的bug -## 2.0.1(2021-05-08) -- 修复 type 属性向下兼容,默认值从 date 变更为 datetime -## 2.0.0(2021-04-30) -- 支持日历形式的日期+时间的范围选择 - > 注意:此版本不向后兼容,不再支持单独时间选择(type=time)及相关的 hide-second 属性(时间选可使用内置组件 picker) -## 1.0.6(2021-03-18) -- 新增 hide-second 属性,时间支持仅选择时、分 -- 修复 选择跟显示的日期不一样的 bug -- 修复 chang事件触发2次的 bug -- 修复 分、秒 end 范围错误的 bug -- 优化 更好的 nvue 适配 diff --git a/src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar-item.vue b/src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar-item.vue deleted file mode 100644 index 3d2dbeac..00000000 --- a/src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar-item.vue +++ /dev/null @@ -1,185 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar.js b/src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar.js deleted file mode 100644 index b8d7d6fc..00000000 --- a/src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar.js +++ /dev/null @@ -1,546 +0,0 @@ -/** -* @1900-2100区间内的公历、农历互转 -* @charset UTF-8 -* @github https://github.com/jjonline/calendar.js -* @Author Jea杨(JJonline@JJonline.Cn) -* @Time 2014-7-21 -* @Time 2016-8-13 Fixed 2033hex、Attribution Annals -* @Time 2016-9-25 Fixed lunar LeapMonth Param Bug -* @Time 2017-7-24 Fixed use getTerm Func Param Error.use solar year,NOT lunar year -* @Version 1.0.3 -* @公历转农历:calendar.solar2lunar(1987,11,01); //[you can ignore params of prefix 0] -* @农历转公历:calendar.lunar2solar(1987,09,10); //[you can ignore params of prefix 0] -*/ -/* eslint-disable */ -var calendar = { - - /** - * 农历1900-2100的润大小信息表 - * @Array Of Property - * @return Hex - */ - lunarInfo: [0x04bd8, 0x04ae0, 0x0a570, 0x054d5, 0x0d260, 0x0d950, 0x16554, 0x056a0, 0x09ad0, 0x055d2, // 1900-1909 - 0x04ae0, 0x0a5b6, 0x0a4d0, 0x0d250, 0x1d255, 0x0b540, 0x0d6a0, 0x0ada2, 0x095b0, 0x14977, // 1910-1919 - 0x04970, 0x0a4b0, 0x0b4b5, 0x06a50, 0x06d40, 0x1ab54, 0x02b60, 0x09570, 0x052f2, 0x04970, // 1920-1929 - 0x06566, 0x0d4a0, 0x0ea50, 0x06e95, 0x05ad0, 0x02b60, 0x186e3, 0x092e0, 0x1c8d7, 0x0c950, // 1930-1939 - 0x0d4a0, 0x1d8a6, 0x0b550, 0x056a0, 0x1a5b4, 0x025d0, 0x092d0, 0x0d2b2, 0x0a950, 0x0b557, // 1940-1949 - 0x06ca0, 0x0b550, 0x15355, 0x04da0, 0x0a5b0, 0x14573, 0x052b0, 0x0a9a8, 0x0e950, 0x06aa0, // 1950-1959 - 0x0aea6, 0x0ab50, 0x04b60, 0x0aae4, 0x0a570, 0x05260, 0x0f263, 0x0d950, 0x05b57, 0x056a0, // 1960-1969 - 0x096d0, 0x04dd5, 0x04ad0, 0x0a4d0, 0x0d4d4, 0x0d250, 0x0d558, 0x0b540, 0x0b6a0, 0x195a6, // 1970-1979 - 0x095b0, 0x049b0, 0x0a974, 0x0a4b0, 0x0b27a, 0x06a50, 0x06d40, 0x0af46, 0x0ab60, 0x09570, // 1980-1989 - 0x04af5, 0x04970, 0x064b0, 0x074a3, 0x0ea50, 0x06b58, 0x05ac0, 0x0ab60, 0x096d5, 0x092e0, // 1990-1999 - 0x0c960, 0x0d954, 0x0d4a0, 0x0da50, 0x07552, 0x056a0, 0x0abb7, 0x025d0, 0x092d0, 0x0cab5, // 2000-2009 - 0x0a950, 0x0b4a0, 0x0baa4, 0x0ad50, 0x055d9, 0x04ba0, 0x0a5b0, 0x15176, 0x052b0, 0x0a930, // 2010-2019 - 0x07954, 0x06aa0, 0x0ad50, 0x05b52, 0x04b60, 0x0a6e6, 0x0a4e0, 0x0d260, 0x0ea65, 0x0d530, // 2020-2029 - 0x05aa0, 0x076a3, 0x096d0, 0x04afb, 0x04ad0, 0x0a4d0, 0x1d0b6, 0x0d250, 0x0d520, 0x0dd45, // 2030-2039 - 0x0b5a0, 0x056d0, 0x055b2, 0x049b0, 0x0a577, 0x0a4b0, 0x0aa50, 0x1b255, 0x06d20, 0x0ada0, // 2040-2049 - /** Add By JJonline@JJonline.Cn**/ - 0x14b63, 0x09370, 0x049f8, 0x04970, 0x064b0, 0x168a6, 0x0ea50, 0x06b20, 0x1a6c4, 0x0aae0, // 2050-2059 - 0x0a2e0, 0x0d2e3, 0x0c960, 0x0d557, 0x0d4a0, 0x0da50, 0x05d55, 0x056a0, 0x0a6d0, 0x055d4, // 2060-2069 - 0x052d0, 0x0a9b8, 0x0a950, 0x0b4a0, 0x0b6a6, 0x0ad50, 0x055a0, 0x0aba4, 0x0a5b0, 0x052b0, // 2070-2079 - 0x0b273, 0x06930, 0x07337, 0x06aa0, 0x0ad50, 0x14b55, 0x04b60, 0x0a570, 0x054e4, 0x0d160, // 2080-2089 - 0x0e968, 0x0d520, 0x0daa0, 0x16aa6, 0x056d0, 0x04ae0, 0x0a9d4, 0x0a2d0, 0x0d150, 0x0f252, // 2090-2099 - 0x0d520], // 2100 - - /** - * 公历每个月份的天数普通表 - * @Array Of Property - * @return Number - */ - solarMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], - - /** - * 天干地支之天干速查表 - * @Array Of Property trans["甲","乙","丙","丁","戊","己","庚","辛","壬","癸"] - * @return Cn string - */ - Gan: ['\u7532', '\u4e59', '\u4e19', '\u4e01', '\u620a', '\u5df1', '\u5e9a', '\u8f9b', '\u58ec', '\u7678'], - - /** - * 天干地支之地支速查表 - * @Array Of Property - * @trans["子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"] - * @return Cn string - */ - Zhi: ['\u5b50', '\u4e11', '\u5bc5', '\u536f', '\u8fb0', '\u5df3', '\u5348', '\u672a', '\u7533', '\u9149', '\u620c', '\u4ea5'], - - /** - * 天干地支之地支速查表<=>生肖 - * @Array Of Property - * @trans["鼠","牛","虎","兔","龙","蛇","马","羊","猴","鸡","狗","猪"] - * @return Cn string - */ - Animals: ['\u9f20', '\u725b', '\u864e', '\u5154', '\u9f99', '\u86c7', '\u9a6c', '\u7f8a', '\u7334', '\u9e21', '\u72d7', '\u732a'], - - /** - * 24节气速查表 - * @Array Of Property - * @trans["小寒","大寒","立春","雨水","惊蛰","春分","清明","谷雨","立夏","小满","芒种","夏至","小暑","大暑","立秋","处暑","白露","秋分","寒露","霜降","立冬","小雪","大雪","冬至"] - * @return Cn string - */ - solarTerm: ['\u5c0f\u5bd2', '\u5927\u5bd2', '\u7acb\u6625', '\u96e8\u6c34', '\u60ca\u86f0', '\u6625\u5206', '\u6e05\u660e', '\u8c37\u96e8', '\u7acb\u590f', '\u5c0f\u6ee1', '\u8292\u79cd', '\u590f\u81f3', '\u5c0f\u6691', '\u5927\u6691', '\u7acb\u79cb', '\u5904\u6691', '\u767d\u9732', '\u79cb\u5206', '\u5bd2\u9732', '\u971c\u964d', '\u7acb\u51ac', '\u5c0f\u96ea', '\u5927\u96ea', '\u51ac\u81f3'], - - /** - * 1900-2100各年的24节气日期速查表 - * @Array Of Property - * @return 0x string For splice - */ - sTermInfo: ['9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf97c3598082c95f8c965cc920f', - '97bd0b06bdb0722c965ce1cfcc920f', 'b027097bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', - '97bcf97c359801ec95f8c965cc920f', '97bd0b06bdb0722c965ce1cfcc920f', 'b027097bd097c36b0b6fc9274c91aa', - '97b6b97bd19801ec9210c965cc920e', '97bcf97c359801ec95f8c965cc920f', '97bd0b06bdb0722c965ce1cfcc920f', - 'b027097bd097c36b0b6fc9274c91aa', '9778397bd19801ec9210c965cc920e', '97b6b97bd19801ec95f8c965cc920f', - '97bd09801d98082c95f8e1cfcc920f', '97bd097bd097c36b0b6fc9210c8dc2', '9778397bd197c36c9210c9274c91aa', - '97b6b97bd19801ec95f8c965cc920e', '97bd09801d98082c95f8e1cfcc920f', '97bd097bd097c36b0b6fc9210c8dc2', - '9778397bd097c36c9210c9274c91aa', '97b6b97bd19801ec95f8c965cc920e', '97bcf97c3598082c95f8e1cfcc920f', - '97bd097bd097c36b0b6fc9210c8dc2', '9778397bd097c36c9210c9274c91aa', '97b6b97bd19801ec9210c965cc920e', - '97bcf97c3598082c95f8c965cc920f', '97bd097bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', - '97b6b97bd19801ec9210c965cc920e', '97bcf97c3598082c95f8c965cc920f', '97bd097bd097c35b0b6fc920fb0722', - '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf97c359801ec95f8c965cc920f', - '97bd097bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', - '97bcf97c359801ec95f8c965cc920f', '97bd097bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', - '97b6b97bd19801ec9210c965cc920e', '97bcf97c359801ec95f8c965cc920f', '97bd097bd07f595b0b6fc920fb0722', - '9778397bd097c36b0b6fc9210c8dc2', '9778397bd19801ec9210c9274c920e', '97b6b97bd19801ec95f8c965cc920f', - '97bd07f5307f595b0b0bc920fb0722', '7f0e397bd097c36b0b6fc9210c8dc2', '9778397bd097c36c9210c9274c920e', - '97b6b97bd19801ec95f8c965cc920f', '97bd07f5307f595b0b0bc920fb0722', '7f0e397bd097c36b0b6fc9210c8dc2', - '9778397bd097c36c9210c9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bd07f1487f595b0b0bc920fb0722', - '7f0e397bd097c36b0b6fc9210c8dc2', '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', - '97bcf7f1487f595b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', - '97b6b97bd19801ec9210c965cc920e', '97bcf7f1487f595b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', - '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf7f1487f531b0b0bb0b6fb0722', - '7f0e397bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', - '97bcf7f1487f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', - '97b6b97bd19801ec9210c9274c920e', '97bcf7f0e47f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722', - '9778397bd097c36b0b6fc9210c91aa', '97b6b97bd197c36c9210c9274c920e', '97bcf7f0e47f531b0b0bb0b6fb0722', - '7f0e397bd07f595b0b0bc920fb0722', '9778397bd097c36b0b6fc9210c8dc2', '9778397bd097c36c9210c9274c920e', - '97b6b7f0e47f531b0723b0b6fb0722', '7f0e37f5307f595b0b0bc920fb0722', '7f0e397bd097c36b0b6fc9210c8dc2', - '9778397bd097c36b0b70c9274c91aa', '97b6b7f0e47f531b0723b0b6fb0721', '7f0e37f1487f595b0b0bb0b6fb0722', - '7f0e397bd097c35b0b6fc9210c8dc2', '9778397bd097c36b0b6fc9274c91aa', '97b6b7f0e47f531b0723b0b6fb0721', - '7f0e27f1487f595b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', - '97b6b7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', - '9778397bd097c36b0b6fc9274c91aa', '97b6b7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', - '7f0e397bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b7f0e47f531b0723b0b6fb0721', - '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722', '9778397bd097c36b0b6fc9274c91aa', - '97b6b7f0e47f531b0723b0787b0721', '7f0e27f0e47f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722', - '9778397bd097c36b0b6fc9210c91aa', '97b6b7f0e47f149b0723b0787b0721', '7f0e27f0e47f531b0723b0b6fb0722', - '7f0e397bd07f595b0b0bc920fb0722', '9778397bd097c36b0b6fc9210c8dc2', '977837f0e37f149b0723b0787b0721', - '7f07e7f0e47f531b0723b0b6fb0722', '7f0e37f5307f595b0b0bc920fb0722', '7f0e397bd097c35b0b6fc9210c8dc2', - '977837f0e37f14998082b0787b0721', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e37f1487f595b0b0bb0b6fb0722', - '7f0e397bd097c35b0b6fc9210c8dc2', '977837f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', - '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', '977837f0e37f14998082b0787b06bd', - '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', - '977837f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', - '7f0e397bd07f595b0b0bc920fb0722', '977837f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', - '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722', '977837f0e37f14998082b0787b06bd', - '7f07e7f0e47f149b0723b0787b0721', '7f0e27f0e47f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722', - '977837f0e37f14998082b0723b06bd', '7f07e7f0e37f149b0723b0787b0721', '7f0e27f0e47f531b0723b0b6fb0722', - '7f0e397bd07f595b0b0bc920fb0722', '977837f0e37f14898082b0723b02d5', '7ec967f0e37f14998082b0787b0721', - '7f07e7f0e47f531b0723b0b6fb0722', '7f0e37f1487f595b0b0bb0b6fb0722', '7f0e37f0e37f14898082b0723b02d5', - '7ec967f0e37f14998082b0787b0721', '7f07e7f0e47f531b0723b0b6fb0722', '7f0e37f1487f531b0b0bb0b6fb0722', - '7f0e37f0e37f14898082b0723b02d5', '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', - '7f0e37f1487f531b0b0bb0b6fb0722', '7f0e37f0e37f14898082b072297c35', '7ec967f0e37f14998082b0787b06bd', - '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e37f0e37f14898082b072297c35', - '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', - '7f0e37f0e366aa89801eb072297c35', '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f149b0723b0787b0721', - '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e37f0e366aa89801eb072297c35', '7ec967f0e37f14998082b0723b06bd', - '7f07e7f0e47f149b0723b0787b0721', '7f0e27f0e47f531b0723b0b6fb0722', '7f0e37f0e366aa89801eb072297c35', - '7ec967f0e37f14998082b0723b06bd', '7f07e7f0e37f14998083b0787b0721', '7f0e27f0e47f531b0723b0b6fb0722', - '7f0e37f0e366aa89801eb072297c35', '7ec967f0e37f14898082b0723b02d5', '7f07e7f0e37f14998082b0787b0721', - '7f07e7f0e47f531b0723b0b6fb0722', '7f0e36665b66aa89801e9808297c35', '665f67f0e37f14898082b0723b02d5', - '7ec967f0e37f14998082b0787b0721', '7f07e7f0e47f531b0723b0b6fb0722', '7f0e36665b66a449801e9808297c35', - '665f67f0e37f14898082b0723b02d5', '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', - '7f0e36665b66a449801e9808297c35', '665f67f0e37f14898082b072297c35', '7ec967f0e37f14998082b0787b06bd', - '7f07e7f0e47f531b0723b0b6fb0721', '7f0e26665b66a449801e9808297c35', '665f67f0e37f1489801eb072297c35', - '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722'], - - /** - * 数字转中文速查表 - * @Array Of Property - * @trans ['日','一','二','三','四','五','六','七','八','九','十'] - * @return Cn string - */ - nStr1: ['\u65e5', '\u4e00', '\u4e8c', '\u4e09', '\u56db', '\u4e94', '\u516d', '\u4e03', '\u516b', '\u4e5d', '\u5341'], - - /** - * 日期转农历称呼速查表 - * @Array Of Property - * @trans ['初','十','廿','卅'] - * @return Cn string - */ - nStr2: ['\u521d', '\u5341', '\u5eff', '\u5345'], - - /** - * 月份转农历称呼速查表 - * @Array Of Property - * @trans ['正','一','二','三','四','五','六','七','八','九','十','冬','腊'] - * @return Cn string - */ - nStr3: ['\u6b63', '\u4e8c', '\u4e09', '\u56db', '\u4e94', '\u516d', '\u4e03', '\u516b', '\u4e5d', '\u5341', '\u51ac', '\u814a'], - - /** - * 返回农历y年一整年的总天数 - * @param lunar Year - * @return Number - * @eg:var count = calendar.lYearDays(1987) ;//count=387 - */ - lYearDays: function (y) { - var i; var sum = 348 - for (i = 0x8000; i > 0x8; i >>= 1) { sum += (this.lunarInfo[y - 1900] & i) ? 1 : 0 } - return (sum + this.leapDays(y)) - }, - - /** - * 返回农历y年闰月是哪个月;若y年没有闰月 则返回0 - * @param lunar Year - * @return Number (0-12) - * @eg:var leapMonth = calendar.leapMonth(1987) ;//leapMonth=6 - */ - leapMonth: function (y) { // 闰字编码 \u95f0 - return (this.lunarInfo[y - 1900] & 0xf) - }, - - /** - * 返回农历y年闰月的天数 若该年没有闰月则返回0 - * @param lunar Year - * @return Number (0、29、30) - * @eg:var leapMonthDay = calendar.leapDays(1987) ;//leapMonthDay=29 - */ - leapDays: function (y) { - if (this.leapMonth(y)) { - return ((this.lunarInfo[y - 1900] & 0x10000) ? 30 : 29) - } - return (0) - }, - - /** - * 返回农历y年m月(非闰月)的总天数,计算m为闰月时的天数请使用leapDays方法 - * @param lunar Year - * @return Number (-1、29、30) - * @eg:var MonthDay = calendar.monthDays(1987,9) ;//MonthDay=29 - */ - monthDays: function (y, m) { - if (m > 12 || m < 1) { return -1 }// 月份参数从1至12,参数错误返回-1 - return ((this.lunarInfo[y - 1900] & (0x10000 >> m)) ? 30 : 29) - }, - - /** - * 返回公历(!)y年m月的天数 - * @param solar Year - * @return Number (-1、28、29、30、31) - * @eg:var solarMonthDay = calendar.leapDays(1987) ;//solarMonthDay=30 - */ - solarDays: function (y, m) { - if (m > 12 || m < 1) { return -1 } // 若参数错误 返回-1 - var ms = m - 1 - if (ms == 1) { // 2月份的闰平规律测算后确认返回28或29 - return (((y % 4 == 0) && (y % 100 != 0) || (y % 400 == 0)) ? 29 : 28) - } else { - return (this.solarMonth[ms]) - } - }, - - /** - * 农历年份转换为干支纪年 - * @param lYear 农历年的年份数 - * @return Cn string - */ - toGanZhiYear: function (lYear) { - var ganKey = (lYear - 3) % 10 - var zhiKey = (lYear - 3) % 12 - if (ganKey == 0) ganKey = 10// 如果余数为0则为最后一个天干 - if (zhiKey == 0) zhiKey = 12// 如果余数为0则为最后一个地支 - return this.Gan[ganKey - 1] + this.Zhi[zhiKey - 1] - }, - - /** - * 公历月、日判断所属星座 - * @param cMonth [description] - * @param cDay [description] - * @return Cn string - */ - toAstro: function (cMonth, cDay) { - var s = '\u9b54\u7faf\u6c34\u74f6\u53cc\u9c7c\u767d\u7f8a\u91d1\u725b\u53cc\u5b50\u5de8\u87f9\u72ee\u5b50\u5904\u5973\u5929\u79e4\u5929\u874e\u5c04\u624b\u9b54\u7faf' - var arr = [20, 19, 21, 21, 21, 22, 23, 23, 23, 23, 22, 22] - return s.substr(cMonth * 2 - (cDay < arr[cMonth - 1] ? 2 : 0), 2) + '\u5ea7'// 座 - }, - - /** - * 传入offset偏移量返回干支 - * @param offset 相对甲子的偏移量 - * @return Cn string - */ - toGanZhi: function (offset) { - return this.Gan[offset % 10] + this.Zhi[offset % 12] - }, - - /** - * 传入公历(!)y年获得该年第n个节气的公历日期 - * @param y公历年(1900-2100);n二十四节气中的第几个节气(1~24);从n=1(小寒)算起 - * @return day Number - * @eg:var _24 = calendar.getTerm(1987,3) ;//_24=4;意即1987年2月4日立春 - */ - getTerm: function (y, n) { - if (y < 1900 || y > 2100) { return -1 } - if (n < 1 || n > 24) { return -1 } - var _table = this.sTermInfo[y - 1900] - var _info = [ - parseInt('0x' + _table.substr(0, 5)).toString(), - parseInt('0x' + _table.substr(5, 5)).toString(), - parseInt('0x' + _table.substr(10, 5)).toString(), - parseInt('0x' + _table.substr(15, 5)).toString(), - parseInt('0x' + _table.substr(20, 5)).toString(), - parseInt('0x' + _table.substr(25, 5)).toString() - ] - var _calday = [ - _info[0].substr(0, 1), - _info[0].substr(1, 2), - _info[0].substr(3, 1), - _info[0].substr(4, 2), - - _info[1].substr(0, 1), - _info[1].substr(1, 2), - _info[1].substr(3, 1), - _info[1].substr(4, 2), - - _info[2].substr(0, 1), - _info[2].substr(1, 2), - _info[2].substr(3, 1), - _info[2].substr(4, 2), - - _info[3].substr(0, 1), - _info[3].substr(1, 2), - _info[3].substr(3, 1), - _info[3].substr(4, 2), - - _info[4].substr(0, 1), - _info[4].substr(1, 2), - _info[4].substr(3, 1), - _info[4].substr(4, 2), - - _info[5].substr(0, 1), - _info[5].substr(1, 2), - _info[5].substr(3, 1), - _info[5].substr(4, 2) - ] - return parseInt(_calday[n - 1]) - }, - - /** - * 传入农历数字月份返回汉语通俗表示法 - * @param lunar month - * @return Cn string - * @eg:var cnMonth = calendar.toChinaMonth(12) ;//cnMonth='腊月' - */ - toChinaMonth: function (m) { // 月 => \u6708 - if (m > 12 || m < 1) { return -1 } // 若参数错误 返回-1 - var s = this.nStr3[m - 1] - s += '\u6708'// 加上月字 - return s - }, - - /** - * 传入农历日期数字返回汉字表示法 - * @param lunar day - * @return Cn string - * @eg:var cnDay = calendar.toChinaDay(21) ;//cnMonth='廿一' - */ - toChinaDay: function (d) { // 日 => \u65e5 - var s - switch (d) { - case 10: - s = '\u521d\u5341'; break - case 20: - s = '\u4e8c\u5341'; break - break - case 30: - s = '\u4e09\u5341'; break - break - default : - s = this.nStr2[Math.floor(d / 10)] - s += this.nStr1[d % 10] - } - return (s) - }, - - /** - * 年份转生肖[!仅能大致转换] => 精确划分生肖分界线是“立春” - * @param y year - * @return Cn string - * @eg:var animal = calendar.getAnimal(1987) ;//animal='兔' - */ - getAnimal: function (y) { - return this.Animals[(y - 4) % 12] - }, - - /** - * 传入阳历年月日获得详细的公历、农历object信息 <=>JSON - * @param y solar year - * @param m solar month - * @param d solar day - * @return JSON object - * @eg:console.log(calendar.solar2lunar(1987,11,01)); - */ - solar2lunar: function (y, m, d) { // 参数区间1900.1.31~2100.12.31 - // 年份限定、上限 - if (y < 1900 || y > 2100) { - return -1// undefined转换为数字变为NaN - } - // 公历传参最下限 - if (y == 1900 && m == 1 && d < 31) { - return -1 - } - // 未传参 获得当天 - if (!y) { - var objDate = new Date() - } else { - var objDate = new Date(y, parseInt(m) - 1, d) - } - var i; var leap = 0; var temp = 0 - // 修正ymd参数 - var y = objDate.getFullYear() - var m = objDate.getMonth() + 1 - var d = objDate.getDate() - var offset = (Date.UTC(objDate.getFullYear(), objDate.getMonth(), objDate.getDate()) - Date.UTC(1900, 0, 31)) / 86400000 - for (i = 1900; i < 2101 && offset > 0; i++) { - temp = this.lYearDays(i) - offset -= temp - } - if (offset < 0) { - offset += temp; i-- - } - - // 是否今天 - var isTodayObj = new Date() - var isToday = false - if (isTodayObj.getFullYear() == y && isTodayObj.getMonth() + 1 == m && isTodayObj.getDate() == d) { - isToday = true - } - // 星期几 - var nWeek = objDate.getDay() - var cWeek = this.nStr1[nWeek] - // 数字表示周几顺应天朝周一开始的惯例 - if (nWeek == 0) { - nWeek = 7 - } - // 农历年 - var year = i - var leap = this.leapMonth(i) // 闰哪个月 - var isLeap = false - - // 效验闰月 - for (i = 1; i < 13 && offset > 0; i++) { - // 闰月 - if (leap > 0 && i == (leap + 1) && isLeap == false) { - --i - isLeap = true; temp = this.leapDays(year) // 计算农历闰月天数 - } else { - temp = this.monthDays(year, i)// 计算农历普通月天数 - } - // 解除闰月 - if (isLeap == true && i == (leap + 1)) { isLeap = false } - offset -= temp - } - // 闰月导致数组下标重叠取反 - if (offset == 0 && leap > 0 && i == leap + 1) { - if (isLeap) { - isLeap = false - } else { - isLeap = true; --i - } - } - if (offset < 0) { - offset += temp; --i - } - // 农历月 - var month = i - // 农历日 - var day = offset + 1 - // 天干地支处理 - var sm = m - 1 - var gzY = this.toGanZhiYear(year) - - // 当月的两个节气 - // bugfix-2017-7-24 11:03:38 use lunar Year Param `y` Not `year` - var firstNode = this.getTerm(y, (m * 2 - 1))// 返回当月「节」为几日开始 - var secondNode = this.getTerm(y, (m * 2))// 返回当月「节」为几日开始 - - // 依据12节气修正干支月 - var gzM = this.toGanZhi((y - 1900) * 12 + m + 11) - if (d >= firstNode) { - gzM = this.toGanZhi((y - 1900) * 12 + m + 12) - } - - // 传入的日期的节气与否 - var isTerm = false - var Term = null - if (firstNode == d) { - isTerm = true - Term = this.solarTerm[m * 2 - 2] - } - if (secondNode == d) { - isTerm = true - Term = this.solarTerm[m * 2 - 1] - } - // 日柱 当月一日与 1900/1/1 相差天数 - var dayCyclical = Date.UTC(y, sm, 1, 0, 0, 0, 0) / 86400000 + 25567 + 10 - var gzD = this.toGanZhi(dayCyclical + d - 1) - // 该日期所属的星座 - var astro = this.toAstro(m, d) - - return { 'lYear': year, 'lMonth': month, 'lDay': day, 'Animal': this.getAnimal(year), 'IMonthCn': (isLeap ? '\u95f0' : '') + this.toChinaMonth(month), 'IDayCn': this.toChinaDay(day), 'cYear': y, 'cMonth': m, 'cDay': d, 'gzYear': gzY, 'gzMonth': gzM, 'gzDay': gzD, 'isToday': isToday, 'isLeap': isLeap, 'nWeek': nWeek, 'ncWeek': '\u661f\u671f' + cWeek, 'isTerm': isTerm, 'Term': Term, 'astro': astro } - }, - - /** - * 传入农历年月日以及传入的月份是否闰月获得详细的公历、农历object信息 <=>JSON - * @param y lunar year - * @param m lunar month - * @param d lunar day - * @param isLeapMonth lunar month is leap or not.[如果是农历闰月第四个参数赋值true即可] - * @return JSON object - * @eg:console.log(calendar.lunar2solar(1987,9,10)); - */ - lunar2solar: function (y, m, d, isLeapMonth) { // 参数区间1900.1.31~2100.12.1 - var isLeapMonth = !!isLeapMonth - var leapOffset = 0 - var leapMonth = this.leapMonth(y) - var leapDay = this.leapDays(y) - if (isLeapMonth && (leapMonth != m)) { return -1 }// 传参要求计算该闰月公历 但该年得出的闰月与传参的月份并不同 - if (y == 2100 && m == 12 && d > 1 || y == 1900 && m == 1 && d < 31) { return -1 }// 超出了最大极限值 - var day = this.monthDays(y, m) - var _day = day - // bugFix 2016-9-25 - // if month is leap, _day use leapDays method - if (isLeapMonth) { - _day = this.leapDays(y, m) - } - if (y < 1900 || y > 2100 || d > _day) { return -1 }// 参数合法性效验 - - // 计算农历的时间差 - var offset = 0 - for (var i = 1900; i < y; i++) { - offset += this.lYearDays(i) - } - var leap = 0; var isAdd = false - for (var i = 1; i < m; i++) { - leap = this.leapMonth(y) - if (!isAdd) { // 处理闰月 - if (leap <= i && leap > 0) { - offset += this.leapDays(y); isAdd = true - } - } - offset += this.monthDays(y, i) - } - // 转换闰月农历 需补充该年闰月的前一个月的时差 - if (isLeapMonth) { offset += day } - // 1900年农历正月一日的公历时间为1900年1月30日0时0分0秒(该时间也是本农历的最开始起始点) - var stmap = Date.UTC(1900, 1, 30, 0, 0, 0) - var calObj = new Date((offset + d - 31) * 86400000 + stmap) - var cY = calObj.getUTCFullYear() - var cM = calObj.getUTCMonth() + 1 - var cD = calObj.getUTCDate() - - return this.solar2lunar(cY, cM, cD) - } -} - -export default calendar diff --git a/src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar.vue b/src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar.vue deleted file mode 100644 index 8f7f1815..00000000 --- a/src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar.vue +++ /dev/null @@ -1,907 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/en.json b/src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/en.json deleted file mode 100644 index 9acf1ab0..00000000 --- a/src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/en.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "uni-datetime-picker.selectDate": "select date", - "uni-datetime-picker.selectTime": "select time", - "uni-datetime-picker.selectDateTime": "select datetime", - "uni-datetime-picker.startDate": "start date", - "uni-datetime-picker.endDate": "end date", - "uni-datetime-picker.startTime": "start time", - "uni-datetime-picker.endTime": "end time", - "uni-datetime-picker.ok": "ok", - "uni-datetime-picker.clear": "clear", - "uni-datetime-picker.cancel": "cancel", - "uni-datetime-picker.year": "-", - "uni-datetime-picker.month": "", - "uni-calender.MON": "MON", - "uni-calender.TUE": "TUE", - "uni-calender.WED": "WED", - "uni-calender.THU": "THU", - "uni-calender.FRI": "FRI", - "uni-calender.SAT": "SAT", - "uni-calender.SUN": "SUN", - "uni-calender.confirm": "confirm" -} diff --git a/src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/index.js b/src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/index.js deleted file mode 100644 index de7509c8..00000000 --- a/src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/index.js +++ /dev/null @@ -1,8 +0,0 @@ -import en from './en.json' -import zhHans from './zh-Hans.json' -import zhHant from './zh-Hant.json' -export default { - en, - 'zh-Hans': zhHans, - 'zh-Hant': zhHant -} diff --git a/src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hans.json b/src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hans.json deleted file mode 100644 index d2df5e72..00000000 --- a/src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hans.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "uni-datetime-picker.selectDate": "选择日期", - "uni-datetime-picker.selectTime": "选择时间", - "uni-datetime-picker.selectDateTime": "选择日期时间", - "uni-datetime-picker.startDate": "开始日期", - "uni-datetime-picker.endDate": "结束日期", - "uni-datetime-picker.startTime": "开始时间", - "uni-datetime-picker.endTime": "结束时间", - "uni-datetime-picker.ok": "确定", - "uni-datetime-picker.clear": "清除", - "uni-datetime-picker.cancel": "取消", - "uni-datetime-picker.year": "年", - "uni-datetime-picker.month": "月", - "uni-calender.SUN": "日", - "uni-calender.MON": "一", - "uni-calender.TUE": "二", - "uni-calender.WED": "三", - "uni-calender.THU": "四", - "uni-calender.FRI": "五", - "uni-calender.SAT": "六", - "uni-calender.confirm": "确认" -} \ No newline at end of file diff --git a/src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hant.json b/src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hant.json deleted file mode 100644 index d23fa3c3..00000000 --- a/src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hant.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "uni-datetime-picker.selectDate": "選擇日期", - "uni-datetime-picker.selectTime": "選擇時間", - "uni-datetime-picker.selectDateTime": "選擇日期時間", - "uni-datetime-picker.startDate": "開始日期", - "uni-datetime-picker.endDate": "結束日期", - "uni-datetime-picker.startTime": "開始时间", - "uni-datetime-picker.endTime": "結束时间", - "uni-datetime-picker.ok": "確定", - "uni-datetime-picker.clear": "清除", - "uni-datetime-picker.cancel": "取消", - "uni-datetime-picker.year": "年", - "uni-datetime-picker.month": "月", - "uni-calender.SUN": "日", - "uni-calender.MON": "一", - "uni-calender.TUE": "二", - "uni-calender.WED": "三", - "uni-calender.THU": "四", - "uni-calender.FRI": "五", - "uni-calender.SAT": "六", - "uni-calender.confirm": "確認" -} \ No newline at end of file diff --git a/src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/keypress.js b/src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/keypress.js deleted file mode 100644 index 9601abae..00000000 --- a/src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/keypress.js +++ /dev/null @@ -1,45 +0,0 @@ -// #ifdef H5 -export default { - name: 'Keypress', - props: { - disable: { - type: Boolean, - default: false - } - }, - mounted () { - const keyNames = { - esc: ['Esc', 'Escape'], - tab: 'Tab', - enter: 'Enter', - space: [' ', 'Spacebar'], - up: ['Up', 'ArrowUp'], - left: ['Left', 'ArrowLeft'], - right: ['Right', 'ArrowRight'], - down: ['Down', 'ArrowDown'], - delete: ['Backspace', 'Delete', 'Del'] - } - const listener = ($event) => { - if (this.disable) { - return - } - const keyName = Object.keys(keyNames).find(key => { - const keyName = $event.key - const value = keyNames[key] - return value === keyName || (Array.isArray(value) && value.includes(keyName)) - }) - if (keyName) { - // 避免和其他按键事件冲突 - setTimeout(() => { - this.$emit(keyName, {}) - }, 0) - } - } - document.addEventListener('keyup', listener) - this.$once('hook:beforeDestroy', () => { - document.removeEventListener('keyup', listener) - }) - }, - render: () => {} -} -// #endif \ No newline at end of file diff --git a/src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/time-picker.vue b/src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/time-picker.vue deleted file mode 100644 index 699aa639..00000000 --- a/src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/time-picker.vue +++ /dev/null @@ -1,927 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.vue b/src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.vue deleted file mode 100644 index 9bdf8bca..00000000 --- a/src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.vue +++ /dev/null @@ -1,1012 +0,0 @@ - - - - diff --git a/src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/util.js b/src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/util.js deleted file mode 100644 index efa5773a..00000000 --- a/src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/util.js +++ /dev/null @@ -1,410 +0,0 @@ -class Calendar { - constructor({ - date, - selected, - startDate, - endDate, - range, - // multipleStatus - } = {}) { - // 当前日期 - this.date = this.getDate(new Date()) // 当前初入日期 - // 打点信息 - this.selected = selected || []; - // 范围开始 - this.startDate = startDate - // 范围结束 - this.endDate = endDate - this.range = range - // 多选状态 - this.cleanMultipleStatus() - // 每周日期 - this.weeks = {} - // this._getWeek(this.date.fullDate) - // this.multipleStatus = multipleStatus - this.lastHover = false - } - /** - * 设置日期 - * @param {Object} date - */ - setDate(date) { - this.selectDate = this.getDate(date) - this._getWeek(this.selectDate.fullDate) - } - - /** - * 清理多选状态 - */ - cleanMultipleStatus() { - this.multipleStatus = { - before: '', - after: '', - data: [] - } - } - - /** - * 重置开始日期 - */ - resetSatrtDate(startDate) { - // 范围开始 - this.startDate = startDate - - } - - /** - * 重置结束日期 - */ - resetEndDate(endDate) { - // 范围结束 - this.endDate = endDate - } - - /** - * 获取任意时间 - */ - getDate(date, AddDayCount = 0, str = 'day') { - if (!date) { - date = new Date() - } - if (typeof date !== 'object') { - date = date.replace(/-/g, '/') - } - const dd = new Date(date) - switch (str) { - case 'day': - dd.setDate(dd.getDate() + AddDayCount) // 获取AddDayCount天后的日期 - break - case 'month': - if (dd.getDate() === 31) { - dd.setDate(dd.getDate() + AddDayCount) - } else { - dd.setMonth(dd.getMonth() + AddDayCount) // 获取AddDayCount天后的日期 - } - break - case 'year': - dd.setFullYear(dd.getFullYear() + AddDayCount) // 获取AddDayCount天后的日期 - break - } - const y = dd.getFullYear() - const m = dd.getMonth() + 1 < 10 ? '0' + (dd.getMonth() + 1) : dd.getMonth() + 1 // 获取当前月份的日期,不足10补0 - const d = dd.getDate() < 10 ? '0' + dd.getDate() : dd.getDate() // 获取当前几号,不足10补0 - return { - fullDate: y + '-' + m + '-' + d, - year: y, - month: m, - date: d, - day: dd.getDay() - } - } - - - /** - * 获取上月剩余天数 - */ - _getLastMonthDays(firstDay, full) { - let dateArr = [] - for (let i = firstDay; i > 0; i--) { - const beforeDate = new Date(full.year, full.month - 1, -i + 1).getDate() - dateArr.push({ - date: beforeDate, - month: full.month - 1, - disable: true - }) - } - return dateArr - } - /** - * 获取本月天数 - */ - _currentMonthDys(dateData, full) { - let dateArr = [] - let fullDate = this.date.fullDate - for (let i = 1; i <= dateData; i++) { - let isinfo = false - let nowDate = full.year + '-' + (full.month < 10 ? - full.month : full.month) + '-' + (i < 10 ? - '0' + i : i) - // 是否今天 - let isDay = fullDate === nowDate - // 获取打点信息 - let info = this.selected && this.selected.find((item) => { - if (this.dateEqual(nowDate, item.date)) { - return item - } - }) - - // 日期禁用 - let disableBefore = true - let disableAfter = true - if (this.startDate) { - // let dateCompBefore = this.dateCompare(this.startDate, fullDate) - // disableBefore = this.dateCompare(dateCompBefore ? this.startDate : fullDate, nowDate) - disableBefore = this.dateCompare(this.startDate, nowDate) - } - - if (this.endDate) { - // let dateCompAfter = this.dateCompare(fullDate, this.endDate) - // disableAfter = this.dateCompare(nowDate, dateCompAfter ? this.endDate : fullDate) - disableAfter = this.dateCompare(nowDate, this.endDate) - } - let multiples = this.multipleStatus.data - let checked = false - let multiplesStatus = -1 - if (this.range) { - if (multiples) { - multiplesStatus = multiples.findIndex((item) => { - return this.dateEqual(item, nowDate) - }) - } - if (multiplesStatus !== -1) { - checked = true - } - } - let data = { - fullDate: nowDate, - year: full.year, - date: i, - multiple: this.range ? checked : false, - beforeMultiple: this.isLogicBefore(nowDate, this.multipleStatus.before, this.multipleStatus.after), - afterMultiple: this.isLogicAfter(nowDate, this.multipleStatus.before, this.multipleStatus.after), - month: full.month, - disable: !(disableBefore && disableAfter), - isDay, - userChecked: false - } - if (info) { - data.extraInfo = info - } - - dateArr.push(data) - } - return dateArr - } - /** - * 获取下月天数 - */ - _getNextMonthDays(surplus, full) { - let dateArr = [] - for (let i = 1; i < surplus + 1; i++) { - dateArr.push({ - date: i, - month: Number(full.month) + 1, - disable: true - }) - } - return dateArr - } - - /** - * 获取当前日期详情 - * @param {Object} date - */ - getInfo(date) { - if (!date) { - date = new Date() - } - const dateInfo = this.canlender.find(item => item.fullDate === this.getDate(date).fullDate) - return dateInfo - } - - /** - * 比较时间大小 - */ - dateCompare(startDate, endDate) { - // 计算截止时间 - startDate = new Date(startDate.replace('-', '/').replace('-', '/')) - // 计算详细项的截止时间 - endDate = new Date(endDate.replace('-', '/').replace('-', '/')) - if (startDate <= endDate) { - return true - } else { - return false - } - } - - /** - * 比较时间是否相等 - */ - dateEqual(before, after) { - // 计算截止时间 - before = new Date(before.replace('-', '/').replace('-', '/')) - // 计算详细项的截止时间 - after = new Date(after.replace('-', '/').replace('-', '/')) - if (before.getTime() - after.getTime() === 0) { - return true - } else { - return false - } - } - - /** - * 比较真实起始日期 - */ - - isLogicBefore(currentDay, before, after) { - let logicBefore = before - if (before && after) { - logicBefore = this.dateCompare(before, after) ? before : after - } - return this.dateEqual(logicBefore, currentDay) - } - - isLogicAfter(currentDay, before, after) { - let logicAfter = after - if (before && after) { - logicAfter = this.dateCompare(before, after) ? after : before - } - return this.dateEqual(logicAfter, currentDay) - } - - /** - * 获取日期范围内所有日期 - * @param {Object} begin - * @param {Object} end - */ - geDateAll(begin, end) { - var arr = [] - var ab = begin.split('-') - var ae = end.split('-') - var db = new Date() - db.setFullYear(ab[0], ab[1] - 1, ab[2]) - var de = new Date() - de.setFullYear(ae[0], ae[1] - 1, ae[2]) - var unixDb = db.getTime() - 24 * 60 * 60 * 1000 - var unixDe = de.getTime() - 24 * 60 * 60 * 1000 - for (var k = unixDb; k <= unixDe;) { - k = k + 24 * 60 * 60 * 1000 - arr.push(this.getDate(new Date(parseInt(k))).fullDate) - } - return arr - } - - /** - * 获取多选状态 - */ - setMultiple(fullDate) { - let { - before, - after - } = this.multipleStatus - if (!this.range) return - if (before && after) { - if (!this.lastHover) { - this.lastHover = true - return - } - this.multipleStatus.before = fullDate - this.multipleStatus.after = '' - this.multipleStatus.data = [] - this.multipleStatus.fulldate = '' - this.lastHover = false - } else { - if (!before) { - this.multipleStatus.before = fullDate - this.lastHover = false - } else { - this.multipleStatus.after = fullDate - if (this.dateCompare(this.multipleStatus.before, this.multipleStatus.after)) { - this.multipleStatus.data = this.geDateAll(this.multipleStatus.before, this.multipleStatus - .after); - } else { - this.multipleStatus.data = this.geDateAll(this.multipleStatus.after, this.multipleStatus - .before); - } - this.lastHover = true - } - } - this._getWeek(fullDate) - } - - /** - * 鼠标 hover 更新多选状态 - */ - setHoverMultiple(fullDate) { - let { - before, - after - } = this.multipleStatus - - if (!this.range) return - if (this.lastHover) return - - if (!before) { - this.multipleStatus.before = fullDate - } else { - this.multipleStatus.after = fullDate - if (this.dateCompare(this.multipleStatus.before, this.multipleStatus.after)) { - this.multipleStatus.data = this.geDateAll(this.multipleStatus.before, this.multipleStatus.after); - } else { - this.multipleStatus.data = this.geDateAll(this.multipleStatus.after, this.multipleStatus.before); - } - } - this._getWeek(fullDate) - } - - /** - * 更新默认值多选状态 - */ - setDefaultMultiple(before, after) { - this.multipleStatus.before = before - this.multipleStatus.after = after - if (before && after) { - if (this.dateCompare(before, after)) { - this.multipleStatus.data = this.geDateAll(before, after); - this._getWeek(after) - } else { - this.multipleStatus.data = this.geDateAll(after, before); - this._getWeek(before) - } - } - } - - /** - * 获取每周数据 - * @param {Object} dateData - */ - _getWeek(dateData) { - const { - fullDate, - year, - month, - date, - day - } = this.getDate(dateData) - let firstDay = new Date(year, month - 1, 1).getDay() - let currentDay = new Date(year, month, 0).getDate() - let dates = { - lastMonthDays: this._getLastMonthDays(firstDay, this.getDate(dateData)), // 上个月末尾几天 - currentMonthDys: this._currentMonthDys(currentDay, this.getDate(dateData)), // 本月天数 - nextMonthDays: [], // 下个月开始几天 - weeks: [] - } - let canlender = [] - const surplus = 42 - (dates.lastMonthDays.length + dates.currentMonthDys.length) - dates.nextMonthDays = this._getNextMonthDays(surplus, this.getDate(dateData)) - canlender = canlender.concat(dates.lastMonthDays, dates.currentMonthDys, dates.nextMonthDays) - let weeks = {} - // 拼接数组 上个月开始几天 + 本月天数+ 下个月开始几天 - for (let i = 0; i < canlender.length; i++) { - if (i % 7 === 0) { - weeks[parseInt(i / 7)] = new Array(7) - } - weeks[parseInt(i / 7)][i % 7] = canlender[i] - } - this.canlender = canlender - this.weeks = weeks - } - - //静态方法 - // static init(date) { - // if (!this.instance) { - // this.instance = new Calendar(date); - // } - // return this.instance; - // } -} - - -export default Calendar diff --git a/src/uni_modules/uni-datetime-picker/package.json b/src/uni_modules/uni-datetime-picker/package.json deleted file mode 100644 index 60fa1d02..00000000 --- a/src/uni_modules/uni-datetime-picker/package.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "id": "uni-datetime-picker", - "displayName": "uni-datetime-picker 日期选择器", - "version": "2.2.6", - "description": "uni-datetime-picker 日期时间选择器,支持日历,支持范围选择", - "keywords": [ - "uni-datetime-picker", - "uni-ui", - "uniui", - "日期时间选择器", - "日期时间" -], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "" - }, - "directories": { - "example": "../../temps/example_temps" - }, - "dcloudext": { - "category": [ - "前端组件", - "通用组件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" - }, - "uni_modules": { - "dependencies": [ - "uni-scss", - "uni-icons" - ], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "App": { - "app-vue": "y", - "app-nvue": "n" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y" - }, - "快应用": { - "华为": "u", - "联盟": "u" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} diff --git a/src/uni_modules/uni-datetime-picker/readme.md b/src/uni_modules/uni-datetime-picker/readme.md deleted file mode 100644 index 162fbefa..00000000 --- a/src/uni_modules/uni-datetime-picker/readme.md +++ /dev/null @@ -1,21 +0,0 @@ - - -> `重要通知:组件升级更新 2.0.0 后,支持日期+时间范围选择,组件 ui 将使用日历选择日期,ui 变化较大,同时支持 PC 和 移动端。此版本不向后兼容,不再支持单独的时间选择(type=time)及相关的 hide-second 属性(时间选可使用内置组件 picker)。若仍需使用旧版本,可在插件市场下载*非uni_modules版本*,旧版本将不再维护` - -## DatetimePicker 时间选择器 - -> **组件名:uni-datetime-picker** -> 代码块: `uDatetimePicker` - - -该组件的优势是,支持**时间戳**输入和输出(起始时间、终止时间也支持时间戳),可**同时选择**日期和时间。 - -若只是需要单独选择日期和时间,不需要时间戳输入和输出,可使用原生的 picker 组件。 - -**_点击 picker 默认值规则:_** - -- 若设置初始值 value, 会显示在 picker 显示框中 -- 若无初始值 value,则初始值 value 为当前本地时间 Date.now(), 但不会显示在 picker 显示框中 - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-datetime-picker) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 \ No newline at end of file diff --git a/src/uni_modules/uni-drawer/changelog.md b/src/uni_modules/uni-drawer/changelog.md deleted file mode 100644 index 6d2488c3..00000000 --- a/src/uni_modules/uni-drawer/changelog.md +++ /dev/null @@ -1,13 +0,0 @@ -## 1.2.1(2021-11-22) -- 修复 vue3中个别scss变量无法找到的问题 -## 1.2.0(2021-11-19) -- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) -- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-drawer](https://uniapp.dcloud.io/component/uniui/uni-drawer) -## 1.1.1(2021-07-30) -- 优化 vue3下事件警告的问题 -## 1.1.0(2021-07-13) -- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) -## 1.0.7(2021-05-12) -- 新增 组件示例地址 -## 1.0.6(2021-02-04) -- 调整为uni_modules目录规范 diff --git a/src/uni_modules/uni-drawer/components/uni-drawer/keypress.js b/src/uni_modules/uni-drawer/components/uni-drawer/keypress.js deleted file mode 100644 index 62dda461..00000000 --- a/src/uni_modules/uni-drawer/components/uni-drawer/keypress.js +++ /dev/null @@ -1,45 +0,0 @@ -// #ifdef H5 -export default { - name: 'Keypress', - props: { - disable: { - type: Boolean, - default: false - } - }, - mounted () { - const keyNames = { - esc: ['Esc', 'Escape'], - tab: 'Tab', - enter: 'Enter', - space: [' ', 'Spacebar'], - up: ['Up', 'ArrowUp'], - left: ['Left', 'ArrowLeft'], - right: ['Right', 'ArrowRight'], - down: ['Down', 'ArrowDown'], - delete: ['Backspace', 'Delete', 'Del'] - } - const listener = ($event) => { - if (this.disable) { - return - } - const keyName = Object.keys(keyNames).find(key => { - const keyName = $event.key - const value = keyNames[key] - return value === keyName || (Array.isArray(value) && value.includes(keyName)) - }) - if (keyName) { - // 避免和其他按键事件冲突 - setTimeout(() => { - this.$emit(keyName, {}) - }, 0) - } - } - document.addEventListener('keyup', listener) - // this.$once('hook:beforeDestroy', () => { - // document.removeEventListener('keyup', listener) - // }) - }, - render: () => {} -} -// #endif diff --git a/src/uni_modules/uni-drawer/components/uni-drawer/uni-drawer.vue b/src/uni_modules/uni-drawer/components/uni-drawer/uni-drawer.vue deleted file mode 100644 index 24715210..00000000 --- a/src/uni_modules/uni-drawer/components/uni-drawer/uni-drawer.vue +++ /dev/null @@ -1,183 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-drawer/package.json b/src/uni_modules/uni-drawer/package.json deleted file mode 100644 index dd056e4c..00000000 --- a/src/uni_modules/uni-drawer/package.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "id": "uni-drawer", - "displayName": "uni-drawer 抽屉", - "version": "1.2.1", - "description": "抽屉式导航,用于展示侧滑菜单,侧滑导航。", - "keywords": [ - "uni-ui", - "uniui", - "drawer", - "抽屉", - "侧滑导航" -], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "" - }, - "directories": { - "example": "../../temps/example_temps" - }, - "dcloudext": { - "category": [ - "前端组件", - "通用组件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" - }, - "uni_modules": { - "dependencies": ["uni-scss"], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y" - }, - "快应用": { - "华为": "u", - "联盟": "u" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} \ No newline at end of file diff --git a/src/uni_modules/uni-drawer/readme.md b/src/uni_modules/uni-drawer/readme.md deleted file mode 100644 index dcf6e6b2..00000000 --- a/src/uni_modules/uni-drawer/readme.md +++ /dev/null @@ -1,10 +0,0 @@ - - -## Drawer 抽屉 -> **组件名:uni-drawer** -> 代码块: `uDrawer` - -抽屉侧滑菜单。 - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-drawer) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 \ No newline at end of file diff --git a/src/uni_modules/uni-easyinput/changelog.md b/src/uni_modules/uni-easyinput/changelog.md deleted file mode 100644 index 1e8c6f91..00000000 --- a/src/uni_modules/uni-easyinput/changelog.md +++ /dev/null @@ -1,47 +0,0 @@ -## 1.1.0(2022-06-30) -- 新增 在 uni-forms 1.4.0 中使用可以在 blur 时校验内容 -- 新增 clear 事件,点击右侧叉号图标触发 -- 新增 change 事件 ,仅在输入框失去焦点或用户按下回车时触发 -- 优化 组件样式,组件获取焦点时高亮显示,图标颜色调整等 -- -## 1.0.5(2022-06-07) -- 优化 clearable 显示策略 -## 1.0.4(2022-06-07) -- 优化 clearable 显示策略 -## 1.0.3(2022-05-20) -- 修复 关闭图标某些情况下无法取消的bug -## 1.0.2(2022-04-12) -- 修复 默认值不生效的bug -## 1.0.1(2022-04-02) -- 修复 value不能为0的bug -## 1.0.0(2021-11-19) -- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) -- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-easyinput](https://uniapp.dcloud.io/component/uniui/uni-easyinput) -## 0.1.4(2021-08-20) -- 修复 在 uni-forms 的动态表单中默认值校验不通过的 bug -## 0.1.3(2021-08-11) -- 修复 在 uni-forms 中重置表单,错误信息无法清除的问题 -## 0.1.2(2021-07-30) -- 优化 vue3下事件警告的问题 -## 0.1.1 -- 优化 errorMessage 属性支持 Boolean 类型 -## 0.1.0(2021-07-13) -- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) -## 0.0.16(2021-06-29) -- 修复 confirmType 属性(仅 type="text" 生效)导致多行文本框无法换行的 bug -## 0.0.15(2021-06-21) -- 修复 passwordIcon 属性拼写错误的 bug -## 0.0.14(2021-06-18) -- 新增 passwordIcon 属性,当type=password时是否显示小眼睛图标 -- 修复 confirmType 属性不生效的问题 -## 0.0.13(2021-06-04) -- 修复 disabled 状态可清出内容的 bug -## 0.0.12(2021-05-12) -- 新增 组件示例地址 -## 0.0.11(2021-05-07) -- 修复 input-border 属性不生效的问题 -## 0.0.10(2021-04-30) -- 修复 ios 遮挡文字、显示一半的问题 -## 0.0.9(2021-02-05) -- 调整为uni_modules目录规范 -- 优化 兼容 nvue 页面 diff --git a/src/uni_modules/uni-easyinput/components/uni-easyinput/common.js b/src/uni_modules/uni-easyinput/components/uni-easyinput/common.js deleted file mode 100644 index df9abe1d..00000000 --- a/src/uni_modules/uni-easyinput/components/uni-easyinput/common.js +++ /dev/null @@ -1,56 +0,0 @@ -/** - * @desc 函数防抖 - * @param func 目标函数 - * @param wait 延迟执行毫秒数 - * @param immediate true - 立即执行, false - 延迟执行 - */ -export const debounce = function(func, wait = 1000, immediate = true) { - let timer; - console.log(1); - return function() { - console.log(123); - let context = this, - args = arguments; - if (timer) clearTimeout(timer); - if (immediate) { - let callNow = !timer; - timer = setTimeout(() => { - timer = null; - }, wait); - if (callNow) func.apply(context, args); - } else { - timer = setTimeout(() => { - func.apply(context, args); - }, wait) - } - } -} -/** - * @desc 函数节流 - * @param func 函数 - * @param wait 延迟执行毫秒数 - * @param type 1 使用表时间戳,在时间段开始的时候触发 2 使用表定时器,在时间段结束的时候触发 - */ -export const throttle = (func, wait = 1000, type = 1) => { - let previous = 0; - let timeout; - return function() { - let context = this; - let args = arguments; - if (type === 1) { - let now = Date.now(); - - if (now - previous > wait) { - func.apply(context, args); - previous = now; - } - } else if (type === 2) { - if (!timeout) { - timeout = setTimeout(() => { - timeout = null; - func.apply(context, args) - }, wait) - } - } - } -} diff --git a/src/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue b/src/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue deleted file mode 100644 index 5818d7fa..00000000 --- a/src/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue +++ /dev/null @@ -1,593 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-easyinput/package.json b/src/uni_modules/uni-easyinput/package.json deleted file mode 100644 index 3cc793e6..00000000 --- a/src/uni_modules/uni-easyinput/package.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "id": "uni-easyinput", - "displayName": "uni-easyinput 增强输入框", - "version": "1.1.0", - "description": "Easyinput 组件是对原生input组件的增强", - "keywords": [ - "uni-ui", - "uniui", - "input", - "uni-easyinput", - "输入框" -], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "" - }, - "directories": { - "example": "../../temps/example_temps" - }, - "dcloudext": { - "category": [ - "前端组件", - "通用组件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" - }, - "uni_modules": { - "dependencies": [ - "uni-scss", - "uni-icons" - ], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y" - }, - "快应用": { - "华为": "u", - "联盟": "u" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} \ No newline at end of file diff --git a/src/uni_modules/uni-easyinput/readme.md b/src/uni_modules/uni-easyinput/readme.md deleted file mode 100644 index f1faf8fb..00000000 --- a/src/uni_modules/uni-easyinput/readme.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### Easyinput 增强输入框 -> **组件名:uni-easyinput** -> 代码块: `uEasyinput` - - -easyinput 组件是对原生input组件的增强 ,是专门为配合表单组件[uni-forms](https://ext.dcloud.net.cn/plugin?id=2773)而设计的,easyinput 内置了边框,图标等,同时包含 input 所有功能 - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-easyinput) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 \ No newline at end of file diff --git a/src/uni_modules/uni-fab/changelog.md b/src/uni_modules/uni-fab/changelog.md deleted file mode 100644 index 24e26b16..00000000 --- a/src/uni_modules/uni-fab/changelog.md +++ /dev/null @@ -1,17 +0,0 @@ -## 1.2.2(2021-12-29) -- 更新 组件依赖 -## 1.2.1(2021-11-19) -- 修复 阴影颜色不正确的bug -## 1.2.0(2021-11-19) -- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) -- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-fab](https://uniapp.dcloud.io/component/uniui/uni-fab) -## 1.1.1(2021-11-09) -- 新增 提供组件设计资源,组件样式调整 -## 1.1.0(2021-07-30) -- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) -## 1.0.7(2021-05-12) -- 新增 组件示例地址 -## 1.0.6(2021-02-05) -- 调整为uni_modules目录规范 -- 优化 按钮背景色调整 -- 优化 兼容pc端 diff --git a/src/uni_modules/uni-fab/components/uni-fab/uni-fab.vue b/src/uni_modules/uni-fab/components/uni-fab/uni-fab.vue deleted file mode 100644 index bef97f11..00000000 --- a/src/uni_modules/uni-fab/components/uni-fab/uni-fab.vue +++ /dev/null @@ -1,475 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-fab/components/uni-fab/uni-fab.vue.bak b/src/uni_modules/uni-fab/components/uni-fab/uni-fab.vue.bak deleted file mode 100644 index 5adc72a8..00000000 --- a/src/uni_modules/uni-fab/components/uni-fab/uni-fab.vue.bak +++ /dev/null @@ -1,379 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-fab/package.json b/src/uni_modules/uni-fab/package.json deleted file mode 100644 index 0f27daa5..00000000 --- a/src/uni_modules/uni-fab/package.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "id": "uni-fab", - "displayName": "uni-fab 悬浮按钮", - "version": "1.2.2", - "description": "悬浮按钮 fab button ,点击可展开一个图标按钮菜单。", - "keywords": [ - "uni-ui", - "uniui", - "按钮", - "悬浮按钮", - "fab" -], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "" - }, - "directories": { - "example": "../../temps/example_temps" - }, - "dcloudext": { - "category": [ - "前端组件", - "通用组件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" - }, - "uni_modules": { - "dependencies": ["uni-scss","uni-icons"], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y" - }, - "快应用": { - "华为": "u", - "联盟": "u" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} diff --git a/src/uni_modules/uni-fab/readme.md b/src/uni_modules/uni-fab/readme.md deleted file mode 100644 index 9a444e88..00000000 --- a/src/uni_modules/uni-fab/readme.md +++ /dev/null @@ -1,9 +0,0 @@ -## Fab 悬浮按钮 -> **组件名:uni-fab** -> 代码块: `uFab` - - -点击可展开一个图形按钮菜单 - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-fab) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 \ No newline at end of file diff --git a/src/uni_modules/uni-fav/changelog.md b/src/uni_modules/uni-fav/changelog.md deleted file mode 100644 index d8a08d43..00000000 --- a/src/uni_modules/uni-fav/changelog.md +++ /dev/null @@ -1,19 +0,0 @@ -## 1.2.1(2022-05-30) -- 新增 stat 属性 ,是否开启uni统计功能 -## 1.2.0(2021-11-19) -- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) -- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-fav](https://uniapp.dcloud.io/component/uniui/uni-fav) -## 1.1.1(2021-08-24) -- 新增 支持国际化 -## 1.1.0(2021-07-13) -- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) -## 1.0.6(2021-05-12) -- 新增 组件示例地址 -## 1.0.5(2021-04-21) -- 优化 添加依赖 uni-icons, 导入后自动下载依赖 -## 1.0.4(2021-02-05) -- 优化 组件引用关系,通过uni_modules引用组件 -## 1.0.3(2021-02-05) -- 优化 组件引用关系,通过uni_modules引用组件 -## 1.0.2(2021-02-05) -- 调整为uni_modules目录规范 diff --git a/src/uni_modules/uni-fav/components/uni-fav/i18n/en.json b/src/uni_modules/uni-fav/components/uni-fav/i18n/en.json deleted file mode 100644 index 9a0759e0..00000000 --- a/src/uni_modules/uni-fav/components/uni-fav/i18n/en.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "uni-fav.collect": "collect", - "uni-fav.collected": "collected" -} diff --git a/src/uni_modules/uni-fav/components/uni-fav/i18n/index.js b/src/uni_modules/uni-fav/components/uni-fav/i18n/index.js deleted file mode 100644 index de7509c8..00000000 --- a/src/uni_modules/uni-fav/components/uni-fav/i18n/index.js +++ /dev/null @@ -1,8 +0,0 @@ -import en from './en.json' -import zhHans from './zh-Hans.json' -import zhHant from './zh-Hant.json' -export default { - en, - 'zh-Hans': zhHans, - 'zh-Hant': zhHant -} diff --git a/src/uni_modules/uni-fav/components/uni-fav/i18n/zh-Hans.json b/src/uni_modules/uni-fav/components/uni-fav/i18n/zh-Hans.json deleted file mode 100644 index 67c89bfc..00000000 --- a/src/uni_modules/uni-fav/components/uni-fav/i18n/zh-Hans.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "uni-fav.collect": "收藏", - "uni-fav.collected": "已收藏" -} diff --git a/src/uni_modules/uni-fav/components/uni-fav/i18n/zh-Hant.json b/src/uni_modules/uni-fav/components/uni-fav/i18n/zh-Hant.json deleted file mode 100644 index 67c89bfc..00000000 --- a/src/uni_modules/uni-fav/components/uni-fav/i18n/zh-Hant.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "uni-fav.collect": "收藏", - "uni-fav.collected": "已收藏" -} diff --git a/src/uni_modules/uni-fav/components/uni-fav/uni-fav.vue b/src/uni_modules/uni-fav/components/uni-fav/uni-fav.vue deleted file mode 100644 index d2c58df9..00000000 --- a/src/uni_modules/uni-fav/components/uni-fav/uni-fav.vue +++ /dev/null @@ -1,161 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-fav/package.json b/src/uni_modules/uni-fav/package.json deleted file mode 100644 index cc146971..00000000 --- a/src/uni_modules/uni-fav/package.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "id": "uni-fav", - "displayName": "uni-fav 收藏按钮", - "version": "1.2.1", - "description": " Fav 收藏组件,可自定义颜色、大小。", - "keywords": [ - "fav", - "uni-ui", - "uniui", - "收藏" -], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "" - }, - "directories": { - "example": "../../temps/example_temps" - }, - "dcloudext": { - "category": [ - "前端组件", - "通用组件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" - }, - "uni_modules": { - "dependencies": [ - "uni-scss", - "uni-icons" - ], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y" - }, - "快应用": { - "华为": "u", - "联盟": "u" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} diff --git a/src/uni_modules/uni-fav/readme.md b/src/uni_modules/uni-fav/readme.md deleted file mode 100644 index 4de125d2..00000000 --- a/src/uni_modules/uni-fav/readme.md +++ /dev/null @@ -1,10 +0,0 @@ - - -## Fav 收藏按钮 -> **组件名:uni-fav** -> 代码块: `uFav` - -用于收藏功能,可点击切换选中、不选中的状态。 - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-fav) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 \ No newline at end of file diff --git a/src/uni_modules/uni-file-picker/changelog.md b/src/uni_modules/uni-file-picker/changelog.md deleted file mode 100644 index 5c810268..00000000 --- a/src/uni_modules/uni-file-picker/changelog.md +++ /dev/null @@ -1,63 +0,0 @@ -## 1.0.2(2022-07-04) -- 修复 在uni-forms下样式不生效的bug -## 1.0.1(2021-11-23) -- 修复 参数为对象的情况下,url在某些情况显示错误的bug -## 1.0.0(2021-11-19) -- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) -- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-file-picker](https://uniapp.dcloud.io/component/uniui/uni-file-picker) -## 0.2.16(2021-11-08) -- 修复 传入空对象 ,显示错误的Bug -## 0.2.15(2021-08-30) -- 修复 return-type="object" 时且存在v-model时,无法删除文件的Bug -## 0.2.14(2021-08-23) -- 新增 参数中返回 fileID 字段 -## 0.2.13(2021-08-23) -- 修复 腾讯云传入fileID 不能回显的bug -- 修复 选择图片后,不能放大的问题 -## 0.2.12(2021-08-17) -- 修复 由于 0.2.11 版本引起的不能回显图片的Bug -## 0.2.11(2021-08-16) -- 新增 clearFiles(index) 方法,可以手动删除指定文件 -- 修复 v-model 值设为 null 报错的Bug -## 0.2.10(2021-08-13) -- 修复 return-type="object" 时,无法删除文件的Bug -## 0.2.9(2021-08-03) -- 修复 auto-upload 属性失效的Bug -## 0.2.8(2021-07-31) -- 修复 fileExtname属性不指定值报错的Bug -## 0.2.7(2021-07-31) -- 修复 在某种场景下图片不回显的Bug -## 0.2.6(2021-07-30) -- 修复 return-type为object下,返回值不正确的Bug -## 0.2.5(2021-07-30) -- 修复(重要) H5 平台下如果和uni-forms组件一同使用导致页面卡死的问题 -## 0.2.3(2021-07-28) -- 优化 调整示例代码 -## 0.2.2(2021-07-27) -- 修复 vue3 下赋值错误的Bug -- 优化 h5平台下上传文件导致页面卡死的问题 -## 0.2.0(2021-07-13) -- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) -## 0.1.1(2021-07-02) -- 修复 sourceType 缺少默认值导致 ios 无法选择文件 -## 0.1.0(2021-06-30) -- 优化 解耦与uniCloud的强绑定关系 ,如不绑定服务空间,默认autoUpload为false且不可更改 -## 0.0.11(2021-06-30) -- 修复 由 0.0.10 版本引发的 returnType 属性失效的问题 -## 0.0.10(2021-06-29) -- 优化 文件上传后进度条消失时机 -## 0.0.9(2021-06-29) -- 修复 在uni-forms 中,删除文件 ,获取的值不对的Bug -## 0.0.8(2021-06-15) -- 修复 删除文件时无法触发 v-model 的Bug -## 0.0.7(2021-05-12) -- 新增 组件示例地址 -## 0.0.6(2021-04-09) -- 修复 选择的文件非 file-extname 字段指定的扩展名报错的Bug -## 0.0.5(2021-04-09) -- 优化 更新组件示例 -## 0.0.4(2021-04-09) -- 优化 file-extname 字段支持字符串写法,多个扩展名需要用逗号分隔 -## 0.0.3(2021-02-05) -- 调整为uni_modules目录规范 -- 修复 微信小程序不指定 fileExtname 属性选择失败的Bug diff --git a/src/uni_modules/uni-file-picker/components/uni-file-picker/choose-and-upload-file.js b/src/uni_modules/uni-file-picker/components/uni-file-picker/choose-and-upload-file.js deleted file mode 100644 index 24a07f57..00000000 --- a/src/uni_modules/uni-file-picker/components/uni-file-picker/choose-and-upload-file.js +++ /dev/null @@ -1,224 +0,0 @@ -'use strict'; - -const ERR_MSG_OK = 'chooseAndUploadFile:ok'; -const ERR_MSG_FAIL = 'chooseAndUploadFile:fail'; - -function chooseImage(opts) { - const { - count, - sizeType = ['original', 'compressed'], - sourceType = ['album', 'camera'], - extension - } = opts - return new Promise((resolve, reject) => { - uni.chooseImage({ - count, - sizeType, - sourceType, - extension, - success(res) { - resolve(normalizeChooseAndUploadFileRes(res, 'image')); - }, - fail(res) { - reject({ - errMsg: res.errMsg.replace('chooseImage:fail', ERR_MSG_FAIL), - }); - }, - }); - }); -} - -function chooseVideo(opts) { - const { - camera, - compressed, - maxDuration, - sourceType = ['album', 'camera'], - extension - } = opts; - return new Promise((resolve, reject) => { - uni.chooseVideo({ - camera, - compressed, - maxDuration, - sourceType, - extension, - success(res) { - const { - tempFilePath, - duration, - size, - height, - width - } = res; - resolve(normalizeChooseAndUploadFileRes({ - errMsg: 'chooseVideo:ok', - tempFilePaths: [tempFilePath], - tempFiles: [ - { - name: (res.tempFile && res.tempFile.name) || '', - path: tempFilePath, - size, - type: (res.tempFile && res.tempFile.type) || '', - width, - height, - duration, - fileType: 'video', - cloudPath: '', - }, ], - }, 'video')); - }, - fail(res) { - reject({ - errMsg: res.errMsg.replace('chooseVideo:fail', ERR_MSG_FAIL), - }); - }, - }); - }); -} - -function chooseAll(opts) { - const { - count, - extension - } = opts; - return new Promise((resolve, reject) => { - let chooseFile = uni.chooseFile; - if (typeof wx !== 'undefined' && - typeof wx.chooseMessageFile === 'function') { - chooseFile = wx.chooseMessageFile; - } - if (typeof chooseFile !== 'function') { - return reject({ - errMsg: ERR_MSG_FAIL + ' 请指定 type 类型,该平台仅支持选择 image 或 video。', - }); - } - chooseFile({ - type: 'all', - count, - extension, - success(res) { - resolve(normalizeChooseAndUploadFileRes(res)); - }, - fail(res) { - reject({ - errMsg: res.errMsg.replace('chooseFile:fail', ERR_MSG_FAIL), - }); - }, - }); - }); -} - -function normalizeChooseAndUploadFileRes(res, fileType) { - res.tempFiles.forEach((item, index) => { - if (!item.name) { - item.name = item.path.substring(item.path.lastIndexOf('/') + 1); - } - if (fileType) { - item.fileType = fileType; - } - item.cloudPath = - Date.now() + '_' + index + item.name.substring(item.name.lastIndexOf('.')); - }); - if (!res.tempFilePaths) { - res.tempFilePaths = res.tempFiles.map((file) => file.path); - } - return res; -} - -function uploadCloudFiles(files, max = 5, onUploadProgress) { - files = JSON.parse(JSON.stringify(files)) - const len = files.length - let count = 0 - let self = this - return new Promise(resolve => { - while (count < max) { - next() - } - - function next() { - let cur = count++ - if (cur >= len) { - !files.find(item => !item.url && !item.errMsg) && resolve(files) - return - } - const fileItem = files[cur] - const index = self.files.findIndex(v => v.uuid === fileItem.uuid) - fileItem.url = '' - delete fileItem.errMsg - - uniCloud - .uploadFile({ - filePath: fileItem.path, - cloudPath: fileItem.cloudPath, - fileType: fileItem.fileType, - onUploadProgress: res => { - res.index = index - onUploadProgress && onUploadProgress(res) - } - }) - .then(res => { - fileItem.url = res.fileID - fileItem.index = index - if (cur < len) { - next() - } - }) - .catch(res => { - fileItem.errMsg = res.errMsg || res.message - fileItem.index = index - if (cur < len) { - next() - } - }) - } - }) -} - - - - - -function uploadFiles(choosePromise, { - onChooseFile, - onUploadProgress -}) { - return choosePromise - .then((res) => { - if (onChooseFile) { - const customChooseRes = onChooseFile(res); - if (typeof customChooseRes !== 'undefined') { - return Promise.resolve(customChooseRes).then((chooseRes) => typeof chooseRes === 'undefined' ? - res : chooseRes); - } - } - return res; - }) - .then((res) => { - if (res === false) { - return { - errMsg: ERR_MSG_OK, - tempFilePaths: [], - tempFiles: [], - }; - } - return res - }) -} - -function chooseAndUploadFile(opts = { - type: 'all' -}) { - if (opts.type === 'image') { - return uploadFiles(chooseImage(opts), opts); - } - else if (opts.type === 'video') { - return uploadFiles(chooseVideo(opts), opts); - } - return uploadFiles(chooseAll(opts), opts); -} - -export { - chooseAndUploadFile, - uploadCloudFiles -}; diff --git a/src/uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.vue b/src/uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.vue deleted file mode 100644 index 0928a41a..00000000 --- a/src/uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.vue +++ /dev/null @@ -1,656 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-file-picker/components/uni-file-picker/upload-file.vue b/src/uni_modules/uni-file-picker/components/uni-file-picker/upload-file.vue deleted file mode 100644 index 625d92ec..00000000 --- a/src/uni_modules/uni-file-picker/components/uni-file-picker/upload-file.vue +++ /dev/null @@ -1,325 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-file-picker/components/uni-file-picker/upload-image.vue b/src/uni_modules/uni-file-picker/components/uni-file-picker/upload-image.vue deleted file mode 100644 index 2a29bc23..00000000 --- a/src/uni_modules/uni-file-picker/components/uni-file-picker/upload-image.vue +++ /dev/null @@ -1,292 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-file-picker/components/uni-file-picker/utils.js b/src/uni_modules/uni-file-picker/components/uni-file-picker/utils.js deleted file mode 100644 index 60aaa3e4..00000000 --- a/src/uni_modules/uni-file-picker/components/uni-file-picker/utils.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * 获取文件名和后缀 - * @param {String} name - */ -export const get_file_ext = (name) => { - const last_len = name.lastIndexOf('.') - const len = name.length - return { - name: name.substring(0, last_len), - ext: name.substring(last_len + 1, len) - } -} - -/** - * 获取扩展名 - * @param {Array} fileExtname - */ -export const get_extname = (fileExtname) => { - if (!Array.isArray(fileExtname)) { - let extname = fileExtname.replace(/(\[|\])/g, '') - return extname.split(',') - } else { - return fileExtname - } - return [] -} - -/** - * 获取文件和检测是否可选 - */ -export const get_files_and_is_max = (res, _extname) => { - let filePaths = [] - let files = [] - if(!_extname || _extname.length === 0){ - return { - filePaths, - files - } - } - res.tempFiles.forEach(v => { - let fileFullName = get_file_ext(v.name) - const extname = fileFullName.ext.toLowerCase() - if (_extname.indexOf(extname) !== -1) { - files.push(v) - filePaths.push(v.path) - } - }) - if (files.length !== res.tempFiles.length) { - uni.showToast({ - title: `当前选择了${res.tempFiles.length}个文件 ,${res.tempFiles.length - files.length} 个文件格式不正确`, - icon: 'none', - duration: 5000 - }) - } - - return { - filePaths, - files - } -} - - -/** - * 获取图片信息 - * @param {Object} filepath - */ -export const get_file_info = (filepath) => { - return new Promise((resolve, reject) => { - uni.getImageInfo({ - src: filepath, - success(res) { - resolve(res) - }, - fail(err) { - reject(err) - } - }) - }) -} -/** - * 获取封装数据 - */ -export const get_file_data = async (files, type = 'image') => { - // 最终需要上传数据库的数据 - let fileFullName = get_file_ext(files.name) - const extname = fileFullName.ext.toLowerCase() - let filedata = { - name: files.name, - uuid: files.uuid, - extname: extname || '', - cloudPath: files.cloudPath, - fileType: files.fileType, - url: files.path || files.path, - size: files.size, //单位是字节 - image: {}, - path: files.path, - video: {} - } - if (type === 'image') { - const imageinfo = await get_file_info(files.path) - delete filedata.video - filedata.image.width = imageinfo.width - filedata.image.height = imageinfo.height - filedata.image.location = imageinfo.path - } else { - delete filedata.image - } - return filedata -} diff --git a/src/uni_modules/uni-file-picker/package.json b/src/uni_modules/uni-file-picker/package.json deleted file mode 100644 index 08bd66ec..00000000 --- a/src/uni_modules/uni-file-picker/package.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "id": "uni-file-picker", - "displayName": "uni-file-picker 文件选择上传", - "version": "1.0.2", - "description": "文件选择上传组件,可以选择图片、视频等任意文件并上传到当前绑定的服务空间", - "keywords": [ - "uni-ui", - "uniui", - "图片上传", - "文件上传" -], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "" - }, - "directories": { - "example": "../../temps/example_temps" - }, - "dcloudext": { - "category": [ - "前端组件", - "通用组件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" - }, - "uni_modules": { - "dependencies": ["uni-scss"], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "App": { - "app-vue": "y", - "app-nvue": "n" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y" - }, - "快应用": { - "华为": "u", - "联盟": "u" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} diff --git a/src/uni_modules/uni-file-picker/readme.md b/src/uni_modules/uni-file-picker/readme.md deleted file mode 100644 index c8399a5e..00000000 --- a/src/uni_modules/uni-file-picker/readme.md +++ /dev/null @@ -1,11 +0,0 @@ - -## FilePicker 文件选择上传 - -> **组件名:uni-file-picker** -> 代码块: `uFilePicker` - - -文件选择上传组件,可以选择图片、视频等任意文件并上传到当前绑定的服务空间 - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-file-picker) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 \ No newline at end of file diff --git a/src/uni_modules/uni-forms/changelog.md b/src/uni_modules/uni-forms/changelog.md deleted file mode 100644 index 5a4bb79a..00000000 --- a/src/uni_modules/uni-forms/changelog.md +++ /dev/null @@ -1,86 +0,0 @@ -## 1.4.6(2022-07-13) -- 修复 model 需要校验的值没有声明对应字段时,导致第一次不触发校验的bug -## 1.4.5(2022-07-05) -- 新增 更多表单示例 -- 优化 子表单组件过期提示的问题 -- 优化 子表单组件uni-datetime-picker、uni-data-select、uni-data-picker的显示样式 -## 1.4.4(2022-07-04) -- 更新 删除组件日志 -## 1.4.3(2022-07-04) -- 修复 由 1.4.0 引发的 label 插槽不生效的bug -## 1.4.2(2022-07-04) -- 修复 子组件找不到 setValue 报错的bug -## 1.4.1(2022-07-04) -- 修复 uni-data-picker 在 uni-forms-item 中报错的bug -- 修复 uni-data-picker 在 uni-forms-item 中宽度不正确的bug -## 1.4.0(2022-06-30) -- 【重要】组件逻辑重构,部分用法用旧版本不兼容,请注意兼容问题 -- 【重要】组件使用 Provide/Inject 方式注入依赖,提供了自定义表单组件调用 uni-forms 校验表单的能力 -- 新增 model 属性,等同于原 value/modelValue 属性,旧属性即将废弃 -- 新增 validateTrigger 属性的 blur 值,仅 uni-easyinput 生效 -- 新增 onFieldChange 方法,可以对子表单进行校验,可替代binddata方法 -- 新增 子表单的 setRules 方法,配合自定义校验函数使用 -- 新增 uni-forms-item 的 setRules 方法,配置动态表单使用可动态更新校验规则 -- 优化 动态表单校验方式,废弃拼接name的方式 -## 1.3.3(2022-06-22) -- 修复 表单校验顺序无序问题 -## 1.3.2(2021-12-09) -- -## 1.3.1(2021-11-19) -- 修复 label 插槽不生效的bug -## 1.3.0(2021-11-19) -- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) -- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-forms](https://uniapp.dcloud.io/component/uniui/uni-forms) -## 1.2.7(2021-08-13) -- 修复 没有添加校验规则的字段依然报错的Bug -## 1.2.6(2021-08-11) -- 修复 重置表单错误信息无法清除的问题 -## 1.2.5(2021-08-11) -- 优化 组件文档 -## 1.2.4(2021-08-11) -- 修复 表单验证只生效一次的问题 -## 1.2.3(2021-07-30) -- 优化 vue3下事件警告的问题 -## 1.2.2(2021-07-26) -- 修复 vue2 下条件编译导致destroyed生命周期失效的Bug -- 修复 1.2.1 引起的示例在小程序平台报错的Bug -## 1.2.1(2021-07-22) -- 修复 动态校验表单,默认值为空的情况下校验失效的Bug -- 修复 不指定name属性时,运行报错的Bug -- 优化 label默认宽度从65调整至70,使required为true且四字时不换行 -- 优化 组件示例,新增动态校验示例代码 -- 优化 组件文档,使用方式更清晰 -## 1.2.0(2021-07-13) -- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) -## 1.1.2(2021-06-25) -- 修复 pattern 属性在微信小程序平台无效的问题 -## 1.1.1(2021-06-22) -- 修复 validate-trigger属性为submit且err-show-type属性为toast时不能弹出的Bug -## 1.1.0(2021-06-22) -- 修复 只写setRules方法而导致校验不生效的Bug -- 修复 由上个办法引发的错误提示文字错位的Bug -## 1.0.48(2021-06-21) -- 修复 不设置 label 属性 ,无法设置label插槽的问题 -## 1.0.47(2021-06-21) -- 修复 不设置label属性,label-width属性不生效的bug -- 修复 setRules 方法与rules属性冲突的问题 -## 1.0.46(2021-06-04) -- 修复 动态删减数据导致报错的问题 -## 1.0.45(2021-06-04) -- 新增 modelValue 属性 ,value 即将废弃 -## 1.0.44(2021-06-02) -- 新增 uni-forms-item 可以设置单独的 rules -- 新增 validate 事件增加 keepitem 参数,可以选择那些字段不过滤 -- 优化 submit 事件重命名为 validate -## 1.0.43(2021-05-12) -- 新增 组件示例地址 -## 1.0.42(2021-04-30) -- 修复 自定义检验器失效的问题 -## 1.0.41(2021-03-05) -- 更新 校验器 -- 修复 表单规则设置类型为 number 的情况下,值为0校验失败的Bug -## 1.0.40(2021-03-04) -- 修复 动态显示uni-forms-item的情况下,submit 方法获取值错误的Bug -## 1.0.39(2021-02-05) -- 调整为uni_modules目录规范 -- 修复 校验器传入 int 等类型 ,返回String类型的Bug diff --git a/src/uni_modules/uni-forms/components/uni-forms-item/uni-forms-item.vue b/src/uni_modules/uni-forms/components/uni-forms-item/uni-forms-item.vue deleted file mode 100644 index 250ed875..00000000 --- a/src/uni_modules/uni-forms/components/uni-forms-item/uni-forms-item.vue +++ /dev/null @@ -1,627 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-forms/components/uni-forms/uni-forms.vue b/src/uni_modules/uni-forms/components/uni-forms/uni-forms.vue deleted file mode 100644 index ed2f6d97..00000000 --- a/src/uni_modules/uni-forms/components/uni-forms/uni-forms.vue +++ /dev/null @@ -1,397 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-forms/components/uni-forms/utils.js b/src/uni_modules/uni-forms/components/uni-forms/utils.js deleted file mode 100644 index 6da24216..00000000 --- a/src/uni_modules/uni-forms/components/uni-forms/utils.js +++ /dev/null @@ -1,293 +0,0 @@ -/** - * 简单处理对象拷贝 - * @param {Obejct} 被拷贝对象 - * @@return {Object} 拷贝对象 - */ -export const deepCopy = (val) => { - return JSON.parse(JSON.stringify(val)) -} -/** - * 过滤数字类型 - * @param {String} format 数字类型 - * @@return {Boolean} 返回是否为数字类型 - */ -export const typeFilter = (format) => { - return format === 'int' || format === 'double' || format === 'number' || format === 'timestamp'; -} - -/** - * 把 value 转换成指定的类型,用于处理初始值,原因是初始值需要入库不能为 undefined - * @param {String} key 字段名 - * @param {any} value 字段值 - * @param {Object} rules 表单校验规则 - */ -export const getValue = (key, value, rules) => { - const isRuleNumType = rules.find(val => val.format && typeFilter(val.format)); - const isRuleBoolType = rules.find(val => (val.format && val.format === 'boolean') || val.format === 'bool'); - // 输入类型为 number - if (!!isRuleNumType) { - if (!value && value !== 0) { - value = null - } else { - value = isNumber(Number(value)) ? Number(value) : value - } - } - - // 输入类型为 boolean - if (!!isRuleBoolType) { - value = isBoolean(value) ? value : false - } - - return value; -} - -/** - * 获取表单数据 - * @param {String|Array} name 真实名称,需要使用 realName 获取 - * @param {Object} data 原始数据 - * @param {any} value 需要设置的值 - */ -export const setDataValue = (field, formdata, value) => { - formdata[field] = value - return value || '' -} - -/** - * 获取表单数据 - * @param {String|Array} field 真实名称,需要使用 realName 获取 - * @param {Object} data 原始数据 - */ -export const getDataValue = (field, data) => { - return objGet(data, field) -} - -/** - * 获取表单类型 - * @param {String|Array} field 真实名称,需要使用 realName 获取 - */ -export const getDataValueType = (field, data) => { - const value = getDataValue(field, data) - return { - type: type(value), - value - } -} - -/** - * 获取表单可用的真实name - * @param {String|Array} name 表单name - * @@return {String} 表单可用的真实name - */ -export const realName = (name, data = {}) => { - const base_name = _basePath(name) - if (typeof base_name === 'object' && Array.isArray(base_name) && base_name.length > 1) { - const realname = base_name.reduce((a, b) => a += `#${b}`, '_formdata_') - return realname - } - return base_name[0] || name -} - -/** - * 判断是否表单可用的真实name - * @param {String|Array} name 表单name - * @@return {String} 表单可用的真实name - */ -export const isRealName = (name) => { - const reg = /^_formdata_#*/ - return reg.test(name) -} - -/** - * 获取表单数据的原始格式 - * @@return {Object|Array} object 需要解析的数据 - */ -export const rawData = (object = {}, name) => { - let newData = JSON.parse(JSON.stringify(object)) - let formData = {} - for(let i in newData){ - let path = name2arr(i) - objSet(formData,path,newData[i]) - } - return formData -} - -/** - * 真实name还原为 array - * @param {*} name - */ -export const name2arr = (name) => { - let field = name.replace('_formdata_#', '') - field = field.split('#').map(v => (isNumber(v) ? Number(v) : v)) - return field -} - -/** - * 对象中设置值 - * @param {Object|Array} object 源数据 - * @param {String| Array} path 'a.b.c' 或 ['a',0,'b','c'] - * @param {String} value 需要设置的值 - */ -export const objSet = (object, path, value) => { - if (typeof object !== 'object') return object; - _basePath(path).reduce((o, k, i, _) => { - if (i === _.length - 1) { - // 若遍历结束直接赋值 - o[k] = value - return null - } else if (k in o) { - // 若存在对应路径,则返回找到的对象,进行下一次遍历 - return o[k] - } else { - // 若不存在对应路径,则创建对应对象,若下一路径是数字,新对象赋值为空数组,否则赋值为空对象 - o[k] = /^[0-9]{1,}$/.test(_[i + 1]) ? [] : {} - return o[k] - } - }, object) - // 返回object - return object; -} - -// 处理 path, path有三种形式:'a[0].b.c'、'a.0.b.c' 和 ['a','0','b','c'],需要统一处理成数组,便于后续使用 -function _basePath(path) { - // 若是数组,则直接返回 - if (Array.isArray(path)) return path - // 若有 '[',']',则替换成将 '[' 替换成 '.',去掉 ']' - return path.replace(/\[/g, '.').replace(/\]/g, '').split('.') -} - -/** - * 从对象中获取值 - * @param {Object|Array} object 源数据 - * @param {String| Array} path 'a.b.c' 或 ['a',0,'b','c'] - * @param {String} defaultVal 如果无法从调用链中获取值的默认值 - */ -export const objGet = (object, path, defaultVal = 'undefined') => { - // 先将path处理成统一格式 - let newPath = _basePath(path) - // 递归处理,返回最后结果 - let val = newPath.reduce((o, k) => { - return (o || {})[k] - }, object); - return !val || val !== undefined ? val : defaultVal -} - - -/** - * 是否为 number 类型 - * @param {any} num 需要判断的值 - * @return {Boolean} 是否为 number - */ -export const isNumber = (num) => { - return !isNaN(Number(num)) -} - -/** - * 是否为 boolean 类型 - * @param {any} bool 需要判断的值 - * @return {Boolean} 是否为 boolean - */ -export const isBoolean = (bool) => { - return (typeof bool === 'boolean') -} -/** - * 是否有必填字段 - * @param {Object} rules 规则 - * @return {Boolean} 是否有必填字段 - */ -export const isRequiredField = (rules) => { - let isNoField = false; - for (let i = 0; i < rules.length; i++) { - const ruleData = rules[i]; - if (ruleData.required) { - isNoField = true; - break; - } - } - return isNoField; -} - - -/** - * 获取数据类型 - * @param {Any} obj 需要获取数据类型的值 - */ -export const type = (obj) => { - var class2type = {}; - - // 生成class2type映射 - "Boolean Number String Function Array Date RegExp Object Error".split(" ").map(function(item, index) { - class2type["[object " + item + "]"] = item.toLowerCase(); - }) - if (obj == null) { - return obj + ""; - } - return typeof obj === "object" || typeof obj === "function" ? - class2type[Object.prototype.toString.call(obj)] || "object" : - typeof obj; -} - -/** - * 判断两个值是否相等 - * @param {any} a 值 - * @param {any} b 值 - * @return {Boolean} 是否相等 - */ -export const isEqual = (a, b) => { - //如果a和b本来就全等 - if (a === b) { - //判断是否为0和-0 - return a !== 0 || 1 / a === 1 / b; - } - //判断是否为null和undefined - if (a == null || b == null) { - return a === b; - } - //接下来判断a和b的数据类型 - var classNameA = toString.call(a), - classNameB = toString.call(b); - //如果数据类型不相等,则返回false - if (classNameA !== classNameB) { - return false; - } - //如果数据类型相等,再根据不同数据类型分别判断 - switch (classNameA) { - case '[object RegExp]': - case '[object String]': - //进行字符串转换比较 - return '' + a === '' + b; - case '[object Number]': - //进行数字转换比较,判断是否为NaN - if (+a !== +a) { - return +b !== +b; - } - //判断是否为0或-0 - return +a === 0 ? 1 / +a === 1 / b : +a === +b; - case '[object Date]': - case '[object Boolean]': - return +a === +b; - } - //如果是对象类型 - if (classNameA == '[object Object]') { - //获取a和b的属性长度 - var propsA = Object.getOwnPropertyNames(a), - propsB = Object.getOwnPropertyNames(b); - if (propsA.length != propsB.length) { - return false; - } - for (var i = 0; i < propsA.length; i++) { - var propName = propsA[i]; - //如果对应属性对应值不相等,则返回false - if (a[propName] !== b[propName]) { - return false; - } - } - return true; - } - //如果是数组类型 - if (classNameA == '[object Array]') { - if (a.toString() == b.toString()) { - return true; - } - return false; - } -} diff --git a/src/uni_modules/uni-forms/components/uni-forms/validate.js b/src/uni_modules/uni-forms/components/uni-forms/validate.js deleted file mode 100644 index 69a70db9..00000000 --- a/src/uni_modules/uni-forms/components/uni-forms/validate.js +++ /dev/null @@ -1,486 +0,0 @@ -var pattern = { - email: /^\S+?@\S+?\.\S+?$/, - idcard: /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/, - url: new RegExp( - "^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$", - 'i') -}; - -const FORMAT_MAPPING = { - "int": 'integer', - "bool": 'boolean', - "double": 'number', - "long": 'number', - "password": 'string' - // "fileurls": 'array' -} - -function formatMessage(args, resources = '') { - var defaultMessage = ['label'] - defaultMessage.forEach((item) => { - if (args[item] === undefined) { - args[item] = '' - } - }) - - let str = resources - for (let key in args) { - let reg = new RegExp('{' + key + '}') - str = str.replace(reg, args[key]) - } - return str -} - -function isEmptyValue(value, type) { - if (value === undefined || value === null) { - return true; - } - - if (typeof value === 'string' && !value) { - return true; - } - - if (Array.isArray(value) && !value.length) { - return true; - } - - if (type === 'object' && !Object.keys(value).length) { - return true; - } - - return false; -} - -const types = { - integer(value) { - return types.number(value) && parseInt(value, 10) === value; - }, - string(value) { - return typeof value === 'string'; - }, - number(value) { - if (isNaN(value)) { - return false; - } - return typeof value === 'number'; - }, - "boolean": function(value) { - return typeof value === 'boolean'; - }, - "float": function(value) { - return types.number(value) && !types.integer(value); - }, - array(value) { - return Array.isArray(value); - }, - object(value) { - return typeof value === 'object' && !types.array(value); - }, - date(value) { - return value instanceof Date; - }, - timestamp(value) { - if (!this.integer(value) || Math.abs(value).toString().length > 16) { - return false - } - return true; - }, - file(value) { - return typeof value.url === 'string'; - }, - email(value) { - return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255; - }, - url(value) { - return typeof value === 'string' && !!value.match(pattern.url); - }, - pattern(reg, value) { - try { - return new RegExp(reg).test(value); - } catch (e) { - return false; - } - }, - method(value) { - return typeof value === 'function'; - }, - idcard(value) { - return typeof value === 'string' && !!value.match(pattern.idcard); - }, - 'url-https'(value) { - return this.url(value) && value.startsWith('https://'); - }, - 'url-scheme'(value) { - return value.startsWith('://'); - }, - 'url-web'(value) { - return false; - } -} - -class RuleValidator { - - constructor(message) { - this._message = message - } - - async validateRule(fieldKey, fieldValue, value, data, allData) { - var result = null - - let rules = fieldValue.rules - - let hasRequired = rules.findIndex((item) => { - return item.required - }) - if (hasRequired < 0) { - if (value === null || value === undefined) { - return result - } - if (typeof value === 'string' && !value.length) { - return result - } - } - - var message = this._message - - if (rules === undefined) { - return message['default'] - } - - for (var i = 0; i < rules.length; i++) { - let rule = rules[i] - let vt = this._getValidateType(rule) - - Object.assign(rule, { - label: fieldValue.label || `["${fieldKey}"]` - }) - - if (RuleValidatorHelper[vt]) { - result = RuleValidatorHelper[vt](rule, value, message) - if (result != null) { - break - } - } - - if (rule.validateExpr) { - let now = Date.now() - let resultExpr = rule.validateExpr(value, allData, now) - if (resultExpr === false) { - result = this._getMessage(rule, rule.errorMessage || this._message['default']) - break - } - } - - if (rule.validateFunction) { - result = await this.validateFunction(rule, value, data, allData, vt) - if (result !== null) { - break - } - } - } - - if (result !== null) { - result = message.TAG + result - } - - return result - } - - async validateFunction(rule, value, data, allData, vt) { - let result = null - try { - let callbackMessage = null - const res = await rule.validateFunction(rule, value, allData || data, (message) => { - callbackMessage = message - }) - if (callbackMessage || (typeof res === 'string' && res) || res === false) { - result = this._getMessage(rule, callbackMessage || res, vt) - } - } catch (e) { - result = this._getMessage(rule, e.message, vt) - } - return result - } - - _getMessage(rule, message, vt) { - return formatMessage(rule, message || rule.errorMessage || this._message[vt] || message['default']) - } - - _getValidateType(rule) { - var result = '' - if (rule.required) { - result = 'required' - } else if (rule.format) { - result = 'format' - } else if (rule.arrayType) { - result = 'arrayTypeFormat' - } else if (rule.range) { - result = 'range' - } else if (rule.maximum !== undefined || rule.minimum !== undefined) { - result = 'rangeNumber' - } else if (rule.maxLength !== undefined || rule.minLength !== undefined) { - result = 'rangeLength' - } else if (rule.pattern) { - result = 'pattern' - } else if (rule.validateFunction) { - result = 'validateFunction' - } - return result - } -} - -const RuleValidatorHelper = { - required(rule, value, message) { - if (rule.required && isEmptyValue(value, rule.format || typeof value)) { - return formatMessage(rule, rule.errorMessage || message.required); - } - - return null - }, - - range(rule, value, message) { - const { - range, - errorMessage - } = rule; - - let list = new Array(range.length); - for (let i = 0; i < range.length; i++) { - const item = range[i]; - if (types.object(item) && item.value !== undefined) { - list[i] = item.value; - } else { - list[i] = item; - } - } - - let result = false - if (Array.isArray(value)) { - result = (new Set(value.concat(list)).size === list.length); - } else { - if (list.indexOf(value) > -1) { - result = true; - } - } - - if (!result) { - return formatMessage(rule, errorMessage || message['enum']); - } - - return null - }, - - rangeNumber(rule, value, message) { - if (!types.number(value)) { - return formatMessage(rule, rule.errorMessage || message.pattern.mismatch); - } - - let { - minimum, - maximum, - exclusiveMinimum, - exclusiveMaximum - } = rule; - let min = exclusiveMinimum ? value <= minimum : value < minimum; - let max = exclusiveMaximum ? value >= maximum : value > maximum; - - if (minimum !== undefined && min) { - return formatMessage(rule, rule.errorMessage || message['number'][exclusiveMinimum ? - 'exclusiveMinimum' : 'minimum' - ]) - } else if (maximum !== undefined && max) { - return formatMessage(rule, rule.errorMessage || message['number'][exclusiveMaximum ? - 'exclusiveMaximum' : 'maximum' - ]) - } else if (minimum !== undefined && maximum !== undefined && (min || max)) { - return formatMessage(rule, rule.errorMessage || message['number'].range) - } - - return null - }, - - rangeLength(rule, value, message) { - if (!types.string(value) && !types.array(value)) { - return formatMessage(rule, rule.errorMessage || message.pattern.mismatch); - } - - let min = rule.minLength; - let max = rule.maxLength; - let val = value.length; - - if (min !== undefined && val < min) { - return formatMessage(rule, rule.errorMessage || message['length'].minLength) - } else if (max !== undefined && val > max) { - return formatMessage(rule, rule.errorMessage || message['length'].maxLength) - } else if (min !== undefined && max !== undefined && (val < min || val > max)) { - return formatMessage(rule, rule.errorMessage || message['length'].range) - } - - return null - }, - - pattern(rule, value, message) { - if (!types['pattern'](rule.pattern, value)) { - return formatMessage(rule, rule.errorMessage || message.pattern.mismatch); - } - - return null - }, - - format(rule, value, message) { - var customTypes = Object.keys(types); - var format = FORMAT_MAPPING[rule.format] ? FORMAT_MAPPING[rule.format] : (rule.format || rule.arrayType); - - if (customTypes.indexOf(format) > -1) { - if (!types[format](value)) { - return formatMessage(rule, rule.errorMessage || message.typeError); - } - } - - return null - }, - - arrayTypeFormat(rule, value, message) { - if (!Array.isArray(value)) { - return formatMessage(rule, rule.errorMessage || message.typeError); - } - - for (let i = 0; i < value.length; i++) { - const element = value[i]; - let formatResult = this.format(rule, element, message) - if (formatResult !== null) { - return formatResult - } - } - - return null - } -} - -class SchemaValidator extends RuleValidator { - - constructor(schema, options) { - super(SchemaValidator.message); - - this._schema = schema - this._options = options || null - } - - updateSchema(schema) { - this._schema = schema - } - - async validate(data, allData) { - let result = this._checkFieldInSchema(data) - if (!result) { - result = await this.invokeValidate(data, false, allData) - } - return result.length ? result[0] : null - } - - async validateAll(data, allData) { - let result = this._checkFieldInSchema(data) - if (!result) { - result = await this.invokeValidate(data, true, allData) - } - return result - } - - async validateUpdate(data, allData) { - let result = this._checkFieldInSchema(data) - if (!result) { - result = await this.invokeValidateUpdate(data, false, allData) - } - return result.length ? result[0] : null - } - - async invokeValidate(data, all, allData) { - let result = [] - let schema = this._schema - for (let key in schema) { - let value = schema[key] - let errorMessage = await this.validateRule(key, value, data[key], data, allData) - if (errorMessage != null) { - result.push({ - key, - errorMessage - }) - if (!all) break - } - } - return result - } - - async invokeValidateUpdate(data, all, allData) { - let result = [] - for (let key in data) { - let errorMessage = await this.validateRule(key, this._schema[key], data[key], data, allData) - if (errorMessage != null) { - result.push({ - key, - errorMessage - }) - if (!all) break - } - } - return result - } - - _checkFieldInSchema(data) { - var keys = Object.keys(data) - var keys2 = Object.keys(this._schema) - if (new Set(keys.concat(keys2)).size === keys2.length) { - return '' - } - - var noExistFields = keys.filter((key) => { - return keys2.indexOf(key) < 0; - }) - var errorMessage = formatMessage({ - field: JSON.stringify(noExistFields) - }, SchemaValidator.message.TAG + SchemaValidator.message['defaultInvalid']) - return [{ - key: 'invalid', - errorMessage - }] - } -} - -function message() { - return { - TAG: "", - default: '验证错误', - defaultInvalid: '提交的字段{field}在数据库中并不存在', - validateFunction: '验证无效', - required: '{label}必填', - 'enum': '{label}超出范围', - timestamp: '{label}格式无效', - whitespace: '{label}不能为空', - typeError: '{label}类型无效', - date: { - format: '{label}日期{value}格式无效', - parse: '{label}日期无法解析,{value}无效', - invalid: '{label}日期{value}无效' - }, - length: { - minLength: '{label}长度不能少于{minLength}', - maxLength: '{label}长度不能超过{maxLength}', - range: '{label}必须介于{minLength}和{maxLength}之间' - }, - number: { - minimum: '{label}不能小于{minimum}', - maximum: '{label}不能大于{maximum}', - exclusiveMinimum: '{label}不能小于等于{minimum}', - exclusiveMaximum: '{label}不能大于等于{maximum}', - range: '{label}必须介于{minimum}and{maximum}之间' - }, - pattern: { - mismatch: '{label}格式不匹配' - } - }; -} - - -SchemaValidator.message = new message(); - -export default SchemaValidator diff --git a/src/uni_modules/uni-forms/package.json b/src/uni_modules/uni-forms/package.json deleted file mode 100644 index e69d39b5..00000000 --- a/src/uni_modules/uni-forms/package.json +++ /dev/null @@ -1,91 +0,0 @@ -{ - "id": "uni-forms", - "displayName": "uni-forms 表单", - "version": "1.4.6", - "description": "由输入框、选择器、单选框、多选框等控件组成,用以收集、校验、提交数据", - "keywords": [ - "uni-ui", - "表单", - "校验", - "表单校验", - "表单验证" -], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "" - }, - "directories": { - "example": "../../temps/example_temps" - }, - "dcloudext": { - "category": [ - "前端组件", - "通用组件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" - }, - "uni_modules": { - "dependencies": [ - "uni-scss", - "uni-icons" - ], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y", - "京东": "u" - }, - "快应用": { - "华为": "u", - "联盟": "u" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} diff --git a/src/uni_modules/uni-forms/readme.md b/src/uni_modules/uni-forms/readme.md deleted file mode 100644 index 63d5a043..00000000 --- a/src/uni_modules/uni-forms/readme.md +++ /dev/null @@ -1,23 +0,0 @@ - - -## Forms 表单 - -> **组件名:uni-forms** -> 代码块: `uForms`、`uni-forms-item` -> 关联组件:`uni-forms-item`、`uni-easyinput`、`uni-data-checkbox`、`uni-group`。 - - -uni-app的内置组件已经有了 `
`组件,用于提交表单内容。 - -然而几乎每个表单都需要做表单验证,为了方便做表单验证,减少重复开发,`uni ui` 又基于 ``组件封装了 ``组件,内置了表单验证功能。 - -`` 提供了 `rules`属性来描述校验规则、``子组件来包裹具体的表单项,以及给原生或三方组件提供了 `binddata()` 来设置表单值。 - -每个要校验的表单项,不管input还是checkbox,都必须放在``组件中,且一个``组件只能放置一个表单项。 - -``组件内部预留了显示error message的区域,默认是在表单项的底部。 - -另外,``组件下面的各个表单项,可以通过``包裹为不同的分组。同一``下的不同表单项目将聚拢在一起,同其他group保持垂直间距。``仅影响视觉效果。 - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-forms) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 \ No newline at end of file diff --git a/src/uni_modules/uni-goods-nav/changelog.md b/src/uni_modules/uni-goods-nav/changelog.md deleted file mode 100644 index c6264c67..00000000 --- a/src/uni_modules/uni-goods-nav/changelog.md +++ /dev/null @@ -1,18 +0,0 @@ -## 1.2.1(2022-05-30) -- 新增 stat属性,是否开启uni统计功能 -## 1.2.0(2021-11-19) -- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) -- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-goods-nav](https://uniapp.dcloud.io/component/uniui/uni-goods-nav) -## 1.1.1(2021-08-24) -- 新增 支持国际化 -## 1.1.0(2021-07-13) -- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) -## 1.0.7(2021-05-12) -- 新增 组件示例地址 -## 1.0.6(2021-04-21) -- 优化 添加依赖 uni-icons, 导入后自动下载依赖 -## 1.0.5(2021-02-05) -- 优化 组件引用关系,通过uni_modules引用组件 - -## 1.0.4(2021-02-05) -- 调整为uni_modules目录规范 diff --git a/src/uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/en.json b/src/uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/en.json deleted file mode 100644 index dcdba41c..00000000 --- a/src/uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/en.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "uni-goods-nav.options.shop": "shop", - "uni-goods-nav.options.cart": "cart", - "uni-goods-nav.buttonGroup.addToCart": "add to cart", - "uni-goods-nav.buttonGroup.buyNow": "buy now" -} diff --git a/src/uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/index.js b/src/uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/index.js deleted file mode 100644 index de7509c8..00000000 --- a/src/uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/index.js +++ /dev/null @@ -1,8 +0,0 @@ -import en from './en.json' -import zhHans from './zh-Hans.json' -import zhHant from './zh-Hant.json' -export default { - en, - 'zh-Hans': zhHans, - 'zh-Hant': zhHant -} diff --git a/src/uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/zh-Hans.json b/src/uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/zh-Hans.json deleted file mode 100644 index 48ee344c..00000000 --- a/src/uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/zh-Hans.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "uni-goods-nav.options.shop": "店铺", - "uni-goods-nav.options.cart": "购物车", - "uni-goods-nav.buttonGroup.addToCart": "加入购物车", - "uni-goods-nav.buttonGroup.buyNow": "立即购买" -} diff --git a/src/uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/zh-Hant.json b/src/uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/zh-Hant.json deleted file mode 100644 index d0a0255c..00000000 --- a/src/uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/zh-Hant.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "uni-goods-nav.options.shop": "店鋪", - "uni-goods-nav.options.cart": "購物車", - "uni-goods-nav.buttonGroup.addToCart": "加入購物車", - "uni-goods-nav.buttonGroup.buyNow": "立即購買" -} diff --git a/src/uni_modules/uni-goods-nav/components/uni-goods-nav/uni-goods-nav.vue b/src/uni_modules/uni-goods-nav/components/uni-goods-nav/uni-goods-nav.vue deleted file mode 100644 index 8a16b175..00000000 --- a/src/uni_modules/uni-goods-nav/components/uni-goods-nav/uni-goods-nav.vue +++ /dev/null @@ -1,229 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-goods-nav/package.json b/src/uni_modules/uni-goods-nav/package.json deleted file mode 100644 index 636e45e7..00000000 --- a/src/uni_modules/uni-goods-nav/package.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "id": "uni-goods-nav", - "displayName": "uni-goods-nav 商品导航", - "version": "1.2.1", - "description": "商品导航组件主要用于电商类应用底部导航,可自定义加入购物车,购买等操作", - "keywords": [ - "uni-ui", - "uniui", - "商品导航" -], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "" - }, - "directories": { - "example": "../../temps/example_temps" - }, - "dcloudext": { - "category": [ - "前端组件", - "通用组件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" - }, - "uni_modules": { - "dependencies": [ - "uni-scss", - "uni-icons" - ], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y" - }, - "快应用": { - "华为": "u", - "联盟": "u" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} diff --git a/src/uni_modules/uni-goods-nav/readme.md b/src/uni_modules/uni-goods-nav/readme.md deleted file mode 100644 index 07df93f5..00000000 --- a/src/uni_modules/uni-goods-nav/readme.md +++ /dev/null @@ -1,10 +0,0 @@ - - -## GoodsNav 商品导航 -> **组件名:uni-goods-nav** -> 代码块: `uGoodsNav` - -商品加入购物车,立即购买等。 - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-goods-nav) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 \ No newline at end of file diff --git a/src/uni_modules/uni-grid/changelog.md b/src/uni_modules/uni-grid/changelog.md deleted file mode 100644 index d301166c..00000000 --- a/src/uni_modules/uni-grid/changelog.md +++ /dev/null @@ -1,13 +0,0 @@ -## 1.4.0(2021-11-19) -- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) -- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-grid](https://uniapp.dcloud.io/component/uniui/uni-grid) -## 1.3.2(2021-11-09) -- 新增 提供组件设计资源,组件样式调整 -## 1.3.1(2021-07-30) -- 优化 vue3下事件警告的问题 -## 1.3.0(2021-07-13) -- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) -## 1.2.4(2021-05-12) -- 新增 组件示例地址 -## 1.2.3(2021-02-05) -- 调整为uni_modules目录规范 diff --git a/src/uni_modules/uni-grid/components/uni-grid-item/uni-grid-item.vue b/src/uni_modules/uni-grid/components/uni-grid-item/uni-grid-item.vue deleted file mode 100644 index 19c08d7a..00000000 --- a/src/uni_modules/uni-grid/components/uni-grid-item/uni-grid-item.vue +++ /dev/null @@ -1,127 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-grid/components/uni-grid/uni-grid.vue b/src/uni_modules/uni-grid/components/uni-grid/uni-grid.vue deleted file mode 100644 index 0edc7ffe..00000000 --- a/src/uni_modules/uni-grid/components/uni-grid/uni-grid.vue +++ /dev/null @@ -1,142 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-grid/package.json b/src/uni_modules/uni-grid/package.json deleted file mode 100644 index ccb2c917..00000000 --- a/src/uni_modules/uni-grid/package.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "id": "uni-grid", - "displayName": "uni-grid 宫格", - "version": "1.4.0", - "description": "Grid 宫格组件,提供移动端常见的宫格布局,如九宫格。", - "keywords": [ - "uni-ui", - "uniui", - "九宫格", - "表格" -], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "" - }, - "directories": { - "example": "../../temps/example_temps" - }, - "dcloudext": { - "category": [ - "前端组件", - "通用组件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" - }, - "uni_modules": { - "dependencies": ["uni-scss","uni-icons"], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y" - }, - "快应用": { - "华为": "u", - "联盟": "u" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} diff --git a/src/uni_modules/uni-grid/readme.md b/src/uni_modules/uni-grid/readme.md deleted file mode 100644 index 0aa44cc1..00000000 --- a/src/uni_modules/uni-grid/readme.md +++ /dev/null @@ -1,11 +0,0 @@ - - -## Grid 宫格 -> **组件名:uni-grid** -> 代码块: `uGrid` - - -宫格组件。 - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-grid) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 \ No newline at end of file diff --git a/src/uni_modules/uni-group/changelog.md b/src/uni_modules/uni-group/changelog.md deleted file mode 100644 index a7024fdf..00000000 --- a/src/uni_modules/uni-group/changelog.md +++ /dev/null @@ -1,16 +0,0 @@ -## 1.2.2(2022-05-30) -- 新增 stat属性,是否开启uni统计功能 -## 1.2.1(2021-11-22) -- 修复 vue3中某些scss变量无法找到的问题 -## 1.2.0(2021-11-19) -- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) -- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-group](https://uniapp.dcloud.io/component/uniui/uni-group) -## 1.1.7(2021-11-08) -## 1.1.0(2021-07-30) -- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) -- 优化 组件文档 -## 1.0.3(2021-05-12) -- 新增 组件示例地址 -## 1.0.2(2021-02-05) -- 调整为uni_modules目录规范 -- 优化 兼容 nvue 页面 diff --git a/src/uni_modules/uni-group/components/uni-group/uni-group.vue b/src/uni_modules/uni-group/components/uni-group/uni-group.vue deleted file mode 100644 index 3425ecd3..00000000 --- a/src/uni_modules/uni-group/components/uni-group/uni-group.vue +++ /dev/null @@ -1,134 +0,0 @@ - - - - diff --git a/src/uni_modules/uni-group/package.json b/src/uni_modules/uni-group/package.json deleted file mode 100644 index ea00a08c..00000000 --- a/src/uni_modules/uni-group/package.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "id": "uni-group", - "displayName": "uni-group 分组", - "version": "1.2.2", - "description": "分组组件可用于将组件用于分组,添加间隔,以产生明显的区块", - "keywords": [ - "uni-ui", - "uniui", - "group", - "分组", - "" -], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "" - }, - "directories": { - "example": "../../temps/example_temps" - }, - "dcloudext": { - "category": [ - "前端组件", - "通用组件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" - }, - "uni_modules": { - "dependencies": ["uni-scss"], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y" - }, - "快应用": { - "华为": "u", - "联盟": "u" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} \ No newline at end of file diff --git a/src/uni_modules/uni-group/readme.md b/src/uni_modules/uni-group/readme.md deleted file mode 100644 index bae67f46..00000000 --- a/src/uni_modules/uni-group/readme.md +++ /dev/null @@ -1,9 +0,0 @@ - -## Group 分组 -> **组件名:uni-group** -> 代码块: `uGroup` - -分组组件可用于将组件分组,添加间隔,以产生明显的区块。 - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-group) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 \ No newline at end of file diff --git a/src/uni_modules/uni-icons/changelog.md b/src/uni_modules/uni-icons/changelog.md deleted file mode 100644 index 64498853..00000000 --- a/src/uni_modules/uni-icons/changelog.md +++ /dev/null @@ -1,22 +0,0 @@ -## 1.3.5(2022-01-24) -- 优化 size 属性可以传入不带单位的字符串数值 -## 1.3.4(2022-01-24) -- 优化 size 支持其他单位 -## 1.3.3(2022-01-17) -- 修复 nvue 有些图标不显示的bug,兼容老版本图标 -## 1.3.2(2021-12-01) -- 优化 示例可复制图标名称 -## 1.3.1(2021-11-23) -- 优化 兼容旧组件 type 值 -## 1.3.0(2021-11-19) -- 新增 更多图标 -- 优化 自定义图标使用方式 -- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) -- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-icons](https://uniapp.dcloud.io/component/uniui/uni-icons) -## 1.1.7(2021-11-08) -## 1.2.0(2021-07-30) -- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) -## 1.1.5(2021-05-12) -- 新增 组件示例地址 -## 1.1.4(2021-02-05) -- 调整为uni_modules目录规范 diff --git a/src/uni_modules/uni-icons/components/uni-icons/icons.js b/src/uni_modules/uni-icons/components/uni-icons/icons.js deleted file mode 100644 index 78899364..00000000 --- a/src/uni_modules/uni-icons/components/uni-icons/icons.js +++ /dev/null @@ -1,1169 +0,0 @@ -export default { - "id": "2852637", - "name": "uniui图标库", - "font_family": "uniicons", - "css_prefix_text": "uniui-", - "description": "", - "glyphs": [ - { - "icon_id": "25027049", - "name": "yanse", - "font_class": "color", - "unicode": "e6cf", - "unicode_decimal": 59087 - }, - { - "icon_id": "25027048", - "name": "wallet", - "font_class": "wallet", - "unicode": "e6b1", - "unicode_decimal": 59057 - }, - { - "icon_id": "25015720", - "name": "settings-filled", - "font_class": "settings-filled", - "unicode": "e6ce", - "unicode_decimal": 59086 - }, - { - "icon_id": "25015434", - "name": "shimingrenzheng-filled", - "font_class": "auth-filled", - "unicode": "e6cc", - "unicode_decimal": 59084 - }, - { - "icon_id": "24934246", - "name": "shop-filled", - "font_class": "shop-filled", - "unicode": "e6cd", - "unicode_decimal": 59085 - }, - { - "icon_id": "24934159", - "name": "staff-filled-01", - "font_class": "staff-filled", - "unicode": "e6cb", - "unicode_decimal": 59083 - }, - { - "icon_id": "24932461", - "name": "VIP-filled", - "font_class": "vip-filled", - "unicode": "e6c6", - "unicode_decimal": 59078 - }, - { - "icon_id": "24932462", - "name": "plus_circle_fill", - "font_class": "plus-filled", - "unicode": "e6c7", - "unicode_decimal": 59079 - }, - { - "icon_id": "24932463", - "name": "folder_add-filled", - "font_class": "folder-add-filled", - "unicode": "e6c8", - "unicode_decimal": 59080 - }, - { - "icon_id": "24932464", - "name": "yanse-filled", - "font_class": "color-filled", - "unicode": "e6c9", - "unicode_decimal": 59081 - }, - { - "icon_id": "24932465", - "name": "tune-filled", - "font_class": "tune-filled", - "unicode": "e6ca", - "unicode_decimal": 59082 - }, - { - "icon_id": "24932455", - "name": "a-rilidaka-filled", - "font_class": "calendar-filled", - "unicode": "e6c0", - "unicode_decimal": 59072 - }, - { - "icon_id": "24932456", - "name": "notification-filled", - "font_class": "notification-filled", - "unicode": "e6c1", - "unicode_decimal": 59073 - }, - { - "icon_id": "24932457", - "name": "wallet-filled", - "font_class": "wallet-filled", - "unicode": "e6c2", - "unicode_decimal": 59074 - }, - { - "icon_id": "24932458", - "name": "paihangbang-filled", - "font_class": "medal-filled", - "unicode": "e6c3", - "unicode_decimal": 59075 - }, - { - "icon_id": "24932459", - "name": "gift-filled", - "font_class": "gift-filled", - "unicode": "e6c4", - "unicode_decimal": 59076 - }, - { - "icon_id": "24932460", - "name": "fire-filled", - "font_class": "fire-filled", - "unicode": "e6c5", - "unicode_decimal": 59077 - }, - { - "icon_id": "24928001", - "name": "refreshempty", - "font_class": "refreshempty", - "unicode": "e6bf", - "unicode_decimal": 59071 - }, - { - "icon_id": "24926853", - "name": "location-ellipse", - "font_class": "location-filled", - "unicode": "e6af", - "unicode_decimal": 59055 - }, - { - "icon_id": "24926735", - "name": "person-filled", - "font_class": "person-filled", - "unicode": "e69d", - "unicode_decimal": 59037 - }, - { - "icon_id": "24926703", - "name": "personadd-filled", - "font_class": "personadd-filled", - "unicode": "e698", - "unicode_decimal": 59032 - }, - { - "icon_id": "24923351", - "name": "back", - "font_class": "back", - "unicode": "e6b9", - "unicode_decimal": 59065 - }, - { - "icon_id": "24923352", - "name": "forward", - "font_class": "forward", - "unicode": "e6ba", - "unicode_decimal": 59066 - }, - { - "icon_id": "24923353", - "name": "arrowthinright", - "font_class": "arrow-right", - "unicode": "e6bb", - "unicode_decimal": 59067 - }, - { - "icon_id": "24923353", - "name": "arrowthinright", - "font_class": "arrowthinright", - "unicode": "e6bb", - "unicode_decimal": 59067 - }, - { - "icon_id": "24923354", - "name": "arrowthinleft", - "font_class": "arrow-left", - "unicode": "e6bc", - "unicode_decimal": 59068 - }, - { - "icon_id": "24923354", - "name": "arrowthinleft", - "font_class": "arrowthinleft", - "unicode": "e6bc", - "unicode_decimal": 59068 - }, - { - "icon_id": "24923355", - "name": "arrowthinup", - "font_class": "arrow-up", - "unicode": "e6bd", - "unicode_decimal": 59069 - }, - { - "icon_id": "24923355", - "name": "arrowthinup", - "font_class": "arrowthinup", - "unicode": "e6bd", - "unicode_decimal": 59069 - }, - { - "icon_id": "24923356", - "name": "arrowthindown", - "font_class": "arrow-down", - "unicode": "e6be", - "unicode_decimal": 59070 - },{ - "icon_id": "24923356", - "name": "arrowthindown", - "font_class": "arrowthindown", - "unicode": "e6be", - "unicode_decimal": 59070 - }, - { - "icon_id": "24923349", - "name": "arrowdown", - "font_class": "bottom", - "unicode": "e6b8", - "unicode_decimal": 59064 - },{ - "icon_id": "24923349", - "name": "arrowdown", - "font_class": "arrowdown", - "unicode": "e6b8", - "unicode_decimal": 59064 - }, - { - "icon_id": "24923346", - "name": "arrowright", - "font_class": "right", - "unicode": "e6b5", - "unicode_decimal": 59061 - }, - { - "icon_id": "24923346", - "name": "arrowright", - "font_class": "arrowright", - "unicode": "e6b5", - "unicode_decimal": 59061 - }, - { - "icon_id": "24923347", - "name": "arrowup", - "font_class": "top", - "unicode": "e6b6", - "unicode_decimal": 59062 - }, - { - "icon_id": "24923347", - "name": "arrowup", - "font_class": "arrowup", - "unicode": "e6b6", - "unicode_decimal": 59062 - }, - { - "icon_id": "24923348", - "name": "arrowleft", - "font_class": "left", - "unicode": "e6b7", - "unicode_decimal": 59063 - }, - { - "icon_id": "24923348", - "name": "arrowleft", - "font_class": "arrowleft", - "unicode": "e6b7", - "unicode_decimal": 59063 - }, - { - "icon_id": "24923334", - "name": "eye", - "font_class": "eye", - "unicode": "e651", - "unicode_decimal": 58961 - }, - { - "icon_id": "24923335", - "name": "eye-filled", - "font_class": "eye-filled", - "unicode": "e66a", - "unicode_decimal": 58986 - }, - { - "icon_id": "24923336", - "name": "eye-slash", - "font_class": "eye-slash", - "unicode": "e6b3", - "unicode_decimal": 59059 - }, - { - "icon_id": "24923337", - "name": "eye-slash-filled", - "font_class": "eye-slash-filled", - "unicode": "e6b4", - "unicode_decimal": 59060 - }, - { - "icon_id": "24923305", - "name": "info-filled", - "font_class": "info-filled", - "unicode": "e649", - "unicode_decimal": 58953 - }, - { - "icon_id": "24923299", - "name": "reload-01", - "font_class": "reload", - "unicode": "e6b2", - "unicode_decimal": 59058 - }, - { - "icon_id": "24923195", - "name": "mic_slash_fill", - "font_class": "micoff-filled", - "unicode": "e6b0", - "unicode_decimal": 59056 - }, - { - "icon_id": "24923165", - "name": "map-pin-ellipse", - "font_class": "map-pin-ellipse", - "unicode": "e6ac", - "unicode_decimal": 59052 - }, - { - "icon_id": "24923166", - "name": "map-pin", - "font_class": "map-pin", - "unicode": "e6ad", - "unicode_decimal": 59053 - }, - { - "icon_id": "24923167", - "name": "location", - "font_class": "location", - "unicode": "e6ae", - "unicode_decimal": 59054 - }, - { - "icon_id": "24923064", - "name": "starhalf", - "font_class": "starhalf", - "unicode": "e683", - "unicode_decimal": 59011 - }, - { - "icon_id": "24923065", - "name": "star", - "font_class": "star", - "unicode": "e688", - "unicode_decimal": 59016 - }, - { - "icon_id": "24923066", - "name": "star-filled", - "font_class": "star-filled", - "unicode": "e68f", - "unicode_decimal": 59023 - }, - { - "icon_id": "24899646", - "name": "a-rilidaka", - "font_class": "calendar", - "unicode": "e6a0", - "unicode_decimal": 59040 - }, - { - "icon_id": "24899647", - "name": "fire", - "font_class": "fire", - "unicode": "e6a1", - "unicode_decimal": 59041 - }, - { - "icon_id": "24899648", - "name": "paihangbang", - "font_class": "medal", - "unicode": "e6a2", - "unicode_decimal": 59042 - }, - { - "icon_id": "24899649", - "name": "font", - "font_class": "font", - "unicode": "e6a3", - "unicode_decimal": 59043 - }, - { - "icon_id": "24899650", - "name": "gift", - "font_class": "gift", - "unicode": "e6a4", - "unicode_decimal": 59044 - }, - { - "icon_id": "24899651", - "name": "link", - "font_class": "link", - "unicode": "e6a5", - "unicode_decimal": 59045 - }, - { - "icon_id": "24899652", - "name": "notification", - "font_class": "notification", - "unicode": "e6a6", - "unicode_decimal": 59046 - }, - { - "icon_id": "24899653", - "name": "staff", - "font_class": "staff", - "unicode": "e6a7", - "unicode_decimal": 59047 - }, - { - "icon_id": "24899654", - "name": "VIP", - "font_class": "vip", - "unicode": "e6a8", - "unicode_decimal": 59048 - }, - { - "icon_id": "24899655", - "name": "folder_add", - "font_class": "folder-add", - "unicode": "e6a9", - "unicode_decimal": 59049 - }, - { - "icon_id": "24899656", - "name": "tune", - "font_class": "tune", - "unicode": "e6aa", - "unicode_decimal": 59050 - }, - { - "icon_id": "24899657", - "name": "shimingrenzheng", - "font_class": "auth", - "unicode": "e6ab", - "unicode_decimal": 59051 - }, - { - "icon_id": "24899565", - "name": "person", - "font_class": "person", - "unicode": "e699", - "unicode_decimal": 59033 - }, - { - "icon_id": "24899566", - "name": "email-filled", - "font_class": "email-filled", - "unicode": "e69a", - "unicode_decimal": 59034 - }, - { - "icon_id": "24899567", - "name": "phone-filled", - "font_class": "phone-filled", - "unicode": "e69b", - "unicode_decimal": 59035 - }, - { - "icon_id": "24899568", - "name": "phone", - "font_class": "phone", - "unicode": "e69c", - "unicode_decimal": 59036 - }, - { - "icon_id": "24899570", - "name": "email", - "font_class": "email", - "unicode": "e69e", - "unicode_decimal": 59038 - }, - { - "icon_id": "24899571", - "name": "personadd", - "font_class": "personadd", - "unicode": "e69f", - "unicode_decimal": 59039 - }, - { - "icon_id": "24899558", - "name": "chatboxes-filled", - "font_class": "chatboxes-filled", - "unicode": "e692", - "unicode_decimal": 59026 - }, - { - "icon_id": "24899559", - "name": "contact", - "font_class": "contact", - "unicode": "e693", - "unicode_decimal": 59027 - }, - { - "icon_id": "24899560", - "name": "chatbubble-filled", - "font_class": "chatbubble-filled", - "unicode": "e694", - "unicode_decimal": 59028 - }, - { - "icon_id": "24899561", - "name": "contact-filled", - "font_class": "contact-filled", - "unicode": "e695", - "unicode_decimal": 59029 - }, - { - "icon_id": "24899562", - "name": "chatboxes", - "font_class": "chatboxes", - "unicode": "e696", - "unicode_decimal": 59030 - }, - { - "icon_id": "24899563", - "name": "chatbubble", - "font_class": "chatbubble", - "unicode": "e697", - "unicode_decimal": 59031 - }, - { - "icon_id": "24881290", - "name": "upload-filled", - "font_class": "upload-filled", - "unicode": "e68e", - "unicode_decimal": 59022 - }, - { - "icon_id": "24881292", - "name": "upload", - "font_class": "upload", - "unicode": "e690", - "unicode_decimal": 59024 - }, - { - "icon_id": "24881293", - "name": "weixin", - "font_class": "weixin", - "unicode": "e691", - "unicode_decimal": 59025 - }, - { - "icon_id": "24881274", - "name": "compose", - "font_class": "compose", - "unicode": "e67f", - "unicode_decimal": 59007 - }, - { - "icon_id": "24881275", - "name": "qq", - "font_class": "qq", - "unicode": "e680", - "unicode_decimal": 59008 - }, - { - "icon_id": "24881276", - "name": "download-filled", - "font_class": "download-filled", - "unicode": "e681", - "unicode_decimal": 59009 - }, - { - "icon_id": "24881277", - "name": "pengyouquan", - "font_class": "pyq", - "unicode": "e682", - "unicode_decimal": 59010 - }, - { - "icon_id": "24881279", - "name": "sound", - "font_class": "sound", - "unicode": "e684", - "unicode_decimal": 59012 - }, - { - "icon_id": "24881280", - "name": "trash-filled", - "font_class": "trash-filled", - "unicode": "e685", - "unicode_decimal": 59013 - }, - { - "icon_id": "24881281", - "name": "sound-filled", - "font_class": "sound-filled", - "unicode": "e686", - "unicode_decimal": 59014 - }, - { - "icon_id": "24881282", - "name": "trash", - "font_class": "trash", - "unicode": "e687", - "unicode_decimal": 59015 - }, - { - "icon_id": "24881284", - "name": "videocam-filled", - "font_class": "videocam-filled", - "unicode": "e689", - "unicode_decimal": 59017 - }, - { - "icon_id": "24881285", - "name": "spinner-cycle", - "font_class": "spinner-cycle", - "unicode": "e68a", - "unicode_decimal": 59018 - }, - { - "icon_id": "24881286", - "name": "weibo", - "font_class": "weibo", - "unicode": "e68b", - "unicode_decimal": 59019 - }, - { - "icon_id": "24881288", - "name": "videocam", - "font_class": "videocam", - "unicode": "e68c", - "unicode_decimal": 59020 - }, - { - "icon_id": "24881289", - "name": "download", - "font_class": "download", - "unicode": "e68d", - "unicode_decimal": 59021 - }, - { - "icon_id": "24879601", - "name": "help", - "font_class": "help", - "unicode": "e679", - "unicode_decimal": 59001 - }, - { - "icon_id": "24879602", - "name": "navigate-filled", - "font_class": "navigate-filled", - "unicode": "e67a", - "unicode_decimal": 59002 - }, - { - "icon_id": "24879603", - "name": "plusempty", - "font_class": "plusempty", - "unicode": "e67b", - "unicode_decimal": 59003 - }, - { - "icon_id": "24879604", - "name": "smallcircle", - "font_class": "smallcircle", - "unicode": "e67c", - "unicode_decimal": 59004 - }, - { - "icon_id": "24879605", - "name": "minus-filled", - "font_class": "minus-filled", - "unicode": "e67d", - "unicode_decimal": 59005 - }, - { - "icon_id": "24879606", - "name": "micoff", - "font_class": "micoff", - "unicode": "e67e", - "unicode_decimal": 59006 - }, - { - "icon_id": "24879588", - "name": "closeempty", - "font_class": "closeempty", - "unicode": "e66c", - "unicode_decimal": 58988 - }, - { - "icon_id": "24879589", - "name": "clear", - "font_class": "clear", - "unicode": "e66d", - "unicode_decimal": 58989 - }, - { - "icon_id": "24879590", - "name": "navigate", - "font_class": "navigate", - "unicode": "e66e", - "unicode_decimal": 58990 - }, - { - "icon_id": "24879591", - "name": "minus", - "font_class": "minus", - "unicode": "e66f", - "unicode_decimal": 58991 - }, - { - "icon_id": "24879592", - "name": "image", - "font_class": "image", - "unicode": "e670", - "unicode_decimal": 58992 - }, - { - "icon_id": "24879593", - "name": "mic", - "font_class": "mic", - "unicode": "e671", - "unicode_decimal": 58993 - }, - { - "icon_id": "24879594", - "name": "paperplane", - "font_class": "paperplane", - "unicode": "e672", - "unicode_decimal": 58994 - }, - { - "icon_id": "24879595", - "name": "close", - "font_class": "close", - "unicode": "e673", - "unicode_decimal": 58995 - }, - { - "icon_id": "24879596", - "name": "help-filled", - "font_class": "help-filled", - "unicode": "e674", - "unicode_decimal": 58996 - }, - { - "icon_id": "24879597", - "name": "plus-filled", - "font_class": "paperplane-filled", - "unicode": "e675", - "unicode_decimal": 58997 - }, - { - "icon_id": "24879598", - "name": "plus", - "font_class": "plus", - "unicode": "e676", - "unicode_decimal": 58998 - }, - { - "icon_id": "24879599", - "name": "mic-filled", - "font_class": "mic-filled", - "unicode": "e677", - "unicode_decimal": 58999 - }, - { - "icon_id": "24879600", - "name": "image-filled", - "font_class": "image-filled", - "unicode": "e678", - "unicode_decimal": 59000 - }, - { - "icon_id": "24855900", - "name": "locked-filled", - "font_class": "locked-filled", - "unicode": "e668", - "unicode_decimal": 58984 - }, - { - "icon_id": "24855901", - "name": "info", - "font_class": "info", - "unicode": "e669", - "unicode_decimal": 58985 - }, - { - "icon_id": "24855903", - "name": "locked", - "font_class": "locked", - "unicode": "e66b", - "unicode_decimal": 58987 - }, - { - "icon_id": "24855884", - "name": "camera-filled", - "font_class": "camera-filled", - "unicode": "e658", - "unicode_decimal": 58968 - }, - { - "icon_id": "24855885", - "name": "chat-filled", - "font_class": "chat-filled", - "unicode": "e659", - "unicode_decimal": 58969 - }, - { - "icon_id": "24855886", - "name": "camera", - "font_class": "camera", - "unicode": "e65a", - "unicode_decimal": 58970 - }, - { - "icon_id": "24855887", - "name": "circle", - "font_class": "circle", - "unicode": "e65b", - "unicode_decimal": 58971 - }, - { - "icon_id": "24855888", - "name": "checkmarkempty", - "font_class": "checkmarkempty", - "unicode": "e65c", - "unicode_decimal": 58972 - }, - { - "icon_id": "24855889", - "name": "chat", - "font_class": "chat", - "unicode": "e65d", - "unicode_decimal": 58973 - }, - { - "icon_id": "24855890", - "name": "circle-filled", - "font_class": "circle-filled", - "unicode": "e65e", - "unicode_decimal": 58974 - }, - { - "icon_id": "24855891", - "name": "flag", - "font_class": "flag", - "unicode": "e65f", - "unicode_decimal": 58975 - }, - { - "icon_id": "24855892", - "name": "flag-filled", - "font_class": "flag-filled", - "unicode": "e660", - "unicode_decimal": 58976 - }, - { - "icon_id": "24855893", - "name": "gear-filled", - "font_class": "gear-filled", - "unicode": "e661", - "unicode_decimal": 58977 - }, - { - "icon_id": "24855894", - "name": "home", - "font_class": "home", - "unicode": "e662", - "unicode_decimal": 58978 - }, - { - "icon_id": "24855895", - "name": "home-filled", - "font_class": "home-filled", - "unicode": "e663", - "unicode_decimal": 58979 - }, - { - "icon_id": "24855896", - "name": "gear", - "font_class": "gear", - "unicode": "e664", - "unicode_decimal": 58980 - }, - { - "icon_id": "24855897", - "name": "smallcircle-filled", - "font_class": "smallcircle-filled", - "unicode": "e665", - "unicode_decimal": 58981 - }, - { - "icon_id": "24855898", - "name": "map-filled", - "font_class": "map-filled", - "unicode": "e666", - "unicode_decimal": 58982 - }, - { - "icon_id": "24855899", - "name": "map", - "font_class": "map", - "unicode": "e667", - "unicode_decimal": 58983 - }, - { - "icon_id": "24855825", - "name": "refresh-filled", - "font_class": "refresh-filled", - "unicode": "e656", - "unicode_decimal": 58966 - }, - { - "icon_id": "24855826", - "name": "refresh", - "font_class": "refresh", - "unicode": "e657", - "unicode_decimal": 58967 - }, - { - "icon_id": "24855808", - "name": "cloud-upload", - "font_class": "cloud-upload", - "unicode": "e645", - "unicode_decimal": 58949 - }, - { - "icon_id": "24855809", - "name": "cloud-download-filled", - "font_class": "cloud-download-filled", - "unicode": "e646", - "unicode_decimal": 58950 - }, - { - "icon_id": "24855810", - "name": "cloud-download", - "font_class": "cloud-download", - "unicode": "e647", - "unicode_decimal": 58951 - }, - { - "icon_id": "24855811", - "name": "cloud-upload-filled", - "font_class": "cloud-upload-filled", - "unicode": "e648", - "unicode_decimal": 58952 - }, - { - "icon_id": "24855813", - "name": "redo", - "font_class": "redo", - "unicode": "e64a", - "unicode_decimal": 58954 - }, - { - "icon_id": "24855814", - "name": "images-filled", - "font_class": "images-filled", - "unicode": "e64b", - "unicode_decimal": 58955 - }, - { - "icon_id": "24855815", - "name": "undo-filled", - "font_class": "undo-filled", - "unicode": "e64c", - "unicode_decimal": 58956 - }, - { - "icon_id": "24855816", - "name": "more", - "font_class": "more", - "unicode": "e64d", - "unicode_decimal": 58957 - }, - { - "icon_id": "24855817", - "name": "more-filled", - "font_class": "more-filled", - "unicode": "e64e", - "unicode_decimal": 58958 - }, - { - "icon_id": "24855818", - "name": "undo", - "font_class": "undo", - "unicode": "e64f", - "unicode_decimal": 58959 - }, - { - "icon_id": "24855819", - "name": "images", - "font_class": "images", - "unicode": "e650", - "unicode_decimal": 58960 - }, - { - "icon_id": "24855821", - "name": "paperclip", - "font_class": "paperclip", - "unicode": "e652", - "unicode_decimal": 58962 - }, - { - "icon_id": "24855822", - "name": "settings", - "font_class": "settings", - "unicode": "e653", - "unicode_decimal": 58963 - }, - { - "icon_id": "24855823", - "name": "search", - "font_class": "search", - "unicode": "e654", - "unicode_decimal": 58964 - }, - { - "icon_id": "24855824", - "name": "redo-filled", - "font_class": "redo-filled", - "unicode": "e655", - "unicode_decimal": 58965 - }, - { - "icon_id": "24841702", - "name": "list", - "font_class": "list", - "unicode": "e644", - "unicode_decimal": 58948 - }, - { - "icon_id": "24841489", - "name": "mail-open-filled", - "font_class": "mail-open-filled", - "unicode": "e63a", - "unicode_decimal": 58938 - }, - { - "icon_id": "24841491", - "name": "hand-thumbsdown-filled", - "font_class": "hand-down-filled", - "unicode": "e63c", - "unicode_decimal": 58940 - }, - { - "icon_id": "24841492", - "name": "hand-thumbsdown", - "font_class": "hand-down", - "unicode": "e63d", - "unicode_decimal": 58941 - }, - { - "icon_id": "24841493", - "name": "hand-thumbsup-filled", - "font_class": "hand-up-filled", - "unicode": "e63e", - "unicode_decimal": 58942 - }, - { - "icon_id": "24841494", - "name": "hand-thumbsup", - "font_class": "hand-up", - "unicode": "e63f", - "unicode_decimal": 58943 - }, - { - "icon_id": "24841496", - "name": "heart-filled", - "font_class": "heart-filled", - "unicode": "e641", - "unicode_decimal": 58945 - }, - { - "icon_id": "24841498", - "name": "mail-open", - "font_class": "mail-open", - "unicode": "e643", - "unicode_decimal": 58947 - }, - { - "icon_id": "24841488", - "name": "heart", - "font_class": "heart", - "unicode": "e639", - "unicode_decimal": 58937 - }, - { - "icon_id": "24839963", - "name": "loop", - "font_class": "loop", - "unicode": "e633", - "unicode_decimal": 58931 - }, - { - "icon_id": "24839866", - "name": "pulldown", - "font_class": "pulldown", - "unicode": "e632", - "unicode_decimal": 58930 - }, - { - "icon_id": "24813798", - "name": "scan", - "font_class": "scan", - "unicode": "e62a", - "unicode_decimal": 58922 - }, - { - "icon_id": "24813786", - "name": "bars", - "font_class": "bars", - "unicode": "e627", - "unicode_decimal": 58919 - }, - { - "icon_id": "24813788", - "name": "cart-filled", - "font_class": "cart-filled", - "unicode": "e629", - "unicode_decimal": 58921 - }, - { - "icon_id": "24813790", - "name": "checkbox", - "font_class": "checkbox", - "unicode": "e62b", - "unicode_decimal": 58923 - }, - { - "icon_id": "24813791", - "name": "checkbox-filled", - "font_class": "checkbox-filled", - "unicode": "e62c", - "unicode_decimal": 58924 - }, - { - "icon_id": "24813794", - "name": "shop", - "font_class": "shop", - "unicode": "e62f", - "unicode_decimal": 58927 - }, - { - "icon_id": "24813795", - "name": "headphones", - "font_class": "headphones", - "unicode": "e630", - "unicode_decimal": 58928 - }, - { - "icon_id": "24813796", - "name": "cart", - "font_class": "cart", - "unicode": "e631", - "unicode_decimal": 58929 - } - ] -} diff --git a/src/uni_modules/uni-icons/components/uni-icons/uni-icons.vue b/src/uni_modules/uni-icons/components/uni-icons/uni-icons.vue deleted file mode 100644 index 86e74445..00000000 --- a/src/uni_modules/uni-icons/components/uni-icons/uni-icons.vue +++ /dev/null @@ -1,96 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-icons/components/uni-icons/uni.ttf b/src/uni_modules/uni-icons/components/uni-icons/uni.ttf deleted file mode 100644 index 60a1968d08cc6056c70b5402b2effac43c6f96a3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 26164 zcmd_TX?z^TwKv?SdZuUZ*{5e;H8a|*T^d=EEqULKckpgml5KgDk!);i2nH_%0>luO zfPriTxR4OC00t6b2;2t}2qA%7wj=~>Fd>kT3xQvPTF<|_N4Df(=f3y-@P2qDb$4}D zb=Rq?Q>V__5=amPo3K|9g_?5~R@W^Zx8lD9ftr!KrfW;*w!{L<_XI(_8%KJ5=fJk1 zA=DJsRifOye)EOvZhZIVd4gbiSrC>)H}rINE8h@~qU^^wnl>QA^bf;6q(8z@vSG{i zT`W{~i_ZKJ~i+M*!pC%1NP=}G-?!i$2i63^2U z+xiB!_dU4dZ-TJ;2%b4#;IQNP?t51qTE>Nw44LNt%6<4;!j%fi`Nyah~j5-NHC%wS1>>? zd|AKJdqN$Vkt-N6PQyR0;RLSp)=lXaIt1awyE+WwUW~p56Mu?5hctflo*;X%mY#+C zD{!Q6@bpbM%5bd2k;hSrgFiEH+I`ZnS6Ga^-8guiTX9^6!;IrO9M9nRUGcgLR|&^N z97}L)#Ie74@HT6U2TwG?BI=Pd&Uvsjmx$8c=H@ipXk=!b9w_ck2-eZ1}V zVw&H-fTJ77J{-IbFX#FE;Q8}#%*Vm|Wx&DV=IvdjA5@Jts*rxPc=Y3ngW|Y4aE!$P zI8OGDkBu9L2M33rx5M8zd~i7Un6?$K93GzLS3btM;_+KtC!n3xxUR>+-^2UG$9VW% zJdck%zvpAk`@pYLw5vym7JpHLuRHB1Vk?W{j<0~IV9*fzB4CwKXhTlykL-_iZ;Ef$ zzuEnk_*VT}Yu@TUW;y0Q)^Kd>v5CjJj;%Yk;aLB1^YNPFb;lcz7mlwv-gUg^_=e+O zJbvhH%iErJe*4ZV@BHPRkKg&n2|AHI(Q#thiMc11oLF&U)rsyC8%}IJvGc^96Z=nG zcj6l-?l|$i6W>4a(-W_sc>Bb=pbh*d_DA85HE#-U*1WmqE#a*?wBB`0IOam@g<~DZ z)*S0W>)VbCTI&s3>ub^a`r~^?wf>RTdiq2wTAy=T>%0G@^#(x{P#C{k1 zek>3@5&d!Wk!T_sihL6JIP#asuOlx+eieBp(iZVYd=YQN6aG{9-SCO&Px{ET#PnzLJoA<2H!L2@EtX@}4(pXRpKYVc8QJ$fY865AHLGwzCS zh(De1C8`qFCs}eq^2+1~sjsIE>6-MLnTE{%%!?&$C7Vm`EO|BCkX@U-HT!mMeD15c zU*#v}@5_H$T3*^;`b1ev*^}iZ<@Z&{pbfKzejz>}Hez>=31xy{98ZNR%FASmlNV>C zkrOAyCl%AfrA#>TsnPi9k%vFw=e1X*D{9E_?5&5NGt^e3uUgx_kl2ED?c9iRz3!1u zDNbYaH5W}oHN$guM3W6LH@UCOb~AY3u@H*u%v08EOI7RCTuM?l5F z(?ODnQh~e|Jr0*GkF*p@kJElpkieM$QM@~IQa(Rzg>UD4_w zP|wuRcf>cuMH+mSLbHI~_e>C)(vm5laKMy6J|&qnfJaqM=f+W{iW-_)sj;D{E)b*o zx&THygtkl1e*pq{AF29JeJu6o15yd?# zZ0-d%r_;8;t+@1ri~bL~x_Aq^x^QuSJI!t#J45g4&QKr_O_0{XRFZdFO|gsc9{#qK zduGax^T-)+F15?DeJK)joSJB1=^VborpFe-2+8>QAy<3v* zUK)#XTr3;#o7eGF7f}4#yjGB3 zCf26`p@TB5usUDeWTq{3kxrSK$%A4z(J^$r8vdrr`o z+d3hch((v)tyZ#&mahN`@Tr^0r%D-~GcAF!S~>K(c!yXb8ke z4KC)r7|-UE+CX@GLyOOaS4oTPd7rr!9YjB!;w$V!!2wzl6H-EzAQU)OxEnI5wB&dD zEYwt=s#8cx8{LhHDM#*nfztV`5-0@P$tY#M%YM+>esFMZO9$Pl{#f?0dwfpyCy_dJ z?esiY7vD3ZaH z&e!H7lf)+qSl3flktzA!F@xdQ_i&!v?jdFhg(z%Se_^R1=Ljajp>VP=`r5=z0*m3++;43Y|PbsW=H$blU`#`NL_`-LOCyX){K?Y@h zpJFm%y=Wzk!zD7mmrNfzLatr;S$lT60uGPQIe8w@yvfZpZ-&aIaT+nLx`~|jsWlBm z4K?%$uJ2BpL#BN!*KhU67mTSTsvSd%^lQ%Uq>SCUse;xyoTT^{)9h)#o;I5zGtMD8 zXNLL^uASxIa>?~|G^MV-zAnTo#DW***IP_A)xWB)(N3}xV?e^d(1+sHqEo2EEOCO4 z717v`G<)?6s}{C;ybkC7m=cX9Og@uu+=P0YQHq0j ztO%C)%e{#h+x6V4J&fAD6#-Y=w$e}WxMZ-`PZ;MjdrZk_REb}jAg?Drqioglpi9Ge zZ57<0dZ4@%C;*UD+C%}Pg*av#IhN-wl&UL`NlI4}1sH`Rv_059IJe-Zoe^~wRja?U zig#Nr>I~->LDN1 zMa#>h>hpd+Hp4g^5Cre%<7w%ckdeOoxmXA8bm#}bx%VNvG!`)q$OU|9CBEyAz_I|? zmQy&0f*AR9IA$uMoa>TJjEKC`{e&6YadIsHbxW#aVd69@J=JQ16H zt*xr^uZvd7&Dd?HPEc>1IE#ASzIyVxHqxvKznd_XXa8=(EZS+e3nn2cgvEb|P1qlj zz>8*KvM@(jf&ppDnWS8yDS$K9Xdb-DcuWGwC~^WyfQeNE^uY2#z9L>HYy zCWg~6FD9xID{clo+pg6EUZLruL`eoSm-QByt zYShl5jGW!LFDi|5=8vfV72Ywfr92qf+}c+Au(wpPWXprLa+A|6I$dT1^JZ!#vB_rd znHqDeIl6pT`<0WgHXL*tsk&yh!y?X6e}RR#%qs7mKX19!xtmS2w~OvWy(PZXSDqdG zMsuylzq+BmMs}|>%h?jQoGVF*lI$=^P6yVGBrG2KJ2Wg-As{4#QeiB1(m5EVIt60` zih$WN6+lYr3OUSgo-;sv>ooBbzu`lOYFKo2O$7z~UzV5P37=GdGR595UPbv2 z+2?oQ$|7vz0fq`ww~txhX0n2O4SaQtf`{|UV*R3i(0i3AUe&wtD$!B2nWJkSprn<;2!)*n#n3i+JmO`AYa8goX; zF17&C+*`>`-9N;C}zy zMl!IwaUAl`X`J#L-ta!2R7@X;#^Tck~jFT}eWWNtX)4+S4 zLjm8f11OMq1rruhTJi;e7bg=9IX#D}T@ml~t zln?USso#@2*^SFekMi7jWfrVXS4ZymMt=U@H&5hpH`vr>--TaiB~)@+hUAMR@*_FRf-$4=SiZ)V^iO> zc`VFyp3S|@t>cS%=pFG>F(gEUR$&^Xu5RoKsiuNkLk!LeaR!33t+<-p0kGg4Td;O8 z!hF}L12YxZt{V1aPjXq<)$<8D~CqZ?e>x zafE}N$hGAyzSI*=0dU7tuezkr7^HzuHp;%B$g;;B;?lXmW?U07GQu$I*0 zvd1ISB@VCG@%4+ZXWodHF5T958F|BAV%J|xH;_DQIb+LbsehZbf@sC8n&##jl4}Zu zn!$yrjlXXD*Y}>wU$D6EGR7|JTg=nv?)|#G8@%x|Lr;nYu>cC1Kri%8#JL~>f{1MZ z@B%i8fxpS;82f--ws9j~vU#c1R${X*-8}d^@&5h$?-wmcX87v8Gmg+}mtISB?WMDR zy+d|516dFKN}58Sy=eR)YBu$Zt^neaQbnGxGCc1@>`9EQag&_@fr?(k@tAk%51 z#Ys?%lVU%+jHb1;Oe5{AKE%63hxqyKonInP*h6&jx^)+mmi*EMw3q6}%?7JDPW@%u z90Ij|oR1(M#8viNcJ??t9!F0%7wo$A^v+xCt1!=}#z%&HDtJc^$4CT!=CpCBsvZw{ zwOTvVYo`rD%Ww(GL8o^O9ThJZJHTnigz>^m&i|v2F>S*EQh~9?NMJ^q8uAb%As%`; z{XL0OO@+LsJSrjd|9J}N*|&Nt>cyL=*BIgy<+v1PV}+NqMhWQ};O zgALY*&wBf*QM_wGYgOZ{br&&D#KW%KNt5`H8XKMJOQ90EQF5kpG?C_rjOz2hoJjKI zB}9{&9OEnV^@B01H)3VaS$z@fU_c+_Rp#=l5@Ht*5AI?6D*B@~=Alr1RpBcZOM|H_ z9iFsk<_x~Jq@j<&^VwkaNeC632GxNE<-vNp1NA^rC&+sqd$hZ_QH`92tJ&L}m<)#b znN5gIi#bYSqK19VlGBHx`Jq~HL(JPG6= z{~KySCC0{9l#c}-7=(#KFNlwc)u4@8jSt063XY)>Z~>CMCf@VCv>v%iAe+YGZzs1& zGJ=}BAy>E|-v<;om+slsLGK^4RO9p=d)Hgz`+Y8~IQ_4@A5?>qeDn#CervHj;`r&5 zCk)I;@^`G&woCjKY(Wj#zHp7*eu=+)@V;Q!zT<$s*TlR|OW)wLn@Bbqds&@%`{47e zv6m4^gYUb{-H?4nVad>Q;+dcx@O(nFu zMLjrAvZ_CuG?9KcMctH2Poj4wP1&z{4sc#|${dW2(nMNDk2rYowN)m1^?jlSRq)4V~7GiQ{7zIK~Tb{QncA^*2c zb~ydAgB*7_{TMTxBsSmy5$>pJB5JDYAWzgYcy)CnQKOjfD2k_TFi$}*+dOzZ-Zt$RlHd229;^XSa1bO9x5PhvVdT+MvqNE zFfrAHNy=xqwoB*Hz)dt2>Y)q6Efb(WS!s=Utk>GZ_G>NVj#^iVz7zE4%dwm8ydarQ zCsl>(IWO3C@Xt^{AL;0_x+0dV?DnfHVYjt=f;wIHs`q2pylX#ANvG9LY?hPgYm;co z0d*;6kJH5cL*ECibBAHYI>2B%i(~G0D_9N^SOJb&r@_h*jKj+LP9`|)*IGRh>q_Q} z`ovY%sGF>Z?CFth+Bd_zOGel*`)PK~KtFudKFpbOUbdmmKPe{q!h6&7{;h z>C`0pAt0sw>XZYg=}sHK`+|B8Z*V-J6LXoe+M3nI8moi%gm(a9feBQ0v@Vsa)ioWw z_)GQIPV4Rqt#Pk)_a3V+YTdKP8ueLs@3#6z>QyJ})uD^O_1PcTQ0k3aP#-n-ARR+} zOWe!Hw07w4;`5>fQp|XbOD|wh^B{H^zTssgrhuCaa3NRc*3;k+O?;I|X}(L=2XNm6 zEnC260)?q?MqRW(QPlf9A*T{`y!{eU$RkH=&3El_M5`sa<>n`{%*ej;N{cL-M5=`X z>v@AkmZ=@)HfnP@e*tFc@$D&_vFAL{U^JBVVW1Sir7Qry$4RCSzh*EjSdArpr$#4F*=ZE6g+3FmaNYys zt&tg>C&68vVv;~;_&NY>)lesgxj8fHe4A}vFn<$s2i>YTfF8g%)f-Vq(>oWkbudJrG$5e>sn^1#Z@pF8 z=vsQb)K{mzv)DPowOD=8<=>T z%XK@HRikYoXIamDVK)wMCOXGh+)5yOoN-cab$jWcC*b!UByZYt&>K)Z2R&z+fLqD$ zy~LC85b6c+1d^9{pqd*EW9BS)qzMFEz&;B|>JeJXAyV%GG-m>ZCVSFeK#aK_iNj~a z;4==unHtb({;7ADp4KbqhuT3gL4Fe8F0h9J#UTGwgEoz7EAI5$_U^U$GlPi7$wX>mwAa9 z&zbQs1aq1-wq+J$vs&zKw|yZuc>-pbE>5n&v#h|gt**1Io6%$PuX6+ACs*K&G=6gV zof|(#8kisQc(3+i-mdnR_^t+tMrzbP_L|~7;LUok;dQP-;(!m>KDupX^n7@Evyf4M z3z<<(iBK5&Xd~1B-cdt(C0>ia|M?o?>wI`WAJxK<5!>|P?YE2K?b|Q74d;=~jog?Q zh_~<9!K>lS`!r+d8Sx>=#9Zer7)NjlUX9NOYU@N^Gto6L;Sp}Ae?&XmEMd#j){v#u z8uD5;SVGp1EQR4R)L>IBD7Lm(y&>y*i{&FLv9heYwv zmZL{k>}G8D3Y<&DLwk{f{PXtq_33#yZ@HGwIf2gH2A_siT%IWIlQ}S`*z8Z5qYDr; zi`yZ@P^~p>hG^{~XUuJKOqoyOFArmy#9J-`XL6-1U*QSU&HpJHKkb4y!2=kL_m!#RIV8CRWZBpoEyJDUV*NdPD zv~zHcWU}qI1s#$dXR+NBv>mWX4h46n7PtIWhuiJ=s_g!(#qGG6r*RSw@<;57L&7=u z+2h4Wf_ROI-J&<8ph2^ume~~ZERz&ew5Co0BzB#8b;ro(B@LR8T>=!rdo(~LMFZ46 z^2KkTdX?i;QblX%(&yCw$;fVLZE)~;kEfjiM8nA~L+^^$i;CcfJ)FyO1uSPi;3MeO zNcn>vZ0M}`g3p0Qtg zR1_cm(p8U45>a@aC|-vuXcp`8Yl0$nvJj^8nX z+SSJ=46#cls7KYK6S(i;=z6e^7V_-q1Ss6vPpc;!5e|sU*d_2B5ID~O;eeA?ZsFyA z53s5>)rpfFR;#+g7PCKKvpH-r+YWooMqRcT+s^M$VtWvUcAIU7)rx$y&jj1hPsESK zNwDE^o)@Fg=!WVa^MK`0)GoxhjE4rn8q{NbVNftsT)pjgXCP2xsuXg=N$4F`UsYFd zc(?}MeuG~&PS2Oi2sUY#iE>nSXc9M(UtTAZ$LY0R zJ}A40T=KQI`2A|X#q0EtT&G@GRYRRlx7(?{MdkDW*(EZmAE~p-L9tKgBVi9elRUy@ zSADdaa(RuRKPyA|fK9qyvPxeu`yC|SVJo+OTeP2PSNx*sdZY1rlf!GFZ-v9^O0&-) z7@$x3jrbk095#-1Lcj0@U>X-nq1}RsC6|XuwlSC2jNvAKK+0!ebAiqaqzQJ}03;_9 ze3Y6XOz;bYCB8Huc4#Z49o3+Z(l3y{B@@hc`UN66SG^8z_R5GYnH_XGSCc zaojkQ*}8BO^GYo@jTP-SI1)*QX7&X+Q_0_0=t$#@+40RH;Al=d%TlSlJ5$SxS|>$O z6q?+|;mBs)(R4b&DYmXc#<_X8U9_&_Nc+%F#mB`7f=@_tFFvm5)l@Mi5O!{6F+ve0 zW+7*1f#N2Z^3r*c6Cs|I*ttsDP9b}+B0iXimXs!_ahWB$NqyOBVUt6l+A78KRfD*U za-LGy@T{*HCS()rckzm#T|I71DY2+!nfl9A8U19LXg0iNwJTY#XYfKRl~UeQ6Q~V^ z2Y+kX|TEK<~1-LHE5*yEmZhqVZS(J;3OQ_cc2cZ<+m4}hECawLp8 z1W&96?zP7KQ=rWN*6STRBaeEA%j*v$^Tg(En_@9|Y#yh@UlGehqQQ8|8wuwlku&uJ zY=GNgbVr=t>TFXpRm5#J+3B`tiDDst+~dk8r1V}2{Qpq zWT)78>Atm=SjqaEL>pV9(gN-r%kFuEH3x`X?VPB@YdTMobMt#s5iR5u#QdKn#_v{9g zV;sFGpH>B1#P^6-FAZmj*PmKVCI2>qj~^5E4ZQ~4XBIm zB?s!1mKoPQgT=~oE%bQe8ZM~WWx7N5kh!I1;K-KR#xY^2<-E?0!q$hj>vtYDcKyS< zO4>Yzrn;?12BuaT8?)q*KQK7SIN50Pm&E8t&{MdE?*^OkIzNicX8MXPV3=$qhuUW= z%4Wm+V2ZCh&;s}~V6%X5_xXFFm-CL8Xs(X)yRixz-4Jw4WYcy!`X=AqzB#-Vy5zAZ zx5C}^WA5`fZ*qFRTUDoCZ*rQ{8)zTj=ICORN!>Sk8@%o?w!s0bdQkHqb8^s@uo%N(`e6~gu$l_MwIabteNKuAC+WgTf-p=8eltt~PQP+Il;BO|74K(% zh7S#2MH7YP+$(}hYnps00Bj2zTEF{!Sjc2f4Y84f(6yX$& zZ^K0urTzvk&1rAoH8=vWTT%`7>$$D!dVBrk2AkUA^m5Td7auT{IO_76c(>UHsOo;;<;QL zmqfOKq7|`dW%LK$xR>I&EKHYB)y1>f_~KZ3424nkDas~zX`-YgLB5z55Ant-Fbf#3 z`NA}e*TbOeJ}u&*j@vW5d<*3B!d-)bNZK5o-0(3#oKWhSpI7r>AekH!kH5rbIK5uy z;6pfn?_`$NB|T3`oL-I1p+sep;#F}k2N||RuljDXGMT7~dpPXH9Ey(_U5U@VsQL74 zVatoMJMV?A&%%7?{Fp#YI5v6A?8zG_baU5%T(aw2KA&rFt21!s8&-gfmGDvEZZ2H- zk~sPGWWvt{E+!a;o))IW~*3%i&g<{2-4FzB;ltC(-t>)f%o7#h&YVXyeDE#eX9M?7O{=)%dLW? zBCD=&r4`XhSu1&iR`nIkT5@5U?rdvpysBNDH`g$I*3TBwIFyEIoBGr^!=j#qlId(VgSJ)YL$2>b!+Nn>F1q7Y|3hMY<>m)$ot~0rY^J zcZH-=QplC$;U69_@Lffp1R3s>Mb4E8?~vbMQ2+GyarIq;fr7`D?PP4{GX0#ate8+) zS?%~>+SCsmjt{0z`(UlObLp}R7`tHE(w+M&J1QzVAn8Glze@O?xSh?1PmZn+gseU6 z{9(Gu7D(HumTGP3fKC08J#GKcn(^DHS$*2(&sb>@yk_-x+=q88fYqN%Xk09iOcpFN zZhwOUz-_15HYI6SpI4u^Clwpbw%te_GMezuRq~W+tlya?TRgsvU3RSsUn2@9aY75aCo?6ue-7Y6d(m;?7vs0(Jo9z?){-i*TaH=o-f7(V_RmDWae2IUw`EQqEU_{zeWHRs^^&E-$$K z;@-8kq~ER{bD%eG+5Jh|+P$LR?{~9?6<4pZ`V%k~Ivna-4%ishT)krOS+}n17}Y0yIv41TX6H=+%Sq78}-w}DpNgU=QlK?A%Yy%E-+HA0Y|Tg7YGfAW5K zwKqc~X7F~w;AT=LEbA(U{`3z&dF=)kck{Qtx&F`^8~GD5xuPVn^iKPv|2-;IK__nF_Q3G*${2p&H^2h!Xe_-Q%#S4o(DxQ*}Z1 zhAY$G190ev$@m$A>5}EkFEJUOaYg7dN5ooQT~%R?ghWe8X=#Z?R4)|`kC|ojmqVd1 z5S4PabM7_2mEL5Sy^7ZTi_Q^f_* zb_QkxPM8ez6S*Fry z;reS@?bh(L(yFqS>Z_EHAz1EgZkEikoKo%_+w3Y=q{5X< zA~SenKAlk5Atf<5#7Lw~YMZ88d=h8oBctK*L^|@0$z~}?xK8o-*|;k5xQ+iuCadXZQt6CMa5J(xr8oX)@~9svk%)qPWRbu(QD8M+ zxJIF4=ne6xm;}vEV9%K@KvkmmSl_zEVSbwXr>KXT20!_FSrc~<^2lFD)(4Q) zn#y=eyJdglDg6Onjn?p*QIER!l5pYkQ)^zrPT z81!#^Ezasw@h@%Zg#AojEC0qXX?o zid0ukA8{d2^?CxLi6yJ+Olg>tf~=6 z2Pd2{ja6@1B}5GdL*79-o-b`F&Bx>Ud|N)xamyfhitv^|d(^=7>)EqHT6Ey!L<-P* zb*Oy-?HRrY(bj(lu--4W9#qXc`1|ahCwZ z#DWl5%iy(eY9I@{?z}Z5s_&gxy{^^D#Yb$Dz3S72w9o&2Zw36KEilE7~ z|9v*8-gz)#aVr+qXC_zBJowMnJ(;P0a!|C>&9*PAD0!a}T>*B%x%K7y+AhgX`4bg_ z6=^rLM0Jzspx&1t`tm6H5)-Pi5)eU=4S);K`;tA`3na9DiNjvcxYK)+)k2XalNanR z-#W#FHQ+W6-pIRUrdey|)r^~T^q+>MbF0qlMA!cO?)oJ)6K5fZRxPM1cIgf`+i_lH zc7AQS`ktR{PgxKbY+)PGCk62qu^O-anK7ZR+N!pT(7VCwDPHR*+f#Lc4fR!Rmy}F- z?+>|(rP~>~)B*C7zr60;9emB`a>VyFIU>Wc?u?Se2*d*h>Z*icsp7qNj;SX!sp7HE z42I7h`^lieF!&Q)ept4XAVpwF0MD!KrzDJO+tc-9o^?2$9aH~w8QXQ}q{D%j zy>@$jc^TbzbK7EeFKt*br=>t*ZM=Qv8nIqVCqjt5vy_D4#%VIA1J0Ps9rGkBDH5!{ zye*N6g;pJ&*tB)l?!yN4y{>~|#YHpc@5nIC4^|Y~VB3FE>_Sv=udoxeggZEDy#bRA z^%(l2vv5sZSB6CfRt{YN$eg->=`iti30@7QGIxp83OFy<2xFQi4L3Fvni{!S+=wtH zJptt#K`G8(nbFm9bbD*r#9(DTks%PYI^D9D+H1e*CS!+z8Y>gkzTCRm^Wm=q)V{i+ z=YqB?zR4(CQFlR|-D6E@wd(UX`y*s?NCulF<`6Ars@vHR~u8I@r|%SE`@%8%!9VQ#e>FY!r6k-CSPKMv2o-eP}egm?@$c zZtlVJx*eAeqLE9)`qOV$y!r0rI#J>5dIZprTV zR~U^e-skJYfLPC;A=Y!8rl&6F+BRSrB0V*mo~CexundZdsRF^(bj)0Xe_Dcaj)3zp zrA`HO`g}_%+gOrm%KjJOi#H{WxRx}Q;BTBPU#&-P;tL5{{N_b|g@z(1%Vxu)E_@y5 zh7OCbiaq$=4E8?-7{?WXJUov32k<}|_%DF+0Xw+H(FJNgPI%$j! zyo0$5+9xf1rhFkl>5OJxOXHIkcR~>wS07L+ID`+xL&WL>W5!elqUsP$bSj{PG-*f} z{2TrKLrJVL{`Dgo^csx#Vntnq%8kZN2k4$LO$r$_a6eO;#;8jU(BXj37l;i0)9!HC zKl|*T^q~EtKilbPb*9_#{)Yw?4k*#6`YOi^0}41*01=S@5#q z{wQv)(ZLi3j9hLhhDfpVU$i-1wyJig|3`NFFY**-^CZ(7S{&44mF&4oP2ynLg+{Bb zll_;`v_lJX3faksfG4&P!B6mIr`1D`uy2S{F-N-QuK>d;C!;zogS}Ne#WTqvYMMxF z*_0{E7)@%VP*O?YqfUvb-D~Jd=i=rmJZN&t*u}DX!J01i1|?Beg^uvPt%r^LX4uI6 zLcAD_qgi=R%8Ux73le{_%Tvr1)behYw|QGlqX*#^HZIZuaMYX zH{5U+ldhQD`IMPn+}OSP=g!4rldV-jwtRBSBInOnce7NoDv7_r4sr9Wb2|}@(^}Io zmC>|@npWI&o;zzZ=KGZVz;~Dt*rVVS!6<-0fmi5a6R@+KAf5RPyuN ziOjxOJQ-W?TyjS8sZ3%-1mLCAI!3QKrd9nJWfGD8aAd}Vk?4by5^2pI06u=`s6h}h zt%!Wea0=n&9?p&YOE;jdtq4;C!Qgj_n}1P3XWunV61G+z99_JCsm)xycpBx>qv6I~Py(<=)XS$FMHH|%_L7u~vZ zr`o-XW>P(B&#qVhI~Gok$G1;{$^KX-9bYv+9OH6F5neBBm-SpaEY$lYXchn@LXnGL z7qpnH6h0lp;r60Kb&4C?7LS6;@Te}XishpE?&%=2fOI;CdQU53t!zdssja&~3we@V z6YhxIHw9tXp`Kso8XD%**YBCMi^JNkfjxd4UCSq-ZKryilyT$KpBz*ucuRXAaNd7V z!yG)&Fba>8qwyHg<_!fe+!wrhbb;oIJqn@mEhF)3)-uc240gZi%SNm5%chZd{gT~l zrW-;bb(7g^m%c3F4|IPQVv#S0EW+)Tjlu+I3{S>#`%hXGzy@L0)U~Kw0%;r;KEZho z2PA8wR1CQ_@jzRpj%}o=tz!|ReB$gew(gi)i?MYh0uC{@@BD`yw?sTdsS6A zSF&3(`Fx4RaJwyH4Mk%?u2MJHJbu5|BATI6zZ0=vPS^JhYrYMY`VVEtxfZC@Z~XQR zZFb2WmFq9P=2EECH=2z0^on&W(hj598g+)I&e1jKe2*KBL$pD6#=lDjc0!vFzv71V zWc+Em9XQ(MxWzyVO3cvj3EvAOL>^9IkqMTV$9BjOb{w*KqSlq-Zw?;RqY&A7+^29{cwD2ij@$s$fG3@V`*DE9;@VlI_&_$B_H08p$6R={tg89{f>h|U^$^t&;$&* z5o-y|^N5c;TsMQZ&X}QIH-puW_>2QvK0|$d#tbT%arx(bs)6@=I962e_c;2TSW$3# zdaP&#!R?5Dj^KX~A^LL)m4tqAkj3G2ba{K1)g3++8rpHW>>0cmUA^Ui`kW^i^icf) zbsdkhoHBGwd{pFLNiFC5C6wlx?i@?N530yD(Aa~x#G#91T=kAc1ePR_;#C`X8T9Lc z9>vC|aY#$!}A<+*He`s?# z{&L?7qWHpne{s0(Da}3%CXy;XtE~JC_4B!hvpgUMy?Mo3hrj+_i z$FOKESHRv+^%b|3*VFg7j{n`D?;2n5ZPo7bKsn~}l2iS?-RW}&T^{GHgbUn*gC4eh z@S3vn@-o)Xb(-TU>+37WapS=kcvSJY!TFdH`cPBu$};zwlId^Som2KCc`JG$Ul-A# zhYc2d_ho{x0=g!I!ofF2~EO*T}Y(DI|Vvm&4&))iJw=y-$c?MvQP*2hG%CgdgnavXK_t%*O-- z(26lhYFbk4!1x?O>P)@X!X0%xG6*@ar19heV@*_&A@$Gm5dVdKrN+<9<@WG?v2lp} z>OsHkjzd;=)G{F^!gt0?2yBkH5srP=9-rUu+jB+$rVX6g=CM5|4z@0`wG(Fy!5E2*&0LUY%X}9QSpu%C;DZUAU~k zC)8ho31x-ydQZAC__Lp#x!-&~-4TSF7rSkVy0saF3-kYOLQjrJSBI*N2+bTZBqQ)V z!+nghTo;t)gyf9VIs%!C8#hALi^x3A?hE?t>PP<%@%2M|rWSu6o^e`FVdXh|QqMVs zll%)-{h*%kjKd7)wB3WJ34Rt0#eB|d=89<%)O9%DFrto8xIkD{tRs!cx8gf#FBbD{ zLXOHo`TB((p%bx3J@8^n!s>h>&b>mH&?jt#1)86?3ky)XUf3aQM$LX)x1z>yodIyY zOHke~3?Pr!PvYBBRgjl!&Y0hdFPe0s<__(Byv2HO^hs#+YP6$Om|AT46nuSXfxo#< zdpCc771E7(vJv@B7>6-{z8BC=12kJTh)(a<0LEoKp4yJzb$E)$EA$ClkQ#2U2YuX( zyri&AE8B?obfI>Yut9rj8+u!f-{FxNu3x2%*cNSF;)EY7X6^HSpeTlgnny(&2>~9k zLs;-FSsOfU91xhCaO8#Ij=+Y%To6FWNs#beNs8dZfcz^r2})9m(v*RBau$Ilc`5}y z{DsO8F@g^ULJPsEdJTMS>ZqO?sF9lBIMobC+7?(5+aMT?M+89!O`wSo6er`u2vcbq zO{W3wVUvciDZt9_R zw4OFlFIMIz+Duz$EA`PfI-mM!fVR^Px`1}lF1nC*(;m8rE~YQgCHVBtrF0qXGws;g zTZ5nCb*!nYZ|nBXuI#+1>3Z7Od;tyt${_uIKAF&Xbk&d*ikZeOr5s zJzF|^H(R?lbZ%d}W9{0_Jr*t5x2tEsrd7}@+q7zW+I6aO@y#b6DZY7UPw(133FlqC zTW#BVwywXhZ^!vNI=32lMRxxA<_mhed+@Ilwn#X7`a8ufyQP_h2sL*5F-rqT}LE5oxb6;n-xw~)YR-Q0+ZAO`) zzo)y;uw!d?pQ*oRU4PHO2E)Mi&VJj@4ZYiYx_bM&Hus=nPiMcQSgf~Y<&}!bZJT!t z=tDsimZ&&dVt?8aE+qPe5FTPg0k@|Zy5c$hDbZ%Z}AK2Er zb!$(5*M$H<8UPes8!Wszt+r`hU;oa|{%*tC&aO>*3tKw-H)&;t4SidB%v(Dz=w08r zy~nT~k6O2NVurVE?%djA=-s-m&#<9q^EL^ix~Zqzu%)lR$FOd5=XxuDum~l8s+i;t z6qEe1Vv;|lC(Q#r+qd^_T|Z#h+&i!x5cMO~*SF20HQKegcblc>!eU+fj%^(5fzJN^ zzMV3kjuE$;d)93~b?fZ!UB6+(y-j;&`vwg2Hpj^{f5oXg{s#GEnf3znwjG-{^IFD% zK1{V?U_;+F!$4Q(Rx6+QVrMua=t;Ydb;bOy&i?Is(!i7E;i+^FZ0X#*dDJYUivyd1 zYI=3^@U4i1l@G3-@88h5wR`)99b488aF|x>x$@{-&#BuT#o@N$pN$NIVjo#7uiXp` z&`Jk(^lsM{Yw@Lg@%CYb6(JhFwd>Qa=UT8-^pu1YFwUW0dNyO)26}8G`sq4_L;4do zZL#TTyOu641xde=hfz?kB4de;7$KWB9mOI(799JFx5Ff$_-=ji>Ni&YZ&)zy883_9z*ya5A6Q}&m5Ln diff --git a/src/uni_modules/uni-icons/components/uni-icons/uniicons.css b/src/uni_modules/uni-icons/components/uni-icons/uniicons.css deleted file mode 100644 index 2f56eabd..00000000 --- a/src/uni_modules/uni-icons/components/uni-icons/uniicons.css +++ /dev/null @@ -1,663 +0,0 @@ -.uniui-color:before { - content: "\e6cf"; -} - -.uniui-wallet:before { - content: "\e6b1"; -} - -.uniui-settings-filled:before { - content: "\e6ce"; -} - -.uniui-auth-filled:before { - content: "\e6cc"; -} - -.uniui-shop-filled:before { - content: "\e6cd"; -} - -.uniui-staff-filled:before { - content: "\e6cb"; -} - -.uniui-vip-filled:before { - content: "\e6c6"; -} - -.uniui-plus-filled:before { - content: "\e6c7"; -} - -.uniui-folder-add-filled:before { - content: "\e6c8"; -} - -.uniui-color-filled:before { - content: "\e6c9"; -} - -.uniui-tune-filled:before { - content: "\e6ca"; -} - -.uniui-calendar-filled:before { - content: "\e6c0"; -} - -.uniui-notification-filled:before { - content: "\e6c1"; -} - -.uniui-wallet-filled:before { - content: "\e6c2"; -} - -.uniui-medal-filled:before { - content: "\e6c3"; -} - -.uniui-gift-filled:before { - content: "\e6c4"; -} - -.uniui-fire-filled:before { - content: "\e6c5"; -} - -.uniui-refreshempty:before { - content: "\e6bf"; -} - -.uniui-location-filled:before { - content: "\e6af"; -} - -.uniui-person-filled:before { - content: "\e69d"; -} - -.uniui-personadd-filled:before { - content: "\e698"; -} - -.uniui-back:before { - content: "\e6b9"; -} - -.uniui-forward:before { - content: "\e6ba"; -} - -.uniui-arrow-right:before { - content: "\e6bb"; -} - -.uniui-arrowthinright:before { - content: "\e6bb"; -} - -.uniui-arrow-left:before { - content: "\e6bc"; -} - -.uniui-arrowthinleft:before { - content: "\e6bc"; -} - -.uniui-arrow-up:before { - content: "\e6bd"; -} - -.uniui-arrowthinup:before { - content: "\e6bd"; -} - -.uniui-arrow-down:before { - content: "\e6be"; -} - -.uniui-arrowthindown:before { - content: "\e6be"; -} - -.uniui-bottom:before { - content: "\e6b8"; -} - -.uniui-arrowdown:before { - content: "\e6b8"; -} - -.uniui-right:before { - content: "\e6b5"; -} - -.uniui-arrowright:before { - content: "\e6b5"; -} - -.uniui-top:before { - content: "\e6b6"; -} - -.uniui-arrowup:before { - content: "\e6b6"; -} - -.uniui-left:before { - content: "\e6b7"; -} - -.uniui-arrowleft:before { - content: "\e6b7"; -} - -.uniui-eye:before { - content: "\e651"; -} - -.uniui-eye-filled:before { - content: "\e66a"; -} - -.uniui-eye-slash:before { - content: "\e6b3"; -} - -.uniui-eye-slash-filled:before { - content: "\e6b4"; -} - -.uniui-info-filled:before { - content: "\e649"; -} - -.uniui-reload:before { - content: "\e6b2"; -} - -.uniui-micoff-filled:before { - content: "\e6b0"; -} - -.uniui-map-pin-ellipse:before { - content: "\e6ac"; -} - -.uniui-map-pin:before { - content: "\e6ad"; -} - -.uniui-location:before { - content: "\e6ae"; -} - -.uniui-starhalf:before { - content: "\e683"; -} - -.uniui-star:before { - content: "\e688"; -} - -.uniui-star-filled:before { - content: "\e68f"; -} - -.uniui-calendar:before { - content: "\e6a0"; -} - -.uniui-fire:before { - content: "\e6a1"; -} - -.uniui-medal:before { - content: "\e6a2"; -} - -.uniui-font:before { - content: "\e6a3"; -} - -.uniui-gift:before { - content: "\e6a4"; -} - -.uniui-link:before { - content: "\e6a5"; -} - -.uniui-notification:before { - content: "\e6a6"; -} - -.uniui-staff:before { - content: "\e6a7"; -} - -.uniui-vip:before { - content: "\e6a8"; -} - -.uniui-folder-add:before { - content: "\e6a9"; -} - -.uniui-tune:before { - content: "\e6aa"; -} - -.uniui-auth:before { - content: "\e6ab"; -} - -.uniui-person:before { - content: "\e699"; -} - -.uniui-email-filled:before { - content: "\e69a"; -} - -.uniui-phone-filled:before { - content: "\e69b"; -} - -.uniui-phone:before { - content: "\e69c"; -} - -.uniui-email:before { - content: "\e69e"; -} - -.uniui-personadd:before { - content: "\e69f"; -} - -.uniui-chatboxes-filled:before { - content: "\e692"; -} - -.uniui-contact:before { - content: "\e693"; -} - -.uniui-chatbubble-filled:before { - content: "\e694"; -} - -.uniui-contact-filled:before { - content: "\e695"; -} - -.uniui-chatboxes:before { - content: "\e696"; -} - -.uniui-chatbubble:before { - content: "\e697"; -} - -.uniui-upload-filled:before { - content: "\e68e"; -} - -.uniui-upload:before { - content: "\e690"; -} - -.uniui-weixin:before { - content: "\e691"; -} - -.uniui-compose:before { - content: "\e67f"; -} - -.uniui-qq:before { - content: "\e680"; -} - -.uniui-download-filled:before { - content: "\e681"; -} - -.uniui-pyq:before { - content: "\e682"; -} - -.uniui-sound:before { - content: "\e684"; -} - -.uniui-trash-filled:before { - content: "\e685"; -} - -.uniui-sound-filled:before { - content: "\e686"; -} - -.uniui-trash:before { - content: "\e687"; -} - -.uniui-videocam-filled:before { - content: "\e689"; -} - -.uniui-spinner-cycle:before { - content: "\e68a"; -} - -.uniui-weibo:before { - content: "\e68b"; -} - -.uniui-videocam:before { - content: "\e68c"; -} - -.uniui-download:before { - content: "\e68d"; -} - -.uniui-help:before { - content: "\e679"; -} - -.uniui-navigate-filled:before { - content: "\e67a"; -} - -.uniui-plusempty:before { - content: "\e67b"; -} - -.uniui-smallcircle:before { - content: "\e67c"; -} - -.uniui-minus-filled:before { - content: "\e67d"; -} - -.uniui-micoff:before { - content: "\e67e"; -} - -.uniui-closeempty:before { - content: "\e66c"; -} - -.uniui-clear:before { - content: "\e66d"; -} - -.uniui-navigate:before { - content: "\e66e"; -} - -.uniui-minus:before { - content: "\e66f"; -} - -.uniui-image:before { - content: "\e670"; -} - -.uniui-mic:before { - content: "\e671"; -} - -.uniui-paperplane:before { - content: "\e672"; -} - -.uniui-close:before { - content: "\e673"; -} - -.uniui-help-filled:before { - content: "\e674"; -} - -.uniui-paperplane-filled:before { - content: "\e675"; -} - -.uniui-plus:before { - content: "\e676"; -} - -.uniui-mic-filled:before { - content: "\e677"; -} - -.uniui-image-filled:before { - content: "\e678"; -} - -.uniui-locked-filled:before { - content: "\e668"; -} - -.uniui-info:before { - content: "\e669"; -} - -.uniui-locked:before { - content: "\e66b"; -} - -.uniui-camera-filled:before { - content: "\e658"; -} - -.uniui-chat-filled:before { - content: "\e659"; -} - -.uniui-camera:before { - content: "\e65a"; -} - -.uniui-circle:before { - content: "\e65b"; -} - -.uniui-checkmarkempty:before { - content: "\e65c"; -} - -.uniui-chat:before { - content: "\e65d"; -} - -.uniui-circle-filled:before { - content: "\e65e"; -} - -.uniui-flag:before { - content: "\e65f"; -} - -.uniui-flag-filled:before { - content: "\e660"; -} - -.uniui-gear-filled:before { - content: "\e661"; -} - -.uniui-home:before { - content: "\e662"; -} - -.uniui-home-filled:before { - content: "\e663"; -} - -.uniui-gear:before { - content: "\e664"; -} - -.uniui-smallcircle-filled:before { - content: "\e665"; -} - -.uniui-map-filled:before { - content: "\e666"; -} - -.uniui-map:before { - content: "\e667"; -} - -.uniui-refresh-filled:before { - content: "\e656"; -} - -.uniui-refresh:before { - content: "\e657"; -} - -.uniui-cloud-upload:before { - content: "\e645"; -} - -.uniui-cloud-download-filled:before { - content: "\e646"; -} - -.uniui-cloud-download:before { - content: "\e647"; -} - -.uniui-cloud-upload-filled:before { - content: "\e648"; -} - -.uniui-redo:before { - content: "\e64a"; -} - -.uniui-images-filled:before { - content: "\e64b"; -} - -.uniui-undo-filled:before { - content: "\e64c"; -} - -.uniui-more:before { - content: "\e64d"; -} - -.uniui-more-filled:before { - content: "\e64e"; -} - -.uniui-undo:before { - content: "\e64f"; -} - -.uniui-images:before { - content: "\e650"; -} - -.uniui-paperclip:before { - content: "\e652"; -} - -.uniui-settings:before { - content: "\e653"; -} - -.uniui-search:before { - content: "\e654"; -} - -.uniui-redo-filled:before { - content: "\e655"; -} - -.uniui-list:before { - content: "\e644"; -} - -.uniui-mail-open-filled:before { - content: "\e63a"; -} - -.uniui-hand-down-filled:before { - content: "\e63c"; -} - -.uniui-hand-down:before { - content: "\e63d"; -} - -.uniui-hand-up-filled:before { - content: "\e63e"; -} - -.uniui-hand-up:before { - content: "\e63f"; -} - -.uniui-heart-filled:before { - content: "\e641"; -} - -.uniui-mail-open:before { - content: "\e643"; -} - -.uniui-heart:before { - content: "\e639"; -} - -.uniui-loop:before { - content: "\e633"; -} - -.uniui-pulldown:before { - content: "\e632"; -} - -.uniui-scan:before { - content: "\e62a"; -} - -.uniui-bars:before { - content: "\e627"; -} - -.uniui-cart-filled:before { - content: "\e629"; -} - -.uniui-checkbox:before { - content: "\e62b"; -} - -.uniui-checkbox-filled:before { - content: "\e62c"; -} - -.uniui-shop:before { - content: "\e62f"; -} - -.uniui-headphones:before { - content: "\e630"; -} - -.uniui-cart:before { - content: "\e631"; -} diff --git a/src/uni_modules/uni-icons/components/uni-icons/uniicons.ttf b/src/uni_modules/uni-icons/components/uni-icons/uniicons.ttf deleted file mode 100644 index 835f33bc9411461b8b9046b3fec742e921d6ce3a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 35760 zcmeFacbp?vl{Q?rN>WLsSXIigCAC7gI!S6tox^m`be^1}CwPJ>yxZ{uSzi{WC_=LI+*Wx!<-H!v})21fuKMZQ#fB2Fs zuEGwU_ZyDmuR3&e_s&PS@Be}0T=(JF$l;w=9Als0-iQ4lE^0cm^YDeWhnK#G<4!$@ z>-QZydhsP6Kl0Pv9Cw|EbP-?YO$@C;`+ zuKnR1zxV)MXnddfv56Dn_-W<%#_jZ^d%1f!hyI(6O8C!lXY}93nl=3f9^gzbYS03Jm0vJ;T)Z1IKntfUtypB#zx`e6wG3 zC5AhB&Me^QdH${3yL1otSUp#NN^cKN_yKnkm%XqxczWUgrT^Oo|6lL`SPy&+DZ_DX z1{?B^82rf|!cpSXHhg1*;kZecHy+MI*MqCu>g9T0eYieaf9edzAC9!tJL|pm0UQ~l zBQN;JaG!_sb8)VT%i=%By_I_#_ZIFh?(N(=xVtf?-^|^~y@`7RcMEqbcN=#*_eSmx z?)BVjxU0EqFm9T;Q`~9pTJAdTdhWH{>+qBtxEr~fxSP3Gb60T(xkKDx?g)33JH{R7 zPH-1465x0fg%5CGeb33>TxSiZCZa24wyO7(&Q z>$wfwMs5?gnVaOMxM^;NYvpFSIc_<(f-7(s&u0CxL#u8VbF$klItIryQ@x|5W z48lm`>dOtnnB(dz48rK+>MISxIOOW948n-y>Z=XH*yQSK48kbo>T3axcUVKK~8Y>od!W-aP?gVL3VKU-3CF5aP>U~L7s5+3k`x~;p%%0f{fwn z`wW7#;p+Phg52Ti2MmG);_4R}1X;w@scs-hC9Y0&13^AJNK#+l4o$3aH zH00`3HxT3^SEssxAR)Or)eQt$$+z7tkWDxWPSHIIBXb!IaW`m$ZxcXZRf;QpmZ#4*d zg{!~KAZQq_ewRVeHC+Ae20`m^^>-Kq{lnGoHVB%CtKVY~bP`v;*C1#ou700E&{JIf zeuJQ~xcWN{g6`t#?=lEljH|!fAm}r${tpI0vvKtY41$j1>hCcK+K#I~Xb|)sSAVZT z(12Y1eFi}na`pEc1g*%`|Ir}mN3Q+>gPp}tAE%avLosrF^GJG z`bQ0dZsqD9GYDFitAE@e=v%J-34@?{x%wv!f)3{DpE3yAn5#cz5cD!v|Fl8S&|Lj9 z20>SI_0JjvtVjlpxwFpV+N5QQ~$g{(D+>a3kE^= zbM-G81S^26f5{-&16=*f2Ej7m>R&MkHUd}wszKz<)E_qpb^}-cnn7g6)t@j3wggxI zxp1QBm2=klxXa|a&TVx+;Qp=WwVt{>D}O~9QXW)O>O0h5db_-@^8Ud$^pPT-1=NS-v_4k2r|_kM*0!vaW9xyNll~`AaKH zuPQxR4wv6t{%QC2?wh**v$DGKU?rS_5?F|crGafkiL7dNk-%Y_E4VmkSn6>Hb;SUukEx3l0# zej=BS$yT%Av8Uc*J`xpdRw>aQ5n{34Scli{%@0hjo|#!%t;CXMOO1~vM@By$$wu(0 z7+*JsbCF0c%-{dHFL+pQI~s3&zjaOf89{d%!`6o3fsCO(`6

PqiNa$~E4XJ#a8s%?nsx`&SiQ7Wz{CE9c z{`8HZR6KCoNiFA%;R<(H6}bLFzf?(SM+?JrKi`4-zoGT1F~-8`nx^V-CCOIcNwzPg zI#WEmoNbKdqI?lY^r{&3;lBduQzQ+^Q0Ovsdx3SZltt7_Sx&}T*-Yi_XK}hBNmrzk z`W5H7!&mhB=^p;ZXqR-ILzW%aNuB+jl6J_cC{Fe!sVl1a9E#$&!PeE+C9zxSuy$PP z>g$x)o>=F3@9E@S$%qmyN){klLz;R<&aXN8`s%G@phxt!K zT81!Qp!-;9h;^gnF6KqAb=R^vG3R0;DpNC#m4^5Z7H~65s*`2Ahgr3hz*s8zz3jfW znL^w2rs=k}>2KLH`CU6VU!(9>49tGDeYUM_cJpi-YoG1fXg9e`qb3tGIZf3~W`~Vk z+_(of9#1Aiu46~z_w4uX`$hZgrrCCVb8^4kY#uW^ag({{fJuTlH#}=jxPkvJG+QrO z5v;42>+VFqh{>$Q&3qOg)d0O!i!%&kY|BMI2ELfKh`wYcoAXgOl&XUaoR{scV&Ctz z2$wT{#MU0s`oe9tW!BtSi#avu3(u}dNLK$qDwpcY&#-uC{?Ex+MCJ2pZ*H zRW3zg|H(|IcZL%@9}m5s4~AMMT39UH6mdmtws4dwk^K+4%pduf#r-d8AfSHtKa`My z4*^|Nq3ifBz4`eV~tpG8L+^7iTDPsamOK1#B@gjO)-ZI3CcqWx=BQGQ$~% zsygBw9dTlv)~SLTP)*}^IDETS<~zDKU9`Eoqh-}juY(=-RbwsVd0)s|T2fRJa_906 zhtKC&dWrT&uVd}aO|i9|m5t@{#!BbfSkujG9WZ>1vR=pb`++20D+s%TWry87A=aAN`_naX(i{)_z54|Iq`U0D$tip6 z|3n-9QPK7pft4Mepx3XxE#2OpX8R&-7L(M?gwOaSr`92dWTpgVM$LzEojC*9!@)X( zEtM>h?CvJHog%UAC0SofWe3r$R1`=YFl~(K?OQ+tT6k{X<_+aarMzMDHy3vHy5*~6 zpI5m`PJp~#`6{Km`<(MnZQ9V?{Ux90GC3hLTPOF?EmvA_YTqb$3jT`{l>|O~NdJClgBS=^9WYeU-_ujXEB_^&f{hR%dzo~UKKRo~7mser=`7OEhIlY9BnTL|z>G5u zNioE;_w{dfFt1BhUD|JKeQOHErP5xf*X!IXc8q@y=PsmE7vfA?*D{;-YdXbzILD@@ zp+CKa(Wp&Y+U1R?nSm7h#NsjAvc@suX~<{r^lNl|nt@jU--jh%#6nfDkej&}NxmVb z%i=iGwJxz$4(x=g1#}+ERkBt7aqUELO%We1SV=d%d|p^sUJTB(*TrB6bkfkQkV>fyvTho_Wi?Iw#L**4 ztzO#7vk&{5oCP1>(z0}7%>|G3tn3lEd~R&%s_Ub^Hg~(n#kVeN&5h-)iGb>9^+v@j z*Gw*LX`R0--vhU3L4T0EP{9Q`g9~14sTeXi!Tz>6!tZ!xhKF`IO-2TL>RcP6VKebR zLCf^Q#@K+8q;>J1bg>xItx_}>RGBXgr3{q?1r7V7LMAN!Ll2lC>g#&@S%^S$cmCfh-# zKq|{2<)Cf-uxB*iYDpJA>W&10Caa6RJzSJbHm_=87LVI4NH(kYRivwyC^FLAY zHm17${cU{(*5#0W{=ky^!6Wi`&QM*lT@m?O*Wy{*MX*`^YVxpr^}Ua=Jw+ z6K?AYf-D1FVE9 z4-^IjflvhWp%2_jIH8|Rv3>9Wftx%Ew3x7_&>8+{3C{mN|gzhPLsB3nJv?^Ip= zlG7>myHsaC*y0t~>YwYkxm-57VW6>tacvlA@8c66H#qzuUe%kE|r~htL(@+TTHe8#U8c)MN(q6 zbw?Sj@fSTG(l(t;)049)dJB{mSgDhT$xsz`LH#Q)eF6I|y}+f?^A$;dzFo!hk1#-N z3(pTj=A-->*z$6&@l=$(Q4^lLWHwKQTyKk_kW%byA)|_$>b35idP!?vy;4)$=afH+ zcEt1Hr}|`Hqg7CLs!0cP^EDacfpe>e*PmNP>w1)t|Ec2Et0k#u8MK=eRT#a1{Z@a0 z-k)gy8lk8ee~sD(wykJ`4PuEgZ-DvP8QIPT>^={3+qEBRPumj!I|dvNG6x%%5`GCn zvqfTlH*-6*M}XBe`u@xO&*+(~JGbyC8+B|yE8!*lmmS*Y^atg&@7p0U-3~V9V5dCv zrpB|LUVPQUGf~c>{>+rP@F*K(DrwFfaJDlZyY?kKjCb2vilyywKf?hBUvy{>Q$bma z_AiZs;$<%`C#u?blx?9An1xkQF5^L{Wupx~rxz5jqJpBtDVB1?{q(8@Km0!aQ;;7j z*F>0XCM9IMYf6&}3yBv}qQ9y3BAG_=jN}^6{{7=t>&MxbY5UVh?z@j&b??28 zD8l9*y*wmoA#wC_H0fmuEC2xn6bR?aBA)vx6+#>Mm<>fKuPc?-?WIjQ)tgNAj?;$! zq*iyv9oo;0;)Jg%t-El2skHvWbtUbI#x=Nb!4`Nc{~S==4tP*YDKf$U-ihSuLI;Ze za+6x^7U1BySvK7y6iM^L)1#q8ESc+KSsmxAWyvh^21N3h%cX!oH`AGJeA6l6jpd2X z!S=rQ9G~njuinEP*IP#OyoEo!`aUOUf z?4bJwUT3r6$b{^2b(+*d)XLs^a7ky+_A4$8mh&uV53|u6&mYcfzYGQsF4@kDJbv7CSG1B9&E^hOEaj8a$(8y|+80@;B6YVU#uJ^se{pX=mGXTPl8R)oy0J*5T;Op-cx??be>V)^0B?+s5-b0TsTL z*8=XsbXz6~MEatU)A1DUavsYuZ!o}0sKcSW_Ul0KqS395D&5M9+9gdHT%~6-fRC<* zzV;$UO18{dU;M0pE|7ag9x&N=CBH964mvqqJlnTveW|;zju5|Hs7~z#OFHVa2$5~ zR-A6mc6F>=#nWc{x|!*s)#M9U^8>?^E60{B$8Z~4Iez(ScS*5HbE4liCrL_|XZOVP z8vWrq@1OaJa11&!OSHE1lfhrA5cjI5bC1)1l3v&U{MD{TjDGv zvFw#6P~b#nY!HH|1eARq~q+pf6DZwntGcp^Y_@~u#Lalri5+tQ)*CAg6ak_-@j^m80cy*o%rx@b3aD7E@#fn3kL-r9#}I)4xtNc0OSl@3rt}k zTWER|Sx8|tmoQ${66{{1@6tZqm4tUIT2k=bb)&dit~AU-bSuxS9=?g^SC70XnD#arKpVQIr^`-M& zg&BWP$ETj>Z-zM?q!=~9-_ZLnK=5R$C#t!?{V2J)qc1Z&Gm`0Vx0vK6H5$!Eqo#aw zzRXtJXSy=O+3awpYsRj9u#AKJ<Ys=EfHB(1cz^vvU7&|duoE@6#Ef#yHhGvU+l6HHuVTVr+H9u7tDBxr837F+t z{(oaXOA*(M3b=qLfZffzc$og8&eX$jNXk%1oeUg8phyA^AK}z#v8tkN6HwOt7e8%@ zDW6$oO=gqURi9B}4y)^igy2g06!$yd=~BE&w<&Rh%R2l9tCdfhO#Fj(hah^#%&PtK zCf>`QkOM;G-Gl|cJ0b*9Y1j3iR#JZJx^-56O8NBl&SuL^R-gSbUSJz7Y%4qUI?2VN z%-rx1s16y5qh|n`iuza`W?@Vx2scGbL=x3RVM;1^6he~VS* zlgvyN_A%@F^{9{f&}*IPwEx`tHao9>NKN_QZr;QM{xQ4XdJ{9FelGj_1k?L`<_I(M zH(CAmM|l(5gzzWC7H#ytYeucn8GpOhudpf$?TzxKUeF&XAN7YJLl>~KJjTE>%0OW7 z2YoU%ZW1gG{1xiZOo$qcZHP(&WnmTr0Tipa@?2O=I18ekgQ#^vXYr34I9l;6u%?|L z2sYlGU~g>fTuQi__0(CQ?KQ6mVjE6$C$u}78V@^yhw)DXXR}>@7I$M0y$Ej8e=cBd z28KYE(|-d+5DgTCoK}(6n4KQ7995F#tOfs{D1)j>vebD8xF~`!5{L9kerbDb=|TUp)|kMz zr>i|JEUNud4s@;AwYnH6NH$Xgca!)A?)HuGLKv8w-8TRIF2U*m2Ir0QKLP%hE2b^2 z`BBgCdfUMU^u`X_HjS#i`POtd&vGq&{9w@Yovt-q_|nGwHR$?oc%xoM2g&-IL6bA0)D@A1xbF45L^*&TQALG4pN zvWJ7tAKjV0{n`HUf$|~Qv%T|(C7p<*hdMJzf!AdT#h1H)+Yce%X*F`W_ELWm{DZ-Z zUi5k06xAWf+s$N{#^_XZrwpR5Eb9oBnuLMZ&sb8X03kEF7j{%8>4PmrU7Slp((19^ zq#l0j2S>2${5f~2-Ievbb3JBZUA&D~+~!y@u61It^Bymsk8knBn%(kIO-ltIX9Jq{ zxIf8jU)FwYwcD-C$5v>+W)$F4qk!$UCyOb=zAH!Y9jk37U&+aorNv1Hr~GF-ccKXyOd(KS=@4 zli86>W+ZFu*S6Ja+t|*Nwe8jFww@QCf1Gi2#~Ir4<7!yVjKHK(BT9AK5xVinwyJ_S zh<-4vz90KIr+2l!S%@3x$d_)YyyD0K88@QN2o!#Uv<3wC%7O_ymK+=B6*%6V9mjPr_bjc+&_p9?e!mA<7cJJ@Z@kt-z?VIh!qb}7UJKH z7L$brV+Zb-peyNYPRQ2C4k8mMpb{5~5HznWmYh8a?0vt$vq{0{($=~B{3MJOw#V1$ zx{fzp_{t;Al}~#e_A*QwUV9tD{4Tc7gb`v9HS$EZpSg*bAuTIgpthD0BM;tcow2b?_h*&8lGKumTmVV6wJzc2sknS3*-Bu zi-M_CkPp#T`$kYMcy4k~Y?#Sw1>m(Rl4qc5!TTN&gmC~*`Hq;Y(0A#>4Xbo^?Lq!^x}x_d+Q?(!6XttF5UX+ zKu3`Sg?`cx!1aXwfkA*Tgf$J@5sYf2$B-)vi3{@qB8dI2yuO@Gt{w3zR>2pty5+WG zgX^XyT3dNJtnw_?bm>e>#*qlGU=LZX-?j#<2VwMC*FJ0uYFDNDQmMYBwBesGuP+tm zBH=-AKng>Nt8!~Q0xeVPoDo%!oo;#c)Z~FsV(adFI;Z(jOgv}}$+k5QTiHJ} z9)o95oq0Xhd<|maY095yNGB8<6@)%VMaz0j*6J-&upSiJ3AEH)!TnzKR&&?V!=aGvuifZ&J;R2 z3Ny2t*33>FD&R^=8N%fYHpp%KL&&UD^tccBuLhSc2|O2RWbLp{Wv>~&G|)VTv=0;& zV~P38Jn#3jes6XDGaU*W2>7)t8K<4G3Vy5gjJAbe+M#Iw6>Oes4r(|1}g}L z5t;_pBO=)(z>QN40Ew;HzU!j*)Y6fwV}57Y9TRP$q$Fa)!LVeq#N00LCU3^uD)$Z4 zw*SkHp22~9OIqFRb>Tv@6b=r@5{gx^#NA=1KlYlaqSV%`JFs(m!?%1jKacp_ENrwA zNlX3BR3xJ`I7E(dHV3l?oob2mHH%(QBWgx6mQKV?bT58@gDw0+<%zg0RX!f+3&fq# zn!n;V@s@aiS68G9nVgi2u?s)@g|(Ag*4Z`-RV5IKWDs_iWfcIhGRyx97N5 zPOBZQ{q40Th6lN3?9H;Zjd-;YCk9VAkuMxUUNKOD8Volu0r-L#0&qM~u>jK4%yK|v za<0Zwxf*&47=b1IGk$5Qa(w zngidrd!~A8?ABwwHSPE@mSIk_S^J~^UUtWm-(YuYhn{>wtD3(@-0?k{KZJkCWPeHIsvp1CxEiBfYt5T;t_4DCjQklSkX3CM@Fh;H_x2zCfe1$ z*)ud;+kMRLF4*jA9kM_D&54zcuAae~_O05I&2G7%xHd1TJzN_c=y|xdWUn2m*1Aka zF3f2(u@^}403m3^xfJZ}z>sfbc&Q|l7jVEuY>-?zv}*%E4L}eBS~haLHg3{$xG3vu z->R{JM7B^UOiq7jdaAXpHJ2C|Th-j3O7~Cnr&$V3VC05%cjHlwEHK7}1DUoX0~_g% zw$`cXje|!D&B5?UW;74;7)Ek_6rRh1+&G1p9CA(6v!av|U`T2dv$RA1vs5nj zJJFPt1$+D8NP{=Yck&t%{=6A-s;=l4o(I(9u<#MMf7mmlnjq=^W ze;(1VB{W+{mtw?Gkg>3W7I_V+F9ySr{iNGTH9h)>{EqHwAX!Bo2u2%4Aw@G-gB%!Q zU`PX;(cK-3kG0xW=Z<*)&h0MICb>Lz@MWcaq*puIvt&t6#vO4;wQNgEmc2gP@~PU8 zc^~`eW}C~twKpmlO4EdUn4RE%HbiY%FIQ6_sqk|}F0mV}iPFAz?pUPG$*_CSCB zjCJ;Dcim`bKKF>~X|c)ZMhqdm@!Xur)?t68RGD}K4QY*|hAce4v_K=AcOx8Lu+ z(I0c%U~jbZNyv@>%>jaTCKOfA7XS~D+JIuHcGvV+3J?U@zgTYF{w9+g+=d_oA%v(7 zL?QpJ2jrsi50W<`UE_^-uaP2Z%!MSscq=Q!G+(^6HBK3T8S;`d?AHcV&rd!e%MT!& zFI}VEMW@-`YY<~UfCse3wQJ}mb}HVApV{H8c1`2vQvmrJd7F14$0VlbzAVG6tIeoO zDbT@#-y8OY2o=;-LtF*)FjSeE-b zLNVEY9-J~u+D`@t*hhx7+ha|*@H6qm@Ri!gl_&!2=jVk9@EB%+Wh{{1X_{Dq z-q6LnZWuz4Vq{lH$dhy@xjM}BFI`oM)OU2fFkp`%w}By*JFZ5p)}3oAmDRgMmEH$>E8&oUUv9HW;9tk`UT-$n)?_2A!D4Z^WxK7ZEtmBL zT|UO#N<7=ux*@)G*=$RDTg%MEwx;zhUD>#TDNu`JShr#R&KNes#>Kz}sz#%m@Kik{ zk+~|wj zZ^Zm6ns0?z;c1l1iarlRhZQiE=a3b!9qpa6Bw*gwk~tqq&|KC6Lm=RX(#V<#yslNV z=^7z{rD_g%5X@VY7~%$s0c-;a1aaWYfNlE8ZU(gKA4aq#2QVT4=UimZ3W$XF?MiE( zxNG_PT=v(z>D?LHF4yL=)?Xu#@9E!_W^>s27{65zPMi3x{MnuOuW;gt%==9IExy_A z`Nw>7-Ddv1X8u;+TzTo&Ggdn7(YH@zf3SQ*E`uk3MZf6ni%+^%FdoU+ytHI`vvkcPrbdA$N zkTnoMFsI*4Xap`q`=Fu7BPf?JbZTd>g?3uFm^~-^{jx){y5BCCcct-fmsxnb)5r3X zPfRv9Cq@*dKP0b+6Lkjr)mpqomPQt zt0X^lPzpZ;{RgHr)kwUOdc!#;`FUhX6q6a=-(q*W?Y9@wr_+Vo?34oad9UYEkN0!m zmYi-E1~7B{PI4lb+2wYga;q+v>gK2BpQpCsO>V!Z)LbYumpp#=ez&T+%kxhlU+6B$ zgG{Qu4m_B>-R^Qr+FrXSV)q!QJTycaHq^EJd!T>2Xa?|Q$?>$LU#gz zcZtFlq=B9B1SIG6LZn>Rx5_2HsO|pLh!5Im=!24hAkexW{SjC=o`#j}LTU(~=LBg=R;K2tUd% zfTc{bEt?}LUDgM@E(D-`_EIb^(txv&DMArrOQ612!*z zr$xoLS<<(iZs|%&slHNj&vW>)yIgi0;Ge|ZxJA;p^M}k{{T6Jk7GA--@D@dXqjsb5 z5=DRG*Qhkeo#$NkD;kd~H||w!7g;T4y(C_<{&epR=iX{FYJjKW*`LDAJ`@X&!`Ii1 z>L_|`=(@$X-)TOlF2++EW$ry&F?8|5yxYey!@39?Xf3xBk=BdRyVR-_bkk#|S->!4 z10jk5wF6tHRxOfq2{A*q55x@)bs(uD&JXbzuzn-iAE)sI*sjRw7hHS?PR98hx|KL3 zO9_7Z4*wq(S5r!{dNLzXhdJugez%i{f-lm8-p1I&0&@SuxT*GSn))(VbGQ@w949SsbF^ zaEd1OVS`PJ8Ma$!j*b?V|al&0-PwyIAvZ#+0#}+@jNM(f)TRWzF-YWhRyx%Cb1# zzy?@bQu|r56HhX;ARcu=@16aZ&6v%S#d4?J#Z1!{uZbSiWBHRTIFAp^B2>PHJQ%jr|=h{fKEEZud z?9A+d-Q{a?%IQ?8Ga0uE9-n9yMYTDcaM+>&yE8_qmVw|)A)S!|Ag>S2V2TGlhG4V8 zAKVU;JK%y7jalqLRf*cIcDGrOtjVxnaY?Gjt%l6;af{`n{65K^@3foyvA%bzs7<>BYm_1q3Ju1 z+7UtDjnMnuR*TJ!%Wzc#*S`dPvyhXIAwob?!zuv6N%o>_L7RGlEbR#fW$o!8VrWl$ zLM-TEX=M2ZJgk62tl$X*Jlb~yIQ!3@0P*f(9g+KY-a4x1g1+ag+CF6eG*yPGiA43K zRbuu;b%eDuBw8yK1Sh@ZN=y$cQDYH#0>cYj|s}Y+>1Yhn~QCg0^p;Mgr^D;00ABpbQ+IUZkv}61B0FqgYH^^OLE)g7BzN9(T;GtpuQP|&H%>bBmWC;n0 zG$7rCJW+!BHyy!d=QGbZnnTV%{mB_>c0BWpvpMK^=4KpmJo~IeKjO&X$TN;$#_`Nq z`3F17XJGRr2wpV5xr~8QDI)Gfjya4yeO^9g6QYlcPzDg|Y_EZP6MWqmGy7iWRHb9b zY)Zs>{Ddu}+KwNSRM?@%kJ%VzJ8xQ?4UNIm-Ti(2)NyM>k&Ydg)G%EgR;A;|;enuV zix_V!r_qiw)?PJ z3qFhQw+k_3h(%~6D71VdPaPu}aA}TwWYS!CyI`2qC`lE33X{Duq>pO?8Zd;GyyL)PPH} z&1wIYM3U%LbAl**)~ed=&7S#xwLbqmmTbs)HAMvANaGEdSi_!}{O^vpb3_xIr$ym} zVe03x7{W#<0))AqS_qWwZ^XDTcEF5!uP2N*S@W z%?KD_XY*5=@HBk@ez*}R(~X6;`{@qI+k=Ospd!(IVLZ_qRvLAqIr?72gJxc)ZYn`k zBninV%7Tkv7a;x*|AG!-uFttvk!2AEXJ-)pL&?sq-p(c$Vrw=hmQjh@ELO8M;1R4% z>0%|FRh=onO_H5*D3l6?1ga2(V&i_Q8S6}#BVLc}wY$_nRP|UTfU^#pJ*Ij?(avO0 z4!G?OkJ;fl9!LcPX_!4aUOX>chrUbeb$cOik+X_9Owi6Ed|doO_-(E^@Ozz~ZU{Sx zpT4U29qbMh;9~6tNig@pmE-&PONoj8Ai2OqPDvWDKonjHZZv6!9Del+;3#9vF4`k4 zgcH4T`KDW;0L&<`_LA84dCis$WE2|m4uhBM#f@(HG6Zl`ESnMcTq>)CjlI;QfoTb` zXWTqB4f)qvc!TOWD#zr@=$6Z{bJU~iw$+aX8TN-;Ups}Ifdx1O(nkjcNZyT z1`0fZ1RP8HTm1GTN9Nyogo(}N@?N@A=XQ$ zC(7EHSlGAS=O1`eAaG|j6w}Ak^TG`HErhHl%z;AEZU>K+(!-_D6^prOjrmv=Bs0No zBfr8TcGr^RvQu>u4y5paSFSr$3jwNv|Z^T6a_Gkf${ z?*+a19Lq+uMx=Y?V9G_QS^-97(D z-uX{XTfydVI9;i(6mvOD>}NAQxO{uh4BU_#=`MD8FgcT7iX}7hGuldax%N97@JZ{G z7;@8TcgV_u5D$$Q!fW{_5Nm7&Vh0HUt0E^?p(Y4T%MsW{IHH~{jEZE=bzT6M6WgE* zEFwlA6g?oyq7ifaC12go*#0?;kg(I`37rmkoUSki%*;M^y12TlYxOSLeAZ~t`Sd_~ z;j>{c+ql>2jJrh9YH`J#*1g(;dk-LAp3>T}VJ0|UaKk*oe@gc^>vt_1Smdcwd|jV+ z)k<+`J+lBZOovBdsZmepi3C9Ojj{(`vcpzF{$Ks;xz(%Zw2|ejS1S=>iyvK1WyOu zE+_TF^xl2JNF=!4A8~|TKK})NAG#;v->92?|IxL&vvbu>Y*u&u3Jx$D{9n`ksZ{?m z+N8JaVe9tT9C4RL6wyTv+aB%xd%D9RwjvakoH36id16ip=Ho{~;qK1W`g3-!?qZlq zulHQwTl6G|0%Vi)q3aefAAxdyFemzzYpDgpyWzcbcXzMfyl8lnEv@4pGcRvz8$N=5 zAQldJub)BhA0tjXj)k zJmp9^5LCb3LB|*SpLo-d$)l7bO>`80AfG=om;c6Rj^Z*XLf+rFRK_U+UDyx$`IPQm5TD8QX_z83Tw<$q9r{kQxk z%FkNlTirY}V2DNMbFupj7moa<4Wq}##*STkY{`;i6?E|8rTWfUuZb?zdvbQkvFqq! zY!-NHg#RICNKRqY5xQoWjKCj&AnGQi9zQXrmM$W05EfWU5;9OfBER4s8OG<2>>j5Q zPqlYNFN(Ie=73qX_&gS+YgI?&qF7fu4g^|c_HVgDxYQHJDvM1fe>mH!pKPn;@gweb zeAR3cB}>vQnM{(>&JMa{vmL)J`tP>+57<4wv{~G;C^^|G$tp>fCQ))|AHi;eS4Z`F zy?m{55Z^Rm_S{-M?PwG{c2T6GCEqBx+PS(tsuw(nns}m~g~C}RvtGDE2xp#Cy7u`G zILI$GFfXk31{?s`bdu7@DDHx9J%Ce1rV0gM@QoD|hGF5-98UdP57vOQf$Aq<&ZC$X zv9`z`ajd;HP~lmyEz*|oVC^WEH{*(x!)-yv7kg52u}ewxmIXSWPhfFNr%MgHQ^^RO zuM7p0t}bOjUy%^Y3$nIZXChChgi>EZ=_)G8o|1lRDdx)1qtostyoYWb2q}1UV6dvc zI+=2Z>CvBWpV>@_m)I=u)G7YIfYGFovS6f$W0an&>xIRfP}#L&7O<(*Dh3)=qd-)x&Nv%i0z9wf6M1-p?*%Hto+18ToGH zswZfMy$vouxeTNdWPK?l$O?m(sR^^@t|IwHlCM_5gPyR-;tF*z4{!6hKa8bq+)k6_ zqYL>5kO38}^?jPwWX~Y&Wr&rldUkv^hlJ!BmS04m54HrdG+bD4O#~Cbp1^zo3KRJQ z6dL*;a*T@V>IN%ZxbX*Xxgx`$*eHGZAF(ADLbK1 z8W}cNucw`NI1_8vegHhjhYIKNTq#lr@!+{6cuH>SEfQmdiRUPyA9g2GI!{&y12XX( zCNMCXp@3NkkvuKTv2r}0A75e?+olUnSJT?H38#Z^U(qQbg@@j55v^S-+IZRAv~fd| z09?Cmd8gTw4Eir1mMwrKOTA#(E;&`xSvFjbx-#_Uv?tM~zq!&MB5n^1(P$||43>3z z8Q&-d%2I3;W92xqQgxs7ufUQt$nW!GcZ3TpIKB%2fmwI(UvL=Dg3`w36#q*^2E8=n zJ%a#E4vBUd#BF5q(`itcG4dC~)cmebS{wH_yMy=lMKd?UcXtH94)ydnAC>fqZDGt9{k`AjG4M7;`!V~r_7WOr#c!3t)>g0v(?C0VhEyn6w zc#BqbiklELHRPm$)sMZ5jU&K4D3{6&RM$wdBI5&q$HKG{!&7tdV068Y4D4o6C60H@ z6wKy`#p$<9TbMX)^*Y6jNopc@cchl^AVH&jIo6+QSVTIsLFf&jjpOah+ajXRCC-R` zaawfwEE(2>JibIzwFzkv60K+j*w5(is~fr>&Mw(8FF~l!kC_@kp$;d|S|-L|g@_^~ zN{{kUE&$=?Ir8k8wh;Hx<2sbix@q4A#I$sj;e)i^7(oYG+uWA9cDK)+z$(AACZ;4b zi%zdNWwA_(KBpxjwNAGK%Xx8hNDpb@DY^+btpgCOqhon{`&|+1bnbO`V)=uD13aIKI1J=%ZY)SSk9@GrwO5l53Nj#ygABwrGOr4+D(WR z{A;+gF;=7_G{q0rgqZe~hj>^8t2>(#2bXvcEx~NQ ziTu#eh}UPbC2Ymkd}n*ErD(H-0yFv4(m=?(OdQ^Q@ooV5=hln-S62Y}T;PPeVsF>pem98Zg)?`2{{40(!>$ z27GfF5VgHkd zFMgd8MtZ*X7o|nfo^>FgWuXBqoMO*HCaJn^?9kV}g*3%Wftv>wu*bBXKS9S9vGTJ= zEIO`3D@j~(dte*uGIkHECGYhW zHLoteAA_T}rRAyeRxtn8E*b}0y8;1L4g`aN_O0Ll9_|kOd7q+O)+Nhhr&{`2@X>9| zzX+QIE3Gz<#r?2|29J>lEDOnBn5@VXtYys4pd3d0=s*%GT?e+(xfa}?u=KBN((ZHezNqtAtIutFHaZmwV^y17P0OeIeEy_%XQ9@8U}fCp zqWb|dqU{@FO8?sc86CabOMm|exEvOtKwG}#F9hgPh;TYc8#8h8dHz~Jz=HUFmIN(b zb)IJ}{Otfd45AoqhRgoO-w|MHIHWQq99CcUFAA(z!YqvCo^cIxz1$xch~snykK$kS zM+Q1^6rX!u__qdT@V6C|NH`nTe)*z5I?zdP3bAk|(in@cfi#a2wnsXt5s##adW5c! z2wcb*&{wE{l>rljeWtiI|EMb$az2ts7Fw1~Jvh0n75|n^t{o+GN5_Nih({lFMRLwZ z@)vZkom$pXSiEqoaRn}Wi7fv6T9I!ijfZ9XwYm(Arv&Yv-L}yOjb}})s+K10fh~4q z|3dIG5lStryzb(|Px`}9YQ0O`&Kne<>jvMvj{iqk%p&4IZb)RHikW0Z|Bp4CDy&>d zR~p1N^KJ9rHRyTml>Tqs`uDG6Z2kKA_hRS$>vcQn%wLgX>p`3WbGP;U55%N(^+u{1 zDImI&1zBb^E7pmImjfke6}8P)F1 zOem}kc@^K08~yz%_?9X9`$jY`k7j(qv4L3fVJ4KA&g!NyY3Upc%X9{5_B0YuQVXum zvgI9ELoX_}iQ_Hot#T046J=i^*W6wyw)Zlt#mjzx2y`AH5Niu^uzlIF>~k$W0a?2p z`C2R#n9XD6&WaJWFEq&Bf~#!W0c|?&B4l#3DE~{)i;{mQawKFD>9X0bVzw@1v z$0FLCeqNA7r`3-2^B9YU1HDbD(C$EzvF7j%!M2n#T(G9fVNux|EhS9$qhgl*b=wvu zaQIsuKxfW4!hWYi^_p$N%`J(5)x;u7Au}EhM0vJ4oW_z6AB<$wRC}nkeVEU$JY0x& z^@SPd3lC`@W-A-@raAvfea^pLQ;O<9K5ruWN2 zf1Jd+fO>yql4PFLl28X~wS(6=$FNj&5LVQ~eR>Bqir0vc=(!~*XO+4SJ_`Qujf-W< za$4X&uW9HH2LP{^?~k*+@p65kS+;HAQ?yb()=dK}K%L=LE!Kt32&;N$LGog&ozc?h45T+ihS*B&BgBW$D~QX#6FxNl!j-BgOBvW5MbJnb>IS=u?b^TV zQ}~k}pWMBF=+IbiXL~H(-q|~L2no}tuY1jF;*@U{5=V09g0o3bt5 z?--)uJKmP8_MSs*E|v0s^Xm=)iNlU3zwvdp+xF$huz21c?QXa2(Ju+w&fod{zaySq zY@?CC*-8N&HG#24so`YolbdQJ$pU?9{57cT%eCcL+g!2Ik_cIyNaTpdS}I+0ZN;`# zQ`>m6U}4*)R<@O1rn#qTYdhoq943TVoq1opb8T&U&CKkwA*_Biv}|@}jUlg}7d`|V zsDu9gUB;82rx`hJ)b3w zi;P(fBwzWDwX}7%Z=A)<@R&&m2OUC22stlyI4ogDhgY&!Dx0<(ynHw23EHB+68(-$ zvD&?9>%mJ7IQ~y(*BTqgRfTJRu+QGW1)9|%yZR4O9Bf&@bSSzbaF ziVferb7$?O{ZZld&YpYjxp(fId(WBsIQJf$`kz;)KYe`fQ)3&3DXzBn4W^U{r9bUt zQfIMzJH`%m-@Pr5tOhfVs!F5r!NGJ~T|csZgURNO9!2_GdY6iK$|rS>c?=j;PCm4L z^ob{r9(p_$8_J|IeX5g5D&q<>iwR{Q_HXDUyeWrr#V&kev46gH`8B$a{<6G=(J-6S zzsFxhdk*~;ZDymHVWxU5G z53b8!x>Vdznq1N*OOKSUTtUA!f8`3m$=HcYm-6eTN;{Tz#|Q7cyO1B91mQLOm39;- zM`Ih;u*lK{N=~g?bKwHO-Ni9g(rEyZ>=)qGeP9fofz?1NhN zv)wU;ULPJ+^4Q+B^m}Zj8hkdDy)!g1ROrXhn|2PBhw%U2F6;2z4`aVfcP?KT8SUuH z<~oPRMqW=!ne2w%TsFP*(|(pCzbB1`nXk|9s4ADbNb2G=-oaV8acTODNyaf|tGv+gg_fM3|6Z;Rp zap(X84jeMym(uccvbSHo5p;-eq^s%ybH!mh?%Ye zi=lT|rwpTz$rv9^!a;@7k5vnFV1;ijW`2WH`0?&$eY}t4TdUdA8}BJ)%4J0!fbeHF zmNTUuxwJ{9U2>XkDyjGsr3SFP^?!Td+MnvqZrj!_^>*Q>vun#Rb#_RvW)kf`kcTF% zmU}K5SmmE9l;?A?zw&<4$Jr>G&4h7#sBlt%85#*mYUjpBIQWV!D335{0!iNx5A*eV z9{zq$^2pU+T|Ep->+Htzt8;^MKc3i_T_|FEsR8;H`+lQ*Z&@7Z&H z`ew32ee>kLy-z>Aci+i3)sB~og&X%5bGcif@4l7G74N@MD7NbPGR`3@VVCq)<{Nc5 zQZyeT{UdxZn!`*JDis>z@tV*p*GYit61`BXOT>140DaY5O5s$-w0R&{6_)H=wH1nUoi;q*bnL>%CN@T>J%(*~Q8xZU zZBr0b3sui)6m}y&!?K)$>p63V9!%7Oz};Rhv->dogzhx3iOPd>VhzqQjkZc#0nUsU zaW&g?xO%o>h{UeU)w>N`g!OU!n*rCw%{B`uy${6ROFa#0<}%*oxfL+Tn83#5d#Uz- z%I1{!md3{>(Hg2Rz^97Ru_+b@YO4T~w6J^zN@4*npaNOk9P-gYJpl*NER~CCrZPU! z^F;I${5hcjxsFDy^9|Ijf!*_W17`)r308fCbu&ufked|2-kdV%V!@FEVJiq>8yJ?Q z`Uvkb!t4e*DtUA@*m=_h8X{OT5u_TvCLScrB@+$^A^1Whb|57jaM31oN-&>FTX1&8 zR@z3}u{QJwIx&x8csvCofX8SjJx;r5HzSkx%YPN4Er!~tmf~;=@foa$L@v4b%C9O4sdIbA*#}%;Z z2U@i%0;vTv!lzxU8Kv#2I#$K-#=5nMIBC|lJts-EH3jfNX6W-aIL{9H(EEBDSYv{F`SR@3L( ztB!YC^S}nrb54(YX00BiLfA5@K_Ud3uE15C)3!3}1cB3#Ic+>}T!~S}jYT7cuP9`a zfxe~r_0AR)mEVN65wPMJmZMcN4Je)#x3dk+9d}K89E!qpeWP836VdY}P&Zy(v#JsU z((EGgOGIpz7?WhqLW$`di7`;JOnY8k&3T#Eavas0TB%Ek)tkiHg%a{iH5!^3RfX!- zomREVJRtM5NHa~BF)3nM z7*b9f<{8sQ&JEY`jo7JESynl#2;=VJDcN_Lc0~<5RD?*ca+CFh;Ad*4a?2i+JafbD?lVoGV$Q8G3_@XaJuOs3$xMqx(7btGc8L*Y!YDy6RV}TS zW|t_l8Xhl-tUC=n04@=NMRu=ZmcXZ2s}FTl9AJl#bb)FYK@|*XR>s3N(HjP$3KFCp zcVly_QwS2tGb&Do^C@bwX|$V2N~MP58EJNj=vkx^(kFQZ=#bPzq*@gpkEGYrEY~Q7 zW%@xU7bC|tB8}Hs*X+tTE3Y6+wh$d0YDO$*7eTd-tfPuaw(^rXTCyC+O}I_VVp&SQ luGvs>o}boN(j<8GK{&G!5S5TA{}l46aGCZcmWaKH{|6re5*Yvh diff --git a/src/uni_modules/uni-icons/package.json b/src/uni_modules/uni-icons/package.json deleted file mode 100644 index d1c4e77d..00000000 --- a/src/uni_modules/uni-icons/package.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "id": "uni-icons", - "displayName": "uni-icons 图标", - "version": "1.3.5", - "description": "图标组件,用于展示移动端常见的图标,可自定义颜色、大小。", - "keywords": [ - "uni-ui", - "uniui", - "icon", - "图标" -], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "^3.2.14" - }, - "directories": { - "example": "../../temps/example_temps" - }, - "dcloudext": { - "category": [ - "前端组件", - "通用组件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" - }, - "uni_modules": { - "dependencies": ["uni-scss"], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y" - }, - "快应用": { - "华为": "u", - "联盟": "u" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} \ No newline at end of file diff --git a/src/uni_modules/uni-icons/readme.md b/src/uni_modules/uni-icons/readme.md deleted file mode 100644 index 86234ba1..00000000 --- a/src/uni_modules/uni-icons/readme.md +++ /dev/null @@ -1,8 +0,0 @@ -## Icons 图标 -> **组件名:uni-icons** -> 代码块: `uIcons` - -用于展示 icons 图标 。 - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-icons) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 diff --git a/src/uni_modules/uni-indexed-list/changelog.md b/src/uni_modules/uni-indexed-list/changelog.md deleted file mode 100644 index 08fa71cb..00000000 --- a/src/uni_modules/uni-indexed-list/changelog.md +++ /dev/null @@ -1,17 +0,0 @@ -## 1.2.1(2021-11-22) -- 修复 vue3中某些scss变量无法找到的问题 -## 1.2.0(2021-11-19) -- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) -- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-indexed-list](https://uniapp.dcloud.io/component/uniui/uni-indexed-list) -## 1.1.0(2021-07-30) -- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) -## 1.0.11(2021-05-12) -- 新增 组件示例地址 -## 1.0.10(2021-04-21) -- 优化 添加依赖 uni-icons, 导入后自动下载依赖 -## 1.0.9(2021-02-05) -- 优化 组件引用关系,通过uni_modules引用组件 - -## 1.0.8(2021-02-05) -- 调整为uni_modules目录规范 -- 新增 支持 PC 端 diff --git a/src/uni_modules/uni-indexed-list/components/uni-indexed-list/uni-indexed-list-item.vue b/src/uni_modules/uni-indexed-list/components/uni-indexed-list/uni-indexed-list-item.vue deleted file mode 100644 index 19284bd2..00000000 --- a/src/uni_modules/uni-indexed-list/components/uni-indexed-list/uni-indexed-list-item.vue +++ /dev/null @@ -1,144 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-indexed-list/components/uni-indexed-list/uni-indexed-list.vue b/src/uni_modules/uni-indexed-list/components/uni-indexed-list/uni-indexed-list.vue deleted file mode 100644 index ee3a7ec0..00000000 --- a/src/uni_modules/uni-indexed-list/components/uni-indexed-list/uni-indexed-list.vue +++ /dev/null @@ -1,367 +0,0 @@ - - - diff --git a/src/uni_modules/uni-indexed-list/package.json b/src/uni_modules/uni-indexed-list/package.json deleted file mode 100644 index 125c0e7f..00000000 --- a/src/uni_modules/uni-indexed-list/package.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "id": "uni-indexed-list", - "displayName": "uni-indexed-list 索引列表", - "version": "1.2.1", - "description": "索引列表组件,右侧带索引的列表,方便快速定位到具体内容,通常用于城市/机场选择等场景", - "keywords": [ - "uni-ui", - "索引列表", - "索引", - "列表" -], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "" - }, - "directories": { - "example": "../../temps/example_temps" - }, - "dcloudext": { - "category": [ - "前端组件", - "通用组件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" - }, - "uni_modules": { - "dependencies": [ - "uni-scss", - "uni-icons" - ], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y" - }, - "快应用": { - "华为": "u", - "联盟": "u" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} diff --git a/src/uni_modules/uni-indexed-list/readme.md b/src/uni_modules/uni-indexed-list/readme.md deleted file mode 100644 index 44ad84b2..00000000 --- a/src/uni_modules/uni-indexed-list/readme.md +++ /dev/null @@ -1,11 +0,0 @@ - - -## IndexedList 索引列表 -> **组件名:uni-indexed-list** -> 代码块: `uIndexedList` - - -用于展示索引列表。 - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-indexed-list) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 diff --git a/src/uni_modules/uni-link/changelog.md b/src/uni_modules/uni-link/changelog.md deleted file mode 100644 index 2cfbf591..00000000 --- a/src/uni_modules/uni-link/changelog.md +++ /dev/null @@ -1,17 +0,0 @@ -## 1.0.0(2021-11-19) -- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) -- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-link](https://uniapp.dcloud.io/component/uniui/uni-link) -## 1.1.7(2021-11-08) -## 0.0.7(2021-09-03) -- 修复 在 nvue 下不显示的 bug -## 0.0.6(2021-07-30) -- 新增 支持自定义插槽 -## 0.0.5(2021-06-21) -- 新增 download 属性,H5平台下载文件名 -## 0.0.4(2021-05-12) -- 新增 组件示例地址 -## 0.0.3(2021-03-09) -- 新增 href 属性支持 tel:|mailto: - -## 0.0.2(2021-02-05) -- 调整为uni_modules目录规范 diff --git a/src/uni_modules/uni-link/components/uni-link/uni-link.vue b/src/uni_modules/uni-link/components/uni-link/uni-link.vue deleted file mode 100644 index 27c5468e..00000000 --- a/src/uni_modules/uni-link/components/uni-link/uni-link.vue +++ /dev/null @@ -1,128 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-link/package.json b/src/uni_modules/uni-link/package.json deleted file mode 100644 index 77b19865..00000000 --- a/src/uni_modules/uni-link/package.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "id": "uni-link", - "displayName": "uni-link 超链接", - "version": "1.0.0", - "description": "uni-link是一个外部网页超链接组件,在小程序内复制url,在app内打开外部浏览器,在h5端打", - "keywords": [ - "uni-ui", - "uniui", - "link", - "超链接", - "" -], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "" - }, - "directories": { - "example": "../../temps/example_temps" - }, - "dcloudext": { - "category": [ - "前端组件", - "通用组件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" - }, - "uni_modules": { - "dependencies": ["uni-scss"], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y" - }, - "快应用": { - "华为": "y", - "联盟": "y" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} \ No newline at end of file diff --git a/src/uni_modules/uni-link/readme.md b/src/uni_modules/uni-link/readme.md deleted file mode 100644 index 7f09e941..00000000 --- a/src/uni_modules/uni-link/readme.md +++ /dev/null @@ -1,11 +0,0 @@ - - -## Link 链接 -> **组件名:uni-link** -> 代码块: `uLink` - - -uni-link是一个外部网页超链接组件,在小程序内复制url,在app内打开外部浏览器,在h5端打开新网页。 - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-link) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 \ No newline at end of file diff --git a/src/uni_modules/uni-list/changelog.md b/src/uni_modules/uni-list/changelog.md deleted file mode 100644 index 6aa6e4e0..00000000 --- a/src/uni_modules/uni-list/changelog.md +++ /dev/null @@ -1,20 +0,0 @@ -## 1.2.1(2022-03-30) -- 删除无用文件 -## 1.2.0(2021-11-23) -- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) -- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-list](https://uniapp.dcloud.io/component/uniui/uni-list) -## 1.1.3(2021-08-30) -- 修复 在vue3中to属性在发行应用的时候报错的bug -## 1.1.2(2021-07-30) -- 优化 vue3下事件警告的问题 -## 1.1.1(2021-07-21) -- 修复 与其他组件嵌套使用时,点击失效的Bug -## 1.1.0(2021-07-13) -- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) -## 1.0.17(2021-05-12) -- 新增 组件示例地址 -## 1.0.16(2021-02-05) -- 优化 组件引用关系,通过uni_modules引用组件 -## 1.0.15(2021-02-05) -- 调整为uni_modules目录规范 -- 修复 uni-list-chat 角标显示不正常的问题 diff --git a/src/uni_modules/uni-list/components/uni-list-ad/uni-list-ad.vue b/src/uni_modules/uni-list/components/uni-list-ad/uni-list-ad.vue deleted file mode 100644 index b9349c29..00000000 --- a/src/uni_modules/uni-list/components/uni-list-ad/uni-list-ad.vue +++ /dev/null @@ -1,107 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-list/components/uni-list-chat/uni-list-chat.scss b/src/uni_modules/uni-list/components/uni-list-chat/uni-list-chat.scss deleted file mode 100644 index 311f8d9f..00000000 --- a/src/uni_modules/uni-list/components/uni-list-chat/uni-list-chat.scss +++ /dev/null @@ -1,58 +0,0 @@ -/** - * 这里是 uni-list 组件内置的常用样式变量 - * 如果需要覆盖样式,这里提供了基本的组件样式变量,您可以尝试修改这里的变量,去完成样式替换,而不用去修改源码 - * - */ - -// 背景色 -$background-color : #fff; -// 分割线颜色 -$divide-line-color : #e5e5e5; - -// 默认头像大小,如需要修改此值,注意同步修改 js 中的值 const avatarWidth = xx ,目前只支持方形头像 -// nvue 页面不支持修改头像大小 -$avatar-width : 45px ; - -// 头像边框 -$avatar-border-radius: 5px; -$avatar-border-color: #eee; -$avatar-border-width: 1px; - -// 标题文字样式 -$title-size : 16px; -$title-color : #3b4144; -$title-weight : normal; - -// 描述文字样式 -$note-size : 12px; -$note-color : #999; -$note-weight : normal; - -// 右侧额外内容默认样式 -$right-text-size : 12px; -$right-text-color : #999; -$right-text-weight : normal; - -// 角标样式 -// nvue 页面不支持修改圆点位置以及大小 -// 角标在左侧时,角标的位置,默认为 0 ,负数左/下移动,正数右/上移动 -$badge-left: 0px; -$badge-top: 0px; - -// 显示圆点时,圆点大小 -$dot-width: 10px; -$dot-height: 10px; - -// 显示角标时,角标大小和字体大小 -$badge-size : 18px; -$badge-font : 12px; -// 显示角标时,角标前景色 -$badge-color : #fff; -// 显示角标时,角标背景色 -$badge-background-color : #ff5a5f; -// 显示角标时,角标左右间距 -$badge-space : 6px; - -// 状态样式 -// 选中颜色 -$hover : #f5f5f5; diff --git a/src/uni_modules/uni-list/components/uni-list-chat/uni-list-chat.vue b/src/uni_modules/uni-list/components/uni-list-chat/uni-list-chat.vue deleted file mode 100644 index 2b310085..00000000 --- a/src/uni_modules/uni-list/components/uni-list-chat/uni-list-chat.vue +++ /dev/null @@ -1,538 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-list/components/uni-list-item/uni-list-item.vue b/src/uni_modules/uni-list/components/uni-list-item/uni-list-item.vue deleted file mode 100644 index 2c7d9ea7..00000000 --- a/src/uni_modules/uni-list/components/uni-list-item/uni-list-item.vue +++ /dev/null @@ -1,454 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-list/components/uni-list/uni-list - 副本.vue b/src/uni_modules/uni-list/components/uni-list/uni-list - 副本.vue deleted file mode 100644 index 1c85003e..00000000 --- a/src/uni_modules/uni-list/components/uni-list/uni-list - 副本.vue +++ /dev/null @@ -1,106 +0,0 @@ - - - - diff --git a/src/uni_modules/uni-list/components/uni-list/uni-list.vue b/src/uni_modules/uni-list/components/uni-list/uni-list.vue deleted file mode 100644 index ecda6765..00000000 --- a/src/uni_modules/uni-list/components/uni-list/uni-list.vue +++ /dev/null @@ -1,108 +0,0 @@ - - - - diff --git a/src/uni_modules/uni-list/components/uni-list/uni-refresh.vue b/src/uni_modules/uni-list/components/uni-list/uni-refresh.vue deleted file mode 100644 index 3b4c5a23..00000000 --- a/src/uni_modules/uni-list/components/uni-list/uni-refresh.vue +++ /dev/null @@ -1,65 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-list/components/uni-list/uni-refresh.wxs b/src/uni_modules/uni-list/components/uni-list/uni-refresh.wxs deleted file mode 100644 index 818a6b72..00000000 --- a/src/uni_modules/uni-list/components/uni-list/uni-refresh.wxs +++ /dev/null @@ -1,87 +0,0 @@ -var pullDown = { - threshold: 95, - maxHeight: 200, - callRefresh: 'onrefresh', - callPullingDown: 'onpullingdown', - refreshSelector: '.uni-refresh' -}; - -function ready(newValue, oldValue, ownerInstance, instance) { - var state = instance.getState() - state.canPullDown = newValue; - // console.log(newValue); -} - -function touchStart(e, instance) { - var state = instance.getState(); - state.refreshInstance = instance.selectComponent(pullDown.refreshSelector); - state.canPullDown = (state.refreshInstance != null && state.refreshInstance != undefined); - if (!state.canPullDown) { - return - } - - // console.log("touchStart"); - - state.height = 0; - state.touchStartY = e.touches[0].pageY || e.changedTouches[0].pageY; - state.refreshInstance.setStyle({ - 'height': 0 - }); - state.refreshInstance.callMethod("onchange", true); -} - -function touchMove(e, ownerInstance) { - var instance = e.instance; - var state = instance.getState(); - if (!state.canPullDown) { - return - } - - var oldHeight = state.height; - var endY = e.touches[0].pageY || e.changedTouches[0].pageY; - var height = endY - state.touchStartY; - if (height > pullDown.maxHeight) { - return; - } - - var refreshInstance = state.refreshInstance; - refreshInstance.setStyle({ - 'height': height + 'px' - }); - - height = height < pullDown.maxHeight ? height : pullDown.maxHeight; - state.height = height; - refreshInstance.callMethod(pullDown.callPullingDown, { - height: height - }); -} - -function touchEnd(e, ownerInstance) { - var state = e.instance.getState(); - if (!state.canPullDown) { - return - } - - state.refreshInstance.callMethod("onchange", false); - - var refreshInstance = state.refreshInstance; - if (state.height > pullDown.threshold) { - refreshInstance.callMethod(pullDown.callRefresh); - return; - } - - refreshInstance.setStyle({ - 'height': 0 - }); -} - -function propObserver(newValue, oldValue, instance) { - pullDown = newValue; -} - -module.exports = { - touchmove: touchMove, - touchstart: touchStart, - touchend: touchEnd, - propObserver: propObserver -} diff --git a/src/uni_modules/uni-list/package.json b/src/uni_modules/uni-list/package.json deleted file mode 100644 index 66e8bef0..00000000 --- a/src/uni_modules/uni-list/package.json +++ /dev/null @@ -1,91 +0,0 @@ -{ - "id": "uni-list", - "displayName": "uni-list 列表", - "version": "1.2.1", - "description": "List 组件 ,帮助使用者快速构建列表。", - "keywords": [ - "", - "uni-ui", - "uniui", - "列表", - "", - "list" -], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "" - }, - "directories": { - "example": "../../temps/example_temps" - }, - "dcloudext": { - "category": [ - "前端组件", - "通用组件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" - }, - "uni_modules": { - "dependencies": [ - "uni-badge", - "uni-icons" - ], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y" - }, - "快应用": { - "华为": "u", - "联盟": "u" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} \ No newline at end of file diff --git a/src/uni_modules/uni-list/readme.md b/src/uni_modules/uni-list/readme.md deleted file mode 100644 index 32c28654..00000000 --- a/src/uni_modules/uni-list/readme.md +++ /dev/null @@ -1,346 +0,0 @@ -## List 列表 -> **组件名:uni-list** -> 代码块: `uList`、`uListItem` -> 关联组件:`uni-list-item`、`uni-badge`、`uni-icons`、`uni-list-chat`、`uni-list-ad` - - -List 列表组件,包含基本列表样式、可扩展插槽机制、长列表性能优化、多端兼容。 - -在vue页面里,它默认使用页面级滚动。在app-nvue页面里,它默认使用原生list组件滚动。这样的长列表,在滚动出屏幕外后,系统会回收不可见区域的渲染内存资源,不会造成滚动越长手机越卡的问题。 - -uni-list组件是父容器,里面的核心是uni-list-item子组件,它代表列表中的一个可重复行,子组件可以无限循环。 - -uni-list-item有很多风格,uni-list-item组件通过内置的属性,满足一些常用的场景。当内置属性不满足需求时,可以通过扩展插槽来自定义列表内容。 - -内置属性可以覆盖的场景包括:导航列表、设置列表、小图标列表、通信录列表、聊天记录列表。 - -涉及很多大图或丰富内容的列表,比如类今日头条的新闻列表、类淘宝的电商列表,需要通过扩展插槽实现。 - -下文均有样例给出。 - -uni-list不包含下拉刷新和上拉翻页。上拉翻页另见组件:[uni-load-more](https://ext.dcloud.net.cn/plugin?id=29) - - -### 安装方式 - -本组件符合[easycom](https://uniapp.dcloud.io/collocation/pages?id=easycom)规范,`HBuilderX 2.5.5`起,只需将本组件导入项目,在页面`template`中即可直接使用,无需在页面中`import`和注册`components`。 - -如需通过`npm`方式使用`uni-ui`组件,另见文档:[https://ext.dcloud.net.cn/plugin?id=55](https://ext.dcloud.net.cn/plugin?id=55) - -> **注意事项** -> 为了避免错误使用,给大家带来不好的开发体验,请在使用组件前仔细阅读下面的注意事项,可以帮你避免一些错误。 -> - 组件需要依赖 `sass` 插件 ,请自行手动安装 -> - 组件内部依赖 `'uni-icons'` 、`uni-badge` 组件 -> - `uni-list` 和 `uni-list-item` 需要配套使用,暂不支持单独使用 `uni-list-item` -> - 只有开启点击反馈后,会有点击选中效果 -> - 使用插槽时,可以完全自定义内容 -> - note 、rightText 属性暂时没做限制,不支持文字溢出隐藏,使用时应该控制长度显示或通过默认插槽自行扩展 -> - 支付宝小程序平台需要在支付宝小程序开发者工具里开启 component2 编译模式,开启方式: 详情 --> 项目配置 --> 启用 component2 编译 -> - 如果需要修改 `switch`、`badge` 样式,请使用插槽自定义 -> - 在 `HBuilderX` 低版本中,可能会出现组件显示 `undefined` 的问题,请升级最新的 `HBuilderX` 或者 `cli` -> - 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 - - -### 基本用法 - -- 设置 `title` 属性,可以显示列表标题 -- 设置 `disabled` 属性,可以禁用当前项 - -```html - - - - - -``` - -### 多行内容显示 - -- 设置 `note` 属性 ,可以在第二行显示描述文本信息 - -```html - - - - - -``` - -### 右侧显示角标、switch - -- 设置 `show-badge` 属性 ,可以显示角标内容 -- 设置 `show-switch` 属性,可以显示 switch 开关 - -```html - - - - - -``` - -### 左侧显示略缩图、图标 - -- 设置 `thumb` 属性 ,可以在列表左侧显示略缩图 -- 设置 `show-extra-icon` 属性,并指定 `extra-icon` 可以在左侧显示图标 - -```html - - - - -``` - -### 开启点击反馈和右侧箭头 -- 设置 `clickable` 为 `true` ,则表示这是一个可点击的列表,会默认给一个点击效果,并可以监听 `click` 事件 -- 设置 `link` 属性,会自动开启点击反馈,并给列表右侧添加一个箭头 -- 设置 `to` 属性,可以跳转页面,`link` 的值表示跳转方式,如果不指定,默认为 `navigateTo` - -```html - - - - - - - -``` - - -### 聊天列表示例 -- 设置 `clickable` 为 `true` ,则表示这是一个可点击的列表,会默认给一个点击效果,并可以监听 `click` 事件 -- 设置 `link` 属性,会自动开启点击反馈,`link` 的值表示跳转方式,如果不指定,默认为 `navigateTo` -- 设置 `to` 属性,可以跳转页面 -- `time` 属性,通常会设置成时间显示,但是这个属性不仅仅可以设置时间,你可以传入任何文本,注意文本长度可能会影响显示 -- `avatar` 和 `avatarList` 属性同时只会有一个生效,同时设置的话,`avatarList` 属性的长度大于1 ,`avatar` 属性将失效 -- 可以通过默认插槽自定义列表右侧内容 - -```html - - - - - - - - - - - - - - - - - 刚刚 - - - - - - - -``` - -```javascript - -export default { - components: {}, - data() { - return { - avatarList: [{ - url: 'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/460d46d0-4fcc-11eb-8ff1-d5dcf8779628.png' - }, { - url: 'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/460d46d0-4fcc-11eb-8ff1-d5dcf8779628.png' - }, { - url: 'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/460d46d0-4fcc-11eb-8ff1-d5dcf8779628.png' - }] - } - } -} - -``` - - -```css - -.chat-custom-right { - flex: 1; - /* #ifndef APP-NVUE */ - display: flex; - /* #endif */ - flex-direction: column; - justify-content: space-between; - align-items: flex-end; -} - -.chat-custom-text { - font-size: 12px; - color: #999; -} - -``` - -## API - -### List Props - -属性名 |类型 |默认值 | 说明 -:-: |:-: |:-: | :-: -border |Boolean |true | 是否显示边框 - - -### ListItem Props - -属性名 |类型 |默认值 | 说明 -:-: |:-: |:-: | :-: -title |String |- | 标题 -note |String |- | 描述 -ellipsis |Number |0 | title 是否溢出隐藏,可选值,0:默认; 1:显示一行; 2:显示两行;【nvue 暂不支持】 -thumb |String |- | 左侧缩略图,若thumb有值,则不会显示扩展图标 -thumbSize |String |medium | 略缩图尺寸,可选值,lg:大图; medium:一般; sm:小图; -showBadge |Boolean |false | 是否显示数字角标 -badgeText |String |- | 数字角标内容 -badgeType |String |- | 数字角标类型,参考[uni-icons](https://ext.dcloud.net.cn/plugin?id=21) -badgeStyle |Object |- | 数字角标样式,使用uni-badge的custom-style参数 -rightText |String |- | 右侧文字内容 -disabled |Boolean |false | 是否禁用 -showArrow |Boolean |true | 是否显示箭头图标 -link |String |navigateTo | 新页面跳转方式,可选值见下表 -to |String |- | 新页面跳转地址,如填写此属性,click 会返回页面是否跳转成功 -clickable |Boolean |false | 是否开启点击反馈 -showSwitch |Boolean |false | 是否显示Switch -switchChecked |Boolean |false | Switch是否被选中 -showExtraIcon |Boolean |false | 左侧是否显示扩展图标 -extraIcon |Object |- | 扩展图标参数,格式为 ``{color: '#4cd964',size: '22',type: 'spinner'}``,参考 [uni-icons](https://ext.dcloud.net.cn/plugin?id=28) -direction | String |row | 排版方向,可选值,row:水平排列; column:垂直排列; 3个插槽是水平排还是垂直排,也受此属性控制 - - -#### Link Options - -属性名 | 说明 -:-: | :-: -navigateTo | 同 uni.navigateTo() -redirectTo | 同 uni.reLaunch() -reLaunch | 同 uni.reLaunch() -switchTab | 同 uni.switchTab() - -### ListItem Events - -事件称名 |说明 |返回参数 -:-: |:-: |:-: -click |点击 uniListItem 触发事件,需开启点击反馈 |- -switchChange |点击切换 Switch 时触发,需显示 switch |e={value:checked} - - - -### ListItem Slots - -名称 | 说明 -:-: | :-: -header | 左/上内容插槽,可完全自定义默认显示 -body | 中间内容插槽,可完全自定义中间内容 -footer | 右/下内容插槽,可完全自定义右侧内容 - - -> **通过插槽扩展** -> 需要注意的是当使用插槽时,内置样式将会失效,只保留排版样式,此时的样式需要开发者自己实现 -> 如果 `uni-list-item` 组件内置属性样式无法满足需求,可以使用插槽来自定义uni-list-item里的内容。 -> uni-list-item提供了3个可扩展的插槽:`header`、`body`、`footer` -> - 当 `direction` 属性为 `row` 时表示水平排列,此时 `header` 表示列表的左边部分,`body` 表示列表的中间部分,`footer` 表示列表的右边部分 -> - 当 `direction` 属性为 `column` 时表示垂直排列,此时 `header` 表示列表的上边部分,`body` 表示列表的中间部分,`footer` 表示列表的下边部分 -> 开发者可以只用1个插槽,也可以3个一起使用。在插槽中可自主编写view标签,实现自己所需的效果。 - - -**示例** - -```html - - - - - - - - - 自定义插槽 - - - - -``` - - - - - -### ListItemChat Props - -属性名 |类型 |默认值 | 说明 -:-: |:-: |:-: | :-: -title |String |- | 标题 -note |String |- | 描述 -clickable |Boolean |false | 是否开启点击反馈 -badgeText |String |- | 数字角标内容,设置为 `dot` 将显示圆点 -badgePositon |String |right | 角标位置 -link |String |navigateTo | 是否展示右侧箭头并开启点击反馈,可选值见下表 -clickable |Boolean |false | 是否开启点击反馈 -to |String |- | 跳转页面地址,如填写此属性,click 会返回页面是否跳转成功 -time |String |- | 右侧时间显示 -avatarCircle |Boolean |false | 是否显示圆形头像 -avatar |String |- | 头像地址,avatarCircle 不填时生效 -avatarList |Array |- | 头像组,格式为 [{url:''}] - -#### Link Options - -属性名 | 说明 -:-: | :-: -navigateTo | 同 uni.navigateTo() -redirectTo | 同 uni.reLaunch() -reLaunch | 同 uni.reLaunch() -switchTab | 同 uni.switchTab() - -### ListItemChat Slots - -名称 | 说明 -:- | :- -default | 自定义列表右侧内容(包括时间和角标显示) - -### ListItemChat Events -事件称名 | 说明 | 返回参数 -:-: | :-: | :-: -@click | 点击 uniListChat 触发事件 | {data:{}} ,如有 to 属性,会返回页面跳转信息 - - - - - - -## 基于uni-list扩展的页面模板 - -通过扩展插槽,可实现多种常见样式的列表 - -**新闻列表类** - -1. 云端一体混合布局:[https://ext.dcloud.net.cn/plugin?id=2546](https://ext.dcloud.net.cn/plugin?id=2546) -2. 云端一体垂直布局,大图模式:[https://ext.dcloud.net.cn/plugin?id=2583](https://ext.dcloud.net.cn/plugin?id=2583) -3. 云端一体垂直布局,多行图文混排:[https://ext.dcloud.net.cn/plugin?id=2584](https://ext.dcloud.net.cn/plugin?id=2584) -4. 云端一体垂直布局,多图模式:[https://ext.dcloud.net.cn/plugin?id=2585](https://ext.dcloud.net.cn/plugin?id=2585) -5. 云端一体水平布局,左图右文:[https://ext.dcloud.net.cn/plugin?id=2586](https://ext.dcloud.net.cn/plugin?id=2586) -6. 云端一体水平布局,左文右图:[https://ext.dcloud.net.cn/plugin?id=2587](https://ext.dcloud.net.cn/plugin?id=2587) -7. 云端一体垂直布局,无图模式,主标题+副标题:[https://ext.dcloud.net.cn/plugin?id=2588](https://ext.dcloud.net.cn/plugin?id=2588) - -**商品列表类** - -1. 云端一体列表/宫格视图互切:[https://ext.dcloud.net.cn/plugin?id=2651](https://ext.dcloud.net.cn/plugin?id=2651) -2. 云端一体列表(宫格模式):[https://ext.dcloud.net.cn/plugin?id=2671](https://ext.dcloud.net.cn/plugin?id=2671) -3. 云端一体列表(列表模式):[https://ext.dcloud.net.cn/plugin?id=2672](https://ext.dcloud.net.cn/plugin?id=2672) - -## 组件示例 - -点击查看:[https://hellouniapp.dcloud.net.cn/pages/extUI/list/list](https://hellouniapp.dcloud.net.cn/pages/extUI/list/list) \ No newline at end of file diff --git a/src/uni_modules/uni-load-more/changelog.md b/src/uni_modules/uni-load-more/changelog.md deleted file mode 100644 index 8f03f1d5..00000000 --- a/src/uni_modules/uni-load-more/changelog.md +++ /dev/null @@ -1,19 +0,0 @@ -## 1.3.3(2022-01-20) -- 新增 showText属性 ,是否显示文本 -## 1.3.2(2022-01-19) -- 修复 nvue 平台下不显示文本的bug -## 1.3.1(2022-01-19) -- 修复 微信小程序平台样式选择器报警告的问题 -## 1.3.0(2021-11-19) -- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) -- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-load-more](https://uniapp.dcloud.io/component/uniui/uni-load-more) -## 1.2.1(2021-08-24) -- 新增 支持国际化 -## 1.2.0(2021-07-30) -- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) -## 1.1.8(2021-05-12) -- 新增 组件示例地址 -## 1.1.7(2021-03-30) -- 修复 uni-load-more 在首页使用时,h5 平台报 'uni is not defined' 的 bug -## 1.1.6(2021-02-05) -- 调整为uni_modules目录规范 diff --git a/src/uni_modules/uni-load-more/components/uni-load-more/i18n/en.json b/src/uni_modules/uni-load-more/components/uni-load-more/i18n/en.json deleted file mode 100644 index a4f14a54..00000000 --- a/src/uni_modules/uni-load-more/components/uni-load-more/i18n/en.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "uni-load-more.contentdown": "Pull up to show more", - "uni-load-more.contentrefresh": "loading...", - "uni-load-more.contentnomore": "No more data" -} diff --git a/src/uni_modules/uni-load-more/components/uni-load-more/i18n/index.js b/src/uni_modules/uni-load-more/components/uni-load-more/i18n/index.js deleted file mode 100644 index de7509c8..00000000 --- a/src/uni_modules/uni-load-more/components/uni-load-more/i18n/index.js +++ /dev/null @@ -1,8 +0,0 @@ -import en from './en.json' -import zhHans from './zh-Hans.json' -import zhHant from './zh-Hant.json' -export default { - en, - 'zh-Hans': zhHans, - 'zh-Hant': zhHant -} diff --git a/src/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hans.json b/src/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hans.json deleted file mode 100644 index f15d5105..00000000 --- a/src/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hans.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "uni-load-more.contentdown": "上拉显示更多", - "uni-load-more.contentrefresh": "正在加载...", - "uni-load-more.contentnomore": "没有更多数据了" -} diff --git a/src/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hant.json b/src/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hant.json deleted file mode 100644 index a255c6de..00000000 --- a/src/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hant.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "uni-load-more.contentdown": "上拉顯示更多", - "uni-load-more.contentrefresh": "正在加載...", - "uni-load-more.contentnomore": "沒有更多數據了" -} diff --git a/src/uni_modules/uni-load-more/components/uni-load-more/uni-load-more.vue b/src/uni_modules/uni-load-more/components/uni-load-more/uni-load-more.vue deleted file mode 100644 index e5eff4d6..00000000 --- a/src/uni_modules/uni-load-more/components/uni-load-more/uni-load-more.vue +++ /dev/null @@ -1,399 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-load-more/package.json b/src/uni_modules/uni-load-more/package.json deleted file mode 100644 index 2fa6f040..00000000 --- a/src/uni_modules/uni-load-more/package.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "id": "uni-load-more", - "displayName": "uni-load-more 加载更多", - "version": "1.3.3", - "description": "LoadMore 组件,常用在列表里面,做滚动加载使用。", - "keywords": [ - "uni-ui", - "uniui", - "加载更多", - "load-more" -], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "" - }, - "directories": { - "example": "../../temps/example_temps" - }, - "dcloudext": { - "category": [ - "前端组件", - "通用组件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" - }, - "uni_modules": { - "dependencies": ["uni-scss"], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y" - }, - "快应用": { - "华为": "u", - "联盟": "u" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} \ No newline at end of file diff --git a/src/uni_modules/uni-load-more/readme.md b/src/uni_modules/uni-load-more/readme.md deleted file mode 100644 index 54dc1fad..00000000 --- a/src/uni_modules/uni-load-more/readme.md +++ /dev/null @@ -1,14 +0,0 @@ - - -### LoadMore 加载更多 -> **组件名:uni-load-more** -> 代码块: `uLoadMore` - - -用于列表中,做滚动加载使用,展示 loading 的各种状态。 - - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-load-more) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 - - diff --git a/src/uni_modules/uni-nav-bar/changelog.md b/src/uni_modules/uni-nav-bar/changelog.md deleted file mode 100644 index f0f6b566..00000000 --- a/src/uni_modules/uni-nav-bar/changelog.md +++ /dev/null @@ -1,41 +0,0 @@ -## 1.3.6(2022-06-30) -- 修复 组件示例中插槽用法无法显示内容的bug -## 1.3.5(2022-05-24) -- 新增 stat 属性 ,可开启统计title 上报 ,仅使用了title 属性且项目开启了uni统计生效 -## 1.3.4(2022-01-24) -- 更新 组件示例 -## 1.3.3(2022-01-24) -- 新增 left-width/right-width属性 ,可修改左右两侧的宽度 -## 1.3.2(2022-01-18) -- 修复 在vue下,标题不垂直居中的bug -## 1.3.1(2022-01-18) -- 修复 height 属性类型错误 -## 1.3.0(2022-01-18) -- 新增 height 属性,可修改组件高度 -- 新增 dark 属性可可开启暗黑模式 -- 优化 标题字数过多显示省略号 -- 优化 插槽,插入内容可完全覆盖 -## 1.2.1(2022-01-10) -- 修复 color 属性不生效的bug -## 1.2.0(2021-11-19) -- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) -- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-nav-bar](https://uniapp.dcloud.io/component/uniui/uni-nav-bar) -## 1.1.0(2021-07-30) -- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) -## 1.0.11(2021-05-12) -- 新增 组件示例地址 -## 1.0.10(2021-04-30) -- 修复 在nvue下fixed为true,宽度不能撑满的Bug -## 1.0.9(2021-04-21) -- 优化 添加依赖 uni-icons, 导入后自动下载依赖 -## 1.0.8(2021-04-14) -- uni-ui 修复 uni-nav-bar 当 fixed 属性为 true 时铺不满屏幕的 bug - -## 1.0.7(2021-02-25) -- 修复 easycom 下,找不到 uni-status-bar 的bug - -## 1.0.6(2021-02-05) -- 优化 组件引用关系,通过uni_modules引用组件 - -## 1.0.5(2021-02-05) -- 调整为uni_modules目录规范 diff --git a/src/uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar.vue b/src/uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar.vue deleted file mode 100644 index cbfc1685..00000000 --- a/src/uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar.vue +++ /dev/null @@ -1,348 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-nav-bar/components/uni-nav-bar/uni-status-bar.vue b/src/uni_modules/uni-nav-bar/components/uni-nav-bar/uni-status-bar.vue deleted file mode 100644 index 6a688744..00000000 --- a/src/uni_modules/uni-nav-bar/components/uni-nav-bar/uni-status-bar.vue +++ /dev/null @@ -1,27 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-nav-bar/package.json b/src/uni_modules/uni-nav-bar/package.json deleted file mode 100644 index e3fe073d..00000000 --- a/src/uni_modules/uni-nav-bar/package.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "id": "uni-nav-bar", - "displayName": "uni-nav-bar 自定义导航栏", - "version": "1.3.6", - "description": "自定义导航栏组件,主要用于头部导航。", - "keywords": [ - "uni-ui", - "导航", - "导航栏", - "自定义导航栏" -], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "" - }, - "directories": { - "example": "../../temps/example_temps" - }, - "dcloudext": { - "category": [ - "前端组件", - "通用组件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" - }, - "uni_modules": { - "dependencies": [ - "uni-scss", - "uni-icons" - ], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y" - }, - "快应用": { - "华为": "u", - "联盟": "u" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} \ No newline at end of file diff --git a/src/uni_modules/uni-nav-bar/readme.md b/src/uni_modules/uni-nav-bar/readme.md deleted file mode 100644 index 3934b327..00000000 --- a/src/uni_modules/uni-nav-bar/readme.md +++ /dev/null @@ -1,15 +0,0 @@ - - -## NavBar 导航栏 -> **组件名:uni-nav-bar** -> 代码块: `uNavBar` - -导航栏组件,主要用于头部导航。 - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-nav-bar) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 - - - - - diff --git a/src/uni_modules/uni-notice-bar/changelog.md b/src/uni_modules/uni-notice-bar/changelog.md deleted file mode 100644 index 9ee75a01..00000000 --- a/src/uni_modules/uni-notice-bar/changelog.md +++ /dev/null @@ -1,16 +0,0 @@ -## 1.2.0(2021-11-19) -- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) -- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-notice-bar](https://uniapp.dcloud.io/component/uniui/uni-notice-bar) -## 1.1.1(2021-11-09) -- 新增 提供组件设计资源,组件样式调整 -## 1.1.0(2021-07-30) -- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) -## 1.0.9(2021-05-12) -- 新增 组件示例地址 -## 1.0.8(2021-04-21) -- 优化 添加依赖 uni-icons, 导入后自动下载依赖 -## 1.0.7(2021-02-05) -- 优化 组件引用关系,通过uni_modules引用组件 - -## 1.0.6(2021-02-05) -- 调整为uni_modules目录规范 diff --git a/src/uni_modules/uni-notice-bar/components/uni-notice-bar/uni-notice-bar.vue b/src/uni_modules/uni-notice-bar/components/uni-notice-bar/uni-notice-bar.vue deleted file mode 100644 index 424430da..00000000 --- a/src/uni_modules/uni-notice-bar/components/uni-notice-bar/uni-notice-bar.vue +++ /dev/null @@ -1,395 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-notice-bar/package.json b/src/uni_modules/uni-notice-bar/package.json deleted file mode 100644 index 97719a0f..00000000 --- a/src/uni_modules/uni-notice-bar/package.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "id": "uni-notice-bar", - "displayName": "uni-notice-bar 通告栏", - "version": "1.2.0", - "description": "NoticeBar 通告栏组件,常用于展示公告信息,可设为滚动公告", - "keywords": [ - "uni-ui", - "uniui", - "通告栏", - "公告", - "跑马灯" -], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "" - }, - "directories": { - "example": "../../temps/example_temps" - }, - "dcloudext": { - "category": [ - "前端组件", - "通用组件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" - }, - "uni_modules": { - "dependencies": [ - "uni-scss", - "uni-icons" - ], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y" - }, - "快应用": { - "华为": "u", - "联盟": "u" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} diff --git a/src/uni_modules/uni-notice-bar/readme.md b/src/uni_modules/uni-notice-bar/readme.md deleted file mode 100644 index fb2ede24..00000000 --- a/src/uni_modules/uni-notice-bar/readme.md +++ /dev/null @@ -1,13 +0,0 @@ - - -## NoticeBar 通告栏 -> **组件名:uni-notice-bar** -> 代码块: `uNoticeBar` - - -通告栏组件 。 - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-notice-bar) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 - - diff --git a/src/uni_modules/uni-number-box/changelog.md b/src/uni_modules/uni-number-box/changelog.md deleted file mode 100644 index 5925c32a..00000000 --- a/src/uni_modules/uni-number-box/changelog.md +++ /dev/null @@ -1,25 +0,0 @@ -## 1.2.1(2021-11-22) -- 修复 vue3中某些scss变量无法找到的问题 -## 1.2.0(2021-11-19) -- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) -- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-number-box](https://uniapp.dcloud.io/component/uniui/uni-number-box) -## 1.1.2(2021-11-09) -- 新增 提供组件设计资源,组件样式调整 -## 1.1.1(2021-07-30) -- 优化 vue3下事件警告的问题 -## 1.1.0(2021-07-13) -- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) -## 1.0.7(2021-05-12) -- 新增 组件示例地址 -## 1.0.6(2021-04-20) -- 修复 uni-number-box 浮点数运算不精确的 bug -- 修复 uni-number-box change 事件触发不正确的 bug -- 新增 uni-number-box v-model 双向绑定 -## 1.0.5(2021-02-05) -- 调整为uni_modules目录规范 - -## 1.0.7(2021-02-05) -- 调整为uni_modules目录规范 -- 新增 支持 v-model -- 新增 支持 focus、blur 事件 -- 新增 支持 PC 端 diff --git a/src/uni_modules/uni-number-box/components/uni-number-box/uni-number-box.vue b/src/uni_modules/uni-number-box/components/uni-number-box/uni-number-box.vue deleted file mode 100644 index 8d255fbb..00000000 --- a/src/uni_modules/uni-number-box/components/uni-number-box/uni-number-box.vue +++ /dev/null @@ -1,220 +0,0 @@ - - - diff --git a/src/uni_modules/uni-number-box/package.json b/src/uni_modules/uni-number-box/package.json deleted file mode 100644 index ad823368..00000000 --- a/src/uni_modules/uni-number-box/package.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "id": "uni-number-box", - "displayName": "uni-number-box 数字输入框", - "version": "1.2.1", - "description": "NumberBox 带加减按钮的数字输入框组件,用户可以控制每次点击增加的数值,支持小数。", - "keywords": [ - "uni-ui", - "uniui", - "数字输入框" -], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "" - }, - "directories": { - "example": "../../temps/example_temps" - }, - "dcloudext": { - "category": [ - "前端组件", - "通用组件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" - }, - "uni_modules": { - "dependencies": ["uni-scss"], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y" - }, - "快应用": { - "华为": "u", - "联盟": "u" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} \ No newline at end of file diff --git a/src/uni_modules/uni-number-box/readme.md b/src/uni_modules/uni-number-box/readme.md deleted file mode 100644 index affc56fa..00000000 --- a/src/uni_modules/uni-number-box/readme.md +++ /dev/null @@ -1,13 +0,0 @@ - - -## NumberBox 数字输入框 -> **组件名:uni-number-box** -> 代码块: `uNumberBox` - - -带加减按钮的数字输入框。 - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-number-box) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 - - diff --git a/src/uni_modules/uni-popup/changelog.md b/src/uni_modules/uni-popup/changelog.md deleted file mode 100644 index a9e2d668..00000000 --- a/src/uni_modules/uni-popup/changelog.md +++ /dev/null @@ -1,60 +0,0 @@ -## 1.7.9(2022-04-02) -- 修复 弹出层内部无法滚动的bug -## 1.7.8(2022-03-28) -- 修复 小程序中高度错误的bug -## 1.7.7(2022-03-17) -- 修复 快速调用open出现问题的Bug -## 1.7.6(2022-02-14) -- 修复 safeArea 属性不能设置为false的bug -## 1.7.5(2022-01-19) -- 修复 isMaskClick 失效的bug -## 1.7.4(2022-01-19) -- 新增 cancelText \ confirmText 属性 ,可自定义文本 -- 新增 maskBackgroundColor 属性 ,可以修改蒙版颜色 -- 优化 maskClick属性 更新为 isMaskClick ,解决微信小程序警告的问题 -## 1.7.3(2022-01-13) -- 修复 设置 safeArea 属性不生效的bug -## 1.7.2(2021-11-26) -- 优化 组件示例 -## 1.7.1(2021-11-26) -- 修复 vuedoc 文字错误 -## 1.7.0(2021-11-19) -- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) -- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-popup](https://uniapp.dcloud.io/component/uniui/uni-popup) -## 1.6.2(2021-08-24) -- 新增 支持国际化 -## 1.6.1(2021-07-30) -- 优化 vue3下事件警告的问题 -## 1.6.0(2021-07-13) -- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) -## 1.5.0(2021-06-23) -- 新增 mask-click 遮罩层点击事件 -## 1.4.5(2021-06-22) -- 修复 nvue 平台中间弹出后,点击内容,再点击遮罩无法关闭的Bug -## 1.4.4(2021-06-18) -- 修复 H5平台中间弹出后,点击内容,再点击遮罩无法关闭的Bug -## 1.4.3(2021-06-08) -- 修复 错误的 watch 字段 -- 修复 safeArea 属性不生效的问题 -- 修复 点击内容,再点击遮罩无法关闭的Bug -## 1.4.2(2021-05-12) -- 新增 组件示例地址 -## 1.4.1(2021-04-29) -- 修复 组件内放置 input 、textarea 组件,无法聚焦的问题 -## 1.4.0 (2021-04-29) -- 新增 type 属性的 left\right 值,支持左右弹出 -- 新增 open(String:type) 方法参数 ,可以省略 type 属性 ,直接传入类型打开指定弹窗 -- 新增 backgroundColor 属性,可定义主窗口背景色,默认不显示背景色 -- 新增 safeArea 属性,是否适配底部安全区 -- 修复 App\h5\微信小程序底部安全区占位不对的Bug -- 修复 App 端弹出等待的Bug -- 优化 提升低配设备性能,优化动画卡顿问题 -- 优化 更简单的组件自定义方式 -## 1.2.9(2021-02-05) -- 优化 组件引用关系,通过uni_modules引用组件 -## 1.2.8(2021-02-05) -- 调整为uni_modules目录规范 -## 1.2.7(2021-02-05) -- 调整为uni_modules目录规范 -- 新增 支持 PC 端 -- 新增 uni-popup-message 、uni-popup-dialog扩展组件支持 PC 端 diff --git a/src/uni_modules/uni-popup/components/uni-popup-dialog/keypress.js b/src/uni_modules/uni-popup/components/uni-popup-dialog/keypress.js deleted file mode 100644 index 6ef26a26..00000000 --- a/src/uni_modules/uni-popup/components/uni-popup-dialog/keypress.js +++ /dev/null @@ -1,45 +0,0 @@ -// #ifdef H5 -export default { - name: 'Keypress', - props: { - disable: { - type: Boolean, - default: false - } - }, - mounted () { - const keyNames = { - esc: ['Esc', 'Escape'], - tab: 'Tab', - enter: 'Enter', - space: [' ', 'Spacebar'], - up: ['Up', 'ArrowUp'], - left: ['Left', 'ArrowLeft'], - right: ['Right', 'ArrowRight'], - down: ['Down', 'ArrowDown'], - delete: ['Backspace', 'Delete', 'Del'] - } - const listener = ($event) => { - if (this.disable) { - return - } - const keyName = Object.keys(keyNames).find(key => { - const keyName = $event.key - const value = keyNames[key] - return value === keyName || (Array.isArray(value) && value.includes(keyName)) - }) - if (keyName) { - // 避免和其他按键事件冲突 - setTimeout(() => { - this.$emit(keyName, {}) - }, 0) - } - } - document.addEventListener('keyup', listener) - this.$once('hook:beforeDestroy', () => { - document.removeEventListener('keyup', listener) - }) - }, - render: () => {} -} -// #endif diff --git a/src/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue b/src/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue deleted file mode 100644 index a5d0f2a2..00000000 --- a/src/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue +++ /dev/null @@ -1,271 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-popup/components/uni-popup-message/uni-popup-message.vue b/src/uni_modules/uni-popup/components/uni-popup-message/uni-popup-message.vue deleted file mode 100644 index 91370a82..00000000 --- a/src/uni_modules/uni-popup/components/uni-popup-message/uni-popup-message.vue +++ /dev/null @@ -1,143 +0,0 @@ - - - - diff --git a/src/uni_modules/uni-popup/components/uni-popup-share/uni-popup-share.vue b/src/uni_modules/uni-popup/components/uni-popup-share/uni-popup-share.vue deleted file mode 100644 index 5be76247..00000000 --- a/src/uni_modules/uni-popup/components/uni-popup-share/uni-popup-share.vue +++ /dev/null @@ -1,187 +0,0 @@ - - - - diff --git a/src/uni_modules/uni-popup/components/uni-popup/i18n/en.json b/src/uni_modules/uni-popup/components/uni-popup/i18n/en.json deleted file mode 100644 index 7f1bd06a..00000000 --- a/src/uni_modules/uni-popup/components/uni-popup/i18n/en.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "uni-popup.cancel": "cancel", - "uni-popup.ok": "ok", - "uni-popup.placeholder": "pleace enter", - "uni-popup.title": "Hint", - "uni-popup.shareTitle": "Share to" -} diff --git a/src/uni_modules/uni-popup/components/uni-popup/i18n/index.js b/src/uni_modules/uni-popup/components/uni-popup/i18n/index.js deleted file mode 100644 index de7509c8..00000000 --- a/src/uni_modules/uni-popup/components/uni-popup/i18n/index.js +++ /dev/null @@ -1,8 +0,0 @@ -import en from './en.json' -import zhHans from './zh-Hans.json' -import zhHant from './zh-Hant.json' -export default { - en, - 'zh-Hans': zhHans, - 'zh-Hant': zhHant -} diff --git a/src/uni_modules/uni-popup/components/uni-popup/i18n/zh-Hans.json b/src/uni_modules/uni-popup/components/uni-popup/i18n/zh-Hans.json deleted file mode 100644 index 5e3003ca..00000000 --- a/src/uni_modules/uni-popup/components/uni-popup/i18n/zh-Hans.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "uni-popup.cancel": "取消", - "uni-popup.ok": "确定", - "uni-popup.placeholder": "请输入", - "uni-popup.title": "提示", - "uni-popup.shareTitle": "分享到" -} diff --git a/src/uni_modules/uni-popup/components/uni-popup/i18n/zh-Hant.json b/src/uni_modules/uni-popup/components/uni-popup/i18n/zh-Hant.json deleted file mode 100644 index 13e39eba..00000000 --- a/src/uni_modules/uni-popup/components/uni-popup/i18n/zh-Hant.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "uni-popup.cancel": "取消", - "uni-popup.ok": "確定", - "uni-popup.placeholder": "請輸入", - "uni-popup.title": "提示", - "uni-popup.shareTitle": "分享到" -} diff --git a/src/uni_modules/uni-popup/components/uni-popup/keypress.js b/src/uni_modules/uni-popup/components/uni-popup/keypress.js deleted file mode 100644 index 62dda461..00000000 --- a/src/uni_modules/uni-popup/components/uni-popup/keypress.js +++ /dev/null @@ -1,45 +0,0 @@ -// #ifdef H5 -export default { - name: 'Keypress', - props: { - disable: { - type: Boolean, - default: false - } - }, - mounted () { - const keyNames = { - esc: ['Esc', 'Escape'], - tab: 'Tab', - enter: 'Enter', - space: [' ', 'Spacebar'], - up: ['Up', 'ArrowUp'], - left: ['Left', 'ArrowLeft'], - right: ['Right', 'ArrowRight'], - down: ['Down', 'ArrowDown'], - delete: ['Backspace', 'Delete', 'Del'] - } - const listener = ($event) => { - if (this.disable) { - return - } - const keyName = Object.keys(keyNames).find(key => { - const keyName = $event.key - const value = keyNames[key] - return value === keyName || (Array.isArray(value) && value.includes(keyName)) - }) - if (keyName) { - // 避免和其他按键事件冲突 - setTimeout(() => { - this.$emit(keyName, {}) - }, 0) - } - } - document.addEventListener('keyup', listener) - // this.$once('hook:beforeDestroy', () => { - // document.removeEventListener('keyup', listener) - // }) - }, - render: () => {} -} -// #endif diff --git a/src/uni_modules/uni-popup/components/uni-popup/popup.js b/src/uni_modules/uni-popup/components/uni-popup/popup.js deleted file mode 100644 index c4e5781d..00000000 --- a/src/uni_modules/uni-popup/components/uni-popup/popup.js +++ /dev/null @@ -1,26 +0,0 @@ - -export default { - data() { - return { - - } - }, - created(){ - this.popup = this.getParent() - }, - methods:{ - /** - * 获取父元素实例 - */ - getParent(name = 'uniPopup') { - let parent = this.$parent; - let parentName = parent.$options.name; - while (parentName !== name) { - parent = parent.$parent; - if (!parent) return false - parentName = parent.$options.name; - } - return parent; - }, - } -} diff --git a/src/uni_modules/uni-popup/components/uni-popup/uni-popup.vue b/src/uni_modules/uni-popup/components/uni-popup/uni-popup.vue deleted file mode 100644 index db90c599..00000000 --- a/src/uni_modules/uni-popup/components/uni-popup/uni-popup.vue +++ /dev/null @@ -1,474 +0,0 @@ - - - - diff --git a/src/uni_modules/uni-popup/package.json b/src/uni_modules/uni-popup/package.json deleted file mode 100644 index 069e9ce5..00000000 --- a/src/uni_modules/uni-popup/package.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "id": "uni-popup", - "displayName": "uni-popup 弹出层", - "version": "1.7.9", - "description": " Popup 组件,提供常用的弹层", - "keywords": [ - "uni-ui", - "弹出层", - "弹窗", - "popup", - "弹框" - ], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "" - }, - "directories": { - "example": "../../temps/example_temps" - }, - "dcloudext": { - "category": [ - "前端组件", - "通用组件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" - }, - "uni_modules": { - "dependencies": [ - "uni-scss", - "uni-transition" - ], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y" - }, - "快应用": { - "华为": "u", - "联盟": "u" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} diff --git a/src/uni_modules/uni-popup/readme.md b/src/uni_modules/uni-popup/readme.md deleted file mode 100644 index fdad4b3d..00000000 --- a/src/uni_modules/uni-popup/readme.md +++ /dev/null @@ -1,17 +0,0 @@ - - -## Popup 弹出层 -> **组件名:uni-popup** -> 代码块: `uPopup` -> 关联组件:`uni-transition` - - -弹出层组件,在应用中弹出一个消息提示窗口、提示框等 - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-popup) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 - - - - - diff --git a/src/uni_modules/uni-rate/changelog.md b/src/uni_modules/uni-rate/changelog.md deleted file mode 100644 index 8a98a612..00000000 --- a/src/uni_modules/uni-rate/changelog.md +++ /dev/null @@ -1,25 +0,0 @@ -## 1.3.1(2022-02-25) -- 修复 条件判断 `NaN` 错误的 bug -## 1.3.0(2021-11-19) -- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) -- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-rate](https://uniapp.dcloud.io/component/uniui/uni-rate) -## 1.2.2(2021-09-10) -- 优化 默认值修改为 0 颗星 -## 1.2.1(2021-07-30) -- 优化 vue3下事件警告的问题 -## 1.2.0(2021-07-13) -- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) -## 1.1.2(2021-05-12) -- 新增 组件示例地址 -## 1.1.1(2021-04-21) -- 修复 布局变化后 uni-rate 星星计算不准确的 bug -- 优化 添加依赖 uni-icons, 导入 uni-rate 自动下载依赖 -## 1.1.0(2021-04-16) -- 修复 uni-rate 属性 margin 值为 string 组件失效的 bug - -## 1.0.9(2021-02-05) -- 优化 组件引用关系,通过uni_modules引用组件 - -## 1.0.8(2021-02-05) -- 调整为uni_modules目录规范 -- 支持 pc 端 diff --git a/src/uni_modules/uni-rate/components/uni-rate/uni-rate.vue b/src/uni_modules/uni-rate/components/uni-rate/uni-rate.vue deleted file mode 100644 index 857f5f9c..00000000 --- a/src/uni_modules/uni-rate/components/uni-rate/uni-rate.vue +++ /dev/null @@ -1,361 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-rate/package.json b/src/uni_modules/uni-rate/package.json deleted file mode 100644 index 64e8e332..00000000 --- a/src/uni_modules/uni-rate/package.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "id": "uni-rate", - "displayName": "uni-rate 评分", - "version": "1.3.1", - "description": "Rate 评分组件,可自定义评分星星图标的大小、间隔、评分数。", - "keywords": [ - "uni-ui", - "uniui", - "评分" -], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "" - }, - "directories": { - "example": "../../temps/example_temps" - }, - "dcloudext": { - "category": [ - "前端组件", - "通用组件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" - }, - "uni_modules": { - "dependencies": [ - "uni-scss", - "uni-icons" - ], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y" - }, - "快应用": { - "华为": "u", - "联盟": "u" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} diff --git a/src/uni_modules/uni-rate/readme.md b/src/uni_modules/uni-rate/readme.md deleted file mode 100644 index eae7b5ce..00000000 --- a/src/uni_modules/uni-rate/readme.md +++ /dev/null @@ -1,12 +0,0 @@ - - -## Rate 评分 -> **组件名:uni-rate** -> 代码块: `uRate` -> 关联组件:`uni-icons` - - -评分组件,多用于购买商品后,对商品进行评价等场景 - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-rate) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 \ No newline at end of file diff --git a/src/uni_modules/uni-row/changelog.md b/src/uni_modules/uni-row/changelog.md deleted file mode 100644 index 5b465bc6..00000000 --- a/src/uni_modules/uni-row/changelog.md +++ /dev/null @@ -1,10 +0,0 @@ -## 1.0.0(2021-11-19) -- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) -- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-row](https://uniapp.dcloud.io/component/uniui/uni-row) -## 0.1.0(2021-07-13) -- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) -## 0.0.4(2021-05-12) -- 新增 组件示例地址 -## 0.0.3(2021-02-05) -- 调整为uni_modules目录规范 -- 新增uni-row组件 diff --git a/src/uni_modules/uni-row/components/uni-col/uni-col.vue b/src/uni_modules/uni-row/components/uni-col/uni-col.vue deleted file mode 100644 index 84e2deb4..00000000 --- a/src/uni_modules/uni-row/components/uni-col/uni-col.vue +++ /dev/null @@ -1,317 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-row/components/uni-row/uni-row.vue b/src/uni_modules/uni-row/components/uni-row/uni-row.vue deleted file mode 100644 index f8e85423..00000000 --- a/src/uni_modules/uni-row/components/uni-row/uni-row.vue +++ /dev/null @@ -1,190 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-row/package.json b/src/uni_modules/uni-row/package.json deleted file mode 100644 index 3f52fa64..00000000 --- a/src/uni_modules/uni-row/package.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "id": "uni-row", - "displayName": "uni-row 布局-行", - "version": "1.0.0", - "description": "流式栅格系统,随着屏幕或视口分为 24 份,可以迅速简便地创建布局。", - "keywords": [ - "uni-ui", - "uniui", - "栅格", - "布局", - "layout" -], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "" - }, - "directories": { - "example": "../../temps/example_temps" - }, - "dcloudext": { - "category": [ - "前端组件", - "通用组件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" - }, - "uni_modules": { - "dependencies": ["uni-scss"], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y" - }, - "快应用": { - "华为": "u", - "联盟": "u" - }, - "Vue": { - "vue2": "y", - "vue3": "u" - } - } - } - } -} \ No newline at end of file diff --git a/src/uni_modules/uni-row/readme.md b/src/uni_modules/uni-row/readme.md deleted file mode 100644 index 3c9c8b99..00000000 --- a/src/uni_modules/uni-row/readme.md +++ /dev/null @@ -1,10 +0,0 @@ -## Layout 布局 - -> **组件名 uni-row、uni-col** -> 代码块: `uRow`、`uCol` - - -流式栅格系统,随着屏幕或视口分为 24 份,可以迅速简便地创建布局。 - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-row) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 \ No newline at end of file diff --git a/src/uni_modules/uni-scss/changelog.md b/src/uni_modules/uni-scss/changelog.md deleted file mode 100644 index b863bb0f..00000000 --- a/src/uni_modules/uni-scss/changelog.md +++ /dev/null @@ -1,8 +0,0 @@ -## 1.0.3(2022-01-21) -- 优化 组件示例 -## 1.0.2(2021-11-22) -- 修复 / 符号在 vue 不同版本兼容问题引起的报错问题 -## 1.0.1(2021-11-22) -- 修复 vue3中scss语法兼容问题 -## 1.0.0(2021-11-18) -- init diff --git a/src/uni_modules/uni-scss/index.scss b/src/uni_modules/uni-scss/index.scss deleted file mode 100644 index 1744a5f9..00000000 --- a/src/uni_modules/uni-scss/index.scss +++ /dev/null @@ -1 +0,0 @@ -@import './styles/index.scss'; diff --git a/src/uni_modules/uni-scss/package.json b/src/uni_modules/uni-scss/package.json deleted file mode 100644 index 7cc0ccb7..00000000 --- a/src/uni_modules/uni-scss/package.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "id": "uni-scss", - "displayName": "uni-scss 辅助样式", - "version": "1.0.3", - "description": "uni-sass是uni-ui提供的一套全局样式 ,通过一些简单的类名和sass变量,实现简单的页面布局操作,比如颜色、边距、圆角等。", - "keywords": [ - "uni-scss", - "uni-ui", - "辅助样式" -], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "^3.1.0" - }, - "dcloudext": { - "category": [ - "JS SDK", - "通用 SDK" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" - }, - "uni_modules": { - "dependencies": [], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "App": { - "app-vue": "y", - "app-nvue": "u" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y" - }, - "快应用": { - "华为": "n", - "联盟": "n" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} diff --git a/src/uni_modules/uni-scss/readme.md b/src/uni_modules/uni-scss/readme.md deleted file mode 100644 index b7d1c25f..00000000 --- a/src/uni_modules/uni-scss/readme.md +++ /dev/null @@ -1,4 +0,0 @@ -`uni-sass` 是 `uni-ui`提供的一套全局样式 ,通过一些简单的类名和`sass`变量,实现简单的页面布局操作,比如颜色、边距、圆角等。 - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-sass) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 \ No newline at end of file diff --git a/src/uni_modules/uni-scss/styles/index.scss b/src/uni_modules/uni-scss/styles/index.scss deleted file mode 100644 index ffac4fec..00000000 --- a/src/uni_modules/uni-scss/styles/index.scss +++ /dev/null @@ -1,7 +0,0 @@ -@import './setting/_variables.scss'; -@import './setting/_border.scss'; -@import './setting/_color.scss'; -@import './setting/_space.scss'; -@import './setting/_radius.scss'; -@import './setting/_text.scss'; -@import './setting/_styles.scss'; diff --git a/src/uni_modules/uni-scss/styles/setting/_border.scss b/src/uni_modules/uni-scss/styles/setting/_border.scss deleted file mode 100644 index 12a11c32..00000000 --- a/src/uni_modules/uni-scss/styles/setting/_border.scss +++ /dev/null @@ -1,3 +0,0 @@ -.uni-border { - border: 1px $uni-border-1 solid; -} \ No newline at end of file diff --git a/src/uni_modules/uni-scss/styles/setting/_color.scss b/src/uni_modules/uni-scss/styles/setting/_color.scss deleted file mode 100644 index 1ededd94..00000000 --- a/src/uni_modules/uni-scss/styles/setting/_color.scss +++ /dev/null @@ -1,66 +0,0 @@ - -// TODO 暂时不需要 class ,需要用户使用变量实现 ,如果使用类名其实并不推荐 -// @mixin get-styles($k,$c) { -// @if $k == size or $k == weight{ -// font-#{$k}:#{$c} -// }@else{ -// #{$k}:#{$c} -// } -// } -$uni-ui-color:( - // 主色 - primary: $uni-primary, - primary-disable: $uni-primary-disable, - primary-light: $uni-primary-light, - // 辅助色 - success: $uni-success, - success-disable: $uni-success-disable, - success-light: $uni-success-light, - warning: $uni-warning, - warning-disable: $uni-warning-disable, - warning-light: $uni-warning-light, - error: $uni-error, - error-disable: $uni-error-disable, - error-light: $uni-error-light, - info: $uni-info, - info-disable: $uni-info-disable, - info-light: $uni-info-light, - // 中性色 - main-color: $uni-main-color, - base-color: $uni-base-color, - secondary-color: $uni-secondary-color, - extra-color: $uni-extra-color, - // 背景色 - bg-color: $uni-bg-color, - // 边框颜色 - border-1: $uni-border-1, - border-2: $uni-border-2, - border-3: $uni-border-3, - border-4: $uni-border-4, - // 黑色 - black:$uni-black, - // 白色 - white:$uni-white, - // 透明 - transparent:$uni-transparent -) !default; -@each $key, $child in $uni-ui-color { - .uni-#{"" + $key} { - color: $child; - } - .uni-#{"" + $key}-bg { - background-color: $child; - } -} -.uni-shadow-sm { - box-shadow: $uni-shadow-sm; -} -.uni-shadow-base { - box-shadow: $uni-shadow-base; -} -.uni-shadow-lg { - box-shadow: $uni-shadow-lg; -} -.uni-mask { - background-color:$uni-mask; -} diff --git a/src/uni_modules/uni-scss/styles/setting/_radius.scss b/src/uni_modules/uni-scss/styles/setting/_radius.scss deleted file mode 100644 index 9a0428bb..00000000 --- a/src/uni_modules/uni-scss/styles/setting/_radius.scss +++ /dev/null @@ -1,55 +0,0 @@ -@mixin radius($r,$d:null ,$important: false){ - $radius-value:map-get($uni-radius, $r) if($important, !important, null); - // Key exists within the $uni-radius variable - @if (map-has-key($uni-radius, $r) and $d){ - @if $d == t { - border-top-left-radius:$radius-value; - border-top-right-radius:$radius-value; - }@else if $d == r { - border-top-right-radius:$radius-value; - border-bottom-right-radius:$radius-value; - }@else if $d == b { - border-bottom-left-radius:$radius-value; - border-bottom-right-radius:$radius-value; - }@else if $d == l { - border-top-left-radius:$radius-value; - border-bottom-left-radius:$radius-value; - }@else if $d == tl { - border-top-left-radius:$radius-value; - }@else if $d == tr { - border-top-right-radius:$radius-value; - }@else if $d == br { - border-bottom-right-radius:$radius-value; - }@else if $d == bl { - border-bottom-left-radius:$radius-value; - } - }@else{ - border-radius:$radius-value; - } -} - -@each $key, $child in $uni-radius { - @if($key){ - .uni-radius-#{"" + $key} { - @include radius($key) - } - }@else{ - .uni-radius { - @include radius($key) - } - } -} - -@each $direction in t, r, b, l,tl, tr, br, bl { - @each $key, $child in $uni-radius { - @if($key){ - .uni-radius-#{"" + $direction}-#{"" + $key} { - @include radius($key,$direction,false) - } - }@else{ - .uni-radius-#{$direction} { - @include radius($key,$direction,false) - } - } - } -} diff --git a/src/uni_modules/uni-scss/styles/setting/_space.scss b/src/uni_modules/uni-scss/styles/setting/_space.scss deleted file mode 100644 index 3c895289..00000000 --- a/src/uni_modules/uni-scss/styles/setting/_space.scss +++ /dev/null @@ -1,56 +0,0 @@ - -@mixin fn($space,$direction,$size,$n) { - @if $n { - #{$space}-#{$direction}: #{$size*$uni-space-root}px - } @else { - #{$space}-#{$direction}: #{-$size*$uni-space-root}px - } -} -@mixin get-styles($direction,$i,$space,$n){ - @if $direction == t { - @include fn($space, top,$i,$n); - } - @if $direction == r { - @include fn($space, right,$i,$n); - } - @if $direction == b { - @include fn($space, bottom,$i,$n); - } - @if $direction == l { - @include fn($space, left,$i,$n); - } - @if $direction == x { - @include fn($space, left,$i,$n); - @include fn($space, right,$i,$n); - } - @if $direction == y { - @include fn($space, top,$i,$n); - @include fn($space, bottom,$i,$n); - } - @if $direction == a { - @if $n { - #{$space}:#{$i*$uni-space-root}px; - } @else { - #{$space}:#{-$i*$uni-space-root}px; - } - } -} - -@each $orientation in m,p { - $space: margin; - @if $orientation == m { - $space: margin; - } @else { - $space: padding; - } - @for $i from 0 through 16 { - @each $direction in t, r, b, l, x, y, a { - .uni-#{$orientation}#{$direction}-#{$i} { - @include get-styles($direction,$i,$space,true); - } - .uni-#{$orientation}#{$direction}-n#{$i} { - @include get-styles($direction,$i,$space,false); - } - } - } -} \ No newline at end of file diff --git a/src/uni_modules/uni-scss/styles/setting/_styles.scss b/src/uni_modules/uni-scss/styles/setting/_styles.scss deleted file mode 100644 index 689afec6..00000000 --- a/src/uni_modules/uni-scss/styles/setting/_styles.scss +++ /dev/null @@ -1,167 +0,0 @@ -/* #ifndef APP-NVUE */ - -$-color-white:#fff; -$-color-black:#000; -@mixin base-style($color) { - color: #fff; - background-color: $color; - border-color: mix($-color-black, $color, 8%); - &:not([hover-class]):active { - background: mix($-color-black, $color, 10%); - border-color: mix($-color-black, $color, 20%); - color: $-color-white; - outline: none; - } -} -@mixin is-color($color) { - @include base-style($color); - &[loading] { - @include base-style($color); - &::before { - margin-right:5px; - } - } - &[disabled] { - &, - &[loading], - &:not([hover-class]):active { - color: $-color-white; - border-color: mix(darken($color,10%), $-color-white); - background-color: mix($color, $-color-white); - } - } - -} -@mixin base-plain-style($color) { - color:$color; - background-color: mix($-color-white, $color, 90%); - border-color: mix($-color-white, $color, 70%); - &:not([hover-class]):active { - background: mix($-color-white, $color, 80%); - color: $color; - outline: none; - border-color: mix($-color-white, $color, 50%); - } -} -@mixin is-plain($color){ - &[plain] { - @include base-plain-style($color); - &[loading] { - @include base-plain-style($color); - &::before { - margin-right:5px; - } - } - &[disabled] { - &, - &:active { - color: mix($-color-white, $color, 40%); - background-color: mix($-color-white, $color, 90%); - border-color: mix($-color-white, $color, 80%); - } - } - } -} - - -.uni-btn { - margin: 5px; - color: #393939; - border:1px solid #ccc; - font-size: 16px; - font-weight: 200; - background-color: #F9F9F9; - // TODO 暂时处理边框隐藏一边的问题 - overflow: visible; - &::after{ - border: none; - } - - &:not([type]),&[type=default] { - color: #999; - &[loading] { - background: none; - &::before { - margin-right:5px; - } - } - - - - &[disabled]{ - color: mix($-color-white, #999, 60%); - &, - &[loading], - &:active { - color: mix($-color-white, #999, 60%); - background-color: mix($-color-white,$-color-black , 98%); - border-color: mix($-color-white, #999, 85%); - } - } - - &[plain] { - color: #999; - background: none; - border-color: $uni-border-1; - &:not([hover-class]):active { - background: none; - color: mix($-color-white, $-color-black, 80%); - border-color: mix($-color-white, $-color-black, 90%); - outline: none; - } - &[disabled]{ - &, - &[loading], - &:active { - background: none; - color: mix($-color-white, #999, 60%); - border-color: mix($-color-white, #999, 85%); - } - } - } - } - - &:not([hover-class]):active { - color: mix($-color-white, $-color-black, 50%); - } - - &[size=mini] { - font-size: 16px; - font-weight: 200; - border-radius: 8px; - } - - - - &.uni-btn-small { - font-size: 14px; - } - &.uni-btn-mini { - font-size: 12px; - } - - &.uni-btn-radius { - border-radius: 999px; - } - &[type=primary] { - @include is-color($uni-primary); - @include is-plain($uni-primary) - } - &[type=success] { - @include is-color($uni-success); - @include is-plain($uni-success) - } - &[type=error] { - @include is-color($uni-error); - @include is-plain($uni-error) - } - &[type=warning] { - @include is-color($uni-warning); - @include is-plain($uni-warning) - } - &[type=info] { - @include is-color($uni-info); - @include is-plain($uni-info) - } -} -/* #endif */ diff --git a/src/uni_modules/uni-scss/styles/setting/_text.scss b/src/uni_modules/uni-scss/styles/setting/_text.scss deleted file mode 100644 index a34d08f3..00000000 --- a/src/uni_modules/uni-scss/styles/setting/_text.scss +++ /dev/null @@ -1,24 +0,0 @@ -@mixin get-styles($k,$c) { - @if $k == size or $k == weight{ - font-#{$k}:#{$c} - }@else{ - #{$k}:#{$c} - } -} - -@each $key, $child in $uni-headings { - /* #ifndef APP-NVUE */ - .uni-#{$key} { - @each $k, $c in $child { - @include get-styles($k,$c) - } - } - /* #endif */ - /* #ifdef APP-NVUE */ - .container .uni-#{$key} { - @each $k, $c in $child { - @include get-styles($k,$c) - } - } - /* #endif */ -} diff --git a/src/uni_modules/uni-scss/styles/setting/_variables.scss b/src/uni_modules/uni-scss/styles/setting/_variables.scss deleted file mode 100644 index 557d3d7c..00000000 --- a/src/uni_modules/uni-scss/styles/setting/_variables.scss +++ /dev/null @@ -1,146 +0,0 @@ -// @use "sass:math"; -@import '../tools/functions.scss'; -// 间距基础倍数 -$uni-space-root: 2 !default; -// 边框半径默认值 -$uni-radius-root:5px !default; -$uni-radius: () !default; -// 边框半径断点 -$uni-radius: map-deep-merge( - ( - 0: 0, - // TODO 当前版本暂时不支持 sm 属性 - // 'sm': math.div($uni-radius-root, 2), - null: $uni-radius-root, - 'lg': $uni-radius-root * 2, - 'xl': $uni-radius-root * 6, - 'pill': 9999px, - 'circle': 50% - ), - $uni-radius -); -// 字体家族 -$body-font-family: 'Roboto', sans-serif !default; -// 文本 -$heading-font-family: $body-font-family !default; -$uni-headings: () !default; -$letterSpacing: -0.01562em; -$uni-headings: map-deep-merge( - ( - 'h1': ( - size: 32px, - weight: 300, - line-height: 50px, - // letter-spacing:-0.01562em - ), - 'h2': ( - size: 28px, - weight: 300, - line-height: 40px, - // letter-spacing: -0.00833em - ), - 'h3': ( - size: 24px, - weight: 400, - line-height: 32px, - // letter-spacing: normal - ), - 'h4': ( - size: 20px, - weight: 400, - line-height: 30px, - // letter-spacing: 0.00735em - ), - 'h5': ( - size: 16px, - weight: 400, - line-height: 24px, - // letter-spacing: normal - ), - 'h6': ( - size: 14px, - weight: 500, - line-height: 18px, - // letter-spacing: 0.0125em - ), - 'subtitle': ( - size: 12px, - weight: 400, - line-height: 20px, - // letter-spacing: 0.00937em - ), - 'body': ( - font-size: 14px, - font-weight: 400, - line-height: 22px, - // letter-spacing: 0.03125em - ), - 'caption': ( - 'size': 12px, - 'weight': 400, - 'line-height': 20px, - // 'letter-spacing': 0.03333em, - // 'text-transform': false - ) - ), - $uni-headings -); - - - -// 主色 -$uni-primary: #2979ff !default; -$uni-primary-disable:lighten($uni-primary,20%) !default; -$uni-primary-light: lighten($uni-primary,25%) !default; - -// 辅助色 -// 除了主色外的场景色,需要在不同的场景中使用(例如危险色表示危险的操作)。 -$uni-success: #18bc37 !default; -$uni-success-disable:lighten($uni-success,20%) !default; -$uni-success-light: lighten($uni-success,25%) !default; - -$uni-warning: #f3a73f !default; -$uni-warning-disable:lighten($uni-warning,20%) !default; -$uni-warning-light: lighten($uni-warning,25%) !default; - -$uni-error: #e43d33 !default; -$uni-error-disable:lighten($uni-error,20%) !default; -$uni-error-light: lighten($uni-error,25%) !default; - -$uni-info: #8f939c !default; -$uni-info-disable:lighten($uni-info,20%) !default; -$uni-info-light: lighten($uni-info,25%) !default; - -// 中性色 -// 中性色用于文本、背景和边框颜色。通过运用不同的中性色,来表现层次结构。 -$uni-main-color: #3a3a3a !default; // 主要文字 -$uni-base-color: #6a6a6a !default; // 常规文字 -$uni-secondary-color: #909399 !default; // 次要文字 -$uni-extra-color: #c7c7c7 !default; // 辅助说明 - -// 边框颜色 -$uni-border-1: #F0F0F0 !default; -$uni-border-2: #EDEDED !default; -$uni-border-3: #DCDCDC !default; -$uni-border-4: #B9B9B9 !default; - -// 常规色 -$uni-black: #000000 !default; -$uni-white: #ffffff !default; -$uni-transparent: rgba($color: #000000, $alpha: 0) !default; - -// 背景色 -$uni-bg-color: #f7f7f7 !default; - -/* 水平间距 */ -$uni-spacing-sm: 8px !default; -$uni-spacing-base: 15px !default; -$uni-spacing-lg: 30px !default; - -// 阴影 -$uni-shadow-sm:0 0 5px rgba($color: #d8d8d8, $alpha: 0.5) !default; -$uni-shadow-base:0 1px 8px 1px rgba($color: #a5a5a5, $alpha: 0.2) !default; -$uni-shadow-lg:0px 1px 10px 2px rgba($color: #a5a4a4, $alpha: 0.5) !default; - -// 蒙版 -$uni-mask: rgba($color: #000000, $alpha: 0.4) !default; diff --git a/src/uni_modules/uni-scss/styles/tools/functions.scss b/src/uni_modules/uni-scss/styles/tools/functions.scss deleted file mode 100644 index ac6f63e5..00000000 --- a/src/uni_modules/uni-scss/styles/tools/functions.scss +++ /dev/null @@ -1,19 +0,0 @@ -// 合并 map -@function map-deep-merge($parent-map, $child-map){ - $result: $parent-map; - @each $key, $child in $child-map { - $parent-has-key: map-has-key($result, $key); - $parent-value: map-get($result, $key); - $parent-type: type-of($parent-value); - $child-type: type-of($child); - $parent-is-map: $parent-type == map; - $child-is-map: $child-type == map; - - @if (not $parent-has-key) or ($parent-type != $child-type) or (not ($parent-is-map and $child-is-map)){ - $result: map-merge($result, ( $key: $child )); - }@else { - $result: map-merge($result, ( $key: map-deep-merge($parent-value, $child) )); - } - } - @return $result; -}; diff --git a/src/uni_modules/uni-scss/theme.scss b/src/uni_modules/uni-scss/theme.scss deleted file mode 100644 index 80ee62f7..00000000 --- a/src/uni_modules/uni-scss/theme.scss +++ /dev/null @@ -1,31 +0,0 @@ -// 间距基础倍数 -$uni-space-root: 2; -// 边框半径默认值 -$uni-radius-root:5px; -// 主色 -$uni-primary: #2979ff; -// 辅助色 -$uni-success: #4cd964; -// 警告色 -$uni-warning: #f0ad4e; -// 错误色 -$uni-error: #dd524d; -// 描述色 -$uni-info: #909399; -// 中性色 -$uni-main-color: #303133; -$uni-base-color: #606266; -$uni-secondary-color: #909399; -$uni-extra-color: #C0C4CC; -// 背景色 -$uni-bg-color: #f5f5f5; -// 边框颜色 -$uni-border-1: #DCDFE6; -$uni-border-2: #E4E7ED; -$uni-border-3: #EBEEF5; -$uni-border-4: #F2F6FC; - -// 常规色 -$uni-black: #000000; -$uni-white: #ffffff; -$uni-transparent: rgba($color: #000000, $alpha: 0); diff --git a/src/uni_modules/uni-scss/variables.scss b/src/uni_modules/uni-scss/variables.scss deleted file mode 100644 index 1c062d42..00000000 --- a/src/uni_modules/uni-scss/variables.scss +++ /dev/null @@ -1,62 +0,0 @@ -@import './styles/setting/_variables.scss'; -// 间距基础倍数 -$uni-space-root: 2; -// 边框半径默认值 -$uni-radius-root:5px; - -// 主色 -$uni-primary: #2979ff; -$uni-primary-disable:mix(#fff,$uni-primary,50%); -$uni-primary-light: mix(#fff,$uni-primary,80%); - -// 辅助色 -// 除了主色外的场景色,需要在不同的场景中使用(例如危险色表示危险的操作)。 -$uni-success: #18bc37; -$uni-success-disable:mix(#fff,$uni-success,50%); -$uni-success-light: mix(#fff,$uni-success,80%); - -$uni-warning: #f3a73f; -$uni-warning-disable:mix(#fff,$uni-warning,50%); -$uni-warning-light: mix(#fff,$uni-warning,80%); - -$uni-error: #e43d33; -$uni-error-disable:mix(#fff,$uni-error,50%); -$uni-error-light: mix(#fff,$uni-error,80%); - -$uni-info: #8f939c; -$uni-info-disable:mix(#fff,$uni-info,50%); -$uni-info-light: mix(#fff,$uni-info,80%); - -// 中性色 -// 中性色用于文本、背景和边框颜色。通过运用不同的中性色,来表现层次结构。 -$uni-main-color: #3a3a3a; // 主要文字 -$uni-base-color: #6a6a6a; // 常规文字 -$uni-secondary-color: #909399; // 次要文字 -$uni-extra-color: #c7c7c7; // 辅助说明 - -// 边框颜色 -$uni-border-1: #F0F0F0; -$uni-border-2: #EDEDED; -$uni-border-3: #DCDCDC; -$uni-border-4: #B9B9B9; - -// 常规色 -$uni-black: #000000; -$uni-white: #ffffff; -$uni-transparent: rgba($color: #000000, $alpha: 0); - -// 背景色 -$uni-bg-color: #f7f7f7; - -/* 水平间距 */ -$uni-spacing-sm: 8px; -$uni-spacing-base: 15px; -$uni-spacing-lg: 30px; - -// 阴影 -$uni-shadow-sm:0 0 5px rgba($color: #d8d8d8, $alpha: 0.5); -$uni-shadow-base:0 1px 8px 1px rgba($color: #a5a5a5, $alpha: 0.2); -$uni-shadow-lg:0px 1px 10px 2px rgba($color: #a5a4a4, $alpha: 0.5); - -// 蒙版 -$uni-mask: rgba($color: #000000, $alpha: 0.4); diff --git a/src/uni_modules/uni-search-bar/changelog.md b/src/uni_modules/uni-search-bar/changelog.md deleted file mode 100644 index b41fdd3b..00000000 --- a/src/uni_modules/uni-search-bar/changelog.md +++ /dev/null @@ -1,33 +0,0 @@ -## 1.2.3(2022-05-24) -- 新增 readonly 属性,组件只读 -## 1.2.2(2022-05-06) -- 修复 vue3 input 事件不生效的bug -## 1.2.1(2022-05-06) -- 修复 多余代码导致的bug -## 1.2.0(2021-11-19) -- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) -- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-search-bar](https://uniapp.dcloud.io/component/uniui/uni-search-bar) -## 1.1.2(2021-08-30) -- 修复 value 属性与 modelValue 属性不兼容的Bug -## 1.1.1(2021-08-24) -- 新增 支持国际化 -## 1.1.0(2021-07-30) -- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) -## 1.0.9(2021-05-12) -- 新增 项目示例地址 -## 1.0.8(2021-04-21) -- 优化 添加依赖 uni-icons, 导入后自动下载依赖 -## 1.0.7(2021-04-15) -- uni-ui 新增 uni-search-bar 的 focus 事件 - -## 1.0.6(2021-02-05) -- 优化 组件引用关系,通过uni_modules引用组件 - -## 1.0.5(2021-02-05) -- 调整为uni_modules目录规范 -- 新增 支持双向绑定 -- 更改 input 事件的返回值,e={value:Number} --> e=value -- 新增 支持图标插槽 -- 新增 支持 clear、blur 事件 -- 新增 支持 focus 属性 -- 去掉组件背景色 diff --git a/src/uni_modules/uni-search-bar/components/uni-search-bar/i18n/en.json b/src/uni_modules/uni-search-bar/components/uni-search-bar/i18n/en.json deleted file mode 100644 index dd083a53..00000000 --- a/src/uni_modules/uni-search-bar/components/uni-search-bar/i18n/en.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "uni-search-bar.cancel": "cancel", - "uni-search-bar.placeholder": "Search enter content" -} \ No newline at end of file diff --git a/src/uni_modules/uni-search-bar/components/uni-search-bar/i18n/index.js b/src/uni_modules/uni-search-bar/components/uni-search-bar/i18n/index.js deleted file mode 100644 index de7509c8..00000000 --- a/src/uni_modules/uni-search-bar/components/uni-search-bar/i18n/index.js +++ /dev/null @@ -1,8 +0,0 @@ -import en from './en.json' -import zhHans from './zh-Hans.json' -import zhHant from './zh-Hant.json' -export default { - en, - 'zh-Hans': zhHans, - 'zh-Hant': zhHant -} diff --git a/src/uni_modules/uni-search-bar/components/uni-search-bar/i18n/zh-Hans.json b/src/uni_modules/uni-search-bar/components/uni-search-bar/i18n/zh-Hans.json deleted file mode 100644 index d4e5c120..00000000 --- a/src/uni_modules/uni-search-bar/components/uni-search-bar/i18n/zh-Hans.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "uni-search-bar.cancel": "cancel", - "uni-search-bar.placeholder": "请输入搜索内容" -} diff --git a/src/uni_modules/uni-search-bar/components/uni-search-bar/i18n/zh-Hant.json b/src/uni_modules/uni-search-bar/components/uni-search-bar/i18n/zh-Hant.json deleted file mode 100644 index 318b6ef1..00000000 --- a/src/uni_modules/uni-search-bar/components/uni-search-bar/i18n/zh-Hant.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "uni-search-bar.cancel": "cancel", - "uni-search-bar.placeholder": "請輸入搜索內容" -} diff --git a/src/uni_modules/uni-search-bar/components/uni-search-bar/uni-search-bar.vue b/src/uni_modules/uni-search-bar/components/uni-search-bar/uni-search-bar.vue deleted file mode 100644 index 5a518a8c..00000000 --- a/src/uni_modules/uni-search-bar/components/uni-search-bar/uni-search-bar.vue +++ /dev/null @@ -1,298 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-search-bar/package.json b/src/uni_modules/uni-search-bar/package.json deleted file mode 100644 index 9352c574..00000000 --- a/src/uni_modules/uni-search-bar/package.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "id": "uni-search-bar", - "displayName": "uni-search-bar 搜索栏", - "version": "1.2.3", - "description": "搜索栏组件,通常用于搜索商品、文章等", - "keywords": [ - "uni-ui", - "uniui", - "搜索框", - "搜索栏" -], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "" - }, - "directories": { - "example": "../../temps/example_temps" - }, - "dcloudext": { - "category": [ - "前端组件", - "通用组件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" - }, - "uni_modules": { - "dependencies": [ - "uni-scss", - "uni-icons" - ], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y" - }, - "快应用": { - "华为": "u", - "联盟": "u" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} \ No newline at end of file diff --git a/src/uni_modules/uni-search-bar/readme.md b/src/uni_modules/uni-search-bar/readme.md deleted file mode 100644 index 253092f0..00000000 --- a/src/uni_modules/uni-search-bar/readme.md +++ /dev/null @@ -1,14 +0,0 @@ - - -## SearchBar 搜索栏 - -> **组件名:uni-search-bar** -> 代码块: `uSearchBar` - - -搜索栏组件 - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-search-bar) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 - - diff --git a/src/uni_modules/uni-section/changelog.md b/src/uni_modules/uni-section/changelog.md deleted file mode 100644 index 738f2b32..00000000 --- a/src/uni_modules/uni-section/changelog.md +++ /dev/null @@ -1,2 +0,0 @@ -## 0.0.1(2022-07-22) -- 初始化 diff --git a/src/uni_modules/uni-section/components/uni-section/uni-section.vue b/src/uni_modules/uni-section/components/uni-section/uni-section.vue deleted file mode 100644 index 9a52e0b8..00000000 --- a/src/uni_modules/uni-section/components/uni-section/uni-section.vue +++ /dev/null @@ -1,167 +0,0 @@ - - - - diff --git a/src/uni_modules/uni-section/package.json b/src/uni_modules/uni-section/package.json deleted file mode 100644 index 0a31fb55..00000000 --- a/src/uni_modules/uni-section/package.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "id": "uni-section", - "displayName": "uni-section 标题栏", - "version": "0.0.1", - "description": "标题栏组件", - "keywords": [ - "uni-ui", - "uniui", - "标题栏" -], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "" - }, - "directories": { - "example": "../../temps/example_temps" - }, - "dcloudext": { - "category": [ - "前端组件", - "通用组件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" - }, - "uni_modules": { - "dependencies": [ - "uni-scss" - ], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y" - }, - "快应用": { - "华为": "u", - "联盟": "u" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} \ No newline at end of file diff --git a/src/uni_modules/uni-section/readme.md b/src/uni_modules/uni-section/readme.md deleted file mode 100644 index d47faab7..00000000 --- a/src/uni_modules/uni-section/readme.md +++ /dev/null @@ -1,8 +0,0 @@ -## Section 标题栏 -> **组件名:uni-section** -> 代码块: `uSection` - -uni-section 组件主要用于文章、列表详情等标题展示 - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-section) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 diff --git a/src/uni_modules/uni-segmented-control/changelog.md b/src/uni_modules/uni-segmented-control/changelog.md deleted file mode 100644 index a44385d7..00000000 --- a/src/uni_modules/uni-segmented-control/changelog.md +++ /dev/null @@ -1,9 +0,0 @@ -## 1.2.0(2021-11-19) -- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) -- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-segmented-control](https://uniapp.dcloud.io/component/uniui/uni-segmented-control) -## 1.1.0(2021-07-30) -- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) -## 1.0.5(2021-05-12) -- 新增 项目示例地址 -## 1.0.4(2021-02-05) -- 调整为uni_modules目录规范 diff --git a/src/uni_modules/uni-segmented-control/components/uni-segmented-control/uni-segmented-control.vue b/src/uni_modules/uni-segmented-control/components/uni-segmented-control/uni-segmented-control.vue deleted file mode 100644 index 044a4951..00000000 --- a/src/uni_modules/uni-segmented-control/components/uni-segmented-control/uni-segmented-control.vue +++ /dev/null @@ -1,145 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-segmented-control/package.json b/src/uni_modules/uni-segmented-control/package.json deleted file mode 100644 index 6cae41db..00000000 --- a/src/uni_modules/uni-segmented-control/package.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "id": "uni-segmented-control", - "displayName": "uni-segmented-control 分段器", - "version": "1.2.0", - "description": "分段器由至少 2 个分段控件组成,用作不同视图的显示", - "keywords": [ - "uni-ui", - "uniui", - "分段器", - "segement", - "顶部选择" -], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "" - }, - "directories": { - "example": "../../temps/example_temps" - }, - "dcloudext": { - "category": [ - "前端组件", - "通用组件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" - }, - "uni_modules": { - "dependencies": ["uni-scss"], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y" - }, - "快应用": { - "华为": "u", - "联盟": "u" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} \ No newline at end of file diff --git a/src/uni_modules/uni-segmented-control/readme.md b/src/uni_modules/uni-segmented-control/readme.md deleted file mode 100644 index 3527b03f..00000000 --- a/src/uni_modules/uni-segmented-control/readme.md +++ /dev/null @@ -1,13 +0,0 @@ - - -## SegmentedControl 分段器 -> **组件名:uni-segmented-control** -> 代码块: `uSegmentedControl` - - -用作不同视图的显示 - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-segmented-control) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 - - diff --git a/src/uni_modules/uni-steps/changelog.md b/src/uni_modules/uni-steps/changelog.md deleted file mode 100644 index cb9d3679..00000000 --- a/src/uni_modules/uni-steps/changelog.md +++ /dev/null @@ -1,16 +0,0 @@ -## 1.1.1(2021-11-22) -- 修复 vue3中某些scss变量无法找到的问题 -## 1.1.0(2021-11-19) -- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) -- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-steps](https://uniapp.dcloud.io/component/uniui/uni-steps) -## 1.0.8(2021-05-12) -- 新增 项目示例地址 -## 1.0.7(2021-05-06) -- 修复 uni-steps 横向布局时,多行文字高度不合理的 bug -## 1.0.6(2021-04-21) -- 优化 添加依赖 uni-icons, 导入后自动下载依赖 -## 1.0.5(2021-02-05) -- 优化 组件引用关系,通过uni_modules引用组件 - -## 1.0.4(2021-02-05) -- 调整为uni_modules目录规范 diff --git a/src/uni_modules/uni-steps/components/uni-steps/uni-steps.vue b/src/uni_modules/uni-steps/components/uni-steps/uni-steps.vue deleted file mode 100644 index a6c8f287..00000000 --- a/src/uni_modules/uni-steps/components/uni-steps/uni-steps.vue +++ /dev/null @@ -1,269 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-steps/package.json b/src/uni_modules/uni-steps/package.json deleted file mode 100644 index c687b40a..00000000 --- a/src/uni_modules/uni-steps/package.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "id": "uni-steps", - "displayName": "uni-steps 步骤条", - "version": "1.1.1", - "description": "步骤条组件,提供横向和纵向两种布局格式。", - "keywords": [ - "uni-ui", - "uniui", - "步骤条", - "时间轴" -], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "" - }, - "directories": { - "example": "../../temps/example_temps" - }, - "dcloudext": { - "category": [ - "前端组件", - "通用组件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" - }, - "uni_modules": { - "dependencies": [ - "uni-scss", - "uni-icons" - ], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y" - }, - "快应用": { - "华为": "u", - "联盟": "u" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} \ No newline at end of file diff --git a/src/uni_modules/uni-steps/readme.md b/src/uni_modules/uni-steps/readme.md deleted file mode 100644 index da7a4bfa..00000000 --- a/src/uni_modules/uni-steps/readme.md +++ /dev/null @@ -1,13 +0,0 @@ - - -## Steps 步骤条 -> **组件名:uni-steps** -> 代码块: `uSteps` - - -步骤条,常用于显示进度 - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-steps) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 - - diff --git a/src/uni_modules/uni-swipe-action/changelog.md b/src/uni_modules/uni-swipe-action/changelog.md deleted file mode 100644 index c007cb5c..00000000 --- a/src/uni_modules/uni-swipe-action/changelog.md +++ /dev/null @@ -1,41 +0,0 @@ -## 1.3.7(2022-06-06) -- 修复 vue3 下使用组件不能正常运行的Bug -## 1.3.6(2022-05-31) -- 修复 h5端点击click触发两次的Bug -## 1.3.5(2022-05-23) -- 修复 isPC 找不到的Bug -## 1.3.4(2022-05-19) -- 修复 在 nvue 下 disabled 失效的bug -## 1.3.3(2022-03-31) -- 修复 按钮字体大小不能设置的bug -## 1.3.2(2022-03-16) -- 修复 h5和app端下报el错误的bug -## 1.3.1(2022-03-07) -- 修复 HBuilderX 1.4.X 版本中,h5和app端下报错的bug -## 1.3.0(2021-11-19) -- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) -- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-swipe-action](https://uniapp.dcloud.io/component/uniui/uni-swipe-action) -## 1.2.4(2021-08-20) -- 优化 close-all 方法 -## 1.2.3(2021-08-20) -- 新增 close-all 方法,关闭所有已打开的组件 -## 1.2.2(2021-08-17) -- 新增 resize() 方法,在非微信小程序、h5、app-vue端出现不能滑动的问题的时候,重置组件 -- 修复 app 端偶尔出现类似 Page[x][-x,xx;-x,xx,x,x-x] 的问题 -- 优化 微信小程序、h5、app-vue 滑动逻辑,避免出现动态新增组件后不能滑动的问题 -## 1.2.1(2021-07-30) -- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) -- 修复 跨页面修改组件数据 ,导致不能滑动的问题 -## 1.1.10(2021-06-17) -- 修复 按钮点击执行两次的bug -## 1.1.9(2021-05-12) -- 新增 项目示例地址 -## 1.1.8(2021-03-26) -- 修复 微信小程序 nv_navigator is not defined 报错的bug -## 1.1.7(2021-02-05) -- 调整为uni_modules目录规范 -- 新增 左侧滑动 -- 新增 插槽使用方式 -- 新增 threshold 属性,可以控制滑动缺省值 -- 优化 长列表滚动性能 -- 修复 滚动页面时触发组件滑动的Bug diff --git a/src/uni_modules/uni-swipe-action/components/uni-swipe-action-item/bindingx.js b/src/uni_modules/uni-swipe-action/components/uni-swipe-action-item/bindingx.js deleted file mode 100644 index 755c97c9..00000000 --- a/src/uni_modules/uni-swipe-action/components/uni-swipe-action-item/bindingx.js +++ /dev/null @@ -1,302 +0,0 @@ -let bindIngXMixins = {} - -// #ifdef APP-NVUE -const BindingX = uni.requireNativePlugin('bindingx'); -const dom = uni.requireNativePlugin('dom'); -const animation = uni.requireNativePlugin('animation'); - -bindIngXMixins = { - data() { - return {} - }, - - watch: { - show(newVal) { - if (this.autoClose) return - if (this.stop) return - this.stop = true - if (newVal) { - this.open(newVal) - } else { - this.close() - } - }, - leftOptions() { - this.getSelectorQuery() - this.init() - }, - rightOptions(newVal) { - this.init() - } - }, - created() { - this.swipeaction = this.getSwipeAction() - if (this.swipeaction.children !== undefined) { - this.swipeaction.children.push(this) - } - }, - mounted() { - this.box = this.getEl(this.$refs['selector-box--hock']) - this.selector = this.getEl(this.$refs['selector-content--hock']); - this.leftButton = this.getEl(this.$refs['selector-left-button--hock']); - this.rightButton = this.getEl(this.$refs['selector-right-button--hock']); - this.init() - }, - // beforeDestroy() { - // this.swipeaction.children.forEach((item, index) => { - // if (item === this) { - // this.swipeaction.children.splice(index, 1) - // } - // }) - // }, - methods: { - init() { - this.$nextTick(() => { - this.x = 0 - this.button = { - show: false - } - setTimeout(() => { - this.getSelectorQuery() - }, 200) - }) - }, - onClick(index, item, position) { - this.$emit('click', { - content: item, - index, - position - }) - }, - touchstart(e) { - // fix by mehaotian 禁止滑动 - if (this.disabled) return - // 每次只触发一次,避免多次监听造成闪烁 - if (this.stop) return - this.stop = true - if (this.autoClose) { - this.swipeaction.closeOther(this) - } - - const leftWidth = this.button.left.width - const rightWidth = this.button.right.width - let expression = this.range(this.x, -rightWidth, leftWidth) - let leftExpression = this.range(this.x - leftWidth, -leftWidth, 0) - let rightExpression = this.range(this.x + rightWidth, 0, rightWidth) - - this.eventpan = BindingX.bind({ - anchor: this.box, - eventType: 'pan', - props: [{ - element: this.selector, - property: 'transform.translateX', - expression - }, { - element: this.leftButton, - property: 'transform.translateX', - expression: leftExpression - }, { - element: this.rightButton, - property: 'transform.translateX', - expression: rightExpression - }, ] - }, (e) => { - // nope - if (e.state === 'end') { - this.x = e.deltaX + this.x; - this.isclick = true - this.bindTiming(e.deltaX) - } - }); - }, - touchend(e) { - if (this.isopen !== 'none' && !this.isclick) { - this.open('none') - } - }, - bindTiming(x) { - const left = this.x - const leftWidth = this.button.left.width - const rightWidth = this.button.right.width - const threshold = this.threshold - if (!this.isopen || this.isopen === 'none') { - if (left > threshold) { - this.open('left') - } else if (left < -threshold) { - this.open('right') - } else { - this.open('none') - } - } else { - if ((x > -leftWidth && x < 0) || x > rightWidth) { - if ((x > -threshold && x < 0) || (x - rightWidth > threshold)) { - this.open('left') - } else { - this.open('none') - } - } else { - if ((x < threshold && x > 0) || (x + leftWidth < -threshold)) { - this.open('right') - } else { - this.open('none') - } - } - } - }, - - /** - * 移动范围 - * @param {Object} num - * @param {Object} mix - * @param {Object} max - */ - range(num, mix, max) { - return `min(max(x+${num}, ${mix}), ${max})` - }, - - /** - * 开启swipe - */ - open(type) { - this.animation(type) - }, - - /** - * 关闭swipe - */ - close() { - this.animation('none') - }, - - /** - * 开启关闭动画 - * @param {Object} type - */ - animation(type) { - const time = 300 - const leftWidth = this.button.left.width - const rightWidth = this.button.right.width - if (this.eventpan && this.eventpan.token) { - BindingX.unbind({ - token: this.eventpan.token, - eventType: 'pan' - }) - } - - switch (type) { - case 'left': - Promise.all([ - this.move(this.selector, leftWidth), - this.move(this.leftButton, 0), - this.move(this.rightButton, rightWidth * 2) - ]).then(() => { - this.setEmit(leftWidth, type) - }) - break - case 'right': - Promise.all([ - this.move(this.selector, -rightWidth), - this.move(this.leftButton, -leftWidth * 2), - this.move(this.rightButton, 0) - ]).then(() => { - this.setEmit(-rightWidth, type) - }) - break - default: - Promise.all([ - this.move(this.selector, 0), - this.move(this.leftButton, -leftWidth), - this.move(this.rightButton, rightWidth) - ]).then(() => { - this.setEmit(0, type) - }) - - } - }, - setEmit(x, type) { - const leftWidth = this.button.left.width - const rightWidth = this.button.right.width - this.isopen = this.isopen || 'none' - this.stop = false - this.isclick = false - // 只有状态不一致才会返回结果 - if (this.isopen !== type && this.x !== x) { - if (type === 'left' && leftWidth > 0) { - this.$emit('change', 'left') - } - if (type === 'right' && rightWidth > 0) { - this.$emit('change', 'right') - } - if (type === 'none') { - this.$emit('change', 'none') - } - } - this.x = x - this.isopen = type - }, - move(ref, value) { - return new Promise((resolve, reject) => { - animation.transition(ref, { - styles: { - transform: `translateX(${value})`, - }, - duration: 150, //ms - timingFunction: 'linear', - needLayout: false, - delay: 0 //ms - }, function(res) { - resolve(res) - }) - }) - - }, - - /** - * 获取ref - * @param {Object} el - */ - getEl(el) { - return el.ref - }, - /** - * 获取节点信息 - */ - getSelectorQuery() { - Promise.all([ - this.getDom('left'), - this.getDom('right'), - ]).then((data) => { - let show = 'none' - if (this.autoClose) { - show = 'none' - } else { - show = this.show - } - - if (show === 'none') { - // this.close() - } else { - this.open(show) - } - - }) - - }, - getDom(str) { - return new Promise((resolve, reject) => { - dom.getComponentRect(this.$refs[`selector-${str}-button--hock`], (data) => { - if (data) { - this.button[str] = data.size - resolve(data) - } else { - reject() - } - }) - }) - } - } -} - -// #endif - -export default bindIngXMixins diff --git a/src/uni_modules/uni-swipe-action/components/uni-swipe-action-item/index.wxs b/src/uni_modules/uni-swipe-action/components/uni-swipe-action-item/index.wxs deleted file mode 100644 index 10ddb568..00000000 --- a/src/uni_modules/uni-swipe-action/components/uni-swipe-action-item/index.wxs +++ /dev/null @@ -1,323 +0,0 @@ -var MIN_DISTANCE = 10; - -/** - * 判断当前是否为H5、app-vue - */ -var IS_HTML5 = false -if (typeof window === 'object') IS_HTML5 = true - -/** - * 监听页面内值的变化,主要用于动态开关swipe-action - * @param {Object} newValue - * @param {Object} oldValue - * @param {Object} ownerInstance - * @param {Object} instance - */ -function sizeReady(newValue, oldValue, ownerInstance, instance) { - var state = instance.getState() - var buttonPositions = JSON.parse(newValue) - if (!buttonPositions || !buttonPositions.data || buttonPositions.data.length === 0) return - state.leftWidth = buttonPositions.data[0].width - state.rightWidth = buttonPositions.data[1].width - state.threshold = instance.getDataset().threshold - - if (buttonPositions.show && buttonPositions.show !== 'none') { - openState(buttonPositions.show, instance, ownerInstance) - return - } - - if (state.left) { - openState('none', instance, ownerInstance) - } - resetTouchStatus(instance) -} - -/** - * 开始触摸操作 - * @param {Object} e - * @param {Object} ins - */ -function touchstart(e, ins) { - var instance = e.instance; - var disabled = instance.getDataset().disabled - var state = instance.getState(); - // fix by mehaotian, TODO 兼容 app-vue 获取dataset为字符串 , h5 获取 为 undefined 的问题,待框架修复 - disabled = (typeof(disabled) === 'string' ? JSON.parse(disabled) : disabled) || false; - if (disabled) return - // 开始触摸时移除动画类 - instance.requestAnimationFrame(function() { - instance.removeClass('ani'); - ins.callMethod('closeSwipe'); - }) - - // 记录上次的位置 - state.x = state.left || 0 - // 计算滑动开始位置 - stopTouchStart(e, ins) -} - -/** - * 开始滑动操作 - * @param {Object} e - * @param {Object} ownerInstance - */ -function touchmove(e, ownerInstance) { - var instance = e.instance; - var disabled = instance.getDataset().disabled - var state = instance.getState() - // fix by mehaotian, TODO 兼容 app-vue 获取dataset为字符串 , h5 获取 为 undefined 的问题,待框架修复 - disabled = (typeof(disabled) === 'string' ? JSON.parse(disabled) : disabled) || false; - if (disabled) return - // 是否可以滑动页面 - stopTouchMove(e); - if (state.direction !== 'horizontal') { - return; - } - - if (e.preventDefault) { - // 阻止页面滚动 - e.preventDefault() - } - - move(state.x + state.deltaX, instance, ownerInstance) -} - -/** - * 结束触摸操作 - * @param {Object} e - * @param {Object} ownerInstance - */ -function touchend(e, ownerInstance) { - var instance = e.instance; - var disabled = instance.getDataset().disabled - var state = instance.getState() - // fix by mehaotian, TODO 兼容 app-vue 获取dataset为字符串 , h5 获取 为 undefined 的问题,待框架修复 - disabled = (typeof(disabled) === 'string' ? JSON.parse(disabled) : disabled) || false; - - if (disabled) return - // 滑动过程中触摸结束,通过阙值判断是开启还是关闭 - // fixed by mehaotian 定时器解决点击按钮,touchend 触发比 click 事件时机早的问题 ,主要是 ios13 - moveDirection(state.left, instance, ownerInstance) - -} - -/** - * 设置移动距离 - * @param {Object} value - * @param {Object} instance - * @param {Object} ownerInstance - */ -function move(value, instance, ownerInstance) { - value = value || 0 - var state = instance.getState() - var leftWidth = state.leftWidth - var rightWidth = state.rightWidth - // 获取可滑动范围 - state.left = range(value, -rightWidth, leftWidth); - instance.requestAnimationFrame(function() { - instance.setStyle({ - transform: 'translateX(' + state.left + 'px)', - '-webkit-transform': 'translateX(' + state.left + 'px)' - }) - }) - -} - -/** - * 获取范围 - * @param {Object} num - * @param {Object} min - * @param {Object} max - */ -function range(num, min, max) { - return Math.min(Math.max(num, min), max); -} - - -/** - * 移动方向判断 - * @param {Object} left - * @param {Object} value - * @param {Object} ownerInstance - * @param {Object} ins - */ -function moveDirection(left, ins, ownerInstance) { - var state = ins.getState() - var threshold = state.threshold - var position = state.position - var isopen = state.isopen || 'none' - var leftWidth = state.leftWidth - var rightWidth = state.rightWidth - if (state.deltaX === 0) { - openState('none', ins, ownerInstance) - return - } - if ((isopen === 'none' && rightWidth > 0 && -left > threshold) || (isopen !== 'none' && rightWidth > 0 && - rightWidth + - left < threshold)) { - // right - openState('right', ins, ownerInstance) - } else if ((isopen === 'none' && leftWidth > 0 && left > threshold) || (isopen !== 'none' && leftWidth > 0 && - leftWidth - left < threshold)) { - // left - openState('left', ins, ownerInstance) - } else { - // default - openState('none', ins, ownerInstance) - } -} - - -/** - * 开启状态 - * @param {Boolean} type - * @param {Object} ins - * @param {Object} ownerInstance - */ -function openState(type, ins, ownerInstance) { - var state = ins.getState() - var position = state.position - var leftWidth = state.leftWidth - var rightWidth = state.rightWidth - var left = '' - state.isopen = state.isopen ? state.isopen : 'none' - switch (type) { - case "left": - left = leftWidth - break - case "right": - left = -rightWidth - break - default: - left = 0 - } - - // && !state.throttle - - if (state.isopen !== type) { - state.throttle = true - ownerInstance.callMethod('change', { - open: type - }) - - } - - state.isopen = type - // 添加动画类 - ins.requestAnimationFrame(function() { - ins.addClass('ani'); - move(left, ins, ownerInstance) - }) - // 设置最终移动位置,理论上只要进入到这个函数,肯定是要打开的 -} - - -function getDirection(x, y) { - if (x > y && x > MIN_DISTANCE) { - return 'horizontal'; - } - if (y > x && y > MIN_DISTANCE) { - return 'vertical'; - } - return ''; -} - -/** - * 重置滑动状态 - * @param {Object} event - */ -function resetTouchStatus(instance) { - var state = instance.getState(); - state.direction = ''; - state.deltaX = 0; - state.deltaY = 0; - state.offsetX = 0; - state.offsetY = 0; -} - -/** - * 设置滑动开始位置 - * @param {Object} event - */ -function stopTouchStart(event) { - var instance = event.instance; - var state = instance.getState(); - resetTouchStatus(instance); - var touch = event.touches[0]; - if (IS_HTML5 && isPC()) { - touch = event; - } - state.startX = touch.clientX; - state.startY = touch.clientY; -} - -/** - * 滑动中,是否禁止打开 - * @param {Object} event - */ -function stopTouchMove(event) { - var instance = event.instance; - var state = instance.getState(); - var touch = event.touches[0]; - if (IS_HTML5 && isPC()) { - touch = event; - } - state.deltaX = touch.clientX - state.startX; - state.deltaY = touch.clientY - state.startY; - state.offsetY = Math.abs(state.deltaY); - state.offsetX = Math.abs(state.deltaX); - state.direction = state.direction || getDirection(state.offsetX, state.offsetY); -} - -function isPC() { - var userAgentInfo = navigator.userAgent; - var Agents = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"]; - var flag = true; - for (var v = 0; v < Agents.length - 1; v++) { - if (userAgentInfo.indexOf(Agents[v]) > 0) { - flag = false; - break; - } - } - return flag; -} - -var movable = false - -function mousedown(e, ins) { - if (!IS_HTML5) return - if (!isPC()) return - touchstart(e, ins) - movable = true -} - -function mousemove(e, ins) { - if (!IS_HTML5) return - if (!isPC()) return - if (!movable) return - touchmove(e, ins) -} - -function mouseup(e, ins) { - if (!IS_HTML5) return - if (!isPC()) return - touchend(e, ins) - movable = false -} - -function mouseleave(e, ins) { - if (!IS_HTML5) return - if (!isPC()) return - movable = false -} - -module.exports = { - sizeReady: sizeReady, - touchstart: touchstart, - touchmove: touchmove, - touchend: touchend, - mousedown: mousedown, - mousemove: mousemove, - mouseup: mouseup, - mouseleave: mouseleave -} diff --git a/src/uni_modules/uni-swipe-action/components/uni-swipe-action-item/isPC.js b/src/uni_modules/uni-swipe-action/components/uni-swipe-action-item/isPC.js deleted file mode 100644 index 917cb489..00000000 --- a/src/uni_modules/uni-swipe-action/components/uni-swipe-action-item/isPC.js +++ /dev/null @@ -1,12 +0,0 @@ -export function isPC() { - var userAgentInfo = navigator.userAgent; - var Agents = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"]; - var flag = true; - for (let v = 0; v < Agents.length - 1; v++) { - if (userAgentInfo.indexOf(Agents[v]) > 0) { - flag = false; - break; - } - } - return flag; -} diff --git a/src/uni_modules/uni-swipe-action/components/uni-swipe-action-item/mpalipay.js b/src/uni_modules/uni-swipe-action/components/uni-swipe-action-item/mpalipay.js deleted file mode 100644 index 43cd56bd..00000000 --- a/src/uni_modules/uni-swipe-action/components/uni-swipe-action-item/mpalipay.js +++ /dev/null @@ -1,193 +0,0 @@ -export default { - data() { - return { - x: 0, - transition: false, - width: 0, - viewWidth: 0, - swipeShow: 0 - } - }, - watch: { - show(newVal) { - if (this.autoClose) return - if (newVal && newVal !== 'none') { - this.transition = true - this.open(newVal) - } else { - this.close() - } - } - }, - created() { - this.swipeaction = this.getSwipeAction() - if (this.swipeaction.children !== undefined) { - this.swipeaction.children.push(this) - } - }, - mounted() { - this.isopen = false - setTimeout(() => { - this.getQuerySelect() - }, 50) - }, - methods: { - appTouchStart(e) { - const { - clientX - } = e.changedTouches[0] - this.clientX = clientX - this.timestamp = new Date().getTime() - }, - appTouchEnd(e, index, item, position) { - const { - clientX - } = e.changedTouches[0] - // fixed by xxxx 模拟点击事件,解决 ios 13 点击区域错位的问题 - let diff = Math.abs(this.clientX - clientX) - let time = (new Date().getTime()) - this.timestamp - if (diff < 40 && time < 300) { - this.$emit('click', { - content: item, - index, - position - }) - } - }, - /** - * 移动触发 - * @param {Object} e - */ - onChange(e) { - this.moveX = e.detail.x - this.isclose = false - }, - touchstart(e) { - this.transition = false - this.isclose = true - this.autoClose && this.swipeaction.closeOther(this) - }, - touchmove(e) {}, - touchend(e) { - // 0的位置什么都不执行 - if (this.isclose && this.isopen === 'none') return - if (this.isclose && this.isopen !== 'none') { - this.transition = true - this.close() - } else { - this.move(this.moveX + this.leftWidth) - } - }, - - /** - * 移动 - * @param {Object} moveX - */ - move(moveX) { - // 打开关闭的处理逻辑不太一样 - this.transition = true - // 未打开状态 - if (!this.isopen || this.isopen === 'none') { - if (moveX > this.threshold) { - this.open('left') - } else if (moveX < -this.threshold) { - this.open('right') - } else { - this.close() - } - } else { - if (moveX < 0 && moveX < this.rightWidth) { - const rightX = this.rightWidth + moveX - if (rightX < this.threshold) { - this.open('right') - } else { - this.close() - } - } else if (moveX > 0 && moveX < this.leftWidth) { - const leftX = this.leftWidth - moveX - if (leftX < this.threshold) { - this.open('left') - } else { - this.close() - } - } - - } - - }, - - /** - * 打开 - */ - open(type) { - this.x = this.moveX - this.animation(type) - }, - - /** - * 关闭 - */ - close() { - this.x = this.moveX - // TODO 解决 x 值不更新的问题,所以会多触发一次 nextTick ,待优化 - this.$nextTick(() => { - this.x = -this.leftWidth - if (this.isopen !== 'none') { - this.$emit('change', 'none') - } - this.isopen = 'none' - }) - }, - - /** - * 执行结束动画 - * @param {Object} type - */ - animation(type) { - this.$nextTick(() => { - if (type === 'left') { - this.x = 0 - } else { - this.x = -this.rightWidth - this.leftWidth - } - - if (this.isopen !== type) { - this.$emit('change', type) - } - this.isopen = type - }) - - }, - getSlide(x) {}, - getQuerySelect() { - const query = uni.createSelectorQuery().in(this); - query.selectAll('.movable-view--hock').boundingClientRect(data => { - this.leftWidth = data[1].width - this.rightWidth = data[2].width - this.width = data[0].width - this.viewWidth = this.width + this.rightWidth + this.leftWidth - if (this.leftWidth === 0) { - // TODO 疑似bug ,初始化的时候如果x 是0,会导致移动位置错误,所以让元素超出一点 - this.x = -0.1 - } else { - this.x = -this.leftWidth - } - this.moveX = this.x - this.$nextTick(() => { - this.swipeShow = 1 - }) - - if (!this.buttonWidth) { - this.disabledView = true - } - - if (this.autoClose) return - if (this.show !== 'none') { - this.transition = true - this.open(this.shows) - } - }).exec(); - - } - } -} diff --git a/src/uni_modules/uni-swipe-action/components/uni-swipe-action-item/mpother.js b/src/uni_modules/uni-swipe-action/components/uni-swipe-action-item/mpother.js deleted file mode 100644 index 9a8bcbb6..00000000 --- a/src/uni_modules/uni-swipe-action/components/uni-swipe-action-item/mpother.js +++ /dev/null @@ -1,259 +0,0 @@ -let otherMixins = {} - -// #ifndef APP-PLUS|| MP-WEIXIN || H5 -const MIN_DISTANCE = 10; -otherMixins = { - data() { - // TODO 随机生生元素ID,解决百度小程序获取同一个元素位置信息的bug - const elClass = `Uni_${Math.ceil(Math.random() * 10e5).toString(36)}` - return { - uniShow: false, - left: 0, - buttonShow: 'none', - ani: false, - moveLeft: '', - elClass - } - }, - watch: { - show(newVal) { - if (this.autoClose) return - this.openState(newVal) - }, - left() { - this.moveLeft = `translateX(${this.left}px)` - }, - buttonShow(newVal) { - if (this.autoClose) return - this.openState(newVal) - }, - leftOptions() { - this.init() - }, - rightOptions() { - this.init() - } - }, - mounted() { - this.swipeaction = this.getSwipeAction() - if (this.swipeaction.children !== undefined) { - this.swipeaction.children.push(this) - } - this.init() - }, - methods: { - init() { - clearTimeout(this.timer) - this.timer = setTimeout(() => { - this.getSelectorQuery() - }, 100) - // 移动距离 - this.left = 0 - this.x = 0 - }, - - closeSwipe(e) { - if (!this.autoClose) return - this.swipeaction.closeOther(this) - }, - appTouchStart(e) { - const { - clientX - } = e.changedTouches[0] - this.clientX = clientX - this.timestamp = new Date().getTime() - }, - appTouchEnd(e, index, item, position) { - const { - clientX - } = e.changedTouches[0] - // fixed by xxxx 模拟点击事件,解决 ios 13 点击区域错位的问题 - let diff = Math.abs(this.clientX - clientX) - let time = (new Date().getTime()) - this.timestamp - if (diff < 40 && time < 300) { - this.$emit('click', { - content: item, - index, - position - }) - } - }, - touchstart(e) { - if (this.disabled) return - this.ani = false - this.x = this.left || 0 - this.stopTouchStart(e) - this.autoClose && this.closeSwipe() - }, - touchmove(e) { - if (this.disabled) return - // 是否可以滑动页面 - this.stopTouchMove(e); - if (this.direction !== 'horizontal') { - return; - } - this.move(this.x + this.deltaX) - return false - }, - touchend() { - if (this.disabled) return - this.moveDirection(this.left) - }, - /** - * 设置移动距离 - * @param {Object} value - */ - move(value) { - value = value || 0 - const leftWidth = this.leftWidth - const rightWidth = this.rightWidth - // 获取可滑动范围 - this.left = this.range(value, -rightWidth, leftWidth); - }, - - /** - * 获取范围 - * @param {Object} num - * @param {Object} min - * @param {Object} max - */ - range(num, min, max) { - return Math.min(Math.max(num, min), max); - }, - /** - * 移动方向判断 - * @param {Object} left - * @param {Object} value - */ - moveDirection(left) { - const threshold = this.threshold - const isopen = this.isopen || 'none' - const leftWidth = this.leftWidth - const rightWidth = this.rightWidth - if (this.deltaX === 0) { - this.openState('none') - return - } - if ((isopen === 'none' && rightWidth > 0 && -left > threshold) || (isopen !== 'none' && rightWidth > - 0 && rightWidth + - left < threshold)) { - // right - this.openState('right') - } else if ((isopen === 'none' && leftWidth > 0 && left > threshold) || (isopen !== 'none' && leftWidth > - 0 && - leftWidth - left < threshold)) { - // left - this.openState('left') - } else { - // default - this.openState('none') - } - }, - - /** - * 开启状态 - * @param {Boolean} type - */ - openState(type) { - const leftWidth = this.leftWidth - const rightWidth = this.rightWidth - let left = '' - this.isopen = this.isopen ? this.isopen : 'none' - switch (type) { - case "left": - left = leftWidth - break - case "right": - left = -rightWidth - break - default: - left = 0 - } - - - if (this.isopen !== type) { - this.throttle = true - this.$emit('change', type) - } - - this.isopen = type - // 添加动画类 - this.ani = true - this.$nextTick(() => { - this.move(left) - }) - // 设置最终移动位置,理论上只要进入到这个函数,肯定是要打开的 - }, - close() { - this.openState('none') - }, - getDirection(x, y) { - if (x > y && x > MIN_DISTANCE) { - return 'horizontal'; - } - if (y > x && y > MIN_DISTANCE) { - return 'vertical'; - } - return ''; - }, - - /** - * 重置滑动状态 - * @param {Object} event - */ - resetTouchStatus() { - this.direction = ''; - this.deltaX = 0; - this.deltaY = 0; - this.offsetX = 0; - this.offsetY = 0; - }, - - /** - * 设置滑动开始位置 - * @param {Object} event - */ - stopTouchStart(event) { - this.resetTouchStatus(); - const touch = event.touches[0]; - this.startX = touch.clientX; - this.startY = touch.clientY; - }, - - /** - * 滑动中,是否禁止打开 - * @param {Object} event - */ - stopTouchMove(event) { - const touch = event.touches[0]; - this.deltaX = touch.clientX - this.startX; - this.deltaY = touch.clientY - this.startY; - this.offsetX = Math.abs(this.deltaX); - this.offsetY = Math.abs(this.deltaY); - this.direction = this.direction || this.getDirection(this.offsetX, this.offsetY); - }, - - getSelectorQuery() { - const views = uni.createSelectorQuery().in(this) - views - .selectAll('.' + this.elClass) - .boundingClientRect(data => { - if (data.length === 0) return - let show = 'none' - if (this.autoClose) { - show = 'none' - } else { - show = this.show - } - this.leftWidth = data[0].width || 0 - this.rightWidth = data[1].width || 0 - this.buttonShow = show - }) - .exec() - } - } -} - -// #endif - -export default otherMixins diff --git a/src/uni_modules/uni-swipe-action/components/uni-swipe-action-item/mpwxs.js b/src/uni_modules/uni-swipe-action/components/uni-swipe-action-item/mpwxs.js deleted file mode 100644 index 435e0fbc..00000000 --- a/src/uni_modules/uni-swipe-action/components/uni-swipe-action-item/mpwxs.js +++ /dev/null @@ -1,83 +0,0 @@ -let mpMixins = {} -let is_pc = null -// #ifdef H5 -import { - isPC -} from "./isPC" -is_pc = isPC() -// #endif -// #ifdef APP-VUE|| MP-WEIXIN || H5 - -mpMixins = { - data() { - return { - is_show: 'none' - } - }, - watch: { - show(newVal) { - this.is_show = this.show - } - }, - created() { - this.swipeaction = this.getSwipeAction() - if (this.swipeaction.children !== undefined) { - this.swipeaction.children.push(this) - } - }, - mounted() { - this.is_show = this.show - }, - methods: { - // wxs 中调用 - closeSwipe(e) { - if (!this.autoClose) return - this.swipeaction.closeOther(this) - }, - - change(e) { - this.$emit('change', e.open) - if (this.is_show !== e.open) { - this.is_show = e.open - } - }, - - appTouchStart(e) { - if (is_pc) return - const { - clientX - } = e.changedTouches[0] - this.clientX = clientX - this.timestamp = new Date().getTime() - }, - appTouchEnd(e, index, item, position) { - if (is_pc) return - const { - clientX - } = e.changedTouches[0] - // fixed by xxxx 模拟点击事件,解决 ios 13 点击区域错位的问题 - let diff = Math.abs(this.clientX - clientX) - let time = (new Date().getTime()) - this.timestamp - if (diff < 40 && time < 300) { - this.$emit('click', { - content: item, - index, - position - }) - } - }, - onClickForPC(index, item, position) { - if (!is_pc) return - // #ifdef H5 - this.$emit('click', { - content: item, - index, - position - }) - // #endif - } - } -} - -// #endif -export default mpMixins diff --git a/src/uni_modules/uni-swipe-action/components/uni-swipe-action-item/render.js b/src/uni_modules/uni-swipe-action/components/uni-swipe-action-item/render.js deleted file mode 100644 index 78f0ec60..00000000 --- a/src/uni_modules/uni-swipe-action/components/uni-swipe-action-item/render.js +++ /dev/null @@ -1,270 +0,0 @@ -const MIN_DISTANCE = 10; -export default { - showWatch(newVal, oldVal, ownerInstance, instance, self) { - var state = self.state - var $el = ownerInstance.$el || ownerInstance.$vm && ownerInstance.$vm.$el - if (!$el) return - this.getDom(instance, ownerInstance, self) - if (newVal && newVal !== 'none') { - this.openState(newVal, instance, ownerInstance, self) - return - } - - if (state.left) { - this.openState('none', instance, ownerInstance, self) - } - this.resetTouchStatus(instance, self) - }, - - /** - * 开始触摸操作 - * @param {Object} e - * @param {Object} ins - */ - touchstart(e, ownerInstance, self) { - let instance = e.instance; - let disabled = instance.getDataset().disabled - let state = self.state; - this.getDom(instance, ownerInstance, self) - // fix by mehaotian, TODO 兼容 app-vue 获取dataset为字符串 , h5 获取 为 undefined 的问题,待框架修复 - disabled = this.getDisabledType(disabled) - if (disabled) return - // 开始触摸时移除动画类 - instance.requestAnimationFrame(function() { - instance.removeClass('ani'); - ownerInstance.callMethod('closeSwipe'); - }) - - // 记录上次的位置 - state.x = state.left || 0 - // 计算滑动开始位置 - this.stopTouchStart(e, ownerInstance, self) - }, - - /** - * 开始滑动操作 - * @param {Object} e - * @param {Object} ownerInstance - */ - touchmove(e, ownerInstance, self) { - let instance = e.instance; - // 删除之后已经那不到实例了 - if (!instance) return; - let disabled = instance.getDataset().disabled - let state = self.state - // fix by mehaotian, TODO 兼容 app-vue 获取dataset为字符串 , h5 获取 为 undefined 的问题,待框架修复 - disabled = this.getDisabledType(disabled) - if (disabled) return - // 是否可以滑动页面 - this.stopTouchMove(e, self); - if (state.direction !== 'horizontal') { - return; - } - if (e.preventDefault) { - // 阻止页面滚动 - e.preventDefault() - } - let x = state.x + state.deltaX - this.move(x, instance, ownerInstance, self) - }, - - /** - * 结束触摸操作 - * @param {Object} e - * @param {Object} ownerInstance - */ - touchend(e, ownerInstance, self) { - let instance = e.instance; - let disabled = instance.getDataset().disabled - let state = self.state - // fix by mehaotian, TODO 兼容 app-vue 获取dataset为字符串 , h5 获取 为 undefined 的问题,待框架修复 - disabled = this.getDisabledType(disabled) - - if (disabled) return - // 滑动过程中触摸结束,通过阙值判断是开启还是关闭 - // fixed by mehaotian 定时器解决点击按钮,touchend 触发比 click 事件时机早的问题 ,主要是 ios13 - this.moveDirection(state.left, instance, ownerInstance, self) - - }, - - /** - * 设置移动距离 - * @param {Object} value - * @param {Object} instance - * @param {Object} ownerInstance - */ - move(value, instance, ownerInstance, self) { - value = value || 0 - let state = self.state - let leftWidth = state.leftWidth - let rightWidth = state.rightWidth - // 获取可滑动范围 - state.left = this.range(value, -rightWidth, leftWidth); - instance.requestAnimationFrame(function() { - instance.setStyle({ - transform: 'translateX(' + state.left + 'px)', - '-webkit-transform': 'translateX(' + state.left + 'px)' - }) - }) - - }, - - /** - * 获取元素信息 - * @param {Object} instance - * @param {Object} ownerInstance - */ - getDom(instance, ownerInstance, self) { - var state = self.state - var $el = ownerInstance.$el || ownerInstance.$vm && ownerInstance.$vm.$el - var leftDom = $el.querySelector('.button-group--left') - var rightDom = $el.querySelector('.button-group--right') - - state.leftWidth = leftDom.offsetWidth || 0 - state.rightWidth = rightDom.offsetWidth || 0 - state.threshold = instance.getDataset().threshold - }, - - getDisabledType(value) { - return (typeof(value) === 'string' ? JSON.parse(value) : value) || false; - }, - - /** - * 获取范围 - * @param {Object} num - * @param {Object} min - * @param {Object} max - */ - range(num, min, max) { - return Math.min(Math.max(num, min), max); - }, - - - /** - * 移动方向判断 - * @param {Object} left - * @param {Object} value - * @param {Object} ownerInstance - * @param {Object} ins - */ - moveDirection(left, ins, ownerInstance, self) { - var state = self.state - var threshold = state.threshold - var position = state.position - var isopen = state.isopen || 'none' - var leftWidth = state.leftWidth - var rightWidth = state.rightWidth - if (state.deltaX === 0) { - this.openState('none', ins, ownerInstance, self) - return - } - if ((isopen === 'none' && rightWidth > 0 && -left > threshold) || (isopen !== 'none' && rightWidth > 0 && - rightWidth + - left < threshold)) { - // right - this.openState('right', ins, ownerInstance, self) - } else if ((isopen === 'none' && leftWidth > 0 && left > threshold) || (isopen !== 'none' && leftWidth > 0 && - leftWidth - left < threshold)) { - // left - this.openState('left', ins, ownerInstance, self) - } else { - // default - this.openState('none', ins, ownerInstance, self) - } - }, - - - /** - * 开启状态 - * @param {Boolean} type - * @param {Object} ins - * @param {Object} ownerInstance - */ - openState(type, ins, ownerInstance, self) { - let state = self.state - let leftWidth = state.leftWidth - let rightWidth = state.rightWidth - let left = '' - state.isopen = state.isopen ? state.isopen : 'none' - switch (type) { - case "left": - left = leftWidth - break - case "right": - left = -rightWidth - break - default: - left = 0 - } - - // && !state.throttle - - if (state.isopen !== type) { - state.throttle = true - ownerInstance.callMethod('change', { - open: type - }) - - } - - state.isopen = type - // 添加动画类 - ins.requestAnimationFrame(() => { - ins.addClass('ani'); - this.move(left, ins, ownerInstance, self) - }) - }, - - - getDirection(x, y) { - if (x > y && x > MIN_DISTANCE) { - return 'horizontal'; - } - if (y > x && y > MIN_DISTANCE) { - return 'vertical'; - } - return ''; - }, - - /** - * 重置滑动状态 - * @param {Object} event - */ - resetTouchStatus(instance, self) { - let state = self.state; - state.direction = ''; - state.deltaX = 0; - state.deltaY = 0; - state.offsetX = 0; - state.offsetY = 0; - }, - - /** - * 设置滑动开始位置 - * @param {Object} event - */ - stopTouchStart(event, ownerInstance, self) { - let instance = event.instance; - let state = self.state - this.resetTouchStatus(instance, self); - var touch = event.touches[0]; - state.startX = touch.clientX; - state.startY = touch.clientY; - }, - - /** - * 滑动中,是否禁止打开 - * @param {Object} event - */ - stopTouchMove(event, self) { - let instance = event.instance; - let state = self.state; - let touch = event.touches[0]; - - state.deltaX = touch.clientX - state.startX; - state.deltaY = touch.clientY - state.startY; - state.offsetY = Math.abs(state.deltaY); - state.offsetX = Math.abs(state.deltaX); - state.direction = state.direction || this.getDirection(state.offsetX, state.offsetY); - } -} diff --git a/src/uni_modules/uni-swipe-action/components/uni-swipe-action-item/uni-swipe-action-item.vue b/src/uni_modules/uni-swipe-action/components/uni-swipe-action-item/uni-swipe-action-item.vue deleted file mode 100644 index d79c2979..00000000 --- a/src/uni_modules/uni-swipe-action/components/uni-swipe-action-item/uni-swipe-action-item.vue +++ /dev/null @@ -1,347 +0,0 @@ - - - - - - diff --git a/src/uni_modules/uni-swipe-action/components/uni-swipe-action-item/wx.wxs b/src/uni_modules/uni-swipe-action/components/uni-swipe-action-item/wx.wxs deleted file mode 100644 index b394244f..00000000 --- a/src/uni_modules/uni-swipe-action/components/uni-swipe-action-item/wx.wxs +++ /dev/null @@ -1,341 +0,0 @@ -var MIN_DISTANCE = 10; - -/** - * 判断当前是否为H5、app-vue - */ -var IS_HTML5 = false -if (typeof window === 'object') IS_HTML5 = true - -/** - * 监听页面内值的变化,主要用于动态开关swipe-action - * @param {Object} newValue - * @param {Object} oldValue - * @param {Object} ownerInstance - * @param {Object} instance - */ -function showWatch(newVal, oldVal, ownerInstance, instance) { - var state = instance.getState() - getDom(instance, ownerInstance) - if (newVal && newVal !== 'none') { - openState(newVal, instance, ownerInstance) - return - } - - if (state.left) { - openState('none', instance, ownerInstance) - } - resetTouchStatus(instance) -} - -/** - * 开始触摸操作 - * @param {Object} e - * @param {Object} ins - */ -function touchstart(e, ownerInstance) { - var instance = e.instance; - var disabled = instance.getDataset().disabled - var state = instance.getState(); - getDom(instance, ownerInstance) - // fix by mehaotian, TODO 兼容 app-vue 获取dataset为字符串 , h5 获取 为 undefined 的问题,待框架修复 - disabled = (typeof(disabled) === 'string' ? JSON.parse(disabled) : disabled) || false; - if (disabled) return - // 开始触摸时移除动画类 - instance.requestAnimationFrame(function() { - instance.removeClass('ani'); - ownerInstance.callMethod('closeSwipe'); - }) - - // 记录上次的位置 - state.x = state.left || 0 - // 计算滑动开始位置 - stopTouchStart(e, ownerInstance) -} - -/** - * 开始滑动操作 - * @param {Object} e - * @param {Object} ownerInstance - */ -function touchmove(e, ownerInstance) { - var instance = e.instance; - var disabled = instance.getDataset().disabled - var state = instance.getState() - // fix by mehaotian, TODO 兼容 app-vue 获取dataset为字符串 , h5 获取 为 undefined 的问题,待框架修复 - disabled = (typeof(disabled) === 'string' ? JSON.parse(disabled) : disabled) || false; - if (disabled) return - // 是否可以滑动页面 - stopTouchMove(e); - if (state.direction !== 'horizontal') { - return; - } - - if (e.preventDefault) { - // 阻止页面滚动 - e.preventDefault() - } - - move(state.x + state.deltaX, instance, ownerInstance) -} - -/** - * 结束触摸操作 - * @param {Object} e - * @param {Object} ownerInstance - */ -function touchend(e, ownerInstance) { - var instance = e.instance; - var disabled = instance.getDataset().disabled - var state = instance.getState() - // fix by mehaotian, TODO 兼容 app-vue 获取dataset为字符串 , h5 获取 为 undefined 的问题,待框架修复 - disabled = (typeof(disabled) === 'string' ? JSON.parse(disabled) : disabled) || false; - - if (disabled) return - // 滑动过程中触摸结束,通过阙值判断是开启还是关闭 - // fixed by mehaotian 定时器解决点击按钮,touchend 触发比 click 事件时机早的问题 ,主要是 ios13 - moveDirection(state.left, instance, ownerInstance) - -} - -/** - * 设置移动距离 - * @param {Object} value - * @param {Object} instance - * @param {Object} ownerInstance - */ -function move(value, instance, ownerInstance) { - value = value || 0 - var state = instance.getState() - var leftWidth = state.leftWidth - var rightWidth = state.rightWidth - // 获取可滑动范围 - state.left = range(value, -rightWidth, leftWidth); - instance.requestAnimationFrame(function() { - instance.setStyle({ - transform: 'translateX(' + state.left + 'px)', - '-webkit-transform': 'translateX(' + state.left + 'px)' - }) - }) - -} - -/** - * 获取元素信息 - * @param {Object} instance - * @param {Object} ownerInstance - */ -function getDom(instance, ownerInstance) { - var state = instance.getState() - var leftDom = ownerInstance.selectComponent('.button-group--left') - var rightDom = ownerInstance.selectComponent('.button-group--right') - var leftStyles = { - width: 0 - } - var rightStyles = { - width: 0 - } - leftStyles = leftDom.getBoundingClientRect() - rightStyles = rightDom.getBoundingClientRect() - - state.leftWidth = leftStyles.width || 0 - state.rightWidth = rightStyles.width || 0 - state.threshold = instance.getDataset().threshold -} - -/** - * 获取范围 - * @param {Object} num - * @param {Object} min - * @param {Object} max - */ -function range(num, min, max) { - return Math.min(Math.max(num, min), max); -} - - -/** - * 移动方向判断 - * @param {Object} left - * @param {Object} value - * @param {Object} ownerInstance - * @param {Object} ins - */ -function moveDirection(left, ins, ownerInstance) { - var state = ins.getState() - var threshold = state.threshold - var position = state.position - var isopen = state.isopen || 'none' - var leftWidth = state.leftWidth - var rightWidth = state.rightWidth - if (state.deltaX === 0) { - openState('none', ins, ownerInstance) - return - } - if ((isopen === 'none' && rightWidth > 0 && -left > threshold) || (isopen !== 'none' && rightWidth > 0 && - rightWidth + - left < threshold)) { - // right - openState('right', ins, ownerInstance) - } else if ((isopen === 'none' && leftWidth > 0 && left > threshold) || (isopen !== 'none' && leftWidth > 0 && - leftWidth - left < threshold)) { - // left - openState('left', ins, ownerInstance) - } else { - // default - openState('none', ins, ownerInstance) - } -} - - -/** - * 开启状态 - * @param {Boolean} type - * @param {Object} ins - * @param {Object} ownerInstance - */ -function openState(type, ins, ownerInstance) { - var state = ins.getState() - var leftWidth = state.leftWidth - var rightWidth = state.rightWidth - var left = '' - state.isopen = state.isopen ? state.isopen : 'none' - switch (type) { - case "left": - left = leftWidth - break - case "right": - left = -rightWidth - break - default: - left = 0 - } - - // && !state.throttle - - if (state.isopen !== type) { - state.throttle = true - ownerInstance.callMethod('change', { - open: type - }) - - } - - state.isopen = type - // 添加动画类 - ins.requestAnimationFrame(function() { - ins.addClass('ani'); - move(left, ins, ownerInstance) - }) - // 设置最终移动位置,理论上只要进入到这个函数,肯定是要打开的 -} - - -function getDirection(x, y) { - if (x > y && x > MIN_DISTANCE) { - return 'horizontal'; - } - if (y > x && y > MIN_DISTANCE) { - return 'vertical'; - } - return ''; -} - -/** - * 重置滑动状态 - * @param {Object} event - */ -function resetTouchStatus(instance) { - var state = instance.getState(); - state.direction = ''; - state.deltaX = 0; - state.deltaY = 0; - state.offsetX = 0; - state.offsetY = 0; -} - -/** - * 设置滑动开始位置 - * @param {Object} event - */ -function stopTouchStart(event) { - var instance = event.instance; - var state = instance.getState(); - resetTouchStatus(instance); - var touch = event.touches[0]; - if (IS_HTML5 && isPC()) { - touch = event; - } - state.startX = touch.clientX; - state.startY = touch.clientY; -} - -/** - * 滑动中,是否禁止打开 - * @param {Object} event - */ -function stopTouchMove(event) { - var instance = event.instance; - var state = instance.getState(); - var touch = event.touches[0]; - if (IS_HTML5 && isPC()) { - touch = event; - } - state.deltaX = touch.clientX - state.startX; - state.deltaY = touch.clientY - state.startY; - state.offsetY = Math.abs(state.deltaY); - state.offsetX = Math.abs(state.deltaX); - state.direction = state.direction || getDirection(state.offsetX, state.offsetY); -} - -function isPC() { - var userAgentInfo = navigator.userAgent; - var Agents = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"]; - var flag = true; - for (var v = 0; v < Agents.length - 1; v++) { - if (userAgentInfo.indexOf(Agents[v]) > 0) { - flag = false; - break; - } - } - return flag; -} - -var movable = false - -function mousedown(e, ins) { - if (!IS_HTML5) return - if (!isPC()) return - touchstart(e, ins) - movable = true -} - -function mousemove(e, ins) { - if (!IS_HTML5) return - if (!isPC()) return - if (!movable) return - touchmove(e, ins) -} - -function mouseup(e, ins) { - if (!IS_HTML5) return - if (!isPC()) return - touchend(e, ins) - movable = false -} - -function mouseleave(e, ins) { - if (!IS_HTML5) return - if (!isPC()) return - movable = false -} - -module.exports = { - showWatch: showWatch, - touchstart: touchstart, - touchmove: touchmove, - touchend: touchend, - mousedown: mousedown, - mousemove: mousemove, - mouseup: mouseup, - mouseleave: mouseleave -} diff --git a/src/uni_modules/uni-swipe-action/components/uni-swipe-action/uni-swipe-action.vue b/src/uni_modules/uni-swipe-action/components/uni-swipe-action/uni-swipe-action.vue deleted file mode 100644 index 49717824..00000000 --- a/src/uni_modules/uni-swipe-action/components/uni-swipe-action/uni-swipe-action.vue +++ /dev/null @@ -1,60 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-swipe-action/package.json b/src/uni_modules/uni-swipe-action/package.json deleted file mode 100644 index c8998d9d..00000000 --- a/src/uni_modules/uni-swipe-action/package.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "id": "uni-swipe-action", - "displayName": "uni-swipe-action 滑动操作", - "version": "1.3.7", - "description": "SwipeAction 滑动操作操作组件", - "keywords": [ - "", - "uni-ui", - "uniui", - "滑动删除", - "侧滑删除" - ], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "" - }, - "directories": { - "example": "../../temps/example_temps" - }, - "dcloudext": { - "category": [ - "前端组件", - "通用组件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" - }, - "uni_modules": { - "dependencies": ["uni-scss"], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y" - }, - "快应用": { - "华为": "y", - "联盟": "u" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} diff --git a/src/uni_modules/uni-swipe-action/readme.md b/src/uni_modules/uni-swipe-action/readme.md deleted file mode 100644 index 93a5cac6..00000000 --- a/src/uni_modules/uni-swipe-action/readme.md +++ /dev/null @@ -1,11 +0,0 @@ - - -## SwipeAction 滑动操作 -> **组件名:uni-swipe-action** -> 代码块: `uSwipeAction`、`uSwipeActionItem` - - -通过滑动触发选项的容器 - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-swipe-action) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 \ No newline at end of file diff --git a/src/uni_modules/uni-swiper-dot/changelog.md b/src/uni_modules/uni-swiper-dot/changelog.md deleted file mode 100644 index 85cf54d2..00000000 --- a/src/uni_modules/uni-swiper-dot/changelog.md +++ /dev/null @@ -1,12 +0,0 @@ -## 1.2.0(2021-11-19) -- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) -- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-swiper-dot](https://uniapp.dcloud.io/component/uniui/uni-swiper-dot) -## 1.1.0(2021-07-30) -- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) -## 1.0.6(2021-05-12) -- 新增 示例地址 -- 修复 示例项目缺少组件的Bug -## 1.0.5(2021-02-05) -- 调整为uni_modules目录规范 -- 新增 clickItem 事件,支持指示点控制轮播 -- 新增 支持 pc 可用 diff --git a/src/uni_modules/uni-swiper-dot/components/uni-swiper-dot/uni-swiper-dot.vue b/src/uni_modules/uni-swiper-dot/components/uni-swiper-dot/uni-swiper-dot.vue deleted file mode 100644 index e66b6c7a..00000000 --- a/src/uni_modules/uni-swiper-dot/components/uni-swiper-dot/uni-swiper-dot.vue +++ /dev/null @@ -1,218 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-swiper-dot/package.json b/src/uni_modules/uni-swiper-dot/package.json deleted file mode 100644 index f2dd8d2a..00000000 --- a/src/uni_modules/uni-swiper-dot/package.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "id": "uni-swiper-dot", - "displayName": "uni-swiper-dot 轮播图指示点", - "version": "1.2.0", - "description": "自定义轮播图指示点组件", - "keywords": [ - "uni-ui", - "uniui", - "轮播图指示点", - "dot", - "swiper" -], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "" - }, - "directories": { - "example": "../../temps/example_temps" - }, - "dcloudext": { - "category": [ - "前端组件", - "通用组件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" - }, - "uni_modules": { - "dependencies": ["uni-scss"], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y" - }, - "快应用": { - "华为": "u", - "联盟": "u" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} \ No newline at end of file diff --git a/src/uni_modules/uni-swiper-dot/readme.md b/src/uni_modules/uni-swiper-dot/readme.md deleted file mode 100644 index 7d397e2c..00000000 --- a/src/uni_modules/uni-swiper-dot/readme.md +++ /dev/null @@ -1,11 +0,0 @@ - - -## SwiperDot 轮播图指示点 -> **组件名:uni-swiper-dot** -> 代码块: `uSwiperDot` - - -自定义轮播图指示点 - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-swiper-dot) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 \ No newline at end of file diff --git a/src/uni_modules/uni-table/changelog.md b/src/uni_modules/uni-table/changelog.md deleted file mode 100644 index 8233b20f..00000000 --- a/src/uni_modules/uni-table/changelog.md +++ /dev/null @@ -1,23 +0,0 @@ -## 1.2.1(2022-06-06) -- 修复 微信小程序存在无使用组件的问题 -## 1.2.0(2021-11-19) -- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) -- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-table](https://uniapp.dcloud.io/component/uniui/uni-table) -## 1.1.0(2021-07-30) -- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) -## 1.0.7(2021-07-08) -- 新增 uni-th 支持 date 日期筛选范围 -## 1.0.6(2021-07-05) -- 新增 uni-th 支持 range 筛选范围 -## 1.0.5(2021-06-28) -- 新增 uni-th 筛选功能 -## 1.0.4(2021-05-12) -- 新增 示例地址 -- 修复 示例项目缺少组件的Bug -## 1.0.3(2021-04-16) -- 新增 sortable 属性,是否开启单列排序 -- 优化 表格多选逻辑 -## 1.0.2(2021-03-22) -- uni-tr 添加 disabled 属性,用于 type=selection 时,设置某行是否可由全选按钮控制 -## 1.0.1(2021-02-05) -- 调整为uni_modules目录规范 diff --git a/src/uni_modules/uni-table/components/uni-table/uni-table.vue b/src/uni_modules/uni-table/components/uni-table/uni-table.vue deleted file mode 100644 index 91b74fa7..00000000 --- a/src/uni_modules/uni-table/components/uni-table/uni-table.vue +++ /dev/null @@ -1,455 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-table/components/uni-tbody/uni-tbody.vue b/src/uni_modules/uni-table/components/uni-tbody/uni-tbody.vue deleted file mode 100644 index fbe1bdcb..00000000 --- a/src/uni_modules/uni-table/components/uni-tbody/uni-tbody.vue +++ /dev/null @@ -1,29 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-table/components/uni-td/uni-td.vue b/src/uni_modules/uni-table/components/uni-td/uni-td.vue deleted file mode 100644 index 9ce93e93..00000000 --- a/src/uni_modules/uni-table/components/uni-td/uni-td.vue +++ /dev/null @@ -1,90 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-table/components/uni-th/filter-dropdown.vue b/src/uni_modules/uni-table/components/uni-th/filter-dropdown.vue deleted file mode 100644 index bc9a0e3b..00000000 --- a/src/uni_modules/uni-table/components/uni-th/filter-dropdown.vue +++ /dev/null @@ -1,503 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-table/components/uni-th/uni-th.vue b/src/uni_modules/uni-table/components/uni-th/uni-th.vue deleted file mode 100644 index 883e3f2a..00000000 --- a/src/uni_modules/uni-table/components/uni-th/uni-th.vue +++ /dev/null @@ -1,278 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-table/components/uni-thead/uni-thead.vue b/src/uni_modules/uni-table/components/uni-thead/uni-thead.vue deleted file mode 100644 index 0dd18cd8..00000000 --- a/src/uni_modules/uni-table/components/uni-thead/uni-thead.vue +++ /dev/null @@ -1,129 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-table/components/uni-tr/table-checkbox.vue b/src/uni_modules/uni-table/components/uni-tr/table-checkbox.vue deleted file mode 100644 index 158f3ffd..00000000 --- a/src/uni_modules/uni-table/components/uni-tr/table-checkbox.vue +++ /dev/null @@ -1,179 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-table/components/uni-tr/uni-tr.vue b/src/uni_modules/uni-table/components/uni-tr/uni-tr.vue deleted file mode 100644 index f9b96716..00000000 --- a/src/uni_modules/uni-table/components/uni-tr/uni-tr.vue +++ /dev/null @@ -1,171 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-table/i18n/en.json b/src/uni_modules/uni-table/i18n/en.json deleted file mode 100644 index e32023cc..00000000 --- a/src/uni_modules/uni-table/i18n/en.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "filter-dropdown.reset": "Reset", - "filter-dropdown.search": "Search", - "filter-dropdown.submit": "Submit", - "filter-dropdown.filter": "Filter", - "filter-dropdown.gt": "Greater or equal to", - "filter-dropdown.lt": "Less than or equal to", - "filter-dropdown.date": "Date" -} diff --git a/src/uni_modules/uni-table/i18n/es.json b/src/uni_modules/uni-table/i18n/es.json deleted file mode 100644 index 9afd04bb..00000000 --- a/src/uni_modules/uni-table/i18n/es.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "filter-dropdown.reset": "Reiniciar", - "filter-dropdown.search": "Búsqueda", - "filter-dropdown.submit": "Entregar", - "filter-dropdown.filter": "Filtrar", - "filter-dropdown.gt": "Mayor o igual a", - "filter-dropdown.lt": "Menos que o igual a", - "filter-dropdown.date": "Fecha" -} diff --git a/src/uni_modules/uni-table/i18n/fr.json b/src/uni_modules/uni-table/i18n/fr.json deleted file mode 100644 index b0062371..00000000 --- a/src/uni_modules/uni-table/i18n/fr.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "filter-dropdown.reset": "Réinitialiser", - "filter-dropdown.search": "Chercher", - "filter-dropdown.submit": "Soumettre", - "filter-dropdown.filter": "Filtre", - "filter-dropdown.gt": "Supérieur ou égal à", - "filter-dropdown.lt": "Inférieur ou égal à", - "filter-dropdown.date": "Date" -} diff --git a/src/uni_modules/uni-table/i18n/index.js b/src/uni_modules/uni-table/i18n/index.js deleted file mode 100644 index 2469dd02..00000000 --- a/src/uni_modules/uni-table/i18n/index.js +++ /dev/null @@ -1,12 +0,0 @@ -import en from './en.json' -import es from './es.json' -import fr from './fr.json' -import zhHans from './zh-Hans.json' -import zhHant from './zh-Hant.json' -export default { - en, - es, - fr, - 'zh-Hans': zhHans, - 'zh-Hant': zhHant -} diff --git a/src/uni_modules/uni-table/i18n/zh-Hans.json b/src/uni_modules/uni-table/i18n/zh-Hans.json deleted file mode 100644 index 862af179..00000000 --- a/src/uni_modules/uni-table/i18n/zh-Hans.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "filter-dropdown.reset": "重置", - "filter-dropdown.search": "搜索", - "filter-dropdown.submit": "确定", - "filter-dropdown.filter": "筛选", - "filter-dropdown.gt": "大于等于", - "filter-dropdown.lt": "小于等于", - "filter-dropdown.date": "日期范围" -} diff --git a/src/uni_modules/uni-table/i18n/zh-Hant.json b/src/uni_modules/uni-table/i18n/zh-Hant.json deleted file mode 100644 index 64f80615..00000000 --- a/src/uni_modules/uni-table/i18n/zh-Hant.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "filter-dropdown.reset": "重置", - "filter-dropdown.search": "搜索", - "filter-dropdown.submit": "確定", - "filter-dropdown.filter": "篩選", - "filter-dropdown.gt": "大於等於", - "filter-dropdown.lt": "小於等於", - "filter-dropdown.date": "日期範圍" -} diff --git a/src/uni_modules/uni-table/package.json b/src/uni_modules/uni-table/package.json deleted file mode 100644 index f224ab72..00000000 --- a/src/uni_modules/uni-table/package.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "id": "uni-table", - "displayName": "uni-table 表格", - "version": "1.2.1", - "description": "表格组件,多用于展示多条结构类似的数据,如", - "keywords": [ - "uni-ui", - "uniui", - "table", - "表格" -], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "" - }, - "directories": { - "example": "../../temps/example_temps" - }, - "dcloudext": { - "category": [ - "前端组件", - "通用组件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" - }, - "uni_modules": { - "dependencies": ["uni-scss","uni-datetime-picker"], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "App": { - "app-vue": "y", - "app-nvue": "n" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "n", - "QQ": "y" - }, - "快应用": { - "华为": "n", - "联盟": "n" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} \ No newline at end of file diff --git a/src/uni_modules/uni-table/readme.md b/src/uni_modules/uni-table/readme.md deleted file mode 100644 index bb08c791..00000000 --- a/src/uni_modules/uni-table/readme.md +++ /dev/null @@ -1,13 +0,0 @@ - - -## Table 表单 -> 组件名:``uni-table``,代码块: `uTable`。 - -用于展示多条结构类似的数据 - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-table) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 - - - - diff --git a/src/uni_modules/uni-tag/changelog.md b/src/uni_modules/uni-tag/changelog.md deleted file mode 100644 index c0c5839b..00000000 --- a/src/uni_modules/uni-tag/changelog.md +++ /dev/null @@ -1,21 +0,0 @@ -## 2.1.0(2021-11-19) -- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) -- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-tag](https://uniapp.dcloud.io/component/uniui/uni-tag) -## 2.0.0(2021-11-09) -- 新增 提供组件设计资源,组件样式调整 -- 移除 插槽 -- 移除 type 属性的 royal 选项 -## 1.1.1(2021-08-11) -- type 不是 default 时,size 为 small 字体大小显示不正确 -## 1.1.0(2021-07-30) -- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) -## 1.0.7(2021-06-18) -- 修复 uni-tag 在字节跳动小程序上 css 类名编译错误的 bug -## 1.0.6(2021-06-04) -- 修复 未定义 sass 变量 "$uni-color-royal" 的bug -## 1.0.5(2021-05-10) -- 修复 royal 类型无效的bug -- 修复 uni-tag 宽度不自适应的bug -- 新增 uni-tag 支持属性 custom-style 自定义样式 -## 1.0.4(2021-02-05) -- 调整为uni_modules目录规范 diff --git a/src/uni_modules/uni-tag/components/uni-tag/uni-tag.vue b/src/uni_modules/uni-tag/components/uni-tag/uni-tag.vue deleted file mode 100644 index 418c9550..00000000 --- a/src/uni_modules/uni-tag/components/uni-tag/uni-tag.vue +++ /dev/null @@ -1,252 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-tag/package.json b/src/uni_modules/uni-tag/package.json deleted file mode 100644 index 18780886..00000000 --- a/src/uni_modules/uni-tag/package.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "id": "uni-tag", - "displayName": "uni-tag 标签", - "version": "2.1.0", - "description": "Tag 组件,用于展示1个或多个文字标签,可点击切换选中、不选中的状态。", - "keywords": [ - "uni-ui", - "uniui", - "", - "tag", - "标签" -], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "" - }, - "directories": { - "example": "../../temps/example_temps" - }, - "dcloudext": { - "category": [ - "前端组件", - "通用组件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" - }, - "uni_modules": { - "dependencies": ["uni-scss"], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y" - }, - "快应用": { - "华为": "u", - "联盟": "u" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} \ No newline at end of file diff --git a/src/uni_modules/uni-tag/readme.md b/src/uni_modules/uni-tag/readme.md deleted file mode 100644 index 6e78ff5e..00000000 --- a/src/uni_modules/uni-tag/readme.md +++ /dev/null @@ -1,13 +0,0 @@ - - -## Tag 标签 -> **组件名:uni-tag** -> 代码块: `uTag` - - -用于展示1个或多个文字标签,可点击切换选中、不选中的状态 。 - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-tag) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 - - diff --git a/src/uni_modules/uni-title/changelog.md b/src/uni_modules/uni-title/changelog.md deleted file mode 100644 index 76262165..00000000 --- a/src/uni_modules/uni-title/changelog.md +++ /dev/null @@ -1,10 +0,0 @@ -## 1.1.1(2022-05-19) -- 修改组件描述 -## 1.1.0(2021-11-19) -- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) -- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-title](https://uniapp.dcloud.io/component/uniui/uni-title) -## 1.0.2(2021-05-12) -- 新增 示例地址 -- 修复 示例项目缺少组件的Bug -## 1.0.1(2021-02-05) -- 调整为uni_modules目录规范 diff --git a/src/uni_modules/uni-title/components/uni-title/uni-title.vue b/src/uni_modules/uni-title/components/uni-title/uni-title.vue deleted file mode 100644 index bf4f9265..00000000 --- a/src/uni_modules/uni-title/components/uni-title/uni-title.vue +++ /dev/null @@ -1,171 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-title/package.json b/src/uni_modules/uni-title/package.json deleted file mode 100644 index 2249f5a1..00000000 --- a/src/uni_modules/uni-title/package.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "id": "uni-title", - "displayName": "uni-title 章节标题", - "version": "1.1.1", - "description": "章节标题,通常用于记录页面标题,使用当前组件,uni-app 如果开启统计,将会自动统计页面标题", - "keywords": [ - "uni-ui", - "uniui", - "标题", - "章节", - "章节标题", - "" -], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "" - }, - "directories": { - "example": "../../temps/example_temps" - }, - "dcloudext": { - "category": [ - "前端组件", - "通用组件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" - }, - "uni_modules": { - "dependencies": ["uni-scss"], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y" - }, - "快应用": { - "华为": "u", - "联盟": "u" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} \ No newline at end of file diff --git a/src/uni_modules/uni-title/readme.md b/src/uni_modules/uni-title/readme.md deleted file mode 100644 index 0e60b1b9..00000000 --- a/src/uni_modules/uni-title/readme.md +++ /dev/null @@ -1,14 +0,0 @@ - - -## Title 标题 -> **组件名:uni-title** -> 代码块: `uTitle` - - -章节标题,通常用于记录页面标题,使用当前组件,uni-app 如果开启统计,将会自动统计页面标题 。 - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-title) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 - - - diff --git a/src/uni_modules/uni-tooltip/changelog.md b/src/uni_modules/uni-tooltip/changelog.md deleted file mode 100644 index 00f1572d..00000000 --- a/src/uni_modules/uni-tooltip/changelog.md +++ /dev/null @@ -1,10 +0,0 @@ -## 0.2.1(2022-05-09) -- 修复 content 为空时仍然弹出的bug -## 0.2.0(2022-05-07) -**注意:破坏性更新** -- 更新 text 属性变更为 content -- 更新 移除 width 属性 -## 0.1.1(2022-04-27) -- 修复 组件根 text 嵌套组件 warning -## 0.1.0(2022-04-21) -- 初始化 diff --git a/src/uni_modules/uni-tooltip/components/uni-tooltip/uni-tooltip.vue b/src/uni_modules/uni-tooltip/components/uni-tooltip/uni-tooltip.vue deleted file mode 100644 index ffbb6fa5..00000000 --- a/src/uni_modules/uni-tooltip/components/uni-tooltip/uni-tooltip.vue +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - diff --git a/src/uni_modules/uni-tooltip/package.json b/src/uni_modules/uni-tooltip/package.json deleted file mode 100644 index b626efb8..00000000 --- a/src/uni_modules/uni-tooltip/package.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "id": "uni-tooltip", - "displayName": "uni-tooltip", - "version": "0.2.1", - "description": "Tooltip 提示文字", - "keywords": [ - "uni-tooltip", - "uni-ui", - "tooltip", - "tip", - "文字提示" -], - "repository": "", -"engines": { - }, - "dcloudext": { - "category": [ - "前端组件", - "通用组件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无 ", - "data": "无", - "permissions": "无" - }, - "npmurl": "" - }, - "uni_modules": { - "dependencies": [], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "Vue": { - "vue2": "y", - "vue3": "y" - }, - "App": { - "app-vue": "y", - "app-nvue": "u" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "u", - "百度": "u", - "字节跳动": "u", - "QQ": "u" - }, - "快应用": { - "华为": "u", - "联盟": "u" - } - } - } - } -} \ No newline at end of file diff --git a/src/uni_modules/uni-tooltip/readme.md b/src/uni_modules/uni-tooltip/readme.md deleted file mode 100644 index faafa2ec..00000000 --- a/src/uni_modules/uni-tooltip/readme.md +++ /dev/null @@ -1,8 +0,0 @@ -## Badge 数字角标 -> **组件名:uni-tooltip** -> 代码块: `uTooltip` - -数字角标一般和其它控件(列表、9宫格等)配合使用,用于进行数量提示,默认为实心灰色背景, - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-tooltip) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 diff --git a/src/uni_modules/uni-transition/changelog.md b/src/uni_modules/uni-transition/changelog.md deleted file mode 100644 index b1a824b8..00000000 --- a/src/uni_modules/uni-transition/changelog.md +++ /dev/null @@ -1,20 +0,0 @@ -## 1.3.1(2021-11-23) -- 修复 init 方法初始化问题 -## 1.3.0(2021-11-19) -- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) -- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-transition](https://uniapp.dcloud.io/component/uniui/uni-transition) -## 1.2.1(2021-09-27) -- 修复 init 方法不生效的 Bug -## 1.2.0(2021-07-30) -- 组件兼容 vue3,如何创建 vue3 项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) -## 1.1.1(2021-05-12) -- 新增 示例地址 -- 修复 示例项目缺少组件的 Bug -## 1.1.0(2021-04-22) -- 新增 通过方法自定义动画 -- 新增 custom-class 非 NVUE 平台支持自定义 class 定制样式 -- 优化 动画触发逻辑,使动画更流畅 -- 优化 支持单独的动画类型 -- 优化 文档示例 -## 1.0.2(2021-02-05) -- 调整为 uni_modules 目录规范 diff --git a/src/uni_modules/uni-transition/components/uni-transition/createAnimation.js b/src/uni_modules/uni-transition/components/uni-transition/createAnimation.js deleted file mode 100644 index 5f54365e..00000000 --- a/src/uni_modules/uni-transition/components/uni-transition/createAnimation.js +++ /dev/null @@ -1,128 +0,0 @@ -// const defaultOption = { -// duration: 300, -// timingFunction: 'linear', -// delay: 0, -// transformOrigin: '50% 50% 0' -// } -// #ifdef APP-NVUE -const nvueAnimation = uni.requireNativePlugin('animation') -// #endif -class MPAnimation { - constructor(options, _this) { - this.options = options - this.animation = uni.createAnimation(options) - this.currentStepAnimates = {} - this.next = 0 - this.$ = _this - - } - - _nvuePushAnimates(type, args) { - let aniObj = this.currentStepAnimates[this.next] - let styles = {} - if (!aniObj) { - styles = { - styles: {}, - config: {} - } - } else { - styles = aniObj - } - if (animateTypes1.includes(type)) { - if (!styles.styles.transform) { - styles.styles.transform = '' - } - let unit = '' - if(type === 'rotate'){ - unit = 'deg' - } - styles.styles.transform += `${type}(${args+unit}) ` - } else { - styles.styles[type] = `${args}` - } - this.currentStepAnimates[this.next] = styles - } - _animateRun(styles = {}, config = {}) { - let ref = this.$.$refs['ani'].ref - if (!ref) return - return new Promise((resolve, reject) => { - nvueAnimation.transition(ref, { - styles, - ...config - }, res => { - resolve() - }) - }) - } - - _nvueNextAnimate(animates, step = 0, fn) { - let obj = animates[step] - if (obj) { - let { - styles, - config - } = obj - this._animateRun(styles, config).then(() => { - step += 1 - this._nvueNextAnimate(animates, step, fn) - }) - } else { - this.currentStepAnimates = {} - typeof fn === 'function' && fn() - this.isEnd = true - } - } - - step(config = {}) { - // #ifndef APP-NVUE - this.animation.step(config) - // #endif - // #ifdef APP-NVUE - this.currentStepAnimates[this.next].config = Object.assign({}, this.options, config) - this.currentStepAnimates[this.next].styles.transformOrigin = this.currentStepAnimates[this.next].config.transformOrigin - this.next++ - // #endif - return this - } - - run(fn) { - // #ifndef APP-NVUE - this.$.animationData = this.animation.export() - this.$.timer = setTimeout(() => { - typeof fn === 'function' && fn() - }, this.$.durationTime) - // #endif - // #ifdef APP-NVUE - this.isEnd = false - let ref = this.$.$refs['ani'] && this.$.$refs['ani'].ref - if(!ref) return - this._nvueNextAnimate(this.currentStepAnimates, 0, fn) - this.next = 0 - // #endif - } -} - - -const animateTypes1 = ['matrix', 'matrix3d', 'rotate', 'rotate3d', 'rotateX', 'rotateY', 'rotateZ', 'scale', 'scale3d', - 'scaleX', 'scaleY', 'scaleZ', 'skew', 'skewX', 'skewY', 'translate', 'translate3d', 'translateX', 'translateY', - 'translateZ' -] -const animateTypes2 = ['opacity', 'backgroundColor'] -const animateTypes3 = ['width', 'height', 'left', 'right', 'top', 'bottom'] -animateTypes1.concat(animateTypes2, animateTypes3).forEach(type => { - MPAnimation.prototype[type] = function(...args) { - // #ifndef APP-NVUE - this.animation[type](...args) - // #endif - // #ifdef APP-NVUE - this._nvuePushAnimates(type, args) - // #endif - return this - } -}) - -export function createAnimation(option, _this) { - if(!_this) return - clearTimeout(_this.timer) - return new MPAnimation(option, _this) -} diff --git a/src/uni_modules/uni-transition/components/uni-transition/uni-transition.vue b/src/uni_modules/uni-transition/components/uni-transition/uni-transition.vue deleted file mode 100644 index 0d739bd5..00000000 --- a/src/uni_modules/uni-transition/components/uni-transition/uni-transition.vue +++ /dev/null @@ -1,277 +0,0 @@ - - - - - diff --git a/src/uni_modules/uni-transition/package.json b/src/uni_modules/uni-transition/package.json deleted file mode 100644 index d15fdf01..00000000 --- a/src/uni_modules/uni-transition/package.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "id": "uni-transition", - "displayName": "uni-transition 过渡动画", - "version": "1.3.1", - "description": "元素的简单过渡动画", - "keywords": [ - "uni-ui", - "uniui", - "动画", - "过渡", - "过渡动画" -], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "" - }, - "directories": { - "example": "../../temps/example_temps" - }, - "dcloudext": { - "category": [ - "前端组件", - "通用组件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" - }, - "uni_modules": { - "dependencies": ["uni-scss"], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y" - }, - "快应用": { - "华为": "u", - "联盟": "u" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} \ No newline at end of file diff --git a/src/uni_modules/uni-transition/readme.md b/src/uni_modules/uni-transition/readme.md deleted file mode 100644 index 2f8a77e1..00000000 --- a/src/uni_modules/uni-transition/readme.md +++ /dev/null @@ -1,11 +0,0 @@ - - -## Transition 过渡动画 -> **组件名:uni-transition** -> 代码块: `uTransition` - - -元素过渡动画 - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-transition) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 \ No newline at end of file diff --git a/src/uni_modules/z-paging/changelog.md b/src/uni_modules/z-paging/changelog.md deleted file mode 100644 index 82c637be..00000000 --- a/src/uni_modules/z-paging/changelog.md +++ /dev/null @@ -1,6 +0,0 @@ -## 2.6.0(2023-10-17) -1.`修复` 在安卓中突然滚动到顶部可能出现的无法下拉刷新问题。 -2.`修复` 在安卓中可能出现的列表卡住和无法下拉的问题。 -3.`修复` 在安卓6.0以下系统中列表为空的问题。 -4.`优化` 列表滚动-下拉刷新状态过渡细节。 - diff --git a/src/uni_modules/z-paging/components/z-paging-cell/z-paging-cell.vue b/src/uni_modules/z-paging/components/z-paging-cell/z-paging-cell.vue deleted file mode 100644 index e9aca700..00000000 --- a/src/uni_modules/z-paging/components/z-paging-cell/z-paging-cell.vue +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - diff --git a/src/uni_modules/z-paging/components/z-paging-empty-view/z-paging-empty-view.vue b/src/uni_modules/z-paging/components/z-paging-empty-view/z-paging-empty-view.vue deleted file mode 100644 index 18ee4eeb..00000000 --- a/src/uni_modules/z-paging/components/z-paging-empty-view/z-paging-empty-view.vue +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - - - - - diff --git a/src/uni_modules/z-paging/components/z-paging-swiper-item/z-paging-swiper-item.vue b/src/uni_modules/z-paging/components/z-paging-swiper-item/z-paging-swiper-item.vue deleted file mode 100644 index 05014577..00000000 --- a/src/uni_modules/z-paging/components/z-paging-swiper-item/z-paging-swiper-item.vue +++ /dev/null @@ -1,143 +0,0 @@ - - - - - - - - - - - diff --git a/src/uni_modules/z-paging/components/z-paging-swiper/z-paging-swiper.vue b/src/uni_modules/z-paging/components/z-paging-swiper/z-paging-swiper.vue deleted file mode 100644 index 27cdb8ea..00000000 --- a/src/uni_modules/z-paging/components/z-paging-swiper/z-paging-swiper.vue +++ /dev/null @@ -1,170 +0,0 @@ - - - - - - - - - - - diff --git a/src/uni_modules/z-paging/components/z-paging/components/z-paging-load-more.vue b/src/uni_modules/z-paging/components/z-paging/components/z-paging-load-more.vue deleted file mode 100644 index f3ef9314..00000000 --- a/src/uni_modules/z-paging/components/z-paging/components/z-paging-load-more.vue +++ /dev/null @@ -1,141 +0,0 @@ - - - - - diff --git a/src/uni_modules/z-paging/components/z-paging/components/z-paging-refresh.vue b/src/uni_modules/z-paging/components/z-paging/components/z-paging-refresh.vue deleted file mode 100644 index 12ac9dbd..00000000 --- a/src/uni_modules/z-paging/components/z-paging/components/z-paging-refresh.vue +++ /dev/null @@ -1,182 +0,0 @@ - - - - - diff --git a/src/uni_modules/z-paging/components/z-paging/config/index.js b/src/uni_modules/z-paging/components/z-paging/config/index.js deleted file mode 100644 index 15a37e22..00000000 --- a/src/uni_modules/z-paging/components/z-paging/config/index.js +++ /dev/null @@ -1,3 +0,0 @@ -// z-paging全局配置文件,注意避免更新时此文件被覆盖,若被覆盖,可在此文件中右键->点击本地历史记录,找回覆盖前的配置 - -export default {} \ No newline at end of file diff --git a/src/uni_modules/z-paging/components/z-paging/css/z-paging-main.css b/src/uni_modules/z-paging/components/z-paging/css/z-paging-main.css deleted file mode 100644 index 5c84196d..00000000 --- a/src/uni_modules/z-paging/components/z-paging/css/z-paging-main.css +++ /dev/null @@ -1,228 +0,0 @@ -/* [z-paging]公共css*/ - -.z-paging-content { - position: relative; - /* #ifndef APP-NVUE */ - display: flex; - width: 100%; - height: 100%; - overflow: hidden; - /* #endif */ - flex-direction: column; -} - -.z-paging-content-fixed, .zp-loading-fixed { - position: fixed; - /* #ifndef APP-NVUE */ - height: auto; - width: auto; - /* #endif */ - top: 0; - left: 0; - bottom: 0; - right: 0; -} - -.zp-page-top,.zp-page-bottom { - /* #ifndef APP-NVUE */ - width: auto; - /* #endif */ - position: fixed; - left: 0; - right: 0; - z-index: 999; -} - -.zp-page-left,.zp-page-right{ - /* #ifndef APP-NVUE */ - height: 100%; - /* #endif */ -} - -.zp-scroll-view-super { - flex: 1; - overflow: hidden; - position: relative; -} - -.zp-view-super{ - /* #ifndef APP-NVUE */ - display: flex; - /* #endif */ - flex-direction: row; -} - -.zp-custom-refresher-container { - overflow: hidden; -} - -.zp-scroll-view-container,.zp-scroll-view { - position: relative; - /* #ifndef APP-NVUE */ - height: 100%; - width: 100%; - /* #endif */ -} - -.zp-absoulte{ - /* #ifndef APP-NVUE */ - position: absolute; - top: 0; - width: auto; - /* #endif */ -} - -.zp-right{ - right: 0; -} - -.zp-scroll-view-absolute { - position: absolute; - top: 0; - left: 0; -} - -/* #ifndef APP-NVUE */ -.zp-scroll-view-hide-scrollbar ::-webkit-scrollbar { - display: none; - -webkit-appearance: none; - width: 0 !important; - height: 0 !important; - background: transparent; -} -/* #endif */ - -.zp-paging-touch-view { - width: 100%; - height: 100%; - position: relative; -} - -.zp-fixed-bac-view { - position: absolute; - width: 100%; - top: 0; - left: 0; - height: 200px; -} - -.zp-paging-main { - height: 100%; - /* #ifndef APP-NVUE */ - display: flex; - /* #endif */ - flex-direction: column; -} - -.zp-paging-container { - flex: 1; - position: relative; - /* #ifndef APP-NVUE */ - display: flex; - /* #endif */ - flex-direction: column; -} - -.zp-chat-record-loading-container { - /* #ifndef APP-NVUE */ - display: flex; - width: 100%; - /* #endif */ - /* #ifdef APP-NVUE */ - width: 750rpx; - /* #endif */ - align-items: center; - justify-content: center; - height: 60rpx; - font-size: 26rpx; -} - -.zp-chat-record-loading-custom-image { - width: 35rpx; - height: 35rpx; - /* #ifndef APP-NVUE */ - animation: loading-flower 1s linear infinite; - /* #endif */ -} - -.zp-custom-refresher-container { - /* #ifndef APP-NVUE */ - display: flex; - /* #endif */ - flex-direction: row; - justify-content: center; - align-items: center; -} - -.zp-back-to-top { - width: 76rpx; - height: 76rpx; - z-index: 999; - position: absolute; - bottom: 0rpx; - right: 25rpx; - transition-duration: .3s; - transition-property: opacity; -} - -.zp-back-to-top-show { - opacity: 1; -} - -.zp-back-to-top-hide { - opacity: 0; -} - -.zp-back-to-top-img { - /* #ifndef APP-NVUE */ - width: 100%; - height: 100%; - /* #endif */ - /* #ifdef APP-NVUE */ - flex: 1; - /* #endif */ - z-index: 999; -} - -.zp-empty-view { - /* #ifdef APP-NVUE */ - height: 100%; - /* #endif */ - flex: 1; -} - -.zp-empty-view-center { - /* #ifndef APP-NVUE */ - display: flex; - /* #endif */ - flex-direction: column; - align-items: center; - justify-content: center; -} - -.zp-loading-fixed { - z-index: 9999; -} - -.zp-safe-area-inset-bottom { - position: absolute; - /* #ifndef APP-PLUS */ - height: env(safe-area-inset-bottom); - /* #endif */ -} - -.zp-n-refresh-container { - /* #ifndef APP-NVUE */ - display: flex; - /* #endif */ - justify-content: center; - width: 750rpx; -} - -.zp-n-list-container{ - /* #ifndef APP-NVUE */ - display: flex; - /* #endif */ - flex-direction: row; - flex: 1; -} diff --git a/src/uni_modules/z-paging/components/z-paging/css/z-paging-static.css b/src/uni_modules/z-paging/components/z-paging/css/z-paging-static.css deleted file mode 100644 index eaad9773..00000000 --- a/src/uni_modules/z-paging/components/z-paging/css/z-paging-static.css +++ /dev/null @@ -1,35 +0,0 @@ -/* [z-paging]公用的静态css资源 */ - -.zp-line-loading-image { - margin-right: 8rpx; - width: 28rpx; - height: 28rpx; - /* #ifndef APP-NVUE */ - animation: loading-flower 1s steps(12) infinite; - /* #endif */ - color: #666666; -} - -.zp-loading-image-ios{ - width: 20px; - height: 20px; -} - -.zp-loading-image-android{ - width: 32rpx; - height: 32rpx; -} - -/* #ifndef APP-NVUE */ -@keyframes loading-flower { - 0% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - to { - -webkit-transform: rotate(1turn); - transform: rotate(1turn); - } -} -/* #endif */ - diff --git a/src/uni_modules/z-paging/components/z-paging/i18n/en.json b/src/uni_modules/z-paging/components/z-paging/i18n/en.json deleted file mode 100644 index d93430f0..00000000 --- a/src/uni_modules/z-paging/components/z-paging/i18n/en.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "zp.refresher.default": "Pull down to refresh", - "zp.refresher.pulling": "Release to refresh", - "zp.refresher.refreshing": "Refreshing...", - "zp.refresher.complete": "Refresh succeeded", - - "zp.loadingMore.default": "Click to load more", - "zp.loadingMore.loading": "Loading...", - "zp.loadingMore.noMore": "No more data", - "zp.loadingMore.fail": "Load failed,click to reload", - - "zp.emptyView.title": "No data", - "zp.emptyView.reload": "Reload", - "zp.emptyView.error": "Sorry,load failed", - - "zp.refresherUpdateTime.title": "Last update: ", - "zp.refresherUpdateTime.none": "None", - "zp.refresherUpdateTime.today": "Today", - "zp.refresherUpdateTime.yesterday": "Yesterday", - - "zp.systemLoading.title": "Loading..." -} diff --git a/src/uni_modules/z-paging/components/z-paging/i18n/index.js b/src/uni_modules/z-paging/components/z-paging/i18n/index.js deleted file mode 100644 index de7509c8..00000000 --- a/src/uni_modules/z-paging/components/z-paging/i18n/index.js +++ /dev/null @@ -1,8 +0,0 @@ -import en from './en.json' -import zhHans from './zh-Hans.json' -import zhHant from './zh-Hant.json' -export default { - en, - 'zh-Hans': zhHans, - 'zh-Hant': zhHant -} diff --git a/src/uni_modules/z-paging/components/z-paging/i18n/zh-Hans.json b/src/uni_modules/z-paging/components/z-paging/i18n/zh-Hans.json deleted file mode 100644 index f2cc3c8a..00000000 --- a/src/uni_modules/z-paging/components/z-paging/i18n/zh-Hans.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "zp.refresher.default": "继续下拉刷新", - "zp.refresher.pulling": "松开立即刷新", - "zp.refresher.refreshing": "正在刷新...", - "zp.refresher.complete": "刷新成功", - - "zp.loadingMore.default": "点击加载更多", - "zp.loadingMore.loading": "正在加载...", - "zp.loadingMore.noMore": "没有更多了", - "zp.loadingMore.fail": "加载失败,点击重新加载", - - "zp.emptyView.title": "没有数据哦~", - "zp.emptyView.reload": "重新加载", - "zp.emptyView.error": "很抱歉,加载失败", - - "zp.refresherUpdateTime.title": "最后更新:", - "zp.refresherUpdateTime.none": "无", - "zp.refresherUpdateTime.today": "今天", - "zp.refresherUpdateTime.yesterday": "昨天", - - "zp.systemLoading.title": "加载中..." -} diff --git a/src/uni_modules/z-paging/components/z-paging/i18n/zh-Hant.json b/src/uni_modules/z-paging/components/z-paging/i18n/zh-Hant.json deleted file mode 100644 index e9c80cf9..00000000 --- a/src/uni_modules/z-paging/components/z-paging/i18n/zh-Hant.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "zp.refresher.default": "繼續下拉重繪", - "zp.refresher.pulling": "鬆開立即重繪", - "zp.refresher.refreshing": "正在重繪...", - "zp.refresher.complete": "重繪成功", - - "zp.loadingMore.default": "點擊加載更多", - "zp.loadingMore.loading": "正在加載...", - "zp.loadingMore.noMore": "沒有更多了", - "zp.loadingMore.fail": "加載失敗,點擊重新加載", - - "zp.emptyView.title": "沒有數據哦~", - "zp.emptyView.reload": "重新加載", - "zp.emptyView.error": "很抱歉,加載失敗", - - "zp.refresherUpdateTime.title": "最後更新:", - "zp.refresherUpdateTime.none": "無", - "zp.refresherUpdateTime.today": "今天", - "zp.refresherUpdateTime.yesterday": "昨天", - - "zp.systemLoading.title": "加載中..." -} diff --git a/src/uni_modules/z-paging/components/z-paging/js/hooks/useZPaging.js b/src/uni_modules/z-paging/components/z-paging/js/hooks/useZPaging.js deleted file mode 100644 index a6c62f44..00000000 --- a/src/uni_modules/z-paging/components/z-paging/js/hooks/useZPaging.js +++ /dev/null @@ -1,25 +0,0 @@ -// [z-paging]useZPaging hooks - -import { onPageScroll, onReachBottom, onPullDownRefresh } from '@dcloudio/uni-app'; - -function useZPaging(paging) { - const cPaging = !!paging ? paging.value || paging : null; - - onPullDownRefresh(() => { - if (!cPaging) return; - cPaging.value.reload().catch(() => {}); - }) - - onPageScroll(e => { - if (!cPaging) return; - cPaging.value.updatePageScrollTop(e.scrollTop); - e.scrollTop < 10 && cPaging.value.doChatRecordLoadMore(); - }) - - onReachBottom(() => { - if (!cPaging) return; - cPaging.value.pageReachBottom(); - }) -} - -export default useZPaging \ No newline at end of file diff --git a/src/uni_modules/z-paging/components/z-paging/js/hooks/useZPagingComp.js b/src/uni_modules/z-paging/components/z-paging/js/hooks/useZPagingComp.js deleted file mode 100644 index afed9f58..00000000 --- a/src/uni_modules/z-paging/components/z-paging/js/hooks/useZPagingComp.js +++ /dev/null @@ -1,26 +0,0 @@ -// [z-paging]useZPagingComp hooks - -function useZPagingComp(paging) { - - const cPaging = !!paging ? paging.value || paging : null; - - const reload = () => { - if (!cPaging) return; - cPaging.value.reload().catch(() => {}); - } - const updatePageScrollTop = scrollTop => { - if (!cPaging) return; - cPaging.value.updatePageScrollTop(scrollTop); - } - const doChatRecordLoadMore = () => { - if (!cPaging) return; - cPaging.value.doChatRecordLoadMore(); - } - const pageReachBottom = () => { - if (!cPaging) return; - cPaging.value.pageReachBottom(); - } - return { reload, updatePageScrollTop, doChatRecordLoadMore, pageReachBottom }; -} - -export default useZPagingComp \ No newline at end of file diff --git a/src/uni_modules/z-paging/components/z-paging/js/modules/back-to-top.js b/src/uni_modules/z-paging/components/z-paging/js/modules/back-to-top.js deleted file mode 100644 index a490911f..00000000 --- a/src/uni_modules/z-paging/components/z-paging/js/modules/back-to-top.js +++ /dev/null @@ -1,100 +0,0 @@ -// [z-paging]点击返回顶部view模块 -import u from '.././z-paging-utils' - -export default { - props: { - //自动显示点击返回顶部按钮,默认为否 - autoShowBackToTop: { - type: Boolean, - default: u.gc('autoShowBackToTop', false) - }, - //点击返回顶部按钮显示/隐藏的阈值(滚动距离),单位为px,默认为400rpx - backToTopThreshold: { - type: [Number, String], - default: u.gc('backToTopThreshold', '400rpx') - }, - //点击返回顶部按钮的自定义图片地址,默认使用z-paging内置的图片 - backToTopImg: { - type: String, - default: u.gc('backToTopImg', '') - }, - //点击返回顶部按钮返回到顶部时是否展示过渡动画,默认为是 - backToTopWithAnimate: { - type: Boolean, - default: u.gc('backToTopWithAnimate', true) - }, - //点击返回顶部按钮与底部的距离,注意添加单位px或rpx,默认为160rpx - backToTopBottom: { - type: [Number, String], - default: u.gc('backToTopBottom', '160rpx') - }, - //点击返回顶部按钮的自定义样式 - backToTopStyle: { - type: Object, - default: function() { - return u.gc('backToTopStyle', {}); - }, - }, - //iOS点击顶部状态栏、安卓双击标题栏时,滚动条返回顶部,只支持竖向,默认为是 - enableBackToTop: { - type: Boolean, - default: u.gc('enableBackToTop', true) - }, - }, - data() { - return { - backToTopClass: 'zp-back-to-top zp-back-to-top-hide', - lastBackToTopShowTime: 0, - showBackToTopClass: false, - } - }, - computed: { - finalEnableBackToTop() { - return this.usePageScroll ? false : this.enableBackToTop; - }, - finalBackToTopThreshold() { - return u.convertToPx(this.backToTopThreshold); - }, - finalBackToTopStyle() { - const backToTopStyle = this.backToTopStyle; - if (!backToTopStyle.bottom) { - backToTopStyle.bottom = this.windowBottom + u.convertToPx(this.backToTopBottom) + 'px'; - } - if(!backToTopStyle.position){ - backToTopStyle.position = this.usePageScroll ? 'fixed': 'absolute'; - } - return backToTopStyle; - }, - }, - methods: { - //点击返回顶部 - _backToTopClick() { - !this.backToTopWithAnimate && this._checkShouldShowBackToTop(0); - this.scrollToTop(this.backToTopWithAnimate); - }, - //判断是否要显示返回顶部按钮 - _checkShouldShowBackToTop(scrollTop) { - if (!this.autoShowBackToTop) { - this.showBackToTopClass = false; - return; - } - if (scrollTop > this.finalBackToTopThreshold) { - if (!this.showBackToTopClass) { - this.showBackToTopClass = true; - this.lastBackToTopShowTime = new Date().getTime(); - u.delay(() => { - this.backToTopClass = 'zp-back-to-top zp-back-to-top-show'; - }, 300) - } - } else { - if (this.showBackToTopClass) { - this.backToTopClass = 'zp-back-to-top zp-back-to-top-hide'; - u.delay(() => { - this.showBackToTopClass = false; - }, new Date().getTime() - this.lastBackToTopShowTime < 500 ? 0 : 300) - } - } - }, - } -} - diff --git a/src/uni_modules/z-paging/components/z-paging/js/modules/common-layout.js b/src/uni_modules/z-paging/components/z-paging/js/modules/common-layout.js deleted file mode 100644 index 249d7aa6..00000000 --- a/src/uni_modules/z-paging/components/z-paging/js/modules/common-layout.js +++ /dev/null @@ -1,116 +0,0 @@ -// [z-paging]通用布局相关模块 - -// #ifdef APP-NVUE -const weexDom = weex.requireModule('dom'); -// #endif - -export default { - data() { - return { - systemInfo: null, - cssSafeAreaInsetBottom: -1, - } - }, - computed: { - windowTop() { - if (!this.systemInfo) return 0; - //暂时修复vue3中隐藏系统导航栏后windowTop获取不正确的问题,具体bug详见https://ask.dcloud.net.cn/question/141634 - //感谢litangyu!!https://github.com/SmileZXLee/uni-z-paging/issues/25 - // #ifdef VUE3 && H5 - const pageHeadNode = document.getElementsByTagName("uni-page-head"); - if (!pageHeadNode.length) return 0; - // #endif - return this.systemInfo.windowTop || 0; - }, - safeAreaBottom() { - if (!this.systemInfo) return 0; - let safeAreaBottom = 0; - // #ifdef APP-PLUS - safeAreaBottom = this.systemInfo.safeAreaInsets.bottom || 0 ; - // #endif - // #ifndef APP-PLUS - safeAreaBottom = Math.max(this.cssSafeAreaInsetBottom, 0); - // #endif - return safeAreaBottom; - }, - isOldWebView() { - // #ifndef APP-NVUE || MP-KUAISHOU - try { - const systemInfos = uni.getSystemInfoSync().system.split(' '); - const deviceType = systemInfos[0]; - const version = parseInt(systemInfos[1]); - if ((deviceType === 'iOS' && version <= 10) || (deviceType === 'Android' && version <= 6)) { - return true; - } - } catch(e) { - return false; - } - // #endif - return false; - }, - zSlots() { - // #ifdef VUE2 - - // #ifdef MP-ALIPAY - return this.$slots; - // #endif - - return this.$scopedSlots || this.$slots; - // #endif - - return this.$slots; - } - }, - methods: { - //获取节点尺寸 - _getNodeClientRect(select, inDom = true, scrollOffset = false) { - // #ifdef APP-NVUE - select = select.replace(/[.|#]/g, ''); - const ref = this.$refs[select]; - return new Promise((resolve, reject) => { - if (ref) { - weexDom.getComponentRect(ref, option => { - resolve(option && option.result ? [option.size] : false); - }) - } else { - resolve(false); - } - }); - return; - // #endif - //#ifdef MP-ALIPAY - inDom = false; - //#endif - let res = !!inDom ? uni.createSelectorQuery().in(inDom === true ? this : inDom) : uni.createSelectorQuery(); - scrollOffset ? res.select(select).scrollOffset() : res.select(select).boundingClientRect(); - return new Promise((resolve, reject) => { - res.exec(data => { - resolve((data && data != '' && data != undefined && data.length) ? data : false); - }); - }); - }, - //获取slot="left"和slot="right"宽度并且更新布局 - _updateLeftAndRightWidth(targetStyle, parentNodePrefix) { - this.$nextTick(() => { - let delayTime = 0; - // #ifdef MP-BAIDU - delayTime = 10; - // #endif - setTimeout(() => { - ['left','right'].map(position => { - this._getNodeClientRect(`.${parentNodePrefix}-${position}`).then(res => { - this.$set(targetStyle, position, res ? res[0].width + 'px' : '0px'); - }); - }) - }, delayTime) - }) - }, - //通过获取css设置的底部安全区域占位view高度设置bottom距离 - _getCssSafeAreaInsetBottom(success) { - this._getNodeClientRect('.zp-safe-area-inset-bottom').then(res => { - this.cssSafeAreaInsetBottom = res ? res[0].height : -1; - res && success && success(); - }); - } - } -} diff --git a/src/uni_modules/z-paging/components/z-paging/js/modules/data-handle.js b/src/uni_modules/z-paging/components/z-paging/js/modules/data-handle.js deleted file mode 100644 index f917e537..00000000 --- a/src/uni_modules/z-paging/components/z-paging/js/modules/data-handle.js +++ /dev/null @@ -1,741 +0,0 @@ -// [z-paging]数据处理模块 -import u from '.././z-paging-utils' -import c from '.././z-paging-constant' -import Enum from '.././z-paging-enum' -import interceptor from '../z-paging-interceptor' - -export default { - props: { - //自定义初始的pageNo,默认为1 - defaultPageNo: { - type: [Number, String], - default: u.gc('defaultPageNo', 1), - observer: function(newVal) { - this.pageNo = newVal; - }, - }, - //自定义pageSize,默认为10 - defaultPageSize: { - type: [Number, String], - default: u.gc('defaultPageSize', 10), - validator: (value) => { - if (value <= 0) u.consoleErr('default-page-size必须大于0!'); - return value > 0; - } - }, - //为保证数据一致,设置当前tab切换时的标识key,并在complete中传递相同key,若二者不一致,则complete将不会生效 - dataKey: { - type: [Number, String, Object], - default: function() { - return u.gc('dataKey', null); - }, - }, - //使用缓存,若开启将自动缓存第一页的数据,默认为否。请注意,因考虑到切换tab时不同tab数据不同的情况,默认仅会缓存组件首次加载时第一次请求到的数据,后续的下拉刷新操作不会更新缓存。 - useCache: { - type: Boolean, - default: u.gc('useCache', false) - }, - //使用缓存时缓存的key,用于区分不同列表的缓存数据,useCache为true时必须设置,否则缓存无效 - cacheKey: { - type: String, - default: u.gc('cacheKey', null) - }, - //缓存模式,默认仅会缓存组件首次加载时第一次请求到的数据,可设置为always,即代表总是缓存,每次列表刷新(下拉刷新、调用reload等)都会更新缓存 - cacheMode: { - type: String, - default: u.gc('cacheMode', Enum.CacheMode.Default) - }, - //自动注入的list名,可自动修改父view(包含ref="paging")中对应name的list值 - autowireListName: { - type: String, - default: u.gc('autowireListName', '') - }, - //自动注入的query名,可自动调用父view(包含ref="paging")中的query方法 - autowireQueryName: { - type: String, - default: u.gc('autowireQueryName', '') - }, - //z-paging mounted后自动调用reload方法(mounted后自动调用接口),默认为是 - auto: { - type: Boolean, - default: u.gc('auto', true) - }, - //用户下拉刷新时是否触发reload方法,默认为是 - reloadWhenRefresh: { - type: Boolean, - default: u.gc('reloadWhenRefresh', true) - }, - //reload时自动滚动到顶部,默认为是 - autoScrollToTopWhenReload: { - type: Boolean, - default: u.gc('autoScrollToTopWhenReload', true) - }, - //reload时立即自动清空原list,默认为是,若立即自动清空,则在reload之后、请求回调之前页面是空白的 - autoCleanListWhenReload: { - type: Boolean, - default: u.gc('autoCleanListWhenReload', true) - }, - //列表刷新时自动显示下拉刷新view,默认为否 - showRefresherWhenReload: { - type: Boolean, - default: u.gc('showRefresherWhenReload', false) - }, - //列表刷新时自动显示加载更多view,且为加载中状态,默认为否 - showLoadingMoreWhenReload: { - type: Boolean, - default: u.gc('showLoadingMoreWhenReload', false) - }, - //组件created时立即触发reload(可解决一些情况下先看到页面再看到loading的问题),auto为true时有效。为否时将在mounted+nextTick后触发reload,默认为否 - createdReload: { - type: Boolean, - default: u.gc('createdReload', false) - }, - //本地分页时上拉加载更多延迟时间,单位为毫秒,默认200毫秒 - localPagingLoadingTime: { - type: [Number, String], - default: u.gc('localPagingLoadingTime', 200) - }, - //使用聊天记录模式,默认为否 - useChatRecordMode: { - type: Boolean, - default: u.gc('useChatRecordMode', false) - }, - //使用聊天记录模式时是否自动隐藏键盘:在用户触摸列表时候自动隐藏键盘,默认为是 - autoHideKeyboardWhenChat: { - type: Boolean, - default: u.gc('autoHideKeyboardWhenChat', true) - }, - //自动拼接complete中传过来的数组(使用聊天记录模式时无效) - concat: { - type: Boolean, - default: u.gc('concat', true) - }, - //父组件v-model所绑定的list的值 - value: { - type: Array, - default: function() { - return []; - } - }, - // #ifdef VUE3 - modelValue: { - type: Array, - default: function() { - return []; - } - } - // #endif - }, - data (){ - return { - currentData: [], - totalData: [], - realTotalData: [], - totalLocalPagingList: [], - dataPromiseResultMap: { - reload: null, - complete: null, - localPaging: null - }, - isSettingCacheList: false, - pageNo: 1, - currentRefreshPageSize: 0, - isLocalPaging: false, - isAddedData: false, - isTotalChangeFromAddData: false, - privateConcat: true, - myParentQuery: -1, - firstPageLoaded: false, - pagingLoaded: false, - loaded: false, - isUserReload: true, - fromEmptyViewReload: false, - queryFrom: '', - listRendering: false, - isHandlingRefreshToPage: false - } - }, - computed: { - pageSize() { - return this.defaultPageSize; - }, - finalConcat() { - return this.concat && this.privateConcat; - }, - finalUseCache() { - if (this.useCache && !this.cacheKey) { - u.consoleErr('use-cache为true时,必须设置cache-key,否则缓存无效!'); - } - return this.useCache && !!this.cacheKey; - }, - finalCacheKey() { - return this.cacheKey ? `${c.cachePrefixKey}-${this.cacheKey}` : null; - }, - isFirstPage() { - return this.pageNo === this.defaultPageNo; - } - }, - watch: { - totalData(newVal, oldVal) { - this._totalDataChange(newVal, oldVal); - }, - currentData(newVal, oldVal) { - this._currentDataChange(newVal, oldVal); - }, - useChatRecordMode(newVal, oldVal) { - if (newVal) { - this.nLoadingMoreFixedHeight = false; - } - }, - value: { - handler(newVal) { - this.realTotalData = newVal; - }, - immediate: true - }, - // #ifdef VUE3 - modelValue: { - handler(newVal) { - this.realTotalData = newVal; - }, - immediate: true - } - // #endif - }, - methods: { - //请求结束(成功或者失败)调用此方法,将请求的结果传递给z-paging处理,第一个参数为请求结果数组,第二个参数为是否成功(默认是是) - complete(data, success = true) { - this.customNoMore = -1; - return this.addData(data, success); - }, - //【保证数据一致】请求结束(成功或者失败)调用此方法,将请求的结果传递给z-paging处理,第一个参数为请求结果数组,第二个参数为dataKey,需与:data-key绑定的一致,第三个参数为是否成功(默认为是) - completeByKey(data, dataKey = null, success = true) { - if (dataKey !== null && this.dataKey !== null && dataKey !== this.dataKey) { - this.isFirstPage && this.endRefresh(); - return new Promise(resolve => resolve()); - } - this.customNoMore = -1; - return this.addData(data, success); - }, - //【通过total判断是否有更多数据】请求结束(成功或者失败)调用此方法,将请求的结果传递给z-paging处理,第一个参数为请求结果数组,第二个参数为total(列表总数),第三个参数为是否成功(默认为是) - completeByTotal(data, total, success = true) { - if (total == 'undefined') { - this.customNoMore = -1; - } else { - const dataTypeRes = this._checkDataType(data, success, false); - data = dataTypeRes.data; - success = dataTypeRes.success; - if (total >= 0 && success) { - return new Promise((resolve, reject) => { - this.$nextTick(() => { - let nomore = false; - const realTotalDataCount = this.pageNo == this.defaultPageNo ? 0 : this.realTotalData.length; - const dataLength = this.privateConcat ? data.length : 0; - let exceedCount = realTotalDataCount + dataLength - total; - if (exceedCount >= 0) { - nomore = true; - exceedCount = this.defaultPageSize - exceedCount; - if (this.privateConcat && exceedCount > 0 && exceedCount < data.length) { - data = data.splice(0, exceedCount); - } - } - this.completeByNoMore(data, nomore, success).then(res => resolve(res)).catch(() => reject()); - }) - }); - } - } - return this.addData(data, success); - }, - //【自行判断是否有更多数据】请求结束(成功或者失败)调用此方法,将请求的结果传递给z-paging处理,第一个参数为请求结果数组,第二个参数为是否有更多数据,第三个参数为是否成功(默认是是) - completeByNoMore(data, nomore, success = true) { - if (nomore != 'undefined') { - this.customNoMore = nomore == true ? 1 : 0; - } - return this.addData(data, success); - }, - //与上方complete方法功能一致,新版本中设置服务端回调数组请使用complete方法 - addData(data, success = true) { - if (!this.fromCompleteEmit) { - this.disabledCompleteEmit = true; - this.fromCompleteEmit = false; - } - const currentTimeStamp = u.getTime(); - const disTime = currentTimeStamp - this.requestTimeStamp; - let minDelay = this.minDelay; - if (this.isFirstPage && this.finalShowRefresherWhenReload) { - minDelay = Math.max(400, minDelay); - } - const addDataDalay = (this.requestTimeStamp > 0 && disTime < minDelay) ? minDelay - disTime : 0; - this.$nextTick(() => { - u.delay(() => { - this._addData(data, success, false); - }, this.delay > 0 ? this.delay : addDataDalay) - }) - - return new Promise((resolve, reject) => { - this.dataPromiseResultMap.complete = { resolve, reject }; - }); - }, - //从顶部添加数据,不会影响分页的pageNo和pageSize - addDataFromTop(data, toTop = true, toTopWithAnimate = true) { - data = Object.prototype.toString.call(data) !== '[object Array]' ? [data] : data.reverse(); - // #ifndef APP-NVUE - this.finalUseVirtualList && this._setCellIndex(data, 'top') - // #endif - this.totalData = [...data, ...this.totalData]; - if (toTop) { - u.delay(() => this._scrollToTop(toTopWithAnimate)); - } - }, - //重新设置列表数据,调用此方法不会影响pageNo和pageSize,也不会触发请求。适用场景:当需要删除列表中某一项时,将删除对应项后的数组通过此方法传递给z-paging。(当出现类似的需要修改列表数组的场景时,请使用此方法,请勿直接修改page中:list.sync绑定的数组) - resetTotalData(data) { - this.isTotalChangeFromAddData = true; - data = Object.prototype.toString.call(data) !== '[object Array]' ? [data] : data; - this.totalData = data; - }, - //添加聊天记录 - addChatRecordData(data, toBottom = true, toBottomWithAnimate = true) { - data = Object.prototype.toString.call(data) !== '[object Array]' ? [data] : data; - if (!this.useChatRecordMode) return; - this.isTotalChangeFromAddData = true; - //#ifndef APP-NVUE - this.totalData = [...this.totalData, ...data]; - //#endif - //#ifdef APP-NVUE - this.totalData = this.nIsFirstPageAndNoMore ? [...this.totalData, ...data] : [...data, ...this.totalData]; - //#endif - if (toBottom) { - u.delay(() => { - //#ifndef APP-NVUE - this._scrollToBottom(toBottomWithAnimate); - //#endif - //#ifdef APP-NVUE - this.nIsFirstPageAndNoMore ? this._scrollToBottom(toBottomWithAnimate) : this._scrollToTop(toBottomWithAnimate); - //#endif - }) - } - }, - //设置本地分页数据,请求结束(成功或者失败)调用此方法,将请求的结果传递给z-paging作分页处理(若调用了此方法,则上拉加载更多时内部会自动分页,不会触发@query所绑定的事件) - setLocalPaging(data, success = true) { - this.isLocalPaging = true; - this.$nextTick(() => { - this._addData(data, success, true); - }) - return new Promise((resolve, reject) => { - this.dataPromiseResultMap.localPaging = { resolve, reject }; - }); - }, - //重新加载分页数据,pageNo会恢复为默认值,相当于下拉刷新的效果(animate为true时会展示下拉刷新动画,默认为false) - reload(animate = this.showRefresherWhenReload) { - if (animate) { - this.privateShowRefresherWhenReload = animate; - this.isUserPullDown = true; - } - if (!this.showLoadingMoreWhenReload) { - this.listRendering = true; - } - this.$nextTick(() => { - this._preReload(animate, false); - }) - return new Promise((resolve, reject) => { - this.dataPromiseResultMap.reload = { resolve, reject }; - }); - }, - //刷新列表数据,pageNo和pageSize不会重置,列表数据会重新从服务端获取。必须保证@query绑定的方法中的pageNo和pageSize和传给服务端的一致 - refresh() { - return this._handleRefreshWithDisPageNo(this.pageNo - this.defaultPageNo + 1); - }, - //刷新列表数据至指定页,例如pageNo=5时则代表刷新列表至第5页,此时pageNo会变为5,列表会展示前5页的数据。必须保证@query绑定的方法中的pageNo和pageSize和传给服务端的一致 - refreshToPage(pageNo) { - this.isHandlingRefreshToPage = true; - return this._handleRefreshWithDisPageNo(pageNo + this.defaultPageNo - 1); - }, - //手动更新列表缓存数据,将自动截取v-model绑定的list中的前pageSize条覆盖缓存,请确保在list数据更新到预期结果后再调用此方法 - updateCache() { - if (this.finalUseCache && this.totalData.length) { - this._saveLocalCache(this.totalData.slice(0, Math.min(this.totalData.length, this.pageSize))); - } - }, - //清空分页数据 - clean() { - this._reload(true); - this._addData([], true, false); - }, - //清空分页数据 - clear() { - this.clean(); - }, - //手动触发滚动到顶部加载更多,聊天记录模式时有效 - doChatRecordLoadMore() { - this.useChatRecordMode && this._onLoadingMore('click'); - }, - //reload之前的一些处理 - _preReload(animate = this.showRefresherWhenReload, isFromMounted = true) { - const showRefresher = this.finalRefresherEnabled && this.useCustomRefresher; - // #ifndef APP-NVUE - if (this.customRefresherHeight === -1 && showRefresher) { - u.delay(() => this._preReload(animate, isFromMounted), c.delayTime / 2); - return; - } - // #endif - this.isUserReload = true; - this.loadingType = Enum.LoadingType.Refresher; - if (animate) { - this.privateShowRefresherWhenReload = animate; - // #ifndef APP-NVUE - if (this.useCustomRefresher) { - this._doRefresherRefreshAnimate(); - } else { - this.refresherTriggered = true; - } - // #endif - // #ifdef APP-NVUE - this.refresherStatus = Enum.Refresher.Loading; - this.refresherRevealStackCount ++; - u.delay(() => { - this._getNodeClientRect('zp-n-refresh-container', false).then((node) => { - if (node) { - let nodeHeight = node[0].height; - this.nShowRefresherReveal = true; - this.nShowRefresherRevealHeight = nodeHeight; - u.delay(() => { - this._nDoRefresherEndAnimation(0, -nodeHeight, false, false); - u.delay(() => { - this._nDoRefresherEndAnimation(nodeHeight, 0); - }, 10) - }, 10) - } - this._reload(false, isFromMounted); - this._doRefresherLoad(false); - }); - }, this.pagingLoaded ? 10 : 100) - return; - // #endif - } else { - this._refresherEnd(false, false, false, false); - } - this._reload(false, isFromMounted); - }, - //重新加载分页数据 - _reload(isClean = false, isFromMounted = false, isUserPullDown = false) { - this.isAddedData = false; - this.insideOfPaging = -1; - this.cacheScrollNodeHeight = -1; - this.pageNo = this.defaultPageNo; - this._cleanRefresherEndTimeout(); - !this.privateShowRefresherWhenReload && !isClean && this._startLoading(true); - this.firstPageLoaded = true; - this.isTotalChangeFromAddData = false; - if (!this.isSettingCacheList) { - this.totalData = []; - } - if (!isClean) { - this._emitQuery(this.pageNo, this.defaultPageSize, isUserPullDown ? Enum.QueryFrom.UserPullDown : Enum.QueryFrom.Reload); - let delay = 0; - // #ifdef MP-TOUTIAO - delay = 5; - // #endif - u.delay(this._callMyParentQuery, delay); - if (!isFromMounted && this.autoScrollToTopWhenReload) { - let checkedNRefresherLoading = true; - // #ifdef APP-NVUE - checkedNRefresherLoading = !this.nRefresherLoading; - // #endif - checkedNRefresherLoading && this._scrollToTop(false); - } - } - // #ifdef APP-NVUE - this.$nextTick(() => { - this.nShowBottom = this.realTotalData.length > 0; - }) - // #endif - }, - //处理服务端返回的数组 - _addData(data, success, isLocal) { - this.isAddedData = true; - this.fromEmptyViewReload = false; - this.isTotalChangeFromAddData = true; - this.refresherTriggered = false; - this._endSystemLoadingAndRefresh(); - const tempIsUserPullDown = this.isUserPullDown; - if (this.showRefresherUpdateTime && this.isFirstPage) { - u.setRefesrherTime(u.getTime(), this.refresherUpdateTimeKey); - this.$refs.refresh && this.$refs.refresh.updateTime(); - } - if (!isLocal && tempIsUserPullDown && this.isFirstPage) { - this.isUserPullDown = false; - } - if (!this.isFirstPage) { - this.listRendering = true; - this.$nextTick(() => { - u.delay(() => this.listRendering = false); - }) - } else { - this.listRendering = false; - } - let dataTypeRes = this._checkDataType(data, success, isLocal); - data = dataTypeRes.data; - success = dataTypeRes.success; - let delayTime = c.delayTime; - // #ifdef APP-NVUE - if (this.useChatRecordMode) delayTime = 0; - // #endif - this.loadingForNow = false; - u.delay(() => { - this.pagingLoaded = true; - this.$nextTick(()=>{ - !isLocal && this._refresherEnd(delayTime > 0, true, tempIsUserPullDown); - }) - }) - if (this.isFirstPage) { - this.isLoadFailed = !success; - this.$emit('isLoadFailedChange', this.isLoadFailed); - if (this.finalUseCache && success && (this.cacheMode === Enum.CacheMode.Always ? true : this.isSettingCacheList)) { - this._saveLocalCache(data); - } - } - this.isSettingCacheList = false; - if (success) { - if (!(this.privateConcat === false && this.loadingStatus === Enum.More.NoMore)) { - this.loadingStatus = Enum.More.Default; - } - if (isLocal) { - this.totalLocalPagingList = data; - const localPageNo = this.defaultPageNo; - const localPageSize = this.queryFrom !== Enum.QueryFrom.Refresh ? this.defaultPageSize : this.currentRefreshPageSize; - this._localPagingQueryList(localPageNo, localPageSize, 0, res => { - this.completeByTotal(res, this.totalLocalPagingList.length); - }) - } else { - let dataChangeDelayTime = 0; - // #ifdef APP-NVUE - if (this.privateShowRefresherWhenReload && this.finalNvueListIs === 'waterfall') { - dataChangeDelayTime = 150; - } - // #endif - u.delay(() => { - this._currentDataChange(data, this.currentData); - this._callDataPromise(true, this.totalData); - }, dataChangeDelayTime) - } - if (this.isHandlingRefreshToPage) { - this.isHandlingRefreshToPage = false; - this.pageNo = this.defaultPageNo + Math.ceil(data.length / this.pageSize) - 1; - if (data.length % this.pageSize !== 0) { - this.customNoMore = 1; - } - } - } else { - this._currentDataChange(data, this.currentData); - this._callDataPromise(false); - this.loadingStatus = Enum.More.Fail; - this.isHandlingRefreshToPage = false; - if (this.loadingType === Enum.LoadingType.LoadingMore) { - this.pageNo --; - } - } - }, - //所有数据改变时调用 - _totalDataChange(newVal, oldVal, eventThrow=true) { - if ((!this.isUserReload || !this.autoCleanListWhenReload) && this.firstPageLoaded && !newVal.length && oldVal.length) { - return; - } - this._doCheckScrollViewShouldFullHeight(newVal); - if(!this.realTotalData.length && !newVal.length){ - eventThrow = false; - } - this.realTotalData = newVal; - if (eventThrow) { - this.$emit('input', newVal); - // #ifdef VUE3 - this.$emit('update:modelValue', newVal); - // #endif - this.$emit('update:list', newVal); - this.$emit('listChange', newVal); - this._callMyParentList(newVal); - } - this.firstPageLoaded = false; - this.isTotalChangeFromAddData = false; - this.$nextTick(() => { - u.delay(()=>{ - this._getNodeClientRect('.zp-paging-container-content').then(res => { - res && this.$emit('contentHeightChanged', res[0].height); - }); - }, c.delayTime * (this.isIos ? 1 : 3)) - // #ifdef APP-NVUE - if (this.useChatRecordMode && this.nIsFirstPageAndNoMore && this.isFirstPage && !this.nFirstPageAndNoMoreChecked) { - this.nFirstPageAndNoMoreChecked = true; - this._scrollToBottom(false); - } - u.delay(() => { - this.nShowBottom = true; - }, c.delayTime * 6, 'nShowBottomDelay'); - // #endif - }) - }, - //当前数据改变时调用 - _currentDataChange(newVal, oldVal) { - newVal = [...newVal]; - // #ifndef APP-NVUE - this.finalUseVirtualList && this._setCellIndex(newVal, 'bottom'); - this.useChatRecordMode && newVal.reverse(); - // #endif - if (this.isFirstPage && this.finalConcat) { - this.totalData = []; - } - if (this.customNoMore !== -1) { - if (this.customNoMore === 1 || !newVal.length) { - this.loadingStatus = Enum.More.NoMore; - } - } else { - if (!newVal.length || (newVal.length && newVal.length < this.defaultPageSize)) { - this.loadingStatus = Enum.More.NoMore; - } - } - if (!this.totalData.length) { - if (this.finalConcat) { - // #ifdef APP-NVUE - if (this.useChatRecordMode && this.isFirstPage && this.loadingStatus === Enum.More.NoMore) { - newVal.reverse(); - } - // #endif - this.totalData = newVal; - } - if (this.useChatRecordMode) { - // #ifndef APP-NVUE - this.$nextTick(() => { - this._scrollToBottom(false); - }) - // #endif - } - } else { - if (this.useChatRecordMode) { - // #ifdef APP-NVUE - this.totalData = [...this.totalData, ...newVal]; - // #endif - //#ifndef APP-NVUE - const idIndex = newVal.length; - let idIndexStr = `z-paging-${idIndex}`; - this.totalData = [...newVal, ...this.totalData]; - if (this.pageNo !== this.defaultPageNo) { - this.privateScrollWithAnimation = 0; - this.$emit('update:chatIndex', idIndex); - this.$nextTick(() => { - this._scrollIntoView(idIndexStr, 30 + Math.max(0, this.cacheTopHeight), false, () => { - this.$emit('update:chatIndex', 0); - }); - }) - } else { - this.$nextTick(() => { - this._scrollToBottom(false); - }) - } - //#endif - - } else { - if (this.finalConcat) { - const currentScrollTop = this.oldScrollTop; - this.totalData = [...this.totalData, ...newVal]; - // #ifdef MP-WEIXIN - if (!this.isIos && !this.refresherOnly && !this.usePageScroll && newVal.length) { - this.loadingMoreTimeStamp = u.getTime(); - this.$nextTick(() => { - this.scrollToY(currentScrollTop); - }) - } - // #endif - } else { - this.totalData = newVal; - } - } - } - this.privateConcat = true; - }, - //根据pageNo处理refresh操作 - _handleRefreshWithDisPageNo(pageNo) { - if (!this.realTotalData.length) return this.reload(); - if (pageNo >= 1) { - this.loading = true; - this.privateConcat = false; - const totalPageSize = pageNo * this.pageSize; - this.currentRefreshPageSize = totalPageSize; - this._emitQuery(this.defaultPageNo, totalPageSize, Enum.QueryFrom.Refresh); - this._callMyParentQuery(this.defaultPageNo, totalPageSize); - } - return new Promise((resolve, reject) => { - this.dataPromiseResultMap.reload = { resolve, reject }; - }); - }, - //本地分页请求 - _localPagingQueryList(pageNo, pageSize, localPagingLoadingTime, callback) { - pageNo = Math.max(1, pageNo); - pageSize = Math.max(1, pageSize); - const totalPagingList = [...this.totalLocalPagingList]; - const pageNoIndex = (pageNo - 1) * pageSize; - const finalPageNoIndex = Math.min(totalPagingList.length, pageNoIndex + pageSize); - const resultPagingList = totalPagingList.splice(pageNoIndex, finalPageNoIndex - pageNoIndex); - u.delay(() => callback(resultPagingList), localPagingLoadingTime) - }, - //存储列表缓存数据 - _saveLocalCache(data) { - uni.setStorageSync(this.finalCacheKey, data); - }, - //通过缓存数据填充列表数据 - _setListByLocalCache() { - this.totalData = uni.getStorageSync(this.finalCacheKey) || []; - this.isSettingCacheList = true; - }, - //修改父view的list - _callMyParentList(newVal) { - if (this.autowireListName.length) { - const myParent = u.getParent(this.$parent); - if (myParent && myParent[this.autowireListName]) { - myParent[this.autowireListName] = newVal; - } - } - }, - //调用父view的query - _callMyParentQuery(customPageNo = 0, customPageSize = 0) { - if (this.autowireQueryName) { - if (this.myParentQuery === -1) { - const myParent = u.getParent(this.$parent); - if (myParent && myParent[this.autowireQueryName]) { - this.myParentQuery = myParent[this.autowireQueryName]; - } - } - if (this.myParentQuery !== -1) { - customPageSize > 0 ? this.myParentQuery(customPageNo, customPageSize) : this.myParentQuery(this.pageNo, this.defaultPageSize); - } - } - }, - //emit query事件 - _emitQuery(pageNo, pageSize, from){ - this.queryFrom = from; - this.requestTimeStamp = u.getTime(); - const [lastItem] = this.realTotalData.slice(-1); - this.$emit('query', ...interceptor._handleQuery(pageNo, pageSize, from, lastItem || null)); - }, - //触发数据改变promise - _callDataPromise(success, totalList) { - for (const key in this.dataPromiseResultMap) { - const obj = this.dataPromiseResultMap[key]; - if (!obj) break; - success ? obj.resolve({ totalList, noMore: this.loadingStatus === Enum.More.NoMore }) : obj.reject(`z-paging-${key}-error`); - } - }, - //检查complete data的类型 - _checkDataType(data, success, isLocal) { - const dataType = Object.prototype.toString.call(data); - if (dataType === '[object Boolean]') { - success = data; - data = []; - } else if (dataType !== '[object Array]') { - data = []; - if (dataType !== '[object Undefined]' && dataType !== '[object Null]') { - u.consoleErr(`${isLocal ? 'setLocalPaging' : 'complete'}参数类型不正确,第一个参数类型必须为Array!`); - } - } - return { data, success }; - }, - } -} diff --git a/src/uni_modules/z-paging/components/z-paging/js/modules/empty.js b/src/uni_modules/z-paging/components/z-paging/js/modules/empty.js deleted file mode 100644 index fdf7be00..00000000 --- a/src/uni_modules/z-paging/components/z-paging/js/modules/empty.js +++ /dev/null @@ -1,147 +0,0 @@ -// [z-paging]空数据图view模块 -import u from '.././z-paging-utils' - -export default { - props: { - //是否强制隐藏空数据图,默认为否 - hideEmptyView: { - type: Boolean, - default: u.gc('hideEmptyView', false) - }, - //空数据图描述文字,默认为“没有数据哦~” - emptyViewText: { - type: [String, Object], - default: u.gc('emptyViewText', null) - }, - //是否显示空数据图重新加载按钮(无数据时),默认为否 - showEmptyViewReload: { - type: Boolean, - default: u.gc('showEmptyViewReload', false) - }, - //加载失败时是否显示空数据图重新加载按钮,默认为是 - showEmptyViewReloadWhenError: { - type: Boolean, - default: u.gc('showEmptyViewReloadWhenError', true) - }, - //空数据图点击重新加载文字,默认为“重新加载” - emptyViewReloadText: { - type: [String, Object], - default: u.gc('emptyViewReloadText', null) - }, - //空数据图图片,默认使用z-paging内置的图片 - emptyViewImg: { - type: String, - default: u.gc('emptyViewImg', '') - }, - //空数据图“加载失败”描述文字,默认为“很抱歉,加载失败” - emptyViewErrorText: { - type: [String, Object], - default: u.gc('emptyViewErrorText', null) - }, - //空数据图“加载失败”图片,默认使用z-paging内置的图片 - emptyViewErrorImg: { - type: String, - default: u.gc('emptyViewErrorImg', '') - }, - //空数据图样式 - emptyViewStyle: { - type: Object, - default: function() { - return u.gc('emptyViewStyle', {}); - } - }, - //空数据图容器样式 - emptyViewSuperStyle: { - type: Object, - default: function() { - return u.gc('emptyViewSuperStyle', {}); - } - }, - //空数据图img样式 - emptyViewImgStyle: { - type: Object, - default: function() { - return u.gc('emptyViewImgStyle', {}); - } - }, - //空数据图描述文字样式 - emptyViewTitleStyle: { - type: Object, - default: function() { - return u.gc('emptyViewTitleStyle', {}); - } - }, - //空数据图重新加载按钮样式 - emptyViewReloadStyle: { - type: Object, - default: function() { - return u.gc('emptyViewReloadStyle', {}); - } - }, - //空数据图片是否铺满z-paging,默认为否,即填充满z-paging内列表(滚动区域)部分。若设置为否,则为填铺满整个z-paging - emptyViewFixed: { - type: Boolean, - default: u.gc('emptyViewFixed', false) - }, - //空数据图片是否垂直居中,默认为是,若设置为否即为从空数据容器顶部开始显示。emptyViewFixed为false时有效 - emptyViewCenter: { - type: Boolean, - default: u.gc('emptyViewCenter', true) - }, - //加载中时是否自动隐藏空数据图,默认为是 - autoHideEmptyViewWhenLoading: { - type: Boolean, - default: u.gc('autoHideEmptyViewWhenLoading', true) - }, - //用户下拉列表触发下拉刷新加载中时是否自动隐藏空数据图,默认为是 - autoHideEmptyViewWhenPull: { - type: Boolean, - default: u.gc('autoHideEmptyViewWhenPull', true) - }, - //空数据view的z-index,默认为9 - emptyViewZIndex: { - type: Number, - default: u.gc('emptyViewZIndex', 9) - }, - }, - computed: { - finalEmptyViewImg() { - return this.isLoadFailed ? this.emptyViewErrorImg : this.emptyViewImg; - }, - finalShowEmptyViewReload() { - return this.isLoadFailed ? this.showEmptyViewReloadWhenError : this.showEmptyViewReload; - }, - showEmpty() { - if (this.refresherOnly || this.hideEmptyView || this.realTotalData.length) return false; - if (this.autoHideEmptyViewWhenLoading) { - if (this.isAddedData && !this.firstPageLoaded && !this.loading) return true; - } else { - return true; - } - return !this.autoHideEmptyViewWhenPull && !this.isUserReload; - }, - }, - methods: { - //点击了空数据view重新加载按钮 - _emptyViewReload() { - let callbacked = false; - this.$emit('emptyViewReload', reload => { - if (reload === undefined || reload === true) { - this.fromEmptyViewReload = true; - this.reload().catch(() => {}); - } - callbacked = true; - }); - this.$nextTick(() => { - if (!callbacked) { - this.fromEmptyViewReload = true; - this.reload().catch(() => {}); - } - }) - }, - //点击了空数据view - _emptyViewClick() { - this.$emit('emptyViewClick'); - }, - } -} \ No newline at end of file diff --git a/src/uni_modules/z-paging/components/z-paging/js/modules/i18n.js b/src/uni_modules/z-paging/components/z-paging/js/modules/i18n.js deleted file mode 100644 index 6502df98..00000000 --- a/src/uni_modules/z-paging/components/z-paging/js/modules/i18n.js +++ /dev/null @@ -1,101 +0,0 @@ -// [z-paging]i18n模块 -import { initVueI18n } from '@dcloudio/uni-i18n' -import messages from '../../i18n/index.js' -const { t } = initVueI18n(messages) - -import u from '.././z-paging-utils' -import c from '.././z-paging-constant' -import interceptor from '../z-paging-interceptor' - -const language = uni.getSystemInfoSync().language; -export default { - data() { - return { - language - } - }, - computed: { - finalLanguage() { - try { - const local = uni.getLocale(); - const language = this.language; - return local === 'auto' ? interceptor._handleLanguage2Local(language, this._language2Local(language)) : local; - } catch (e) { - return 'zh-Hans'; - } - }, - finalRefresherDefaultText() { - return this._getI18nText('zp.refresher.default', this.refresherDefaultText); - }, - finalRefresherPullingText() { - return this._getI18nText('zp.refresher.pulling', this.refresherPullingText); - }, - finalRefresherRefreshingText() { - return this._getI18nText('zp.refresher.refreshing', this.refresherRefreshingText); - }, - finalRefresherCompleteText() { - return this._getI18nText('zp.refresher.complete', this.refresherCompleteText); - }, - finalRefresherUpdateTimeTextMap() { - return { - title: t('zp.refresherUpdateTime.title'), - none: t('zp.refresherUpdateTime.none'), - today: t('zp.refresherUpdateTime.today'), - yesterday: t('zp.refresherUpdateTime.yesterday') - }; - }, - finalLoadingMoreDefaultText() { - return this._getI18nText('zp.loadingMore.default', this.loadingMoreDefaultText); - }, - finalLoadingMoreLoadingText() { - return this._getI18nText('zp.loadingMore.loading', this.loadingMoreLoadingText); - }, - finalLoadingMoreNoMoreText() { - return this._getI18nText('zp.loadingMore.noMore', this.loadingMoreNoMoreText); - }, - finalLoadingMoreFailText() { - return this._getI18nText('zp.loadingMore.fail', this.loadingMoreFailText); - }, - finalEmptyViewText() { - return this.isLoadFailed ? this.finalEmptyViewErrorText : this._getI18nText('zp.emptyView.title', this.emptyViewText); - }, - finalEmptyViewReloadText() { - return this._getI18nText('zp.emptyView.reload', this.emptyViewReloadText); - }, - finalEmptyViewErrorText() { - return this._getI18nText('zp.emptyView.error', this.emptyViewErrorText); - }, - finalSystemLoadingText() { - return this._getI18nText('zp.systemLoading.title', this.systemLoadingText); - }, - }, - methods: { - //获取当前z-paging的语言 - getLanguage() { - return this.finalLanguage; - }, - //获取国际化转换后的文本 - _getI18nText(key, value) { - const dataType = Object.prototype.toString.call(value); - if (dataType === '[object Object]') { - const nextValue = value[this.finalLanguage]; - if (nextValue) return nextValue; - } else if (dataType === '[object String]') { - return value; - } - return t(key); - }, - //系统language转i18n local - _language2Local(language) { - const formatedLanguage = language.toLowerCase().replace(new RegExp('_', ''), '-'); - if (formatedLanguage.indexOf('zh') !== -1) { - if (formatedLanguage === 'zh' || formatedLanguage === 'zh-cn' || formatedLanguage.indexOf('zh-hans') !== -1) { - return 'zh-Hans'; - } - return 'zh-Hant'; - } - if (formatedLanguage.indexOf('en') !== -1) return 'en'; - return language; - } - } -} diff --git a/src/uni_modules/z-paging/components/z-paging/js/modules/load-more.js b/src/uni_modules/z-paging/components/z-paging/js/modules/load-more.js deleted file mode 100644 index 950531c3..00000000 --- a/src/uni_modules/z-paging/components/z-paging/js/modules/load-more.js +++ /dev/null @@ -1,315 +0,0 @@ -// [z-paging]滚动到底部加载更多模块 -import u from '.././z-paging-utils' -import Enum from '.././z-paging-enum' - -export default { - props: { - //自定义底部加载更多样式 - loadingMoreCustomStyle: { - type: Object, - default: function() { - return u.gc('loadingMoreCustomStyle', {}); - } - }, - //自定义底部加载更多文字样式 - loadingMoreTitleCustomStyle: { - type: Object, - default: function() { - return u.gc('loadingMoreTitleCustomStyle', {}); - } - }, - //自定义底部加载更多加载中动画样式 - loadingMoreLoadingIconCustomStyle: { - type: Object, - default: function() { - return u.gc('loadingMoreLoadingIconCustomStyle', {}); - } - }, - //自定义底部加载更多加载中动画图标类型,可选flower或circle,默认为flower - loadingMoreLoadingIconType: { - type: String, - default: u.gc('loadingMoreLoadingIconType', 'flower') - }, - //自定义底部加载更多加载中动画图标图片 - loadingMoreLoadingIconCustomImage: { - type: String, - default: u.gc('loadingMoreLoadingIconCustomImage', '') - }, - //底部加载更多加载中view是否展示旋转动画,默认为是 - loadingMoreLoadingAnimated: { - type: Boolean, - default: u.gc('loadingMoreLoadingAnimated', true) - }, - //是否启用加载更多数据(含滑动到底部加载更多数据和点击加载更多数据),默认为是 - loadingMoreEnabled: { - type: Boolean, - default: u.gc('loadingMoreEnabled', true) - }, - //是否启用滑动到底部加载更多数据,默认为是 - toBottomLoadingMoreEnabled: { - type: Boolean, - default: u.gc('toBottomLoadingMoreEnabled', true) - }, - //滑动到底部状态为默认状态时,以加载中的状态展示,默认为否。若设置为是,可避免滚动到底部看到默认状态然后立刻变为加载中状态的问题,但分页数量未超过一屏时,不会显示【点击加载更多】 - loadingMoreDefaultAsLoading: { - type: [Boolean], - default: u.gc('loadingMoreDefaultAsLoading', false) - }, - //滑动到底部"默认"文字,默认为【点击加载更多】 - loadingMoreDefaultText: { - type: [String, Object], - default: u.gc('loadingMoreDefaultText', null) - }, - //滑动到底部"加载中"文字,默认为【正在加载...】 - loadingMoreLoadingText: { - type: [String, Object], - default: u.gc('loadingMoreLoadingText', null) - }, - //滑动到底部"没有更多"文字,默认为【没有更多了】 - loadingMoreNoMoreText: { - type: [String, Object], - default: u.gc('loadingMoreNoMoreText', null) - }, - //滑动到底部"加载失败"文字,默认为【加载失败,点击重新加载】 - loadingMoreFailText: { - type: [String, Object], - default: u.gc('loadingMoreFailText', null) - }, - //当没有更多数据且分页内容未超出z-paging时是否隐藏没有更多数据的view,默认为否 - hideNoMoreInside: { - type: Boolean, - default: u.gc('hideNoMoreInside', false) - }, - //当没有更多数据且分页数组长度少于这个值时,隐藏没有更多数据的view,默认为0,代表不限制。 - hideNoMoreByLimit: { - type: Number, - default: u.gc('hideNoMoreByLimit', 0) - }, - //是否显示默认的加载更多text,默认为是 - showDefaultLoadingMoreText: { - type: Boolean, - default: u.gc('showDefaultLoadingMoreText', true) - }, - //是否显示没有更多数据的view - showLoadingMoreNoMoreView: { - type: Boolean, - default: u.gc('showLoadingMoreNoMoreView', true) - }, - //是否显示没有更多数据的分割线,默认为是 - showLoadingMoreNoMoreLine: { - type: Boolean, - default: u.gc('showLoadingMoreNoMoreLine', true) - }, - //自定义底部没有更多数据的分割线样式 - loadingMoreNoMoreLineCustomStyle: { - type: Object, - default: function() { - return u.gc('loadingMoreNoMoreLineCustomStyle', {}); - }, - }, - //当分页未满一屏时,是否自动加载更多,默认为否(nvue无效) - insideMore: { - type: Boolean, - default: u.gc('insideMore', false) - }, - //距底部/右边多远时(单位px),触发 scrolltolower 事件,默认为100rpx - lowerThreshold: { - type: [Number, String], - default: u.gc('lowerThreshold', '100rpx') - }, - }, - data() { - return { - M: Enum.More, - //底部加载更多状态 - loadingStatus: Enum.More.Default, - loadingStatusAfterRender: Enum.More.Default, - loadingMoreTimeStamp: 0, - loadingMoreDefaultSlot: null, - showLoadingMore: false, - customNoMore: -1, - } - }, - computed: { - zLoadMoreConfig() { - return { - status: this.loadingStatusAfterRender, - defaultAsLoading: this.loadingMoreDefaultAsLoading, - defaultThemeStyle: this.finalLoadingMoreThemeStyle, - customStyle: this.loadingMoreCustomStyle, - titleCustomStyle: this.loadingMoreTitleCustomStyle, - iconCustomStyle: this.loadingMoreLoadingIconCustomStyle, - loadingIconType: this.loadingMoreLoadingIconType, - loadingIconCustomImage: this.loadingMoreLoadingIconCustomImage, - loadingAnimated: this.loadingMoreLoadingAnimated, - showNoMoreLine: this.showLoadingMoreNoMoreLine, - noMoreLineCustomStyle: this.loadingMoreNoMoreLineCustomStyle, - defaultText: this.finalLoadingMoreDefaultText, - loadingText: this.finalLoadingMoreLoadingText, - noMoreText: this.finalLoadingMoreNoMoreText, - failText: this.finalLoadingMoreFailText, - hideContent: !this.loadingMoreDefaultAsLoading && this.listRendering, - }; - }, - finalLoadingMoreThemeStyle() { - return this.loadingMoreThemeStyle.length ? this.loadingMoreThemeStyle : this.defaultThemeStyle; - }, - showLoadingMoreDefault() { - return this._showLoadingMore('Default'); - }, - showLoadingMoreLoading() { - return this._showLoadingMore('Loading'); - }, - showLoadingMoreNoMore() { - return this._showLoadingMore('NoMore'); - }, - showLoadingMoreFail() { - return this._showLoadingMore('Fail'); - }, - showLoadingMoreCustom() { - return this._showLoadingMore('Custom'); - } - }, - methods: { - //页面滚动到底部时通知z-paging进行进一步处理 - pageReachBottom() { - !this.useChatRecordMode && this._onLoadingMore('toBottom'); - }, - //手动触发上拉加载更多(非必须,可依据具体需求使用) - doLoadMore(type) { - this._onLoadingMore(type); - }, - //通过@scroll事件检测是否滚动到了底部 - _checkScrolledToBottom(scrollDiff, checked = false) { - if (this.cacheScrollNodeHeight === -1) { - this._getNodeClientRect('.zp-scroll-view').then((res) => { - if (res) { - const pageScrollNodeHeight = res[0].height; - this.cacheScrollNodeHeight = pageScrollNodeHeight; - if (scrollDiff - pageScrollNodeHeight <= this.finalLowerThreshold) { - this._onLoadingMore('toBottom'); - } - } - }); - } else { - if (scrollDiff - this.cacheScrollNodeHeight <= this.finalLowerThreshold) { - this._onLoadingMore('toBottom'); - } else if (scrollDiff - this.cacheScrollNodeHeight <= 500 && !checked) { - u.delay(() => { - this._getNodeClientRect('.zp-scroll-view', true, true).then((res) => { - this.oldScrollTop = res[0].scrollTop; - const newScrollDiff = res[0].scrollHeight - this.oldScrollTop; - this._checkScrolledToBottom(newScrollDiff, true); - }) - }, 150, 'checkScrolledToBottomDelay') - } - } - }, - //触发加载更多时调用,from:toBottom-滑动到底部触发;1、click-点击加载更多触发 - _onLoadingMore(from = 'click') { - if (this.isIos && from === 'toBottom' && !this.scrollToBottomBounceEnabled && this.scrollEnable) { - this.scrollEnable = false; - this.$nextTick(() => { - this.scrollEnable = true; - }) - } - this.$emit('scrolltolower', from); - if (from === 'toBottom' && (!this.toBottomLoadingMoreEnabled || this.useChatRecordMode)) return; - if (this.refresherOnly || !this.loadingMoreEnabled || !(this.loadingStatus === Enum.More.Default || this.loadingStatus === Enum.More.Fail) || this.loading) return; - // #ifdef MP-WEIXIN - if (!this.isIos && !this.refresherOnly && !this.usePageScroll) { - const currentTimestamp = u.getTime(); - if (this.loadingMoreTimeStamp > 0 && currentTimestamp - this.loadingMoreTimeStamp < 100) { - this.loadingMoreTimeStamp = 0; - return; - } - } - // #endif - this._doLoadingMore(); - }, - //处理开始加载更多 - _doLoadingMore() { - if (this.pageNo >= this.defaultPageNo && this.loadingStatus !== Enum.More.NoMore) { - this.pageNo ++; - this._startLoading(false); - if (this.isLocalPaging) { - this._localPagingQueryList(this.pageNo, this.defaultPageSize, this.localPagingLoadingTime, res => { - this.completeByTotal(res, this.totalLocalPagingList.length); - }) - } else { - this._emitQuery(this.pageNo, this.defaultPageSize, Enum.QueryFrom.LoadingMore); - this._callMyParentQuery(); - } - this.loadingType = Enum.LoadingType.LoadingMore; - } - }, - //(预处理)判断当没有更多数据且分页内容未超出z-paging时是否显示没有更多数据的view - _preCheckShowNoMoreInside(newVal, scrollViewNode, pagingContainerNode) { - if (this.loadingStatus === Enum.More.NoMore && this.hideNoMoreByLimit > 0 && newVal.length) { - this.showLoadingMore = newVal.length > this.hideNoMoreByLimit; - } else if ((this.loadingStatus === Enum.More.NoMore && this.hideNoMoreInside && newVal.length) || (this.insideMore && this.insideOfPaging !== false && newVal.length)) { - this.$nextTick(() => { - this._checkShowNoMoreInside(newVal, scrollViewNode, pagingContainerNode); - }) - if (this.insideMore && this.insideOfPaging !== false && newVal.length) { - this.showLoadingMore = newVal.length; - } - } else { - this.showLoadingMore = newVal.length; - } - }, - //判断当没有更多数据且分页内容未超出z-paging时是否显示没有更多数据的view - async _checkShowNoMoreInside(totalData, oldScrollViewNode, oldPagingContainerNode) { - try { - const scrollViewNode = oldScrollViewNode || await this._getNodeClientRect('.zp-scroll-view'); - if (this.usePageScroll) { - if (scrollViewNode) { - const scrollViewTotalH = scrollViewNode[0].top + scrollViewNode[0].height; - this.insideOfPaging = scrollViewTotalH < this.windowHeight; - if (this.hideNoMoreInside) { - this.showLoadingMore = !this.insideOfPaging; - } - this._updateInsideOfPaging(); - } - } else { - const pagingContainerNode = oldPagingContainerNode || await this._getNodeClientRect('.zp-paging-container-content'); - const pagingContainerH = pagingContainerNode ? pagingContainerNode[0].height : 0; - const scrollViewH = scrollViewNode ? scrollViewNode[0].height : 0; - this.insideOfPaging = pagingContainerH < scrollViewH; - if (this.hideNoMoreInside) { - this.showLoadingMore = !this.insideOfPaging; - } - this._updateInsideOfPaging(); - } - } catch (e) { - this.insideOfPaging = !totalData.length; - if (this.hideNoMoreInside) { - this.showLoadingMore = !this.insideOfPaging; - } - this._updateInsideOfPaging(); - } - }, - //是否要展示上拉加载更多view - _showLoadingMore(type) { - if (!this.showLoadingMoreWhenReload && (!(this.loadingStatus === Enum.More.Default ? this.nShowBottom : true) || !this.realTotalData.length)) return false; - if (((!this.showLoadingMoreWhenReload || this.isUserPullDown || this.loadingStatus !== Enum.More.Loading) && !this.showLoadingMore) || - (!this.loadingMoreEnabled && (!this.showLoadingMoreWhenReload || this.isUserPullDown || this.loadingStatus !== Enum.More.Loading)) || this.refresherOnly) { - return false; - } - if (this.useChatRecordMode && type !== 'Loading') return false; - if (!this.$slots) return false; - if (type === 'Custom') { - return this.showDefaultLoadingMoreText && !(this.loadingStatus === Enum.More.NoMore && !this.showLoadingMoreNoMoreView); - } - const res = this.loadingStatus === Enum.More[type] && this.$slots[`loadingMore${type}`] && (type === 'NoMore' ? this.showLoadingMoreNoMoreView : true); - if (res) { - // #ifdef APP-NVUE - if (!this.isIos) { - this.nLoadingMoreFixedHeight = false; - } - // #endif - } - return res; - }, - } -} diff --git a/src/uni_modules/z-paging/components/z-paging/js/modules/loading.js b/src/uni_modules/z-paging/components/z-paging/js/modules/loading.js deleted file mode 100644 index 52960a54..00000000 --- a/src/uni_modules/z-paging/components/z-paging/js/modules/loading.js +++ /dev/null @@ -1,93 +0,0 @@ -// [z-paging]loading相关模块 -import u from '.././z-paging-utils' -import Enum from '.././z-paging-enum' - -export default { - props: { - //第一次加载后自动隐藏loading slot,默认为是 - autoHideLoadingAfterFirstLoaded: { - type: Boolean, - default: u.gc('autoHideLoadingAfterFirstLoaded', true) - }, - //loading slot是否铺满屏幕并固定,默认为否 - loadingFullFixed: { - type: Boolean, - default: u.gc('loadingFullFixed', false) - }, - //是否自动显示系统Loading:即uni.showLoading,若开启则将在刷新列表时(调用reload、refresh时)显示,下拉刷新和滚动到底部加载更多不会显示,默认为false。 - autoShowSystemLoading: { - type: Boolean, - default: u.gc('autoShowSystemLoading', false) - }, - //显示系统Loading时是否显示透明蒙层,防止触摸穿透,默认为是(H5、App、微信小程序、百度小程序有效) - systemLoadingMask: { - type: Boolean, - default: u.gc('systemLoadingMask', true) - }, - //显示系统Loading时显示的文字,默认为"加载中" - systemLoadingText: { - type: [String, Object], - default: u.gc('systemLoadingText', null) - }, - }, - data() { - return { - loading: false, - loadingForNow: false, - } - }, - watch: { - loadingStatus(newVal) { - this.$emit('loadingStatusChange', newVal); - this.$nextTick(() => { - this.loadingStatusAfterRender = newVal; - }) - // #ifdef APP-NVUE - if (this.useChatRecordMode) { - if (this.pageNo === this.defaultPageNo && newVal === Enum.More.NoMore) { - this.nIsFirstPageAndNoMore = true; - return; - } - } - this.nIsFirstPageAndNoMore = false; - // #endif - }, - loading(newVal){ - if (newVal) { - this.loadingForNow = newVal; - } - }, - }, - computed: { - showLoading() { - if (this.firstPageLoaded || !this.loading || !this.loadingForNow) return false; - if (this.finalShowSystemLoading){ - uni.showLoading({ - title: this.finalSystemLoadingText, - mask: this.systemLoadingMask - }) - } - return this.autoHideLoadingAfterFirstLoaded ? (this.fromEmptyViewReload ? true : !this.pagingLoaded) : this.loadingType === Enum.LoadingType.Refresher; - }, - finalShowSystemLoading() { - return this.autoShowSystemLoading && this.loadingType === Enum.LoadingType.Refresher; - } - }, - methods: { - //处理开始加载更多状态 - _startLoading(isReload = false) { - if ((this.showLoadingMoreWhenReload && !this.isUserPullDown) || !isReload) { - this.loadingStatus = Enum.More.Loading; - } - this.loading = true; - }, - //停止系统loading和refresh - _endSystemLoadingAndRefresh(){ - this.finalShowSystemLoading && uni.hideLoading(); - !this.useCustomRefresher && uni.stopPullDownRefresh(); - // #ifdef APP-NVUE - this.usePageScroll && uni.stopPullDownRefresh(); - // #endif - } - } -} diff --git a/src/uni_modules/z-paging/components/z-paging/js/modules/nvue.js b/src/uni_modules/z-paging/components/z-paging/js/modules/nvue.js deleted file mode 100644 index 22288416..00000000 --- a/src/uni_modules/z-paging/components/z-paging/js/modules/nvue.js +++ /dev/null @@ -1,249 +0,0 @@ -// [z-paging]nvue独有部分模块 -import u from '.././z-paging-utils' -import c from '.././z-paging-constant' -import Enum from '.././z-paging-enum' - -// #ifdef APP-NVUE -const weexAnimation = weex.requireModule('animation'); -// #endif -export default { - props: { - // #ifdef APP-NVUE - //nvue中修改列表类型,可选值有list、waterfall和scroller,默认为list - nvueListIs: { - type: String, - default: u.gc('nvueListIs', 'list') - }, - //nvue waterfall配置,仅在nvue中且nvueListIs=waterfall时有效,配置参数详情参见:https://uniapp.dcloud.io/component/waterfall - nvueWaterfallConfig: { - type: Object, - default: function() { - return u.gc('nvueWaterfallConfig', {}); - } - }, - //nvue 控制是否回弹效果,iOS不支持动态修改 - nvueBounce: { - type: Boolean, - default: u.gc('nvueBounce', true) - }, - //nvue中通过代码滚动到顶部/底部时,是否加快动画效果(无滚动动画时无效),默认为否 - nvueFastScroll: { - type: Boolean, - default: u.gc('nvueFastScroll', false) - }, - //nvue中list的id - nvueListId: { - type: String, - default: u.gc('nvueListId', '') - }, - //nvue中refresh组件的样式 - nvueRefresherStyle: { - type: Object, - default: function() { - return u.gc('nvueRefresherStyle', {}); - } - }, - //nvue中是否按分页模式(类似竖向swiper)显示List,默认为false - nvuePagingEnabled: { - type: Boolean, - default: u.gc('nvuePagingEnabled', false) - }, - //是否隐藏nvue列表底部的tagView,此view用于标识滚动到底部位置,若隐藏则滚动到底部功能将失效,在nvue中实现吸顶+swiper功能时需将最外层z-paging的此属性设置为true。默认为否 - hideNvueBottomTag: { - type: Boolean, - default: u.gc('hideNvueBottomTag', false) - }, - //nvue中控制onscroll事件触发的频率:表示两次onscroll事件之间列表至少滚动了10px。注意,将该值设置为较小的数值会提高滚动事件采样的精度,但同时也会降低页面的性能 - offsetAccuracy: { - type: Number, - default: u.gc('offsetAccuracy', 10) - }, - // #endif - }, - data() { - return { - nRefresherLoading: false, - nListIsDragging: false, - nShowBottom: true, - nFixFreezing: false, - nShowRefresherReveal: false, - nIsFirstPageAndNoMore: false, - nFirstPageAndNoMoreChecked: false, - nLoadingMoreFixedHeight: false, - nShowRefresherRevealHeight: 0, - nOldShowRefresherRevealHeight: -1, - nRefresherWidth: uni.upx2px(750), - } - }, - watch: { - // #ifdef APP-NVUE - nIsFirstPageAndNoMore: { - handler(newVal) { - const cellStyle = !this.useChatRecordMode || newVal ? {} : { transform: 'rotate(180deg)' }; - this.$emit('update:cellStyle', cellStyle); - this.$emit('cellStyleChange', cellStyle); - }, - immediate: true - }, - // #endif - }, - computed: { - // #ifdef APP-NVUE - nScopedSlots() { - // #ifdef VUE2 - return this.$scopedSlots; - // #endif - // #ifdef VUE3 - return null; - // #endif - }, - nWaterfallColumnCount() { - if (this.finalNvueListIs !== 'waterfall') return 0; - return this._nGetWaterfallConfig('column-count', 2); - }, - nWaterfallColumnWidth() { - return this._nGetWaterfallConfig('column-width', 'auto'); - }, - nWaterfallColumnGap() { - return this._nGetWaterfallConfig('column-gap', 'normal'); - }, - nWaterfallLeftGap() { - return this._nGetWaterfallConfig('left-gap', 0); - }, - nWaterfallRightGap() { - return this._nGetWaterfallConfig('right-gap', 0); - }, - nViewIs() { - const is = this.finalNvueListIs; - return is === 'scroller' || is === 'view' ? 'view' : is === 'waterfall' ? 'header' : 'cell'; - }, - nSafeAreaBottomHeight() { - return this.safeAreaInsetBottom ? this.safeAreaBottom : 0; - }, - nChatRecordRotateStyle() { - return this.useChatRecordMode ? { transform: this.nIsFirstPageAndNoMore ? 'rotate(0deg)' : 'rotate(180deg)' } : {}; - }, - finalNvueListIs() { - if (this.usePageScroll) return 'view'; - const nvueListIsLowerCase = this.nvueListIs.toLowerCase(); - if (['list','waterfall','scroller'].indexOf(nvueListIsLowerCase) !== -1) return nvueListIsLowerCase; - return 'list'; - }, - finalNvueSuperListIs() { - return this.usePageScroll ? 'view' : 'scroller'; - }, - finalNvueRefresherEnabled() { - return this.finalNvueListIs !== 'view' && this.finalRefresherEnabled && !this.nShowRefresherReveal && !this.useChatRecordMode; - }, - // #endif - }, - mounted(){ - // #ifdef APP-NVUE - //旋转屏幕时更新宽度 - uni.onWindowResize((res) => { - // this._nUpdateRefresherWidth(); - }) - // #endif - }, - methods: { - // #ifdef APP-NVUE - //列表滚动时触发 - _nOnScroll(e) { - this.$emit('scroll', e); - const contentOffsetY = -e.contentOffset.y; - this.oldScrollTop = contentOffsetY; - this.nListIsDragging = e.isDragging; - this._checkShouldShowBackToTop(contentOffsetY, contentOffsetY - 1); - }, - //下拉刷新刷新中 - _nOnRrefresh() { - if (this.nShowRefresherReveal) return; - this.nRefresherLoading = true; - this.refresherStatus = Enum.Refresher.Loading; - this._doRefresherLoad(); - }, - //下拉刷新下拉中 - _nOnPullingdown(e) { - if (this.refresherStatus === Enum.Refresher.Loading || (this.isIos && !this.nListIsDragging)) return; - this._emitTouchmove(e); - const { viewHeight, pullingDistance } = e; - this.refresherStatus = pullingDistance >= viewHeight ? Enum.Refresher.ReleaseToRefresh : Enum.Refresher.Default; - }, - //下拉刷新结束 - _nRefresherEnd(doEnd = true) { - if (doEnd) { - this._nDoRefresherEndAnimation(0, -this.nShowRefresherRevealHeight); - !this.usePageScroll && this.$refs['zp-n-list'].resetLoadmore(); - this.nRefresherLoading = false; - } - }, - //执行主动触发下拉刷新动画 - _nDoRefresherEndAnimation(height, translateY, animate = true, checkStack = true) { - this._cleanRefresherCompleteTimeout(); - this._cleanRefresherEndTimeout(); - - if (!this.finalShowRefresherWhenReload) { - this.refresherEndTimeout = u.delay(() => { - this.refresherStatus = Enum.Refresher.Default; - }, this.refresherCompleteDuration); - return; - } - const stackCount = this.refresherRevealStackCount; - if (height === 0 && checkStack) { - this.refresherRevealStackCount --; - if (stackCount > 1) return; - this.refresherEndTimeout = u.delay(() => { - this.refresherStatus = Enum.Refresher.Default; - }, this.refresherCompleteDuration); - } - if (stackCount > 1) { - this.refresherStatus = Enum.Refresher.Loading; - } - - const duration = animate ? 200 : 0; - if (this.nOldShowRefresherRevealHeight !== height) { - if (height > 0) { - this.nShowRefresherReveal = true; - } - weexAnimation.transition(this.$refs['zp-n-list-refresher-reveal'], { - styles: { - height: `${height}px`, - transform: `translateY(${translateY}px)`, - }, - duration, - timingFunction: 'linear', - needLayout: true, - delay: 0 - }) - } - u.delay(() => { - if (animate) { - this.nShowRefresherReveal = height > 0; - } - }, duration > 0 ? duration - 60 : 0); - this.nOldShowRefresherRevealHeight = height; - }, - //滚动到底部加载更多 - _nOnLoadmore() { - if (this.nShowRefresherReveal || !this.totalData.length) return; - this.useChatRecordMode ? this.doChatRecordLoadMore() : this._onLoadingMore('toBottom'); - }, - //获取nvue waterfall单项配置 - _nGetWaterfallConfig(key, defaultValue) { - return this.nvueWaterfallConfig[key] || defaultValue; - }, - //更新nvue 下拉刷新view容器的宽度 - _nUpdateRefresherWidth() { - u.delay(() => { - this.$nextTick(()=>{ - this._getNodeClientRect('.zp-n-list').then(node => { - if (node) { - this.nRefresherWidth = node[0].width || this.nRefresherWidth; - } - }) - }) - }) - } - // #endif - } -} diff --git a/src/uni_modules/z-paging/components/z-paging/js/modules/refresher.js b/src/uni_modules/z-paging/components/z-paging/js/modules/refresher.js deleted file mode 100644 index b0f5d8eb..00000000 --- a/src/uni_modules/z-paging/components/z-paging/js/modules/refresher.js +++ /dev/null @@ -1,677 +0,0 @@ -// [z-paging]下拉刷新view模块 -import u from '.././z-paging-utils' -import c from '.././z-paging-constant' -import Enum from '.././z-paging-enum' - -export default { - props: { - //下拉刷新的主题样式,支持black,white,默认black - refresherThemeStyle: { - type: String, - default: u.gc('refresherThemeStyle', '') - }, - //自定义下拉刷新中左侧图标的样式 - refresherImgStyle: { - type: Object, - default: function() { - return u.gc('refresherImgStyle', {}); - } - }, - //自定义下拉刷新中右侧状态描述文字的样式 - refresherTitleStyle: { - type: Object, - default: function() { - return u.gc('refresherTitleStyle', {}); - } - }, - //自定义下拉刷新中右侧最后更新时间文字的样式(show-refresher-update-time为true时有效) - refresherUpdateTimeStyle: { - type: Object, - default: function() { - return u.gc('refresherUpdateTimeStyle', {}); - } - }, - //在微信小程序和QQ小程序中,是否实时监听下拉刷新中进度,默认为否 - watchRefresherTouchmove: { - type: Boolean, - default: u.gc('watchRefresherTouchmove', false) - }, - //底部加载更多的主题样式,支持black,white,默认black - loadingMoreThemeStyle: { - type: String, - default: u.gc('loadingMoreThemeStyle', '') - }, - //是否只使用下拉刷新,设置为true后将关闭mounted自动请求数据、关闭滚动到底部加载更多,强制隐藏空数据图。默认为否 - refresherOnly: { - type: Boolean, - default: u.gc('refresherOnly', false) - }, - //自定义下拉刷新默认状态下回弹动画时间,单位为毫秒,默认为100毫秒,nvue无效 - refresherDefaultDuration: { - type: [Number, String], - default: u.gc('refresherDefaultDuration', 100) - }, - //自定义下拉刷新结束以后延迟回弹的时间,单位为毫秒,默认为0 - refresherCompleteDelay: { - type: [Number, String], - default: u.gc('refresherCompleteDelay', 0) - }, - //自定义下拉刷新结束回弹动画时间,单位为毫秒,默认为300毫秒(refresherEndBounceEnabled为false时,refresherCompleteDuration为设定值的1/3),nvue无效 - refresherCompleteDuration: { - type: [Number, String], - default: u.gc('refresherCompleteDuration', 300) - }, - //自定义下拉刷新结束状态下是否允许列表滚动,默认为否 - refresherCompleteScrollable: { - type: Boolean, - default: u.gc('refresherCompleteScrollable', false) - }, - //是否使用自定义的下拉刷新,默认为是,即使用z-paging的下拉刷新。设置为false即代表使用uni scroll-view自带的下拉刷新,h5、App、微信小程序以外的平台不支持uni scroll-view自带的下拉刷新 - useCustomRefresher: { - type: Boolean, - default: u.gc('useCustomRefresher', true) - }, - //自定义下拉刷新下拉帧率,默认为40,过高可能会出现抖动问题 - refresherFps: { - type: [Number, String], - default: u.gc('refresherFps', 40) - }, - //自定义下拉刷新允许触发的最大下拉角度,默认为40度,当下拉角度小于设定值时,自定义下拉刷新动画不会被触发 - refresherMaxAngle: { - type: [Number, String], - default: u.gc('refresherMaxAngle', 40) - }, - //自定义下拉刷新的角度由未达到最大角度变到达到最大角度时,是否继续下拉刷新手势,默认为否 - refresherAngleEnableChangeContinued: { - type: Boolean, - default: u.gc('refresherAngleEnableChangeContinued', false) - }, - //自定义下拉刷新默认状态下的文字 - refresherDefaultText: { - type: [String, Object], - default: u.gc('refresherDefaultText', null) - }, - //自定义下拉刷新松手立即刷新状态下的文字 - refresherPullingText: { - type: [String, Object], - default: u.gc('refresherPullingText', null) - }, - //自定义下拉刷新刷新中状态下的文字 - refresherRefreshingText: { - type: [String, Object], - default: u.gc('refresherRefreshingText', null) - }, - //自定义下拉刷新刷新结束状态下的文字 - refresherCompleteText: { - type: [String, Object], - default: u.gc('refresherCompleteText', null) - }, - //自定义下拉刷新默认状态下的图片 - refresherDefaultImg: { - type: String, - default: u.gc('refresherDefaultImg', null) - }, - //自定义下拉刷新松手立即刷新状态下的图片,默认与refresherDefaultImg一致 - refresherPullingImg: { - type: String, - default: u.gc('refresherPullingImg', null) - }, - //自定义下拉刷新刷新中状态下的图片 - refresherRefreshingImg: { - type: String, - default: u.gc('refresherRefreshingImg', null) - }, - //自定义下拉刷新刷新结束状态下的图片 - refresherCompleteImg: { - type: String, - default: u.gc('refresherCompleteImg', null) - }, - //自定义下拉刷新刷新中状态下是否展示旋转动画 - refresherRefreshingAnimated: { - type: Boolean, - default: u.gc('refresherRefreshingAnimated', true) - }, - //是否开启自定义下拉刷新刷新结束回弹效果,默认为是 - refresherEndBounceEnabled: { - type: Boolean, - default: u.gc('refresherEndBounceEnabled', true) - }, - //是否开启自定义下拉刷新,默认为是 - refresherEnabled: { - type: Boolean, - default: u.gc('refresherEnabled', true) - }, - //设置自定义下拉刷新阈值,默认为80rpx - refresherThreshold: { - type: [Number, String], - default: u.gc('refresherThreshold', '80rpx') - }, - //设置系统下拉刷新默认样式,支持设置 black,white,none,none 表示不使用默认样式,默认为black - refresherDefaultStyle: { - type: String, - default: u.gc('refresherDefaultStyle', 'black') - }, - //设置自定义下拉刷新区域背景 - refresherBackground: { - type: String, - default: u.gc('refresherBackground', 'transparent') - }, - //设置固定的自定义下拉刷新区域背景 - refresherFixedBackground: { - type: String, - default: u.gc('refresherFixedBackground', 'transparent') - }, - //设置固定的自定义下拉刷新区域高度,默认为0 - refresherFixedBacHeight: { - type: [Number, String], - default: u.gc('refresherFixedBacHeight', 0) - }, - //设置自定义下拉刷新下拉超出阈值后继续下拉位移衰减的比例,范围0-1,值越大代表衰减越多。默认为0.65(nvue无效) - refresherOutRate: { - type: Number, - default: u.gc('refresherOutRate', 0.65) - }, - //设置自定义下拉刷新下拉时实际下拉位移与用户下拉距离的比值,默认为0.75,即代表若用户下拉10px,则实际位移为7.5px(nvue无效) - refresherPullRate: { - type: Number, - default: u.gc('refresherPullRate', 0.75) - }, - //是否显示最后更新时间,默认为否 - showRefresherUpdateTime: { - type: Boolean, - default: u.gc('showRefresherUpdateTime', false) - }, - //如果需要区别不同页面的最后更新时间,请为不同页面的z-paging的`refresher-update-time-key`设置不同的字符串 - refresherUpdateTimeKey: { - type: String, - default: u.gc('refresherUpdateTimeKey', 'default') - }, - //下拉刷新时下拉到“松手立即刷新”状态时是否使手机短振动,默认为否(h5无效) - refresherVibrate: { - type: Boolean, - default: u.gc('refresherVibrate', false) - }, - //下拉刷新时是否禁止下拉刷新view跟随用户触摸竖直移动,默认为否。注意此属性只是禁止下拉刷新view移动,其他下拉刷新逻辑依然会正常触发 - refresherNoTransform: { - type: Boolean, - default: u.gc('refresherNoTransform', false) - }, - }, - data() { - return { - R: Enum.Refresher, - //下拉刷新状态 - refresherStatus: Enum.Refresher.Default, - refresherTouchstartY: 0, - lastRefresherTouchmove: null, - refresherReachMaxAngle: true, - refresherTransform: 'translateY(0px)', - refresherTransition: '', - finalRefresherDefaultStyle: 'black', - refresherRevealStackCount: 0, - refresherCompleteTimeout: null, - refresherCompleteSubTimeout: null, - refresherEndTimeout: null, - isTouchmovingTimeout: null, - refresherTriggered: false, - isTouchmoving: false, - isTouchEnded: false, - isUserPullDown: false, - privateRefresherEnabled: -1, - privateShowRefresherWhenReload: false, - customRefresherHeight: -1, - showCustomRefresher: false, - doRefreshAnimateAfter: false, - isRefresherInComplete: false, - pullDownTimeStamp: 0, - moveDis: 0, - oldMoveDis: 0, - currentDis: 0, - oldCurrentMoveDis: 0, - oldRefresherTouchmoveY: 0, - oldTouchDirection: '', - oldEmitedTouchDirection: '', - oldPullingDistance: -1, - refresherThresholdUpdateTag: 0 - } - }, - watch: { - refresherDefaultStyle: { - handler(newVal) { - if (newVal.length) { - this.finalRefresherDefaultStyle = newVal; - } - }, - immediate: true - }, - refresherStatus(newVal) { - newVal === Enum.Refresher.Loading && this._cleanRefresherEndTimeout(); - this.refresherVibrate && newVal === Enum.Refresher.ReleaseToRefresh && this._doVibrateShort(); - this.$emit('refresherStatusChange', newVal); - this.$emit('update:refresherStatus', newVal); - }, - refresherEnabled(newVal) { - !newVal && this.endRefresh(); - } - }, - computed: { - pullDownDisTimeStamp() { - return 1000 / this.refresherFps; - }, - finalRefresherEnabled() { - if (this.useChatRecordMode) return false; - if (this.privateRefresherEnabled === -1) return this.refresherEnabled; - return this.privateRefresherEnabled === 1; - }, - finalRefresherThreshold() { - let refresherThreshold = this.refresherThreshold; - let idDefault = false; - if (refresherThreshold === '80rpx') { - idDefault = true; - if (this.showRefresherUpdateTime) { - refresherThreshold = '120rpx'; - } - } - if (idDefault && this.customRefresherHeight > 0) return this.customRefresherHeight; - return u.convertToPx(refresherThreshold); - }, - finalRefresherFixedBacHeight() { - return u.convertToPx(this.refresherFixedBacHeight); - }, - finalRefresherThemeStyle() { - return this.refresherThemeStyle.length ? this.refresherThemeStyle : this.defaultThemeStyle; - }, - finalRefresherOutRate() { - let rate = this.refresherOutRate; - rate = Math.max(0,rate); - rate = Math.min(1,rate); - return rate; - }, - finalRefresherPullRate() { - let rate = this.refresherPullRate; - rate = Math.max(0,rate); - return rate; - }, - finalRefresherTransform() { - if (this.refresherNoTransform || this.refresherTransform === 'translateY(0px)') return 'none'; - return this.refresherTransform; - }, - finalShowRefresherWhenReload() { - return this.showRefresherWhenReload || this.privateShowRefresherWhenReload; - }, - finalRefresherTriggered() { - if (!(this.finalRefresherEnabled && !this.useCustomRefresher)) return false; - return this.refresherTriggered; - }, - showRefresher() { - const showRefresher = this.finalRefresherEnabled && this.useCustomRefresher; - // #ifndef APP-NVUE - this.customRefresherHeight === -1 && showRefresher && u.delay(() => this.$nextTick(this._updateCustomRefresherHeight)); - // #endif - return showRefresher; - }, - hasTouchmove(){ - // #ifdef VUE2 - // #ifdef APP-VUE || H5 - if (this.$listeners && !this.$listeners.refresherTouchmove) return false; - // #endif - // #ifdef MP-WEIXIN || MP-QQ - return this.watchRefresherTouchmove; - // #endif - return true; - // #endif - return this.watchRefresherTouchmove; - }, - }, - methods: { - //终止下拉刷新状态 - endRefresh() { - this.totalData = this.realTotalData; - this._refresherEnd(); - this._endSystemLoadingAndRefresh(); - this._handleScrollViewDisableBounce({ bounce: true }); - this.$nextTick(() => { - this.refresherTriggered = false; - }) - }, - handleRefresherStatusChanged(func) { - this.refresherStatusChangedFunc = func; - }, - //自定义下拉刷新被触发 - _onRefresh(fromScrollView = false,isUserPullDown = true) { - if (fromScrollView && !(this.finalRefresherEnabled && !this.useCustomRefresher)) return; - this.$emit('onRefresh'); - this.$emit('Refresh'); - // #ifdef APP-NVUE - if (this.loading) { - u.delay(this._nRefresherEnd, 500) - return; - } - // #endif - if (this.loading || this.isRefresherInComplete) return; - this.loadingType = Enum.LoadingType.Refresher; - if (this.nShowRefresherReveal) return; - this.isUserPullDown = isUserPullDown; - this.isUserReload = !isUserPullDown; - this._startLoading(true); - this.refresherTriggered = true; - if(this.reloadWhenRefresh && isUserPullDown){ - this.useChatRecordMode ? this._onLoadingMore('click') : this._reload(false, false, isUserPullDown); - } - }, - //自定义下拉刷新被复位 - _onRestore() { - this.refresherTriggered = 'restore'; - this.$emit('onRestore'); - this.$emit('Restore'); - }, - // #ifndef APP-VUE || MP-WEIXIN || MP-QQ || H5 - //拖拽开始 - _refresherTouchstart(e) { - this._handleListTouchstart(); - if (this._touchDisabled()) return; - this._handleRefresherTouchstart(u.getTouch(e)); - }, - // #endif - //进一步处理拖拽开始结果 - _handleRefresherTouchstart(touch) { - if (!this.loading && this.isTouchEnded) { - this.isTouchmoving = false; - } - this.loadingType = Enum.LoadingType.Refresher; - this.isTouchmovingTimeout && clearTimeout(this.isTouchmovingTimeout); - this.isTouchEnded = false; - this.refresherTransition = ''; - this.refresherTouchstartY = touch.touchY; - this.$emit('refresherTouchstart', this.refresherTouchstartY); - this.lastRefresherTouchmove = touch; - this._cleanRefresherCompleteTimeout(); - this._cleanRefresherEndTimeout(); - }, - // #ifndef APP-VUE || MP-WEIXIN || MP-QQ || H5 - //拖拽中 - _refresherTouchmove(e) { - const currentTimeStamp = u.getTime(); - let touch = null; - let refresherTouchmoveY = 0; - if (this.watchTouchDirectionChange) { - touch = u.getTouch(e); - refresherTouchmoveY = touch.touchY; - const direction = refresherTouchmoveY > this.oldRefresherTouchmoveY ? 'top' : 'bottom'; - if (direction === this.oldTouchDirection && direction !== this.oldEmitedTouchDirection) { - this._handleTouchDirectionChange({ direction }); - this.oldEmitedTouchDirection = direction; - } - this.oldTouchDirection = direction; - this.oldRefresherTouchmoveY = refresherTouchmoveY; - } - if (this.pullDownTimeStamp && currentTimeStamp - this.pullDownTimeStamp <= this.pullDownDisTimeStamp) return; - if (this._touchDisabled()) return; - this.pullDownTimeStamp = Number(currentTimeStamp); - touch = u.getTouch(e); - refresherTouchmoveY = touch.touchY; - let moveDis = refresherTouchmoveY - this.refresherTouchstartY; - if (moveDis < 0) return; - if (this.refresherMaxAngle >= 0 && this.refresherMaxAngle <= 90 && this.lastRefresherTouchmove && this.lastRefresherTouchmove.touchY <= refresherTouchmoveY) { - if (!moveDis && !this.refresherAngleEnableChangeContinued && this.moveDis < 1 && !this.refresherReachMaxAngle) return; - const x = Math.abs(touch.touchX - this.lastRefresherTouchmove.touchX); - const y = Math.abs(refresherTouchmoveY - this.lastRefresherTouchmove.touchY); - const z = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)); - if ((x || y) && x > 1) { - const angle = Math.asin(y / z) / Math.PI * 180; - if (angle < this.refresherMaxAngle) { - this.lastRefresherTouchmove = touch; - this.refresherReachMaxAngle = false; - return; - } - } - } - moveDis = this._getFinalRefresherMoveDis(moveDis); - this._handleRefresherTouchmove(moveDis, touch); - if (!this.disabledBounce) { - if(this.isIos){ - // #ifndef MP-LARK - this._handleScrollViewDisableBounce({ bounce: false }); - // #endif - } - this.disabledBounce = true; - } - this._emitTouchmove({ pullingDistance: moveDis, dy: this.moveDis - this.oldMoveDis }); - }, - // #endif - //进一步处理拖拽中结果 - _handleRefresherTouchmove(moveDis, touch) { - this.refresherReachMaxAngle = true; - this.isTouchmovingTimeout && clearTimeout(this.isTouchmovingTimeout); - this.isTouchmoving = true; - this.isTouchEnded = false; - this.refresherStatus = moveDis >= this.finalRefresherThreshold ? Enum.Refresher.ReleaseToRefresh : this.refresherStatus = Enum.Refresher.Default; - // #ifndef APP-VUE || MP-WEIXIN || MP-QQ || H5 - // this.scrollEnable = false; - this.refresherTransform = `translateY(${moveDis}px)`; - this.lastRefresherTouchmove = touch; - // #endif - this.moveDis = moveDis; - }, - // #ifndef APP-VUE || MP-WEIXIN || MP-QQ || H5 - //拖拽结束 - _refresherTouchend(e) { - if (this._touchDisabled() || !this.isTouchmoving) return; - const touch = u.getTouch(e); - let refresherTouchendY = touch.touchY; - let moveDis = refresherTouchendY - this.refresherTouchstartY; - moveDis = this._getFinalRefresherMoveDis(moveDis); - this._handleRefresherTouchend(moveDis); - this._handleScrollViewDisableBounce({bounce: true}); - this.disabledBounce = false; - }, - // #endif - //进一步处理拖拽结束结果 - _handleRefresherTouchend(moveDis) { - // #ifndef APP-PLUS || H5 || MP-WEIXIN - if (!this.isTouchmoving) return; - // #endif - this.isTouchmovingTimeout && clearTimeout(this.isTouchmovingTimeout); - this.refresherReachMaxAngle = true; - this.isTouchEnded = true; - const refresherThreshold = this.finalRefresherThreshold; - if (moveDis >= refresherThreshold && this.refresherStatus === Enum.Refresher.ReleaseToRefresh) { - // #ifndef APP-VUE || MP-WEIXIN || MP-QQ || H5 - this.refresherTransform = `translateY(${refresherThreshold}px)`; - this.refresherTransition = 'transform .1s linear'; - // #endif - u.delay(() => { - this._emitTouchmove({ pullingDistance: refresherThreshold, dy: this.moveDis - refresherThreshold }); - }, 0.1); - this.moveDis = refresherThreshold; - this.refresherStatus = Enum.Refresher.Loading; - this._doRefresherLoad(); - } else { - this._refresherEnd(); - this.isTouchmovingTimeout = u.delay(() => { - this.isTouchmoving = false; - }, this.refresherDefaultDuration); - } - this.scrollEnable = true; - this.$emit('refresherTouchend', moveDis); - }, - //处理列表触摸开始事件 - _handleListTouchstart() { - if (this.useChatRecordMode && this.autoHideKeyboardWhenChat) { - uni.hideKeyboard(); - this.$emit('hidedKeyboard'); - } - }, - //处理scroll-view bounce是否生效 - _handleScrollViewDisableBounce({ bounce }) { - if (!this.usePageScroll && !this.scrollToTopBounceEnabled && this.wxsScrollTop <= 5) { - // #ifdef APP-VUE || MP-WEIXIN || MP-QQ || H5 - this.refresherTransition = ''; - // #endif - this.scrollEnable = bounce; - } - }, - //wxs正在下拉状态改变处理 - _handleWxsPullingDownStatusChange(onPullingDown) { - this.wxsOnPullingDown = onPullingDown; - if (onPullingDown && !this.useChatRecordMode) { - this.renderPropScrollTop = 0; - } - }, - //wxs正在下拉处理 - _handleWxsPullingDown({ moveDis, diffDis }){ - this._emitTouchmove({ pullingDistance: moveDis,dy: diffDis }); - }, - //wxs触摸方向改变 - _handleTouchDirectionChange({ direction }) { - this.$emit('touchDirectionChange',direction); - }, - //wxs通知更新其props - _handlePropUpdate(){ - this.wxsPropType = u.getTime().toString(); - }, - //下拉刷新结束 - _refresherEnd(shouldEndLoadingDelay = true, fromAddData = false, isUserPullDown = false, setLoading = true) { - if (this.loadingType === Enum.LoadingType.Refresher) { - const refresherCompleteDelay = (fromAddData && (isUserPullDown || this.showRefresherWhenReload)) ? this.refresherCompleteDelay : 0; - const refresherStatus = refresherCompleteDelay > 0 ? Enum.Refresher.Complete : Enum.Refresher.Default; - if (this.finalShowRefresherWhenReload) { - const stackCount = this.refresherRevealStackCount; - this.refresherRevealStackCount --; - if (stackCount > 1) return; - } - this._cleanRefresherEndTimeout(); - this.refresherEndTimeout = u.delay(() => { - this.refresherStatus = refresherStatus; - }, this.refresherStatus !== Enum.Refresher.Default && refresherStatus === Enum.Refresher.Default ? this.refresherCompleteDuration : 0); - - // #ifndef APP-NVUE - if (refresherCompleteDelay > 0) { - this.isRefresherInComplete = true; - } - // #endif - this._cleanRefresherCompleteTimeout(); - this.refresherCompleteTimeout = u.delay(() => { - let animateDuration = 1; - const animateType = this.refresherEndBounceEnabled && fromAddData ? 'cubic-bezier(0.19,1.64,0.42,0.72)' : 'linear'; - if (fromAddData) { - animateDuration = this.refresherEndBounceEnabled ? this.refresherCompleteDuration / 1000 : this.refresherCompleteDuration / 3000; - } - this.refresherTransition = `transform ${fromAddData ? animateDuration : this.refresherDefaultDuration / 1000}s ${animateType}`; - // #ifndef APP-VUE || MP-WEIXIN || MP-QQ || H5 - this.refresherTransform = 'translateY(0px)'; - this.currentDis = 0; - // #endif - // #ifdef APP-VUE || MP-WEIXIN || MP-QQ || H5 - this.wxsPropType = this.refresherTransition + 'end' + u.getTime(); - // #endif - // #ifdef APP-NVUE - this._nRefresherEnd(); - // #endif - this.moveDis = 0; - // #ifndef APP-NVUE - if (refresherStatus === Enum.Refresher.Complete) { - if (this.refresherCompleteSubTimeout) { - clearTimeout(this.refresherCompleteSubTimeout); - this.refresherCompleteSubTimeout = null; - } - this.refresherCompleteSubTimeout = u.delay(() => { - this.$nextTick(() => { - this.refresherStatus = Enum.Refresher.Default; - this.isRefresherInComplete = false; - }) - }, animateDuration * 800); - } - // #endif - this._emitTouchmove({ pullingDistance: 0, dy: this.moveDis }); - }, refresherCompleteDelay); - } - if (setLoading) { - u.delay(() => this.loading = false, shouldEndLoadingDelay ? c.delayTime : 0); - isUserPullDown && this._onRestore(); - } - }, - //模拟用户手动触发下拉刷新 - _doRefresherRefreshAnimate() { - this._cleanRefresherCompleteTimeout(); - // #ifndef APP-NVUE - const doRefreshAnimateAfter = !this.doRefreshAnimateAfter && (this.finalShowRefresherWhenReload) && this - .customRefresherHeight === -1 && this.refresherThreshold === '80rpx'; - if (doRefreshAnimateAfter) { - this.doRefreshAnimateAfter = true; - return; - } - // #endif - this.refresherRevealStackCount ++; - // #ifndef APP-VUE || MP-WEIXIN || MP-QQ || H5 - this.refresherTransform = `translateY(${this.finalRefresherThreshold}px)`; - // #endif - // #ifdef APP-VUE || MP-WEIXIN || MP-QQ || H5 - this.wxsPropType = 'begin' + u.getTime(); - // #endif - this.moveDis = this.finalRefresherThreshold; - this.refresherStatus = Enum.Refresher.Loading; - this.isTouchmoving = true; - this.isTouchmovingTimeout && clearTimeout(this.isTouchmovingTimeout); - this._doRefresherLoad(false); - }, - //触发下拉刷新 - _doRefresherLoad(isUserPullDown = true) { - this._onRefresh(false,isUserPullDown); - this.loading = true; - }, - // #ifndef APP-VUE || MP-WEIXIN || MP-QQ || H5 - //获取处理后的moveDis - _getFinalRefresherMoveDis(moveDis) { - let diffDis = moveDis - this.oldCurrentMoveDis; - this.oldCurrentMoveDis = moveDis; - if (diffDis > 0) { - diffDis = diffDis * this.finalRefresherPullRate; - if (this.currentDis > this.finalRefresherThreshold) { - diffDis = diffDis * (1 - this.finalRefresherOutRate); - } - } - diffDis = diffDis > 100 ? diffDis / 100 : diffDis; - this.currentDis += diffDis; - this.currentDis = Math.max(0, this.currentDis); - return this.currentDis; - }, - //判断touch手势是否要触发 - _touchDisabled() { - const checkOldScrollTop = this.oldScrollTop > 5; - return this.loading || this.isRefresherInComplete || this.useChatRecordMode || !this.refresherEnabled || !this.useCustomRefresher ||(this.usePageScroll && this.useCustomRefresher && this.pageScrollTop > 10) || (!(this.usePageScroll && this.useCustomRefresher) && checkOldScrollTop); - }, - // #endif - //更新自定义下拉刷新view高度 - _updateCustomRefresherHeight() { - this._getNodeClientRect('.zp-custom-refresher-slot-view').then((res) => { - this.customRefresherHeight = res ? res[0].height : 0; - this.showCustomRefresher = this.customRefresherHeight > 0; - if (this.doRefreshAnimateAfter) { - this.doRefreshAnimateAfter = false; - this._doRefresherRefreshAnimate(); - } - }); - }, - //发射pullingDown事件 - _emitTouchmove(e) { - // #ifndef APP-NVUE - e.viewHeight = this.finalRefresherThreshold; - // #endif - e.rate = e.viewHeight > 0 ? e.pullingDistance / e.viewHeight : 0; - this.hasTouchmove && this.oldPullingDistance !== e.pullingDistance && this.$emit('refresherTouchmove', e); - this.oldPullingDistance = e.pullingDistance; - }, - //清除refresherCompleteTimeout - _cleanRefresherCompleteTimeout() { - this.refresherCompleteTimeout = this._cleanTimeout(this.refresherCompleteTimeout); - // #ifdef APP-NVUE - this._nRefresherEnd(false); - // #endif - }, - //清除refresherEndTimeout - _cleanRefresherEndTimeout() { - this.refresherEndTimeout = this._cleanTimeout(this.refresherEndTimeout); - }, - } -} diff --git a/src/uni_modules/z-paging/components/z-paging/js/modules/scroller.js b/src/uni_modules/z-paging/components/z-paging/js/modules/scroller.js deleted file mode 100644 index 39a2fbc3..00000000 --- a/src/uni_modules/z-paging/components/z-paging/js/modules/scroller.js +++ /dev/null @@ -1,464 +0,0 @@ -// [z-paging]scroll相关模块 -import u from '.././z-paging-utils' -import Enum from '.././z-paging-enum' - -// #ifdef APP-NVUE -const weexDom = weex.requireModule('dom'); -// #endif - -export default { - props: { - //使用页面滚动,默认为否,当设置为是时则使用页面的滚动而非此组件内部的scroll-view的滚动,使用页面滚动时z-paging无需设置确定的高度且对于长列表展示性能更高,但配置会略微繁琐 - usePageScroll: { - type: Boolean, - default: u.gc('usePageScroll', false) - }, - //是否可以滚动,使用内置scroll-view和nvue时有效,默认为是 - scrollable: { - type: Boolean, - default: u.gc('scrollable', true) - }, - //控制是否出现滚动条,默认为是 - showScrollbar: { - type: Boolean, - default: u.gc('showScrollbar', true) - }, - //是否允许横向滚动,默认为否 - scrollX: { - type: Boolean, - default: u.gc('scrollX', false) - }, - //iOS设备上滚动到顶部时是否允许回弹效果,默认为否。关闭回弹效果后可使滚动到顶部与下拉刷新更连贯,但是有吸顶view时滚动到顶部时可能出现抖动。 - scrollToTopBounceEnabled: { - type: Boolean, - default: u.gc('scrollToTopBounceEnabled', false) - }, - //iOS设备上滚动到底部时是否允许回弹效果,默认为是。 - scrollToBottomBounceEnabled: { - type: Boolean, - default: u.gc('scrollToBottomBounceEnabled', true) - }, - //在设置滚动条位置时使用动画过渡,默认为否 - scrollWithAnimation: { - type: Boolean, - default: u.gc('scrollWithAnimation', false) - }, - //值应为某子元素id(id不能以数字开头)。设置哪个方向可滚动,则在哪个方向滚动到该元素 - scrollIntoView: { - type: String, - default: u.gc('scrollIntoView', '') - }, - }, - data() { - return { - scrollTop: 0, - oldScrollTop: 0, - scrollViewStyle: {}, - scrollViewContainerStyle: {}, - scrollViewInStyle: {}, - pageScrollTop: -1, - scrollEnable: true, - privateScrollWithAnimation: -1, - cacheScrollNodeHeight: -1 - } - }, - watch: { - oldScrollTop(newVal) { - !this.usePageScroll && this._scrollTopChange(newVal,false); - }, - pageScrollTop(newVal) { - this.usePageScroll && this._scrollTopChange(newVal,true); - }, - usePageScroll: { - handler(newVal) { - this.loaded && this.autoHeight && this._setAutoHeight(!newVal); - // #ifdef H5 - if (newVal) { - this.$nextTick(() => { - const mainScrollRef = this.$refs['zp-scroll-view'].$refs.main; - if (mainScrollRef) { - mainScrollRef.style = {}; - } - }) - } - // #endif - }, - immediate: true - }, - finalScrollTop(newVal) { - if (!this.useChatRecordMode) { - this.renderPropScrollTop = newVal < 6 ? 0 : 10; - } - }, - }, - computed: { - finalScrollWithAnimation() { - if (this.privateScrollWithAnimation !== -1) { - const scrollWithAnimation = this.privateScrollWithAnimation === 1; - this.privateScrollWithAnimation = -1; - return scrollWithAnimation; - } - return this.scrollWithAnimation; - }, - finalScrollViewStyle() { - if (this.superContentZIndex != 1) { - this.scrollViewStyle['z-index'] = this.superContentZIndex; - this.scrollViewStyle['position'] = 'relative'; - } - return this.scrollViewStyle; - }, - finalScrollTop() { - return this.usePageScroll ? this.pageScrollTop : this.oldScrollTop; - }, - finalIsOldWebView() { - return this.isOldWebView && !this.usePageScroll; - } - }, - methods: { - //滚动到顶部,animate为是否展示滚动动画,默认为是 - scrollToTop(animate, checkReverse = true) { - // #ifdef APP-NVUE - if (checkReverse && this.useChatRecordMode) { - if (!this.nIsFirstPageAndNoMore) { - this.scrollToBottom(animate, false); - return; - } - } - // #endif - this.$nextTick(() => { - this._scrollToTop(animate, false); - // #ifdef APP-NVUE - if (this.nvueFastScroll && animate) { - u.delay(() => { - this._scrollToTop(false, false); - }); - } - // #endif - }) - }, - //滚动到底部,animate为是否展示滚动动画,默认为是 - scrollToBottom(animate, checkReverse = true) { - // #ifdef APP-NVUE - if (checkReverse && this.useChatRecordMode) { - if (!this.nIsFirstPageAndNoMore) { - this.scrollToTop(animate, false); - return; - } - } - // #endif - this.$nextTick(() => { - this._scrollToBottom(animate); - // #ifdef APP-NVUE - if (this.nvueFastScroll && animate) { - u.delay(() => { - this._scrollToBottom(false); - }); - } - // #endif - }) - }, - //滚动到指定view(vue中有效)。sel为需要滚动的view的id值,不包含"#";offset为偏移量,单位为px;animate为是否展示滚动动画,默认为否 - scrollIntoViewById(sel, offset, animate) { - this._scrollIntoView(sel, offset, animate); - }, - //滚动到指定view(vue中有效)。nodeTop为需要滚动的view的top值(通过uni.createSelectorQuery()获取);offset为偏移量,单位为px;animate为是否展示滚动动画,默认为否 - scrollIntoViewByNodeTop(nodeTop, offset, animate) { - this.scrollTop = this.oldScrollTop; - this.$nextTick(() => { - this._scrollIntoViewByNodeTop(nodeTop, offset, animate); - }) - }, - //滚动到指定位置(vue中有效)。y为与顶部的距离,单位为px;offset为偏移量,单位为px;animate为是否展示滚动动画,默认为否 - scrollToY(y, offset, animate) { - this.scrollTop = this.oldScrollTop; - this.$nextTick(() => { - this._scrollToY(y, offset, animate); - }) - }, - //滚动到指定view(nvue中有效)。index为需要滚动的view的index(第几个);offset为偏移量,单位为px;animate为是否展示滚动动画,默认为否 - scrollIntoViewByIndex(index, offset, animate) { - this._scrollIntoView(index, offset, animate); - }, - //滚动到指定view(nvue中有效)。view为需要滚动的view(通过`this.$refs.xxx`获取),不包含"#";offset为偏移量,单位为px;animate为是否展示滚动动画,默认为否 - scrollIntoViewByView(view, offset, animate) { - this._scrollIntoView(view, offset, animate); - }, - //当使用页面滚动并且自定义下拉刷新时,请在页面的onPageScroll中调用此方法,告知z-paging当前的pageScrollTop,否则会导致在任意位置都可以下拉刷新 - updatePageScrollTop(value) { - this.pageScrollTop = value; - }, - //当使用页面滚动并且设置了slot="top"时,默认初次加载会自动获取其高度,并使内部容器下移,当slot="top"的view高度动态改变时,在其高度需要更新时调用此方法 - updatePageScrollTopHeight() { - this._updatePageScrollTopOrBottomHeight('top'); - }, - //当使用页面滚动并且设置了slot="bottom"时,默认初次加载会自动获取其高度,并使内部容器下移,当slot="bottom"的view高度动态改变时,在其高度需要更新时调用此方法 - updatePageScrollBottomHeight() { - this._updatePageScrollTopOrBottomHeight('bottom'); - }, - //更新slot="left"和slot="right"宽度,当slot="left"或slot="right"宽度动态改变时调用 - updateLeftAndRightWidth() { - if (!this.finalIsOldWebView) return; - this.$nextTick(() => this._updateLeftAndRightWidth(this.scrollViewContainerStyle, 'zp-page')); - }, - //更新z-paging内置scroll-view的scrollTop - updateScrollViewScrollTop(scrollTop, animate = true) { - this.privateScrollWithAnimation = animate ? 1 : 0; - this.scrollTop = this.oldScrollTop; - this.$nextTick(() => { - this.scrollTop = scrollTop; - this.oldScrollTop = this.scrollTop; - }); - }, - - //当滚动到顶部时 - _onScrollToUpper() { - this.$emit('scrolltoupper'); - this.$emit('scrollTopChange', 0); - this.$nextTick(() => { - this.oldScrollTop = 0; - }) - this.useChatRecordMode && this.loadingStatus !== Enum.More.NoMore && this._onLoadingMore('click'); - }, - //当滚动到底部时 - _onScrollToLower(e) { - (!e.detail || !e.detail.direction || e.detail.direction === 'bottom') && this._onLoadingMore('toBottom') - }, - //滚动到顶部 - _scrollToTop(animate = true, isPrivate = true) { - // #ifdef APP-NVUE - const el = this.$refs['zp-n-list-top-tag']; - if (this.usePageScroll) { - this._getNodeClientRect('zp-page-scroll-top', false).then(node => { - const nodeHeight = node ? node[0].height : 0; - weexDom.scrollToElement(el, { - offset: -nodeHeight, - animated: animate - }); - }); - } else { - if (!this.isIos && this.nvueListIs === 'scroller') { - this._getNodeClientRect('zp-n-refresh-container', false).then(node => { - const nodeHeight = node ? node[0].height : 0; - weexDom.scrollToElement(el, { - offset: -nodeHeight, - animated: animate - }); - }); - } else { - weexDom.scrollToElement(el, { - offset: 0, - animated: animate - }); - } - } - return; - // #endif - if (this.usePageScroll) { - this.$nextTick(() => { - uni.pageScrollTo({ - scrollTop: 0, - duration: animate ? 100 : 0, - }); - }); - return; - } - this.privateScrollWithAnimation = animate ? 1 : 0; - this.scrollTop = this.oldScrollTop; - this.$nextTick(() => { - this.scrollTop = 0; - this.oldScrollTop = this.scrollTop; - }); - }, - //滚动到底部 - async _scrollToBottom(animate = true) { - // #ifdef APP-NVUE - const el = this.$refs['zp-n-list-bottom-tag']; - if (el) { - weexDom.scrollToElement(el, { - offset: 0, - animated: animate - }); - } else { - u.consoleErr('滚动到底部失败,因为您设置了hideNvueBottomTag为true'); - } - return; - // #endif - if (this.usePageScroll) { - this.$nextTick(() => { - uni.pageScrollTo({ - scrollTop: Number.MAX_VALUE, - duration: animate ? 100 : 0, - }); - }); - return; - } - try { - this.privateScrollWithAnimation = animate ? 1 : 0; - const pagingContainerNode = await this._getNodeClientRect('.zp-paging-container'); - const scrollViewNode = await this._getNodeClientRect('.zp-scroll-view'); - const pagingContainerH = pagingContainerNode ? pagingContainerNode[0].height : 0; - const scrollViewH = scrollViewNode ? scrollViewNode[0].height : 0; - if (pagingContainerH > scrollViewH) { - this.scrollTop = this.oldScrollTop; - this.$nextTick(() => { - this.scrollTop = pagingContainerH - scrollViewH + this.virtualPlaceholderTopHeight; - this.oldScrollTop = this.scrollTop; - }); - } - } catch (e) {} - }, - //滚动到指定view - _scrollIntoView(sel, offset = 0, animate = false, finishCallback) { - try { - this.scrollTop = this.oldScrollTop; - this.$nextTick(() => { - // #ifdef APP-NVUE - const refs = this.$parent.$refs; - if (!refs) return; - const dataType = Object.prototype.toString.call(sel); - let el = null; - if (dataType === '[object Number]') { - const els = refs[`z-paging-${sel}`]; - el = els ? els[0] : null; - } else if (dataType === '[object Array]') { - el = sel[0]; - } else { - el = sel; - } - if (el) { - weexDom.scrollToElement(el, { - offset: -offset, - animated: animate - }); - } else { - u.consoleErr('在nvue中滚动到指定位置,cell必须设置 :ref="`z-paging-${index}`"'); - } - return; - // #endif - this._getNodeClientRect('#' + sel.replace('#', ''), this.$parent).then((node) => { - if (node) { - let nodeTop = node[0].top; - this._scrollIntoViewByNodeTop(nodeTop, offset, animate); - finishCallback && finishCallback(); - } - }); - }); - } catch (e) {} - }, - //通过nodeTop滚动到指定view - _scrollIntoViewByNodeTop(nodeTop, offset = 0, animate = false) { - this._scrollToY(nodeTop, offset, animate, true); - }, - //滚动到指定位置 - _scrollToY(y, offset = 0, animate = false, addScrollTop = false) { - this.privateScrollWithAnimation = animate ? 1 : 0; - if (this.usePageScroll) { - uni.pageScrollTo({ - scrollTop: y - offset, - duration: animate ? 100 : 0 - }); - } else { - if(addScrollTop){ - y += this.oldScrollTop; - } - this.scrollTop = y - offset; - this.oldScrollTop = this.scrollTop; - } - }, - //scroll-view滚动中 - _scroll(e) { - this.$emit('scroll', e); - const scrollTop = e.detail.scrollTop; - // #ifndef APP-NVUE - this.finalUseVirtualList && this._updateVirtualScroll(scrollTop, this.oldScrollTop - scrollTop); - // #endif - this.oldScrollTop = scrollTop; - const scrollDiff = e.detail.scrollHeight - this.oldScrollTop; - !this.isIos && this._checkScrolledToBottom(scrollDiff); - }, - //检测scrollView是否要铺满屏幕 - _doCheckScrollViewShouldFullHeight(totalData) { - if (this.autoFullHeight && this.usePageScroll && this.isTotalChangeFromAddData) { - // #ifndef APP-NVUE - this.$nextTick(() => { - this._checkScrollViewShouldFullHeight((scrollViewNode, pagingContainerNode) => { - this._preCheckShowNoMoreInside(totalData, scrollViewNode, pagingContainerNode) - }); - }) - // #endif - // #ifdef APP-NVUE - this._preCheckShowNoMoreInside(totalData) - // #endif - } else { - this._preCheckShowNoMoreInside(totalData) - } - }, - //检测z-paging是否要全屏覆盖(当使用页面滚动并且不满全屏时,默认z-paging需要铺满全屏,避免数据过少时内部的empty-view无法正确展示) - async _checkScrollViewShouldFullHeight(callback) { - try { - const scrollViewNode = await this._getNodeClientRect('.zp-scroll-view'); - const pagingContainerNode = await this._getNodeClientRect('.zp-paging-container-content'); - if (!scrollViewNode || !pagingContainerNode) return; - const scrollViewHeight = pagingContainerNode[0].height; - const scrollViewTop = scrollViewNode[0].top; - if (this.isAddedData && scrollViewHeight + scrollViewTop <= this.windowHeight) { - this._setAutoHeight(true, scrollViewNode); - callback(scrollViewNode, pagingContainerNode); - } else { - this._setAutoHeight(false); - callback(null, null); - } - } catch (e) { - callback(null, null); - } - }, - //scrollTop改变时触发 - _scrollTopChange(newVal, isPageScrollTop){ - this.$emit('scrollTopChange', newVal); - this.$emit('update:scrollTop', newVal); - this._checkShouldShowBackToTop(newVal); - const scrollTop = this.isIos ? (newVal > 5 ? 6 : 0) : (newVal > 105 ? 106 : (newVal > 5 ? 6 : 0)); - if (isPageScrollTop && this.wxsPageScrollTop !== scrollTop) { - this.wxsPageScrollTop = scrollTop; - } else if (!isPageScrollTop && this.wxsScrollTop !== scrollTop) { - this.wxsScrollTop = scrollTop; - if (scrollTop > 6) { - this.scrollEnable = true; - } - } - }, - //更新使用页面滚动时slot="top"或"bottom"插入view的高度 - _updatePageScrollTopOrBottomHeight(type) { - // #ifndef APP-NVUE - if (!this.usePageScroll) return; - // #endif - this._doCheckScrollViewShouldFullHeight(this.realTotalData); - const node = `.zp-page-${type}`; - const marginText = `margin${type.slice(0,1).toUpperCase() + type.slice(1)}`; - let safeAreaInsetBottomAdd = this.safeAreaInsetBottom; - this.$nextTick(() => { - let delayTime = 0; - // #ifdef MP-BAIDU || APP-NVUE - delayTime = 50; - // #endif - u.delay(() => { - this._getNodeClientRect(node).then((res) => { - if (res) { - let pageScrollNodeHeight = res[0].height; - if (type === 'bottom') { - if (safeAreaInsetBottomAdd) { - pageScrollNodeHeight += this.safeAreaBottom; - } - } else { - this.cacheTopHeight = pageScrollNodeHeight; - } - this.$set(this.scrollViewStyle, marginText, `${pageScrollNodeHeight}px`); - } else if (safeAreaInsetBottomAdd) { - this.$set(this.scrollViewStyle, marginText, `${this.safeAreaBottom}px`); - } - }); - }, delayTime) - }) - }, - } -} diff --git a/src/uni_modules/z-paging/components/z-paging/js/modules/virtual-list.js b/src/uni_modules/z-paging/components/z-paging/js/modules/virtual-list.js deleted file mode 100644 index dd551270..00000000 --- a/src/uni_modules/z-paging/components/z-paging/js/modules/virtual-list.js +++ /dev/null @@ -1,461 +0,0 @@ -// [z-paging]虚拟列表模块 -import u from '.././z-paging-utils' -import c from '.././z-paging-constant' -import Enum from '.././z-paging-enum' - -export default { - props: { - //是否使用虚拟列表,默认为否 - useVirtualList: { - type: Boolean, - default: u.gc('useVirtualList', false) - }, - //在使用虚拟列表时,是否使用兼容模式,默认为否 - useCompatibilityMode: { - type: Boolean, - default: u.gc('useCompatibilityMode', false) - }, - //使用兼容模式时传递的附加数据 - extraData: { - type: Object, - default: function() { - return u.gc('extraData', {}); - } - }, - //是否在z-paging内部循环渲染列表(内置列表),默认为否。若use-virtual-list为true,则此项恒为true - useInnerList: { - type: Boolean, - default: u.gc('useInnerList', false) - }, - //强制关闭inner-list,默认为false,如果为true将强制关闭innerList,适用于开启了虚拟列表后需要强制关闭inner-list的情况 - forceCloseInnerList: { - type: Boolean, - default: u.gc('forceCloseInnerList', false) - }, - //内置列表cell的key名称,仅nvue有效,在nvue中开启use-inner-list时必须填此项 - cellKeyName: { - type: String, - default: u.gc('cellKeyName', '') - }, - //innerList样式 - innerListStyle: { - type: Object, - default: function() { - return u.gc('innerListStyle', {}); - } - }, - //innerCell样式 - innerCellStyle: { - type: Object, - default: function() { - return u.gc('innerCellStyle', {}); - } - }, - //预加载的列表可视范围(列表高度)页数,默认为12,即预加载当前页及上下各12页的cell。此数值越大,则虚拟列表中加载的dom越多,内存消耗越大(会维持在一个稳定值),但增加预加载页面数量可缓解快速滚动短暂白屏问题 - preloadPage: { - type: [Number, String], - default: u.gc('preloadPage', 12), - validator: (value) => { - if (value <= 0) u.consoleErr('preload-page必须大于0!'); - return value > 0; - } - }, - //虚拟列表cell高度模式,默认为fixed,也就是每个cell高度完全相同,将以第一个cell高度为准进行计算。可选值【dynamic】,即代表高度是动态非固定的,【dynamic】性能低于【fixed】。 - cellHeightMode: { - type: String, - default: u.gc('cellHeightMode', Enum.CellHeightMode.Fixed) - }, - //虚拟列表列数,默认为1。常用于每行有多列的情况,例如每行有2列数据,需要将此值设置为2 - virtualListCol: { - type: [Number, String], - default: u.gc('virtualListCol', 1) - }, - //虚拟列表scroll取样帧率,默认为80,过低容易出现白屏问题,过高容易出现卡顿问题 - virtualScrollFps: { - type: [Number, String], - default: u.gc('virtualScrollFps', 80) - }, - }, - data() { - return { - virtualListKey: u.getInstanceId(), - virtualPageHeight: 0, - virtualCellHeight: 0, - virtualScrollTimeStamp: 0, - - virtualList: [], - virtualPlaceholderTopHeight: 0, - virtualPlaceholderBottomHeight: 0, - virtualTopRangeIndex: 0, - virtualBottomRangeIndex: 0, - lastVirtualTopRangeIndex: 0, - lastVirtualBottomRangeIndex: 0, - virtualItemInsertedCount: 0, - - virtualHeightCacheList: [], - - getCellHeightRetryCount: { - fixed: 0, - dynamic: 0 - }, - pagingOrgTop: -1, - updateVirtualListFromDataChange: false - } - }, - watch: { - realTotalData(newVal) { - // #ifndef APP-NVUE - if (this.finalUseVirtualList) { - this.updateVirtualListFromDataChange = true; - this.$nextTick(() => { - this.getCellHeightRetryCount.fixed = 0; - !newVal.length && this._resetDynamicListState(!this.isUserPullDown); - newVal.length && this.cellHeightMode === Enum.CellHeightMode.Fixed && this.isFirstPage && this._updateFixedCellHeight(); - this._updateVirtualScroll(this.oldScrollTop); - }) - } - // #endif - }, - virtualList(newVal){ - this.$emit('update:virtualList', newVal); - this.$emit('virtualListChange', newVal); - } - }, - computed: { - virtualCellIndexKey() { - return c.listCellIndexKey; - }, - finalUseVirtualList() { - if (this.useVirtualList && this.usePageScroll){ - u.consoleErr('使用页面滚动时,开启虚拟列表无效!'); - } - return this.useVirtualList && !this.usePageScroll; - }, - finalUseInnerList() { - return this.useInnerList || (this.finalUseVirtualList && !this.forceCloseInnerList); - }, - finalCellKeyName() { - // #ifdef APP-NVUE - if (this.finalUseVirtualList && !this.cellKeyName.length){ - u.consoleErr('在nvue中开启use-virtual-list必须设置cell-key-name,否则将可能导致列表渲染错误!'); - } - // #endif - return this.cellKeyName; - }, - finalVirtualPageHeight(){ - return this.virtualPageHeight > 0 ? this.virtualPageHeight : this.windowHeight; - }, - virtualRangePageHeight(){ - return this.finalVirtualPageHeight * this.preloadPage; - }, - virtualScrollDisTimeStamp() { - return 1000 / this.virtualScrollFps; - }, - }, - methods: { - //在使用动态高度虚拟列表时,若在列表数组中需要插入某个item,需要调用此方法;item:需要插入的item,index:插入的cell位置,若index为2,则插入的item在原list的index=1之后,index从0开始 - doInsertVirtualListItem(item, index) { - if (this.cellHeightMode !== Enum.CellHeightMode.Dynamic) return; - this.virtualItemInsertedCount ++; - if (!item || Object.prototype.toString.call(item) !== '[object Object]') { - item = { item }; - } - const cellIndexKey = this.virtualCellIndexKey; - item[cellIndexKey] = `custom-${this.virtualItemInsertedCount}`; - item[c.listCellIndexUniqueKey] = `${this.virtualListKey}-${item[cellIndexKey]}`; - this.totalData.splice(index, 0, item); - this.$nextTick(async () => { - let retryCount = 0; - while (retryCount <= 10) { - await u.wait(c.delayTime); - - const cellNode = await this._getNodeClientRect(`#zp-id-${item[cellIndexKey]}`, this.finalUseInnerList); - if (!cellNode) { - retryCount ++; - continue; - } - - const currentHeight = cellNode ? cellNode[0].height : 0; - const lastHeightCache = this.virtualHeightCacheList[index - 1]; - const lastTotalHeight = lastHeightCache ? lastHeightCache.totalHeight : 0; - this.virtualHeightCacheList.splice(index, 0, { - height: currentHeight, - lastTotalHeight, - totalHeight: lastTotalHeight + currentHeight - }); - - for (let i = index + 1; i < this.virtualHeightCacheList.length; i++) { - const thisNode = this.virtualHeightCacheList[i]; - thisNode.lastTotalHeight += currentHeight; - thisNode.totalHeight += currentHeight; - } - - this._updateVirtualScroll(this.oldScrollTop); - break; - } - }) - }, - //在使用动态高度虚拟列表时,手动更新指定cell的缓存高度(当cell高度在初始化之后再次改变时调用);index:需要更新的cell在列表中的位置,从0开始 - didUpdateVirtualListCell(index) { - if (this.cellHeightMode !== Enum.CellHeightMode.Dynamic) return; - const currentNode = this.virtualHeightCacheList[index]; - this.$nextTick(() => { - this._getNodeClientRect(`#zp-id-${index}`, this.finalUseInnerList).then(cellNode => { - const cellNodeHeight = cellNode ? cellNode[0].height : 0; - const heightDis = cellNodeHeight - currentNode.height; - currentNode.height = cellNodeHeight; - currentNode.totalHeight = currentNode.lastTotalHeight + cellNodeHeight; - - for (let i = index + 1; i < this.virtualHeightCacheList.length; i++) { - const thisNode = this.virtualHeightCacheList[i]; - thisNode.totalHeight += heightDis; - thisNode.lastTotalHeight += heightDis; - } - }); - }) - }, - //在使用动态高度虚拟列表时,若删除了列表数组中的某个item,需要调用此方法以更新高度缓存数组;index:删除的cell在列表中的位置,从0开始 - didDeleteVirtualListCell(index) { - if (this.cellHeightMode !== Enum.CellHeightMode.Dynamic) return; - const currentNode = this.virtualHeightCacheList[index]; - for (let i = index + 1; i < this.virtualHeightCacheList.length; i++) { - const thisNode = this.virtualHeightCacheList[i]; - thisNode.totalHeight -= currentNode.height; - thisNode.lastTotalHeight -= currentNode.height; - } - this.virtualHeightCacheList.splice(index, 1); - }, - //初始化虚拟列表 - _virtualListInit() { - this.$nextTick(() => { - u.delay(() => { - this._getNodeClientRect('.zp-scroll-view').then(node => { - if (node) { - this.pagingOrgTop = node[0].top; - this.virtualPageHeight = node[0].height; - } - }); - }); - }) - }, - //cellHeightMode为fixed时获取第一个cell高度 - _updateFixedCellHeight() { - this.$nextTick(() => { - u.delay(() => { - this._getNodeClientRect(`#zp-id-${0}`,this.finalUseInnerList).then(cellNode => { - if (!cellNode) { - if (this.getCellHeightRetryCount.fixed > 10) return; - this.getCellHeightRetryCount.fixed ++; - this._updateFixedCellHeight(); - } else { - this.virtualCellHeight = cellNode[0].height; - this._updateVirtualScroll(this.oldScrollTop); - } - }); - }, c.delayTime, 'updateFixedCellHeightDelay'); - }) - }, - //cellHeightMode为dynamic时获取每个cell高度 - _updateDynamicCellHeight(list, dataFrom = 'bottom') { - const dataFromTop = dataFrom === 'top'; - const heightCacheList = this.virtualHeightCacheList; - const currentCacheList = dataFromTop ? [] : heightCacheList; - let listTotalHeight = 0; - this.$nextTick(() => { - u.delay(async () => { - for (let i = 0; i < list.length; i++) { - const cellNode = await this._getNodeClientRect(`#zp-id-${list[i][this.virtualCellIndexKey]}`, this.finalUseInnerList); - const currentHeight = cellNode ? cellNode[0].height : 0; - if (!cellNode) { - if (this.getCellHeightRetryCount.dynamic <= 10) { - heightCacheList.splice(heightCacheList.length - i, i); - this.getCellHeightRetryCount.dynamic ++; - this._updateDynamicCellHeight(list, dataFrom); - } - return; - } - const lastHeightCache = currentCacheList.length ? currentCacheList.slice(-1)[0] : null; - const lastTotalHeight = lastHeightCache ? lastHeightCache.totalHeight : 0; - currentCacheList.push({ - height: currentHeight, - lastTotalHeight, - totalHeight: lastTotalHeight + currentHeight - }); - if (dataFromTop) { - listTotalHeight += currentHeight; - } - } - if (dataFromTop && list.length) { - for (let i = 0; i < heightCacheList.length; i++) { - const heightCacheItem = heightCacheList[i]; - heightCacheItem.lastTotalHeight += listTotalHeight; - heightCacheItem.totalHeight += listTotalHeight; - } - this.virtualHeightCacheList = currentCacheList.concat(heightCacheList); - } - this._updateVirtualScroll(this.oldScrollTop); - }, c.delayTime, 'updateDynamicCellHeightDelay') - }) - }, - //设置cellItem的index - _setCellIndex(list, dataFrom = 'bottom') { - let currentItemIndex = 0; - const cellIndexKey = this.virtualCellIndexKey; - if (this.totalData.length) { - if (dataFrom === 'bottom') { - currentItemIndex = this.realTotalData.length; - const lastItem = this.realTotalData.length ? this.realTotalData.slice(-1)[0] : null; - if (lastItem && lastItem[cellIndexKey] !== undefined) { - currentItemIndex = lastItem[cellIndexKey] + 1; - } - } else if (dataFrom === 'top') { - const firstItem = this.realTotalData.length ? this.realTotalData[0] : null; - if (firstItem && firstItem[cellIndexKey] !== undefined) { - currentItemIndex = firstItem[cellIndexKey] - list.length; - } - } - } else { - this._resetDynamicListState(); - } - for (let i = 0; i < list.length; i++) { - let item = list[i]; - if (!item || Object.prototype.toString.call(item) !== '[object Object]') { - item = { item }; - } - item[cellIndexKey] = currentItemIndex + i; - item[c.listCellIndexUniqueKey] = `${this.virtualListKey}-${item[cellIndexKey]}`; - list[i] = item; - } - this.getCellHeightRetryCount.dynamic = 0; - this.cellHeightMode === Enum.CellHeightMode.Dynamic && this._updateDynamicCellHeight(list, dataFrom); - }, - //更新scroll滚动 - _updateVirtualScroll(scrollTop, scrollDiff = 0) { - const currentTimeStamp = u.getTime(); - scrollTop === 0 && this._resetTopRange(); - if (scrollTop !== 0 && this.virtualScrollTimeStamp && currentTimeStamp - this.virtualScrollTimeStamp <= this.virtualScrollDisTimeStamp) { - return; - } - this.virtualScrollTimeStamp = currentTimeStamp; - - let scrollIndex = 0; - const cellHeightMode = this.cellHeightMode; - if (cellHeightMode === Enum.CellHeightMode.Fixed) { - scrollIndex = parseInt(scrollTop / this.virtualCellHeight) || 0; - this._updateFixedTopRangeIndex(scrollIndex); - this._updateFixedBottomRangeIndex(scrollIndex); - } else if(cellHeightMode === Enum.CellHeightMode.Dynamic) { - const scrollDirection = scrollDiff > 0 ? 'top' : 'bottom'; - const rangePageHeight = this.virtualRangePageHeight; - const topRangePageOffset = scrollTop - rangePageHeight; - const bottomRangePageOffset = scrollTop + this.finalVirtualPageHeight + rangePageHeight; - - let virtualBottomRangeIndex = 0; - let virtualPlaceholderBottomHeight = 0; - let reachedLimitBottom = false; - const heightCacheList = this.virtualHeightCacheList; - const lastHeightCache = !!heightCacheList ? heightCacheList.slice(-1)[0] : null; - - let startTopRangeIndex = this.virtualTopRangeIndex; - if (scrollDirection === 'bottom') { - for (let i = startTopRangeIndex; i < heightCacheList.length; i++){ - const heightCacheItem = heightCacheList[i]; - if (heightCacheItem && heightCacheItem.totalHeight > topRangePageOffset) { - this.virtualTopRangeIndex = i; - this.virtualPlaceholderTopHeight = heightCacheItem.lastTotalHeight; - break; - } - } - } else { - let topRangeMatched = false; - for (let i = startTopRangeIndex; i >= 0; i--){ - const heightCacheItem = heightCacheList[i]; - if (heightCacheItem && heightCacheItem.totalHeight < topRangePageOffset) { - this.virtualTopRangeIndex = i; - this.virtualPlaceholderTopHeight = heightCacheItem.lastTotalHeight; - topRangeMatched = true; - break; - } - } - !topRangeMatched && this._resetTopRange(); - } - for (let i = this.virtualTopRangeIndex; i < heightCacheList.length; i++){ - const heightCacheItem = heightCacheList[i]; - if (heightCacheItem && heightCacheItem.totalHeight > bottomRangePageOffset) { - virtualBottomRangeIndex = i; - virtualPlaceholderBottomHeight = lastHeightCache.totalHeight - heightCacheItem.totalHeight; - reachedLimitBottom = true; - break; - } - } - if (!reachedLimitBottom || this.virtualBottomRangeIndex === 0) { - this.virtualBottomRangeIndex = this.realTotalData.length ? this.realTotalData.length - 1 : this.pageSize; - this.virtualPlaceholderBottomHeight = 0; - } else { - this.virtualBottomRangeIndex = virtualBottomRangeIndex; - this.virtualPlaceholderBottomHeight = virtualPlaceholderBottomHeight; - } - this._updateVirtualList(); - } - }, - //更新fixedCell模式下topRangeIndex&placeholderTopHeight - _updateFixedTopRangeIndex(scrollIndex) { - let virtualTopRangeIndex = this.virtualCellHeight === 0 ? 0 : scrollIndex - (parseInt(this.finalVirtualPageHeight / this.virtualCellHeight) || 1) * this.preloadPage; - virtualTopRangeIndex *= this.virtualListCol; - virtualTopRangeIndex = Math.max(0, virtualTopRangeIndex); - this.virtualTopRangeIndex = virtualTopRangeIndex; - this.virtualPlaceholderTopHeight = (virtualTopRangeIndex / this.virtualListCol) * this.virtualCellHeight; - }, - //更新fixedCell模式下bottomRangeIndex&placeholderBottomHeight - _updateFixedBottomRangeIndex(scrollIndex) { - let virtualBottomRangeIndex = this.virtualCellHeight === 0 ? this.pageSize : scrollIndex + (parseInt(this.finalVirtualPageHeight / this.virtualCellHeight) || 1) * (this.preloadPage + 1); - virtualBottomRangeIndex *= this.virtualListCol; - virtualBottomRangeIndex = Math.min(this.realTotalData.length, virtualBottomRangeIndex); - this.virtualBottomRangeIndex = virtualBottomRangeIndex; - this.virtualPlaceholderBottomHeight = (this.realTotalData.length - virtualBottomRangeIndex) * this.virtualCellHeight / this.virtualListCol; - this._updateVirtualList(); - }, - //更新virtualList - _updateVirtualList() { - const shouldUpdateList = this.updateVirtualListFromDataChange || (this.lastVirtualTopRangeIndex !== this.virtualTopRangeIndex || this.lastVirtualBottomRangeIndex !== this.virtualBottomRangeIndex); - if (shouldUpdateList) { - this.updateVirtualListFromDataChange = false; - this.lastVirtualTopRangeIndex = this.virtualTopRangeIndex; - this.lastVirtualBottomRangeIndex = this.virtualBottomRangeIndex; - this.virtualList = this.realTotalData.slice(this.virtualTopRangeIndex, this.virtualBottomRangeIndex + 1); - } - }, - //重置动态cell模式下的高度缓存数据、虚拟列表和滚动状态 - _resetDynamicListState(resetVirtualList = false) { - this.virtualHeightCacheList = []; - if (resetVirtualList) { - this.virtualList = []; - } - this.virtualTopRangeIndex = 0; - this.virtualPlaceholderTopHeight = 0; - }, - //重置topRangeIndex和placeholderTopHeight - _resetTopRange() { - this.virtualTopRangeIndex = 0; - this.virtualPlaceholderTopHeight = 0; - this._updateVirtualList(); - }, - //检测虚拟列表当前滚动位置,如发现滚动位置不正确则重新计算虚拟列表相关参数(为解决在App中可能出现的长时间进入后台后打开App白屏的问题) - _checkVirtualListScroll() { - if (this.finalUseVirtualList) { - this.$nextTick(() => { - this._getNodeClientRect('.zp-paging-touch-view').then(node => { - const currentTop = node ? node[0].top : 0; - if (!node || (currentTop === this.pagingOrgTop && this.virtualPlaceholderTopHeight !== 0)) { - this._updateVirtualScroll(0); - } - }); - }) - } - }, - //处理使用内置列表时点击了cell事件 - _innerCellClick(item, index) { - this.$emit('innerCellClick', item, index); - } - } -} diff --git a/src/uni_modules/z-paging/components/z-paging/js/z-paging-config.js b/src/uni_modules/z-paging/components/z-paging/js/z-paging-config.js deleted file mode 100644 index c7b714e3..00000000 --- a/src/uni_modules/z-paging/components/z-paging/js/z-paging-config.js +++ /dev/null @@ -1,21 +0,0 @@ -// [z-paging]处理main.js中的配置信息工具 - -let config = null; -let getedStorage = false; -const storageKey = 'Z-PAGING-CONFIG-STORAGE-KEY' - -function setConfig(value) { - uni.setStorageSync(storageKey, value); -} - -function getConfig() { - if (getedStorage) return config; - config = uni.getStorageSync(storageKey); - getedStorage = true; - return config; -} - -export default { - setConfig, - getConfig -}; diff --git a/src/uni_modules/z-paging/components/z-paging/js/z-paging-constant.js b/src/uni_modules/z-paging/components/z-paging/js/z-paging-constant.js deleted file mode 100644 index acb63f52..00000000 --- a/src/uni_modules/z-paging/components/z-paging/js/z-paging-constant.js +++ /dev/null @@ -1,12 +0,0 @@ -// [z-paging]常量 - -export default { - version: '2.6.0', - delayTime: 100, - errorUpdateKey: 'z-paging-error-emit', - completeUpdateKey: 'z-paging-complete-emit', - cachePrefixKey: 'z-paging-cache', - - listCellIndexKey: 'zp_index', - listCellIndexUniqueKey: 'zp_unique_index' -} diff --git a/src/uni_modules/z-paging/components/z-paging/js/z-paging-enum.js b/src/uni_modules/z-paging/components/z-paging/js/z-paging-enum.js deleted file mode 100644 index 17ad63a5..00000000 --- a/src/uni_modules/z-paging/components/z-paging/js/z-paging-enum.js +++ /dev/null @@ -1,44 +0,0 @@ -// [z-paging]枚举 - -export default { - //当前加载类型 0.下拉刷新 1.上拉加载更多 - LoadingType: { - Refresher: 0, - LoadingMore: 1 - }, - //下拉刷新状态 0.默认状态 1.松手立即刷新 2.刷新中 3.刷新结束 - Refresher: { - Default: 0, - ReleaseToRefresh: 1, - Loading: 2, - Complete: 3 - }, - //底部加载更多状态 0.默认状态 1.加载中 2.没有更多数据 3.加载失败 - More: { - Default: 0, - Loading: 1, - NoMore: 2, - Fail: 3 - }, - //@query触发来源 0.用户主动下拉刷新 1.通过reload触发 2.通过refresh触发 3.通过滚动到底部加载更多或点击底部加载更多触发 - QueryFrom: { - UserPullDown: 0, - Reload: 1, - Refresh: 2, - LoadingMore: 3 - }, - //虚拟列表cell高度模式 - CellHeightMode: { - //固定高度 - Fixed: 'fixed', - //动态高度 - Dynamic: 'dynamic' - }, - //列表缓存模式 - CacheMode: { - //默认模式,只会缓存一次 - Default: 'default', - //总是缓存,每次列表刷新(下拉刷新、调用reload等)都会更新缓存 - Always: 'always' - } -} \ No newline at end of file diff --git a/src/uni_modules/z-paging/components/z-paging/js/z-paging-interceptor.js b/src/uni_modules/z-paging/components/z-paging/js/z-paging-interceptor.js deleted file mode 100644 index d0e9b2bf..00000000 --- a/src/uni_modules/z-paging/components/z-paging/js/z-paging-interceptor.js +++ /dev/null @@ -1,48 +0,0 @@ -// [z-paging]拦截器 - -//拦截&处理@query事件 -function handleQuery(callback) { - try { - setTimeout(function() { - _getApp().globalData.zp_handleQueryCallback = callback; - }, 1); - } catch (e) {} -} - -//拦截&处理@query事件(私有,请勿调用) -function _handleQuery(pageNo, pageSize, from, lastItem){ - const callback = _getApp().globalData.zp_handleQueryCallback; - return callback ? callback(pageNo, pageSize, from, lastItem) : [pageNo, pageSize, from]; -} - -//拦截&处理系统language转i18n local -function handleLanguage2Local(callback) { - try { - setTimeout(function() { - _getApp().globalData.zp_handleLanguage2LocalCallback = callback; - }, 1); - } catch (e) {} -} - -//拦截&处理系统language转i18n local(私有,请勿调用) -function _handleLanguage2Local(language, local){ - const callback = _getApp().globalData.zp_handleLanguage2LocalCallback; - return callback ? callback(language, local) : local; -} - -//获取当前app对象 -function _getApp(){ - // #ifndef APP-NVUE - return getApp(); - // #endif - // #ifdef APP-NVUE - return getApp({ allowDefault: true }); - // #endif -} - -export default { - handleQuery, - _handleQuery, - handleLanguage2Local, - _handleLanguage2Local -}; diff --git a/src/uni_modules/z-paging/components/z-paging/js/z-paging-main.js b/src/uni_modules/z-paging/components/z-paging/js/z-paging-main.js deleted file mode 100644 index 65006954..00000000 --- a/src/uni_modules/z-paging/components/z-paging/js/z-paging-main.js +++ /dev/null @@ -1,446 +0,0 @@ -// [z-paging]核心js - -import zStatic from './z-paging-static' -import c from './z-paging-constant' -import u from './z-paging-utils' - -import zPagingRefresh from '../components/z-paging-refresh' -import zPagingLoadMore from '../components/z-paging-load-more' -import zPagingEmptyView from '../../z-paging-empty-view/z-paging-empty-view' - -// modules -import commonLayoutModule from './modules/common-layout' -import dataHandleModule from './modules/data-handle' -import i18nModule from './modules/i18n' -import nvueModule from './modules/nvue' -import emptyModule from './modules/empty' -import refresherModule from './modules/refresher' -import loadMoreModule from './modules/load-more' -import loadingModule from './modules/loading' -import scrollerModule from './modules/scroller' -import backToTopModule from './modules/back-to-top' -import virtualListModule from './modules/virtual-list' - -import Enum from './z-paging-enum' - -const systemInfo = uni.getSystemInfoSync(); - -export default { - name: "z-paging", - components: { - zPagingRefresh, - zPagingLoadMore, - zPagingEmptyView - }, - mixins: [ - commonLayoutModule, - dataHandleModule, - i18nModule, - nvueModule, - emptyModule, - refresherModule, - loadMoreModule, - loadingModule, - scrollerModule, - backToTopModule, - virtualListModule - ], - data() { - return { - //--------------静态资源--------------- - base64Arrow: zStatic.base64Arrow, - base64Flower: zStatic.base64Flower, - base64BackToTop: zStatic.base64BackToTop, - - //-------------全局数据相关-------------- - //当前加载类型 - loadingType: Enum.LoadingType.Refresher, - requestTimeStamp: 0, - chatRecordLoadingMoreText: '', - wxsPropType: '', - renderPropScrollTop: -1, - checkScrolledToBottomTimeOut: null, - cacheTopHeight: -1, - - //--------------状态&判断--------------- - insideOfPaging: -1, - isLoadFailed: false, - isIos: systemInfo.platform === 'ios', - disabledBounce: false, - fromCompleteEmit: false, - disabledCompleteEmit: false, - pageLaunched: false, - - //---------------wxs相关--------------- - wxsIsScrollTopInTopRange: true, - wxsScrollTop: 0, - wxsPageScrollTop: 0, - wxsOnPullingDown: false, - }; - }, - props: { - //调用complete后延迟处理的时间,单位为毫秒,默认0毫秒,优先级高于minDelay - delay: { - type: [Number, String], - default: u.gc('delay', 0), - }, - //触发@query后最小延迟处理的时间,单位为毫秒,默认0毫秒,优先级低于delay(假设设置为300毫秒,若分页请求时间小于300毫秒,则在调用complete后延迟[300毫秒-请求时长];若请求时长大于300毫秒,则不延迟),当show-refresher-when-reload为true或reload(true)时,其最小值为400 - minDelay: { - type: [Number, String], - default: u.gc('minDelay', 0), - }, - //设置z-paging的style,部分平台(如微信小程序)无法直接修改组件的style,可使用此属性代替 - pagingStyle: { - type: Object, - default: function() { - return u.gc('pagingStyle', {}); - }, - }, - //z-paging的高度,优先级低于pagingStyle中设置的height;传字符串,如100px、100rpx、100% - height: { - type: String, - default: u.gc('height', '') - }, - //z-paging的宽度,优先级低于pagingStyle中设置的width;传字符串,如100px、100rpx、100% - width: { - type: String, - default: u.gc('width', '') - }, - //z-paging的背景色,优先级低于pagingStyle中设置的background。传字符串,如"#ffffff" - bgColor: { - type: String, - default: u.gc('bgColor', '') - }, - //设置z-paging的容器(插槽的父view)的style - pagingContentStyle: { - type: Object, - default: function() { - return u.gc('pagingContentStyle', {}); - }, - }, - //z-paging是否自动高度,若自动高度则会自动铺满屏幕 - autoHeight: { - type: Boolean, - default: u.gc('autoHeight', false) - }, - //z-paging是否自动高度时,附加的高度,注意添加单位px或rpx,若需要减少高度,则传负数 - autoHeightAddition: { - type: [Number, String], - default: u.gc('autoHeightAddition', '0px') - }, - //loading(下拉刷新、上拉加载更多)的主题样式,支持black,white,默认black - defaultThemeStyle: { - type: String, - default: u.gc('defaultThemeStyle', 'black') - }, - //z-paging是否使用fixed布局,若使用fixed布局,则z-paging的父view无需固定高度,z-paging高度默认为100%,默认为是(当使用内置scroll-view滚动时有效) - fixed: { - type: Boolean, - default: u.gc('fixed', true) - }, - //是否开启底部安全区域适配 - safeAreaInsetBottom: { - type: Boolean, - default: u.gc('safeAreaInsetBottom', false) - }, - //开启底部安全区域适配后,是否使用placeholder形式实现,默认为否。为否时滚动区域会自动避开底部安全区域,也就是所有滚动内容都不会挡住底部安全区域,若设置为是,则滚动时滚动内容会挡住底部安全区域,但是当滚动到底部时才会避开底部安全区域 - useSafeAreaPlaceholder: { - type: Boolean, - default: u.gc('useSafeAreaPlaceholder', false) - }, - //slot="top"的view的z-index,默认为99,仅使用页面滚动时有效 - topZIndex: { - type: Number, - default: u.gc('topZIndex', 99) - }, - //z-paging内容容器父view的z-index,默认为1 - superContentZIndex: { - type: Number, - default: u.gc('superContentZIndex', 1) - }, - //z-paging内容容器部分的z-index,默认为10 - contentZIndex: { - type: Number, - default: u.gc('contentZIndex', 10) - }, - //使用页面滚动时,是否在不满屏时自动填充满屏幕,默认为是 - autoFullHeight: { - type: Boolean, - default: u.gc('autoFullHeight', true) - }, - //是否监听列表触摸方向改变,默认为否 - watchTouchDirectionChange: { - type: Boolean, - default: u.gc('watchTouchDirectionChange', false) - }, - }, - created(){ - if (this.createdReload && !this.refresherOnly && this.auto) { - this._startLoading(); - this.$nextTick(this._preReload); - } - }, - mounted() { - this.wxsPropType = u.getTime().toString(); - this.renderJsIgnore; - if (!this.createdReload && !this.refresherOnly && this.auto) { - this.$nextTick(this._preReload); - } - this.finalUseCache && this._setListByLocalCache(); - let delay = 0; - // #ifdef H5 || MP - delay = c.delayTime; - // #endif - this.$nextTick(() => { - this.systemInfo = uni.getSystemInfoSync(); - !this.usePageScroll && this.autoHeight && this._setAutoHeight(); - this.loaded = true; - }) - this.updatePageScrollTopHeight(); - this.updatePageScrollBottomHeight(); - this.updateLeftAndRightWidth(); - if (this.finalRefresherEnabled && this.useCustomRefresher) { - this.$nextTick(() => { - this.isTouchmoving = true; - }) - } - this._onEmit(); - // #ifdef APP-NVUE - if (!this.isIos && !this.useChatRecordMode) { - this.nLoadingMoreFixedHeight = true; - } - this._nUpdateRefresherWidth(); - // #endif - // #ifndef APP-NVUE - this.finalUseVirtualList && this._virtualListInit(); - // #endif - // #ifndef APP-PLUS - this.$nextTick(() => { - setTimeout(() => { - this._getCssSafeAreaInsetBottom(() => this.safeAreaInsetBottom && this.updatePageScrollBottomHeight()); - }, delay) - }) - // #endif - }, - destroyed() { - this._offEmit(); - }, - // #ifdef VUE3 - unmounted() { - this._offEmit(); - }, - // #endif - watch: { - defaultThemeStyle: { - handler(newVal) { - if (newVal.length) { - this.finalRefresherDefaultStyle = newVal; - } - }, - immediate: true - }, - autoHeight(newVal) { - this.loaded && !this.usePageScroll && this._setAutoHeight(newVal); - }, - autoHeightAddition(newVal) { - this.loaded && !this.usePageScroll && this.autoHeight && this._setAutoHeight(newVal); - }, - }, - computed: { - finalPagingStyle() { - const pagingStyle = this.pagingStyle; - if (!this.systemInfo) return pagingStyle; - const { windowTop, windowBottom } = this; - if (!this.usePageScroll && this.fixed) { - if (windowTop && !pagingStyle.top) { - pagingStyle.top = windowTop + 'px'; - } - if (windowBottom && !pagingStyle.bottom) { - pagingStyle.bottom = windowBottom + 'px'; - } - } - if (this.bgColor.length && !pagingStyle['background']) { - pagingStyle['background'] = this.bgColor; - } - if (this.height.length && !pagingStyle['height']) { - pagingStyle['height'] = this.height; - } - if (this.width.length && !pagingStyle['width']) { - pagingStyle['width'] = this.width; - } - return pagingStyle; - }, - finalLowerThreshold() { - return u.convertToPx(this.lowerThreshold); - }, - finalPagingContentStyle() { - if (this.contentZIndex != 1) { - this.pagingContentStyle['z-index'] = this.contentZIndex; - this.pagingContentStyle['position'] = 'relative'; - } - return this.pagingContentStyle; - }, - renderJsIgnore() { - if ((this.usePageScroll && this.useChatRecordMode) || !this.refresherEnabled || !this.useCustomRefresher) { - this.$nextTick(() => { - this.renderPropScrollTop = 10; - }) - } - return 0; - }, - windowHeight() { - if (!this.systemInfo) return 0; - return this.systemInfo.windowHeight || 0; - }, - windowBottom() { - if (!this.systemInfo) return 0; - let windowBottom = this.systemInfo.windowBottom || 0; - if (this.safeAreaInsetBottom && !this.useSafeAreaPlaceholder) { - windowBottom += this.safeAreaBottom; - } - return windowBottom; - }, - isIosAndH5() { - // #ifndef H5 - return false; - // #endif - return this.isIos; - } - }, - methods: { - //当前版本号 - getVersion() { - return `z-paging v${c.version}`; - }, - //设置nvue List的specialEffects - setSpecialEffects(args) { - this.setListSpecialEffects(args); - }, - //与setSpecialEffects等效,兼容旧版本 - setListSpecialEffects(args) { - this.nFixFreezing = args && Object.keys(args).length; - if (this.isIos) { - this.privateRefresherEnabled = 0; - } - !this.usePageScroll && this.$refs['zp-n-list'].setSpecialEffects(args); - }, - // #ifdef APP-VUE - //当app长时间进入后台后进入前台,因系统内存管理导致app重新加载时,进行一些适配处理 - _handlePageLaunch() { - // 首次触发不进行处理,只有进入后台后打开app重新加载时才处理 - if (this.pageLaunched) { - // 解决在vue3+ios中,app ReLaunch时顶部下拉刷新展示位置向下偏移的问题 - // #ifdef VUE3 - this.refresherThresholdUpdateTag = 1; - this.$nextTick(() => { - this.refresherThresholdUpdateTag = 0; - }) - // #endif - // 解决使用虚拟列表时,app ReLaunch时白屏问题 - this._checkVirtualListScroll(); - } - this.pageLaunched = true; - }, - // #endif - //使手机发生较短时间的振动(15ms) - _doVibrateShort() { - // #ifndef H5 - - // #ifdef APP-PLUS - if (this.isIos) { - const UISelectionFeedbackGenerator = plus.ios.importClass('UISelectionFeedbackGenerator'); - const feedbackGenerator = new UISelectionFeedbackGenerator(); - feedbackGenerator.init(); - setTimeout(() => { - feedbackGenerator.selectionChanged(); - }, 0) - } else { - plus.device.vibrate(15); - } - // #endif - // #ifndef APP-PLUS - uni.vibrateShort(); - // #endif - - // #endif - }, - //设置z-paging高度 - async _setAutoHeight(shouldFullHeight = true, scrollViewNode = null) { - let heightKey = 'min-height'; - // #ifndef APP-NVUE - heightKey = 'min-height'; - // #endif - try { - if (shouldFullHeight) { - let finalScrollViewNode = scrollViewNode || await this._getNodeClientRect('.zp-scroll-view'); - let finalScrollBottomNode = await this._getNodeClientRect('.zp-page-bottom'); - if (finalScrollViewNode) { - const scrollViewTop = finalScrollViewNode[0].top; - let scrollViewHeight = this.windowHeight - scrollViewTop; - scrollViewHeight -= finalScrollBottomNode ? finalScrollBottomNode[0].height : 0; - const additionHeight = u.convertToPx(this.autoHeightAddition); - const finalHeight = scrollViewHeight + additionHeight - (this.insideMore ? 1 : 0) + 'px !important'; - this.$set(this.scrollViewStyle, heightKey, finalHeight); - this.$set(this.scrollViewInStyle, heightKey, finalHeight); - } - } else { - this.$delete(this.scrollViewStyle, heightKey); - this.$delete(this.scrollViewInStyle, heightKey); - } - } catch (e) {} - }, - //触发更新是否超出页面状态 - _updateInsideOfPaging() { - this.insideMore && this.insideOfPaging === true && setTimeout(this.doLoadMore, 200) - }, - //清除timeout - _cleanTimeout(timeout) { - if (timeout) { - clearTimeout(timeout); - timeout = null; - } - return timeout; - }, - //添加全局emit监听 - _onEmit() { - uni.$on(c.errorUpdateKey, () => { - this.loading && this.complete(false).catch(() => {}); - }) - uni.$on(c.completeUpdateKey, (data) => { - setTimeout(() => { - if (this.loading) { - if (!this.disabledCompleteEmit) { - const type = data.type || 'normal'; - const list = data.list || data; - const rule = data.rule; - this.fromCompleteEmit = true; - switch (type){ - case 'normal': - this.complete(list); - break; - case 'total': - this.completeByTotal(list, rule); - break; - case 'nomore': - this.completeByNoMore(list, rule); - break; - case 'key': - this.completeByKey(list, rule); - break; - default: - break; - } - } else { - this.disabledCompleteEmit = false; - } - } - }, 1); - }) - }, - //销毁全局emit和listener监听 - _offEmit(){ - uni.$off(c.errorUpdateKey); - uni.$off(c.completeUpdateKey); - } - }, -}; diff --git a/src/uni_modules/z-paging/components/z-paging/js/z-paging-mixin.js b/src/uni_modules/z-paging/components/z-paging/js/z-paging-mixin.js deleted file mode 100644 index 9d09cafa..00000000 --- a/src/uni_modules/z-paging/components/z-paging/js/z-paging-mixin.js +++ /dev/null @@ -1,22 +0,0 @@ -// [z-paging]使用页面滚动时引入此mixin,用于监听和处理onPullDownRefresh等页面生命周期方法 - -export default { - onPullDownRefresh() { - if (this.isPagingRefNotFound()) return; - this.$refs.paging.reload().catch(() => {}); - }, - onPageScroll(e) { - if (this.isPagingRefNotFound()) return; - this.$refs.paging.updatePageScrollTop(e.scrollTop); - e.scrollTop < 10 && this.$refs.paging.doChatRecordLoadMore(); - }, - onReachBottom() { - if (this.isPagingRefNotFound()) return; - this.$refs.paging.pageReachBottom(); - }, - methods: { - isPagingRefNotFound() { - return !this.$refs.paging; - } - } -} diff --git a/src/uni_modules/z-paging/components/z-paging/js/z-paging-static.js b/src/uni_modules/z-paging/components/z-paging/js/z-paging-static.js deleted file mode 100644 index 05f80d5c..00000000 --- a/src/uni_modules/z-paging/components/z-paging/js/z-paging-static.js +++ /dev/null @@ -1,13 +0,0 @@ -// [z-paging]公用的静态图片资源 - -export default { - base64Arrow: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkBAMAAACCzIhnAAAAD1BMVEVHcExRUVFMTExRUVFRUVE9CdWsAAAABHRSTlMAjjrY9ZnUjwAAAQFJREFUWMPt2MsNgzAMgGEEE1B1gKJmAIRYoCH7z9RCXrabh33iYktcIv35EEg5ZBh07pvxJU6MFSPOSRnjnBUjUsaciRUjMsb4xIoRCWNiYsUInzE5sWKEyxiYWDbyefqHx1zIeiYTk7mQYziTYecxHvEJjwmIT3hMQELCYSISEg4TkZj0mYTEpM8kJCU9JiMp6TEZyUmbAUhO2gxAQNJiIAKSFgMRmNQZhMCkziAEJTUGIyipMRjBSZkhCE7KDEFIUmTeGCHJxWz0zXaE0GTCG8ZFtEaS347r/1fe11YyHYVfubxayfjoHmc0YYwmmmiiiSaaaKLJ7ckyz5ve+dw3Xw2emdwm9xSbAAAAAElFTkSuQmCC', - base64ArrowWhite: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkBAMAAACCzIhnAAAAElBMVEVHcEz///////////////////+IGTx/AAAABnRSTlMA/dAkXZOhASU/AAABYElEQVRYw+2YwXLCIBCGsdAHWGbyAKZ4zxi9O017rxLf/1UaWFAgA1m8dcpedNSPf/l/Vh0Ya/Wn6hN0JcGvoCqRM4C8VBFiDwBqqNuJKV0rAnCgy3AUqZE57x0iqTL8Br4U3WBf/YWaIlTKfAcELU/h9w72CSVPa3C3OCDvhpHbRp/s2vq4fHhCeiCl2A3m4Qd71DQR257mFBlMcTlbFnFWzNtHxewYEfSiaLS4el8d8nyhmKJd1CF4eOS0keLMAuSxubLBIeIGQW8YHCFFo7EH9+YDcQt9FMZEswTheaNxTHwHT8SZorJjMrEVwo4Zo0U8HSEyZvJMOg4RjnmmRr8nDYeIz3OMkbfE/QhBo+U9RnZJxjGCRh/WKmHEMWLNkfPKsGh/CWJk1JjG0kcuJggTt34VDP8aWAFhp4nybVb5+9qQhjSkIQ1pSEMa8k+Q5U9rV3dF8MpFBK+/7miVq1/HZ2qmo9D+pAAAAABJRU5ErkJggg==', - base64Flower: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkBAMAAACCzIhnAAAAKlBMVEVHcEzDw8Ovr6+pqamUlJTCwsKenp61tbWxsbGysrLNzc2bm5u5ubmjo6MpovhuAAAACnRSTlMA/P79/sHDhiZS0DxZowAABBBJREFUWMPtl89rE0EUx7ctTXatB3MI1SWnDbUKPUgXqh4ED8Uf7KUVSm3ooVSpSii0Fn/gD4j4o+APiEoVmos9FO2celiqZVgwgaKHPQiCCkv+F99kM7Ozm5kxq1dfD91k9pPve9/3ZjbRNHHok/mKli4eIPNgSuRObuN9SqSEzM20iGnm0yIbqCuV7NSSSIV7uyPM6JMBYdeTOanh/QihJYZsUCSby+VkMj2AvOt0rAeQAwqE3lfKMZVlQCZk1QOCKkkVPadITCfIRNKxfoJI5+0OIFtJx14CMSg1mRSDko7VAfksRQzEbGYqxOJcVTWMCH2I1/IACNW0PWU2M8cmAVHtnH5mM1VRWtwKZjOd5JbF6s1IbaYqaotjNlPHgDAnlAizubTR6ovMYn052g/U5qcmOpi0WL8xTS/3IfSet5m8MEr5ajjF5le6dq/OJpobrdY0t3i9QgefWrxW9/1BLhk0E9m8FeUMhhXal499iD0eQRfDF+ts/tttORRerfp+oV7f4xJj82iUYm1Yzod+ZQEAlS/8mMBwKebVmCVp1f0JLS6zKd17+iwRKTARVg2SHtz3iEbBH+Q+U28zW2Jiza8Tjb1YFoYZMsJyjDqp3M9XBQdSdPLFdxEpvOB37JrHcmR/y9+LgoTlCFGZEa2sc6d4PGlweEa2JSVPoVm+IfGG3ZL037iV9oH+P+Jxc4HGVflNq1M0pivao/EopO4b/ojVCP9GjmiXOeS0DOn1o/iiccT4ORnyvBGF3yUywkQajW4Ti0SGuiy/wVSg/L8w+X/8Q+hvUx8Xd90z4oV5a1i88MbFWHz0WZZ1UrTwBGPX3Rat9AFiXRMRjoMdIdJLEOt2h7jrYOzgOamKZSWSNspOS0X8SAqRYmxRL7sg4eLzYmNehcxh3uoyud/BH2Udux4ywxFTc1xC7Mgf4vMhc5S+kSH3Y7yj+qpwIWSoPTVCOOPVthGx9FbGqrwFw6wSFxJr+17zeKcztt3u+2roAEVgUjDd+AHGuxHy2rZHaa8JMkTHEeyi85ANPO9j9BVuBRD2FY5LDMo/Sz/2hReqGIs/KiFin+CsPsYO/yvM3jL2vE8EbX7/Bf8ejtr2GLN65bioAdgLd8Bis/mD5GmP2qeqyo2ZwQEOtAjRIDH7mBKpUcMoApbZJ5UIxkEwxyMZyMxW/uKFvHCFR3SSmerHyDNQ2dF4JG6zIMpBgLfjSF9x1D6smFcYnGApjmSLICO3ecCDWrQ48geba9DI3STy2i7ax6WIB62fSyIZIiO3GFQqSURp8wCo7GhJBGwuSovJBNjb7kT6FPVnIa9qJ2Ko+l9mefGIdinaMp0yC1URYiwsdfNE45EuA5Cx9EhalfvN5s+UyItm81vaB3p4joniN+SCP7Qc1hblAAAAAElFTkSuQmCC', - base64FlowerWhite: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkBAMAAACCzIhnAAAAElBMVEX///9HcEz///////////////84chYNAAAABnRSTlP/AGzCOYZj5g1nAAACfklEQVRYw+2YTVPDIBCGtza9Jw25a0bvcax30o73OOr//yvma2F3YWlpPTijXNpAHrK8LLALVPFium2vNIFSbwGKTGQA2GUiHcD29yDNy3sMIdUBQl7r2H8mOEVqAHgPkYZUS6Qc2zYhQqtjyDZEximCZwWZLIBeIgYShs2NzxKpSUehYpMJhURGb+O+w5BpMCAREKPnCDHbIY20SzhM5yxziAXpOiBXydrekT9i5XDEq4NIIHHgyU5mRGqviII4mREJJA4QJzMiILwlRJzpKxJKvCBm8OsBBbLux0tsPl4RKYm5aPu6jw1U4mGxEUR9g8M1PcqBEp/WJliNgYOXueBzS4jZSIcgY5lCtevgDSgyzE+rAfuOTQMq0yzvoGH18qju27Mayzs4fPyMziCx81NJa5RNfW7vPYK9KOfDiVkBxFHG8hAj9txuoBuSWORsFfkpBf7xKFLSeaOefEojh5jz22DJEqMP8fUyaKdQx+RnG+yXMpe8Aars8ueR1pVH/bW3FyyvPRw90upLDHwpgBDtg4aUBNkxRLXMAi03IhcZtr1m+FeI/O/JNyDmmL1djLOauSlNflBpW18RQ2bPqXI22MXXEk75KRHTnkPkYbESbdKP2ZFk0r5sIwffAjy1lx+vx7NLjB6/E7Jfv5ERKhzpN0w8IDE8IGFDv5dhz10s7GFiXRZcUeLCEG5P5nDq9k4PFDcoMpE3GY4OuxuCXhmuyNB6k0RsLIAvqp9NE5r8ZCSS8gxnUp7ODdYhZTqxuiJ9uyJJtPmpqJ7wVj+XVieS903iViHziqAhchLEJAyb7jWU647EpUofQ0ziUuXXXhDddtlllSwjgSQu7r4BRWhQqfDPMVwAAAAASUVORK5CYII=', - base64Success: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkBAMAAACCzIhnAAAAElBMVEVRUVFHcExTU1NRUVFRUVFRUVFOSlSUAAAABnRSTlP/AI6+VySB3ZENAAACcElEQVRYw+2YyYKCMAyGI8hdpdxdZu7gcpdZ7jL6/s8yYheSNi0aPdqbwOffpGmaFOYPD3gj4bisN7vddv17N/JVgxn5x12IWgIaWTuO/IE3PseQbwjGPo2cgRmHFLJwdm/X643zwiqOKPPJ1nj3sjEP2iiifZWj5bhopSyGaEO2HX5fbQJzwJ+W7x/jw5ZFjsEU0PMph9xE8i5EqprKALW95eJQURkgzw98uJ/JvwGecR7bIjWWsUgVrrIfFZ2HlLy3sKETD1mmRLRMRhGVssRa0xJkdn3SpJBymBkM8+pSSDXMDNyDaToVHd2fgpNt0sjwiUZO19+jGQ+gQEg9Oq+bufmAVGihomNmjQG7UG3020vrlm7lkFnKFGU3kZ0KGAdmKe821pipQ+qEKcrZeTL2g5FsUks4cStjEZWwXg0b0n4GxmEpkWwIs5VBynjgK7xZaz1/0D7OxkVuLpsY5BQNFyLS84VBjjbg0iL2r2EQHBOxBhikuUOkdxODVF1cxHoWtPPsiyXO455Iv34hssCO8EV4ZIYTjS8SR4qYSHRiTiYQ4ZFbHi0iIhhBTi6dTCgSWRcnw4h4yGTuyTAiOGBIWGoZTgSHJQl+LcOJ4OCnW6yX2bMnJ9pidCOXtkTkTrIGpYuOynAiOF14SamMiOCk5Ke+mq8BcOrrvym8d0zKIQnWT+M1WwOQNO4fFiWb18hhERxJPx2fblbPHHyC41VyiAtKBUFBIih7JMWVoIQTFIr3lKPN80WvoLSWFPC653ioTZA0I0FrQ7qU6asaK0H7JmkSJa2ooOGVtNUsc3j9FYHkIkJy3SG6VHnfXKXGP9t4N9Q4Ye98AAAAAElFTkSuQmCC', - base64SuccessWhite: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkBAMAAACCzIhnAAAAGFBMVEVHcEz///////////////////////////8dS1W+AAAAB3RSTlMAiVYk6KvDHLfaegAAAo1JREFUWMPtWEtzmzAQNhCTq910ytXpiyvxTNOr60zrayepx9d02gnX4sTm7xcEiJX2gdnkGJ1A4tOnfWqXyeR1vMRYzrcPD9v5h5MBl3/Ldvx4cxIg/FWC8X0xjLjalM54uhhCfCrRuJURX0pi3EmIqZV7O59vrRZmguStHL9b7S7ftfLwOtiZDw7AHMtmquAQ12b5Wwbnordm8g9zLLO49qc/m2n6aKnhwPOGZ08hAiNHhheiHae1lOUPGZpQkPKa3q0mOUjaRzSRaGUjpy/mmWSwySSpllcEteBKAT52KEnSbblA51pJEPxBQoiH1FP4E3s5+FJv07h6/ylD6ui7B+9fq/ehrFB98ghec9EoVtyjK8pqCHLmCBOwMWSCeWFNN4MbPAk55NhsvoFHSSVR0k5TCTTEzlUGcqV/nVp7n9oIVkmtaqbAEqEgfdgHJPwsEAyZ9r4VAZXFjpEwyaw3+H2v42KYxKhs1XvY/gSSGv+IHyUSuHXCeZhLAgVI3EjgSGo1Fb3xO0tGGU9S2/KAIbtjxpJASG73qox6w5LUq0cEOa+iIONIWIilQSQ0pPa2jgaRQAgQP7c0mITRWGxpMAmEQFN2NAQJNCV0mI6GIIEO47hlQ0ORQLd0nL+hoUjg1m6I1TRr8uYEAriBHLcVFQ5UEMiBe3XkTBEG04WXlGKGxPnMS305XQPA1Ocn2JiuAZwE66fxnKwBnDTuXxZTMq85lwW6kt5ndLqZPefiU1yvmktcUSooChJF2aMprhQlnKJQ5FxRKkcVRa+itNYU8Io2oVkY14w0NMWYlqft91Bj9VHq+ca3b43BxjWJmla0sfKohlfTVpPN+93L/yLQ/IjQ/O5Q/VR5HdL4D7mlxmjwVdELAAAAAElFTkSuQmCC', - base64Empty: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADIBAMAAABfdrOtAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAbUExURdvc3EdwTMLBwcjIyLSzs/Hx8ff39////19dXXz7IJEAAAAFdFJOU/4A6J9QDyyutAAAB5VJREFUeNrtnM1z4jYYxhUHkR4hdu9eU7Z75Ct7jgPbs9ZZmSuTrUWPmXTA186e+LMrf0uWLMtf2WkHXQgzln88et5XeiVMwPQdGrhCrpAr5Aq5Qv4TkJ07OGQFMLp1B4VYCz+kDblDQhJGeH4eEDLBYdLOHwaDWNBPIeHLYJAJ3meQ83IoCMTHDBKOBoKYGOeM8G0gyD0LObnDQB5ZSCtTNCBfsM9AboaBPLCQcDAIM1zht/dQEkMsd1DjI4hpw2YzMtBJeBbydWpCTJs3YDKGX62YgfGoVwi9KwtZJAzcYHHRm7sYCKD390nQSIoO5JGZIEOYxNoZ4+deISYLyeL5hLHbJ2QK98W0kudMgJe9Qh73odhO+KZHyNYGvgQS9gmJKhUigwSj3iBPUhXxePWmxBqHw0Mej9WQ3qILVjLC177yxNxXQ/7uK+Mn1aNVLsGsBTaWrSAPobYl0aUHt2fIs2Rgz7c9QYL0pSTkSzILLFtAJMH1cidN998T9E0/Sg73/pEEwrgkYRh86wlC949gJsR6EobBcz8hHOVgKYi2m6kZtodIkjEQvF3QjbGpmplB4/lRgJhxgRS2N15iijAvPmByDtCxfQhPJ8J4CR82rgCCBILarScw6X0OcMUyYrFVmbxErl0ZacFIoloOLdJAO42qY+NMDss2kKS8xmiZxcCpFKXWvpRGbQqJp5ixyRfJMmR6x0Fk+z29kmgWDYI5ziFbdug/84HxvduhWhLOJ2StPDQrMJPSjNANklh8QhB7dBO0yTGRwn1fkOk8rbQjiB8Ymww+JuiuN0icmSccK4naLMWYa/euL0+m23GyM8kgAc6sYeL4z04Qa4WjGepcKIliO8EUGSk7d9OGWOsoK31OSdy8TQZ59Y/hWbaV1IVs5/Ed6UzGK4nANAJiyGhRsZPUg2yzLe9hLyiJIyCaDU7udC2uy9pnkKvidlBUEltzFAqxRhBrBZm7HfZnjEQI3boqTsJq15PUDEaKZLgiJYc8OZtCtnM/4G93OFYooXpvdy0guwWWNQkEHl/j7Jw1XRmtlS9HYJkSPjk1IUnyyRqUKQn45NSDlP1mcg9i6En1ZU2IADnEtHF1Q+JwIcS/d5YakPuDUamEShGUHHikAz9oQCaE0CsrpYjDBVkEHQYdyK+EkKPhVErxqh1xbJ/oQf4gEeVsOIEc41WJNAwcd9GBfCZJezXsJhAvH+ImEEIOzlwXgpw5wQ0gH3MIOcsiQAahZuSD69/UQyxcQEggiQARQseVFO/ASAMCgM9gjkHZmhLENzi1AOhA7ullkMWUrfHKfpMiDBHtDIx6yCS6jseEnDUe7zcT6DGCtnrIY3olZw1hrPHkfucIAJa1EDu/lsVEyVmGGA67coKijeogFnMxlEaAV5ghRdDm1kDuuatZTJBGgJdOthIzsvZbDWRRuh6ScgR4EQLgagQvRQIxxQ4sxqcR4GE+c4CkjZQQW9YF89Y4OFAjOCki5KmiDxsBL3PlSJWlAFVogaoIePlYi2ClCJAHRa/cmre5eqTii4uvisqQJxqnip6pNd68DhEvyEs5xIyHBNdh4thCKhU++10kD7Gy1Up1A/o56FKuRJQWSFCuf8dpbisxhqHSKlSSgvG7VTaFKO5TzYD5VMPUxEB2YJNiqq3xYJ0KrroH8mq7xpoXqEZgfgNRUQsDtTVvUOk3sLUKbqrBr7YGvkCkQNC/9SA+vTYtvERrxiKEmcogk4ZqCLUd59MIEiFYHlIoxelCaJWDMmtOPIa80XVLbkb6hzaEwwTcPEmV4AIRlBGNIEmuJBFwLAZoHClJ36J8h+wxihpCqJosAnJrSKwEcQOFAFeWN4RQMYc0Ao4Jhg5gpASzyWcDvjpuDIlTkrGGJEro1rHIjHKR3wJCAj+z5oyi11gJBkXy9QFJIiAu78d+pgSjuWhGN0gUAZAcEncSJf4LRrZ8I94WEmcNCJJqBWYjVbE9bg2JxiyrViBWty6QvO56D8jPVWLA4ZX8dfkxvJJPl8t8aCX+pU/Iz1SCf7lc4OBK0OWfQaKLP0TKjj96VvIp+/BDZjwNKF2ItV2vN7sWStAl87oWkm3dZ+k3lEMoYXe8cT1eq2TOePJDD8KfQdxu6iEPxanUZa4HmZRq3dunGsj3BzFq6yD3wnZNX4n2emI2hXyXQpi6RRZdfSgxHNuxVZBFdyVeBPDmCsiksxKUiDAUEKuzkvRUEs0V08pjVyU2/yqFmF2VZGYop3peitdUiQd1pnrL7qTE01tPzE6eaEKm23dQwh2jNlbiay+/245zl94abw45CzNPyqYQ2++kxHGV1crWzg4A2yvR+BY7wziwnRLN7+O36aA54+ZKGjxZYK3txJpxQyUNn5GwtquII4+ACiWtnvawduu1A3SVtH5uhTvAVSpBG7fDYz6RQ+M6JWjmKm6g+RvTla9UMtspu+s+37VbVCupNqPx43CsNawSb1PbtcmDfQWmUILW7rRXSPHtSq5k5ur0a/hb7DQCUiW3G71ejX/wvV1kSoyNbp8Wvyqn1lCIKvl6gNDkNBYzt0GHdr+Pt9xGl1//ncAVcoVcIVfIFXKFXCFXyP8I8i8SyTW4yTz2lwAAAABJRU5ErkJggg==', - base64Error: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADIBAMAAABfdrOtAAAAJFBMVEVHcEzo6Oibm5ukpKSbm5uampqbm5ubm5u5ubnn5+fm5ub6+vpGpDPdAAAAC3RSTlMA/v4hb+u20dq8aQhnHL4AAATwSURBVHja7ZvNb+JGGMbdjjdVe3NPodzeMhj1ZMUGujkh28B9wKR7iwwBqafWSbPqsbm0uTWtVlrTS9v0Et9yqLQS/1zHNiTZMMB4bO92d+dRUITt8c/PvPPx2h4URUpKSkpKSkpK6m3K6lFN73Q+S/+es3W3fzabTh2Dl0FAXEM+BgrgeXxRsdILTDU9n7J0vz/+EsCYC9KEiSFc06pf5zouqAkjkGWo0OG5Fq6j2IwZ6I4/4DhyTxc20oUjAj5PRTTrwvGAZ9p+ADzlD4RDctCoLhb7JUP87xeLxS3BZUIQ+YNCFi8wRwc4GIqGRK/GkM+5ILV8kFflOmkkkH/LddJ4c05eSSfSyTvrZPEmnCw+UCeuk84QvTSnUF0uCL68fBle/swF+RL1QZ/EpU6gHtOsAM64pnjPwxgTLsjoBM58ODNaAXYBT5QeGdr0KwcEA8He0TkPBLCjUDNHpG4qlg8eTCzXht1FVd1MxTPHj5LTtUiSrKK+7iDf8wBGxk4If3arLv/HF4Tox0A2nlFIGp+CIA+LzSamgbp4TNvZjECtDAjyMcB5HybLO6NxsRA1vmFCNjguNXDGWygbRPXh/B+zn9zPWK5RCkT18QxA57YgAqE+HGS6/tAoD4JO0ts+M2tbyQJpc95a5oI0xXNhCZGQ/x8E0VSCkUZY6Z6CIE/qdO5eL+yPlW6tMMgefPs3o7Bdt8iguJj4DThlZSY/rJ0yB+RraLDK2jAQCHyr4zIhT9mQ7vowygMZjpgQG+CYUV2E1EWqixyzICr8eFFnBB5ba1Y4IIfeKQvysW7ssZrwQLEFmvCBM2U6oRkdI5Wgm1QnO8RUTDlASoiESIiESMh7BDHKhlhu/LbSNUuEqL3lu1p945vO3BArADiaum7vBGDUKQfSIjBykooyrRPQnTIglHFfSagHeqd4iErwa9duEebpckGQjx/VT4v5fC0XhJHAd1mPRvJAVMZiAeQzTpgHYrPKqkGnUEiX+dCoNS4UgniHMTnUS4iESIiE7IS0x+mnVAidglDwVcmQJpy2WQ8VC4UgogfbA1RE4Nuw3UghEBV2rKl7V5ygAJPSY9KGQbP01mVjA5Fa2f1kQN2U3k+M9POWB8gnJUNMZJioWTMzKwOklyxgDrCXVcMMEF90tXM9C2TiCqmfCdIRi/jeewNpyerKok9WkGuzfCdYC+fXRsmBxxpVGG2zY0ZBbieJKvPrDQce3lxppBhIjGFWGkVoxUEoZt0Mukn2XBQH0bTHZpaMIp2sU/6qasU70W6/eHjM09VmYSc6C6Jpvz+orKvVxot8kL3HkMr9IZ9qeZ2o6RrO9mOI9ufdIR9peZ2gNIW31yC/MpyI9ngUDNIsezPks3vIsWDGdYA7cZa9pbqUVeCr/neiaR3U3R4BfXPg75vwb8I/b7HjxChobDZCO+Ny4wuxxaVxPPowcoNnrzPmzGFlX3RJHz2FafbhJ41n8PLx2DCM7KkwQgpqka1DVzKdJNHfJwBe9l/n0eSZFsIPjVSY8xZKZpSXnogwled98wAx3xRcdBNq1f1fhFVdIcL5tvaDolC7XaqaWStEtLOJHkbhlSauMLrma4yHEa03AVUoIUs/M2NQFkchBZiGUPeKonAnqhLOo4hrKf0WTyZ1FcU0Ki0hVrSr+Mucnvya7jYUKSkpKSkpKSmpD0f/AXq+Umj5XnXDAAAAAElFTkSuQmCC', - base64BackToTop: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADIBAMAAABfdrOtAAAAElBMVEVRUVH+/v5HcEyZmZlRUVFRUVGm1ByOAAAABnRSTlPMzADMTZAJBBGsAAAEnElEQVR42t2cS27jMAyGf7/2U+QCQeDsbeQCgZDujaC5/1UmkzaJn+JDFGcw3LdfflKibJkkDnxrL7dbg7sNt6+L4O8OYBM+B0ys+QrGkHZG+OEEQ8g6go8Bx1GIGMdpNOQyIG6XdMgnSPtKhLQDGEZFBgYMkhKFtGBb0EIEjDgFRowoBVaMGAWpMedEfxMiZtwpUsgZCqtlkCNUdpVAWigtCCCDFtLwIWeoreZCWiRYYEKGFEjDg+yRZCUH0iLRAgNyToXUNCRZyMqWhGnUN2IPm3wSlwJ7IUspyCBkIQUZhCykIIeQuRTkEDKXAuM9srrtYbrZN7Y98giZSoFd+t1OxmMITG0dcrSFXFchZ1tIvQZpYWxhBbK3hpQrkMEa0iwh5t4a+QvZvDXyF7J5a+Qv5PPW21/I5623v5DPW29/IaO3Xv5Clrw1y1/Ikrdm+Qs5svw83yNnSJ5BQb4F/F7EIEJSnThGBAXxkFQfLOviQUE8JAUPsosHBfGQfDAtHhREQ1JxIV00KIgmrnRI84S0yAd5BAXxxJUck0f6Qnwr9qmr6xF5xLMjcwn/iudIEAdWnyjkEXlQKZiRVzoqRyLbgeUKKR8Q4alY7cSnoxzSf2ggsqehKr6YVpcXpOd7H93f60cKhOd7Re2LteUF4eLqiVS1mr0ge4io6C2+soaFkJ7MuuuQs1yITEp9hwwKISIpzR2iESKSIoT0rLNwuVHQqoSIpAQJpGce60vIUSdEIuUqgPTsJ5QFZK8UIpBS8iG94GFrDjlrhfCl8CG96Llxmle4kEr6vKWBPIVo9kqDQSRk9/3cWoikcCFPAd33v4dIChPyEvLzBA6RlEYWke4JEUnhKXkLeUEKxRHJFfKCQHGucIW8IdZSRkLeEGMpYyEjiK2UsZARxFTKRMgYYillImQMMZQyFTKB2EmZCplAuFLIHT8TMoWwpQwiIVMIUwqpZP5bp5CCvCTiQKr5f5lCQN+tPCBn2ZvVDFJwIDUP0m1BYAfZYRNSsCB7BqTbhoARePIxtZ9tgwWkoJcwCalmv3MBAemtO4R6dah2HaKQqj8Zvp9sQDjvJ21+SPCBHPJDDk6QITekEV7gqCC19CpKAym9IMfckKv4olMBCeIrWwVEfvkshzQekO9r9P1/ALk+IG1eSPCDiCJfyG+FyU+A6ZCa/piZDinpz7LpkCv5gdkAEshP5emQhv7onw6pGeULyZCSUYiRDAmMkpJkCKs4JhFSq8p8hJBSVbAkhARV6ZUQoisik0FqXTmcDHLVFfbJIEFXoiiCNMpiSxGkVJaNiiBBWQArgTTaUl4JpNQWJUsgQVteXQg+AKkLxQWFGKW+5J2+eVp4S168X3CF1CltCKdTJ8lb84YK2bUBO+wZW0Pqv9nk4tKu49N45NJC5dMM5tLW5tOg59Jq6NM06dL+abFXwr/RkuvTXJwae1abtE/Dt0/ruksTvs84AZ/BCC4jHnyGVfiM3VBQFANEXEah+Ax18RlP4zNox2dkkM/wI58xTn8yDCXGYCDV3W5RGSajtXyGhG1jbpbjzpwGt/0MJft8jqC7iUbQ/QZaxdnKqcIftwAAAABJRU5ErkJggg==', -} diff --git a/src/uni_modules/z-paging/components/z-paging/js/z-paging-utils.js b/src/uni_modules/z-paging/components/z-paging/js/z-paging-utils.js deleted file mode 100644 index 59e9bf63..00000000 --- a/src/uni_modules/z-paging/components/z-paging/js/z-paging-utils.js +++ /dev/null @@ -1,228 +0,0 @@ -// [z-paging]工具类 - -import zConfig from './z-paging-config' -import zLocalConfig from '../config/index' -import c from './z-paging-constant' - -const storageKey = 'Z-PAGING-REFRESHER-TIME-STORAGE-KEY'; -let config = null; -const timeoutMap = {}; - -/* -当z-paging未使用uni_modules管理时,控制台会有警告:WARNING: Module not found: Error: Can't resolve '@/uni_modules/z-paging'... -此时注释下方try中的代码即可 -*/ -// #ifdef VUE2 -try { - const contextKeys = require.context('@/uni_modules/z-paging', false, /\z-paging-config$/).keys(); - if (contextKeys.length) { - const suffix = '.js'; - config = require('@/uni_modules/z-paging/z-paging-config' + suffix); - } -} catch (e) {} -// #endif - -//获取默认配置信息 -function gc(key, defaultValue) { - if (!config) { - if (zLocalConfig && Object.keys(zLocalConfig).length) { - config = zLocalConfig; - } else { - const tempConfig = zConfig.getConfig(); - if (zConfig && tempConfig) { - config = tempConfig; - } - } - } - if (!config) return defaultValue; - const value = config[_toKebab(key)]; - return value === undefined ? defaultValue : value; -} - - -//获取最终的touch位置 -function getTouch(e) { - let touch = null; - if (e.touches && e.touches.length) { - touch = e.touches[0]; - } else if (e.changedTouches && e.changedTouches.length) { - touch = e.changedTouches[0]; - } else if (e.datail && e.datail != {}) { - touch = e.datail; - } else { - return { - touchX: 0, - touchY: 0 - } - } - return { - touchX: touch.clientX, - touchY: touch.clientY - }; -} - -//判断当前手势是否在z-paging内触发 -function getTouchFromZPaging(target) { - if (target && target.tagName && target.tagName !== 'BODY' && target.tagName !== 'UNI-PAGE-BODY') { - const classList = target.classList; - if (classList && classList.contains('z-paging-content')) { - return { - isFromZp: true, - isPageScroll: classList.contains('z-paging-content-page'), - isReachedTop: classList.contains('z-paging-reached-top') - }; - } else { - return getTouchFromZPaging(target.parentNode); - } - } else { - return { isFromZp: false }; - } -} - -//获取z-paging所在的parent -function getParent(parent) { - if (!parent) return null; - if (parent.$refs.paging) return parent; - return getParent(parent.$parent); -} - -//打印错误信息 -function consoleErr(err) { - console.error(`[z-paging]${err}`); -} - -//延时操作,如果key存在,调用时根据key停止之前的延时操作 -function delay(callback, ms = c.delayTime, key) { - const timeout = setTimeout(callback, ms);; - if (!!key) { - timeoutMap[key] && clearTimeout(timeoutMap[key]); - timeoutMap[key] = timeout; - } - return timeout; -} - -//设置下拉刷新时间 -function setRefesrherTime(time, key) { - const datas = getRefesrherTime() || {}; - datas[key] = time; - uni.setStorageSync(storageKey, datas); -} - -//获取下拉刷新时间 -function getRefesrherTime() { - return uni.getStorageSync(storageKey); -} - -//通过下拉刷新标识key获取下拉刷新时间 -function getRefesrherTimeByKey(key) { - const datas = getRefesrherTime(); - return datas && datas[key] ? datas[key] : null; -} - -//通过下拉刷新标识key获取下拉刷新时间(格式化之后) -function getRefesrherFormatTimeByKey(key, textMap) { - const time = getRefesrherTimeByKey(key); - const timeText = time ? _timeFormat(time, textMap) : textMap.none; - return `${textMap.title}${timeText}`; -} - -//将文本的px或者rpx转为px的值 -function convertToPx(text) { - const dataType = Object.prototype.toString.call(text); - if (dataType === '[object Number]') return text; - let isRpx = false; - if (text.indexOf('rpx') !== -1 || text.indexOf('upx') !== -1) { - text = text.replace('rpx', '').replace('upx', ''); - isRpx = true; - } else if (text.indexOf('px') !== -1) { - text = text.replace('px', ''); - } - if (!isNaN(text)) { - if (isRpx) return Number(uni.upx2px(text)); - return Number(text); - } - return 0; -} - -//获取当前时间 -function getTime() { - return (new Date()).getTime(); -} - -//获取z-paging实例id -function getInstanceId() { - const s = []; - const hexDigits = "0123456789abcdef"; - for (let i = 0; i < 10; i++) { - s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1); - } - return s.join('') + getTime(); -} - -// 等待一段时间 -function wait(ms) { - return new Promise(resolve => { - setTimeout(resolve, ms); - }); -} - -//------------------ 私有方法 ------------------------ -//时间格式化 -function _timeFormat(time, textMap) { - const date = new Date(time); - const currentDate = new Date(); - const dateDay = new Date(time).setHours(0, 0, 0, 0); - const currentDateDay = new Date().setHours(0, 0, 0, 0); - const disTime = dateDay - currentDateDay; - let dayStr = ''; - const timeStr = _dateTimeFormat(date); - if (disTime === 0) { - dayStr = textMap.today; - } else if (disTime === -86400000) { - dayStr = textMap.yesterday; - } else { - dayStr = _dateDayFormat(date, date.getFullYear() !== currentDate.getFullYear()); - } - return `${dayStr} ${timeStr}`; -} - -//date格式化为年月日 -function _dateDayFormat(date, showYear = true) { - const year = date.getFullYear(); - const month = date.getMonth() + 1; - const day = date.getDate(); - return showYear ? `${year}-${_fullZeroToTwo(month)}-${_fullZeroToTwo(day)}` : `${_fullZeroToTwo(month)}-${_fullZeroToTwo(day)}`; -} - -//data格式化为时分 -function _dateTimeFormat(date) { - const hour = date.getHours(); - const minute = date.getMinutes(); - return `${_fullZeroToTwo(hour)}:${_fullZeroToTwo(minute)}`; -} - -//不满2位在前面填充0 -function _fullZeroToTwo(str) { - str = str.toString(); - return str.length === 1 ? '0' + str : str; -} - -//驼峰转短横线 -function _toKebab(value) { - return value.replace(/([A-Z])/g, "-$1").toLowerCase(); -} - -export default { - gc, - setRefesrherTime, - getRefesrherFormatTimeByKey, - getTouch, - getTouchFromZPaging, - getParent, - convertToPx, - getTime, - getInstanceId, - consoleErr, - delay, - wait -}; diff --git a/src/uni_modules/z-paging/components/z-paging/wxs/z-paging-renderjs.js b/src/uni_modules/z-paging/components/z-paging/wxs/z-paging-renderjs.js deleted file mode 100644 index 9ecf76b0..00000000 --- a/src/uni_modules/z-paging/components/z-paging/wxs/z-paging-renderjs.js +++ /dev/null @@ -1,58 +0,0 @@ -// [z-paging]使用renderjs在app-vue和h5中对touchmove事件冒泡进行处理 - -import u from '../js/z-paging-utils' -const data = { - startY: 0, - isTouchFromZPaging: false, - isUsePageScroll: false, - isReachedTop: true, - isIosAndH5: false, - appLaunched: false -} - -export default { - mounted() { - if (window) { - this._handleTouch(); - // #ifdef APP-VUE - this.$ownerInstance.callMethod('_handlePageLaunch'); - // #endif - } - }, - methods: { - //接收逻辑层发送的数据 - renderPropIsIosAndH5Change(newVal) { - if (newVal === -1) return; - data.isIosAndH5 = newVal; - }, - //拦截处理touch事件 - _handleTouch() { - if (!window.$zPagingRenderJsInited) { - window.$zPagingRenderJsInited = true; - window.addEventListener('touchstart', this._handleTouchstart, { passive: true }) - window.addEventListener('touchmove', this._handleTouchmove, { passive: false }) - } - }, - _handleTouchstart(e) { - const touch = u.getTouch(e); - data.startY = touch.touchY; - const touchResult = u.getTouchFromZPaging(e.target); - data.isTouchFromZPaging = touchResult.isFromZp; - data.isUsePageScroll = touchResult.isPageScroll; - data.isReachedTop = touchResult.isReachedTop; - }, - _handleTouchmove(e) { - const touch = u.getTouch(e); - const moveY = touch.touchY - data.startY; - if (data.isTouchFromZPaging && ((data.isReachedTop && moveY > 0) || (data.isIosAndH5 && !data.isUsePageScroll && moveY < 0))) { - if (e.cancelable && !e.defaultPrevented) { - e.preventDefault(); - } - } - }, - _removeAllEventListener(){ - window.removeEventListener('touchstart'); - window.removeEventListener('touchmove'); - } - } -}; diff --git a/src/uni_modules/z-paging/components/z-paging/wxs/z-paging-wxs.wxs b/src/uni_modules/z-paging/components/z-paging/wxs/z-paging-wxs.wxs deleted file mode 100644 index 4dbc64fe..00000000 --- a/src/uni_modules/z-paging/components/z-paging/wxs/z-paging-wxs.wxs +++ /dev/null @@ -1,340 +0,0 @@ -// [z-paging]微信小程序、QQ小程序、app-vue、h5上使用wxs实现自定义下拉刷新,降低逻辑层与视图层的通信折损,提升性能 - -var currentDis = 0; -var isPCFlag = -1; -var startY = -1; - -function propObserver(newValue, oldValue, ownerIns, ins) { - var state = ownerIns.getState() || {}; - state.currentIns = ins; - var dataset = ins.getDataset(); - var loading = dataset.loading == true; - if (newValue && newValue.indexOf('end') != -1) { - var transition = newValue.split('end')[0]; - _setTransform('translateY(0px)', ins, false, transition); - state.moveDis = 0; - state.oldMoveDis = 0; - currentDis = 0; - } else if (newValue && newValue.indexOf('begin') != -1) { - var refresherThreshold = ins.getDataset().refresherthreshold; - _setTransformValue(refresherThreshold, ins, state, false); - } -} - -function touchstart(e, ownerIns) { - var ins = _getIns(ownerIns); - var state = {}; - var dataset = {}; - ownerIns.callMethod('_handleListTouchstart'); - if (ins) { - state = ins.getState(); - dataset = ins.getDataset(); - if (_touchDisabled(e, ins, 0)) return; - } - var isTouchEnded = state.isTouchEnded; - state.oldMoveDis = 0; - var touch = _getTouch(e); - var loading = _isTrue(dataset.loading); - state.startY = touch.touchY; - startY = state.startY; - state.lastTouch = touch; - if (!loading && isTouchEnded) { - state.isTouchmoving = false; - } - state.isTouchEnded = false; - ownerIns.callMethod('_handleRefresherTouchstart', touch); -} - -function touchmove(e, ownerIns) { - var touch = _getTouch(e); - var ins = _getIns(ownerIns); - var dataset = ins.getDataset(); - var refresherThreshold = dataset.refresherthreshold; - var isIos = _isTrue(dataset.isios); - var state = ins.getState(); - var watchTouchDirectionChange = _isTrue(dataset.watchtouchdirectionchange); - var moveDisObj = {}; - var moveDis = 0; - var prevent = false; - if (watchTouchDirectionChange) { - moveDisObj = _getMoveDis(e, ins); - moveDis = moveDisObj.currentDis; - prevent = moveDisObj.isDown; - var direction = prevent ? 'top' : 'bottom'; - if (prevent == state.oldTouchDirection && prevent != state.oldEmitedTouchDirection) { - ownerIns.callMethod('_handleTouchDirectionChange', { direction: direction }); - state.oldEmitedTouchDirection = prevent; - } - state.oldTouchDirection = prevent; - } - if (_touchDisabled(e, ins, 1)) { - _handlePullingDown(state, ownerIns, false); - return true; - } - if (!_getAngleIsInRange(e, touch, state, dataset)) { - _handlePullingDown(state, ownerIns, false); - return true; - } - moveDisObj = _getMoveDis(e, ins); - moveDis = moveDisObj.currentDis; - prevent = moveDisObj.isDown; - if (moveDis < 0) { - _setTransformValue(0, ins, state, false); - _handlePullingDown(state, ownerIns, false); - return true; - } - if (prevent && !state.disabledBounce) { - ownerIns.callMethod('_handleScrollViewDisableBounce', {bounce: false}); - state.disabledBounce = true; - _handlePullingDown(state, ownerIns, prevent); - return !prevent; - } - _setTransformValue(moveDis, ins, state, false); - var oldRefresherStatus = state.refresherStatus; - var oldIsTouchmoving = _isTrue(dataset.oldistouchmoving); - var hasTouchmove = _isTrue(dataset.hastouchmove); - var isTouchmoving = state.isTouchmoving; - state.refresherStatus = moveDis >= refresherThreshold ? 1 : 0; - if (!isTouchmoving) { - state.isTouchmoving = true; - isTouchmoving = true; - } - if (state.isTouchEnded) { - state.isTouchEnded = false; - } - if (hasTouchmove) { - ownerIns.callMethod('_handleWxsPullingDown', { moveDis:moveDis, diffDis:moveDisObj.diffDis }); - } - if (oldRefresherStatus == undefined || oldRefresherStatus != state.refresherStatus || oldIsTouchmoving != isTouchmoving) { - ownerIns.callMethod('_handleRefresherTouchmove', moveDis, touch); - } - _handlePullingDown(state, ownerIns, prevent); - return !prevent; -} - -function touchend(e, ownerIns) { - var touch = _getTouch(e); - var ins = _getIns(ownerIns); - var dataset = ins.getDataset(); - var state = ins.getState(); - if (_touchDisabled(e, ins, 2)) return; - state.reachMaxAngle = true; - state.hitReachMaxAngleCount = 0; - state.disabledBounce = false; - state.fixedIsTopHitCount = 0; - if (!state.isTouchmoving) return; - var oldRefresherStatus = state.refresherStatus; - var oldMoveDis = state.moveDis; - var refresherThreshold = ins.getDataset().refresherthreshold - var moveDis = _getMoveDis(e, ins).currentDis; - if (!(moveDis >= refresherThreshold && oldRefresherStatus === 1)) { - state.isTouchmoving = false; - } - ownerIns.callMethod('_handleRefresherTouchend', moveDis); - state.isTouchEnded = true; - if (oldMoveDis < refresherThreshold) return; - var animate = false; - if (moveDis >= refresherThreshold) { - moveDis = refresherThreshold; - animate = true; - } - _setTransformValue(moveDis, ins, state, animate); -} - -// #ifdef H5 -function isPC() { - if (!navigator) return false; - if (isPCFlag != -1) return isPCFlag; - var agents = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"]; - isPCFlag = agents.every(function(item) { return navigator.userAgent.indexOf(item) < 0 }); - return isPCFlag; -} - -var movable = false; - -function mousedown(e, ins) { - if (!isPC()) return; - touchstart(e, ins); - movable = true; -} - -function mousemove(e, ins) { - if (!isPC() || !movable) return; - touchmove(e, ins); -} - -function mouseup(e, ins) { - if (!isPC()) return; - touchend(e, ins); - movable = false; -} - -function mouseleave(e, ins) { - if (!isPC()) return; - movable = false; -} -// #endif - - -function _setTransformValue(value, ins, state, animate) { - value = value || 0; - if (state.moveDis == value) return; - state.moveDis = value; - _setTransform('translateY(' + value + 'px)', ins, animate, ''); -} - -function _setTransform(transform, ins, animate, transition) { - var dataset = ins.getDataset(); - if (_isTrue(dataset.refreshernotransform)) return; - transform = transform == 'translateY(0px)' ? 'none' : transform; - ins.requestAnimationFrame(function() { - var stl = { 'transform': transform }; - if (animate) { - stl['transition'] = 'transform .1s linear'; - } - if (transition.length) { - stl['transition'] = transition; - } - ins.setStyle(stl); - }) -} - -function _getMoveDis(e, ins) { - var state = ins.getState(); - var refresherThreshold = parseFloat(ins.getDataset().refresherthreshold); - var refresherOutRate = parseFloat(ins.getDataset().refresheroutrate); - var refresherPullRate = parseFloat(ins.getDataset().refresherpullrate); - var touch = _getTouch(e); - var currentStartY = !state.startY || state.startY == 'NaN' ? startY : state.startY; - var moveDis = touch.touchY - currentStartY; - var oldMoveDis = state.oldMoveDis || 0; - state.oldMoveDis = moveDis; - var diffDis = moveDis - oldMoveDis; - if (diffDis > 0) { - diffDis = diffDis * refresherPullRate; - if (currentDis > refresherThreshold) { - diffDis = diffDis * (1 - refresherOutRate); - } - } - diffDis = diffDis > 100 ? diffDis / 100 : (diffDis > 20 ? diffDis / 1.2 : diffDis); - currentDis += diffDis; - currentDis = Math.max(0, currentDis); - return { - currentDis: currentDis, - diffDis: diffDis, - isDown: diffDis > 0 - }; -} - -function _getTouch(e) { - var touch = e; - if (e.touches && e.touches.length) { - touch = e.touches[0]; - } else if (e.changedTouches && e.changedTouches.length) { - touch = e.changedTouches[0]; - } else if (e.datail && e.datail != {}) { - touch = e.datail; - } - return { - touchX: touch.clientX, - touchY: touch.clientY - }; -} - -function _getIns(ownerIns) { - var ins = ownerIns.getState().currentIns; - if (!ins) { - ownerIns.callMethod('_handlePropUpdate'); - } - return ins; -} - -function _touchDisabled(e, ins, processTag) { - var dataset = ins.getDataset(); - var state = ins.getState(); - var loading = _isTrue(dataset.loading); - var useChatRecordMode = _isTrue(dataset.usechatrecordmode); - var refresherEnabled = _isTrue(dataset.refresherenabled); - var useCustomRefresher = _isTrue(dataset.usecustomrefresher); - var usePageScroll = _isTrue(dataset.usepagescroll); - var pageScrollTop = parseFloat(dataset.pagescrolltop); - var scrollTop = parseFloat(dataset.scrolltop); - var finalScrollTop = usePageScroll ? pageScrollTop : scrollTop; - var fixedIsTop = false; - var isIos = _isTrue(dataset.isios); - if (!isIos && finalScrollTop == (state.startScrollTop || 0) && finalScrollTop <= 105) { - fixedIsTop = true; - } - var fixedIsTopHitCount = state.fixedIsTopHitCount || 0; - if (fixedIsTop) { - fixedIsTopHitCount ++; - if (fixedIsTopHitCount <= 2) { - fixedIsTop = false; - } - state.fixedIsTopHitCount = fixedIsTopHitCount; - } else { - state.fixedIsTopHitCount = 0; - } - if (!isIos && processTag === 0) { - state.startScrollTop = finalScrollTop || 0; - } - if (!isIos && processTag === 2) { - fixedIsTop = true; - } - return loading || useChatRecordMode || !refresherEnabled || !useCustomRefresher || - ((usePageScroll && useCustomRefresher && pageScrollTop > 5) && !fixedIsTop) || - ((!usePageScroll && useCustomRefresher && scrollTop > 5) && !fixedIsTop); -} - -function _getAngleIsInRange(e, touch, state, dataset) { - var maxAngle = dataset.refreshermaxangle; - var refresherAecc = _isTrue(dataset.refresheraecc); - var lastTouch = state.lastTouch; - var reachMaxAngle = state.reachMaxAngle; - var moveDis = state.oldMoveDis; - if (!lastTouch) return true; - if (maxAngle >= 0 && maxAngle <= 90 && lastTouch) { - if ((!moveDis || moveDis < 1) && !refresherAecc && reachMaxAngle != null && !reachMaxAngle) return false; - var x = Math.abs(touch.touchX - lastTouch.touchX); - var y = Math.abs(touch.touchY - lastTouch.touchY); - var z = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)); - if ((x || y) && x > 1) { - var angle = Math.asin(y / z) / Math.PI * 180; - if (angle < maxAngle) { - var hitReachMaxAngleCount = state.hitReachMaxAngleCount || 0; - state.hitReachMaxAngleCount = ++hitReachMaxAngleCount; - if (state.hitReachMaxAngleCount > 2) { - state.lastTouch = touch; - state.reachMaxAngle = false; - } - return false; - } - } - } - state.lastTouch = touch; - return true; -} - -function _handlePullingDown(state, ins, onPullingDown) { - var oldOnPullingDown = state.onPullingDown || false; - if (oldOnPullingDown != onPullingDown) { - ins.callMethod('_handleWxsPullingDownStatusChange', onPullingDown); - } - state.onPullingDown = onPullingDown; -} - -function _isTrue(value) { - value = (typeof(value) === 'string' ? JSON.parse(value) : value) || false; - return value == true || value == 'true'; -} - -module.exports = { - touchstart: touchstart, - touchmove: touchmove, - touchend: touchend, - mousedown: mousedown, - mousemove: mousemove, - mouseup: mouseup, - mouseleave: mouseleave, - propObserver: propObserver -} diff --git a/src/uni_modules/z-paging/components/z-paging/z-paging.vue b/src/uni_modules/z-paging/components/z-paging/z-paging.vue deleted file mode 100644 index 30d48f8c..00000000 --- a/src/uni_modules/z-paging/components/z-paging/z-paging.vue +++ /dev/null @@ -1,307 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/src/uni_modules/z-tabs/package.json b/src/uni_modules/z-tabs/package.json deleted file mode 100644 index 51773e5e..00000000 --- a/src/uni_modules/z-tabs/package.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "id": "z-tabs", - "name": "z-tabs", - "displayName": "【z-tabs】一个简单轻量的tabs组件", - "version": "0.2.5", - "description": "全平台兼容,支持nvue、vue3", - "keywords": [ - "tabs" -], - "repository": "https://github.com/SmileZXLee/uni-z-tabs", - "engines": { - "HBuilderX": "^3.0.7" - }, -"dcloudext": { - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "393727164" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/@zxlee/z-tabs", - "type": "component-vue" - }, - "uni_modules": { - "dependencies": [], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y", - "钉钉": "y", - "快手": "y", - "飞书": "y", - "京东": "y" - }, - "快应用": { - "华为": "y", - "联盟": "y" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} \ No newline at end of file diff --git a/src/uni_modules/z-tabs/readme.md b/src/uni_modules/z-tabs/readme.md deleted file mode 100644 index 41d563f1..00000000 --- a/src/uni_modules/z-tabs/readme.md +++ /dev/null @@ -1,175 +0,0 @@ -# z-tabs - -[![version](https://img.shields.io/badge/version-0.2.5-blue)](https://github.com/SmileZXLee/uni-z-tabs) -[![license](https://img.shields.io/github/license/SmileZXLee/uni-z-tabs)](https://en.wikipedia.org/wiki/MIT_License) - -*** - -### 反馈qq群(点击加群):[790460711](https://jq.qq.com/?_wv=1027&k=vU2fKZZH) - -*** - -## z-tabs文档 - -### 安装 - -#### 方式1(推荐):通过uni_modules安装,在插件市场中点击右上角【使用HbuilderX导入插件】即可。 - -*** - -#### 方式2:通过npm安装 - -```bash -//若项目之前未使用npm管理依赖(项目根目录下无package.json文件),先在项目根目录执行命令初始化npm工程 -npm init -y - -//安装 -npm install @zxlee/z-tabs --save -//更新 -npm update @zxlee/z-tabs -``` - -然后在`pages.json`中配置`easycom`(注意:下方配置只有在使用npm安装时才需要配置!!!!!) - -```json -"easycom": { - "^z-tabs": "@zxlee/z-tabs/components/z-tabs/z-tabs.vue" -} -``` - -### 基本使用 - -```html - - - -``` - - - -### props - -| 参数 | 说明 | 类型 | 默认值 | 可选值 | -| :------------------ | :----------------------------------------------------------- | :------------- | :------ | :----- | -| list | 数据源数组,支持形如`['tab1','tab2']`的格式或`[{name:'tab1',value:1}]`的格式 | Array | [] | - | -| current | 当前选中的index | Number\|String | 0 | - | -| scroll-count | list数组长度超过scrollCount时滚动显示(不自动铺满全屏) | Number\|String | 5 | - | -| tab-width | 自定义每个tab的宽度,默认为0,即代表根据内容自动撑开,单位rpx,支持传100、"100px"或"100rpx" | Number\|String | 0 | 0 | -| bar-width | 滑块宽度,单位rpx,支持传100、"100px"或"100rpx" | Number\|String | 45rpx | - | -| bar-height | 滑块高度,单位rpx,支持传100、"100px"或"100rpx" | Number\|String | 8rpx | - | -| bar-style | 滑块样式,其中的`width`和`height`将被`bar-width`和`bar-height`覆盖 | Object | {} | - | -| bottom-space | tabs与底部的间距,单位rpx,支持传100、"100px"或"100rpx" | Number\|String | 8rpx | - | -| bar-animate-mode | 【v0.1.5起支持】切换tab时滑块动画模式,与`swiper`联动时有效,点击切换tab时无效,必须调用`setDx`。默认为`line`,即切换tab时滑块宽度保持不变,线性运动。可选值为`worm`,即为类似毛毛虫蠕动效果 | String | line | worm | -| name-key | list中item的name(标题)的key | String | name | - | -| value-key | list中item的value的key | String | value | - | -| active-color | 激活状态tab的颜色 | String | #007AFF | - | -| inactive-color | 未激活状态tab的颜色 | String | #666666 | - | -| disabled-color | 禁用状态tab的颜色 | String | #bbbbbb | - | -| active-style | 激活状态tab的样式 | Object | {} | - | -| inactive-style | 未激活状态tab的样式 | Object | {} | - | -| disabled-style | 禁用状态tab的样式 | Object | {} | - | -| badge-max-count | 徽标数最大数字限制,超过这个数字将变成`badge-max-count`+ | Number\|String | 99 | - | -| badge-style | 徽标样式,例如可自定义背景色,字体等等 | Object | {} | - | -| bg-color | z-tabs背景色 | String | white | - | -| tabs-style | z-tabs样式 | Object | {} | - | -| init-trigger-change | 初始化时是否自动触发change事件 | Boolean | true | false | - - -### events - -| 事件名 | 说明 | 回调参数 | -| ------------ | -------------------- | ------------------------------------------------------------ | -| @change | tabs改变(点击)时触发 | `参数1`:index(当前切换到的index);
`参数2`:value(当前切换到的value) | -| @secondClick | tabs二次点击时触发 | `参数1`:index(当前切换到的index);
`参数2`:value(当前切换到的value) | - -### methods - -| 方法名 | 说明 | 参数 | -| ------------------- | ------------------------------------------------------------ | -------------------------------------- | -| setDx | 根据swiper的`@transition`实时更新底部dot位置 | swiper的`@transition`中的`e.detail.dx` | -| unlockDx | 在swiper的`@animationfinish`中通知`z-tabs`结束多`setDx`的锁定,若在父组件中调用了`setDx`,则必须调用`unlockDx` | - | -| updateSubviewLayout | 在nvue+安卓中,若在cell中使用`z-tabs`,且页面加载时cell在屏幕之外,因cell的复用机制,可能导致`z-tabs`内部的布局失效:例如底部bar无法显示,此时可在list滚动到一定区域内(例如快显示`z-tabs`)的时候调用此方法以更新其内部布局。其他情况无需调用! | - | - -### slots - -| 名称 | 说明 | -| :---- | ------------ | -| left | tabs左侧插槽 | -| right | tabs右侧插槽 | - -### 支持全局配置 - -* 在`/z-tabs/components/z-tabs/config/index.js`文件中进行配置 - -```js -export default { - 'active-color': 'red' -} -``` - -### 【v0.1.4起支持】底部dot与swiper联动演示 - -```html -