File tree Expand file tree Collapse file tree 5 files changed +24
-13
lines changed Expand file tree Collapse file tree 5 files changed +24
-13
lines changed Original file line number Diff line number Diff line change @@ -108,13 +108,14 @@ jobs:
108108          git push origin --delete gh-pages 
109109
110110name : Deploy 
111-         uses : peaceiris/actions-gh-pages@v2.5 .0 
112-         env :
113-           ACTIONS_DEPLOY_KEY : ${{secrets.ACTIONS_DEPLOY_KEY}} 
111+         uses : peaceiris/actions-gh-pages@v3.9 .0 
112+         with :
113+           deploy_key : ${{  secrets.ACTIONS_DEPLOY_KEY  }} 
114114          PUBLISH_BRANCH : gh-pages 
115115          PUBLISH_DIR : ./dist 
116-         with :
117-           forceOrphan : true 
116+           CNAME : vben.vvbin.cn 
117+ 
118+ 
118119
119120
120121
Original file line number Diff line number Diff line change 141141      } 
142142      //  缩放函数 
143143      function  scaleFunc(num :  number ) { 
144+         //  最小缩放 
145+         const =  0.02 ; 
146+         //  放大缩小的颗粒度 
147+         const =  0.1 ; 
144148        if  (imgState .imgScale  <=  0.2  &&  num  <  0 ) return ; 
145-         imgState .imgScale  +=  num ; 
149+         imgState .imgScale  +=  num  *  GRA ; 
150+         //  scale 不能 < 0,否则图片会倒置放大 
151+         if  (imgState .imgScale  <  0 ) { 
152+           imgState .imgScale  =  MIN_SCALE ; 
153+         } 
146154      } 
147155
148156      //  旋转图片 
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export function useCustomRow(
4040        function  handleClick ( )  { 
4141          const  {  rowSelection,  rowKey,  clickToRowSelect }  =  unref ( propsRef ) ; 
4242          if  ( ! rowSelection  ||  ! clickToRowSelect )  return ; 
43-           const  keys  =  getSelectRowKeys ( ) ; 
43+           const  keys  =  getSelectRowKeys ( )   ||   [ ] ; 
4444          const  key  =  getKey ( record ,  rowKey ,  unref ( getAutoCreateKey ) ) ; 
4545          if  ( ! key )  return ; 
4646
Original file line number Diff line number Diff line change @@ -66,13 +66,13 @@ export function useRowSelection(
6666    selectedRowKeysRef . value  =  rowKeys ; 
6767    const  allSelectedRows  =  findNodeAll ( 
6868      toRaw ( unref ( tableData ) ) . concat ( toRaw ( unref ( selectedRowRef ) ) ) , 
69-       ( item )  =>  rowKeys . includes ( item [ unref ( getRowKey )  as  string ] ) , 
69+       ( item )  =>  rowKeys ? .includes ( item [ unref ( getRowKey )  as  string ] ) , 
7070      { 
7171        children : propsRef . value . childrenColumnName  ??  'children' , 
7272      } , 
7373    ) ; 
7474    const  trueSelectedRows : any [ ]  =  [ ] ; 
75-     rowKeys . forEach ( ( key : string )  =>  { 
75+     rowKeys ? .forEach ( ( key : string )  =>  { 
7676      const  found  =  allSelectedRows . find ( ( item )  =>  item [ unref ( getRowKey )  as  string ]  ===  key ) ; 
7777      found  &&  trueSelectedRows . push ( found ) ; 
7878    } ) ; 
Original file line number Diff line number Diff line change 11<template >
2-   <BasicTable 
3-     @register =" registerTable" 
4-     :rowSelection =" { type: 'checkbox', selectedRowKeys: checkedKeys, onChange: onSelectChange }" 
5-   >
2+   <BasicTable  @register =" registerTable" 
63    <template  #form-custom > custom-slot </template >
74    <template  #headerTop >
85      <a-alert  type =" info" show-icon >
4441        tableSetting: { fullScreen: true  }, 
4542        showIndexColumn: false , 
4643        rowKey: ' id'  
44+         rowSelection: { 
45+           type: ' checkbox'  
46+           selectedRowKeys: checkedKeys , 
47+           onChange: onSelectChange , 
48+         }, 
4749      }); 
4850
4951      function  getFormValues() { 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments