vxe-pc-ui 0.2.0 → 0.4.0
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/es/anchor/index.js +2 -0
- package/es/anchor/src/anchor.js +18 -18
- package/es/anchor-link/index.js +2 -0
- package/es/breadcrumb/index.js +2 -0
- package/es/breadcrumb/src/breadcrumb.js +2 -2
- package/es/breadcrumb-item/index.js +2 -0
- package/es/button/index.js +2 -0
- package/es/button/src/button-group.js +2 -5
- package/es/button-group/index.js +2 -0
- package/es/checkbox/src/checkbox.js +8 -8
- package/es/checkbox/src/group.js +6 -6
- package/es/checkbox-group/index.js +1 -1
- package/es/col/index.js +2 -0
- package/es/components.js +3 -0
- package/es/form/index.js +2 -0
- package/es/form/src/form-config-item.js +3 -8
- package/es/form/src/form-item.js +3 -8
- package/es/form/src/form.js +5 -8
- package/es/form/src/render.js +2 -10
- package/es/form-design/index.js +2 -0
- package/es/form-gather/index.js +2 -0
- package/es/form-item/index.js +2 -0
- package/es/icon/index.js +2 -0
- package/es/input/index.js +1 -1
- package/es/input/style.css +5 -5
- package/es/input/style.min.css +1 -1
- package/es/layout-aside/index.js +2 -0
- package/es/layout-body/index.js +2 -0
- package/es/layout-container/index.js +2 -0
- package/es/layout-footer/index.js +2 -0
- package/es/layout-header/index.js +2 -0
- package/es/list/index.js +10 -0
- package/es/list/src/list.js +340 -0
- package/es/list/style.css +26 -0
- package/es/list/style.min.css +1 -0
- package/es/list-design/index.js +2 -0
- package/es/loading/index.js +2 -0
- package/es/modal/index.js +1 -1
- package/es/modal/src/modal.js +2 -5
- package/es/modal/style.css +1 -1
- package/es/modal/style.min.css +1 -1
- package/es/optgroup/index.js +1 -1
- package/es/option/index.js +1 -1
- package/es/pager/index.js +1 -1
- package/es/pager/src/pager.js +4 -4
- package/es/pager/style.css +2 -2
- package/es/pager/style.min.css +1 -1
- package/es/pulldown/index.js +1 -1
- package/es/pulldown/style.css +2 -2
- package/es/pulldown/style.min.css +1 -1
- package/es/radio/index.js +1 -1
- package/es/radio-button/index.js +1 -1
- package/es/radio-group/index.js +1 -1
- package/es/row/index.js +2 -0
- package/es/select/index.js +1 -1
- package/es/select/style.css +2 -2
- package/es/select/style.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/switch/index.js +1 -1
- package/es/switch/style.css +1 -1
- package/es/switch/style.min.css +1 -1
- package/es/tab-pane/index.js +2 -0
- package/es/tabs/index.js +2 -0
- package/es/tabs/src/tabs.js +50 -19
- package/es/tabs/style.css +49 -34
- package/es/tabs/style.min.css +1 -1
- package/es/textarea/index.js +1 -1
- package/es/textarea/style.css +2 -2
- package/es/textarea/style.min.css +1 -1
- package/es/tooltip/index.js +2 -0
- package/es/tooltip/src/tooltip.js +2 -7
- package/es/ui/src/core.js +1 -1
- package/es/ui/src/globalStore.js +64 -66
- package/es/ui/src/log.js +1 -1
- package/es/ui/src/resize.js +81 -0
- package/es/ui/src/store.js +8 -1
- package/es/vxe-input/style.css +5 -5
- package/es/vxe-input/style.min.css +1 -1
- package/es/vxe-list/index.js +3 -0
- package/es/vxe-list/style.css +26 -0
- package/es/vxe-list/style.min.css +1 -0
- package/es/vxe-modal/style.css +1 -1
- package/es/vxe-modal/style.min.css +1 -1
- package/es/vxe-pager/style.css +2 -2
- package/es/vxe-pager/style.min.css +1 -1
- package/es/vxe-pulldown/style.css +2 -2
- package/es/vxe-pulldown/style.min.css +1 -1
- package/es/vxe-select/style.css +2 -2
- package/es/vxe-select/style.min.css +1 -1
- package/es/vxe-switch/style.css +1 -1
- package/es/vxe-switch/style.min.css +1 -1
- package/es/vxe-tabs/style.css +49 -34
- package/es/vxe-tabs/style.min.css +1 -1
- package/es/vxe-textarea/style.css +2 -2
- package/es/vxe-textarea/style.min.css +1 -1
- package/lib/anchor/index.js +2 -0
- package/lib/anchor/index.min.js +1 -1
- package/lib/anchor/src/anchor.js +18 -18
- package/lib/anchor/src/anchor.min.js +1 -1
- package/lib/anchor-link/index.js +2 -0
- package/lib/anchor-link/index.min.js +1 -1
- package/lib/breadcrumb/index.js +2 -0
- package/lib/breadcrumb/index.min.js +1 -1
- package/lib/breadcrumb/src/breadcrumb.js +2 -2
- package/lib/breadcrumb/src/breadcrumb.min.js +1 -1
- package/lib/breadcrumb-item/index.js +2 -0
- package/lib/breadcrumb-item/index.min.js +1 -1
- package/lib/button/index.js +2 -0
- package/lib/button/index.min.js +1 -1
- package/lib/button/src/button-group.js +5 -7
- package/lib/button/src/button-group.min.js +1 -1
- package/lib/button-group/index.js +2 -0
- package/lib/button-group/index.min.js +1 -1
- package/lib/checkbox/src/checkbox.js +8 -8
- package/lib/checkbox/src/checkbox.min.js +1 -1
- package/lib/checkbox/src/group.js +6 -6
- package/lib/checkbox/src/group.min.js +1 -1
- package/lib/checkbox-group/index.js +1 -1
- package/lib/checkbox-group/index.min.js +1 -1
- package/lib/col/index.js +2 -0
- package/lib/col/index.min.js +1 -1
- package/lib/components.js +13 -1
- package/lib/components.min.js +1 -1
- package/lib/form/index.js +2 -0
- package/lib/form/index.min.js +1 -1
- package/lib/form/src/form-config-item.js +3 -4
- package/lib/form/src/form-config-item.min.js +1 -1
- package/lib/form/src/form-item.js +3 -4
- package/lib/form/src/form-item.min.js +1 -1
- package/lib/form/src/form.js +7 -8
- package/lib/form/src/form.min.js +1 -1
- package/lib/form/src/render.js +4 -8
- package/lib/form/src/render.min.js +1 -1
- package/lib/form-design/index.js +2 -0
- package/lib/form-design/index.min.js +1 -1
- package/lib/form-gather/index.js +2 -0
- package/lib/form-gather/index.min.js +1 -1
- package/lib/form-item/index.js +2 -0
- package/lib/form-item/index.min.js +1 -1
- package/lib/icon/index.js +2 -0
- package/lib/icon/index.min.js +1 -1
- package/lib/index.umd.js +737 -167
- package/lib/index.umd.min.js +1 -1
- package/lib/input/index.js +1 -1
- package/lib/input/index.min.js +1 -1
- package/lib/input/style/style.css +5 -5
- package/lib/input/style/style.min.css +1 -1
- package/lib/layout-aside/index.js +2 -0
- package/lib/layout-aside/index.min.js +1 -1
- package/lib/layout-body/index.js +2 -0
- package/lib/layout-body/index.min.js +1 -1
- package/lib/layout-container/index.js +2 -0
- package/lib/layout-container/index.min.js +1 -1
- package/lib/layout-footer/index.js +2 -0
- package/lib/layout-footer/index.min.js +1 -1
- package/lib/layout-header/index.js +2 -0
- package/lib/layout-header/index.min.js +1 -1
- package/lib/list/index.js +17 -0
- package/lib/list/index.min.js +1 -0
- package/lib/list/src/list.js +397 -0
- package/lib/list/src/list.min.js +1 -0
- package/lib/list/style/index.js +1 -0
- package/lib/list/style/style.css +26 -0
- package/lib/list/style/style.min.css +1 -0
- package/lib/list-design/index.js +2 -0
- package/lib/list-design/index.min.js +1 -1
- package/lib/loading/index.js +2 -0
- package/lib/loading/index.min.js +1 -1
- package/lib/modal/index.js +1 -5
- package/lib/modal/index.min.js +1 -1
- package/lib/modal/src/modal.js +3 -4
- package/lib/modal/src/modal.min.js +1 -1
- package/lib/modal/style/style.css +1 -1
- package/lib/modal/style/style.min.css +1 -1
- package/lib/optgroup/index.js +1 -1
- package/lib/optgroup/index.min.js +1 -1
- package/lib/option/index.js +1 -1
- package/lib/option/index.min.js +1 -1
- package/lib/pager/index.js +1 -1
- package/lib/pager/index.min.js +1 -1
- package/lib/pager/src/pager.js +6 -7
- package/lib/pager/src/pager.min.js +1 -1
- package/lib/pager/style/style.css +2 -2
- package/lib/pager/style/style.min.css +1 -1
- package/lib/pulldown/index.js +1 -1
- package/lib/pulldown/index.min.js +1 -1
- package/lib/pulldown/style/style.css +2 -2
- package/lib/pulldown/style/style.min.css +1 -1
- package/lib/radio/index.js +1 -1
- package/lib/radio/index.min.js +1 -1
- package/lib/radio-button/index.js +1 -1
- package/lib/radio-button/index.min.js +1 -1
- package/lib/radio-group/index.js +1 -1
- package/lib/radio-group/index.min.js +1 -1
- package/lib/row/index.js +2 -0
- package/lib/row/index.min.js +1 -1
- package/lib/select/index.js +1 -1
- package/lib/select/index.min.js +1 -1
- package/lib/select/style/style.css +2 -2
- package/lib/select/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/switch/index.js +1 -1
- package/lib/switch/index.min.js +1 -1
- package/lib/switch/style/style.css +1 -1
- package/lib/switch/style/style.min.css +1 -1
- package/lib/tab-pane/index.js +2 -0
- package/lib/tab-pane/index.min.js +1 -1
- package/lib/tabs/index.js +2 -0
- package/lib/tabs/index.min.js +1 -1
- package/lib/tabs/src/tabs.js +50 -12
- package/lib/tabs/src/tabs.min.js +1 -1
- package/lib/tabs/style/style.css +49 -34
- package/lib/tabs/style/style.min.css +1 -1
- package/lib/textarea/index.js +1 -1
- package/lib/textarea/index.min.js +1 -1
- package/lib/textarea/style/style.css +2 -2
- package/lib/textarea/style/style.min.css +1 -1
- package/lib/tooltip/index.js +2 -0
- package/lib/tooltip/index.min.js +1 -1
- package/lib/tooltip/src/tooltip.js +3 -4
- package/lib/tooltip/src/tooltip.min.js +1 -1
- package/lib/ui/src/core.js +1 -1
- package/lib/ui/src/core.min.js +1 -1
- package/lib/ui/src/globalStore.js +63 -65
- package/lib/ui/src/globalStore.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/ui/src/resize.js +96 -0
- package/lib/ui/src/resize.min.js +1 -0
- package/lib/ui/src/store.js +8 -1
- package/lib/ui/src/store.min.js +1 -1
- package/lib/vxe-input/style/style.css +5 -5
- package/lib/vxe-input/style/style.min.css +1 -1
- package/lib/vxe-list/index.js +22 -0
- package/lib/vxe-list/index.min.js +1 -0
- package/lib/vxe-list/style/index.js +1 -0
- package/lib/vxe-list/style/style.css +26 -0
- package/lib/vxe-list/style/style.min.css +1 -0
- package/lib/vxe-modal/style/style.css +1 -1
- package/lib/vxe-modal/style/style.min.css +1 -1
- package/lib/vxe-pager/style/style.css +2 -2
- package/lib/vxe-pager/style/style.min.css +1 -1
- package/lib/vxe-pulldown/style/style.css +2 -2
- package/lib/vxe-pulldown/style/style.min.css +1 -1
- package/lib/vxe-select/style/style.css +2 -2
- package/lib/vxe-select/style/style.min.css +1 -1
- package/lib/vxe-switch/style/style.css +1 -1
- package/lib/vxe-switch/style/style.min.css +1 -1
- package/lib/vxe-tabs/style/style.css +49 -34
- package/lib/vxe-tabs/style/style.min.css +1 -1
- package/lib/vxe-textarea/style/style.css +2 -2
- package/lib/vxe-textarea/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/anchor/index.ts +3 -0
- package/packages/anchor/src/anchor.ts +23 -23
- package/packages/anchor-link/index.ts +3 -0
- package/packages/breadcrumb/index.ts +3 -0
- package/packages/breadcrumb/src/breadcrumb.ts +2 -2
- package/packages/breadcrumb-item/index.ts +3 -0
- package/packages/button/index.ts +3 -0
- package/packages/button-group/index.ts +3 -0
- package/packages/checkbox/index.ts +2 -2
- package/packages/checkbox/src/checkbox.ts +8 -8
- package/packages/checkbox/src/group.ts +6 -6
- package/packages/checkbox-group/index.ts +3 -4
- package/packages/col/index.ts +3 -0
- package/packages/components.ts +3 -0
- package/packages/form/index.ts +3 -0
- package/packages/form/src/form.ts +4 -4
- package/packages/form-design/index.ts +3 -0
- package/packages/form-gather/index.ts +3 -0
- package/packages/form-item/index.ts +3 -0
- package/packages/icon/index.ts +3 -0
- package/packages/input/index.ts +3 -4
- package/packages/layout-aside/index.ts +3 -0
- package/packages/layout-body/index.ts +3 -0
- package/packages/layout-container/index.ts +3 -0
- package/packages/layout-footer/index.ts +3 -0
- package/packages/layout-header/index.ts +3 -0
- package/packages/list/index.ts +14 -0
- package/packages/list/src/list.ts +372 -0
- package/packages/list-design/index.ts +3 -0
- package/packages/loading/index.ts +3 -0
- package/packages/optgroup/index.ts +3 -4
- package/packages/option/index.ts +3 -4
- package/packages/pager/index.ts +3 -4
- package/packages/pager/src/pager.ts +3 -3
- package/packages/pulldown/index.ts +3 -4
- package/packages/radio/index.ts +3 -4
- package/packages/radio-button/index.ts +3 -4
- package/packages/radio-group/index.ts +2 -3
- package/packages/row/index.ts +3 -0
- package/packages/select/index.ts +3 -4
- package/packages/switch/index.ts +1 -2
- package/packages/tab-pane/index.ts +3 -0
- package/packages/tabs/index.ts +3 -0
- package/packages/tabs/src/tabs.ts +49 -19
- package/packages/textarea/index.ts +3 -4
- package/packages/tooltip/index.ts +3 -0
- package/packages/ui/src/globalStore.ts +63 -65
- package/packages/ui/src/resize.ts +85 -0
- package/styles/all.scss +1 -0
- package/styles/components/input.scss +5 -5
- package/styles/components/list.scss +1 -1
- package/styles/components/modal.scss +1 -1
- package/styles/components/pager.scss +2 -2
- package/styles/components/pulldown.scss +2 -2
- package/styles/components/select.scss +2 -2
- package/styles/components/switch.scss +1 -1
- package/styles/components/tabs.scss +44 -34
- package/styles/components/textarea.scss +2 -2
- package/types/all.d.ts +1 -0
- package/types/components/list.d.ts +166 -0
- package/types/components/tab-pane.d.ts +1 -1
- package/types/components/tabs.d.ts +2 -2
- package/types/ui/global-config.d.ts +67 -25
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
position: relative;
|
|
6
6
|
display: flex;
|
|
7
7
|
align-items: center;
|
|
8
|
-
color: var(--vxe-font-color);
|
|
8
|
+
color: var(--vxe-ui-font-color);
|
|
9
9
|
font-family: var(--vxe-font-family);
|
|
10
10
|
text-align: right;
|
|
11
11
|
background-color: var(--vxe-ui-pager-background-color);
|
|
@@ -246,7 +246,7 @@
|
|
|
246
246
|
.vxe-pager--jump .vxe-pager--goto {
|
|
247
247
|
border-radius: var(--vxe-border-radius);
|
|
248
248
|
border: 1px solid var(--vxe-ui-input-border-color);
|
|
249
|
-
color: var(--vxe-font-color);
|
|
249
|
+
color: var(--vxe-ui-font-color);
|
|
250
250
|
transition: border .2s ease-in-out;
|
|
251
251
|
padding: 0 0.4em;
|
|
252
252
|
background-color: var(--vxe-ui-input-background-color);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
.vxe-pulldown {
|
|
4
4
|
position: relative;
|
|
5
5
|
display: inline-block;
|
|
6
|
-
color: var(--vxe-font-color);
|
|
6
|
+
color: var(--vxe-ui-font-color);
|
|
7
7
|
text-align: left;
|
|
8
8
|
}
|
|
9
9
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
position: absolute;
|
|
13
13
|
left: 0;
|
|
14
14
|
padding: 4px 0;
|
|
15
|
-
color: var(--vxe-font-color);
|
|
15
|
+
color: var(--vxe-ui-font-color);
|
|
16
16
|
text-align: left;
|
|
17
17
|
&:not(.is--transfer) {
|
|
18
18
|
min-width: 100%;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
position: relative;
|
|
5
5
|
display: inline-block;
|
|
6
6
|
width: 180px;
|
|
7
|
-
color: var(--vxe-font-color);
|
|
7
|
+
color: var(--vxe-ui-font-color);
|
|
8
8
|
text-align: left;
|
|
9
9
|
& > .vxe-input {
|
|
10
10
|
.vxe-input--inner {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
position: absolute;
|
|
53
53
|
left: 0;
|
|
54
54
|
padding: 4px 0;
|
|
55
|
-
color: var(--vxe-font-color);
|
|
55
|
+
color: var(--vxe-ui-font-color);
|
|
56
56
|
text-align: left;
|
|
57
57
|
&:not(.is--transfer) {
|
|
58
58
|
min-width: 100%;
|
|
@@ -5,11 +5,6 @@
|
|
|
5
5
|
}
|
|
6
6
|
.vxe-tabs-header {
|
|
7
7
|
position: relative;
|
|
8
|
-
}
|
|
9
|
-
.vxe-tabs-header--wrapper {
|
|
10
|
-
position: relative;
|
|
11
|
-
display: flex;
|
|
12
|
-
flex-direction: row;
|
|
13
8
|
&::after {
|
|
14
9
|
content: "";
|
|
15
10
|
position: absolute;
|
|
@@ -20,6 +15,11 @@
|
|
|
20
15
|
background-color: #e4e7ed;
|
|
21
16
|
}
|
|
22
17
|
}
|
|
18
|
+
.vxe-tabs-header--wrapper {
|
|
19
|
+
position: relative;
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: row;
|
|
22
|
+
}
|
|
23
23
|
.vxe-tab-header--item {
|
|
24
24
|
position: relative;
|
|
25
25
|
padding: 0 16px;
|
|
@@ -28,9 +28,13 @@
|
|
|
28
28
|
color: var(--vxe-ui-font-primary-color);;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
+
.vxe-tabs-header--active-line-card,
|
|
32
|
+
.vxe-tabs-header--active-line-border-card,
|
|
31
33
|
.vxe-tab-header--item-name {
|
|
32
34
|
height: 40px;
|
|
33
35
|
line-height: 40px;
|
|
36
|
+
}
|
|
37
|
+
.vxe-tab-header--item-name {
|
|
34
38
|
border-bottom: 2px solid transparent;
|
|
35
39
|
@include createAnimationTransition(color, .3s);
|
|
36
40
|
}
|
|
@@ -41,12 +45,22 @@
|
|
|
41
45
|
display: block;
|
|
42
46
|
}
|
|
43
47
|
}
|
|
44
|
-
.vxe-tabs-header--active-line
|
|
48
|
+
.vxe-tabs-header--active-line-card,
|
|
49
|
+
.vxe-tabs-header--active-line-border-card {
|
|
50
|
+
@include createAnimationTransition(all, .3s);
|
|
51
|
+
}
|
|
52
|
+
.vxe-tabs-header--active-line-default,
|
|
53
|
+
.vxe-tabs-header--active-line-card,
|
|
54
|
+
.vxe-tabs-header--active-line-border-card {
|
|
45
55
|
display: none;
|
|
46
56
|
}
|
|
57
|
+
.vxe-tabs-header--active-line-border-card {
|
|
58
|
+
border-left: 1px solid #e4e7ed;
|
|
59
|
+
border-right: 1px solid #e4e7ed;
|
|
60
|
+
}
|
|
47
61
|
|
|
48
62
|
.vxe-tabs--default {
|
|
49
|
-
.vxe-tabs-header--active-line {
|
|
63
|
+
.vxe-tabs-header--active-line-default {
|
|
50
64
|
display: block;
|
|
51
65
|
position: absolute;
|
|
52
66
|
bottom: -1px;
|
|
@@ -60,6 +74,16 @@
|
|
|
60
74
|
}
|
|
61
75
|
|
|
62
76
|
.vxe-tabs--card {
|
|
77
|
+
.vxe-tabs-header--active-line-card {
|
|
78
|
+
display: block;
|
|
79
|
+
position: absolute;
|
|
80
|
+
top: 0;
|
|
81
|
+
left: 0;
|
|
82
|
+
width: 4px;
|
|
83
|
+
border: 1px solid var(--vxe-ui-font-primary-color);
|
|
84
|
+
pointer-events: none;
|
|
85
|
+
z-index: 1;
|
|
86
|
+
}
|
|
63
87
|
.vxe-tabs-header {
|
|
64
88
|
border-top: 1px solid #e4e7ed;
|
|
65
89
|
border-left: 1px solid #e4e7ed;
|
|
@@ -75,6 +99,19 @@
|
|
|
75
99
|
}
|
|
76
100
|
}
|
|
77
101
|
.vxe-tabs--border-card {
|
|
102
|
+
.vxe-tabs-header--wrapper {
|
|
103
|
+
z-index: 2;
|
|
104
|
+
}
|
|
105
|
+
.vxe-tabs-header--active-line-border-card {
|
|
106
|
+
display: block;
|
|
107
|
+
position: absolute;
|
|
108
|
+
top: 0;
|
|
109
|
+
left: 0;
|
|
110
|
+
width: 4px;
|
|
111
|
+
background-color: #ffffff;
|
|
112
|
+
pointer-events: none;
|
|
113
|
+
z-index: 1;
|
|
114
|
+
}
|
|
78
115
|
.vxe-tab-pane--item {
|
|
79
116
|
border-bottom: 1px solid #e4e7ed;
|
|
80
117
|
border-left: 1px solid #e4e7ed;
|
|
@@ -86,31 +123,4 @@
|
|
|
86
123
|
border-right: 1px solid #e4e7ed;
|
|
87
124
|
background-color: #f5f7fa;
|
|
88
125
|
}
|
|
89
|
-
.vxe-tab-header--item {
|
|
90
|
-
&.is--active {
|
|
91
|
-
background-color: #ffffff;
|
|
92
|
-
&::before {
|
|
93
|
-
content: "";
|
|
94
|
-
position: absolute;
|
|
95
|
-
top: 0;
|
|
96
|
-
left: -1px;
|
|
97
|
-
width: calc(100% + 2px);
|
|
98
|
-
height: 100%;
|
|
99
|
-
border-left: 1px solid #e4e7ed;
|
|
100
|
-
border-right: 1px solid #e4e7ed;
|
|
101
|
-
pointer-events: none;
|
|
102
|
-
}
|
|
103
|
-
&::after {
|
|
104
|
-
content: "";
|
|
105
|
-
position: absolute;
|
|
106
|
-
bottom: 0;
|
|
107
|
-
left: 0;
|
|
108
|
-
width: 100%;
|
|
109
|
-
height: 1px;
|
|
110
|
-
background-color: var(--vxe-ui-layout-background-color);
|
|
111
|
-
pointer-events: none;
|
|
112
|
-
z-index: 1;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
126
|
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
outline: 0;
|
|
15
15
|
font-size: inherit;
|
|
16
16
|
padding: 0 0.6em;
|
|
17
|
-
color: var(--vxe-font-color);
|
|
17
|
+
color: var(--vxe-ui-font-color);
|
|
18
18
|
line-height: inherit;
|
|
19
19
|
border: 1px solid var(--vxe-ui-input-border-color);
|
|
20
20
|
background-color: var(--vxe-ui-textarea-background-color);
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
.vxe-textarea--inner,
|
|
36
36
|
.vxe-textarea--autosize {
|
|
37
37
|
line-height: var(--vxe-ui-textarea-line-height);
|
|
38
|
-
color: var(--vxe-font-color);
|
|
38
|
+
color: var(--vxe-ui-font-color);
|
|
39
39
|
font-family: var(--vxe-font-family);
|
|
40
40
|
}
|
|
41
41
|
|
package/types/all.d.ts
CHANGED
|
@@ -84,6 +84,7 @@ export * from './components/layout-container'
|
|
|
84
84
|
export * from './components/layout-footer'
|
|
85
85
|
export * from './components/layout-header'
|
|
86
86
|
export * from './components/list-design'
|
|
87
|
+
export * from './components/list'
|
|
87
88
|
export * from './components/loading'
|
|
88
89
|
export * from './components/modal'
|
|
89
90
|
export * from './components/optgroup'
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { RenderFunction, SetupContext, Ref, ComponentPublicInstance } from 'vue'
|
|
2
|
+
import { defineVxeComponent, VxeComponentBase, VxeComponentEvent, VxeComponentSize } from '../tool'
|
|
3
|
+
|
|
4
|
+
/* eslint-disable no-use-before-define,@typescript-eslint/ban-types */
|
|
5
|
+
|
|
6
|
+
export declare const VxeList: defineVxeComponent<VxeListProps, VxeListEventProps>
|
|
7
|
+
|
|
8
|
+
export type VxeListInstance = ComponentPublicInstance<VxeListProps, VxeListConstructor>
|
|
9
|
+
|
|
10
|
+
export interface VxeListConstructor extends VxeComponentBase, VxeListMethods {
|
|
11
|
+
props: VxeListProps
|
|
12
|
+
context: SetupContext<VxeListEmits>
|
|
13
|
+
reactData: ListReactData
|
|
14
|
+
internalData: ListInternalData
|
|
15
|
+
getRefMaps(): ListPrivateRef
|
|
16
|
+
getComputeMaps(): ListPrivateComputed
|
|
17
|
+
renderVN: RenderFunction
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface ListPrivateRef {
|
|
21
|
+
refElem: Ref<HTMLDivElement | undefined>
|
|
22
|
+
}
|
|
23
|
+
export interface VxeListPrivateRef extends ListPrivateRef { }
|
|
24
|
+
|
|
25
|
+
export namespace VxeListPropTypes {
|
|
26
|
+
export type Size = VxeComponentSize
|
|
27
|
+
export type Data = any[]
|
|
28
|
+
export type Height = number | string
|
|
29
|
+
export type MaxHeight = number | string
|
|
30
|
+
export type Loading = boolean
|
|
31
|
+
export type AutoResize = boolean
|
|
32
|
+
export type ClassName = string | ((params: { $list: VxeListConstructor }) => string)
|
|
33
|
+
export type SyncResize = boolean | string | number
|
|
34
|
+
export interface ScrollY {
|
|
35
|
+
/**
|
|
36
|
+
* 指定大于指定行时自动启动纵向虚拟滚动,如果为 0 则总是启用,如果为 -1 则关闭
|
|
37
|
+
*/
|
|
38
|
+
gt?: number
|
|
39
|
+
/**
|
|
40
|
+
* 指定每次渲染的数据偏移量,偏移量越大渲染次数就越少,但每次渲染耗时就越久
|
|
41
|
+
*/
|
|
42
|
+
oSize?: number
|
|
43
|
+
/**
|
|
44
|
+
* 指定列表项的 className
|
|
45
|
+
*/
|
|
46
|
+
sItem?: string
|
|
47
|
+
/**
|
|
48
|
+
* 是否启用
|
|
49
|
+
*/
|
|
50
|
+
enabled?: boolean
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export type VxeListProps<D = any> = {
|
|
55
|
+
size?: VxeListPropTypes.Size
|
|
56
|
+
data?: D[]
|
|
57
|
+
height?: VxeListPropTypes.Height
|
|
58
|
+
maxHeight?: VxeListPropTypes.MaxHeight
|
|
59
|
+
loading?: VxeListPropTypes.Loading
|
|
60
|
+
autoResize?: VxeListPropTypes.AutoResize
|
|
61
|
+
syncResize?: VxeListPropTypes.SyncResize
|
|
62
|
+
className?: VxeListPropTypes.ClassName
|
|
63
|
+
scrollY?: VxeListPropTypes.ScrollY
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface ListPrivateComputed {
|
|
67
|
+
}
|
|
68
|
+
export interface VxeListPrivateComputed extends ListPrivateComputed { }
|
|
69
|
+
|
|
70
|
+
export interface ListReactData {
|
|
71
|
+
scrollYLoad: boolean
|
|
72
|
+
bodyHeight: number
|
|
73
|
+
rowHeight: number
|
|
74
|
+
topSpaceHeight: number
|
|
75
|
+
items: any[]
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface ListInternalData {
|
|
79
|
+
fullData: any[]
|
|
80
|
+
lastScrollLeft: number
|
|
81
|
+
lastScrollTop: number
|
|
82
|
+
scrollYStore: {
|
|
83
|
+
startIndex: number
|
|
84
|
+
endIndex: number
|
|
85
|
+
visibleSize: number
|
|
86
|
+
offsetSize: number
|
|
87
|
+
rowHeight: number
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export interface ListMethods {
|
|
92
|
+
dispatchEvent(type: ValueOf<VxeListEmits>, params: any, evnt: Event): void
|
|
93
|
+
/**
|
|
94
|
+
* 加载数据
|
|
95
|
+
* @param data 列表数据
|
|
96
|
+
*/
|
|
97
|
+
loadData(data: any[]): Promise<any>
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* 加载数据
|
|
101
|
+
* @param data 列表数据
|
|
102
|
+
*/
|
|
103
|
+
reloadData(data: any[]): Promise<any>
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* 重新计算列表
|
|
107
|
+
*/
|
|
108
|
+
recalculate(): Promise<void>
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* 如果有滚动条,则滚动到对应的位置
|
|
112
|
+
* @param scrollLeft 左边距离
|
|
113
|
+
* @param scrollTop 顶部距离
|
|
114
|
+
*/
|
|
115
|
+
scrollTo(scrollLeft: number | null, scrollTop?: number | null): Promise<void>
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* 刷新滚动操作,手动同步滚动相关位置
|
|
119
|
+
*/
|
|
120
|
+
refreshScroll(): Promise<void>
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* 手动清除滚动相关信息,还原到初始状态
|
|
124
|
+
*/
|
|
125
|
+
clearScroll(): Promise<void>
|
|
126
|
+
}
|
|
127
|
+
export interface VxeListMethods extends ListMethods { }
|
|
128
|
+
|
|
129
|
+
export interface ListPrivateMethods { }
|
|
130
|
+
export interface VxeListPrivateMethods extends ListPrivateMethods { }
|
|
131
|
+
|
|
132
|
+
export type VxeListEmits = [
|
|
133
|
+
'scroll'
|
|
134
|
+
]
|
|
135
|
+
|
|
136
|
+
export namespace VxeListDefines {
|
|
137
|
+
export interface ListEventParams extends VxeEvent {
|
|
138
|
+
$list: VxeListConstructor
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export interface ScrollParams { }
|
|
142
|
+
export interface ScrollEventParams extends ListEventParams, ScrollParams { }
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export type VxeListEventProps = {
|
|
146
|
+
onScroll?: VxeListEvents.Scroll
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export interface VxeListListeners {
|
|
150
|
+
scroll?: VxeListEvents.Scroll
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export namespace VxeListEvents {
|
|
154
|
+
export type Scroll = (params: VxeListDefines.ScrollEventParams) => void
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export namespace VxeListSlotTypes {
|
|
158
|
+
export interface DefaultSlotParams {}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export interface VxeListSlots {
|
|
162
|
+
default: (params: VxeListSlotTypes.DefaultSlotParams) => any
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export const List: typeof VxeList
|
|
166
|
+
export default VxeList
|
|
@@ -23,7 +23,7 @@ export interface VxeTabPanePrivateRef extends TabPanePrivateRef { }
|
|
|
23
23
|
|
|
24
24
|
export namespace VxeTabPanePropTypes {
|
|
25
25
|
export type Title = string | number
|
|
26
|
-
export type Name = string | number
|
|
26
|
+
export type Name = string | number
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
export type VxeTabPaneProps = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RenderFunction, SetupContext, Ref, ComponentPublicInstance } from 'vue'
|
|
2
2
|
import { defineVxeComponent, VxeComponentBase, VxeComponentEvent } from '../tool'
|
|
3
|
-
import { VxeTabPaneProps, VxeTabPaneDefines } from './tab-pane'
|
|
3
|
+
import { VxeTabPaneProps, VxeTabPaneDefines, VxeTabPanePropTypes } from './tab-pane'
|
|
4
4
|
|
|
5
5
|
/* eslint-disable no-use-before-define,@typescript-eslint/ban-types */
|
|
6
6
|
|
|
@@ -23,7 +23,7 @@ export interface TabsPrivateRef {
|
|
|
23
23
|
export interface VxeTabsPrivateRef extends TabsPrivateRef { }
|
|
24
24
|
|
|
25
25
|
export namespace VxeTabsPropTypes {
|
|
26
|
-
export type ModelValue = undefined | null |
|
|
26
|
+
export type ModelValue = undefined | null | VxeTabPanePropTypes.Name
|
|
27
27
|
export type Options = VxeTabPaneProps[]
|
|
28
28
|
export type DestroyOnClose = boolean
|
|
29
29
|
export type Type = null | '' | 'default' | 'card' | 'border-card'
|
|
@@ -1,22 +1,43 @@
|
|
|
1
1
|
import { VxeComponentSize } from '../tool'
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { VxeSelectProps } from '../components/select'
|
|
2
|
+
|
|
3
|
+
import { VxeAnchorProps } from '../components/anchor'
|
|
4
|
+
import { VxeAnchorLinkProps } from '../components/anchor-link'
|
|
5
|
+
import { VxeBreadcrumbProps } from '../components/breadcrumb'
|
|
6
|
+
import { VxeBreadcrumbItemProps } from '../components/breadcrumb-item'
|
|
8
7
|
import { VxeButtonProps } from '../components/button'
|
|
9
8
|
import { VxeButtonGroupProps } from '../components/button-group'
|
|
9
|
+
import { VxeCheckboxProps } from '../components/checkbox'
|
|
10
|
+
import { VxeCheckboxGroupProps } from '../components/checkbox-group'
|
|
11
|
+
import { VxeColProps } from '../components/col'
|
|
12
|
+
import { VxeFormProps } from '../components/form'
|
|
13
|
+
import { VxeFormDesignProps } from '../components/form-design'
|
|
14
|
+
import { VxeFormGatherProps } from '../components/form-gather'
|
|
15
|
+
import { VxeFormItemProps } from '../components/form-item'
|
|
16
|
+
import { VxeIconProps } from '../components/icon'
|
|
17
|
+
import { VxeInputProps } from '../components/input'
|
|
18
|
+
import { VxeLayoutAsideProps } from '../components/layout-aside'
|
|
19
|
+
import { VxeLayoutBodyProps } from '../components/layout-body'
|
|
20
|
+
import { VxeLayoutContainerProps } from '../components/layout-container'
|
|
21
|
+
import { VxeLayoutFooterProps } from '../components/layout-footer'
|
|
22
|
+
import { VxeLayoutHeaderProps } from '../components/layout-header'
|
|
23
|
+
import { VxeListDesignProps } from '../components/list-design'
|
|
24
|
+
import { VxeListProps } from '../components/list'
|
|
25
|
+
import { VxeLoadingProps } from '../components/loading'
|
|
26
|
+
import { VxeModalProps } from '../components/modal'
|
|
27
|
+
import { VxeOptgroupProps } from '../components/optgroup'
|
|
28
|
+
import { VxeOptionProps } from '../components/option'
|
|
29
|
+
import { VxePagerProps } from '../components/pager'
|
|
30
|
+
import { VxePulldownProps } from '../components/pulldown'
|
|
10
31
|
import { VxeRadioProps } from '../components/radio'
|
|
11
32
|
import { VxeRadioButtonProps } from '../components/radio-button'
|
|
12
33
|
import { VxeRadioGroupProps } from '../components/radio-group'
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
34
|
+
import { VxeRowProps } from '../components/row'
|
|
35
|
+
import { VxeSelectProps } from '../components/select'
|
|
15
36
|
import { VxeSwitchProps } from '../components/switch'
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
37
|
+
import { VxeTabPaneProps } from '../components/tab-pane'
|
|
38
|
+
import { VxeTabsProps } from '../components/tabs'
|
|
39
|
+
import { VxeTextareaProps } from '../components/textarea'
|
|
40
|
+
import { VxeTooltipProps } from '../components/tooltip'
|
|
20
41
|
|
|
21
42
|
/**
|
|
22
43
|
* 全局参数对象
|
|
@@ -28,25 +49,46 @@ export interface VxeGlobalConfig {
|
|
|
28
49
|
theme?: null | '' | 'default' | 'dark'
|
|
29
50
|
emptyCell?: string
|
|
30
51
|
loadingText?: string
|
|
52
|
+
resizeInterval?: number
|
|
31
53
|
|
|
32
54
|
i18n?(key: string, args?: any): string
|
|
33
55
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
textarea?: VxeTextareaProps
|
|
39
|
-
select?: VxeSelectProps
|
|
56
|
+
anchor?: VxeAnchorProps
|
|
57
|
+
anchorLink?: VxeAnchorLinkProps
|
|
58
|
+
breadcrumb?: VxeBreadcrumbProps
|
|
59
|
+
breadcrumbItem?: VxeBreadcrumbItemProps
|
|
40
60
|
button?: VxeButtonProps
|
|
41
61
|
buttonGroup?: VxeButtonGroupProps
|
|
42
|
-
radio?: VxeRadioProps
|
|
43
|
-
radioButton?: VxeRadioButtonProps
|
|
44
|
-
radioGroup?: VxeRadioGroupProps
|
|
45
62
|
checkbox?: VxeCheckboxProps
|
|
46
63
|
checkboxGroup?: VxeCheckboxGroupProps
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
list?: VxeListProps
|
|
50
|
-
breadcrumb?: VxeBreadcrumbProps,
|
|
64
|
+
col?: VxeColProps
|
|
65
|
+
form?: VxeFormProps
|
|
51
66
|
formDesign?: VxeFormDesignProps
|
|
67
|
+
formGather?: VxeFormGatherProps
|
|
68
|
+
formItem?: VxeFormItemProps
|
|
69
|
+
icon?: VxeIconProps
|
|
70
|
+
input?: VxeInputProps
|
|
71
|
+
layoutAside?: VxeLayoutAsideProps
|
|
72
|
+
layoutBody?: VxeLayoutBodyProps
|
|
73
|
+
layoutContainer?: VxeLayoutContainerProps
|
|
74
|
+
layoutFooter?: VxeLayoutFooterProps
|
|
75
|
+
layoutHeader?: VxeLayoutHeaderProps
|
|
76
|
+
listDesign?: VxeListDesignProps
|
|
77
|
+
list?: VxeListProps
|
|
78
|
+
loading?: VxeLoadingProps
|
|
79
|
+
modal?: VxeModalProps
|
|
80
|
+
optgroup?: VxeOptgroupProps
|
|
81
|
+
option?: VxeOptionProps
|
|
82
|
+
pager?: VxePagerProps
|
|
83
|
+
pulldown?: VxePulldownProps
|
|
84
|
+
radio?: VxeRadioProps
|
|
85
|
+
radioButton?: VxeRadioButtonProps
|
|
86
|
+
radioGroup?: VxeRadioGroupProps
|
|
87
|
+
row?: VxeRowProps
|
|
88
|
+
select?: VxeSelectProps
|
|
89
|
+
'switch'?: VxeSwitchProps
|
|
90
|
+
tabPane?: VxeTabPaneProps
|
|
91
|
+
tabs?: VxeTabsProps
|
|
92
|
+
textarea?: VxeTextareaProps
|
|
93
|
+
tooltip?: VxeTooltipProps
|
|
52
94
|
}
|