@vtx/components 3.1.16 → 3.1.17
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/README.md +19 -19
- package/lib/_util/filterSpecialCharacters.js +60 -49
- package/lib/_util/filterSpecialCharacters.js.map +1 -1
- package/lib/_util/getComponentProps.js +0 -3
- package/lib/_util/getComponentProps.js.map +1 -1
- package/lib/_util/getUrlParam.js +0 -6
- package/lib/_util/getUrlParam.js.map +1 -1
- package/lib/_util/isFunction.js +0 -1
- package/lib/_util/isFunction.js.map +1 -1
- package/lib/_util/isObject.js +0 -1
- package/lib/_util/isObject.js.map +1 -1
- package/lib/_util/useColSize.js +1 -10
- package/lib/_util/useColSize.js.map +1 -1
- package/lib/_util/useInterval.js +0 -3
- package/lib/_util/useInterval.js.map +1 -1
- package/lib/_util/useSet.js +14 -32
- package/lib/_util/useSet.js.map +1 -1
- package/lib/config.js.map +1 -1
- package/lib/index.js +0 -25
- 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 +5 -21
- package/lib/vtx-color-picker/index.js.map +1 -1
- package/lib/vtx-color-picker/style/css.js +0 -2
- package/lib/vtx-color-picker/style/css.js.map +1 -1
- package/lib/vtx-color-picker/style/index.js +0 -2
- 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 +34 -74
- package/lib/vtx-combogrid/Combogrid.js.map +1 -1
- package/lib/vtx-combogrid/index.js +20 -45
- package/lib/vtx-combogrid/index.js.map +1 -1
- package/lib/vtx-combogrid/style/css.js +0 -7
- package/lib/vtx-combogrid/style/css.js.map +1 -1
- package/lib/vtx-combogrid/style/index.js +0 -7
- 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 +3 -11
- package/lib/vtx-datagrid/Alert.js.map +1 -1
- package/lib/vtx-datagrid/ColumnSetting.js +19 -44
- package/lib/vtx-datagrid/ColumnSetting.js.map +1 -1
- package/lib/vtx-datagrid/ResizeableTitle.js +2 -13
- package/lib/vtx-datagrid/ResizeableTitle.js.map +1 -1
- package/lib/vtx-datagrid/index.js +77 -140
- package/lib/vtx-datagrid/index.js.map +1 -1
- package/lib/vtx-datagrid/renderColumnButtons.js +5 -35
- package/lib/vtx-datagrid/renderColumnButtons.js.map +1 -1
- package/lib/vtx-datagrid/style/css.js +0 -10
- package/lib/vtx-datagrid/style/css.js.map +1 -1
- package/lib/vtx-datagrid/style/index.css +1 -0
- package/lib/vtx-datagrid/style/index.js +0 -10
- package/lib/vtx-datagrid/style/index.js.map +1 -1
- package/lib/vtx-datagrid/style/index.less +1 -0
- package/lib/vtx-date-picker/QdatePicker.js +16 -46
- package/lib/vtx-date-picker/QdatePicker.js.map +1 -1
- package/lib/vtx-date-picker/generatePicker.js +6 -47
- package/lib/vtx-date-picker/generatePicker.js.map +1 -1
- package/lib/vtx-date-picker/index.js +0 -5
- package/lib/vtx-date-picker/index.js.map +1 -1
- package/lib/vtx-date-picker/style/css.js +0 -1
- package/lib/vtx-date-picker/style/css.js.map +1 -1
- package/lib/vtx-date-picker/style/index.js +0 -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 +5 -23
- package/lib/vtx-editor/index.js.map +1 -1
- package/lib/vtx-editor/style/css.js +0 -1
- package/lib/vtx-editor/style/css.js.map +1 -1
- package/lib/vtx-editor/style/index.js +0 -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 +6 -20
- package/lib/vtx-ellipsis-text/index.js.map +1 -1
- package/lib/vtx-ellipsis-text/style/css.js +0 -1
- package/lib/vtx-ellipsis-text/style/css.js.map +1 -1
- package/lib/vtx-ellipsis-text/style/index.js +0 -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/index.js +33 -66
- package/lib/vtx-export/index.js.map +1 -1
- package/lib/vtx-export/style/css.js +0 -5
- package/lib/vtx-export/style/css.js.map +1 -1
- package/lib/vtx-export/style/index.js +0 -5
- 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 +5 -26
- package/lib/vtx-form-layout/Card.js.map +1 -1
- package/lib/vtx-form-layout/Divider.js +0 -8
- package/lib/vtx-form-layout/Divider.js.map +1 -1
- package/lib/vtx-form-layout/FormItem.js +8 -30
- package/lib/vtx-form-layout/FormItem.js.map +1 -1
- package/lib/vtx-form-layout/Pane.js +2 -7
- package/lib/vtx-form-layout/Pane.js.map +1 -1
- package/lib/vtx-form-layout/Row.js +0 -6
- package/lib/vtx-form-layout/Row.js.map +1 -1
- package/lib/vtx-form-layout/context.js +0 -2
- 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 +8 -22
- package/lib/vtx-form-layout/index.js.map +1 -1
- package/lib/vtx-form-layout/style/css.js +0 -7
- package/lib/vtx-form-layout/style/css.js.map +1 -1
- package/lib/vtx-form-layout/style/index.js +0 -7
- package/lib/vtx-form-layout/style/index.js.map +1 -1
- package/lib/vtx-image/Image.js +56 -92
- package/lib/vtx-image/Image.js.map +1 -1
- package/lib/vtx-image/Preview.js +20 -51
- package/lib/vtx-image/Preview.js.map +1 -1
- package/lib/vtx-image/PreviewGroup.js +11 -40
- package/lib/vtx-image/PreviewGroup.js.map +1 -1
- package/lib/vtx-image/index.js +0 -6
- package/lib/vtx-image/index.js.map +1 -1
- package/lib/vtx-image/style/css.js +0 -1
- package/lib/vtx-image/style/css.js.map +1 -1
- package/lib/vtx-image/style/index.js +0 -1
- 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 +37 -72
- package/lib/vtx-import/index.js.map +1 -1
- package/lib/vtx-import/result.js +7 -24
- package/lib/vtx-import/result.js.map +1 -1
- package/lib/vtx-import/style/css.js +0 -3
- package/lib/vtx-import/style/css.js.map +1 -1
- package/lib/vtx-import/style/index.js +0 -3
- 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 +0 -6
- package/lib/vtx-import2/CheckResult.js.map +1 -1
- package/lib/vtx-import2/Content.js +4 -25
- package/lib/vtx-import2/Content.js.map +1 -1
- package/lib/vtx-import2/DownloadSvg.js +0 -4
- package/lib/vtx-import2/DownloadSvg.js.map +1 -1
- package/lib/vtx-import2/ImportResult.js +3 -9
- package/lib/vtx-import2/ImportResult.js.map +1 -1
- package/lib/vtx-import2/UploadSvg.js +0 -4
- package/lib/vtx-import2/UploadSvg.js.map +1 -1
- package/lib/vtx-import2/index.js +34 -74
- package/lib/vtx-import2/index.js.map +1 -1
- package/lib/vtx-import2/style/css.js +0 -3
- package/lib/vtx-import2/style/css.js.map +1 -1
- package/lib/vtx-import2/style/index.js +0 -3
- 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 +6 -22
- package/lib/vtx-input/TextArea.js.map +1 -1
- package/lib/vtx-input/index.js +11 -37
- package/lib/vtx-input/index.js.map +1 -1
- package/lib/vtx-input/style/css.js +0 -1
- package/lib/vtx-input/style/css.js.map +1 -1
- package/lib/vtx-input/style/index.js +0 -1
- 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 +4 -16
- package/lib/vtx-input/useLength.js.map +1 -1
- package/lib/vtx-modal/Title.js +1 -6
- package/lib/vtx-modal/Title.js.map +1 -1
- package/lib/vtx-modal/index.js +32 -72
- package/lib/vtx-modal/index.js.map +1 -1
- package/lib/vtx-modal/style/css.js +0 -1
- package/lib/vtx-modal/style/css.js.map +1 -1
- package/lib/vtx-modal/style/index.js +0 -1
- 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 +4 -8
- package/lib/vtx-page-layout/Basic.js.map +1 -1
- package/lib/vtx-page-layout/Content.js +7 -19
- package/lib/vtx-page-layout/Content.js.map +1 -1
- package/lib/vtx-page-layout/Pane.js +2 -10
- package/lib/vtx-page-layout/Pane.js.map +1 -1
- package/lib/vtx-page-layout/TableLayout.js +25 -55
- package/lib/vtx-page-layout/TableLayout.js.map +1 -1
- package/lib/vtx-page-layout/TableWrap.js +3 -15
- package/lib/vtx-page-layout/TableWrap.js.map +1 -1
- package/lib/vtx-page-layout/container.js +4 -34
- package/lib/vtx-page-layout/container.js.map +1 -1
- package/lib/vtx-page-layout/index.js +0 -8
- 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 +21 -44
- 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 +21 -57
- 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 +0 -21
- package/lib/vtx-search/VtxCol.js.map +1 -1
- package/lib/vtx-search/VtxRow.js +6 -12
- package/lib/vtx-search/VtxRow.js.map +1 -1
- package/lib/vtx-search/index.js +43 -94
- package/lib/vtx-search/index.js.map +1 -1
- package/lib/vtx-search/style/css.js +0 -4
- package/lib/vtx-search/style/css.js.map +1 -1
- package/lib/vtx-search/style/index.js +0 -4
- 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 +56 -72
- package/lib/vtx-search-map-input/index.js.map +1 -1
- package/lib/vtx-search-map-input/style/css.js +0 -2
- package/lib/vtx-search-map-input/style/css.js.map +1 -1
- package/lib/vtx-search-map-input/style/index.js +0 -2
- package/lib/vtx-search-map-input/style/index.js.map +1 -1
- package/lib/vtx-select/index.js +20 -65
- package/lib/vtx-select/index.js.map +1 -1
- package/lib/vtx-select/style/css.js +0 -8
- package/lib/vtx-select/style/css.js.map +1 -1
- package/lib/vtx-select/style/index.js +0 -8
- 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 +14 -28
- package/lib/vtx-signature/index.js.map +1 -1
- package/lib/vtx-signature/style/css.js +0 -2
- package/lib/vtx-signature/style/css.js.map +1 -1
- package/lib/vtx-signature/style/index.js +0 -2
- 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 +2 -14
- package/lib/vtx-split-pane/Pane.js.map +1 -1
- package/lib/vtx-split-pane/Resizer.js +9 -29
- package/lib/vtx-split-pane/Resizer.js.map +1 -1
- package/lib/vtx-split-pane/SplitPane.js +43 -98
- package/lib/vtx-split-pane/SplitPane.js.map +1 -1
- package/lib/vtx-split-pane/index.js +0 -4
- package/lib/vtx-split-pane/index.js.map +1 -1
- package/lib/vtx-split-pane/style/css.js +0 -3
- package/lib/vtx-split-pane/style/css.js.map +1 -1
- package/lib/vtx-split-pane/style/index.js +0 -3
- 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 +1 -7
- package/lib/vtx-statistics-column/Back.js.map +1 -1
- package/lib/vtx-statistics-column/Item.js +5 -22
- package/lib/vtx-statistics-column/Item.js.map +1 -1
- package/lib/vtx-statistics-column/Total.js +5 -22
- package/lib/vtx-statistics-column/Total.js.map +1 -1
- package/lib/vtx-statistics-column/context.js +0 -2
- package/lib/vtx-statistics-column/context.js.map +1 -1
- package/lib/vtx-statistics-column/index.js +0 -16
- 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 +3 -16
- 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 +9 -28
- package/lib/vtx-upload/FilePreview.js.map +1 -1
- package/lib/vtx-upload/index.js +67 -137
- package/lib/vtx-upload/index.js.map +1 -1
- package/lib/vtx-upload/style/css.js +0 -5
- package/lib/vtx-upload/style/css.js.map +1 -1
- package/lib/vtx-upload/style/index.js +0 -5
- package/lib/vtx-upload/style/index.js.map +1 -1
- package/lib/vtx-upload/style/index.less +61 -61
- package/lib/vtx-ztree/index.js +51 -103
- package/lib/vtx-ztree/index.js.map +1 -1
- package/lib/vtx-ztree/style/css.js +0 -1
- package/lib/vtx-ztree/style/css.js.map +1 -1
- package/lib/vtx-ztree/style/index.js +0 -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 +43 -99
- package/lib/vtx-ztree-select/index.js.map +1 -1
- package/lib/vtx-ztree-select/style/css.js +0 -3
- package/lib/vtx-ztree-select/style/css.js.map +1 -1
- package/lib/vtx-ztree-select/style/index.js +0 -3
- package/lib/vtx-ztree-select/style/index.js.map +1 -1
- package/lib/vtx-ztree-select/style/index.less +74 -74
- package/package.json +123 -123
- package/CHANGELOG.md +0 -1137
|
@@ -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,34 +4,22 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
9
|
var _col = _interopRequireDefault(require("antd/lib/col"));
|
|
13
|
-
|
|
14
10
|
var _tooltip = _interopRequireDefault(require("antd/lib/tooltip"));
|
|
15
|
-
|
|
16
11
|
require("./style/index.less");
|
|
17
|
-
|
|
18
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
-
|
|
20
13
|
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
|
-
|
|
22
14
|
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
|
-
|
|
24
15
|
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
|
-
|
|
26
16
|
function VtxCol(props) {
|
|
27
17
|
var addStyle = function addStyle(d) {
|
|
28
18
|
var _d$props;
|
|
29
|
-
|
|
30
19
|
if (typeof d.type === 'function' && ((_d$props = d.props) === null || _d$props === void 0 ? void 0 : _d$props.attr) == 'row') {
|
|
31
20
|
return d;
|
|
32
21
|
} else {
|
|
33
22
|
var _d$props2, _d$props3, _d$props4, _d$props5;
|
|
34
|
-
|
|
35
23
|
if (((_d$props2 = d.props) === null || _d$props2 === void 0 ? void 0 : _d$props2['data-type']) === 'colon') {
|
|
36
24
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
37
25
|
className: "vtx-search-lists"
|
|
@@ -41,9 +29,7 @@ function VtxCol(props) {
|
|
|
41
29
|
className: "vtx-search-list"
|
|
42
30
|
}, d.props.children[1]));
|
|
43
31
|
}
|
|
44
|
-
|
|
45
32
|
var sty = {};
|
|
46
|
-
|
|
47
33
|
if (((_d$props3 = d.props) === null || _d$props3 === void 0 ? void 0 : _d$props3['data-type']) === 'fieldName') {
|
|
48
34
|
sty = _objectSpread(_objectSpread({}, sty), {}, {
|
|
49
35
|
padding: '8px 0px',
|
|
@@ -54,13 +40,11 @@ function VtxCol(props) {
|
|
|
54
40
|
cursor: 'default'
|
|
55
41
|
});
|
|
56
42
|
}
|
|
57
|
-
|
|
58
43
|
if (((_d$props4 = d.props) === null || _d$props4 === void 0 ? void 0 : _d$props4['data-type']) === 'bt') {
|
|
59
44
|
sty = _objectSpread(_objectSpread({}, sty), {}, {
|
|
60
45
|
padding: '8px 0px'
|
|
61
46
|
});
|
|
62
47
|
}
|
|
63
|
-
|
|
64
48
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
65
49
|
key: d,
|
|
66
50
|
style: _objectSpread({}, sty)
|
|
@@ -70,22 +54,17 @@ function VtxCol(props) {
|
|
|
70
54
|
}, d) : d);
|
|
71
55
|
}
|
|
72
56
|
};
|
|
73
|
-
|
|
74
57
|
var render = function render(d) {
|
|
75
58
|
if (d == '') return '';
|
|
76
|
-
|
|
77
59
|
if (!d.length) {
|
|
78
60
|
return addStyle(d);
|
|
79
61
|
}
|
|
80
|
-
|
|
81
62
|
return d.map(function (item) {
|
|
82
63
|
return addStyle(item);
|
|
83
64
|
});
|
|
84
65
|
};
|
|
85
|
-
|
|
86
66
|
return /*#__PURE__*/_react["default"].createElement(_col["default"], props, render(props.children));
|
|
87
67
|
}
|
|
88
|
-
|
|
89
68
|
VtxCol.propTypes = {
|
|
90
69
|
children: _propTypes["default"].node
|
|
91
70
|
};
|
|
@@ -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';\
|
|
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":";;;;;;AAAA;AACA;AACA;AACA;AACA;AAA4B;AAAA;AAAA;AAAA;AAE5B,SAASA,MAAM,CAACC,KAAK,EAAE;EACnB,IAAMC,QAAQ,GAAG,SAAXA,QAAQ,CAAGC,CAAC,EAAI;IAAA;IAClB,IAAI,OAAOA,CAAC,CAACC,IAAI,KAAK,UAAU,IAAI,aAAAD,CAAC,CAACF,KAAK,6CAAP,SAASI,IAAI,KAAI,KAAK,EAAE;MACxD,OAAOF,CAAC;IACZ,CAAC,MAAM;MAAA;MACH,IAAI,cAAAA,CAAC,CAACF,KAAK,8CAAP,UAAU,WAAW,CAAC,MAAK,OAAO,EAAE;QACpC,oBACI;UAAK,SAAS,EAAC;QAAkB,gBAC7B;UAAK,SAAS,EAAC;QAAkB,GAAEE,CAAC,CAACF,KAAK,CAACK,QAAQ,CAAC,CAAC,CAAC,CAAO,eAC7D;UAAK,SAAS,EAAC;QAAiB,GAAEH,CAAC,CAACF,KAAK,CAACK,QAAQ,CAAC,CAAC,CAAC,CAAO,CAC1D;MAEd;MACA,IAAIC,GAAG,GAAG,CAAC,CAAC;MACZ,IAAI,cAAAJ,CAAC,CAACF,KAAK,8CAAP,UAAU,WAAW,CAAC,MAAK,WAAW,EAAE;QACxCM,GAAG,mCACIA,GAAG;UACNC,OAAO,EAAE,SAAS;UAClBC,QAAQ,EAAE,QAAQ;UAClBC,YAAY,EAAE,UAAU;UACxBC,UAAU,EAAE,QAAQ;UACpBC,SAAS,EAAE,OAAO;UAClBC,MAAM,EAAE;QAAS,EACpB;MACL;MACA,IAAI,cAAAV,CAAC,CAACF,KAAK,8CAAP,UAAU,WAAW,CAAC,MAAK,IAAI,EAAE;QACjCM,GAAG,mCACIA,GAAG;UACNC,OAAO,EAAE;QAAS,EACrB;MACL;MACA,oBACI;QAAK,GAAG,EAAEL,CAAE;QAAC,KAAK,oBAAOI,GAAG;MAAG,GAC1B,cAAAJ,CAAC,CAACF,KAAK,8CAAP,UAAU,WAAW,CAAC,MAAK,WAAW,gBACnC,gCAAC,mBAAO;QAAC,SAAS,EAAC,UAAU;QAAC,KAAK,EAAEE,CAAC,CAACF,KAAK,CAACK;MAAS,GACjDH,CAAC,CACI,GAEVA,CACH,CACC;IAEd;EACJ,CAAC;EACD,IAAMW,MAAM,GAAG,SAATA,MAAM,CAAGX,CAAC,EAAI;IAChB,IAAIA,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE;IACtB,IAAI,CAACA,CAAC,CAACY,MAAM,EAAE;MACX,OAAOb,QAAQ,CAACC,CAAC,CAAC;IACtB;IACA,OAAOA,CAAC,CAACa,GAAG,CAAC,UAAAC,IAAI,EAAI;MACjB,OAAOf,QAAQ,CAACe,IAAI,CAAC;IACzB,CAAC,CAAC;EACN,CAAC;EACD,oBAAO,gCAAC,eAAG,EAAKhB,KAAK,EAAGa,MAAM,CAACb,KAAK,CAACK,QAAQ,CAAC,CAAO;AACzD;AAEAN,MAAM,CAACkB,SAAS,GAAG;EACfZ,QAAQ,EAAEa,qBAAS,CAACC;AACxB,CAAC;AAAC,eACapB,MAAM;AAAA"}
|
package/lib/vtx-search/VtxRow.js
CHANGED
|
@@ -4,23 +4,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
9
|
var _row = _interopRequireDefault(require("antd/lib/row"));
|
|
13
|
-
|
|
14
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
-
|
|
16
11
|
function VtxRow(props) {
|
|
17
12
|
var children = props.children,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
13
|
+
_props$gutter = props.gutter,
|
|
14
|
+
gutter = _props$gutter === void 0 ? 0 : _props$gutter,
|
|
15
|
+
type = props.type,
|
|
16
|
+
align = props.align,
|
|
17
|
+
justify = props.justify,
|
|
18
|
+
className = props.className;
|
|
24
19
|
var RowProps = {
|
|
25
20
|
gutter: gutter,
|
|
26
21
|
type: type,
|
|
@@ -30,7 +25,6 @@ function VtxRow(props) {
|
|
|
30
25
|
};
|
|
31
26
|
return /*#__PURE__*/_react["default"].createElement(_row["default"], RowProps, children);
|
|
32
27
|
}
|
|
33
|
-
|
|
34
28
|
VtxRow.propTypes = {
|
|
35
29
|
children: _propTypes["default"].node,
|
|
36
30
|
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';\
|
|
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":";;;;;;AAAA;AACA;AACA;AAA+B;AAE/B,SAASA,MAAM,CAACC,KAAK,EAAE;EACnB,IAAQC,QAAQ,GAAkDD,KAAK,CAA/DC,QAAQ;IAAA,gBAAkDD,KAAK,CAArDE,MAAM;IAANA,MAAM,8BAAG,CAAC;IAAEC,IAAI,GAAgCH,KAAK,CAAzCG,IAAI;IAAEC,KAAK,GAAyBJ,KAAK,CAAnCI,KAAK;IAAEC,OAAO,GAAgBL,KAAK,CAA5BK,OAAO;IAAEC,SAAS,GAAKN,KAAK,CAAnBM,SAAS;EAC7D,IAAMC,QAAQ,GAAG;IAAEL,MAAM,EAANA,MAAM;IAAEC,IAAI,EAAJA,IAAI;IAAEC,KAAK,EAALA,KAAK;IAAEC,OAAO,EAAPA,OAAO;IAAEC,SAAS,EAATA;EAAU,CAAC;EAC5D,oBAAO,gCAAC,eAAG,EAAKC,QAAQ,EAAGN,QAAQ,CAAO;AAC9C;AAEAF,MAAM,CAACS,SAAS,GAAG;EACfP,QAAQ,EAAEQ,qBAAS,CAACC,IAAI;EACxBR,MAAM,EAAEO,qBAAS,CAACE,MAAM;EACxBR,IAAI,EAAEM,qBAAS,CAACG,MAAM;EACtBR,KAAK,EAAEK,qBAAS,CAACE,MAAM;EACvBN,OAAO,EAAEI,qBAAS,CAACE,MAAM;EACzBL,SAAS,EAAEG,qBAAS,CAACG;AACzB,CAAC;AAAC,eACab,MAAM;AAAA"}
|