xmirror-components 1.0.30-alpha.4 → 1.0.30-alpha.5

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.
@@ -264,14 +264,8 @@ Valid keys: `+JSON.stringify(Object.keys(l),null," "));var h=ae(M,q,A,N,$+"."+q
264
264
  }
265
265
  }
266
266
  `;function Ji(e,r){const{columns:t=[],columnsSort:n,columnsVisible:a,tableId:o="",pagination:i,dataSource:s}=e,c=location.pathname+o,[f,d]=ji("TABLE_"+c,{defaultValue:null}),[y,g]=w.useState([]),[m,v]=w.useState([]),x=w.useRef(null),E=F=>{g(F),S(F,m)},T=F=>{v(F),S(y,F)},S=(F,L)=>{d({order:F,visibleItems:L})},R=()=>{if(f)g(f.order),v(f.visibleItems);else{const F=[],L=[];for(const W of t){let Q;"dataIndex"in W&&(Array.isArray(W.dataIndex)?Q=W.dataIndex.join(","):Q=W.dataIndex,F.push(Q),"columnVisible"in W&&!W.columnVisible||L.push(Q))}g(F),v(L)}},p=F=>{const L={...F},W=Q=>C.jsxs("span",{children:[Q,C.jsx(zi,{onChangeOrder:E,onChangeVisible:T,order:y,columnsSort:n,visibleItems:m,columns:t,columnsVisible:a})]});return typeof F.title=="function"?L.title=Q=>W(F.title(Q)):L.title=W(F.title),L},P=F=>F!=null&&F!==""?C.jsx(J.Tooltip,{title:F,placement:"topLeft",children:C.jsx("span",{className:"column-ellipsis",children:F})}):"-",k=w.useMemo(()=>{let F=t;if(!n&&!a)F=t;else{const L=[];y.filter(W=>m.includes(W)).forEach((W,Q,X)=>{for(const K of t)if("dataIndex"in K){let te;if(Array.isArray(K.dataIndex)?te=K.dataIndex.join(","):te=K.dataIndex,W===te){(n||a)&&Q===X.length-1?L.push(p(K)):L.push(K);break}}}),F=L}return F.map(L=>{if(L.filters&&!L.filterIcon&&(L.filterIcon=C.jsx(Ge.DownOutlined,{type:"icon-xiajiantou",style:{fontWeight:500}})),L.ellipsis===!1)L.ellipsis=!1;else{const W=L.ellipsis||{};L.ellipsis={showTitle:!1,...W},L.render||(L.render=P)}return L})},[y,m,t]),Z=w.useMemo(()=>e.pagination?{...i||{},showTotal:()=>s&&s.length>0&&C.jsx(Xi,{...e})}:!1,[i]);return w.useEffect(()=>{R()},[]),C.jsx(Ki,{ref:r,children:C.jsx(J.Table,{ref:x,scroll:{x:900},...e,pagination:Z,columns:k})})}const Zi=w.forwardRef(Ji),Qi=re(J.Form.Item)`
267
- display: inline-flex;
268
- text-align: left;
269
- vertical-align: middle;
270
-
271
- & + & {
272
- margin-left: 20px;
273
- }
274
-
267
+ margin-bottom: 0 !important;
268
+
275
269
  .search-item__label {
276
270
  position: relative;
277
271
  display: inline-flex;
@@ -4831,14 +4831,8 @@ function xs(e, r) {
4831
4831
  );
4832
4832
  }
4833
4833
  const Fs = vr(xs), Es = ee(st.Item)`
