@flyanra/vue-core 1.3.4 → 1.3.6

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.
@@ -1,2 +1,2 @@
1
- export { default as FlyTooltip } from './tooltip';
1
+ export { default as FlyTooltip, FlyInfoTooltip } from './tooltip';
2
2
  export type * from './tooltip';
@@ -0,0 +1,4 @@
1
+ export type T_FlyInfoTooltipProps = {
2
+ content?: string;
3
+ html?: boolean;
4
+ };
@@ -1,31 +1,11 @@
1
+ import type { T_FlyInfoTooltipProps } from './FlyTooltip.types';
1
2
  declare var __VLS_7: {}, __VLS_15: {};
2
3
  type __VLS_Slots = {} & {
3
4
  trigger?: (props: typeof __VLS_7) => any;
4
5
  } & {
5
6
  default?: (props: typeof __VLS_15) => any;
6
7
  };
7
- declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
8
- content: {
9
- type: StringConstructor;
10
- default: string;
11
- };
12
- html: {
13
- type: BooleanConstructor;
14
- default: boolean;
15
- };
16
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
17
- content: {
18
- type: StringConstructor;
19
- default: string;
20
- };
21
- html: {
22
- type: BooleanConstructor;
23
- default: boolean;
24
- };
25
- }>> & Readonly<{}>, {
26
- html: boolean;
27
- content: string;
28
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
8
+ declare const __VLS_base: import("vue").DefineComponent<T_FlyInfoTooltipProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<T_FlyInfoTooltipProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
9
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
30
10
  declare const _default: typeof __VLS_export;
31
11
  export default _default;
@@ -2,3 +2,7 @@ import type { UseTooltipProps } from 'element-plus';
2
2
  export type T_FlyTooltipProps = {
3
3
  tooltip?: UseTooltipProps;
4
4
  };
5
+ export type T_FlyInfoTooltipProps = {
6
+ content?: string;
7
+ html?: boolean;
8
+ };
@@ -1,4 +1,5 @@
1
+ import FlyInfoTooltip from './FlyInfoTooltip.vue';
1
2
  import FlyTooltip from './FlyTooltip.vue';
2
3
  export default FlyTooltip;
3
- export { FlyTooltip };
4
- export type { T_FlyTooltipProps } from './FlyTooltip.types';
4
+ export { FlyTooltip, FlyInfoTooltip };
5
+ export type { T_FlyTooltipProps, T_FlyInfoTooltipProps } from './FlyTooltip.types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flyanra/vue-core",
3
- "version": "1.3.4",
3
+ "version": "1.3.6",
4
4
  "private": false,
5
5
  "description": "Source-distributed Vue component library for Vite and Nuxt consumers.",
6
6
  "sideEffects": false,
@@ -1,2 +1,2 @@
1
- export { default as FlyTooltip } from './tooltip'
1
+ export { default as FlyTooltip, FlyInfoTooltip } from './tooltip'
2
2
  export type * from './tooltip'
@@ -0,0 +1,4 @@
1
+ export type T_FlyInfoTooltipProps = {
2
+ content?: string
3
+ html?: boolean
4
+ }
@@ -25,23 +25,15 @@ import DOMPurify from 'dompurify'
25
25
 
26
26
  import FlyIconV2 from '../../general/fly-icon-v2/FlyIconV2.vue'
27
27
 
28
+ import type { T_FlyInfoTooltipProps } from './FlyTooltip.types'
28
29
  import FlyTooltip from './FlyTooltip.vue'
29
30
 
30
- defineProps({
31
- content: {
32
- type: String,
33
- default: ''
34
- },
35
- html: {
36
- type: Boolean,
37
- default: false
38
- }
39
- })
31
+ defineProps<T_FlyInfoTooltipProps>()
40
32
  </script>
41
33
 
42
34
  <style lang="scss" scoped>
43
35
  .fly-info-tooltip {
44
- :deep(.app-icon) {
36
+ :deep(.fly-icon) {
45
37
  svg {
46
38
  display: inline;
47
39
  }
@@ -3,3 +3,8 @@ import type { UseTooltipProps } from 'element-plus'
3
3
  export type T_FlyTooltipProps = {
4
4
  tooltip?: UseTooltipProps
5
5
  }
6
+
7
+ export type T_FlyInfoTooltipProps = {
8
+ content?: string
9
+ html?: boolean
10
+ }
@@ -1,6 +1,7 @@
1
+ import FlyInfoTooltip from './FlyInfoTooltip.vue'
1
2
  import FlyTooltip from './FlyTooltip.vue'
2
3
 
3
4
  export default FlyTooltip
4
- export { FlyTooltip }
5
+ export { FlyTooltip, FlyInfoTooltip }
5
6
 
6
- export type { T_FlyTooltipProps } from './FlyTooltip.types'
7
+ export type { T_FlyTooltipProps, T_FlyInfoTooltipProps } from './FlyTooltip.types'