@fmdeui/fmui 1.0.171 → 1.0.173

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 (40) hide show
  1. package/es/component.mjs +3 -1
  2. package/es/components/fm-tooltip/index.d.ts +67 -0
  3. package/es/components/fm-tooltip/index.vue.d.ts +68 -0
  4. package/es/components/index.d.ts +1 -0
  5. package/es/index.mjs +1 -0
  6. package/es/packages/components/fm-tooltip/index.mjs +6 -0
  7. package/es/packages/components/fm-tooltip/index.vue.mjs +5 -0
  8. package/es/packages/components/fm-tooltip/index2.vue.mjs +119 -0
  9. package/es/packages/components/index.mjs +1 -0
  10. package/es/packages/stores/index.mjs +1 -0
  11. package/es/packages/stores/thepagefromdata.mjs +49 -0
  12. package/es/stores/index.d.ts +1 -0
  13. package/es/stores/thepagefromdata.d.ts +25 -0
  14. package/index.js +279 -117
  15. package/index.min.js +7 -7
  16. package/index.min.mjs +7 -7
  17. package/index.mjs +280 -119
  18. package/lib/component.js +3 -1
  19. package/lib/components/fm-tooltip/index.d.ts +67 -0
  20. package/lib/components/fm-tooltip/index.vue.d.ts +68 -0
  21. package/lib/components/index.d.ts +1 -0
  22. package/lib/index.js +2 -0
  23. package/lib/packages/components/fm-tooltip/index.js +8 -0
  24. package/lib/packages/components/fm-tooltip/index.vue.js +9 -0
  25. package/lib/packages/components/fm-tooltip/index2.vue.js +123 -0
  26. package/lib/packages/components/index.js +8 -6
  27. package/lib/packages/stores/index.js +2 -0
  28. package/lib/packages/stores/thepagefromdata.js +51 -0
  29. package/lib/stores/index.d.ts +1 -0
  30. package/lib/stores/thepagefromdata.d.ts +25 -0
  31. package/locale/en.js +1 -1
  32. package/locale/en.min.js +1 -1
  33. package/locale/en.min.mjs +1 -1
  34. package/locale/en.mjs +1 -1
  35. package/locale/zh-cn.js +1 -1
  36. package/locale/zh-cn.min.js +1 -1
  37. package/locale/zh-cn.min.mjs +1 -1
  38. package/locale/zh-cn.mjs +1 -1
  39. package/package.json +1 -1
  40. /package/es/{index.css → make-installer.css} +0 -0
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,67 @@
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
+ params: {
29
+ type: ObjectConstructor;
30
+ default: () => void;
31
+ };
32
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
33
+ label: {
34
+ type: StringConstructor;
35
+ default: string;
36
+ };
37
+ tipdata: {
38
+ type: {
39
+ (arrayLength: number): any[];
40
+ (...items: any[]): any[];
41
+ new (arrayLength: number): any[];
42
+ new (...items: any[]): any[];
43
+ isArray(arg: any): arg is any[];
44
+ readonly prototype: any[];
45
+ from<T>(arrayLike: ArrayLike<T>): T[];
46
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
47
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
48
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
49
+ of<T>(...items: T[]): T[];
50
+ readonly [Symbol.species]: ArrayConstructor;
51
+ };
52
+ default: never[];
53
+ };
54
+ content: {
55
+ type: StringConstructor;
56
+ default: string;
57
+ };
58
+ params: {
59
+ type: ObjectConstructor;
60
+ default: () => void;
61
+ };
62
+ }>> & Readonly<{}>, {
63
+ content: string;
64
+ params: Record<string, any>;
65
+ label: string;
66
+ tipdata: any[];
67
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
@@ -0,0 +1,68 @@
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
+ params: {
29
+ type: ObjectConstructor;
30
+ default: () => void;
31
+ };
32
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
33
+ label: {
34
+ type: StringConstructor;
35
+ default: string;
36
+ };
37
+ tipdata: {
38
+ type: {
39
+ (arrayLength: number): any[];
40
+ (...items: any[]): any[];
41
+ new (arrayLength: number): any[];
42
+ new (...items: any[]): any[];
43
+ isArray(arg: any): arg is any[];
44
+ readonly prototype: any[];
45
+ from<T>(arrayLike: ArrayLike<T>): T[];
46
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
47
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
48
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
49
+ of<T>(...items: T[]): T[];
50
+ readonly [Symbol.species]: ArrayConstructor;
51
+ };
52
+ default: never[];
53
+ };
54
+ content: {
55
+ type: StringConstructor;
56
+ default: string;
57
+ };
58
+ params: {
59
+ type: ObjectConstructor;
60
+ default: () => void;
61
+ };
62
+ }>> & Readonly<{}>, {
63
+ content: string;
64
+ params: Record<string, any>;
65
+ label: string;
66
+ tipdata: any[];
67
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
68
+ 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';
package/es/index.mjs CHANGED
@@ -51,6 +51,7 @@ export { useTagsViewRoutes } from './packages/stores/tagsViewRoutes.mjs';
51
51
  export { useThemeConfig } from './packages/stores/themeConfig.mjs';
52
52
  export { useUserInfo } from './packages/stores/userInfo.mjs';
53
53
  export { useVxeTable } from './packages/hooks/useVxeTableOptionsHook.mjs';
54
+ export { usefmPageFormDatatore } from './packages/stores/thepagefromdata.mjs';
54
55
  export { usefminputdropdownstore } from './packages/stores/ainputdropdow.mjs';
55
56
  export { validateFormWithScroll, validateFormWithScrollCallback } from './packages/utils/formValidate.mjs';
56
57
  export { default as zhCn } from './packages/locale/lang/zh-cn.mjs';
@@ -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,119 @@
1
+ import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, createTextVNode, toDisplayString, createVNode, withCtx, unref, Fragment, renderList, createElementVNode } from 'vue';
2
+ import { Opportunity } from '@element-plus/icons-vue';
3
+ import '../../stores/index.mjs';
4
+ import { usefmPageFormDatatore } from '../../stores/thepagefromdata.mjs';
5
+
6
+ const _hoisted_1 = ["innerHTML"];
7
+ var _sfc_main = /* @__PURE__ */ defineComponent({
8
+ ...{
9
+ name: "FmTooltip"
10
+ },
11
+ __name: "index",
12
+ props: {
13
+ label: {
14
+ type: String,
15
+ default: ""
16
+ },
17
+ tipdata: {
18
+ type: Array,
19
+ default: []
20
+ },
21
+ content: {
22
+ type: String,
23
+ default: ""
24
+ },
25
+ params: {
26
+ type: Object,
27
+ default: () => {
28
+ }
29
+ }
30
+ },
31
+ setup(__props) {
32
+ const props = __props;
33
+ const useBaseApi = usefmPageFormDatatore();
34
+ const tipLoadData = computed(() => {
35
+ return useBaseApi.getLableLogData(props.params.table, props.params.field, props.params.bizid, props.params.bizType);
36
+ });
37
+ return (_ctx, _cache) => {
38
+ const _component_el_icon = resolveComponent("el-icon");
39
+ const _component_el_tooltip = resolveComponent("el-tooltip");
40
+ return openBlock(), createElementBlock("div", null, [
41
+ createTextVNode(
42
+ toDisplayString(__props.label) + " ",
43
+ 1
44
+ /* TEXT */
45
+ ),
46
+ createVNode(_component_el_tooltip, {
47
+ "raw-content": "",
48
+ placement: "top",
49
+ effect: "light"
50
+ }, {
51
+ content: withCtx(() => [
52
+ tipLoadData.value.length > 0 ? (openBlock(true), createElementBlock(
53
+ Fragment,
54
+ { key: 0 },
55
+ renderList(tipLoadData.value, (value) => {
56
+ return openBlock(), createElementBlock("p", null, [
57
+ _cache[0] || (_cache[0] = createTextVNode(
58
+ " \u4ECE\u3010",
59
+ -1
60
+ /* CACHED */
61
+ )),
62
+ createElementVNode(
63
+ "strong",
64
+ null,
65
+ toDisplayString(value.oldValue),
66
+ 1
67
+ /* TEXT */
68
+ ),
69
+ _cache[1] || (_cache[1] = createTextVNode(
70
+ "\u3011\u4FEE\u6539\u4E3A\u3010",
71
+ -1
72
+ /* CACHED */
73
+ )),
74
+ createElementVNode(
75
+ "strong",
76
+ null,
77
+ toDisplayString(value.newValue),
78
+ 1
79
+ /* TEXT */
80
+ ),
81
+ _cache[2] || (_cache[2] = createTextVNode(
82
+ "\u3011\uFF0C",
83
+ -1
84
+ /* CACHED */
85
+ )),
86
+ createElementVNode(
87
+ "strong",
88
+ null,
89
+ toDisplayString(value.opUser) + " " + toDisplayString(value.opDate),
90
+ 1
91
+ /* TEXT */
92
+ )
93
+ ]);
94
+ }),
95
+ 256
96
+ /* UNKEYED_FRAGMENT */
97
+ )) : (openBlock(), createElementBlock("p", {
98
+ key: 1,
99
+ innerHTML: __props.content
100
+ }, null, 8, _hoisted_1))
101
+ ]),
102
+ default: withCtx(() => [
103
+ createVNode(_component_el_icon, { color: "#ff4d4f" }, {
104
+ default: withCtx(() => [
105
+ createVNode(unref(Opportunity))
106
+ ]),
107
+ _: 1
108
+ /* STABLE */
109
+ })
110
+ ]),
111
+ _: 1
112
+ /* STABLE */
113
+ })
114
+ ]);
115
+ };
116
+ }
117
+ });
118
+
119
+ 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';
@@ -6,3 +6,4 @@ export { useTagsViewRoutes } from './tagsViewRoutes.mjs';
6
6
  export { useThemeConfig } from './themeConfig.mjs';
