@fmdeui/fmui 1.0.171 → 1.0.172

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/component.mjs CHANGED
@@ -18,6 +18,7 @@ import { FmAutocomplete, FmAutocompleteExt } from './packages/components/fm-auto
18
18
  import { FmSelect } from './packages/components/fm-select/index.mjs';
19
19
  import { Fmdatepicker } from './packages/components/fm-datepicker/index.mjs';
20
20
  import { FmPeriod } from './packages/components/fm-period/index.mjs';
21
+ import { FmTooltip } from './packages/components/fm-tooltip/index.mjs';
21
22
 
22
23
  const plugins = [
23
24
  FButton,
@@ -40,7 +41,8 @@ const plugins = [
40
41
  FmAutocompleteExt,
41
42
  FmSelect,
42
43
  Fmdatepicker,
43
- FmPeriod
44
+ FmPeriod,
45
+ FmTooltip
44
46
  ];
45
47
 
46
48
  export { plugins as default };
@@ -0,0 +1,58 @@
1
+ import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ export declare const FmTooltip: DefineComponent<ExtractPropTypes<{
3
+ label: {
4
+ type: StringConstructor;
5
+ default: string;
6
+ };
7
+ tipdata: {
8
+ type: {
9
+ (arrayLength: number): any[];
10
+ (...items: any[]): any[];
11
+ new (arrayLength: number): any[];
12
+ new (...items: any[]): any[];
13
+ isArray(arg: any): arg is any[];
14
+ readonly prototype: any[];
15
+ from<T>(arrayLike: ArrayLike<T>): T[];
16
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
17
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
18
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
19
+ of<T>(...items: T[]): T[];
20
+ readonly [Symbol.species]: ArrayConstructor;
21
+ };
22
+ default: never[];
23
+ };
24
+ content: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
28
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
29
+ label: {
30
+ type: StringConstructor;
31
+ default: string;
32
+ };
33
+ tipdata: {
34
+ type: {
35
+ (arrayLength: number): any[];
36
+ (...items: any[]): any[];
37
+ new (arrayLength: number): any[];
38
+ new (...items: any[]): any[];
39
+ isArray(arg: any): arg is any[];
40
+ readonly prototype: any[];
41
+ from<T>(arrayLike: ArrayLike<T>): T[];
42
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
43
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
44
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
45
+ of<T>(...items: T[]): T[];
46
+ readonly [Symbol.species]: ArrayConstructor;
47
+ };
48
+ default: never[];
49
+ };
50
+ content: {
51
+ type: StringConstructor;
52
+ default: string;
53
+ };
54
+ }>> & Readonly<{}>, {
55
+ content: string;
56
+ label: string;
57
+ tipdata: any[];
58
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
@@ -0,0 +1,59 @@
1
+ import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare const _default: DefineComponent<ExtractPropTypes<{
3
+ label: {
4
+ type: StringConstructor;
5
+ default: string;
6
+ };
7
+ tipdata: {
8
+ type: {
9
+ (arrayLength: number): any[];
10
+ (...items: any[]): any[];
11
+ new (arrayLength: number): any[];
12
+ new (...items: any[]): any[];
13
+ isArray(arg: any): arg is any[];
14
+ readonly prototype: any[];
15
+ from<T>(arrayLike: ArrayLike<T>): T[];
16
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
17
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
18
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
19
+ of<T>(...items: T[]): T[];
20
+ readonly [Symbol.species]: ArrayConstructor;
21
+ };
22
+ default: never[];
23
+ };
24
+ content: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
28
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
29
+ label: {
30
+ type: StringConstructor;
31
+ default: string;
32
+ };
33
+ tipdata: {
34
+ type: {
35
+ (arrayLength: number): any[];
36
+ (...items: any[]): any[];
37
+ new (arrayLength: number): any[];
38
+ new (...items: any[]): any[];
39
+ isArray(arg: any): arg is any[];
40
+ readonly prototype: any[];
41
+ from<T>(arrayLike: ArrayLike<T>): T[];
42
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
43
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
44
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
45
+ of<T>(...items: T[]): T[];
46
+ readonly [Symbol.species]: ArrayConstructor;
47
+ };
48
+ default: never[];
49
+ };
50
+ content: {
51
+ type: StringConstructor;
52
+ default: string;
53
+ };
54
+ }>> & Readonly<{}>, {
55
+ content: string;
56
+ label: string;
57
+ tipdata: any[];
58
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
59
+ export default _default;
@@ -17,3 +17,4 @@ export * from './fm-inputnumber';
17
17
  export * from './fm-autocomplete';
18
18
  export * from './fm-datepicker';
19
19
  export * from './fm-period';
20
+ export * from './fm-tooltip';
@@ -0,0 +1,6 @@
1
+ import './index.vue.mjs';
2
+ import _sfc_main from './index2.vue.mjs';
3
+
4
+ const FmTooltip = _sfc_main;
5
+
6
+ export { FmTooltip };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './index2.vue.mjs';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -0,0 +1,107 @@
1
+ import { defineComponent, resolveComponent, openBlock, createElementBlock, createTextVNode, toDisplayString, createVNode, withCtx, unref, Fragment, renderList, createElementVNode } from 'vue';
2
+ import { Opportunity } from '@element-plus/icons-vue';
3
+
4
+ const _hoisted_1 = ["innerHTML"];
5
+ var _sfc_main = /* @__PURE__ */ defineComponent({
6
+ ...{
7
+ name: "FmTooltip"
8
+ },
9
+ __name: "index",
10
+ props: {
11
+ label: {
12
+ type: String,
13
+ default: ""
14
+ },
15
+ tipdata: {
16
+ type: Array,
17
+ default: []
18
+ },
19
+ content: {
20
+ type: String,
21
+ default: ""
22
+ }
23
+ },
24
+ setup(__props) {
25
+ return (_ctx, _cache) => {
26
+ const _component_el_icon = resolveComponent("el-icon");
27
+ const _component_el_tooltip = resolveComponent("el-tooltip");
28
+ return openBlock(), createElementBlock("div", null, [
29
+ createTextVNode(
30
+ toDisplayString(__props.label) + " ",
31
+ 1
32
+ /* TEXT */
33
+ ),
34
+ createVNode(_component_el_tooltip, {
35
+ "raw-content": "",
36
+ placement: "top",
37
+ effect: "light"
38
+ }, {
39
+ content: withCtx(() => [
40
+ __props.tipdata.length > 0 ? (openBlock(true), createElementBlock(
41
+ Fragment,
42
+ { key: 0 },
43
+ renderList(__props.tipdata, (value) => {
44
+ return openBlock(), createElementBlock("p", null, [
45
+ _cache[0] || (_cache[0] = createTextVNode(
46
+ " \u4ECE\u3010",
47
+ -1
48
+ /* CACHED */
49
+ )),
50
+ createElementVNode(
51
+ "strong",
52
+ null,
53
+ toDisplayString(value.oldValue),
54
+ 1
55
+ /* TEXT */
56
+ ),
57
+ _cache[1] || (_cache[1] = createTextVNode(
58
+ "\u3011\u4FEE\u6539\u4E3A\u3010",
59
+ -1
60
+ /* CACHED */
61
+ )),
62
+ createElementVNode(
63
+ "strong",
64
+ null,
65
+ toDisplayString(value.newValue),
66
+ 1
67
+ /* TEXT */
68
+ ),
69
+ _cache[2] || (_cache[2] = createTextVNode(
70
+ "\u3011\uFF0C",
71
+ -1
72
+ /* CACHED */
73
+ )),
74
+ createElementVNode(
75
+ "strong",
76
+ null,
77
+ toDisplayString(value.opUser) + " " + toDisplayString(value.opDate),
78
+ 1
79
+ /* TEXT */
80
+ )
81
+ ]);
82
+ }),
83
+ 256
84
+ /* UNKEYED_FRAGMENT */
85
+ )) : (openBlock(), createElementBlock("p", {
86
+ key: 1,
87
+ innerHTML: __props.content
88
+ }, null, 8, _hoisted_1))
89
+ ]),
90
+ default: withCtx(() => [
91
+ createVNode(_component_el_icon, { color: "#ff4d4f" }, {
92
+ default: withCtx(() => [
93
+ createVNode(unref(Opportunity))
94
+ ]),
95
+ _: 1
96
+ /* STABLE */
97
+ })
98
+ ]),
99
+ _: 1
100
+ /* STABLE */
101
+ })
102
+ ]);
103
+ };
104
+ }
105
+ });
106
+
107
+ export { _sfc_main as default };
@@ -17,3 +17,4 @@ export { FmInputNumber } from './fm-inputnumber/index.mjs';
17
17
  export { FmAutocomplete, FmAutocompleteExt } from './fm-autocomplete/index.mjs';
18
18
  export { Fmdatepicker } from './fm-datepicker/index.mjs';
19
19
  export { FmPeriod } from './fm-period/index.mjs';
20
+ export { FmTooltip } from './fm-tooltip/index.mjs';