@fmdeui/fmui 1.0.173 → 1.0.175
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/components/fm-tooltip/index.d.ts +89 -33
- package/es/components/fm-tooltip/index.vue.d.ts +16 -1
- package/es/packages/components/fm-tooltip/index2.vue.mjs +26 -14
- package/es/packages/stores/thepagefromdata.mjs +9 -2
- package/es/stores/thepagefromdata.d.ts +7 -4
- package/index.js +85 -66
- package/index.min.js +6 -6
- package/index.min.mjs +6 -6
- package/index.mjs +85 -66
- package/lib/components/fm-tooltip/index.d.ts +89 -33
- package/lib/components/fm-tooltip/index.vue.d.ts +16 -1
- package/lib/packages/components/fm-tooltip/index2.vue.js +25 -13
- package/lib/packages/stores/thepagefromdata.js +9 -2
- package/lib/stores/thepagefromdata.d.ts +7 -4
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/package.json +1 -1
- /package/es/{make-installer.css → index.css} +0 -0
- /package/lib/{defaults.css → index.css} +0 -0
|
@@ -1,35 +1,87 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const FmTooltip:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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;
|
|
1
|
+
import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
|
|
2
|
+
export declare const FmTooltip: {
|
|
3
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
4
|
+
label: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
21
7
|
};
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
8
|
+
tipdata: {
|
|
9
|
+
type: {
|
|
10
|
+
(arrayLength: number): any[];
|
|
11
|
+
(...items: any[]): any[];
|
|
12
|
+
new (arrayLength: number): any[];
|
|
13
|
+
new (...items: any[]): any[];
|
|
14
|
+
isArray(arg: any): arg is any[];
|
|
15
|
+
readonly prototype: any[];
|
|
16
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
17
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
18
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
19
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
20
|
+
of<T>(...items: T[]): T[];
|
|
21
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
22
|
+
};
|
|
23
|
+
default: never[];
|
|
24
|
+
};
|
|
25
|
+
content: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
params: {
|
|
30
|
+
type: ObjectConstructor;
|
|
31
|
+
default: () => void;
|
|
32
|
+
};
|
|
33
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
34
|
+
content: string;
|
|
35
|
+
params: Record<string, any>;
|
|
36
|
+
label: string;
|
|
37
|
+
tipdata: any[];
|
|
38
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
39
|
+
P: {};
|
|
40
|
+
B: {};
|
|
41
|
+
D: {};
|
|
42
|
+
C: {};
|
|
43
|
+
M: {};
|
|
44
|
+
Defaults: {};
|
|
45
|
+
}, Readonly< ExtractPropTypes<{
|
|
46
|
+
label: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
tipdata: {
|
|
51
|
+
type: {
|
|
52
|
+
(arrayLength: number): any[];
|
|
53
|
+
(...items: any[]): any[];
|
|
54
|
+
new (arrayLength: number): any[];
|
|
55
|
+
new (...items: any[]): any[];
|
|
56
|
+
isArray(arg: any): arg is any[];
|
|
57
|
+
readonly prototype: any[];
|
|
58
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
59
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
60
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
61
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
62
|
+
of<T>(...items: T[]): T[];
|
|
63
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
64
|
+
};
|
|
65
|
+
default: never[];
|
|
66
|
+
};
|
|
67
|
+
content: {
|
|
68
|
+
type: StringConstructor;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
params: {
|
|
72
|
+
type: ObjectConstructor;
|
|
73
|
+
default: () => void;
|
|
74
|
+
};
|
|
75
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
76
|
+
content: string;
|
|
77
|
+
params: Record<string, any>;
|
|
78
|
+
label: string;
|
|
79
|
+
tipdata: any[];
|
|
80
|
+
}>;
|
|
81
|
+
__isFragment?: never;
|
|
82
|
+
__isTeleport?: never;
|
|
83
|
+
__isSuspense?: never;
|
|
84
|
+
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
33
85
|
label: {
|
|
34
86
|
type: StringConstructor;
|
|
35
87
|
default: string;
|
|
@@ -59,9 +111,13 @@ export declare const FmTooltip: DefineComponent<ExtractPropTypes<{
|
|
|
59
111
|
type: ObjectConstructor;
|
|
60
112
|
default: () => void;
|
|
61
113
|
};
|
|
62
|
-
}>> & Readonly<{}>, {
|
|
114
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
63
115
|
content: string;
|
|
64
116
|
params: Record<string, any>;
|
|
65
117
|
label: string;
|
|
66
118
|
tipdata: any[];
|
|
67
|
-
}, {},
|
|
119
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
120
|
+
$slots: {
|
|
121
|
+
default?(_: {}): any;
|
|
122
|
+
};
|
|
123
|
+
});
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
declare
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: HTMLDivElement;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
3
12
|
label: {
|
|
4
13
|
type: StringConstructor;
|
|
5
14
|
default: string;
|
|
@@ -65,4 +74,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
65
74
|
label: string;
|
|
66
75
|
tipdata: any[];
|
|
67
76
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
77
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
68
78
|
export default _default;
|
|
79
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
80
|
+
new (): {
|
|
81
|
+
$slots: S;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, createTextVNode, toDisplayString,
|
|
1
|
+
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, createElementVNode, renderSlot, createTextVNode, toDisplayString, createBlock, withCtx, createVNode, unref, Fragment, renderList, createCommentVNode } from 'vue';
|
|
2
2
|
import { Opportunity } from '@element-plus/icons-vue';
|
|
3
3
|
import '../../stores/index.mjs';
|
|
4
4
|
import { usefmPageFormDatatore } from '../../stores/thepagefromdata.mjs';
|
|
5
5
|
|
|
6
|
-
const _hoisted_1 =
|
|
6
|
+
const _hoisted_1 = { style: { "position": "relative", "display": "inline-flex", "align-items": "center", "width": "100%", "max-width": "100%" } };
|
|
7
|
+
const _hoisted_2 = { style: { "flex": "1", "min-width": "0", "position": "relative" } };
|
|
8
|
+
const _hoisted_3 = ["innerHTML"];
|
|
7
9
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
10
|
...{
|
|
9
11
|
name: "FmTooltip"
|
|
@@ -32,21 +34,28 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
32
34
|
const props = __props;
|
|
33
35
|
const useBaseApi = usefmPageFormDatatore();
|
|
34
36
|
const tipLoadData = computed(() => {
|
|
35
|
-
|
|
37
|
+
var _a;
|
|
38
|
+
return useBaseApi.getLableLogData(props.params.table, props.params.field, props.params.bizid, ((_a = props.params) == null ? void 0 : _a.bizType) || "basefrom");
|
|
36
39
|
});
|
|
37
40
|
return (_ctx, _cache) => {
|
|
38
41
|
const _component_el_icon = resolveComponent("el-icon");
|
|
39
42
|
const _component_el_tooltip = resolveComponent("el-tooltip");
|
|
40
|
-
return openBlock(), createElementBlock("div",
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
44
|
+
createElementVNode("div", _hoisted_2, [
|
|
45
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
46
|
+
createTextVNode(
|
|
47
|
+
toDisplayString(__props.label),
|
|
48
|
+
1
|
|
49
|
+
/* TEXT */
|
|
50
|
+
)
|
|
51
|
+
])
|
|
52
|
+
]),
|
|
53
|
+
tipLoadData.value.length > 0 || __props.content ? (openBlock(), createBlock(_component_el_tooltip, {
|
|
54
|
+
key: 0,
|
|
47
55
|
"raw-content": "",
|
|
48
56
|
placement: "top",
|
|
49
|
-
effect: "light"
|
|
57
|
+
effect: "light",
|
|
58
|
+
style: { "position": "absolute", "top": "4px", "right": "4px", "z-index": "10", "line-height": "1" }
|
|
50
59
|
}, {
|
|
51
60
|
content: withCtx(() => [
|
|
52
61
|
tipLoadData.value.length > 0 ? (openBlock(true), createElementBlock(
|
|
@@ -97,10 +106,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
97
106
|
)) : (openBlock(), createElementBlock("p", {
|
|
98
107
|
key: 1,
|
|
99
108
|
innerHTML: __props.content
|
|
100
|
-
}, null, 8,
|
|
109
|
+
}, null, 8, _hoisted_3))
|
|
101
110
|
]),
|
|
102
111
|
default: withCtx(() => [
|
|
103
|
-
createVNode(_component_el_icon, {
|
|
112
|
+
createVNode(_component_el_icon, {
|
|
113
|
+
size: 10,
|
|
114
|
+
color: "#ff4d4f"
|
|
115
|
+
}, {
|
|
104
116
|
default: withCtx(() => [
|
|
105
117
|
createVNode(unref(Opportunity))
|
|
106
118
|
]),
|
|
@@ -110,7 +122,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
110
122
|
]),
|
|
111
123
|
_: 1
|
|
112
124
|
/* STABLE */
|
|
113
|
-
})
|
|
125
|
+
})) : createCommentVNode("v-if", true)
|
|
114
126
|
]);
|
|
115
127
|
};
|
|
116
128
|
}
|
|
@@ -3,10 +3,15 @@ import { reactive } from 'vue';
|
|
|
3
3
|
|
|
4
4
|
const usefmPageFormDatatore = defineStore("fmPageFormDatatore", () => {
|
|
5
5
|
const state = reactive({
|
|
6
|
-
formData: {}
|
|
6
|
+
formData: {},
|
|
7
|
+
currentBizType: ""
|
|
7
8
|
});
|
|
8
9
|
const setFormData = (data, bizType = "basefrom") => {
|
|
9
10
|
state.formData[bizType] = data;
|
|
11
|
+
state.currentBizType = bizType;
|
|
12
|
+
};
|
|
13
|
+
const setCurrentBizType = (bizType = "") => {
|
|
14
|
+
state.currentBizType = bizType;
|
|
10
15
|
};
|
|
11
16
|
const getFormData = (bizType = "basefrom") => {
|
|
12
17
|
return state.formData[bizType];
|
|
@@ -17,8 +22,9 @@ const usefmPageFormDatatore = defineStore("fmPageFormDatatore", () => {
|
|
|
17
22
|
const clearAllFormData = () => {
|
|
18
23
|
state.formData = {};
|
|
19
24
|
};
|
|
20
|
-
const getLableLogData = (table, field, bizid,
|
|
25
|
+
const getLableLogData = (table, field, bizid, bizinType = "basefrom") => {
|
|
21
26
|
const resultLogData = [];
|
|
27
|
+
const bizType = state.currentBizType != "" ? state.currentBizType : bizinType;
|
|
22
28
|
if (state.formData[bizType]) {
|
|
23
29
|
state.formData[bizType].forEach((item) => {
|
|
24
30
|
var _a, _b;
|
|
@@ -38,6 +44,7 @@ const usefmPageFormDatatore = defineStore("fmPageFormDatatore", () => {
|
|
|
38
44
|
return resultLogData;
|
|
39
45
|
};
|
|
40
46
|
return {
|
|
47
|
+
setCurrentBizType,
|
|
41
48
|
setFormData,
|
|
42
49
|
getFormData,
|
|
43
50
|
clearFormData,
|
|
@@ -5,21 +5,24 @@ import { StoreDefinition } from 'pinia';
|
|
|
5
5
|
* @methods getFormData 获取表单数据
|
|
6
6
|
*/
|
|
7
7
|
export declare const usefmPageFormDatatore: StoreDefinition<"fmPageFormDatatore", Pick<{
|
|
8
|
+
setCurrentBizType: (bizType?: string) => void;
|
|
8
9
|
setFormData: (data: any, bizType?: string) => void;
|
|
9
10
|
getFormData: (bizType?: string) => any;
|
|
10
11
|
clearFormData: (bizType?: string) => void;
|
|
11
12
|
clearAllFormData: () => void;
|
|
12
|
-
getLableLogData: (table: any, field: any, bizid: any,
|
|
13
|
+
getLableLogData: (table: any, field: any, bizid: any, bizinType?: string) => any[];
|
|
13
14
|
}, never>, Pick<{
|
|
15
|
+
setCurrentBizType: (bizType?: string) => void;
|
|
14
16
|
setFormData: (data: any, bizType?: string) => void;
|
|
15
17
|
getFormData: (bizType?: string) => any;
|
|
16
18
|
clearFormData: (bizType?: string) => void;
|
|
17
19
|
clearAllFormData: () => void;
|
|
18
|
-
getLableLogData: (table: any, field: any, bizid: any,
|
|
20
|
+
getLableLogData: (table: any, field: any, bizid: any, bizinType?: string) => any[];
|
|
19
21
|
}, never>, Pick<{
|
|
22
|
+
setCurrentBizType: (bizType?: string) => void;
|
|
20
23
|
setFormData: (data: any, bizType?: string) => void;
|
|
21
24
|
getFormData: (bizType?: string) => any;
|
|
22
25
|
clearFormData: (bizType?: string) => void;
|
|
23
26
|
clearAllFormData: () => void;
|
|
24
|
-
getLableLogData: (table: any, field: any, bizid: any,
|
|
25
|
-
}, "setFormData" | "getFormData" | "clearFormData" | "clearAllFormData" | "getLableLogData">>;
|
|
27
|
+
getLableLogData: (table: any, field: any, bizid: any, bizinType?: string) => any[];
|
|
28
|
+
}, "setCurrentBizType" | "setFormData" | "getFormData" | "clearFormData" | "clearAllFormData" | "getLableLogData">>;
|