7
7
  export { useUserInfo } from './userInfo.mjs';
8
8
  export { usefminputdropdownstore } from './ainputdropdow.mjs';
9
+ export { usefmPageFormDatatore } from './thepagefromdata.mjs';
@@ -0,0 +1,49 @@
1
+ import { defineStore } from 'pinia';
2
+ import { reactive } from 'vue';
3
+
4
+ const usefmPageFormDatatore = defineStore("fmPageFormDatatore", () => {
5
+ const state = reactive({
6
+ formData: {}
7
+ });
8
+ const setFormData = (data, bizType = "basefrom") => {
9
+ state.formData[bizType] = data;
10
+ };
11
+ const getFormData = (bizType = "basefrom") => {
12
+ return state.formData[bizType];
13
+ };
14
+ const clearFormData = (bizType = "basefrom") => {
15
+ state.formData[bizType] = {};
16
+ };
17
+ const clearAllFormData = () => {
18
+ state.formData = {};
19
+ };
20
+ const getLableLogData = (table, field, bizid, bizType = "basefrom") => {
21
+ const resultLogData = [];
22
+ if (state.formData[bizType]) {
23
+ state.formData[bizType].forEach((item) => {
24
+ var _a, _b;
25
+ const filteredLogs = (_b = (_a = item.logData) == null ? void 0 : _a.filter(
26
+ (log) => log.table === table && log.field === field && log.bizid === bizid && log.actionType === "update"
27
+ )) != null ? _b : [];
28
+ filteredLogs.forEach((log) => {
29
+ resultLogData.push({
30
+ ...log,
31
+ // 保留原有属性
32
+ opUser: item.createUserName,
33
+ opDate: item.createTime
34
+ });
35
+ });
36
+ });
37
+ }
38
+ return resultLogData;
39
+ };
40
+ return {
41
+ setFormData,
42
+ getFormData,
43
+ clearFormData,
44
+ clearAllFormData,
45
+ getLableLogData
46
+ };
47
+ });
48
+
49
+ export { usefmPageFormDatatore };
@@ -7,3 +7,4 @@ export * from './tagsViewRoutes';
7
7
  export * from './themeConfig';