4834
- display: inline-flex;
4835
- text-align: left;
4836
- vertical-align: middle;
4837
-
4838
- & + & {
4839
- margin-left: 20px;
4840
- }
4841
-
4834
+ margin-bottom: 0 !important;
4835
+
4842
4836
  .search-item__label {
4843
4837
  position: relative;
4844
4838
  display: inline-flex;
@@ -27,7 +27,7 @@ var __rest = (this && this.__rest) || function (s, e) {
27
27
  import React from 'react';
28
28
  import { Form } from 'antd';
29
29
  import styled from '@emotion/styled';
30
- var StyledFormItem = styled(Form.Item)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: inline-flex;\n text-align: left;\n vertical-align: middle;\n\n & + & {\n margin-left: 20px;\n }\n\n .search-item__label {\n position: relative;\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n height: 32px;\n font-size: 14px;\n color: rgba(0, 0, 0, 85%);\n\n &::after {\n position: relative;\n top: -0.5px;\n margin: 0 8px 0 2px;\n content: ':';\n }\n }\n\n .search-item__content {\n flex: 1;\n }\n"], ["\n display: inline-flex;\n text-align: left;\n vertical-align: middle;\n\n & + & {\n margin-left: 20px;\n }\n\n .search-item__label {\n position: relative;\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n height: 32px;\n font-size: 14px;\n color: rgba(0, 0, 0, 85%);\n\n &::after {\n position: relative;\n top: -0.5px;\n margin: 0 8px 0 2px;\n content: ':';\n }\n }\n\n .search-item__content {\n flex: 1;\n }\n"
30
+ var StyledFormItem = styled(Form.Item)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin-bottom: 0 !important;\n \n .search-item__label {\n position: relative;\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n height: 32px;\n font-size: 14px;\n color: rgba(0, 0, 0, 85%);\n\n &::after {\n position: relative;\n top: -0.5px;\n margin: 0 8px 0 2px;\n content: ':';\n }\n }\n\n .search-item__content {\n flex: 1;\n }\n"], ["\n margin-bottom: 0 !important;\n \n .search-item__label {\n position: relative;\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n height: 32px;\n font-size: 14px;\n color: rgba(0, 0, 0, 85%);\n\n &::after {\n position: relative;\n top: -0.5px;\n margin: 0 8px 0 2px;\n content: ':';\n }\n }\n\n .search-item__content {\n flex: 1;\n }\n"
31
31
  /**
32
32
  * 筛选项
33
33
  * @param props
@@ -32,7 +32,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
32
32
  var react_1 = __importDefault(require("react"));
33
33
  var antd_1 = require("antd");
34
34
  var styled_1 = __importDefault(require("@emotion/styled"));
35
- var StyledFormItem = (0, styled_1.default)(antd_1.Form.Item)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: inline-flex;\n text-align: left;\n vertical-align: middle;\n\n & + & {\n margin-left: 20px;\n }\n\n .search-item__label {\n position: relative;\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n height: 32px;\n font-size: 14px;\n color: rgba(0, 0, 0, 85%);\n\n &::after {\n position: relative;\n top: -0.5px;\n margin: 0 8px 0 2px;\n content: ':';\n }\n }\n\n .search-item__content {\n flex: 1;\n }\n"], ["\n display: inline-flex;\n text-align: left;\n vertical-align: middle;\n\n & + & {\n margin-left: 20px;\n }\n\n .search-item__label {\n position: relative;\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n height: 32px;\n font-size: 14px;\n color: rgba(0, 0, 0, 85%);\n\n &::after {\n position: relative;\n top: -0.5px;\n margin: 0 8px 0 2px;\n content: ':';\n }\n }\n\n .search-item__content {\n flex: 1;\n }\n"
35
+ var StyledFormItem = (0, styled_1.default)(antd_1.Form.Item)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin-bottom: 0 !important;\n \n .search-item__label {\n position: relative;\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n height: 32px;\n font-size: 14px;\n color: rgba(0, 0, 0, 85%);\n\n &::after {\n position: relative;\n top: -0.5px;\n margin: 0 8px 0 2px;\n content: ':';\n }\n }\n\n .search-item__content {\n flex: 1;\n }\n"], ["\n margin-bottom: 0 !important;\n \n .search-item__label {\n position: relative;\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n height: 32px;\n font-size: 14px;\n color: rgba(0, 0, 0, 85%);\n\n &::after {\n position: relative;\n top: -0.5px;\n margin: 0 8px 0 2px;\n content: ':';\n }\n }\n\n .search-item__content {\n flex: 1;\n }\n"
36
36
  /**
37
37
  * 筛选项
38
38
  * @param props
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xmirror-components",
3
- "version": "1.0.30-alpha.4",
3
+ "version": "1.0.30-alpha.5",
4
4
  "type": "module",
5
5
  "main": "build/lib/index.js",
6
6
  "module": "build/es/index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xmirror-components",
3
- "version": "1.0.30-alpha.4",
3
+ "version": "1.0.30-alpha.5",
4
4
  "type": "module",
5
5
  "main": "build/lib/index.js",
6
6
  "module": "build/es/index.js",