twmodule 0.0.68 → 0.0.70

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
@@ -499,8 +499,8 @@ stepData:{
499
499
  //iconDirection:图标位置left(默认)和right
500
500
  {label:'下拉单选',itemValue:'select',itemType:'select',selectSearch:true,disabled:false,selectList:[{name:'选项1',value:'1'},{name:'选项2',value:'2'}]},
501
501
  //下拉选择时:selectList为下拉列表数据(对象中必要字段为label与value) selectSearch开启列表搜索(默认true)
502
- {label:'下拉多选',itemValue:'selectMore',itemType:'selectMore',showAllName:false,selectSearch:true,disabled:false,selectList:[{name:'选项1',value:'1'},{name:'选项2',value:'2'}]},
503
- //下拉多选时:selectSearch同上 showAllName计数的方式展示选中,而不是全部显示(全部显示可能会使input框变高,影响排版,默认采用计数方式)
502
+ {label:'下拉多选',itemValue:'selectMore',itemType:'selectMore',showAllName:'showAll',selectSearch:true,disabled:false,selectList:[{name:'选项1',value:'1'},{name:'选项2',value:'2'}]},
503
+ //下拉多选时:selectSearch同上 showAllName计数的方式展示选中,而不是全部显示(全部显示可能会使input框变高,影响排版,默认采用计数方式,显示全部值就为showAll)
504
504
  {label:'下拉级联',itemValue:'selectCascade',itemType:'selectCascade',showAllName:false,selectSearch:true,showAllLevel:false,trigger:'click',isSelectMore:true,disabled:false,selectList:[{label:'层级1',value:'1',children:[{label:'层级2-1',value:'1-1',children:[{label:'层级3-1',value:'3-1'},{label:'层级3-2',value:'3-2'}]},{label:'层级2-2',value:'2-2'}]},{label:'层级1-2',value:'1-2'}]},
505
505
  //级联选择时:selectSearch同上 showAllName同上 showAllLevel是否显示选择的所有层级(默认false) trigger触发级联方式hover(默认)、click
506
506
  //isSelectMore是否开启多选(默认false) selectList下拉列表,注意对象中必要字段为label与value
@@ -662,9 +662,10 @@ stepData:{
662
662
  {
663
663
  title: 'select',
664
664
  dataIndex: 'select',
665
- isEdit:{type:'select',cellChange:true,cellFocus:true,cellBlur:true,minDate:'2023-04-01',maxDate:'2023-05-01',dataList:[{value: '111',name: '黄金糕'}, {value: '222',name: '双皮奶'}]},
665
+ isEdit:{type:'select',cellChange:true,cellFocus:true,cellBlur:true,selectSearch:true,isSelectMore:true,showAllName:'showAll',dataList:[{value: '111',name: '黄金糕'}, {value: '222',name: '双皮奶'}]},
666
666
  //text,number,textarea,textBox,numberBox,textareaBox,select,radio,checkBox,switch,date
667
667
  //select,radio,checkBox三种类型,需要有数据源dataList支持,name为展示的名字,value为对应的数值,
668
+ //搜索功能selectSearch:true/false,多选功能isSelectMore:true/false,计数showAllName:'showAll'/其他(只有值为'showAll'时,才会显示全部选项)。
668
669
  },
669
670
  {
670
671
  title: 'date',
@@ -785,8 +786,8 @@ stepData:{
785
786
  {label:'活动时间',itemValue:'dateRange',itemType:'dateRange',dateType:'date',required:false,isHidden:false},
786
787
  //dateType时间类型date(默认),month dateFormat显示的样式(yyyy年MM月dd日) separator分离占位符 startPlaceholder开始占位符
787
788
  // endPlaceholder结束占位符 minDate可选最小日期 maxDate可选最大日期
788
- {label:'下拉多选',itemValue:'selectMore',itemType:'selectMore',showAllName:false, selectSearch:true,disabled:false,required:true,isHidden:false,selectList:[{name:'选项1',value:'1'},{name:'选项2',value:'2'}]},
789
- //下拉多选时:selectSearch同上 showAllName计数的方式展示选中,而不是全部显示(全部显示可能会使input框变高,影响排版,默认采用计数方式)
789
+ {label:'下拉多选',itemValue:'selectMore',itemType:'selectMore',showAllName:'showAll', selectSearch:true,disabled:false,required:true,isHidden:false,selectList:[{name:'选项1',value:'1'},{name:'选项2',value:'2'}]},
790
+ //下拉多选时:selectSearch同上 showAllName计数的方式展示选中,而不是全部显示,(全部显示可能会使input框变高,影响排版,默认采用计数方式,显示全部值就为showAll)
790
791
  {label:'下拉级联',itemValue:'selectCascade',itemType:'selectCascade',showAllName:false,selectSearch:true,showAllLevel:false,required:false,isHidden:false,trigger:'click',isSelectMore:true,disabled:false,selectList:[{label:'层级1',value:'1',children:[{label:'层级2-1',value:'1-1',children:[{label:'层级3-1',value:'3-1'},{label:'层级3-2',value:'3-2'}]},{label:'层级2-2',value:'2-2'}]},{label:'层级1-2',value:'1-2'}]},
791
792
  //级联选择时:selectSearch同上 showAllName同上 showAllLevel是否显示选择的所有层级(默认false) trigger触发级联方式hover(默认)、click isSelectMore是否开启多选 selectList下拉列表,注意对象中必要字段label与value
792
793
  {label:'单选',itemValue:'radio',itemType:'radio',required:false,isHidden:false,radioList:[{name:'花鲢',value:'1',disabled:true},{name:'鲈鱼',value:'2'},{name:'白鲢',value:'3'}]},