8
8
  export * from './userInfo';
9
9
  export * from './ainputdropdow';
10
+ export * from './thepagefromdata';
@@ -0,0 +1,25 @@
1
+ import { StoreDefinition } from 'pinia';
2
+ /**
3
+ * 页面表单数据
4
+ * @methods setFormData 设置表单数据
5
+ * @methods getFormData 获取表单数据
6
+ */
7
+ export declare const usefmPageFormDatatore: StoreDefinition<"fmPageFormDatatore", Pick<{
8
+ setFormData: (data: any, bizType?: string) => void;
9
+ getFormData: (bizType?: string) => any;
10
+ clearFormData: (bizType?: string) => void;
11
+ clearAllFormData: () => void;
12
+ getLableLogData: (table: any, field: any, bizid: any, bizType?: string) => any[];
13
+ }, never>, Pick<{
14
+ setFormData: (data: any, bizType?: string) => void;
15
+ getFormData: (bizType?: string) => any;
16
+ clearFormData: (bizType?: string) => void;
17
+ clearAllFormData: () => void;
18
+ getLableLogData: (table: any, field: any, bizid: any, bizType?: string) => any[];
19
+ }, never>, Pick<{
20
+ setFormData: (data: any, bizType?: string) => void;
21
+ getFormData: (bizType?: string) => any;
22
+ clearFormData: (bizType?: string) => void;
23
+ clearAllFormData: () => void;
24
+ getLableLogData: (table: any, field: any, bizid: any, bizType?: string) => any[];
25
+ }, "setFormData" | "getFormData" | "clearFormData" | "clearAllFormData" | "getLableLogData">>;