@vtx/components 3.1.55 → 3.1.57
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/lib/_util/useColSize.js.map +1 -1
- package/lib/style/index.less +2 -2
- package/lib/style/themes/compact.less +1 -1
- package/lib/style/themes/dark.less +9 -9
- package/lib/style/themes/default.less +7 -7
- package/lib/style/themes/index.less +1 -1
- package/lib/style/themes/variable.less +5 -5
- package/lib/vtx-color-picker/index.js.map +1 -1
- package/lib/vtx-color-picker/style/css.js.map +1 -1
- package/lib/vtx-color-picker/style/index.js.map +1 -1
- package/lib/vtx-combogrid/Combogrid.js.map +1 -1
- package/lib/vtx-combogrid/index.js.map +1 -1
- package/lib/vtx-combogrid/style/css.js.map +1 -1
- package/lib/vtx-combogrid/style/index.js.map +1 -1
- package/lib/vtx-combogrid/style/index.less +29 -29
- package/lib/vtx-datagrid/Alert.js.map +1 -1
- package/lib/vtx-datagrid/ColumnSetting.js +97 -3
- package/lib/vtx-datagrid/ColumnSetting.js.map +1 -1
- package/lib/vtx-datagrid/index.js +43 -7
- package/lib/vtx-datagrid/index.js.map +1 -1
- package/lib/vtx-datagrid/renderColumnButtons.js.map +1 -1
- package/lib/vtx-datagrid/style/css.js.map +1 -1
- package/lib/vtx-datagrid/style/index.css +9 -0
- package/lib/vtx-datagrid/style/index.js.map +1 -1
- package/lib/vtx-datagrid/style/index.less +9 -0
- package/lib/vtx-date-picker/QdatePicker.js.map +1 -1
- package/lib/vtx-date-picker/generatePicker.js.map +1 -1
- package/lib/vtx-date-picker/index.js.map +1 -1
- package/lib/vtx-date-picker/style/css.js.map +1 -1
- package/lib/vtx-date-picker/style/index.js.map +1 -1
- package/lib/vtx-date-picker/style/index.less +39 -39
- package/lib/vtx-editor/index.js.map +1 -1
- package/lib/vtx-editor/style/css.js.map +1 -1
- package/lib/vtx-editor/style/index.js.map +1 -1
- package/lib/vtx-editor/style/index.less +8 -8
- package/lib/vtx-ellipsis-text/index.js.map +1 -1
- package/lib/vtx-ellipsis-text/style/css.js.map +1 -1
- package/lib/vtx-ellipsis-text/style/index.js.map +1 -1
- package/lib/vtx-ellipsis-text/style/index.less +13 -13
- package/lib/vtx-export/style/css.js.map +1 -1
- package/lib/vtx-export/style/index.js.map +1 -1
- package/lib/vtx-form-layout/Card.js.map +1 -1
- package/lib/vtx-form-layout/Divider.js.map +1 -1
- package/lib/vtx-form-layout/FormItem.js.map +1 -1
- package/lib/vtx-form-layout/Row.js.map +1 -1
- package/lib/vtx-form-layout/demo/Modal.less +43 -43
- package/lib/vtx-form-layout/index.js.map +1 -1
- package/lib/vtx-form-layout/style/css.js.map +1 -1
- package/lib/vtx-form-layout/style/index.js.map +1 -1
- package/lib/vtx-form-layout/style/index.less +216 -216
- package/lib/vtx-image/Preview.js.map +1 -1
- package/lib/vtx-image/PreviewGroup.js.map +1 -1
- package/lib/vtx-import/result.js.map +1 -1
- package/lib/vtx-import/style/css.js.map +1 -1
- package/lib/vtx-import/style/index.js.map +1 -1
- package/lib/vtx-import/style/index.less +8 -8
- package/lib/vtx-import2/CheckResult.js.map +1 -1
- package/lib/vtx-import2/Content.js.map +1 -1
- package/lib/vtx-import2/DownloadSvg.js.map +1 -1
- package/lib/vtx-import2/ImportResult.js.map +1 -1
- package/lib/vtx-import2/UploadSvg.js.map +1 -1
- package/lib/vtx-import2/style/css.js.map +1 -1
- package/lib/vtx-import2/style/index.js.map +1 -1
- package/lib/vtx-import2/style/index.less +102 -102
- package/lib/vtx-input/TextArea.js.map +1 -1
- package/lib/vtx-input/index.js.map +1 -1
- package/lib/vtx-input/style/css.js.map +1 -1
- package/lib/vtx-input/style/index.js.map +1 -1
- package/lib/vtx-input/style/index.less +24 -24
- package/lib/vtx-modal/index.js +2 -2
- package/lib/vtx-modal/index.js.map +1 -1
- package/lib/vtx-modal/style/css.js.map +1 -1
- package/lib/vtx-modal/style/index.js.map +1 -1
- package/lib/vtx-page-layout/Content.js.map +1 -1
- package/lib/vtx-page-layout/TableLayout.js +10 -10
- package/lib/vtx-page-layout/TableLayout.js.map +1 -1
- package/lib/vtx-page-layout/TableWrap.js.map +1 -1
- package/lib/vtx-page-layout/container.js.map +1 -1
- package/lib/vtx-page-layout/style/index.less +138 -138
- package/lib/vtx-scrollable-row/index.js.map +1 -1
- package/lib/vtx-scrollable-row/style/css.js.map +1 -1
- package/lib/vtx-scrollable-row/style/index.js.map +1 -1
- package/lib/vtx-scrollable-row/style/index.less +113 -113
- package/lib/vtx-search/VtxCol.js.map +1 -1
- package/lib/vtx-search/VtxRow.js.map +1 -1
- package/lib/vtx-search/index.js +4 -2
- package/lib/vtx-search/index.js.map +1 -1
- package/lib/vtx-search/style/css.js.map +1 -1
- package/lib/vtx-search/style/index.css +3 -0
- package/lib/vtx-search/style/index.js.map +1 -1
- package/lib/vtx-search/style/index.less +89 -83
- package/lib/vtx-search-map-input/index.js.map +1 -1
- package/lib/vtx-search-map-input/style/css.js.map +1 -1
- package/lib/vtx-search-map-input/style/index.js.map +1 -1
- package/lib/vtx-select/index.js +15 -3
- package/lib/vtx-select/index.js.map +1 -1
- package/lib/vtx-select/style/css.js.map +1 -1
- package/lib/vtx-select/style/index.js.map +1 -1
- package/lib/vtx-select/style/index.less +68 -68
- package/lib/vtx-signature/index.js.map +1 -1
- package/lib/vtx-signature/style/css.js.map +1 -1
- package/lib/vtx-signature/style/index.js.map +1 -1
- package/lib/vtx-signature/style/index.less +33 -33
- package/lib/vtx-split-pane/Resizer.js.map +1 -1
- package/lib/vtx-split-pane/SplitPane.js +4 -4
- package/lib/vtx-split-pane/SplitPane.js.map +1 -1
- package/lib/vtx-split-pane/style/css.js.map +1 -1
- package/lib/vtx-split-pane/style/index.js.map +1 -1
- package/lib/vtx-split-pane/style/index.less +76 -76
- package/lib/vtx-statistics-column/style/index.less +59 -59
- package/lib/vtx-time-picker/index.js.map +1 -1
- package/lib/vtx-time-picker/style/css.js.map +1 -1
- package/lib/vtx-time-picker/style/index.js.map +1 -1
- package/lib/vtx-upload/FilePreview.js.map +1 -1
- package/lib/vtx-upload/style/css.js.map +1 -1
- package/lib/vtx-upload/style/index.js.map +1 -1
- package/lib/vtx-upload/style/index.less +61 -61
- package/lib/vtx-wang-editor/style/css.js.map +1 -1
- package/lib/vtx-wang-editor/style/index.js.map +1 -1
- package/lib/vtx-wang-editor/style/index.less +12 -12
- package/lib/vtx-wang-editor/wangEditorUtil.js.map +1 -1
- package/lib/vtx-ztree/index.js +2 -2
- package/lib/vtx-ztree/index.js.map +1 -1
- package/lib/vtx-ztree/style/css.js.map +1 -1
- package/lib/vtx-ztree/style/index.js.map +1 -1
- package/lib/vtx-ztree/style/index.less +45 -45
- package/lib/vtx-ztree-select/index.js.map +1 -1
- package/lib/vtx-ztree-select/style/css.js.map +1 -1
- package/lib/vtx-ztree-select/style/index.js.map +1 -1
- package/lib/vtx-ztree-select/style/index.less +99 -99
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.js","names":["VtxCard","props","title","expand","useState","visible","setVisible","style","transform","pre","classnames","children","propTypes","PropTypes","bool","oneOfType","string","node"],"sources":["vtx-form-layout/Card.jsx"],"sourcesContent":["import React, { useState } from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport Card from 'antd/lib/card';\nimport RightOutlined from '@ant-design/icons/RightOutlined';\n\nfunction VtxCard(props) {\n const { title, expand = true } = props;\n const [visible, setVisible] = useState(expand);\n let style = {};\n if (visible) {\n style = { transform: 'rotate(90deg)' };\n }\n return (\n <Card\n title={title}\n className=\"vtx-form-card\"\n extra={\n <RightOutlined\n className=\"vtx-form-card-expand-icon\"\n style={style}\n onClick={() => setVisible(pre => !pre)}\n />\n }\n >\n <div\n className={classnames('vtx-form-card-content', {\n 'vtx-form-card-content-hide': !visible,\n })}\n >\n {props.children}\n </div>\n </Card>\n );\n}\n\nVtxCard.propTypes = {\n expand: PropTypes.bool,\n title: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),\n children: PropTypes.node,\n};\n\nexport default VtxCard;\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;AAEA,SAASA,OAAT,CAAiBC,KAAjB,EAAwB;EACpB,IAAQC,KAAR,GAAiCD,KAAjC,CAAQC,KAAR;EAAA,oBAAiCD,KAAjC,CAAeE,MAAf;EAAA,IAAeA,MAAf,8BAAwB,IAAxB;;EACA,gBAA8B,IAAAC,eAAA,EAASD,MAAT,CAA9B;EAAA;EAAA,IAAOE,OAAP;EAAA,IAAgBC,UAAhB;;EACA,IAAIC,KAAK,GAAG,EAAZ;;EACA,IAAIF,OAAJ,EAAa;IACTE,KAAK,GAAG;MAAEC,SAAS,EAAE;IAAb,CAAR;EACH;;EACD,oBACI,gCAAC,gBAAD;IACI,KAAK,EAAEN,KADX;IAEI,SAAS,EAAC,eAFd;IAGI,KAAK,eACD,gCAAC,yBAAD;MACI,SAAS,EAAC,2BADd;MAEI,KAAK,EAAEK,KAFX;MAGI,OAAO,EAAE;QAAA,OAAMD,UAAU,CAAC,UAAAG,GAAG;UAAA,OAAI,CAACA,GAAL;QAAA,CAAJ,CAAhB;MAAA;IAHb;EAJR,gBAWI;IACI,SAAS,EAAE,IAAAC,sBAAA,EAAW,uBAAX,EAAoC;MAC3C,8BAA8B,CAACL;IADY,CAApC;EADf,GAKKJ,KAAK,CAACU,QALX,CAXJ,CADJ;AAqBH;;AAEDX,OAAO,CAACY,SAAR,GAAoB;EAChBT,MAAM,EAAEU,qBAAA,CAAUC,IADF;EAEhBZ,KAAK,EAAEW,qBAAA,CAAUE,SAAV,CAAoB,CAACF,qBAAA,CAAUG,MAAX,EAAmBH,qBAAA,CAAUI,IAA7B,CAApB,CAFS;EAGhBN,QAAQ,EAAEE,qBAAA,CAAUI;AAHJ,CAApB;eAMejB,O"}
|
|
1
|
+
{"version":3,"file":"Card.js","names":["VtxCard","props","title","expand","useState","visible","setVisible","style","transform","pre","classnames","children","propTypes","PropTypes","bool","oneOfType","string","node"],"sources":["vtx-form-layout/Card.jsx"],"sourcesContent":["import React, { useState } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport classnames from 'classnames';\r\nimport Card from 'antd/lib/card';\r\nimport RightOutlined from '@ant-design/icons/RightOutlined';\r\n\r\nfunction VtxCard(props) {\r\n const { title, expand = true } = props;\r\n const [visible, setVisible] = useState(expand);\r\n let style = {};\r\n if (visible) {\r\n style = { transform: 'rotate(90deg)' };\r\n }\r\n return (\r\n <Card\r\n title={title}\r\n className=\"vtx-form-card\"\r\n extra={\r\n <RightOutlined\r\n className=\"vtx-form-card-expand-icon\"\r\n style={style}\r\n onClick={() => setVisible(pre => !pre)}\r\n />\r\n }\r\n >\r\n <div\r\n className={classnames('vtx-form-card-content', {\r\n 'vtx-form-card-content-hide': !visible,\r\n })}\r\n >\r\n {props.children}\r\n </div>\r\n </Card>\r\n );\r\n}\r\n\r\nVtxCard.propTypes = {\r\n expand: PropTypes.bool,\r\n title: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),\r\n children: PropTypes.node,\r\n};\r\n\r\nexport default VtxCard;\r\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;AAEA,SAASA,OAAT,CAAiBC,KAAjB,EAAwB;EACpB,IAAQC,KAAR,GAAiCD,KAAjC,CAAQC,KAAR;EAAA,oBAAiCD,KAAjC,CAAeE,MAAf;EAAA,IAAeA,MAAf,8BAAwB,IAAxB;;EACA,gBAA8B,IAAAC,eAAA,EAASD,MAAT,CAA9B;EAAA;EAAA,IAAOE,OAAP;EAAA,IAAgBC,UAAhB;;EACA,IAAIC,KAAK,GAAG,EAAZ;;EACA,IAAIF,OAAJ,EAAa;IACTE,KAAK,GAAG;MAAEC,SAAS,EAAE;IAAb,CAAR;EACH;;EACD,oBACI,gCAAC,gBAAD;IACI,KAAK,EAAEN,KADX;IAEI,SAAS,EAAC,eAFd;IAGI,KAAK,eACD,gCAAC,yBAAD;MACI,SAAS,EAAC,2BADd;MAEI,KAAK,EAAEK,KAFX;MAGI,OAAO,EAAE;QAAA,OAAMD,UAAU,CAAC,UAAAG,GAAG;UAAA,OAAI,CAACA,GAAL;QAAA,CAAJ,CAAhB;MAAA;IAHb;EAJR,gBAWI;IACI,SAAS,EAAE,IAAAC,sBAAA,EAAW,uBAAX,EAAoC;MAC3C,8BAA8B,CAACL;IADY,CAApC;EADf,GAKKJ,KAAK,CAACU,QALX,CAXJ,CADJ;AAqBH;;AAEDX,OAAO,CAACY,SAAR,GAAoB;EAChBT,MAAM,EAAEU,qBAAA,CAAUC,IADF;EAEhBZ,KAAK,EAAEW,qBAAA,CAAUE,SAAV,CAAoB,CAACF,qBAAA,CAAUG,MAAX,EAAmBH,qBAAA,CAAUI,IAA7B,CAApB,CAFS;EAGhBN,QAAQ,EAAEE,qBAAA,CAAUI;AAHJ,CAApB;eAMejB,O"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Divider.js","names":["VtxDivider","props","size","classnames","propTypes","PropTypes","oneOf"],"sources":["vtx-form-layout/Divider.jsx"],"sourcesContent":["import React from 'react';\nimport Divider from 'antd/lib/divider';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\n\nfunction VtxDivider(props) {\n const { size } = props;\n return (\n <Divider\n className={classnames('vtx-form-divider', {\n ['vtx-form-divider--small']: size === 'small',\n })}\n />\n );\n}\n\nVtxDivider.propTypes = {\n size: PropTypes.oneOf(['default', 'small']),\n};\n\nexport default VtxDivider;\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;;;;;AAEA,SAASA,UAAT,CAAoBC,KAApB,EAA2B;EACvB,IAAQC,IAAR,GAAiBD,KAAjB,CAAQC,IAAR;EACA,oBACI,gCAAC,mBAAD;IACI,SAAS,EAAE,IAAAC,uBAAA,EAAW,kBAAX,sBACN,yBADM,EACsBD,IAAI,KAAK,OAD/B;EADf,EADJ;AAOH;;AAEDF,UAAU,CAACI,SAAX,GAAuB;EACnBF,IAAI,EAAEG,qBAAA,CAAUC,KAAV,CAAgB,CAAC,SAAD,EAAY,OAAZ,CAAhB;AADa,CAAvB;eAIeN,U"}
|
|
1
|
+
{"version":3,"file":"Divider.js","names":["VtxDivider","props","size","classnames","propTypes","PropTypes","oneOf"],"sources":["vtx-form-layout/Divider.jsx"],"sourcesContent":["import React from 'react';\r\nimport Divider from 'antd/lib/divider';\r\nimport PropTypes from 'prop-types';\r\nimport classnames from 'classnames';\r\n\r\nfunction VtxDivider(props) {\r\n const { size } = props;\r\n return (\r\n <Divider\r\n className={classnames('vtx-form-divider', {\r\n ['vtx-form-divider--small']: size === 'small',\r\n })}\r\n />\r\n );\r\n}\r\n\r\nVtxDivider.propTypes = {\r\n size: PropTypes.oneOf(['default', 'small']),\r\n};\r\n\r\nexport default VtxDivider;\r\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;;;;;AAEA,SAASA,UAAT,CAAoBC,KAApB,EAA2B;EACvB,IAAQC,IAAR,GAAiBD,KAAjB,CAAQC,IAAR;EACA,oBACI,gCAAC,mBAAD;IACI,SAAS,EAAE,IAAAC,uBAAA,EAAW,kBAAX,sBACN,yBADM,EACsBD,IAAI,KAAK,OAD/B;EADf,EADJ;AAOH;;AAEDF,UAAU,CAACI,SAAX,GAAuB;EACnBF,IAAI,EAAEG,qBAAA,CAAUC,KAAV,CAAgB,CAAC,SAAD,EAAY,OAAZ,CAAhB;AADa,CAAvB;eAIeN,U"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormItem.js","names":["SPAN","FormItem","props","weights","label","inline","rest","useContext","StoreCtx","labelColSpan","cols","mode","formLayout","layout","formItemLayout","conversionLabelColSpan","wrapperColSpan","labelCol","span","wrapperCol","classnames","children","propTypes","PropTypes","number","node","bool","tip","oneOfType","string"],"sources":["vtx-form-layout/FormItem.jsx"],"sourcesContent":["import React, { useContext } from 'react';\nimport PropTypes from 'prop-types';\nimport Form from 'antd/lib/form';\nimport Col from 'antd/lib/col';\nimport Tooltip from 'antd/lib/tooltip';\nimport classnames from 'classnames';\nimport { StoreCtx } from './context';\n\n// 24 栅格\nconst SPAN = 24;\n\nexport default function FormItem(props) {\n const { weights = 1, label, inline, ...rest } = props;\n const { labelColSpan, cols, mode, layout: formLayout } = useContext(StoreCtx);\n\n let formItemLayout = null;\n if (formLayout === 'horizontal') {\n const conversionLabelColSpan = labelColSpan / weights;\n const wrapperColSpan = SPAN - conversionLabelColSpan;\n formItemLayout = {\n labelCol: { span: conversionLabelColSpan },\n wrapperCol: { span: wrapperColSpan },\n };\n }\n\n return (\n <Col span={(SPAN * weights) / cols} className=\"vtx-form-item-col\">\n <Form.Item\n className={classnames(\n 'vtx-form-item',\n { 'vtx-form-item-vertical': formLayout === 'vertical' && mode !== 'view' },\n { 'vtx-form-item--view': mode === 'view' },\n { 'vtx-form-item--inline': inline && mode !== 'view' },\n )}\n {...formItemLayout}\n label={<Tooltip title={label}>{label}</Tooltip>}\n {...rest}\n >\n {props.children}\n </Form.Item>\n </Col>\n );\n}\n\nFormItem.propTypes = {\n weights: PropTypes.number,\n children: PropTypes.node,\n inline: PropTypes.bool,\n tip: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),\n label: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),\n};\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;AAEA;AACA,IAAMA,IAAI,GAAG,EAAb;;AAEe,SAASC,QAAT,CAAkBC,KAAlB,EAAyB;EACpC,qBAAgDA,KAAhD,CAAQC,OAAR;EAAA,IAAQA,OAAR,+BAAkB,CAAlB;EAAA,IAAqBC,KAArB,GAAgDF,KAAhD,CAAqBE,KAArB;EAAA,IAA4BC,MAA5B,GAAgDH,KAAhD,CAA4BG,MAA5B;EAAA,IAAuCC,IAAvC,4BAAgDJ,KAAhD;;EACA,kBAAyD,IAAAK,iBAAA,EAAWC,iBAAX,CAAzD;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AA7B,CAApB,CAJY;EAKjBrB,KAAK,EAAEmB,qBAAA,CAAUK,SAAV,CAAoB,CAACL,qBAAA,CAAUM,MAAX,EAAmBN,qBAAA,CAAUE,IAA7B,CAApB;AALU,CAArB"}
|
|
1
|
+
{"version":3,"file":"FormItem.js","names":["SPAN","FormItem","props","weights","label","inline","rest","useContext","StoreCtx","labelColSpan","cols","mode","formLayout","layout","formItemLayout","conversionLabelColSpan","wrapperColSpan","labelCol","span","wrapperCol","classnames","children","propTypes","PropTypes","number","node","bool","tip","oneOfType","string"],"sources":["vtx-form-layout/FormItem.jsx"],"sourcesContent":["import React, { useContext } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport Form from 'antd/lib/form';\r\nimport Col from 'antd/lib/col';\r\nimport Tooltip from 'antd/lib/tooltip';\r\nimport classnames from 'classnames';\r\nimport { StoreCtx } from './context';\r\n\r\n// 24 栅格\r\nconst SPAN = 24;\r\n\r\nexport default function FormItem(props) {\r\n const { weights = 1, label, inline, ...rest } = props;\r\n const { labelColSpan, cols, mode, layout: formLayout } = useContext(StoreCtx);\r\n\r\n let formItemLayout = null;\r\n if (formLayout === 'horizontal') {\r\n const conversionLabelColSpan = labelColSpan / weights;\r\n const wrapperColSpan = SPAN - conversionLabelColSpan;\r\n formItemLayout = {\r\n labelCol: { span: conversionLabelColSpan },\r\n wrapperCol: { span: wrapperColSpan },\r\n };\r\n }\r\n\r\n return (\r\n <Col span={(SPAN * weights) / cols} className=\"vtx-form-item-col\">\r\n <Form.Item\r\n className={classnames(\r\n 'vtx-form-item',\r\n { 'vtx-form-item-vertical': formLayout === 'vertical' && mode !== 'view' },\r\n { 'vtx-form-item--view': mode === 'view' },\r\n { 'vtx-form-item--inline': inline && mode !== 'view' },\r\n )}\r\n {...formItemLayout}\r\n label={<Tooltip title={label}>{label}</Tooltip>}\r\n {...rest}\r\n >\r\n {props.children}\r\n </Form.Item>\r\n </Col>\r\n );\r\n}\r\n\r\nFormItem.propTypes = {\r\n weights: PropTypes.number,\r\n children: PropTypes.node,\r\n inline: PropTypes.bool,\r\n tip: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),\r\n label: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),\r\n};\r\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;AAEA;AACA,IAAMA,IAAI,GAAG,EAAb;;AAEe,SAASC,QAAT,CAAkBC,KAAlB,EAAyB;EACpC,qBAAgDA,KAAhD,CAAQC,OAAR;EAAA,IAAQA,OAAR,+BAAkB,CAAlB;EAAA,IAAqBC,KAArB,GAAgDF,KAAhD,CAAqBE,KAArB;EAAA,IAA4BC,MAA5B,GAAgDH,KAAhD,CAA4BG,MAA5B;EAAA,IAAuCC,IAAvC,4BAAgDJ,KAAhD;;EACA,kBAAyD,IAAAK,iBAAA,EAAWC,iBAAX,CAAzD;EAAA,IAAQC,YAAR,eAAQA,YAAR;EAAA,IAAsBC,IAAtB,eAAsBA,IAAtB;EAAA,IAA4BC,IAA5B,eAA4BA,IAA5B;EAAA,IAA0CC,UAA1C,eAAkCC,MAAlC;;EAEA,IAAIC,cAAc,GAAG,IAArB;;EACA,IAAIF,UAAU,KAAK,YAAnB,EAAiC;IAC7B,IAAMG,sBAAsB,GAAGN,YAAY,GAAGN,OAA9C;IACA,IAAMa,cAAc,GAAGhB,IAAI,GAAGe,sBAA9B;IACAD,cAAc,GAAG;MACbG,QAAQ,EAAE;QAAEC,IAAI,EAAEH;MAAR,CADG;MAEbI,UAAU,EAAE;QAAED,IAAI,EAAEF;MAAR;IAFC,CAAjB;EAIH;;EAED,oBACI,gCAAC,eAAD;IAAK,IAAI,EAAGhB,IAAI,GAAGG,OAAR,GAAmBO,IAA9B;IAAoC,SAAS,EAAC;EAA9C,gBACI,gCAAC,gBAAD,CAAM,IAAN;IACI,SAAS,EAAE,IAAAU,sBAAA,EACP,eADO,EAEP;MAAE,0BAA0BR,UAAU,KAAK,UAAf,IAA6BD,IAAI,KAAK;IAAlE,CAFO,EAGP;MAAE,uBAAuBA,IAAI,KAAK;IAAlC,CAHO,EAIP;MAAE,yBAAyBN,MAAM,IAAIM,IAAI,KAAK;IAA9C,CAJO;EADf,GAOQG,cAPR;IAQI,KAAK,eAAE,gCAAC,mBAAD;MAAS,KAAK,EAAEV;IAAhB,GAAwBA,KAAxB;EARX,GASQE,IATR,GAWKJ,KAAK,CAACmB,QAXX,CADJ,CADJ;AAiBH;;AAEDpB,QAAQ,CAACqB,SAAT,GAAqB;EACjBnB,OAAO,EAAEoB,qBAAA,CAAUC,MADF;EAEjBH,QAAQ,EAAEE,qBAAA,CAAUE,IAFH;EAGjBpB,MAAM,EAAEkB,qBAAA,CAAUG,IAHD;EAIjBC,GAAG,EAAEJ,qBAAA,CAAUK,SAAV,CAAoB,CAACL,qBAAA,CAAUM,MAAX,EAAmBN,qBAAA,CAAUE,IAA7B,CAApB,CAJY;EAKjBrB,KAAK,EAAEmB,qBAAA,CAAUK,SAAV,CAAoB,CAACL,qBAAA,CAAUM,MAAX,EAAmBN,qBAAA,CAAUE,IAA7B,CAApB;AALU,CAArB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Row.js","names":["FormRow","props","children","propTypes","PropTypes","node"],"sources":["vtx-form-layout/Row.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Row from 'antd/lib/row';\n\nfunction FormRow(props) {\n return <Row {...props}>{props.children}</Row>;\n}\n\nFormRow.propTypes = { children: PropTypes.node };\n\nexport default FormRow;\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;;;AAEA,SAASA,OAAT,CAAiBC,KAAjB,EAAwB;EACpB,oBAAO,gCAAC,eAAD,EAASA,KAAT,EAAiBA,KAAK,CAACC,QAAvB,CAAP;AACH;;AAEDF,OAAO,CAACG,SAAR,GAAoB;EAAED,QAAQ,EAAEE,qBAAA,CAAUC;AAAtB,CAApB;eAEeL,O"}
|
|
1
|
+
{"version":3,"file":"Row.js","names":["FormRow","props","children","propTypes","PropTypes","node"],"sources":["vtx-form-layout/Row.js"],"sourcesContent":["import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport Row from 'antd/lib/row';\r\n\r\nfunction FormRow(props) {\r\n return <Row {...props}>{props.children}</Row>;\r\n}\r\n\r\nFormRow.propTypes = { children: PropTypes.node };\r\n\r\nexport default FormRow;\r\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;;;AAEA,SAASA,OAAT,CAAiBC,KAAjB,EAAwB;EACpB,oBAAO,gCAAC,eAAD,EAASA,KAAT,EAAiBA,KAAK,CAACC,QAAvB,CAAP;AACH;;AAEDF,OAAO,CAACG,SAAR,GAAoB;EAAED,QAAQ,EAAEE,qBAAA,CAAUC;AAAtB,CAApB;eAEeL,O"}
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
@import (reference) '~antd/lib/style/themes/index.less';
|
|
2
|
-
|
|
3
|
-
.vtx-demo-modal {
|
|
4
|
-
position: relative;
|
|
5
|
-
background-color: @component-background;
|
|
6
|
-
background-clip: padding-box;
|
|
7
|
-
border: 1px solid @border-color-base;
|
|
8
|
-
border-radius: 4px;
|
|
9
|
-
box-shadow: 0 4px 12px rgba(0, 0, 0, 15%);
|
|
10
|
-
pointer-events: auto;
|
|
11
|
-
&-header {
|
|
12
|
-
padding: 16px 24px;
|
|
13
|
-
color: rgba(0, 0, 0, 0.65);
|
|
14
|
-
background: @component-background;
|
|
15
|
-
border-bottom: 1px solid @border-color-base;
|
|
16
|
-
border-radius: 4px 4px 0 0;
|
|
17
|
-
}
|
|
18
|
-
&-title {
|
|
19
|
-
margin: 0;
|
|
20
|
-
color: @text-color;
|
|
21
|
-
font-weight: 500;
|
|
22
|
-
font-size: 16px;
|
|
23
|
-
line-height: 22px;
|
|
24
|
-
word-wrap: break-word;
|
|
25
|
-
}
|
|
26
|
-
&-body {
|
|
27
|
-
padding: 20px 24px;
|
|
28
|
-
font-size: 14px;
|
|
29
|
-
line-height: 1.5;
|
|
30
|
-
word-wrap: break-word;
|
|
31
|
-
}
|
|
32
|
-
&-footer {
|
|
33
|
-
padding: 10px 16px;
|
|
34
|
-
text-align: right;
|
|
35
|
-
background: transparent;
|
|
36
|
-
border-top: 1px solid @border-color-base;
|
|
37
|
-
border-radius: 0 0 4px 4px;
|
|
38
|
-
button + button {
|
|
39
|
-
margin-bottom: 0;
|
|
40
|
-
margin-left: 8px;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
1
|
+
@import (reference) '~antd/lib/style/themes/index.less';
|
|
2
|
+
|
|
3
|
+
.vtx-demo-modal {
|
|
4
|
+
position: relative;
|
|
5
|
+
background-color: @component-background;
|
|
6
|
+
background-clip: padding-box;
|
|
7
|
+
border: 1px solid @border-color-base;
|
|
8
|
+
border-radius: 4px;
|
|
9
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 15%);
|
|
10
|
+
pointer-events: auto;
|
|
11
|
+
&-header {
|
|
12
|
+
padding: 16px 24px;
|
|
13
|
+
color: rgba(0, 0, 0, 0.65);
|
|
14
|
+
background: @component-background;
|
|
15
|
+
border-bottom: 1px solid @border-color-base;
|
|
16
|
+
border-radius: 4px 4px 0 0;
|
|
17
|
+
}
|
|
18
|
+
&-title {
|
|
19
|
+
margin: 0;
|
|
20
|
+
color: @text-color;
|
|
21
|
+
font-weight: 500;
|
|
22
|
+
font-size: 16px;
|
|
23
|
+
line-height: 22px;
|
|
24
|
+
word-wrap: break-word;
|
|
25
|
+
}
|
|
26
|
+
&-body {
|
|
27
|
+
padding: 20px 24px;
|
|
28
|
+
font-size: 14px;
|
|
29
|
+
line-height: 1.5;
|
|
30
|
+
word-wrap: break-word;
|
|
31
|
+
}
|
|
32
|
+
&-footer {
|
|
33
|
+
padding: 10px 16px;
|
|
34
|
+
text-align: right;
|
|
35
|
+
background: transparent;
|
|
36
|
+
border-top: 1px solid @border-color-base;
|
|
37
|
+
border-radius: 0 0 4px 4px;
|
|
38
|
+
button + button {
|
|
39
|
+
margin-bottom: 0;
|
|
40
|
+
margin-left: 8px;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["VtxFormLayout","props","cols","labelColSpan","mode","layout","card","skeleton","store","defaultSkeleton","loading","title","paragraph","width","rows","classnames","merge","children","propTypes","PropTypes","number","oneOf","node","bool","object","Row","FormItem","Card","Pane","Divider"],"sources":["vtx-form-layout/index.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport merge from 'lodash.merge';\nimport Skeleton from 'antd/lib/skeleton';\nimport Row from './Row';\nimport FormItem from './FormItem';\nimport Card from './Card';\nimport Pane from './Pane';\nimport Divider from './Divider';\nimport { StoreCtx } from './context';\n\nfunction VtxFormLayout(props) {\n const { cols = 2, labelColSpan = 8, mode, layout = 'vertical', card, skeleton } = props;\n const store = {\n cols,\n labelColSpan,\n mode,\n layout,\n };\n const defaultSkeleton = {\n loading: false,\n title: false,\n paragraph: {\n width: '100%',\n rows: 4,\n },\n };\n return (\n <StoreCtx.Provider value={store}>\n <div\n className={classnames('vtx-form-layout', {\n 'vtx-form-layout-vertical': layout === 'vertical' && mode !== 'view',\n 'vtx-form-layout-view': mode === 'view',\n 'vtx-form-layout-has-card': card,\n })}\n >\n <Skeleton {...merge(defaultSkeleton, skeleton)}>{props.children}</Skeleton>\n </div>\n </StoreCtx.Provider>\n );\n}\n\nVtxFormLayout.propTypes = {\n cols: PropTypes.number,\n labelColSpan: PropTypes.number,\n mode: PropTypes.oneOf(['view']),\n layout: PropTypes.oneOf(['horizontal', 'vertical']),\n children: PropTypes.node,\n card: PropTypes.bool,\n skeleton: PropTypes.object,\n};\n\nVtxFormLayout.Row = Row;\nVtxFormLayout.FormItem = FormItem;\nVtxFormLayout.Card = Card;\nVtxFormLayout.Pane = Pane;\nVtxFormLayout.Divider = Divider;\n\nexport default VtxFormLayout;\n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iB,qBAAA,CAAUC,MADM;EAEtBjB,YAAY,EAAEgB,qBAAA,CAAUC,MAFF;EAGtBhB,IAAI,EAAEe,qBAAA,CAAUE,KAAV,CAAgB,CAAC,MAAD,CAAhB,CAHgB;EAItBhB,MAAM,EAAEc,qBAAA,CAAUE,KAAV,CAAgB,CAAC,YAAD,EAAe,UAAf,CAAhB,CAJc;EAKtBJ,QAAQ,EAAEE,qBAAA,CAAUG,IALE;EAMtBhB,IAAI,EAAEa,qBAAA,CAAUI,IANM;EAOtBhB,QAAQ,EAAEY,qBAAA,CAAUK;AAPE,CAA1B;AAUAxB,aAAa,CAACyB,GAAd,GAAoBA,eAApB;AACAzB,aAAa,CAAC0B,QAAd,GAAyBA,oBAAzB;AACA1B,aAAa,CAAC2B,IAAd,GAAqBA,gBAArB;AACA3B,aAAa,CAAC4B,IAAd,GAAqBA,gBAArB;AACA5B,aAAa,CAAC6B,OAAd,GAAwBA,mBAAxB;eAEe7B,a"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["VtxFormLayout","props","cols","labelColSpan","mode","layout","card","skeleton","store","defaultSkeleton","loading","title","paragraph","width","rows","classnames","merge","children","propTypes","PropTypes","number","oneOf","node","bool","object","Row","FormItem","Card","Pane","Divider"],"sources":["vtx-form-layout/index.jsx"],"sourcesContent":["import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport classnames from 'classnames';\r\nimport merge from 'lodash.merge';\r\nimport Skeleton from 'antd/lib/skeleton';\r\nimport Row from './Row';\r\nimport FormItem from './FormItem';\r\nimport Card from './Card';\r\nimport Pane from './Pane';\r\nimport Divider from './Divider';\r\nimport { StoreCtx } from './context';\r\n\r\nfunction VtxFormLayout(props) {\r\n const { cols = 2, labelColSpan = 8, mode, layout = 'vertical', card, skeleton } = props;\r\n const store = {\r\n cols,\r\n labelColSpan,\r\n mode,\r\n layout,\r\n };\r\n const defaultSkeleton = {\r\n loading: false,\r\n title: false,\r\n paragraph: {\r\n width: '100%',\r\n rows: 4,\r\n },\r\n };\r\n return (\r\n <StoreCtx.Provider value={store}>\r\n <div\r\n className={classnames('vtx-form-layout', {\r\n 'vtx-form-layout-vertical': layout === 'vertical' && mode !== 'view',\r\n 'vtx-form-layout-view': mode === 'view',\r\n 'vtx-form-layout-has-card': card,\r\n })}\r\n >\r\n <Skeleton {...merge(defaultSkeleton, skeleton)}>{props.children}</Skeleton>\r\n </div>\r\n </StoreCtx.Provider>\r\n );\r\n}\r\n\r\nVtxFormLayout.propTypes = {\r\n cols: PropTypes.number,\r\n labelColSpan: PropTypes.number,\r\n mode: PropTypes.oneOf(['view']),\r\n layout: PropTypes.oneOf(['horizontal', 'vertical']),\r\n children: PropTypes.node,\r\n card: PropTypes.bool,\r\n skeleton: PropTypes.object,\r\n};\r\n\r\nVtxFormLayout.Row = Row;\r\nVtxFormLayout.FormItem = FormItem;\r\nVtxFormLayout.Card = Card;\r\nVtxFormLayout.Pane = Pane;\r\nVtxFormLayout.Divider = Divider;\r\n\r\nexport default VtxFormLayout;\r\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,SAASA,aAAT,CAAuBC,KAAvB,EAA8B;EAC1B,kBAAkFA,KAAlF,CAAQC,IAAR;EAAA,IAAQA,IAAR,4BAAe,CAAf;EAAA,0BAAkFD,KAAlF,CAAkBE,YAAlB;EAAA,IAAkBA,YAAlB,oCAAiC,CAAjC;EAAA,IAAoCC,IAApC,GAAkFH,KAAlF,CAAoCG,IAApC;EAAA,oBAAkFH,KAAlF,CAA0CI,MAA1C;EAAA,IAA0CA,MAA1C,8BAAmD,UAAnD;EAAA,IAA+DC,IAA/D,GAAkFL,KAAlF,CAA+DK,IAA/D;EAAA,IAAqEC,QAArE,GAAkFN,KAAlF,CAAqEM,QAArE;EACA,IAAMC,KAAK,GAAG;IACVN,IAAI,EAAJA,IADU;IAEVC,YAAY,EAAZA,YAFU;IAGVC,IAAI,EAAJA,IAHU;IAIV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1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"css.js","names":[],"sources":["vtx-form-layout/style/index.js"],"sourcesContent":["import 'antd/lib/row/style';\nimport 'antd/lib/col/style';\nimport 'antd/lib/form/style';\nimport 'antd/lib/tooltip/style';\nimport 'antd/lib/card/style';\nimport 'antd/lib/divider/style';\nimport 'antd/lib/skeleton/style';\nimport './index.less';\n"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA"}
|
|
1
|
+
{"version":3,"file":"css.js","names":[],"sources":["vtx-form-layout/style/index.js"],"sourcesContent":["import 'antd/lib/row/style';\r\nimport 'antd/lib/col/style';\r\nimport 'antd/lib/form/style';\r\nimport 'antd/lib/tooltip/style';\r\nimport 'antd/lib/card/style';\r\nimport 'antd/lib/divider/style';\r\nimport 'antd/lib/skeleton/style';\r\nimport './index.less';\r\n"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["vtx-form-layout/style/index.js"],"sourcesContent":["import 'antd/lib/row/style';\nimport 'antd/lib/col/style';\nimport 'antd/lib/form/style';\nimport 'antd/lib/tooltip/style';\nimport 'antd/lib/card/style';\nimport 'antd/lib/divider/style';\nimport 'antd/lib/skeleton/style';\nimport './index.less';\n"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA"}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["vtx-form-layout/style/index.js"],"sourcesContent":["import 'antd/lib/row/style';\r\nimport 'antd/lib/col/style';\r\nimport 'antd/lib/form/style';\r\nimport 'antd/lib/tooltip/style';\r\nimport 'antd/lib/card/style';\r\nimport 'antd/lib/divider/style';\r\nimport 'antd/lib/skeleton/style';\r\nimport './index.less';\r\n"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA"}
|
|
@@ -1,216 +1,216 @@
|
|
|
1
|
-
@import (reference) '~antd/lib/style/themes/index.less';
|
|
2
|
-
|
|
3
|
-
@view-item-margin-bottom: 16px;
|
|
4
|
-
|
|
5
|
-
.vtx-form-layout {
|
|
6
|
-
position: relative;
|
|
7
|
-
display: flex;
|
|
8
|
-
flex-flow: row wrap;
|
|
9
|
-
width: 100%;
|
|
10
|
-
padding: 0 @padding-lg;
|
|
11
|
-
overflow: hidden;
|
|
12
|
-
.vtx-form-item {
|
|
13
|
-
.ant-form-item-label {
|
|
14
|
-
text-overflow: ellipsis;
|
|
15
|
-
label::after {
|
|
16
|
-
content: '';
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
&-vertical {
|
|
20
|
-
flex-direction: column;
|
|
21
|
-
.ant-form-item-row {
|
|
22
|
-
flex-direction: column;
|
|
23
|
-
margin-bottom: 20px;
|
|
24
|
-
}
|
|
25
|
-
.ant-form-item-label,
|
|
26
|
-
.ant-form-item-control {
|
|
27
|
-
line-height: @line-height-base;
|
|
28
|
-
}
|
|
29
|
-
.ant-form-item-label {
|
|
30
|
-
margin-bottom: 8px;
|
|
31
|
-
padding: 0 !important;
|
|
32
|
-
white-space: initial;
|
|
33
|
-
text-align: left;
|
|
34
|
-
label {
|
|
35
|
-
height: auto;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
.ant-form-item-explain {
|
|
40
|
-
font-size: @font-size-sm;
|
|
41
|
-
}
|
|
42
|
-
&--inline {
|
|
43
|
-
flex: none;
|
|
44
|
-
flex-direction: row;
|
|
45
|
-
flex-wrap: nowrap;
|
|
46
|
-
margin-right: 16px;
|
|
47
|
-
margin-bottom: @view-item-margin-bottom !important;
|
|
48
|
-
row-gap: 0;
|
|
49
|
-
.ant-form-item-control-input {
|
|
50
|
-
min-height: auto;
|
|
51
|
-
}
|
|
52
|
-
.ant-form-item-label {
|
|
53
|
-
flex: none;
|
|
54
|
-
margin-bottom: 0;
|
|
55
|
-
& > label {
|
|
56
|
-
height: auto;
|
|
57
|
-
color: @text-color;
|
|
58
|
-
}
|
|
59
|
-
label::after {
|
|
60
|
-
content: ':';
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
&--view {
|
|
65
|
-
.ant-form-item-label,
|
|
66
|
-
.ant-form-item-control {
|
|
67
|
-
line-height: @line-height-base;
|
|
68
|
-
}
|
|
69
|
-
.ant-form-item-label {
|
|
70
|
-
& > label {
|
|
71
|
-
height: auto;
|
|
72
|
-
color: @text-color;
|
|
73
|
-
}
|
|
74
|
-
label::after {
|
|
75
|
-
content: ':';
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
.ant-form-item-control {
|
|
79
|
-
color: @text-color;
|
|
80
|
-
.ant-form-item-control-input {
|
|
81
|
-
min-height: auto;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
.vtx-form-item-col {
|
|
87
|
-
.ant-form-item {
|
|
88
|
-
margin-bottom: 20px;
|
|
89
|
-
}
|
|
90
|
-
.vtx-form-item--view {
|
|
91
|
-
margin-bottom: 0;
|
|
92
|
-
}
|
|
93
|
-
.ant-form-item-with-help {
|
|
94
|
-
margin-bottom: 0;
|
|
95
|
-
}
|
|
96
|
-
.ant-form-item-explain {
|
|
97
|
-
min-height: 20px;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
.vtx-form-card {
|
|
101
|
-
position: relative;
|
|
102
|
-
width: 100%;
|
|
103
|
-
overflow: hidden;
|
|
104
|
-
&-expand-icon {
|
|
105
|
-
color: fade(@text-color, 75%);
|
|
106
|
-
transition: transform 0.24s, -webkit-transform 0.24s;
|
|
107
|
-
}
|
|
108
|
-
.ant-card-body {
|
|
109
|
-
padding: 0;
|
|
110
|
-
}
|
|
111
|
-
.ant-card-head-wrapper,
|
|
112
|
-
.ant-card-head-title {
|
|
113
|
-
font-weight: bold;
|
|
114
|
-
line-height: 1;
|
|
115
|
-
}
|
|
116
|
-
&-content {
|
|
117
|
-
display: flex;
|
|
118
|
-
flex-flow: row wrap;
|
|
119
|
-
padding: 20px 24px;
|
|
120
|
-
padding-bottom: 0;
|
|
121
|
-
&::after {
|
|
122
|
-
clear: both;
|
|
123
|
-
}
|
|
124
|
-
&::before,
|
|
125
|
-
&::after {
|
|
126
|
-
display: table;
|
|
127
|
-
content: '';
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
&-content-hide {
|
|
131
|
-
display: none;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
.vtx-form-card + .vtx-form-card {
|
|
135
|
-
margin-top: 20px;
|
|
136
|
-
}
|
|
137
|
-
.vtx-form-pane {
|
|
138
|
-
position: relative;
|
|
139
|
-
box-sizing: border-box;
|
|
140
|
-
width: 100%;
|
|
141
|
-
&::after {
|
|
142
|
-
clear: both;
|
|
143
|
-
}
|
|
144
|
-
&::before,
|
|
145
|
-
&::after {
|
|
146
|
-
display: table;
|
|
147
|
-
content: '';
|
|
148
|
-
}
|
|
149
|
-
&-title {
|
|
150
|
-
margin-bottom: 16px;
|
|
151
|
-
overflow: hidden;
|
|
152
|
-
color: @text-color;
|
|
153
|
-
font-weight: 500;
|
|
154
|
-
line-height: @line-height-base;
|
|
155
|
-
list-style: none;
|
|
156
|
-
}
|
|
157
|
-
&-content {
|
|
158
|
-
display: flex;
|
|
159
|
-
flex-flow: row wrap;
|
|
160
|
-
&::after {
|
|
161
|
-
clear: both;
|
|
162
|
-
}
|
|
163
|
-
&::before,
|
|
164
|
-
&::after {
|
|
165
|
-
display: table;
|
|
166
|
-
content: '';
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
.vtx-form-divider {
|
|
171
|
-
margin: 0;
|
|
172
|
-
margin-bottom: 20px;
|
|
173
|
-
&--small {
|
|
174
|
-
margin-bottom: 16px;
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
.vtx-form-tabs {
|
|
178
|
-
width: 100%;
|
|
179
|
-
.ant-tabs-bar {
|
|
180
|
-
padding-right: @padding-sm;
|
|
181
|
-
padding-left: @padding-sm;
|
|
182
|
-
border-bottom: none;
|
|
183
|
-
}
|
|
184
|
-
.ant-tabs-tab {
|
|
185
|
-
padding: 5px 0 10px 0;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
&-vertical {
|
|
189
|
-
padding: 0 @padding-sm;
|
|
190
|
-
.vtx-form-item-col {
|
|
191
|
-
padding-right: @padding-sm;
|
|
192
|
-
padding-left: @padding-sm;
|
|
193
|
-
}
|
|
194
|
-
.vtx-form-card-content {
|
|
195
|
-
padding: 20px @padding-sm;
|
|
196
|
-
padding-bottom: 0;
|
|
197
|
-
}
|
|
198
|
-
.vtx-form-pane-title {
|
|
199
|
-
padding: 0 @padding-sm;
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
&-has-card {
|
|
203
|
-
padding: 0;
|
|
204
|
-
.vtx-form-tabs .ant-tabs-bar {
|
|
205
|
-
padding: 0 @padding-lg;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
&-view {
|
|
209
|
-
.vtx-form-item-col {
|
|
210
|
-
margin-bottom: @view-item-margin-bottom;
|
|
211
|
-
}
|
|
212
|
-
.vtx-form-divider {
|
|
213
|
-
margin-bottom: @view-item-margin-bottom;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
}
|
|
1
|
+
@import (reference) '~antd/lib/style/themes/index.less';
|
|
2
|
+
|
|
3
|
+
@view-item-margin-bottom: 16px;
|
|
4
|
+
|
|
5
|
+
.vtx-form-layout {
|
|
6
|
+
position: relative;
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-flow: row wrap;
|
|
9
|
+
width: 100%;
|
|
10
|
+
padding: 0 @padding-lg;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
.vtx-form-item {
|
|
13
|
+
.ant-form-item-label {
|
|
14
|
+
text-overflow: ellipsis;
|
|
15
|
+
label::after {
|
|
16
|
+
content: '';
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
&-vertical {
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
.ant-form-item-row {
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
margin-bottom: 20px;
|
|
24
|
+
}
|
|
25
|
+
.ant-form-item-label,
|
|
26
|
+
.ant-form-item-control {
|
|
27
|
+
line-height: @line-height-base;
|
|
28
|
+
}
|
|
29
|
+
.ant-form-item-label {
|
|
30
|
+
margin-bottom: 8px;
|
|
31
|
+
padding: 0 !important;
|
|
32
|
+
white-space: initial;
|
|
33
|
+
text-align: left;
|
|
34
|
+
label {
|
|
35
|
+
height: auto;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
.ant-form-item-explain {
|
|
40
|
+
font-size: @font-size-sm;
|
|
41
|
+
}
|
|
42
|
+
&--inline {
|
|
43
|
+
flex: none;
|
|
44
|
+
flex-direction: row;
|
|
45
|
+
flex-wrap: nowrap;
|
|
46
|
+
margin-right: 16px;
|
|
47
|
+
margin-bottom: @view-item-margin-bottom !important;
|
|
48
|
+
row-gap: 0;
|
|
49
|
+
.ant-form-item-control-input {
|
|
50
|
+
min-height: auto;
|
|
51
|
+
}
|
|
52
|
+
.ant-form-item-label {
|
|
53
|
+
flex: none;
|
|
54
|
+
margin-bottom: 0;
|
|
55
|
+
& > label {
|
|
56
|
+
height: auto;
|
|
57
|
+
color: @text-color;
|
|
58
|
+
}
|
|
59
|
+
label::after {
|
|
60
|
+
content: ':';
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
&--view {
|
|
65
|
+
.ant-form-item-label,
|
|
66
|
+
.ant-form-item-control {
|
|
67
|
+
line-height: @line-height-base;
|
|
68
|
+
}
|
|
69
|
+
.ant-form-item-label {
|
|
70
|
+
& > label {
|
|
71
|
+
height: auto;
|
|
72
|
+
color: @text-color;
|
|
73
|
+
}
|
|
74
|
+
label::after {
|
|
75
|
+
content: ':';
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
.ant-form-item-control {
|
|
79
|
+
color: @text-color;
|
|
80
|
+
.ant-form-item-control-input {
|
|
81
|
+
min-height: auto;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
.vtx-form-item-col {
|
|
87
|
+
.ant-form-item {
|
|
88
|
+
margin-bottom: 20px;
|
|
89
|
+
}
|
|
90
|
+
.vtx-form-item--view {
|
|
91
|
+
margin-bottom: 0;
|
|
92
|
+
}
|
|
93
|
+
.ant-form-item-with-help {
|
|
94
|
+
margin-bottom: 0;
|
|
95
|
+
}
|
|
96
|
+
.ant-form-item-explain {
|
|
97
|
+
min-height: 20px;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
.vtx-form-card {
|
|
101
|
+
position: relative;
|
|
102
|
+
width: 100%;
|
|
103
|
+
overflow: hidden;
|
|
104
|
+
&-expand-icon {
|
|
105
|
+
color: fade(@text-color, 75%);
|
|
106
|
+
transition: transform 0.24s, -webkit-transform 0.24s;
|
|
107
|
+
}
|
|
108
|
+
.ant-card-body {
|
|
109
|
+
padding: 0;
|
|
110
|
+
}
|
|
111
|
+
.ant-card-head-wrapper,
|
|
112
|
+
.ant-card-head-title {
|
|
113
|
+
font-weight: bold;
|
|
114
|
+
line-height: 1;
|
|
115
|
+
}
|
|
116
|
+
&-content {
|
|
117
|
+
display: flex;
|
|
118
|
+
flex-flow: row wrap;
|
|
119
|
+
padding: 20px 24px;
|
|
120
|
+
padding-bottom: 0;
|
|
121
|
+
&::after {
|
|
122
|
+
clear: both;
|
|
123
|
+
}
|
|
124
|
+
&::before,
|
|
125
|
+
&::after {
|
|
126
|
+
display: table;
|
|
127
|
+
content: '';
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
&-content-hide {
|
|
131
|
+
display: none;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
.vtx-form-card + .vtx-form-card {
|
|
135
|
+
margin-top: 20px;
|
|
136
|
+
}
|
|
137
|
+
.vtx-form-pane {
|
|
138
|
+
position: relative;
|
|
139
|
+
box-sizing: border-box;
|
|
140
|
+
width: 100%;
|
|
141
|
+
&::after {
|
|
142
|
+
clear: both;
|
|
143
|
+
}
|
|
144
|
+
&::before,
|
|
145
|
+
&::after {
|
|
146
|
+
display: table;
|
|
147
|
+
content: '';
|
|
148
|
+
}
|
|
149
|
+
&-title {
|
|
150
|
+
margin-bottom: 16px;
|
|
151
|
+
overflow: hidden;
|
|
152
|
+
color: @text-color;
|
|
153
|
+
font-weight: 500;
|
|
154
|
+
line-height: @line-height-base;
|
|
155
|
+
list-style: none;
|
|
156
|
+
}
|
|
157
|
+
&-content {
|
|
158
|
+
display: flex;
|
|
159
|
+
flex-flow: row wrap;
|
|
160
|
+
&::after {
|
|
161
|
+
clear: both;
|
|
162
|
+
}
|
|
163
|
+
&::before,
|
|
164
|
+
&::after {
|
|
165
|
+
display: table;
|
|
166
|
+
content: '';
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
.vtx-form-divider {
|
|
171
|
+
margin: 0;
|
|
172
|
+
margin-bottom: 20px;
|
|
173
|
+
&--small {
|
|
174
|
+
margin-bottom: 16px;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
.vtx-form-tabs {
|
|
178
|
+
width: 100%;
|
|
179
|
+
.ant-tabs-bar {
|
|
180
|
+
padding-right: @padding-sm;
|
|
181
|
+
padding-left: @padding-sm;
|
|
182
|
+
border-bottom: none;
|
|
183
|
+
}
|
|
184
|
+
.ant-tabs-tab {
|
|
185
|
+
padding: 5px 0 10px 0;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
&-vertical {
|
|
189
|
+
padding: 0 @padding-sm;
|
|
190
|
+
.vtx-form-item-col {
|
|
191
|
+
padding-right: @padding-sm;
|
|
192
|
+
padding-left: @padding-sm;
|
|
193
|
+
}
|
|
194
|
+
.vtx-form-card-content {
|
|
195
|
+
padding: 20px @padding-sm;
|
|
196
|
+
padding-bottom: 0;
|
|
197
|
+
}
|
|
198
|
+
.vtx-form-pane-title {
|
|
199
|
+
padding: 0 @padding-sm;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
&-has-card {
|
|
203
|
+
padding: 0;
|
|
204
|
+
.vtx-form-tabs .ant-tabs-bar {
|
|
205
|
+
padding: 0 @padding-lg;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
&-view {
|
|
209
|
+
.vtx-form-item-col {
|
|
210
|
+
margin-bottom: @view-item-margin-bottom;
|
|
211
|
+
}
|
|
212
|
+
.vtx-form-divider {
|
|
213
|
+
margin-bottom: @view-item-margin-bottom;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|