diff --git a/src/hooks/usePaging.ts b/src/hooks/usePaging.ts index 79361d4..e699da3 100644 --- a/src/hooks/usePaging.ts +++ b/src/hooks/usePaging.ts @@ -49,8 +49,6 @@ export function usePaging(options: Options) { lists: [] as any[], extend: {} as Record, calcWidth: ({ column }: Icolumn) => { - // console.log(column); - // if (!pager.lists?.length) return column.label; let propWidth = column.label.length * 14 + 30; diff --git a/src/install/directives/type.ts b/src/install/directives/type.ts index 471bd27..257084e 100644 --- a/src/install/directives/type.ts +++ b/src/install/directives/type.ts @@ -9,13 +9,15 @@ export default { mounted: async (el: HTMLElement, binding: any) => { var inputElements = el.getElementsByTagName("input")[0]; var { value } = binding; - inputElements.addEventListener("input", function (event) { + inputElements.addEventListener("change", function (event) { if (value == "code") { event.target.value = event.target.value.replace(/[\u4e00-\u9fa5]/g, ""); } else if (value == "unit") { event.target.value = event.target.value.replace(/\d+/g, ""); } else if (value == "account") { - event.target.value = event.target.value.match(/\d/g).join(""); + event.target.value = event.target.value.match(/\d/g) + ? event.target.value.match(/\d/g).join("") + : ""; } }); }, diff --git a/src/views/InvoicingRequests/edit.vue b/src/views/InvoicingRequests/edit.vue index d33ea89..0ceea30 100644 --- a/src/views/InvoicingRequests/edit.vue +++ b/src/views/InvoicingRequests/edit.vue @@ -142,8 +142,8 @@ - + diff --git a/src/views/administrative_payments/edit.vue b/src/views/administrative_payments/edit.vue index 1a00c06..f22da86 100644 --- a/src/views/administrative_payments/edit.vue +++ b/src/views/administrative_payments/edit.vue @@ -141,7 +141,8 @@ - + diff --git a/src/views/bank_account/edit.vue b/src/views/bank_account/edit.vue index 493a6f7..9dec016 100644 --- a/src/views/bank_account/edit.vue +++ b/src/views/bank_account/edit.vue @@ -28,7 +28,8 @@ - + diff --git a/src/views/bid_bidding_decision/index.vue b/src/views/bid_bidding_decision/index.vue index 7d2648c..2c26f36 100644 --- a/src/views/bid_bidding_decision/index.vue +++ b/src/views/bid_bidding_decision/index.vue @@ -64,8 +64,8 @@ show-overflow-tooltip /> - - + +