| | |
| | | }, |
| | | |
| | | openSplitDialog() { |
| | | console.log('å¼å§æå¼æå
å¼¹çª'); |
| | | |
| | | if (this.isOpeningDialog) { |
| | | console.log('æ£å¨æå¼å¼¹çªï¼è·³è¿'); |
| | | return; |
| | | } |
| | | console.log('ç´§æ¥ä¿®å¤çï¼æå¼æå
å¼¹çª'); |
| | | |
| | | if (!this.scanData.palletCode) { |
| | | this.$message.warning('请å
æ«ææçç '); |
| | | return; |
| | | } |
| | | |
| | | this.isOpeningDialog = true; |
| | | // 1. å
³éææVueå¼¹çª |
| | | this.closeAllDialogs(); |
| | | |
| | | // 2. 强å¶ä»DOMä¸ç§»é¤ææå¼¹çª |
| | | setTimeout(() => { |
| | | const dialogs = document.querySelectorAll('.custom-dialog-overlay'); |
| | | dialogs.forEach(dialog => { |
| | | if (dialog.parentNode) { |
| | | dialog.parentNode.removeChild(dialog); |
| | | } |
| | | }); |
| | | |
| | | // 妿已ç»å卿å¨å¼¹çªï¼å
ç§»é¤ |
| | | if (this.manualDialog && this.manualDialog.parentNode) { |
| | | this.manualDialog.parentNode.removeChild(this.manualDialog); |
| | | } |
| | | |
| | | // 3. çå¾
ä¸å¸§ |
| | | requestAnimationFrame(() => { |
| | | // 4. ç´æ¥å建æ°å¼¹çªï¼ä¸ä¾èµVueçååºå¼ç³»ç» |
| | | this.createManualSplitDialog(); |
| | | }); |
| | | }, 10); |
| | | }, |
| | | |
| | | // å建æå¨æå
å¼¹çª |
| | | createManualSplitDialog() { |
| | | const newDialog = document.createElement('div'); |
| | | newDialog.className = 'custom-dialog-overlay emergency-fix'; |
| | | |
| | | // çæéæºIDç¨äºäºä»¶ç»å® |
| | | const dialogId = 'manual-dialog-' + Date.now(); |
| | | newDialog.id = dialogId; |
| | | |
| | | // åå¨å¼ç¨ |
| | | this.manualDialog = newDialog; |
| | | |
| | | // å¼¹çªå
容 |
| | | newDialog.innerHTML = ` |
| | | <div class="custom-dialog-wrapper"> |
| | | <div class="custom-dialog" style="width: 500px;"> |
| | | <div class="custom-dialog-header"> |
| | | <h3 style="margin: 0; color: #303133;">æå
æä½</h3> |
| | | <button class="close-button" onclick="document.getElementById('${dialogId}').remove()" style=" |
| | | font-size: 18px; |
| | | color: #909399; |
| | | padding: 0; |
| | | width: 24px; |
| | | height: 24px; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | background: none; |
| | | border: none; |
| | | cursor: pointer; |
| | | ">Ã</button> |
| | | </div> |
| | | <div class="custom-dialog-body" style="padding: 20px;"> |
| | | <div style="margin-bottom: 15px;"> |
| | | <div style="display: flex; align-items: center; margin-bottom: 5px;"> |
| | | <span style="width: 100px; text-align: right; padding-right: 12px; color: #606266;">订åç¼å·:</span> |
| | | <input type="text" value="${this.scanData.orderNo}" disabled style=" |
| | | flex: 1; |
| | | padding: 8px 12px; |
| | | border: 1px solid #dcdfe6; |
| | | border-radius: 4px; |
| | | background-color: #f5f7fa; |
| | | color: #909399; |
| | | "> |
| | | </div> |
| | | </div> |
| | | |
| | | <div style="margin-bottom: 15px;"> |
| | | <div style="display: flex; align-items: center; margin-bottom: 5px;"> |
| | | <span style="width: 100px; text-align: right; padding-right: 12px; color: #606266;">æçç¼å·:</span> |
| | | <input type="text" value="${this.scanData.palletCode}" disabled style=" |
| | | flex: 1; |
| | | padding: 8px 12px; |
| | | border: 1px solid #dcdfe6; |
| | | border-radius: 4px; |
| | | background-color: #f5f7fa; |
| | | color: #909399; |
| | | "> |
| | | </div> |
| | | </div> |
| | | |
| | | <div style="margin-bottom: 15px;"> |
| | | <div style="display: flex; align-items: center; margin-bottom: 5px;"> |
| | | <span style="width: 100px; text-align: right; padding-right: 12px; color: #606266;">åæ¡ç :</span> |
| | | <div style="flex: 1; display: flex; align-items: center; gap: 10px;"> |
| | | <input type="text" id="${dialogId}-barcode" placeholder="æ«æåæ¡ç " style=" |
| | | flex: 1; |
| | | padding: 8px 12px; |
| | | border: 1px solid #dcdfe6; |
| | | border-radius: 4px; |
| | | "> |
| | | <button id="${dialogId}-viewChain" style=" |
| | | padding: 8px 16px; |
| | | background: #409eff; |
| | | color: white; |
| | | border: none; |
| | | border-radius: 4px; |
| | | cursor: pointer; |
| | | white-space: nowrap; |
| | | ">æ¥çæå
é¾</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div style="margin-bottom: 15px;"> |
| | | <div style="display: flex; align-items: center; margin-bottom: 5px;"> |
| | | <span style="width: 100px; text-align: right; padding-right: 12px; color: #606266;">ç©æç¼ç :</span> |
| | | <input type="text" id="${dialogId}-materiel" disabled style=" |
| | | flex: 1; |
| | | padding: 8px 12px; |
| | | border: 1px solid #dcdfe6; |
| | | border-radius: 4px; |
| | | background-color: #f5f7fa; |
| | | color: #909399; |
| | | "> |
| | | </div> |
| | | </div> |
| | | |
| | | <div style="margin-bottom: 15px;"> |
| | | <div style="display: flex; align-items: center; margin-bottom: 5px;"> |
| | | <span style="width: 100px; text-align: right; padding-right: 12px; color: #606266;">å©ä½æ°é:</span> |
| | | <input type="text" id="${dialogId}-remain" disabled style=" |
| | | flex: 1; |
| | | padding: 8px 12px; |
| | | border: 1px solid #dcdfe6; |
| | | border-radius: 4px; |
| | | background-color: #f5f7fa; |
| | | color: #909399; |
| | | "> |
| | | </div> |
| | | </div> |
| | | |
| | | <div style="margin-bottom: 15px;"> |
| | | <div style="display: flex; align-items: center; margin-bottom: 5px;"> |
| | | <span style="width: 100px; text-align: right; padding-right: 12px; color: #606266;">æå
æ°é:</span> |
| | | <div style="flex: 1;"> |
| | | <input type="number" id="${dialogId}-splitQty" value="1" min="0.01" step="0.01" style=" |
| | | width: 100%; |
| | | padding: 8px 12px; |
| | | border: 1px solid #dcdfe6; |
| | | border-radius: 4px; |
| | | "> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="custom-dialog-footer" style=" |
| | | padding: 10px 20px 20px; |
| | | text-align: right; |
| | | border-top: 1px solid #ebeef5; |
| | | "> |
| | | <button id="${dialogId}-cancel" style=" |
| | | padding: 9px 15px; |
| | | background: white; |
| | | color: #606266; |
| | | border: 1px solid #dcdfe6; |
| | | border-radius: 4px; |
| | | cursor: pointer; |
| | | margin-right: 10px; |
| | | ">åæ¶</button> |
| | | <button id="${dialogId}-confirm" style=" |
| | | padding: 9px 15px; |
| | | background: #409eff; |
| | | color: white; |
| | | border: none; |
| | | border-radius: 4px; |
| | | cursor: pointer; |
| | | ">确认æå
</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | `; |
| | | |
| | | // æ·»å æ ·å¼ |
| | | newDialog.style.cssText = ` |
| | | position: fixed; |
| | | top: 0; |
| | | left: 0; |
| | | right: 0; |
| | | bottom: 0; |
| | | background: rgba(0,0,0,0.5); |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | z-index: 999999; |
| | | `; |
| | | |
| | | // å¼¹çªå®¹å¨æ ·å¼ |
| | | const wrapper = newDialog.querySelector('.custom-dialog-wrapper'); |
| | | if (wrapper) { |
| | | wrapper.style.position = 'relative'; |
| | | wrapper.style.zIndex = '1000000'; |
| | | } |
| | | |
| | | // å¼¹çªå
å®¹æ ·å¼ |
| | | const dialog = newDialog.querySelector('.custom-dialog'); |
| | | if (dialog) { |
| | | dialog.style.background = 'white'; |
| | | dialog.style.borderRadius = '4px'; |
| | | dialog.style.maxWidth = '90vw'; |
| | | dialog.style.maxHeight = '90vh'; |
| | | dialog.style.boxShadow = '0 2px 12px 0 rgba(0, 0, 0, 0.1)'; |
| | | dialog.style.overflow = 'auto'; |
| | | } |
| | | |
| | | // å¼¹çªå¤´é¨æ ·å¼ |
| | | const header = newDialog.querySelector('.custom-dialog-header'); |
| | | if (header) { |
| | | header.style.display = 'flex'; |
| | | header.style.justifyContent = 'space-between'; |
| | | header.style.alignItems = 'center'; |
| | | header.style.padding = '20px 20px 10px'; |
| | | header.style.borderBottom = '1px solid #ebeef5'; |
| | | } |
| | | |
| | | document.body.appendChild(newDialog); |
| | | console.log('ç´§æ¥å¼¹çªå·²å建'); |
| | | |
| | | // ç»å®äºä»¶ |
| | | this.bindManualDialogEvents(dialogId); |
| | | |
| | | // èªå¨èç¦å°æ¡ç è¾å
¥æ¡ |
| | | setTimeout(() => { |
| | | const barcodeInput = document.getElementById(`${dialogId}-barcode`); |
| | | if (barcodeInput) { |
| | | barcodeInput.focus(); |
| | | // æ·»å å车é®çå¬ |
| | | barcodeInput.addEventListener('keyup', (event) => { |
| | | if (event.key === 'Enter') { |
| | | this.onManualSplitBarcodeScan(dialogId); |
| | | } |
| | | }); |
| | | } |
| | | }, 100); |
| | | }, |
| | | |
| | | // ç»å®æå¨å¼¹çªäºä»¶ |
| | | bindManualDialogEvents(dialogId) { |
| | | const vm = this; // ä¿åVueå®ä¾å¼ç¨ |
| | | |
| | | // æ¥çæå
é¾æé® |
| | | const viewChainBtn = document.getElementById(`${dialogId}-viewChain`); |
| | | if (viewChainBtn) { |
| | | viewChainBtn.onclick = () => { |
| | | const barcodeInput = document.getElementById(`${dialogId}-barcode`); |
| | | if (barcodeInput && barcodeInput.value.trim()) { |
| | | vm.viewSplitChainFromManualDialog(barcodeInput.value.trim(), dialogId); |
| | | } else { |
| | | ElMessage.warning('请å
è¾å
¥æ¡ç '); |
| | | } |
| | | }; |
| | | } |
| | | |
| | | // åæ¶æé® |
| | | const cancelBtn = document.getElementById(`${dialogId}-cancel`); |
| | | if (cancelBtn) { |
| | | cancelBtn.onclick = () => { |
| | | const dialog = document.getElementById(dialogId); |
| | | if (dialog && dialog.parentNode) { |
| | | dialog.parentNode.removeChild(dialog); |
| | | } |
| | | }; |
| | | } |
| | | |
| | | // 确认æå
æé® |
| | | const confirmBtn = document.getElementById(`${dialogId}-confirm`); |
| | | if (confirmBtn) { |
| | | confirmBtn.onclick = () => { |
| | | vm.handleManualSplitPackage(dialogId); |
| | | }; |
| | | } |
| | | |
| | | // æ¡ç è¾å
¥æ¡ååäºä»¶ |
| | | const barcodeInput = document.getElementById(`${dialogId}-barcode`); |
| | | if (barcodeInput) { |
| | | // 鲿å¤ç |
| | | let timeout; |
| | | barcodeInput.addEventListener('input', () => { |
| | | clearTimeout(timeout); |
| | | timeout = setTimeout(() => { |
| | | if (barcodeInput.value.trim()) { |
| | | vm.onManualSplitBarcodeScan(dialogId); |
| | | } |
| | | }, 500); |
| | | }); |
| | | } |
| | | }, |
| | | |
| | | // æå¨å¼¹çªçæ¡ç æ«æå¤ç |
| | | async onManualSplitBarcodeScan(dialogId) { |
| | | const barcodeInput = document.getElementById(`${dialogId}-barcode`); |
| | | if (!barcodeInput || !barcodeInput.value.trim()) return; |
| | | |
| | | const barcode = barcodeInput.value.trim(); |
| | | |
| | | try { |
| | | // æ¹æ³1: ä½¿ç¨ setTimeout ç¡®ä¿å¼æ¥æ§è¡ |
| | | setTimeout(() => { |
| | | console.log('æ§è¡å¼¹çªæå¼é»è¾'); |
| | | const res = await http.post('/api/OutboundBatchPicking/split-package-info', { |
| | | orderNo: this.scanData.orderNo, |
| | | palletCode: this.scanData.palletCode, |
| | | barcode: barcode |
| | | }); |
| | | |
| | | if (res.status) { |
| | | // æ´æ°ç©æç¼ç |
| | | const materielInput = document.getElementById(`${dialogId}-materiel`); |
| | | if (materielInput) { |
| | | materielInput.value = res.data.materielCode || ''; |
| | | } |
| | | |
| | | // å
å
³éææå¼¹çª |
| | | this.closeAllDialogsImmediately(); |
| | | // æ´æ°å©ä½æ°é |
| | | const remainInput = document.getElementById(`${dialogId}-remain`); |
| | | if (remainInput) { |
| | | remainInput.value = res.data.remainQuantity || 0; |
| | | } |
| | | |
| | | // ä½¿ç¨ requestAnimationFrame ç¡®ä¿å¨ä¸ä¸å¸§æå¼ |
| | | requestAnimationFrame(() => { |
| | | console.log('设置弹çªç¶æä¸º true'); |
| | | |
| | | // é置表å |
| | | this.resetSplitForm(); |
| | | this.splitForm.orderNo = this.scanData.orderNo; |
| | | this.splitForm.palletCode = this.scanData.palletCode; |
| | | |
| | | // å
³é®ï¼ç´æ¥è®¾ç½®å¼¹çªç¶æ |
| | | this.showCustomSplitDialog = true; |
| | | |
| | | console.log('å¼¹çªç¶æå·²è®¾ç½®ï¼çå¾
DOMæ´æ°'); |
| | | |
| | | // ä½¿ç¨ nextTick ç¡®ä¿DOMæ´æ°å®æ |
| | | this.$nextTick(() => { |
| | | console.log('DOMæ´æ°å®æï¼å¼¹çªåºè¯¥æ¾ç¤ºäº'); |
| | | this.isOpeningDialog = false; |
| | | |
| | | // å°è¯èç¦å°è¾å
¥æ¡ |
| | | setTimeout(() => { |
| | | const input = this.$refs.splitFormRef?.$el?.querySelector('input'); |
| | | if (input) { |
| | | input.focus(); |
| | | console.log('è¾å
¥æ¡å·²èç¦'); |
| | | } |
| | | }, 100); |
| | | }); |
| | | }); |
| | | }, 0); |
| | | |
| | | // æ´æ°æå
æ°éï¼é»è®¤ä¸º1ï¼ä¸è¶
è¿å©ä½æ°éï¼ |
| | | const splitQtyInput = document.getElementById(`${dialogId}-splitQty`); |
| | | if (splitQtyInput) { |
| | | const maxQty = res.data.remainQuantity || 0; |
| | | splitQtyInput.max = maxQty; |
| | | const currentVal = parseFloat(splitQtyInput.value) || 1; |
| | | if (currentVal > maxQty) { |
| | | splitQtyInput.value = Math.min(1, maxQty); |
| | | } |
| | | } |
| | | } else { |
| | | ElMessage.error(res.message || 'è·åæå
ä¿¡æ¯å¤±è´¥'); |
| | | } |
| | | } catch (error) { |
| | | console.error('æå¼æå
å¼¹çªåºé:', error); |
| | | this.isOpeningDialog = false; |
| | | console.error('è·åæå
ä¿¡æ¯å¤±è´¥:', error); |
| | | ElMessage.error('è·åæå
ä¿¡æ¯å¤±è´¥'); |
| | | } |
| | | }, |
| | | |
| | | // 仿å¨å¼¹çªæ¥çæå
é¾ |
| | | viewSplitChainFromManualDialog(barcode, dialogId) { |
| | | // å
å
³éæå¨å¼¹çª |
| | | const dialog = document.getElementById(dialogId); |
| | | if (dialog && dialog.parentNode) { |
| | | dialog.parentNode.removeChild(dialog); |
| | | } |
| | | |
| | | // å»¶è¿ä¸ä¸ï¼ç¶åæå¼Vueçæå
é¾å¼¹çª |
| | | setTimeout(() => { |
| | | this.viewSplitChain(barcode); |
| | | }, 50); |
| | | }, |
| | | |
| | | // å¤çæå¨å¼¹çªçæå
æä½ |
| | | async handleManualSplitPackage(dialogId) { |
| | | const barcodeInput = document.getElementById(`${dialogId}-barcode`); |
| | | const splitQtyInput = document.getElementById(`${dialogId}-splitQty`); |
| | | |
| | | if (!barcodeInput || !barcodeInput.value.trim()) { |
| | | ElMessage.warning('请è¾å
¥åæ¡ç '); |
| | | return; |
| | | } |
| | | |
| | | if (!splitQtyInput || !splitQtyInput.value || parseFloat(splitQtyInput.value) <= 0) { |
| | | ElMessage.warning('请è¾å
¥ææçæå
æ°é'); |
| | | return; |
| | | } |
| | | |
| | | const originalBarcode = barcodeInput.value.trim(); |
| | | const splitQuantity = parseFloat(splitQtyInput.value); |
| | | |
| | | try { |
| | | // æ¾ç¤ºå è½½ç¶æ |
| | | const confirmBtn = document.getElementById(`${dialogId}-confirm`); |
| | | if (confirmBtn) { |
| | | confirmBtn.disabled = true; |
| | | confirmBtn.textContent = 'å¤çä¸...'; |
| | | } |
| | | |
| | | const res = await http.post('/api/OutboundBatchPicking/split-package', { |
| | | orderNo: this.scanData.orderNo, |
| | | palletCode: this.scanData.palletCode, |
| | | originalBarcode: originalBarcode, |
| | | splitQuantity: splitQuantity |
| | | }); |
| | | |
| | | if (res.status) { |
| | | ElMessage.success('æå
æå'); |
| | | |
| | | // å
³éæå¨å¼¹çª |
| | | const dialog = document.getElementById(dialogId); |
| | | if (dialog && dialog.parentNode) { |
| | | dialog.parentNode.removeChild(dialog); |
| | | } |
| | | |
| | | // éæ°å è½½æ°æ® |
| | | await this.loadPalletData(); |
| | | } else { |
| | | ElMessage.error(res.message || 'æå
失败'); |
| | | |
| | | // æ¢å¤æé®ç¶æ |
| | | if (confirmBtn) { |
| | | confirmBtn.disabled = false; |
| | | confirmBtn.textContent = '确认æå
'; |
| | | } |
| | | } |
| | | } catch (error) { |
| | | console.error('æå
失败:', error); |
| | | ElMessage.error('æå
失败'); |
| | | |
| | | // æ¢å¤æé®ç¶æ |
| | | const confirmBtn = document.getElementById(`${dialogId}-confirm`); |
| | | if (confirmBtn) { |
| | | confirmBtn.disabled = false; |
| | | confirmBtn.textContent = '确认æå
'; |
| | | } |
| | | } |
| | | }, |
| | | closeAllDialogsImmediately() { |
| | |
| | | closeAllDialogs() { |
| | | this.activeDialog = null; |
| | | // ç¡®ä¿ææå¼¹çªç¶æé½è¢«éç½® |
| | | // å
³éVueå¼¹çª |
| | | this.showCustomSplitDialog = false; |
| | | this.showRevertSplitDialog = false; |
| | | this.showBatchReturnDialog = false; |
| | | this.showEmptyPalletDialog = false; |
| | | this.showSplitChainDialog = false; |
| | | |
| | | // å
³éæå¨å¼¹çª |
| | | if (this.manualDialog && this.manualDialog.parentNode) { |
| | | this.manualDialog.parentNode.removeChild(this.manualDialog); |
| | | this.manualDialog = null; |
| | | } |
| | | |
| | | // ç§»é¤ææç´§æ¥å¼¹çª |
| | | const emergencyDialogs = document.querySelectorAll('.emergency-fix'); |
| | | emergencyDialogs.forEach(dialog => { |
| | | if (dialog.parentNode) { |
| | | dialog.parentNode.removeChild(dialog); |
| | | } |
| | | }); |
| | | }, |
| | | |
| | | // ååºç¸å
³æ¹æ³ |
| | |
| | | width: 100%; |
| | | } |
| | | } |
| | | |
| | | /* åæçæ ·å¼ä¿æä¸å */ |
| | | .OutboundPicking-container { |
| | | padding: 20px; |
| | | } |
| | | |
| | | .scanner-form { |
| | | display: flex; |
| | | gap: 10px; |
| | | align-items: center; |
| | | flex-wrap: wrap; |
| | | } |
| | | |
| | | .scanner-form .el-input { |
| | | width: 200px; |
| | | } |
| | | |
| | | .summary-info { |
| | | display: flex; |
| | | gap: 20px; |
| | | flex-wrap: wrap; |
| | | } |
| | | |
| | | .table-actions { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | margin-bottom: 10px; |
| | | padding: 0 10px; |
| | | } |
| | | |
| | | .selection-count { |
| | | font-size: 12px; |
| | | color: #909399; |
| | | } |
| | | |
| | | /* åæçèªå®ä¹å¼¹çªæ ·å¼ */ |
| | | .custom-dialog-overlay { |
| | | position: fixed; |
| | | top: 0; |
| | | left: 0; |
| | | right: 0; |
| | | bottom: 0; |
| | | background-color: rgba(0, 0, 0, 0.5); |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | z-index: 2000; |
| | | } |
| | | |
| | | .custom-dialog-wrapper { |
| | | position: relative; |
| | | z-index: 2001; |
| | | } |
| | | |
| | | .custom-dialog { |
| | | background: white; |
| | | border-radius: 4px; |
| | | width: 500px; |
| | | max-width: 90vw; |
| | | max-height: 90vh; |
| | | box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1); |
| | | overflow: auto; |
| | | } |
| | | |
| | | .custom-dialog-header { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | padding: 20px 20px 10px; |
| | | border-bottom: 1px solid #ebeef5; |
| | | } |
| | | |
| | | .custom-dialog-header h3 { |
| | | margin: 0; |
| | | color: #303133; |
| | | } |
| | | |
| | | .close-button { |
| | | font-size: 18px; |
| | | color: #909399; |
| | | padding: 0; |
| | | width: 24px; |
| | | height: 24px; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | } |
| | | |
| | | .close-button:hover { |
| | | color: #409EFF; |
| | | background-color: transparent; |
| | | } |
| | | |
| | | .custom-dialog-body { |
| | | padding: 20px; |
| | | } |
| | | |
| | | .custom-dialog-footer { |
| | | padding: 10px 20px 20px; |
| | | text-align: right; |
| | | border-top: 1px solid #ebeef5; |
| | | } |
| | | |
| | | .custom-dialog-footer .el-button { |
| | | margin-left: 10px; |
| | | } |
| | | |
| | | @media (max-width: 768px) { |
| | | .custom-dialog { |
| | | width: 95vw; |
| | | margin: 10px; |
| | | } |
| | | |
| | | .scanner-form { |
| | | flex-direction: column; |
| | | align-items: stretch; |
| | | } |
| | | |
| | | .scanner-form .el-input { |
| | | width: 100%; |
| | | } |
| | | } |
| | | |
| | | /* æ°å¢ï¼æå¨å¼¹çªçæé®æ¬åææ */ |
| | | :deep(button) { |
| | | transition: all 0.3s; |
| | | } |
| | | |
| | | :deep(button:hover) { |
| | | opacity: 0.8; |
| | | } |
| | | |
| | | :deep(button:active) { |
| | | opacity: 0.6; |
| | | } |
| | | </style> |