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.
Files changed (43) hide show
  1. package/es/icon/style.css +1 -1
  2. package/es/style.css +1 -1
  3. package/es/style.min.css +1 -1
  4. package/es/text/src/text.js +56 -36
  5. package/es/text/style.css +77 -4
  6. package/es/text/style.min.css +1 -1
  7. package/es/ui/index.js +6 -2
  8. package/es/ui/src/log.js +1 -1
  9. package/es/vxe-text/style.css +77 -4
  10. package/es/vxe-text/style.min.css +1 -1
  11. package/lib/icon/style/style.css +1 -1
  12. package/lib/icon/style/style.min.css +1 -1
  13. package/lib/index.umd.js +67 -41
  14. package/lib/index.umd.min.js +1 -1
  15. package/lib/style.css +1 -1
  16. package/lib/style.min.css +1 -1
  17. package/lib/text/src/text.js +60 -38
  18. package/lib/text/src/text.min.js +1 -1
  19. package/lib/text/style/style.css +77 -4
  20. package/lib/text/style/style.min.css +1 -1
  21. package/lib/ui/index.js +6 -2
  22. package/lib/ui/index.min.js +1 -1
  23. package/lib/ui/src/log.js +1 -1
  24. package/lib/ui/src/log.min.js +1 -1
  25. package/lib/vxe-text/style/style.css +77 -4
  26. package/lib/vxe-text/style/style.min.css +1 -1
  27. package/package.json +1 -1
  28. package/packages/text/src/text.ts +59 -36
  29. package/packages/ui/index.ts +5 -1
  30. package/styles/components/text.scss +21 -6
  31. package/types/components/text.d.ts +12 -5
  32. /package/es/icon/{iconfont.1757125817990.ttf → iconfont.1757160944209.ttf} +0 -0
  33. /package/es/icon/{iconfont.1757125817990.woff → iconfont.1757160944209.woff} +0 -0
  34. /package/es/icon/{iconfont.1757125817990.woff2 → iconfont.1757160944209.woff2} +0 -0
  35. /package/es/{iconfont.1757125817990.ttf → iconfont.1757160944209.ttf} +0 -0
  36. /package/es/{iconfont.1757125817990.woff → iconfont.1757160944209.woff} +0 -0
  37. /package/es/{iconfont.1757125817990.woff2 → iconfont.1757160944209.woff2} +0 -0
  38. /package/lib/icon/style/{iconfont.1757125817990.ttf → iconfont.1757160944209.ttf} +0 -0
  39. /package/lib/icon/style/{iconfont.1757125817990.woff → iconfont.1757160944209.woff} +0 -0
  40. /package/lib/icon/style/{iconfont.1757125817990.woff2 → iconfont.1757160944209.woff2} +0 -0
  41. /package/lib/{iconfont.1757125817990.ttf → iconfont.1757160944209.ttf} +0 -0
  42. /package/lib/{iconfont.1757125817990.woff → iconfont.1757160944209.woff} +0 -0
  43. /package/lib/{iconfont.1757125817990.woff2 → iconfont.1757160944209.woff2} +0 -0
@@ -348,7 +348,11 @@ setConfig({
348
348
  textEllipsis: {
349
349
  underline: true
350
350
  },
351
- text: {},
351
+ text: {
352
+ copyConfig: {
353
+ showMessage: true
354
+ }
355
+ },
352
356
  textarea: {
353
357
  resize: 'none'
354
358
  },
@@ -61,21 +61,36 @@ $btnThemeList: (
61
61
  color: map.get($item, textColor);
62
62
  }
63
63
  }
64
- &.is--copy {
65
- & > .vxe-text--copy-icon {
66
- cursor: pointer;
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: var(--vxe-ui-font-darken-color);
82
+ color: map.get($item, btnDarkenColor);
69
83
  }
70
84
  &:hover {
71
- color: var(--vxe-ui-font-primary-lighten-color);
85
+ color: map.get($item, btnLightenColor);
72
86
  }
73
87
  &:active {
74
- color: var(--vxe-ui-font-primary-darken-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
- copyLayout?: VxeTextPropTypes.CopyLayout
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 {