@fmdeui/fmui 1.0.172 → 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.
- package/es/components/fm-tooltip/index.d.ts +9 -0
- package/es/components/fm-tooltip/index.vue.d.ts +9 -0
- package/es/index.mjs +1 -0
- package/es/packages/components/fm-tooltip/index2.vue.mjs +15 -3
- package/es/packages/stores/index.mjs +1 -0
- package/es/packages/stores/thepagefromdata.mjs +49 -0
- package/es/stores/index.d.ts +1 -0
- package/es/stores/thepagefromdata.d.ts +25 -0
- package/index.js +59 -3
- package/index.min.js +7 -7
- package/index.min.mjs +7 -7
- package/index.mjs +59 -4
- package/lib/components/fm-tooltip/index.d.ts +9 -0
- package/lib/components/fm-tooltip/index.vue.d.ts +9 -0
- package/lib/index.js +2 -0
- package/lib/packages/components/fm-tooltip/index2.vue.js +14 -2
- package/lib/packages/stores/index.js +2 -0
- package/lib/packages/stores/thepagefromdata.js +51 -0
- package/lib/stores/index.d.ts +1 -0
- package/lib/stores/thepagefromdata.d.ts +25 -0
- 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/{defaults.css → make-installer.css} +0 -0
- /package/lib/{index.css → defaults.css} +0 -0
|
@@ -25,6 +25,10 @@ export declare const FmTooltip: DefineComponent<ExtractPropTypes<{
|
|
|
25
25
|
type: StringConstructor;
|
|
26
26
|
default: string;
|
|
27
27
|
};
|
|
28
|
+
params: {
|
|
29
|
+
type: ObjectConstructor;
|
|
30
|
+
default: () => void;
|
|
31
|
+
};
|
|
28
32
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
29
33
|
label: {
|
|
30
34
|
type: StringConstructor;
|
|
@@ -51,8 +55,13 @@ export declare const FmTooltip: DefineComponent<ExtractPropTypes<{
|
|
|
51
55
|
type: StringConstructor;
|
|
52
56
|
default: string;
|
|
53
57
|
};
|
|
58
|
+
params: {
|
|
59
|
+
type: ObjectConstructor;
|
|
60
|
+
default: () => void;
|
|
61
|
+
};
|
|
54
62
|
}>> & Readonly<{}>, {
|
|
55
63
|
content: string;
|
|
64
|
+
params: Record<string, any>;
|
|
56
65
|
label: string;
|
|
57
66
|
tipdata: any[];
|
|
58
67
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
@@ -25,6 +25,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
25
25
|
type: StringConstructor;
|
|
26
26
|
default: string;
|
|
27
27
|
};
|
|
28
|
+
params: {
|
|
29
|
+
type: ObjectConstructor;
|
|
30
|
+
default: () => void;
|
|
31
|
+
};
|
|
28
32
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
29
33
|
label: {
|
|
30
34
|
type: StringConstructor;
|
|
@@ -51,8 +55,13 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
51
55
|
type: StringConstructor;
|
|
52
56
|
default: string;
|
|
53
57
|
};
|
|
58
|
+
params: {
|
|
59
|
+
type: ObjectConstructor;
|
|
60
|
+
default: () => void;
|
|
61
|
+
};
|
|
54
62
|
}>> & Readonly<{}>, {
|
|
55
63
|
content: string;
|
|
64
|
+
params: Record<string, any>;
|
|
56
65
|
label: string;
|
|
57
66
|
tipdata: any[];
|
|
58
67
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
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';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { defineComponent, resolveComponent, openBlock, createElementBlock, createTextVNode, toDisplayString, createVNode, withCtx, unref, Fragment, renderList, createElementVNode } from 'vue';
|
|
1
|
+
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, createTextVNode, toDisplayString, createVNode, withCtx, unref, Fragment, renderList, createElementVNode } from 'vue';
|
|
2
2
|
import { Opportunity } from '@element-plus/icons-vue';
|
|
3
|
+
import '../../stores/index.mjs';
|
|
4
|
+
import { usefmPageFormDatatore } from '../../stores/thepagefromdata.mjs';
|
|
3
5
|
|
|
4
6
|
const _hoisted_1 = ["innerHTML"];
|
|
5
7
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -19,9 +21,19 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
19
21
|
content: {
|
|
20
22
|
type: String,
|
|
21
23
|
default: ""
|
|
24
|
+
},
|
|
25
|
+
params: {
|
|
26
|
+
type: Object,
|
|
27
|
+
default: () => {
|
|
28
|
+
}
|
|
22
29
|
}
|
|
23
30
|
},
|
|
24
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
|
+
});
|
|
25
37
|
return (_ctx, _cache) => {
|
|
26
38
|
const _component_el_icon = resolveComponent("el-icon");
|
|
27
39
|
const _component_el_tooltip = resolveComponent("el-tooltip");
|
|
@@ -37,10 +49,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
37
49
|
effect: "light"
|
|
38
50
|
}, {
|
|
39
51
|
content: withCtx(() => [
|
|
40
|
-
|
|
52
|
+
tipLoadData.value.length > 0 ? (openBlock(true), createElementBlock(
|
|
41
53
|
Fragment,
|
|
42
54
|
{ key: 0 },
|
|
43
|
-
renderList(
|
|
55
|
+
renderList(tipLoadData.value, (value) => {
|
|
44
56
|
return openBlock(), createElementBlock("p", null, [
|
|
45
57
|
_cache[0] || (_cache[0] = createTextVNode(
|
|
46
58
|
" \u4ECE\u3010",
|
|
@@ -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 };
|
package/es/stores/index.d.ts
CHANGED
|
@@ -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">>;
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.173 */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vxe-table'), require('@vxe-ui/plugin-render-element'), require('@vxe-ui/plugin-export-xlsx'), require('vxe-pc-ui'), require('exceljs'), require('@element-plus/icons-vue'), require('vue'), require('element-plus'), require('lodash-es'), require('js-cookie'), require('pinia'), require('vue-router'), require('@vueuse/core'), require('crypto-js'), require('xlsx-js-style'), require('vue-i18n'), require('sortablejs'), require('screenfull'), require('push.js'), require('mitt'), require('@microsoft/signalr'), require('axios')) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports', 'vxe-table', '@vxe-ui/plugin-render-element', '@vxe-ui/plugin-export-xlsx', 'vxe-pc-ui', 'exceljs', '@element-plus/icons-vue', 'vue', 'element-plus', 'lodash-es', 'js-cookie', 'pinia', 'vue-router', '@vueuse/core', 'crypto-js', 'xlsx-js-style', 'vue-i18n', 'sortablejs', 'screenfull', 'push.js', 'mitt', '@microsoft/signalr', 'axios'], factory) :
|
|
@@ -4096,6 +4096,51 @@
|
|
|
4096
4096
|
};
|
|
4097
4097
|
});
|
|
4098
4098
|
|
|
4099
|
+
const usefmPageFormDatatore = pinia$1.defineStore("fmPageFormDatatore", () => {
|
|
4100
|
+
const state = vue.reactive({
|
|
4101
|
+
formData: {}
|
|
4102
|
+
});
|
|
4103
|
+
const setFormData = (data, bizType = "basefrom") => {
|
|
4104
|
+
state.formData[bizType] = data;
|
|
4105
|
+
};
|
|
4106
|
+
const getFormData = (bizType = "basefrom") => {
|
|
4107
|
+
return state.formData[bizType];
|
|
4108
|
+
};
|
|
4109
|
+
const clearFormData = (bizType = "basefrom") => {
|
|
4110
|
+
state.formData[bizType] = {};
|
|
4111
|
+
};
|
|
4112
|
+
const clearAllFormData = () => {
|
|
4113
|
+
state.formData = {};
|
|
4114
|
+
};
|
|
4115
|
+
const getLableLogData = (table, field, bizid, bizType = "basefrom") => {
|
|
4116
|
+
const resultLogData = [];
|
|
4117
|
+
if (state.formData[bizType]) {
|
|
4118
|
+
state.formData[bizType].forEach((item) => {
|
|
4119
|
+
var _a, _b;
|
|
4120
|
+
const filteredLogs = (_b = (_a = item.logData) == null ? void 0 : _a.filter(
|
|
4121
|
+
(log) => log.table === table && log.field === field && log.bizid === bizid && log.actionType === "update"
|
|
4122
|
+
)) != null ? _b : [];
|
|
4123
|
+
filteredLogs.forEach((log) => {
|
|
4124
|
+
resultLogData.push({
|
|
4125
|
+
...log,
|
|
4126
|
+
// 保留原有属性
|
|
4127
|
+
opUser: item.createUserName,
|
|
4128
|
+
opDate: item.createTime
|
|
4129
|
+
});
|
|
4130
|
+
});
|
|
4131
|
+
});
|
|
4132
|
+
}
|
|
4133
|
+
return resultLogData;
|
|
4134
|
+
};
|
|
4135
|
+
return {
|
|
4136
|
+
setFormData,
|
|
4137
|
+
getFormData,
|
|
4138
|
+
clearFormData,
|
|
4139
|
+
clearAllFormData,
|
|
4140
|
+
getLableLogData
|
|
4141
|
+
};
|
|
4142
|
+
});
|
|
4143
|
+
|
|
4099
4144
|
function authDirective(app) {
|
|
4100
4145
|
app.directive("auth", {
|
|
4101
4146
|
mounted(el, binding) {
|
|
@@ -31415,9 +31460,19 @@
|
|
|
31415
31460
|
content: {
|
|
31416
31461
|
type: String,
|
|
31417
31462
|
default: ""
|
|
31463
|
+
},
|
|
31464
|
+
params: {
|
|
31465
|
+
type: Object,
|
|
31466
|
+
default: () => {
|
|
31467
|
+
}
|
|
31418
31468
|
}
|
|
31419
31469
|
},
|
|
31420
31470
|
setup(__props) {
|
|
31471
|
+
const props = __props;
|
|
31472
|
+
const useBaseApi = usefmPageFormDatatore();
|
|
31473
|
+
const tipLoadData = vue.computed(() => {
|
|
31474
|
+
return useBaseApi.getLableLogData(props.params.table, props.params.field, props.params.bizid, props.params.bizType);
|
|
31475
|
+
});
|
|
31421
31476
|
return (_ctx, _cache) => {
|
|
31422
31477
|
const _component_el_icon = vue.resolveComponent("el-icon");
|
|
31423
31478
|
const _component_el_tooltip = vue.resolveComponent("el-tooltip");
|
|
@@ -31433,10 +31488,10 @@
|
|
|
31433
31488
|
effect: "light"
|
|
31434
31489
|
}, {
|
|
31435
31490
|
content: vue.withCtx(() => [
|
|
31436
|
-
|
|
31491
|
+
tipLoadData.value.length > 0 ? (vue.openBlock(true), vue.createElementBlock(
|
|
31437
31492
|
vue.Fragment,
|
|
31438
31493
|
{ key: 0 },
|
|
31439
|
-
vue.renderList(
|
|
31494
|
+
vue.renderList(tipLoadData.value, (value) => {
|
|
31440
31495
|
return vue.openBlock(), vue.createElementBlock("p", null, [
|
|
31441
31496
|
_cache[0] || (_cache[0] = vue.createTextVNode(
|
|
31442
31497
|
" \u4ECE\u3010",
|
|
@@ -36054,6 +36109,7 @@
|
|
|
36054
36109
|
exports.useThemeConfig = useThemeConfig;
|
|
36055
36110
|
exports.useUserInfo = useUserInfo;
|
|
36056
36111
|
exports.useVxeTable = useVxeTable;
|
|
36112
|
+
exports.usefmPageFormDatatore = usefmPageFormDatatore;
|
|
36057
36113
|
exports.usefminputdropdownstore = usefminputdropdownstore;
|
|
36058
36114
|
exports.userAccount = userAccount;
|
|
36059
36115
|
exports.userEmail = userEmail;
|