@vtx/components 3.1.17 → 3.1.18
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/CHANGELOG.md +1177 -0
- package/README.md +19 -19
- package/lib/_util/filterSpecialCharacters.js +49 -60
- package/lib/_util/filterSpecialCharacters.js.map +1 -1
- package/lib/_util/getComponentProps.js +3 -0
- package/lib/_util/getComponentProps.js.map +1 -1
- package/lib/_util/getUrlParam.js +6 -0
- package/lib/_util/getUrlParam.js.map +1 -1
- package/lib/_util/isFunction.js +1 -0
- package/lib/_util/isFunction.js.map +1 -1
- package/lib/_util/isObject.js +1 -0
- package/lib/_util/isObject.js.map +1 -1
- package/lib/_util/useColSize.js +10 -1
- package/lib/_util/useColSize.js.map +1 -1
- package/lib/_util/useInterval.js +3 -0
- package/lib/_util/useInterval.js.map +1 -1
- package/lib/_util/useSet.js +32 -14
- package/lib/_util/useSet.js.map +1 -1
- package/lib/config.js.map +1 -1
- package/lib/index.js +33 -0
- package/lib/index.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 +21 -5
- package/lib/vtx-color-picker/index.js.map +1 -1
- package/lib/vtx-color-picker/style/css.js +2 -0
- package/lib/vtx-color-picker/style/css.js.map +1 -1
- package/lib/vtx-color-picker/style/index.js +2 -0
- package/lib/vtx-color-picker/style/index.js.map +1 -1
- package/lib/vtx-color-picker/style/index.less +12 -12
- package/lib/vtx-combogrid/Combogrid.js +74 -34
- package/lib/vtx-combogrid/Combogrid.js.map +1 -1
- package/lib/vtx-combogrid/index.js +45 -20
- package/lib/vtx-combogrid/index.js.map +1 -1
- package/lib/vtx-combogrid/style/css.js +7 -0
- package/lib/vtx-combogrid/style/css.js.map +1 -1
- package/lib/vtx-combogrid/style/index.js +7 -0
- 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 +11 -3
- package/lib/vtx-datagrid/Alert.js.map +1 -1
- package/lib/vtx-datagrid/ColumnSetting.js +44 -19
- package/lib/vtx-datagrid/ColumnSetting.js.map +1 -1
- package/lib/vtx-datagrid/ResizeableTitle.js +13 -2
- package/lib/vtx-datagrid/ResizeableTitle.js.map +1 -1
- package/lib/vtx-datagrid/index.js +140 -77
- package/lib/vtx-datagrid/index.js.map +1 -1
- package/lib/vtx-datagrid/renderColumnButtons.js +35 -5
- package/lib/vtx-datagrid/renderColumnButtons.js.map +1 -1
- package/lib/vtx-datagrid/style/css.js +10 -0
- package/lib/vtx-datagrid/style/css.js.map +1 -1
- package/lib/vtx-datagrid/style/index.js +10 -0
- package/lib/vtx-datagrid/style/index.js.map +1 -1
- package/lib/vtx-datagrid/style/index.less +215 -215
- package/lib/vtx-date-picker/QdatePicker.js +46 -16
- package/lib/vtx-date-picker/QdatePicker.js.map +1 -1
- package/lib/vtx-date-picker/generatePicker.js +47 -6
- package/lib/vtx-date-picker/generatePicker.js.map +1 -1
- package/lib/vtx-date-picker/index.js +5 -0
- package/lib/vtx-date-picker/index.js.map +1 -1
- package/lib/vtx-date-picker/style/css.js +1 -0
- package/lib/vtx-date-picker/style/css.js.map +1 -1
- package/lib/vtx-date-picker/style/index.js +1 -0
- 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 +23 -5
- package/lib/vtx-editor/index.js.map +1 -1
- package/lib/vtx-editor/style/css.js +1 -0
- package/lib/vtx-editor/style/css.js.map +1 -1
- package/lib/vtx-editor/style/index.js +1 -0
- 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 +20 -6
- package/lib/vtx-ellipsis-text/index.js.map +1 -1
- package/lib/vtx-ellipsis-text/style/css.js +1 -0
- package/lib/vtx-ellipsis-text/style/css.js.map +1 -1
- package/lib/vtx-ellipsis-text/style/index.js +1 -0
- 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/index.js +66 -33
- package/lib/vtx-export/index.js.map +1 -1
- package/lib/vtx-export/style/css.js +5 -0
- package/lib/vtx-export/style/css.js.map +1 -1
- package/lib/vtx-export/style/index.js +5 -0
- package/lib/vtx-export/style/index.js.map +1 -1
- package/lib/vtx-export/style/index.less +6 -6
- package/lib/vtx-form-layout/Card.js +26 -5
- package/lib/vtx-form-layout/Card.js.map +1 -1
- package/lib/vtx-form-layout/Divider.js +8 -0
- package/lib/vtx-form-layout/Divider.js.map +1 -1
- package/lib/vtx-form-layout/FormItem.js +30 -8
- package/lib/vtx-form-layout/FormItem.js.map +1 -1
- package/lib/vtx-form-layout/Pane.js +7 -2
- package/lib/vtx-form-layout/Pane.js.map +1 -1
- package/lib/vtx-form-layout/Row.js +6 -0
- package/lib/vtx-form-layout/Row.js.map +1 -1
- package/lib/vtx-form-layout/context.js +2 -0
- package/lib/vtx-form-layout/context.js.map +1 -1
- package/lib/vtx-form-layout/demo/Modal.less +43 -43
- package/lib/vtx-form-layout/index.js +22 -8
- package/lib/vtx-form-layout/index.js.map +1 -1
- package/lib/vtx-form-layout/style/css.js +7 -0
- package/lib/vtx-form-layout/style/css.js.map +1 -1
- package/lib/vtx-form-layout/style/index.js +7 -0
- package/lib/vtx-form-layout/style/index.js.map +1 -1
- package/lib/vtx-image/Image.js +92 -56
- package/lib/vtx-image/Image.js.map +1 -1
- package/lib/vtx-image/Preview.js +51 -20
- package/lib/vtx-image/Preview.js.map +1 -1
- package/lib/vtx-image/PreviewGroup.js +40 -11
- package/lib/vtx-image/PreviewGroup.js.map +1 -1
- package/lib/vtx-image/index.js +6 -0
- package/lib/vtx-image/index.js.map +1 -1
- package/lib/vtx-image/style/css.js +1 -0
- package/lib/vtx-image/style/css.js.map +1 -1
- package/lib/vtx-image/style/index.js +1 -0
- package/lib/vtx-image/style/index.js.map +1 -1
- package/lib/vtx-image/style/index.less +63 -63
- package/lib/vtx-import/index.js +72 -37
- package/lib/vtx-import/index.js.map +1 -1
- package/lib/vtx-import/result.js +24 -7
- package/lib/vtx-import/result.js.map +1 -1
- package/lib/vtx-import/style/css.js +3 -0
- package/lib/vtx-import/style/css.js.map +1 -1
- package/lib/vtx-import/style/index.js +3 -0
- 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 +6 -0
- package/lib/vtx-import2/CheckResult.js.map +1 -1
- package/lib/vtx-import2/Content.js +25 -4
- package/lib/vtx-import2/Content.js.map +1 -1
- package/lib/vtx-import2/DownloadSvg.js +4 -0
- package/lib/vtx-import2/DownloadSvg.js.map +1 -1
- package/lib/vtx-import2/ImportResult.js +9 -3
- package/lib/vtx-import2/ImportResult.js.map +1 -1
- package/lib/vtx-import2/UploadSvg.js +4 -0
- package/lib/vtx-import2/UploadSvg.js.map +1 -1
- package/lib/vtx-import2/index.js +74 -34
- package/lib/vtx-import2/index.js.map +1 -1
- package/lib/vtx-import2/style/css.js +3 -0
- package/lib/vtx-import2/style/css.js.map +1 -1
- package/lib/vtx-import2/style/index.js +3 -0
- 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 +22 -6
- package/lib/vtx-input/TextArea.js.map +1 -1
- package/lib/vtx-input/index.js +37 -11
- package/lib/vtx-input/index.js.map +1 -1
- package/lib/vtx-input/style/css.js +1 -0
- package/lib/vtx-input/style/css.js.map +1 -1
- package/lib/vtx-input/style/index.js +1 -0
- package/lib/vtx-input/style/index.js.map +1 -1
- package/lib/vtx-input/style/index.less +24 -24
- package/lib/vtx-input/useLength.js +16 -4
- package/lib/vtx-input/useLength.js.map +1 -1
- package/lib/vtx-modal/Title.js +6 -1
- package/lib/vtx-modal/Title.js.map +1 -1
- package/lib/vtx-modal/index.js +72 -32
- package/lib/vtx-modal/index.js.map +1 -1
- package/lib/vtx-modal/style/css.js +1 -0
- package/lib/vtx-modal/style/css.js.map +1 -1
- package/lib/vtx-modal/style/index.js +1 -0
- package/lib/vtx-modal/style/index.js.map +1 -1
- package/lib/vtx-modal/style/index.less +95 -95
- package/lib/vtx-page-layout/Basic.js +8 -4
- package/lib/vtx-page-layout/Basic.js.map +1 -1
- package/lib/vtx-page-layout/Content.js +19 -7
- package/lib/vtx-page-layout/Content.js.map +1 -1
- package/lib/vtx-page-layout/Pane.js +10 -2
- package/lib/vtx-page-layout/Pane.js.map +1 -1
- package/lib/vtx-page-layout/TableLayout.js +55 -25
- package/lib/vtx-page-layout/TableLayout.js.map +1 -1
- package/lib/vtx-page-layout/TableWrap.js +15 -3
- package/lib/vtx-page-layout/TableWrap.js.map +1 -1
- package/lib/vtx-page-layout/container.js +34 -4
- package/lib/vtx-page-layout/container.js.map +1 -1
- package/lib/vtx-page-layout/index.js +8 -0
- package/lib/vtx-page-layout/index.js.map +1 -1
- package/lib/vtx-page-layout/style/css.js.map +1 -1
- package/lib/vtx-page-layout/style/index.js.map +1 -1
- package/lib/vtx-page-layout/style/index.less +138 -138
- package/lib/vtx-rps-frame/index.js +44 -21
- package/lib/vtx-rps-frame/index.js.map +1 -1
- package/lib/vtx-rps-frame/style/css.js.map +1 -1
- package/lib/vtx-rps-frame/style/index.js.map +1 -1
- package/lib/vtx-rps-frame/style/index.less +8 -8
- package/lib/vtx-scrollable-row/index.js +57 -19
- 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 +21 -0
- package/lib/vtx-search/VtxCol.js.map +1 -1
- package/lib/vtx-search/VtxRow.js +12 -6
- package/lib/vtx-search/VtxRow.js.map +1 -1
- package/lib/vtx-search/index.js +93 -40
- package/lib/vtx-search/index.js.map +1 -1
- package/lib/vtx-search/style/css.js +4 -0
- package/lib/vtx-search/style/css.js.map +1 -1
- package/lib/vtx-search/style/index.js +4 -0
- package/lib/vtx-search/style/index.js.map +1 -1
- package/lib/vtx-search/style/index.less +83 -83
- package/lib/vtx-search-map-input/index.js +72 -42
- package/lib/vtx-search-map-input/index.js.map +1 -1
- package/lib/vtx-search-map-input/style/css.js +2 -0
- package/lib/vtx-search-map-input/style/css.js.map +1 -1
- package/lib/vtx-search-map-input/style/index.js +2 -0
- package/lib/vtx-search-map-input/style/index.js.map +1 -1
- package/lib/vtx-select/index.js +65 -20
- package/lib/vtx-select/index.js.map +1 -1
- package/lib/vtx-select/style/css.js +8 -0
- package/lib/vtx-select/style/css.js.map +1 -1
- package/lib/vtx-select/style/index.js +8 -0
- 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 +28 -14
- package/lib/vtx-signature/index.js.map +1 -1
- package/lib/vtx-signature/style/css.js +2 -0
- package/lib/vtx-signature/style/css.js.map +1 -1
- package/lib/vtx-signature/style/index.js +2 -0
- package/lib/vtx-signature/style/index.js.map +1 -1
- package/lib/vtx-signature/style/index.less +33 -33
- package/lib/vtx-split-pane/Pane.js +14 -2
- package/lib/vtx-split-pane/Pane.js.map +1 -1
- package/lib/vtx-split-pane/Resizer.js +29 -9
- package/lib/vtx-split-pane/Resizer.js.map +1 -1
- package/lib/vtx-split-pane/SplitPane.js +98 -43
- package/lib/vtx-split-pane/SplitPane.js.map +1 -1
- package/lib/vtx-split-pane/index.js +4 -0
- package/lib/vtx-split-pane/index.js.map +1 -1
- package/lib/vtx-split-pane/style/css.js +3 -0
- package/lib/vtx-split-pane/style/css.js.map +1 -1
- package/lib/vtx-split-pane/style/index.js +3 -0
- 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/Back.js +7 -1
- package/lib/vtx-statistics-column/Back.js.map +1 -1
- package/lib/vtx-statistics-column/Item.js +22 -5
- package/lib/vtx-statistics-column/Item.js.map +1 -1
- package/lib/vtx-statistics-column/Total.js +22 -5
- package/lib/vtx-statistics-column/Total.js.map +1 -1
- package/lib/vtx-statistics-column/context.js +2 -0
- package/lib/vtx-statistics-column/context.js.map +1 -1
- package/lib/vtx-statistics-column/index.js +16 -0
- package/lib/vtx-statistics-column/index.js.map +1 -1
- package/lib/vtx-statistics-column/style/css.js.map +1 -1
- package/lib/vtx-statistics-column/style/index.js.map +1 -1
- package/lib/vtx-statistics-column/style/index.less +59 -59
- package/lib/vtx-time-picker/index.js +16 -3
- 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 +28 -9
- package/lib/vtx-upload/FilePreview.js.map +1 -1
- package/lib/vtx-upload/index.js +137 -67
- package/lib/vtx-upload/index.js.map +1 -1
- package/lib/vtx-upload/style/css.js +5 -0
- package/lib/vtx-upload/style/css.js.map +1 -1
- package/lib/vtx-upload/style/index.js +5 -0
- package/lib/vtx-upload/style/index.js.map +1 -1
- package/lib/vtx-upload/style/index.less +61 -61
- package/lib/vtx-wang-editor/index.js +246 -0
- package/lib/vtx-wang-editor/index.js.map +1 -0
- package/lib/vtx-wang-editor/style/css.js +6 -0
- package/lib/vtx-wang-editor/style/css.js.map +1 -0
- package/lib/vtx-wang-editor/style/index.css +20 -0
- package/lib/vtx-wang-editor/style/index.js +6 -0
- package/lib/vtx-wang-editor/style/index.js.map +1 -0
- package/lib/vtx-wang-editor/style/index.less +24 -0
- package/lib/vtx-wang-editor/wangEditorUtil.js +229 -0
- package/lib/vtx-wang-editor/wangEditorUtil.js.map +1 -0
- package/lib/vtx-ztree/index.js +103 -51
- package/lib/vtx-ztree/index.js.map +1 -1
- package/lib/vtx-ztree/style/css.js +1 -0
- package/lib/vtx-ztree/style/css.js.map +1 -1
- package/lib/vtx-ztree/style/index.js +1 -0
- 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 +99 -43
- package/lib/vtx-ztree-select/index.js.map +1 -1
- package/lib/vtx-ztree-select/style/css.js +3 -0
- package/lib/vtx-ztree-select/style/css.js.map +1 -1
- package/lib/vtx-ztree-select/style/index.js +3 -0
- package/lib/vtx-ztree-select/style/index.js.map +1 -1
- package/lib/vtx-ztree-select/style/index.less +74 -74
- package/package.json +126 -123
|
@@ -1,113 +1,113 @@
|
|
|
1
|
-
@import (reference) '~antd/lib/style/themes/index.less';
|
|
2
|
-
|
|
3
|
-
@prefix-cls: vtx-scrollable-row;
|
|
4
|
-
@easing-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
5
|
-
@effect-duration: 0.3s;
|
|
6
|
-
|
|
7
|
-
.@{prefix-cls} {
|
|
8
|
-
&-container {
|
|
9
|
-
position: relative;
|
|
10
|
-
box-sizing: border-box;
|
|
11
|
-
margin-bottom: -1px;
|
|
12
|
-
overflow: hidden;
|
|
13
|
-
font-size: @font-size-base;
|
|
14
|
-
line-height: @line-height-base;
|
|
15
|
-
white-space: nowrap;
|
|
16
|
-
transition: padding @effect-duration @easing-in-out;
|
|
17
|
-
zoom: 1;
|
|
18
|
-
&::after {
|
|
19
|
-
clear: both;
|
|
20
|
-
}
|
|
21
|
-
&::before,
|
|
22
|
-
&::after {
|
|
23
|
-
display: table;
|
|
24
|
-
content: ' ';
|
|
25
|
-
}
|
|
26
|
-
&:hover {
|
|
27
|
-
.@{prefix-cls}-arrow-show {
|
|
28
|
-
display: inline-block;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
&-prev,
|
|
33
|
-
&-next {
|
|
34
|
-
position: absolute;
|
|
35
|
-
z-index: 1;
|
|
36
|
-
display: none;
|
|
37
|
-
line-height: 36px;
|
|
38
|
-
text-align: center;
|
|
39
|
-
background: @component-background;
|
|
40
|
-
border: none;
|
|
41
|
-
cursor: pointer;
|
|
42
|
-
transition: width @effect-duration @easing-in-out, opacity @effect-duration @easing-in-out,
|
|
43
|
-
color @effect-duration @easing-in-out;
|
|
44
|
-
user-select: none;
|
|
45
|
-
&-icon {
|
|
46
|
-
position: absolute;
|
|
47
|
-
top: 50%;
|
|
48
|
-
left: 50%;
|
|
49
|
-
font-weight: 700;
|
|
50
|
-
font-style: normal;
|
|
51
|
-
font-variant: normal;
|
|
52
|
-
line-height: inherit;
|
|
53
|
-
text-align: center;
|
|
54
|
-
text-transform: none;
|
|
55
|
-
vertical-align: baseline;
|
|
56
|
-
-webkit-transform: translate(-50%, -50%);
|
|
57
|
-
-ms-transform: translate(-50%, -50%);
|
|
58
|
-
transform: translate(-50%, -50%);
|
|
59
|
-
}
|
|
60
|
-
&::before {
|
|
61
|
-
display: block;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
&-prev {
|
|
66
|
-
left: 0;
|
|
67
|
-
border-radius: @border-radius-base 0 0 @border-radius-base;
|
|
68
|
-
box-shadow: 5px 0 5px -5px rgba(0, 0, 0, 0.16);
|
|
69
|
-
}
|
|
70
|
-
&-next {
|
|
71
|
-
right: 0;
|
|
72
|
-
border-radius: 0 @border-radius-base @border-radius-base 0;
|
|
73
|
-
box-shadow: -5px 0 5px -5px rgba(0, 0, 0, 0.16);
|
|
74
|
-
}
|
|
75
|
-
&-btn-disabled {
|
|
76
|
-
color: #ccc;
|
|
77
|
-
cursor: not-allowed;
|
|
78
|
-
}
|
|
79
|
-
&-arrow-show {
|
|
80
|
-
display: none;
|
|
81
|
-
width: 32px;
|
|
82
|
-
height: 100%;
|
|
83
|
-
opacity: 1;
|
|
84
|
-
pointer-events: auto;
|
|
85
|
-
}
|
|
86
|
-
&-nav-wrap {
|
|
87
|
-
margin-bottom: -1px;
|
|
88
|
-
overflow: hidden;
|
|
89
|
-
}
|
|
90
|
-
&-nav-scroll {
|
|
91
|
-
overflow: hidden;
|
|
92
|
-
line-height: 1;
|
|
93
|
-
white-space: nowrap;
|
|
94
|
-
}
|
|
95
|
-
&-nav {
|
|
96
|
-
position: relative;
|
|
97
|
-
display: inline-block;
|
|
98
|
-
box-sizing: border-box;
|
|
99
|
-
margin: 0;
|
|
100
|
-
padding-left: 0;
|
|
101
|
-
list-style: none;
|
|
102
|
-
transition: transform @effect-duration @easing-in-out,
|
|
103
|
-
-webkit-transform @effect-duration @easing-in-out;
|
|
104
|
-
&::after {
|
|
105
|
-
clear: both;
|
|
106
|
-
}
|
|
107
|
-
&::before,
|
|
108
|
-
&::after {
|
|
109
|
-
display: table;
|
|
110
|
-
content: ' ';
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
1
|
+
@import (reference) '~antd/lib/style/themes/index.less';
|
|
2
|
+
|
|
3
|
+
@prefix-cls: vtx-scrollable-row;
|
|
4
|
+
@easing-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
5
|
+
@effect-duration: 0.3s;
|
|
6
|
+
|
|
7
|
+
.@{prefix-cls} {
|
|
8
|
+
&-container {
|
|
9
|
+
position: relative;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
margin-bottom: -1px;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
font-size: @font-size-base;
|
|
14
|
+
line-height: @line-height-base;
|
|
15
|
+
white-space: nowrap;
|
|
16
|
+
transition: padding @effect-duration @easing-in-out;
|
|
17
|
+
zoom: 1;
|
|
18
|
+
&::after {
|
|
19
|
+
clear: both;
|
|
20
|
+
}
|
|
21
|
+
&::before,
|
|
22
|
+
&::after {
|
|
23
|
+
display: table;
|
|
24
|
+
content: ' ';
|
|
25
|
+
}
|
|
26
|
+
&:hover {
|
|
27
|
+
.@{prefix-cls}-arrow-show {
|
|
28
|
+
display: inline-block;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
&-prev,
|
|
33
|
+
&-next {
|
|
34
|
+
position: absolute;
|
|
35
|
+
z-index: 1;
|
|
36
|
+
display: none;
|
|
37
|
+
line-height: 36px;
|
|
38
|
+
text-align: center;
|
|
39
|
+
background: @component-background;
|
|
40
|
+
border: none;
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
transition: width @effect-duration @easing-in-out, opacity @effect-duration @easing-in-out,
|
|
43
|
+
color @effect-duration @easing-in-out;
|
|
44
|
+
user-select: none;
|
|
45
|
+
&-icon {
|
|
46
|
+
position: absolute;
|
|
47
|
+
top: 50%;
|
|
48
|
+
left: 50%;
|
|
49
|
+
font-weight: 700;
|
|
50
|
+
font-style: normal;
|
|
51
|
+
font-variant: normal;
|
|
52
|
+
line-height: inherit;
|
|
53
|
+
text-align: center;
|
|
54
|
+
text-transform: none;
|
|
55
|
+
vertical-align: baseline;
|
|
56
|
+
-webkit-transform: translate(-50%, -50%);
|
|
57
|
+
-ms-transform: translate(-50%, -50%);
|
|
58
|
+
transform: translate(-50%, -50%);
|
|
59
|
+
}
|
|
60
|
+
&::before {
|
|
61
|
+
display: block;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&-prev {
|
|
66
|
+
left: 0;
|
|
67
|
+
border-radius: @border-radius-base 0 0 @border-radius-base;
|
|
68
|
+
box-shadow: 5px 0 5px -5px rgba(0, 0, 0, 0.16);
|
|
69
|
+
}
|
|
70
|
+
&-next {
|
|
71
|
+
right: 0;
|
|
72
|
+
border-radius: 0 @border-radius-base @border-radius-base 0;
|
|
73
|
+
box-shadow: -5px 0 5px -5px rgba(0, 0, 0, 0.16);
|
|
74
|
+
}
|
|
75
|
+
&-btn-disabled {
|
|
76
|
+
color: #ccc;
|
|
77
|
+
cursor: not-allowed;
|
|
78
|
+
}
|
|
79
|
+
&-arrow-show {
|
|
80
|
+
display: none;
|
|
81
|
+
width: 32px;
|
|
82
|
+
height: 100%;
|
|
83
|
+
opacity: 1;
|
|
84
|
+
pointer-events: auto;
|
|
85
|
+
}
|
|
86
|
+
&-nav-wrap {
|
|
87
|
+
margin-bottom: -1px;
|
|
88
|
+
overflow: hidden;
|
|
89
|
+
}
|
|
90
|
+
&-nav-scroll {
|
|
91
|
+
overflow: hidden;
|
|
92
|
+
line-height: 1;
|
|
93
|
+
white-space: nowrap;
|
|
94
|
+
}
|
|
95
|
+
&-nav {
|
|
96
|
+
position: relative;
|
|
97
|
+
display: inline-block;
|
|
98
|
+
box-sizing: border-box;
|
|
99
|
+
margin: 0;
|
|
100
|
+
padding-left: 0;
|
|
101
|
+
list-style: none;
|
|
102
|
+
transition: transform @effect-duration @easing-in-out,
|
|
103
|
+
-webkit-transform @effect-duration @easing-in-out;
|
|
104
|
+
&::after {
|
|
105
|
+
clear: both;
|
|
106
|
+
}
|
|
107
|
+
&::before,
|
|
108
|
+
&::after {
|
|
109
|
+
display: table;
|
|
110
|
+
content: ' ';
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
package/lib/vtx-search/VtxCol.js
CHANGED
|
@@ -4,22 +4,34 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
+
|
|
7
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
8
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
|
|
9
12
|
var _col = _interopRequireDefault(require("antd/lib/col"));
|
|
13
|
+
|
|
10
14
|
var _tooltip = _interopRequireDefault(require("antd/lib/tooltip"));
|
|
15
|
+
|
|
11
16
|
require("./style/index.less");
|
|
17
|
+
|
|
12
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
+
|
|
13
20
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
21
|
+
|
|
14
22
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
23
|
+
|
|
15
24
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
25
|
+
|
|
16
26
|
function VtxCol(props) {
|
|
17
27
|
var addStyle = function addStyle(d) {
|
|
18
28
|
var _d$props;
|
|
29
|
+
|
|
19
30
|
if (typeof d.type === 'function' && ((_d$props = d.props) === null || _d$props === void 0 ? void 0 : _d$props.attr) == 'row') {
|
|
20
31
|
return d;
|
|
21
32
|
} else {
|
|
22
33
|
var _d$props2, _d$props3, _d$props4, _d$props5;
|
|
34
|
+
|
|
23
35
|
if (((_d$props2 = d.props) === null || _d$props2 === void 0 ? void 0 : _d$props2['data-type']) === 'colon') {
|
|
24
36
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
25
37
|
className: "vtx-search-lists"
|
|
@@ -29,7 +41,9 @@ function VtxCol(props) {
|
|
|
29
41
|
className: "vtx-search-list"
|
|
30
42
|
}, d.props.children[1]));
|
|
31
43
|
}
|
|
44
|
+
|
|
32
45
|
var sty = {};
|
|
46
|
+
|
|
33
47
|
if (((_d$props3 = d.props) === null || _d$props3 === void 0 ? void 0 : _d$props3['data-type']) === 'fieldName') {
|
|
34
48
|
sty = _objectSpread(_objectSpread({}, sty), {}, {
|
|
35
49
|
padding: '8px 0px',
|
|
@@ -40,11 +54,13 @@ function VtxCol(props) {
|
|
|
40
54
|
cursor: 'default'
|
|
41
55
|
});
|
|
42
56
|
}
|
|
57
|
+
|
|
43
58
|
if (((_d$props4 = d.props) === null || _d$props4 === void 0 ? void 0 : _d$props4['data-type']) === 'bt') {
|
|
44
59
|
sty = _objectSpread(_objectSpread({}, sty), {}, {
|
|
45
60
|
padding: '8px 0px'
|
|
46
61
|
});
|
|
47
62
|
}
|
|
63
|
+
|
|
48
64
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
49
65
|
key: d,
|
|
50
66
|
style: _objectSpread({}, sty)
|
|
@@ -54,17 +70,22 @@ function VtxCol(props) {
|
|
|
54
70
|
}, d) : d);
|
|
55
71
|
}
|
|
56
72
|
};
|
|
73
|
+
|
|
57
74
|
var render = function render(d) {
|
|
58
75
|
if (d == '') return '';
|
|
76
|
+
|
|
59
77
|
if (!d.length) {
|
|
60
78
|
return addStyle(d);
|
|
61
79
|
}
|
|
80
|
+
|
|
62
81
|
return d.map(function (item) {
|
|
63
82
|
return addStyle(item);
|
|
64
83
|
});
|
|
65
84
|
};
|
|
85
|
+
|
|
66
86
|
return /*#__PURE__*/_react["default"].createElement(_col["default"], props, render(props.children));
|
|
67
87
|
}
|
|
88
|
+
|
|
68
89
|
VtxCol.propTypes = {
|
|
69
90
|
children: _propTypes["default"].node
|
|
70
91
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VtxCol.js","names":["VtxCol","props","addStyle","d","type","attr","children","sty","padding","overflow","textOverflow","whiteSpace","textAlign","cursor","render","length","map","item","propTypes","PropTypes","node"],"sources":["vtx-search/VtxCol.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Col from 'antd/lib/col';\nimport Tooltip from 'antd/lib/tooltip';\nimport './style/index.less';\n\nfunction VtxCol(props) {\n const addStyle = d => {\n if (typeof d.type === 'function' && d.props?.attr == 'row') {\n return d;\n } else {\n if (d.props?.['data-type'] === 'colon') {\n return (\n <div className=\"vtx-search-lists\">\n <div className=\"vtx-search-colon\">{d.props.children[0]}</div>\n <div className=\"vtx-search-list\">{d.props.children[1]}</div>\n </div>\n );\n }\n let sty = {};\n if (d.props?.['data-type'] === 'fieldName') {\n sty = {\n ...sty,\n padding: '8px 0px',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n textAlign: 'right',\n cursor: 'default',\n };\n }\n if (d.props?.['data-type'] === 'bt') {\n sty = {\n ...sty,\n padding: '8px 0px',\n };\n }\n return (\n <div key={d} style={{ ...sty }}>\n {d.props?.['data-type'] === 'fieldName' ? (\n <Tooltip placement=\"rightTop\" title={d.props.children}>\n {d}\n </Tooltip>\n ) : (\n d\n )}\n </div>\n );\n }\n };\n const render = d => {\n if (d == '') return '';\n if (!d.length) {\n return addStyle(d);\n }\n return d.map(item => {\n return addStyle(item);\n });\n };\n return <Col {...props}>{render(props.children)}</Col>;\n}\n\nVtxCol.propTypes = {\n children: PropTypes.node,\n};\nexport default VtxCol;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"VtxCol.js","names":["VtxCol","props","addStyle","d","type","attr","children","sty","padding","overflow","textOverflow","whiteSpace","textAlign","cursor","render","length","map","item","propTypes","PropTypes","node"],"sources":["vtx-search/VtxCol.jsx"],"sourcesContent":["import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport Col from 'antd/lib/col';\r\nimport Tooltip from 'antd/lib/tooltip';\r\nimport './style/index.less';\r\n\r\nfunction VtxCol(props) {\r\n const addStyle = d => {\r\n if (typeof d.type === 'function' && d.props?.attr == 'row') {\r\n return d;\r\n } else {\r\n if (d.props?.['data-type'] === 'colon') {\r\n return (\r\n <div className=\"vtx-search-lists\">\r\n <div className=\"vtx-search-colon\">{d.props.children[0]}</div>\r\n <div className=\"vtx-search-list\">{d.props.children[1]}</div>\r\n </div>\r\n );\r\n }\r\n let sty = {};\r\n if (d.props?.['data-type'] === 'fieldName') {\r\n sty = {\r\n ...sty,\r\n padding: '8px 0px',\r\n overflow: 'hidden',\r\n textOverflow: 'ellipsis',\r\n whiteSpace: 'nowrap',\r\n textAlign: 'right',\r\n cursor: 'default',\r\n };\r\n }\r\n if (d.props?.['data-type'] === 'bt') {\r\n sty = {\r\n ...sty,\r\n padding: '8px 0px',\r\n };\r\n }\r\n return (\r\n <div key={d} style={{ ...sty }}>\r\n {d.props?.['data-type'] === 'fieldName' ? (\r\n <Tooltip placement=\"rightTop\" title={d.props.children}>\r\n {d}\r\n </Tooltip>\r\n ) : (\r\n d\r\n )}\r\n </div>\r\n );\r\n }\r\n };\r\n const render = d => {\r\n if (d == '') return '';\r\n if (!d.length) {\r\n return addStyle(d);\r\n }\r\n return d.map(item => {\r\n return addStyle(item);\r\n });\r\n };\r\n return <Col {...props}>{render(props.children)}</Col>;\r\n}\r\n\r\nVtxCol.propTypes = {\r\n children: PropTypes.node,\r\n};\r\nexport default VtxCol;\r\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,SAASA,MAAT,CAAgBC,KAAhB,EAAuB;EACnB,IAAMC,QAAQ,GAAG,SAAXA,QAAW,CAAAC,CAAC,EAAI;IAAA;;IAClB,IAAI,OAAOA,CAAC,CAACC,IAAT,KAAkB,UAAlB,IAAgC,aAAAD,CAAC,CAACF,KAAF,sDAASI,IAAT,KAAiB,KAArD,EAA4D;MACxD,OAAOF,CAAP;IACH,CAFD,MAEO;MAAA;;MACH,IAAI,cAAAA,CAAC,CAACF,KAAF,wDAAU,WAAV,OAA2B,OAA/B,EAAwC;QACpC,oBACI;UAAK,SAAS,EAAC;QAAf,gBACI;UAAK,SAAS,EAAC;QAAf,GAAmCE,CAAC,CAACF,KAAF,CAAQK,QAAR,CAAiB,CAAjB,CAAnC,CADJ,eAEI;UAAK,SAAS,EAAC;QAAf,GAAkCH,CAAC,CAACF,KAAF,CAAQK,QAAR,CAAiB,CAAjB,CAAlC,CAFJ,CADJ;MAMH;;MACD,IAAIC,GAAG,GAAG,EAAV;;MACA,IAAI,cAAAJ,CAAC,CAACF,KAAF,wDAAU,WAAV,OAA2B,WAA/B,EAA4C;QACxCM,GAAG,mCACIA,GADJ;UAECC,OAAO,EAAE,SAFV;UAGCC,QAAQ,EAAE,QAHX;UAICC,YAAY,EAAE,UAJf;UAKCC,UAAU,EAAE,QALb;UAMCC,SAAS,EAAE,OANZ;UAOCC,MAAM,EAAE;QAPT,EAAH;MASH;;MACD,IAAI,cAAAV,CAAC,CAACF,KAAF,wDAAU,WAAV,OAA2B,IAA/B,EAAqC;QACjCM,GAAG,mCACIA,GADJ;UAECC,OAAO,EAAE;QAFV,EAAH;MAIH;;MACD,oBACI;QAAK,GAAG,EAAEL,CAAV;QAAa,KAAK,oBAAOI,GAAP;MAAlB,GACK,cAAAJ,CAAC,CAACF,KAAF,wDAAU,WAAV,OAA2B,WAA3B,gBACG,gCAAC,mBAAD;QAAS,SAAS,EAAC,UAAnB;QAA8B,KAAK,EAAEE,CAAC,CAACF,KAAF,CAAQK;MAA7C,GACKH,CADL,CADH,GAKGA,CANR,CADJ;IAWH;EACJ,CA1CD;;EA2CA,IAAMW,MAAM,GAAG,SAATA,MAAS,CAAAX,CAAC,EAAI;IAChB,IAAIA,CAAC,IAAI,EAAT,EAAa,OAAO,EAAP;;IACb,IAAI,CAACA,CAAC,CAACY,MAAP,EAAe;MACX,OAAOb,QAAQ,CAACC,CAAD,CAAf;IACH;;IACD,OAAOA,CAAC,CAACa,GAAF,CAAM,UAAAC,IAAI,EAAI;MACjB,OAAOf,QAAQ,CAACe,IAAD,CAAf;IACH,CAFM,CAAP;EAGH,CARD;;EASA,oBAAO,gCAAC,eAAD,EAAShB,KAAT,EAAiBa,MAAM,CAACb,KAAK,CAACK,QAAP,CAAvB,CAAP;AACH;;AAEDN,MAAM,CAACkB,SAAP,GAAmB;EACfZ,QAAQ,EAAEa,qBAAA,CAAUC;AADL,CAAnB;eAGepB,M"}
|
package/lib/vtx-search/VtxRow.js
CHANGED
|
@@ -4,18 +4,23 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
+
|
|
7
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
8
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
|
|
9
12
|
var _row = _interopRequireDefault(require("antd/lib/row"));
|
|
13
|
+
|
|
10
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
+
|
|
11
16
|
function VtxRow(props) {
|
|
12
17
|
var children = props.children,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
_props$gutter = props.gutter,
|
|
19
|
+
gutter = _props$gutter === void 0 ? 0 : _props$gutter,
|
|
20
|
+
type = props.type,
|
|
21
|
+
align = props.align,
|
|
22
|
+
justify = props.justify,
|
|
23
|
+
className = props.className;
|
|
19
24
|
var RowProps = {
|
|
20
25
|
gutter: gutter,
|
|
21
26
|
type: type,
|
|
@@ -25,6 +30,7 @@ function VtxRow(props) {
|
|
|
25
30
|
};
|
|
26
31
|
return /*#__PURE__*/_react["default"].createElement(_row["default"], RowProps, children);
|
|
27
32
|
}
|
|
33
|
+
|
|
28
34
|
VtxRow.propTypes = {
|
|
29
35
|
children: _propTypes["default"].node,
|
|
30
36
|
gutter: _propTypes["default"].number,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VtxRow.js","names":["VtxRow","props","children","gutter","type","align","justify","className","RowProps","propTypes","PropTypes","node","number","string"],"sources":["vtx-search/VtxRow.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Row from 'antd/lib/row';\n\nfunction VtxRow(props) {\n const { children, gutter = 0, type, align, justify, className } = props;\n const RowProps = { gutter, type, align, justify, className };\n return <Row {...RowProps}>{children}</Row>;\n}\n\nVtxRow.propTypes = {\n children: PropTypes.node,\n gutter: PropTypes.number,\n type: PropTypes.string,\n align: PropTypes.number,\n justify: PropTypes.number,\n className: PropTypes.string,\n};\nexport default VtxRow;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"VtxRow.js","names":["VtxRow","props","children","gutter","type","align","justify","className","RowProps","propTypes","PropTypes","node","number","string"],"sources":["vtx-search/VtxRow.jsx"],"sourcesContent":["import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport Row from 'antd/lib/row';\r\n\r\nfunction VtxRow(props) {\r\n const { children, gutter = 0, type, align, justify, className } = props;\r\n const RowProps = { gutter, type, align, justify, className };\r\n return <Row {...RowProps}>{children}</Row>;\r\n}\r\n\r\nVtxRow.propTypes = {\r\n children: PropTypes.node,\r\n gutter: PropTypes.number,\r\n type: PropTypes.string,\r\n align: PropTypes.number,\r\n justify: PropTypes.number,\r\n className: PropTypes.string,\r\n};\r\nexport default VtxRow;\r\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;;;AAEA,SAASA,MAAT,CAAgBC,KAAhB,EAAuB;EACnB,IAAQC,QAAR,GAAkED,KAAlE,CAAQC,QAAR;EAAA,oBAAkED,KAAlE,CAAkBE,MAAlB;EAAA,IAAkBA,MAAlB,8BAA2B,CAA3B;EAAA,IAA8BC,IAA9B,GAAkEH,KAAlE,CAA8BG,IAA9B;EAAA,IAAoCC,KAApC,GAAkEJ,KAAlE,CAAoCI,KAApC;EAAA,IAA2CC,OAA3C,GAAkEL,KAAlE,CAA2CK,OAA3C;EAAA,IAAoDC,SAApD,GAAkEN,KAAlE,CAAoDM,SAApD;EACA,IAAMC,QAAQ,GAAG;IAAEL,MAAM,EAANA,MAAF;IAAUC,IAAI,EAAJA,IAAV;IAAgBC,KAAK,EAALA,KAAhB;IAAuBC,OAAO,EAAPA,OAAvB;IAAgCC,SAAS,EAATA;EAAhC,CAAjB;EACA,oBAAO,gCAAC,eAAD,EAASC,QAAT,EAAoBN,QAApB,CAAP;AACH;;AAEDF,MAAM,CAACS,SAAP,GAAmB;EACfP,QAAQ,EAAEQ,qBAAA,CAAUC,IADL;EAEfR,MAAM,EAAEO,qBAAA,CAAUE,MAFH;EAGfR,IAAI,EAAEM,qBAAA,CAAUG,MAHD;EAIfR,KAAK,EAAEK,qBAAA,CAAUE,MAJF;EAKfN,OAAO,EAAEI,qBAAA,CAAUE,MALJ;EAMfL,SAAS,EAAEG,qBAAA,CAAUG;AANN,CAAnB;eAQeb,M"}
|