wui-components-v2 1.1.52 → 1.1.53

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.
@@ -41,11 +41,16 @@ export function useCompanyFieldFilter(
41
41
  }
42
42
 
43
43
  const formatFieldsItem=(company:string,item:any)=>{
44
+ const transDefaultValue = item.usableRuleCriterias[0]?.transDefaultValue||''
45
+ const isHidden=item?.unusableMode==='hidden'
46
+ const values = transDefaultValue.split(',').map(v => v.trim())
44
47
  if(!company){
45
- return item
48
+ return {
49
+ ...item,
50
+ hidden:isHidden,
51
+ }
46
52
  }else{
47
- const transDefaultValue = item.usableRuleCriterias[0]?.transDefaultValue||''
48
- const values = transDefaultValue.split(',').map(v => v.trim())
53
+
49
54
  return {
50
55
  ...item,
51
56
  hidden: values.some(v => v.includes(company))?false:item.hidden,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wui-components-v2",
3
- "version": "1.1.52",
3
+ "version": "1.1.53",
4
4
  "description": "wui 组件库",
5
5
  "author": "wgxshh",
6
6
  "license": "MIT",