naive-ui 2.23.0 → 2.23.1
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/_utils/composable/use-houdini.js +10 -7
- package/es/auto-complete/src/AutoComplete.d.ts +2 -2
- package/es/auto-complete/src/AutoComplete.js +2 -2
- package/es/auto-complete/src/styles/index.cssr.js +4 -4
- package/es/avatar/src/Avatar.d.ts +5 -5
- package/es/avatar/src/Avatar.js +5 -5
- package/es/avatar/src/styles/index.cssr.js +13 -13
- package/es/back-top/src/BackTop.d.ts +13 -13
- package/es/back-top/src/BackTop.js +13 -13
- package/es/back-top/src/styles/index.cssr.js +29 -29
- package/es/data-table/src/TableParts/Cell.js +2 -3
- package/es/data-table/src/TableParts/Header.js +1 -1
- package/es/date-picker/src/panel/date.d.ts +4 -9
- package/es/date-picker/src/panel/daterange.d.ts +4 -9
- package/es/date-picker/src/panel/datetime.d.ts +4 -9
- package/es/date-picker/src/panel/datetimerange.d.ts +4 -9
- package/es/date-picker/src/panel/month.d.ts +4 -9
- package/es/date-picker/src/panel/use-calendar.d.ts +2 -5
- package/es/date-picker/src/panel/use-calendar.js +6 -5
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +2 -5
- package/es/date-picker/src/panel/use-dual-calendar.js +12 -13
- package/es/date-picker/src/panel/use-panel-common.d.ts +2 -5
- package/es/date-picker/src/panel/use-panel-common.js +2 -6
- package/es/dialog/src/Dialog.d.ts +21 -21
- package/es/dialog/src/Dialog.js +21 -21
- package/es/dialog/src/styles/index.cssr.js +45 -45
- package/es/dynamic-tags/src/DynamicTags.d.ts +1 -1
- package/es/dynamic-tags/src/DynamicTags.js +1 -1
- package/es/dynamic-tags/src/styles/index.cssr.js +1 -1
- package/es/form/src/Form.d.ts +27 -27
- package/es/form/src/FormItem.d.ts +27 -27
- package/es/form/src/FormItemCol.d.ts +27 -27
- package/es/form/src/FormItemGridItem.d.ts +27 -27
- package/es/form/src/FormItemRow.d.ts +27 -27
- package/es/form/styles/_common.d.ts +0 -3
- package/es/form/styles/_common.js +0 -3
- package/es/form/styles/light.d.ts +3 -3
- package/es/form/styles/light.js +2 -2
- package/es/log/src/Log.d.ts +6 -6
- package/es/log/src/Log.js +6 -6
- package/es/log/src/styles/index.cssr.js +16 -18
- package/es/steps/src/Step.d.ts +12 -12
- package/es/steps/src/Step.js +12 -12
- package/es/steps/src/styles/index.cssr.js +46 -46
- package/es/switch/src/Switch.d.ts +19 -19
- package/es/switch/src/Switch.js +19 -19
- package/es/switch/src/styles/index.cssr.js +57 -57
- package/es/tag/src/Tag.d.ts +26 -26
- package/es/tag/src/Tag.js +26 -26
- package/es/tag/src/styles/index.cssr.js +54 -54
- package/es/tag/src/styles/rtl.cssr.js +1 -1
- package/es/time-picker/src/TimePicker.d.ts +17 -17
- package/es/time-picker/src/TimePicker.js +17 -17
- package/es/time-picker/src/styles/index.cssr.js +47 -47
- package/es/timeline/src/TimelineItem.d.ts +12 -12
- package/es/timeline/src/TimelineItem.js +12 -12
- package/es/timeline/src/styles/index.cssr.js +44 -44
- package/es/transfer/src/styles/index.cssr.js +9 -4
- package/es/tree/src/Tree.d.ts +11 -11
- package/es/tree/src/Tree.js +11 -11
- package/es/tree/src/dnd.js +2 -2
- package/es/tree/src/styles/index.cssr.js +33 -33
- package/es/tree-select/src/TreeSelect.d.ts +8 -8
- package/es/tree-select/src/TreeSelect.js +8 -8
- package/es/tree-select/src/styles/index.cssr.js +18 -18
- package/es/upload/src/Upload.js +16 -16
- package/es/upload/src/styles/index.cssr.js +36 -36
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_utils/composable/use-houdini.js +10 -7
- package/lib/auto-complete/src/AutoComplete.d.ts +2 -2
- package/lib/auto-complete/src/AutoComplete.js +2 -2
- package/lib/auto-complete/src/styles/index.cssr.js +4 -4
- package/lib/avatar/src/Avatar.d.ts +5 -5
- package/lib/avatar/src/Avatar.js +5 -5
- package/lib/avatar/src/styles/index.cssr.js +13 -13
- package/lib/back-top/src/BackTop.d.ts +13 -13
- package/lib/back-top/src/BackTop.js +13 -13
- package/lib/back-top/src/styles/index.cssr.js +29 -29
- package/lib/data-table/src/TableParts/Cell.js +2 -3
- package/lib/data-table/src/TableParts/Header.js +1 -1
- package/lib/date-picker/src/panel/date.d.ts +4 -9
- package/lib/date-picker/src/panel/daterange.d.ts +4 -9
- package/lib/date-picker/src/panel/datetime.d.ts +4 -9
- package/lib/date-picker/src/panel/datetimerange.d.ts +4 -9
- package/lib/date-picker/src/panel/month.d.ts +4 -9
- package/lib/date-picker/src/panel/use-calendar.d.ts +2 -5
- package/lib/date-picker/src/panel/use-calendar.js +6 -5
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +2 -5
- package/lib/date-picker/src/panel/use-dual-calendar.js +12 -13
- package/lib/date-picker/src/panel/use-panel-common.d.ts +2 -5
- package/lib/date-picker/src/panel/use-panel-common.js +2 -6
- package/lib/dialog/src/Dialog.d.ts +21 -21
- package/lib/dialog/src/Dialog.js +21 -21
- package/lib/dialog/src/styles/index.cssr.js +45 -45
- package/lib/dynamic-tags/src/DynamicTags.d.ts +1 -1
- package/lib/dynamic-tags/src/DynamicTags.js +1 -1
- package/lib/dynamic-tags/src/styles/index.cssr.js +1 -1
- package/lib/form/src/Form.d.ts +27 -27
- package/lib/form/src/FormItem.d.ts +27 -27
- package/lib/form/src/FormItemCol.d.ts +27 -27
- package/lib/form/src/FormItemGridItem.d.ts +27 -27
- package/lib/form/src/FormItemRow.d.ts +27 -27
- package/lib/form/styles/_common.d.ts +0 -3
- package/lib/form/styles/_common.js +0 -3
- package/lib/form/styles/light.d.ts +3 -3
- package/lib/form/styles/light.js +2 -2
- package/lib/log/src/Log.d.ts +6 -6
- package/lib/log/src/Log.js +6 -6
- package/lib/log/src/styles/index.cssr.js +16 -18
- package/lib/steps/src/Step.d.ts +12 -12
- package/lib/steps/src/Step.js +12 -12
- package/lib/steps/src/styles/index.cssr.js +46 -46
- package/lib/switch/src/Switch.d.ts +19 -19
- package/lib/switch/src/Switch.js +19 -19
- package/lib/switch/src/styles/index.cssr.js +57 -57
- package/lib/tag/src/Tag.d.ts +26 -26
- package/lib/tag/src/Tag.js +26 -26
- package/lib/tag/src/styles/index.cssr.js +54 -54
- package/lib/tag/src/styles/rtl.cssr.js +1 -1
- package/lib/time-picker/src/TimePicker.d.ts +17 -17
- package/lib/time-picker/src/TimePicker.js +17 -17
- package/lib/time-picker/src/styles/index.cssr.js +47 -47
- package/lib/timeline/src/TimelineItem.d.ts +12 -12
- package/lib/timeline/src/TimelineItem.js +12 -12
- package/lib/timeline/src/styles/index.cssr.js +44 -44
- package/lib/transfer/src/styles/index.cssr.js +9 -4
- package/lib/tree/src/Tree.d.ts +11 -11
- package/lib/tree/src/Tree.js +11 -11
- package/lib/tree/src/dnd.js +2 -2
- package/lib/tree/src/styles/index.cssr.js +33 -33
- package/lib/tree-select/src/TreeSelect.d.ts +8 -8
- package/lib/tree-select/src/TreeSelect.js +8 -8
- package/lib/tree-select/src/styles/index.cssr.js +18 -18
- package/lib/upload/src/Upload.js +16 -16
- package/lib/upload/src/styles/index.cssr.js +36 -36
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +26 -26
- package/web-types.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { c, cB, cE, cM } from '../../../_utils/cssr';
|
|
2
2
|
const lineHeight = 1.25; // vars:
|
|
3
|
-
// --bezier
|
|
4
|
-
// --circle-border
|
|
5
|
-
// --content-font-size
|
|
6
|
-
// --content-text-color
|
|
7
|
-
// --line-color
|
|
8
|
-
// --meta-text-color
|
|
9
|
-
// --title-font-size
|
|
10
|
-
// --title-font-weight
|
|
11
|
-
// --title-margin
|
|
12
|
-
// --title-text-color
|
|
13
|
-
// --icon-size
|
|
3
|
+
// --n-bezier
|
|
4
|
+
// --n-circle-border
|
|
5
|
+
// --n-content-font-size
|
|
6
|
+
// --n-content-text-color
|
|
7
|
+
// --n-line-color
|
|
8
|
+
// --n-meta-text-color
|
|
9
|
+
// --n-title-font-size
|
|
10
|
+
// --n-title-font-weight
|
|
11
|
+
// --n-title-margin
|
|
12
|
+
// --n-title-text-color
|
|
13
|
+
// --n-icon-size
|
|
14
14
|
|
|
15
15
|
export default cB('timeline', `
|
|
16
16
|
position: relative;
|
|
@@ -24,27 +24,27 @@ export default cB('timeline', `
|
|
|
24
24
|
flex-shrink: 0;
|
|
25
25
|
padding-right: 40px;
|
|
26
26
|
`, [cB('timeline-item-content', `
|
|
27
|
-
margin-top: calc(var(--icon-size) + 12px);
|
|
27
|
+
margin-top: calc(var(--n-icon-size) + 12px);
|
|
28
28
|
`, [cE('meta', `
|
|
29
29
|
margin-top: 6px;
|
|
30
30
|
margin-bottom: unset;
|
|
31
31
|
`)]), cB('timeline-item-timeline', `
|
|
32
32
|
width: 100%;
|
|
33
|
-
height: calc(var(--icon-size) + 12px);
|
|
33
|
+
height: calc(var(--n-icon-size) + 12px);
|
|
34
34
|
`, [cE('line', `
|
|
35
|
-
left: var(--icon-size);
|
|
36
|
-
top: calc(var(--icon-size) / 2 - 1px);
|
|
35
|
+
left: var(--n-icon-size);
|
|
36
|
+
top: calc(var(--n-icon-size) / 2 - 1px);
|
|
37
37
|
right: 0px;
|
|
38
38
|
width: unset;
|
|
39
39
|
height: 2px;
|
|
40
40
|
`)])])]), cM('right-placement', [cB('timeline-item', [cB('timeline-item-content', `
|
|
41
41
|
text-align: right;
|
|
42
|
-
margin-right: calc(var(--icon-size) + 12px);
|
|
42
|
+
margin-right: calc(var(--n-icon-size) + 12px);
|
|
43
43
|
`), cB('timeline-item-timeline', `
|
|
44
|
-
width: var(--icon-size);
|
|
44
|
+
width: var(--n-icon-size);
|
|
45
45
|
right: 0;
|
|
46
46
|
`)])]), cM('left-placement', [cB('timeline-item', [cB('timeline-item-content', `
|
|
47
|
-
margin-left: calc(var(--icon-size) + 12px);
|
|
47
|
+
margin-left: calc(var(--n-icon-size) + 12px);
|
|
48
48
|
`), cB('timeline-item-timeline', `
|
|
49
49
|
left: 0;
|
|
50
50
|
`)])]), cB('timeline-item', `
|
|
@@ -54,50 +54,50 @@ export default cB('timeline', `
|
|
|
54
54
|
`)]), cB('timeline-item-content', [cE('meta', `
|
|
55
55
|
margin-bottom: 0;
|
|
56
56
|
`)])]), cB('timeline-item-content', [cE('title', `
|
|
57
|
-
margin: var(--title-margin);
|
|
58
|
-
font-size: var(--title-font-size);
|
|
59
|
-
transition: color .3s var(--bezier);
|
|
60
|
-
font-weight: var(--title-font-weight);
|
|
57
|
+
margin: var(--n-title-margin);
|
|
58
|
+
font-size: var(--n-title-font-size);
|
|
59
|
+
transition: color .3s var(--n-bezier);
|
|
60
|
+
font-weight: var(--n-title-font-weight);
|
|
61
61
|
margin-bottom: 6px;
|
|
62
|
-
color: var(--title-text-color);
|
|
62
|
+
color: var(--n-title-text-color);
|
|
63
63
|
`), cE('content', `
|
|
64
|
-
transition: color .3s var(--bezier);
|
|
65
|
-
font-size: var(--content-font-size);
|
|
66
|
-
color: var(--content-text-color);
|
|
64
|
+
transition: color .3s var(--n-bezier);
|
|
65
|
+
font-size: var(--n-content-font-size);
|
|
66
|
+
color: var(--n-content-text-color);
|
|
67
67
|
`), cE('meta', `
|
|
68
|
-
transition: color .3s var(--bezier);
|
|
68
|
+
transition: color .3s var(--n-bezier);
|
|
69
69
|
font-size: 12px;
|
|
70
70
|
margin-top: 6px;
|
|
71
71
|
margin-bottom: 20px;
|
|
72
|
-
color: var(--meta-text-color);
|
|
72
|
+
color: var(--n-meta-text-color);
|
|
73
73
|
`)]), cB('timeline-item-timeline', `
|
|
74
|
-
width: calc(var(--icon-size) + 12px);
|
|
74
|
+
width: calc(var(--n-icon-size) + 12px);
|
|
75
75
|
position: absolute;
|
|
76
|
-
top: calc(var(--title-font-size) * ${lineHeight} / 2 - var(--icon-size) / 2);
|
|
76
|
+
top: calc(var(--n-title-font-size) * ${lineHeight} / 2 - var(--n-icon-size) / 2);
|
|
77
77
|
height: 100%;
|
|
78
78
|
`, [cE('circle', `
|
|
79
|
-
border: var(--circle-border);
|
|
79
|
+
border: var(--n-circle-border);
|
|
80
80
|
transition:
|
|
81
|
-
background-color .3s var(--bezier),
|
|
82
|
-
border-color .3s var(--bezier);
|
|
83
|
-
width: var(--icon-size);
|
|
84
|
-
height: var(--icon-size);
|
|
85
|
-
border-radius: var(--icon-size);
|
|
81
|
+
background-color .3s var(--n-bezier),
|
|
82
|
+
border-color .3s var(--n-bezier);
|
|
83
|
+
width: var(--n-icon-size);
|
|
84
|
+
height: var(--n-icon-size);
|
|
85
|
+
border-radius: var(--n-icon-size);
|
|
86
86
|
box-sizing: border-box;
|
|
87
87
|
`), cE('icon', `
|
|
88
|
-
color: var(--icon-color);
|
|
89
|
-
font-size: var(--icon-size);
|
|
90
|
-
height: var(--icon-size);
|
|
91
|
-
width: var(--icon-size);
|
|
88
|
+
color: var(--n-icon-color);
|
|
89
|
+
font-size: var(--n-icon-size);
|
|
90
|
+
height: var(--n-icon-size);
|
|
91
|
+
width: var(--n-icon-size);
|
|
92
92
|
display: flex;
|
|
93
93
|
align-items: center;
|
|
94
94
|
justify-content: center;
|
|
95
95
|
`), cE('line', `
|
|
96
|
-
transition: background-color .3s var(--bezier);
|
|
96
|
+
transition: background-color .3s var(--n-bezier);
|
|
97
97
|
position: absolute;
|
|
98
|
-
top: var(--icon-size);
|
|
99
|
-
left: calc(var(--icon-size) / 2 - 1px);
|
|
98
|
+
top: var(--n-icon-size);
|
|
99
|
+
left: calc(var(--n-icon-size) / 2 - 1px);
|
|
100
100
|
bottom: 0px;
|
|
101
101
|
width: 2px;
|
|
102
|
-
background-color: var(--line-color);
|
|
102
|
+
background-color: var(--n-line-color);
|
|
103
103
|
`)])])]);
|
|
@@ -47,14 +47,18 @@ export default c([cB('transfer', `
|
|
|
47
47
|
display: flex;
|
|
48
48
|
width: var(--width);
|
|
49
49
|
font-size: var(--font-size);
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
height: 240px;
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-wrap: nowrap;
|
|
53
|
+
`, [cB('transfer-icon', `
|
|
53
54
|
color: var(--icon-color);
|
|
54
55
|
transition: color .3s var(--bezier);
|
|
55
56
|
`), cM('disabled', [cB('transfer-icon', {
|
|
56
57
|
color: 'var(--icon-color-disabled)'
|
|
57
58
|
})]), cB('transfer-list', `
|
|
59
|
+
height: inherit;
|
|
60
|
+
display: flex;
|
|
61
|
+
flex-direction: column;
|
|
58
62
|
background-clip: padding-box;
|
|
59
63
|
width: calc(50% - 36px);
|
|
60
64
|
position: relative;
|
|
@@ -105,7 +109,8 @@ export default c([cB('transfer', `
|
|
|
105
109
|
white-space: nowrap;
|
|
106
110
|
color: var(--header-extra-text-color);
|
|
107
111
|
`)]), cB('transfer-list-body', `
|
|
108
|
-
|
|
112
|
+
flex-basis: 0;
|
|
113
|
+
flex-grow: 1;
|
|
109
114
|
box-sizing: border-box;
|
|
110
115
|
overflow: hidden;
|
|
111
116
|
position: relative;
|
package/es/tree/src/Tree.d.ts
CHANGED
|
@@ -961,17 +961,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
961
961
|
handleAfterEnter: () => void;
|
|
962
962
|
handleResize: () => void;
|
|
963
963
|
cssVars: import("vue").ComputedRef<{
|
|
964
|
-
'--arrow-color': string;
|
|
965
|
-
'--loading-color': string;
|
|
966
|
-
'--bezier': string;
|
|
967
|
-
'--font-size': string;
|
|
968
|
-
'--node-border-radius': string;
|
|
969
|
-
'--node-color-active': string;
|
|
970
|
-
'--node-color-hover': string;
|
|
971
|
-
'--node-color-pressed': string;
|
|
972
|
-
'--node-text-color': string;
|
|
973
|
-
'--node-text-color-disabled': string;
|
|
974
|
-
'--drop-mark-color': string;
|
|
964
|
+
'--n-arrow-color': string;
|
|
965
|
+
'--n-loading-color': string;
|
|
966
|
+
'--n-bezier': string;
|
|
967
|
+
'--n-font-size': string;
|
|
968
|
+
'--n-node-border-radius': string;
|
|
969
|
+
'--n-node-color-active': string;
|
|
970
|
+
'--n-node-color-hover': string;
|
|
971
|
+
'--n-node-color-pressed': string;
|
|
972
|
+
'--n-node-text-color': string;
|
|
973
|
+
'--n-node-text-color-disabled': string;
|
|
974
|
+
'--n-drop-mark-color': string;
|
|
975
975
|
}>;
|
|
976
976
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
977
977
|
readonly internalScrollable?: unknown;
|
package/es/tree/src/Tree.js
CHANGED
|
@@ -981,17 +981,17 @@ export default defineComponent({
|
|
|
981
981
|
handleResize, cssVars: computed(() => {
|
|
982
982
|
const { common: { cubicBezierEaseInOut }, self: { fontSize, nodeBorderRadius, nodeColorHover, nodeColorPressed, nodeColorActive, arrowColor, loadingColor, nodeTextColor, nodeTextColorDisabled, dropMarkColor } } = themeRef.value;
|
|
983
983
|
return {
|
|
984
|
-
'--arrow-color': arrowColor,
|
|
985
|
-
'--loading-color': loadingColor,
|
|
986
|
-
'--bezier': cubicBezierEaseInOut,
|
|
987
|
-
'--font-size': fontSize,
|
|
988
|
-
'--node-border-radius': nodeBorderRadius,
|
|
989
|
-
'--node-color-active': nodeColorActive,
|
|
990
|
-
'--node-color-hover': nodeColorHover,
|
|
991
|
-
'--node-color-pressed': nodeColorPressed,
|
|
992
|
-
'--node-text-color': nodeTextColor,
|
|
993
|
-
'--node-text-color-disabled': nodeTextColorDisabled,
|
|
994
|
-
'--drop-mark-color': dropMarkColor
|
|
984
|
+
'--n-arrow-color': arrowColor,
|
|
985
|
+
'--n-loading-color': loadingColor,
|
|
986
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
987
|
+
'--n-font-size': fontSize,
|
|
988
|
+
'--n-node-border-radius': nodeBorderRadius,
|
|
989
|
+
'--n-node-color-active': nodeColorActive,
|
|
990
|
+
'--n-node-color-hover': nodeColorHover,
|
|
991
|
+
'--n-node-color-pressed': nodeColorPressed,
|
|
992
|
+
'--n-node-text-color': nodeTextColor,
|
|
993
|
+
'--n-node-text-color-disabled': nodeTextColorDisabled,
|
|
994
|
+
'--n-drop-mark-color': dropMarkColor
|
|
995
995
|
};
|
|
996
996
|
}) }, exposedMethods);
|
|
997
997
|
},
|
package/es/tree/src/dnd.js
CHANGED
|
@@ -10,7 +10,7 @@ export function renderDropMark({ position, offsetLevel, indent, el }) {
|
|
|
10
10
|
style.top = 0;
|
|
11
11
|
style.bottom = 0;
|
|
12
12
|
style.borderRadius = 'inherit';
|
|
13
|
-
style.boxShadow = 'inset 0 0 0 2px var(--drop-mark-color)';
|
|
13
|
+
style.boxShadow = 'inset 0 0 0 2px var(--n-drop-mark-color)';
|
|
14
14
|
}
|
|
15
15
|
else {
|
|
16
16
|
const cssPosition = position === 'before' ? 'top' : 'bottom';
|
|
@@ -19,7 +19,7 @@ export function renderDropMark({ position, offsetLevel, indent, el }) {
|
|
|
19
19
|
// Maybe it is possible to use content left
|
|
20
20
|
style.left = `${el.offsetLeft + 6 - offsetLevel * indent}px`;
|
|
21
21
|
style.height = '2px';
|
|
22
|
-
style.backgroundColor = 'var(--drop-mark-color)';
|
|
22
|
+
style.backgroundColor = 'var(--n-drop-mark-color)';
|
|
23
23
|
style.transformOrigin = cssPosition;
|
|
24
24
|
style.borderRadius = '1px';
|
|
25
25
|
style.transform =
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { c, cB, cE, cM, cNotM } from '../../../_utils/cssr';
|
|
2
2
|
import iconSwitchTransition from '../../../_styles/transitions/icon-switch.cssr';
|
|
3
3
|
import fadeInHeightExpandTransition from '../../../_styles/transitions/fade-in-height-expand.cssr'; // vars:
|
|
4
|
-
// --arrow-color
|
|
5
|
-
// --bezier
|
|
6
|
-
// --font-size
|
|
7
|
-
// --node-border-radius
|
|
8
|
-
// --node-color-active
|
|
9
|
-
// --node-color-hover
|
|
10
|
-
// --node-color-pressed
|
|
11
|
-
// --node-text-color
|
|
12
|
-
// --node-text-color-disabled
|
|
4
|
+
// --n-arrow-color
|
|
5
|
+
// --n-bezier
|
|
6
|
+
// --n-font-size
|
|
7
|
+
// --n-node-border-radius
|
|
8
|
+
// --n-node-color-active
|
|
9
|
+
// --n-node-color-hover
|
|
10
|
+
// --n-node-color-pressed
|
|
11
|
+
// --n-node-text-color
|
|
12
|
+
// --n-node-text-color-disabled
|
|
13
13
|
|
|
14
14
|
export default cB('tree', `
|
|
15
|
-
font-size: var(--font-size);
|
|
15
|
+
font-size: var(--n-font-size);
|
|
16
16
|
outline: none;
|
|
17
17
|
`, [c('ul, li', `
|
|
18
18
|
margin: 0;
|
|
@@ -32,33 +32,33 @@ export default cB('tree', `
|
|
|
32
32
|
`), cB('tree-node', `
|
|
33
33
|
position: relative;
|
|
34
34
|
display: flex;
|
|
35
|
-
border-radius: var(--node-border-radius);
|
|
36
|
-
transition: background-color .3s var(--bezier);
|
|
35
|
+
border-radius: var(--n-node-border-radius);
|
|
36
|
+
transition: background-color .3s var(--n-bezier);
|
|
37
37
|
`, [cM('highlight', [cB('tree-node-content', [cE('text', {
|
|
38
|
-
borderBottomColor: 'var(--node-text-color-disabled)'
|
|
38
|
+
borderBottomColor: 'var(--n-node-text-color-disabled)'
|
|
39
39
|
})])]), cM('disabled', [cB('tree-node-content', `
|
|
40
|
-
color: var(--node-text-color-disabled);
|
|
40
|
+
color: var(--n-node-text-color-disabled);
|
|
41
41
|
cursor: not-allowed;
|
|
42
42
|
`)]), cNotM('disabled', [cM('selectable', [cB('tree-node-content', `
|
|
43
43
|
cursor: pointer;
|
|
44
44
|
`)])])]), cM('block-node', [cB('tree-node-content', `
|
|
45
45
|
width: 100%;
|
|
46
46
|
`)]), cNotM('block-line', [cB('tree-node', [cNotM('disabled', [cB('tree-node-content', [c('&:hover', {
|
|
47
|
-
backgroundColor: 'var(--node-color-hover)'
|
|
47
|
+
backgroundColor: 'var(--n-node-color-hover)'
|
|
48
48
|
})]), cM('selectable', [cB('tree-node-content', [c('&:active', {
|
|
49
|
-
backgroundColor: 'var(--node-color-pressed)'
|
|
49
|
+
backgroundColor: 'var(--n-node-color-pressed)'
|
|
50
50
|
})])]), cM('pending', [cB('tree-node-content', `
|
|
51
|
-
background-color: var(--node-color-hover);
|
|
51
|
+
background-color: var(--n-node-color-hover);
|
|
52
52
|
`)]), cM('selected', [cB('tree-node-content', {
|
|
53
|
-
backgroundColor: 'var(--node-color-active)'
|
|
53
|
+
backgroundColor: 'var(--n-node-color-active)'
|
|
54
54
|
})])])])]), cM('block-line', [cB('tree-node', [cNotM('disabled', [c('&:hover', {
|
|
55
|
-
backgroundColor: 'var(--node-color-hover)'
|
|
55
|
+
backgroundColor: 'var(--n-node-color-hover)'
|
|
56
56
|
}), cM('selectable', [c('&:active', {
|
|
57
|
-
backgroundColor: 'var(--node-color-pressed)'
|
|
57
|
+
backgroundColor: 'var(--n-node-color-pressed)'
|
|
58
58
|
})]), cM('pending', `
|
|
59
|
-
background-color: var(--node-color-hover);
|
|
59
|
+
background-color: var(--n-node-color-hover);
|
|
60
60
|
`), cM('selected', {
|
|
61
|
-
backgroundColor: 'var(--node-color-active)'
|
|
61
|
+
backgroundColor: 'var(--n-node-color-active)'
|
|
62
62
|
})]), cM('disabled', `
|
|
63
63
|
cursor: not-allowed;
|
|
64
64
|
`)])]), cB('tree-node-switcher', `
|
|
@@ -69,18 +69,18 @@ export default cB('tree', `
|
|
|
69
69
|
width: 24px;
|
|
70
70
|
align-items: center;
|
|
71
71
|
justify-content: center;
|
|
72
|
-
transition: transform .15s var(--bezier);
|
|
72
|
+
transition: transform .15s var(--n-bezier);
|
|
73
73
|
vertical-align: bottom;
|
|
74
74
|
`, [cE('icon', `
|
|
75
75
|
position: relative;
|
|
76
76
|
height: 14px;
|
|
77
77
|
width: 14px;
|
|
78
78
|
display: flex;
|
|
79
|
-
color: var(--arrow-color);
|
|
80
|
-
transition: color .3s var(--bezier);
|
|
79
|
+
color: var(--n-arrow-color);
|
|
80
|
+
transition: color .3s var(--n-bezier);
|
|
81
81
|
font-size: 14px;
|
|
82
82
|
`, [cB('icon', [iconSwitchTransition()]), cB('base-loading', `
|
|
83
|
-
color: var(--loading-color);
|
|
83
|
+
color: var(--n-loading-color);
|
|
84
84
|
position: absolute;
|
|
85
85
|
left: 0;
|
|
86
86
|
top: 0;
|
|
@@ -108,15 +108,15 @@ export default cB('tree', `
|
|
|
108
108
|
vertical-align: bottom;
|
|
109
109
|
padding: 0 6px;
|
|
110
110
|
cursor: default;
|
|
111
|
-
border-radius: var(--node-border-radius);
|
|
111
|
+
border-radius: var(--n-node-border-radius);
|
|
112
112
|
text-decoration-color: #0000;
|
|
113
113
|
text-decoration-line: underline;
|
|
114
|
-
color: var(--node-text-color);
|
|
114
|
+
color: var(--n-node-text-color);
|
|
115
115
|
transition:
|
|
116
|
-
color .3s var(--bezier),
|
|
117
|
-
text-decoration-color .3s var(--bezier),
|
|
118
|
-
background-color .3s var(--bezier),
|
|
119
|
-
border-color .3s var(--bezier);
|
|
116
|
+
color .3s var(--n-bezier),
|
|
117
|
+
text-decoration-color .3s var(--n-bezier),
|
|
118
|
+
background-color .3s var(--n-bezier),
|
|
119
|
+
border-color .3s var(--n-bezier);
|
|
120
120
|
`, [c('&:last-child', {
|
|
121
121
|
marginBottom: 0
|
|
122
122
|
}), cE('prefix', `
|
|
@@ -124,7 +124,7 @@ export default cB('tree', `
|
|
|
124
124
|
margin-right: 8px;
|
|
125
125
|
`), cE('text', `
|
|
126
126
|
border-bottom: 1px solid #0000;
|
|
127
|
-
transition: border-color .3s var(--bezier);
|
|
127
|
+
transition: border-color .3s var(--n-bezier);
|
|
128
128
|
flex-grow:1;
|
|
129
129
|
`), cE('suffix', `
|
|
130
130
|
display: inline-flex;
|
|
@@ -1075,14 +1075,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1075
1075
|
handleTabOut: () => void;
|
|
1076
1076
|
handleMenuMousedown: (e: MouseEvent) => void;
|
|
1077
1077
|
cssVars: import("vue").ComputedRef<{
|
|
1078
|
-
'--menu-box-shadow': string;
|
|
1079
|
-
'--menu-border-radius': string;
|
|
1080
|
-
'--menu-color': string;
|
|
1081
|
-
'--menu-height': string;
|
|
1082
|
-
'--bezier': string;
|
|
1083
|
-
'--action-padding': string;
|
|
1084
|
-
'--action-text-color': string;
|
|
1085
|
-
'--action-divider-color': string;
|
|
1078
|
+
'--n-menu-box-shadow': string;
|
|
1079
|
+
'--n-menu-border-radius': string;
|
|
1080
|
+
'--n-menu-color': string;
|
|
1081
|
+
'--n-menu-height': string;
|
|
1082
|
+
'--n-bezier': string;
|
|
1083
|
+
'--n-action-padding': string;
|
|
1084
|
+
'--n-action-text-color': string;
|
|
1085
|
+
'--n-action-divider-color': string;
|
|
1086
1086
|
}>;
|
|
1087
1087
|
mergedTheme: import("vue").ComputedRef<{
|
|
1088
1088
|
common: {
|
|
@@ -518,14 +518,14 @@ export default defineComponent({
|
|
|
518
518
|
cssVars: computed(() => {
|
|
519
519
|
const { common: { cubicBezierEaseInOut }, self: { menuBoxShadow, menuBorderRadius, menuColor, menuHeight, actionPadding, actionDividerColor, actionTextColor } } = themeRef.value;
|
|
520
520
|
return {
|
|
521
|
-
'--menu-box-shadow': menuBoxShadow,
|
|
522
|
-
'--menu-border-radius': menuBorderRadius,
|
|
523
|
-
'--menu-color': menuColor,
|
|
524
|
-
'--menu-height': menuHeight,
|
|
525
|
-
'--bezier': cubicBezierEaseInOut,
|
|
526
|
-
'--action-padding': actionPadding,
|
|
527
|
-
'--action-text-color': actionTextColor,
|
|
528
|
-
'--action-divider-color': actionDividerColor
|
|
521
|
+
'--n-menu-box-shadow': menuBoxShadow,
|
|
522
|
+
'--n-menu-border-radius': menuBorderRadius,
|
|
523
|
+
'--n-menu-color': menuColor,
|
|
524
|
+
'--n-menu-height': menuHeight,
|
|
525
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
526
|
+
'--n-action-padding': actionPadding,
|
|
527
|
+
'--n-action-text-color': actionTextColor,
|
|
528
|
+
'--n-action-divider-color': actionDividerColor
|
|
529
529
|
};
|
|
530
530
|
}),
|
|
531
531
|
mergedTheme: themeRef
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import fadeInScaleUpTransition from '../../../_styles/transitions/fade-in-scale-up.cssr';
|
|
2
2
|
import { c, cB, cE } from '../../../_utils/cssr'; // vars:
|
|
3
|
-
// --bezier
|
|
4
|
-
// --menu-height
|
|
5
|
-
// --menu-border-radius
|
|
6
|
-
// --menu-box-shadow
|
|
7
|
-
// --menu-color
|
|
8
|
-
// --action-padding
|
|
9
|
-
// --action-text-color
|
|
10
|
-
// --action-divider-color
|
|
3
|
+
// --n-bezier
|
|
4
|
+
// --n-menu-height
|
|
5
|
+
// --n-menu-border-radius
|
|
6
|
+
// --n-menu-box-shadow
|
|
7
|
+
// --n-menu-color
|
|
8
|
+
// --n-action-padding
|
|
9
|
+
// --n-action-text-color
|
|
10
|
+
// --n-action-divider-color
|
|
11
11
|
|
|
12
12
|
export default c([cB('tree-select', `
|
|
13
13
|
z-index: auto;
|
|
@@ -18,21 +18,21 @@ export default c([cB('tree-select', `
|
|
|
18
18
|
position: relative;
|
|
19
19
|
overflow: hidden;
|
|
20
20
|
margin: 4px 0;
|
|
21
|
-
transition: box-shadow .3s var(--bezier), background-color .3s var(--bezier);
|
|
22
|
-
border-radius: var(--menu-border-radius);
|
|
23
|
-
box-shadow: var(--menu-box-shadow);
|
|
24
|
-
background-color: var(--menu-color);
|
|
21
|
+
transition: box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier);
|
|
22
|
+
border-radius: var(--n-menu-border-radius);
|
|
23
|
+
box-shadow: var(--n-menu-box-shadow);
|
|
24
|
+
background-color: var(--n-menu-color);
|
|
25
25
|
outline: none;
|
|
26
|
-
`, [cB('tree', 'max-height: var(--menu-height);'), cE('empty', `
|
|
26
|
+
`, [cB('tree', 'max-height: var(--n-menu-height);'), cE('empty', `
|
|
27
27
|
display: flex;
|
|
28
28
|
padding: 12px 32px;
|
|
29
29
|
flex: 1;
|
|
30
30
|
justify-content: center;
|
|
31
31
|
`), cE('action', `
|
|
32
|
-
padding: var(--action-padding);
|
|
32
|
+
padding: var(--n-action-padding);
|
|
33
33
|
transition:
|
|
34
|
-
color .3s var(--bezier);
|
|
35
|
-
border-color .3s var(--bezier);
|
|
36
|
-
border-top: 1px solid var(--action-divider-color);
|
|
37
|
-
color: var(--action-text-color);
|
|
34
|
+
color .3s var(--n-bezier);
|
|
35
|
+
border-color .3s var(--n-bezier);
|
|
36
|
+
border-top: 1px solid var(--n-action-divider-color);
|
|
37
|
+
color: var(--n-action-text-color);
|
|
38
38
|
`), fadeInScaleUpTransition()])]);
|
package/es/upload/src/Upload.js
CHANGED
|
@@ -382,22 +382,22 @@ export default defineComponent({
|
|
|
382
382
|
const cssVarsRef = computed(() => {
|
|
383
383
|
const { common: { cubicBezierEaseInOut }, self: { draggerColor, draggerBorder, draggerBorderHover, itemColorHover, itemColorHoverError, itemTextColorError, itemTextColorSuccess, itemTextColor, itemIconColor, itemDisabledOpacity, lineHeight, borderRadius, fontSize, itemBorderImageCardError, itemBorderImageCard } } = themeRef.value;
|
|
384
384
|
return {
|
|
385
|
-
'--bezier': cubicBezierEaseInOut,
|
|
386
|
-
'--border-radius': borderRadius,
|
|
387
|
-
'--dragger-border': draggerBorder,
|
|
388
|
-
'--dragger-border-hover': draggerBorderHover,
|
|
389
|
-
'--dragger-color': draggerColor,
|
|
390
|
-
'--font-size': fontSize,
|
|
391
|
-
'--item-color-hover': itemColorHover,
|
|
392
|
-
'--item-color-hover-error': itemColorHoverError,
|
|
393
|
-
'--item-disabled-opacity': itemDisabledOpacity,
|
|
394
|
-
'--item-icon-color': itemIconColor,
|
|
395
|
-
'--item-text-color': itemTextColor,
|
|
396
|
-
'--item-text-color-error': itemTextColorError,
|
|
397
|
-
'--item-text-color-success': itemTextColorSuccess,
|
|
398
|
-
'--line-height': lineHeight,
|
|
399
|
-
'--item-border-image-card-error': itemBorderImageCardError,
|
|
400
|
-
'--item-border-image-card': itemBorderImageCard
|
|
385
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
386
|
+
'--n-border-radius': borderRadius,
|
|
387
|
+
'--n-dragger-border': draggerBorder,
|
|
388
|
+
'--n-dragger-border-hover': draggerBorderHover,
|
|
389
|
+
'--n-dragger-color': draggerColor,
|
|
390
|
+
'--n-font-size': fontSize,
|
|
391
|
+
'--n-item-color-hover': itemColorHover,
|
|
392
|
+
'--n-item-color-hover-error': itemColorHoverError,
|
|
393
|
+
'--n-item-disabled-opacity': itemDisabledOpacity,
|
|
394
|
+
'--n-item-icon-color': itemIconColor,
|
|
395
|
+
'--n-item-text-color': itemTextColor,
|
|
396
|
+
'--n-item-text-color-error': itemTextColorError,
|
|
397
|
+
'--n-item-text-color-success': itemTextColorSuccess,
|
|
398
|
+
'--n-line-height': lineHeight,
|
|
399
|
+
'--n-item-border-image-card-error': itemBorderImageCardError,
|
|
400
|
+
'--n-item-border-image-card': itemBorderImageCard
|
|
401
401
|
};
|
|
402
402
|
});
|
|
403
403
|
provide(uploadInjectionKey, {
|