zy-react-library 2.2.7 → 2.2.9

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.
@@ -23,6 +23,8 @@ export interface DescriptionsProps<DataSource = Record<string, any>> extends Omi
23
23
  emptyText?: ReactNode;
24
24
  /** 是否加载中,默认 false */
25
25
  loading?: boolean;
26
+ /** 是否展示边框,默认 true */
27
+ bordered?: boolean;
26
28
  }
27
29
 
28
30
  /**
@@ -1 +1 @@
1
- import{Spin as e,Descriptions as t}from"antd";import{get as r}from"lodash-es";import{isEmpty as n}from"../../utils/index.js";import{jsx as i}from"react/jsx-runtime";const o=o=>{const{dataSource:s={},items:a=[],emptyText:l="-",loading:m=!1,column:d=2,styles:c,...p}=o,u=a.map((e,t)=>{const{dataIndex:i,hidden:o,render:a,emptyText:m,...d}=e;if("function"==typeof o?o(s):o)return null;const c=((e,t)=>{if(void 0!==t)return r(e,t)})(s,i),p=a?a(c,s,t):c;return{...d,key:d.key??(Array.isArray(i)?i.join("."):i)??t,children:n(p)?m??l:p}}).filter(Boolean);return i(e,{spinning:m,children:i(t,{...p,column:d,items:u,styles:{...c,label:{width:200,...c?.label}}})})};o.displayName="Descriptions";export{o as default};
1
+ import{Spin as e,Descriptions as r}from"antd";import{get as t}from"lodash-es";import{isEmpty as n}from"../../utils/index.js";import{jsx as i}from"react/jsx-runtime";const o=o=>{const{dataSource:s={},items:d=[],emptyText:a="-",loading:l=!1,bordered:m=!0,column:c=2,styles:p,...u}=o,f=d.map((e,r)=>{const{dataIndex:i,hidden:o,render:d,emptyText:l,...m}=e;if("function"==typeof o?o(s):o)return null;const c=((e,r)=>{if(void 0!==r)return t(e,r)})(s,i),p=d?d(c,s,r):c;return{...m,key:m.key??(Array.isArray(i)?i.join("."):i)??r,children:n(p)?l??a:p}}).filter(Boolean);return i(e,{spinning:l,children:i(r,{...u,bordered:m,column:c,items:f,styles:{...p,label:{width:200,...p?.label}}})})};o.displayName="Descriptions";export{o as default};
package/css/common.less CHANGED
@@ -5,7 +5,7 @@
5
5
  }
6
6
 
7
7
  .@{ant-prefix}-modal-footer {
8
- justify-content: center !important;
8
+ text-align: center !important;
9
9
  }
10
10
 
11
11
  .search-layout {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zy-react-library",
3
3
  "private": false,
4
- "version": "2.2.7",
4
+ "version": "2.2.9",
5
5
  "type": "module",
6
6
  "description": "",
7
7
  "author": "LiuJiaNan",