Procházet zdrojové kódy

Merge branch 'dev_zyh' of United_Software/k_online_ui into dev

Jack Zhou před 10 měsíci
rodič
revize
326cd9bf2c
2 změnil soubory, kde provedl 3 přidání a 2 odebrání
  1. 2 1
      src/auto-imports.d.ts
  2. 1 1
      src/utils/table.ts

+ 2 - 1
src/auto-imports.d.ts

@@ -3,6 +3,7 @@
 // @ts-nocheck
 // noinspection JSUnusedGlobalSymbols
 // Generated by unplugin-auto-import
+// biome-ignore lint: disable
 export {}
 declare global {
   const $api: typeof import('@/api/index')['default']
@@ -68,6 +69,6 @@ declare global {
 // for type re-export
 declare global {
   // @ts-ignore
-  export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue'
+  export type { Component, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue'
   import('vue')
 }

+ 1 - 1
src/utils/table.ts

@@ -20,7 +20,7 @@ export const autoWidth = (tableData: VxeGridProps, grid: VxeGridInstance) => {
       if (column.title.length < 12) {
         width = column.title.length * 11 + 40
       } else if (column.title.length < 20) {
-        width = column.title.length * 8 + 40
+        width = column.title.length * 10 + 30
       } else {
         width = column.title.length * 7 + 40
       }