vxe-pc-ui 4.9.17 → 4.9.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/icon/style.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/text/src/text.js +56 -36
- package/es/text/style.css +77 -4
- package/es/text/style.min.css +1 -1
- package/es/ui/index.js +6 -2
- package/es/ui/src/log.js +1 -1
- package/es/vxe-text/style.css +77 -4
- package/es/vxe-text/style.min.css +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +67 -41
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/text/src/text.js +60 -38
- package/lib/text/src/text.min.js +1 -1
- package/lib/text/style/style.css +77 -4
- package/lib/text/style/style.min.css +1 -1
- package/lib/ui/index.js +6 -2
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/vxe-text/style/style.css +77 -4
- package/lib/vxe-text/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/text/src/text.ts +59 -36
- package/packages/ui/index.ts +5 -1
- package/styles/components/text.scss +21 -6
- package/types/components/text.d.ts +12 -5
- /package/es/icon/{iconfont.1757125817990.ttf → iconfont.1757160944209.ttf} +0 -0
- /package/es/icon/{iconfont.1757125817990.woff → iconfont.1757160944209.woff} +0 -0
- /package/es/icon/{iconfont.1757125817990.woff2 → iconfont.1757160944209.woff2} +0 -0
- /package/es/{iconfont.1757125817990.ttf → iconfont.1757160944209.ttf} +0 -0
- /package/es/{iconfont.1757125817990.woff → iconfont.1757160944209.woff} +0 -0
- /package/es/{iconfont.1757125817990.woff2 → iconfont.1757160944209.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1757125817990.ttf → iconfont.1757160944209.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1757125817990.woff → iconfont.1757160944209.woff} +0 -0
- /package/lib/icon/style/{iconfont.1757125817990.woff2 → iconfont.1757160944209.woff2} +0 -0
- /package/lib/{iconfont.1757125817990.ttf → iconfont.1757160944209.ttf} +0 -0
- /package/lib/{iconfont.1757125817990.woff → iconfont.1757160944209.woff} +0 -0
- /package/lib/{iconfont.1757125817990.woff2 → iconfont.1757160944209.woff2} +0 -0
package/packages/ui/index.ts
CHANGED
|
@@ -61,21 +61,36 @@ $btnThemeList: (
|
|
|
61
61
|
color: map.get($item, textColor);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.vxe-text--copy-icon {
|
|
67
|
+
cursor: pointer;
|
|
68
|
+
&:focus {
|
|
69
|
+
color: var(--vxe-ui-font-darken-color);
|
|
70
|
+
}
|
|
71
|
+
&:hover {
|
|
72
|
+
color: var(--vxe-ui-font-primary-lighten-color);
|
|
73
|
+
}
|
|
74
|
+
&:active {
|
|
75
|
+
color: var(--vxe-ui-font-primary-darken-color);
|
|
76
|
+
}
|
|
77
|
+
@for $index from 0 to list.length($btnThemeList) {
|
|
78
|
+
$item: list.nth($btnThemeList, $index + 1);
|
|
79
|
+
&.theme--#{map.get($item, name)} {
|
|
80
|
+
color: map.get($item, textColor);
|
|
67
81
|
&:focus {
|
|
68
|
-
color:
|
|
82
|
+
color: map.get($item, btnDarkenColor);
|
|
69
83
|
}
|
|
70
84
|
&:hover {
|
|
71
|
-
color:
|
|
85
|
+
color: map.get($item, btnLightenColor);
|
|
72
86
|
}
|
|
73
87
|
&:active {
|
|
74
|
-
color:
|
|
88
|
+
color: map.get($item, btnDarkenColor);
|
|
75
89
|
}
|
|
76
90
|
}
|
|
77
91
|
}
|
|
78
92
|
}
|
|
93
|
+
|
|
79
94
|
.vxe-text--loading,
|
|
80
95
|
.vxe-text--prefix-icon,
|
|
81
96
|
.vxe-text--suffix-icon,
|
|
@@ -30,10 +30,15 @@ export namespace VxeTextPropTypes {
|
|
|
30
30
|
export type SuffixIcon = string
|
|
31
31
|
export type Loading = boolean
|
|
32
32
|
export type Content = string | number
|
|
33
|
-
export type CopyIcon = string
|
|
34
33
|
export type ClickToCopy = boolean
|
|
35
|
-
export type CopyLayout = 'left' | 'right' | '' | null
|
|
36
34
|
export type Size = VxeComponentSizeType
|
|
35
|
+
export interface CopyConfig {
|
|
36
|
+
layout?: 'left' | 'right' | '' | null
|
|
37
|
+
showMessage?: boolean
|
|
38
|
+
trigger?: 'click' | 'dblclick'
|
|
39
|
+
icon?: string
|
|
40
|
+
status?: VxeComponentStatusType
|
|
41
|
+
}
|
|
37
42
|
}
|
|
38
43
|
|
|
39
44
|
export type VxeTextProps = {
|
|
@@ -53,9 +58,8 @@ export type VxeTextProps = {
|
|
|
53
58
|
suffixIcon?: VxeTextPropTypes.SuffixIcon
|
|
54
59
|
loading?: VxeTextPropTypes.Loading
|
|
55
60
|
content?: VxeTextPropTypes.Content
|
|
56
|
-
copyIcon?: VxeTextPropTypes.CopyIcon
|
|
57
61
|
clickToCopy?: VxeTextPropTypes.ClickToCopy
|
|
58
|
-
|
|
62
|
+
copyConfig?: VxeTextPropTypes.CopyConfig
|
|
59
63
|
size?: VxeTextPropTypes.Size
|
|
60
64
|
}
|
|
61
65
|
|
|
@@ -76,8 +80,11 @@ export interface VxeTextPrivateMethods extends TextPrivateMethods { }
|
|
|
76
80
|
|
|
77
81
|
export type VxeTextEmits = [
|
|
78
82
|
'click',
|
|
83
|
+
'dblclick',
|
|
79
84
|
'prefix-click',
|
|
80
|
-
'suffix-click'
|
|
85
|
+
'suffix-click',
|
|
86
|
+
'copy-success',
|
|
87
|
+
'copy-error'
|
|
81
88
|
]
|
|
82
89
|
|
|
83
90
|
export namespace VxeTextDefines {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|