twmodule 0.1.15 → 0.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -548,6 +548,7 @@ stepData:{
548
548
 
549
549
  //表格整体设置
550
550
  tableInit = {
551
+ headAlign:'center',//left center right 默认center
551
552
  tableClassName:'tableClass',//给表格添加样式名(内置默认样式名:twTableStyle,自带样式,注意覆盖情况)
552
553
  tableHeadClass:'twTableHeadClass',//给表头添加样式名(内置默认样式名:tableHeadClass,自带样式,注意覆盖情况)
553
554
  size:'small',//表格大小:middle 默认small,
@@ -597,6 +598,27 @@ stepData:{
597
598
  }
598
599
  }
599
600
  columns = [
601
+ {
602
+ title: '<span style="color: red;">changeNum</span><br/><span style="color: green;">(1111)</span>',
603
+ isHtmlHead:true,//开启表头顶定义样式
604
+ mention:{//开启表头叹号提示
605
+ text:'12312111111113',
606
+ icon:'el-icon-question',
607
+ width:'300',
608
+ trigger:'click',
609
+ iconStyle:{color:'blue',fontSize:'18px'},
610
+ textStyle:{color:'blue',fontSize:'18px'}
611
+ },
612
+ dataIndex: 'changeImgList',
613
+ isSpecial:{//是否开启字段样式特殊处理
614
+ class:'changeImg',
615
+ type:'imgList',//图片类型,与img数组配合使用,根据不同的状态值显示不同的图片
616
+ imgList:[
617
+ {value:'img1',img:require("../assets/logo.png")},
618
+ {value:'img2',img:require("../assets/gou.png")},
619
+ ]
620
+ }
621
+ },
600
622
  {
601
623
  title: 'changeImg',
602
624
  dataIndex: 'changeImgList',
@@ -862,6 +884,8 @@ stepData:{
862
884
  //树形结构选择 defaultProps:children与label都是必须替换的,不然默认就得是这2个字段。
863
885
  {label:'金额区间',itemValue:'valueRange1',itemValueSec:'valueRange2',itemType:'valueRange',required:true,isNumber:true},
864
886
  //itemValueSec用于承接第二个input的值
887
+ {label:'自定义',itemValue:'doSelf',itemType:'doSelf',inputType:'textarea',rows:6,required:true,mention:{text:'123123',width:'300',trigger:'click',
888
+ iconStyle:{color:'blue',fontSize:'18px'},textStyle:{color:'blue',fontSize:'18px'}}},
865
889
  ]
866
890
 
867
891
  内置方法: