@fmdeui/fmui 1.0.14 → 1.0.16
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/make-installer.mjs +4 -6
- package/es/packages/hooks/setupVXETableHook.mjs +1 -1
- package/index.js +11 -13
- package/index.min.js +4 -4
- package/index.min.mjs +4 -4
- package/index.mjs +11 -13
- package/lib/make-installer.js +4 -6
- package/lib/packages/hooks/setupVXETableHook.js +1 -1
- 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/lib/{component.css → defaults.css} +0 -0
package/es/make-installer.mjs
CHANGED
|
@@ -6,6 +6,7 @@ import { elSvg } from './packages/components/svgIcon/index.mjs';
|
|
|
6
6
|
|
|
7
7
|
const makeInstaller = (components = []) => {
|
|
8
8
|
const install = (app) => {
|
|
9
|
+
app.use(pinia);
|
|
9
10
|
components.forEach(
|
|
10
11
|
(component) => {
|
|
11
12
|
if (!app._context.components[component.name]) {
|
|
@@ -13,12 +14,9 @@ const makeInstaller = (components = []) => {
|
|
|
13
14
|
}
|
|
14
15
|
}
|
|
15
16
|
);
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
directive(app);
|
|
20
|
-
app.use(setupVXETable);
|
|
21
|
-
}
|
|
17
|
+
elSvg(app);
|
|
18
|
+
directive(app);
|
|
19
|
+
setupVXETable(app);
|
|
22
20
|
};
|
|
23
21
|
return {
|
|
24
22
|
install
|
|
@@ -7,8 +7,8 @@ import { i18n } from '../locale/index.mjs';
|
|
|
7
7
|
import ExcelJS from 'exceljs';
|
|
8
8
|
import { useThemeConfig } from '../stores/themeConfig.mjs';
|
|
9
9
|
|
|
10
|
-
const vxeSize = useThemeConfig().themeConfig.globalComponentSize == "small" ? "mini" : useThemeConfig().themeConfig.globalComponentSize == "default" ? "small" : "medium";
|
|
11
10
|
const setupVXETable = (app) => {
|
|
11
|
+
const vxeSize = useThemeConfig().themeConfig.globalComponentSize == "small" ? "mini" : useThemeConfig().themeConfig.globalComponentSize == "default" ? "small" : "medium";
|
|
12
12
|
VxeUITable.use(VxeUIPluginRenderElement);
|
|
13
13
|
VxeUITable.use(VxeUIPluginExportXLSX, { ExcelJS });
|
|
14
14
|
VxeUITable.setTheme("light");
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.16 */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('pinia'), require('crypto-js'), require('xlsx-js-style'), require('element-plus'), require('vue'), require('@element-plus/icons-vue'), require('axios'), require('js-cookie'), require('@microsoft/signalr'), require('vxe-table'), require('@vxe-ui/plugin-render-element'), require('@vxe-ui/plugin-export-xlsx'), require('vxe-pc-ui'), require('vue-i18n'), require('exceljs'), require('lodash-es'), require('@vueuse/core'), require('mitt'), require('vue-router'), require('nprogress')) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports', 'pinia', 'crypto-js', 'xlsx-js-style', 'element-plus', 'vue', '@element-plus/icons-vue', 'axios', 'js-cookie', '@microsoft/signalr', 'vxe-table', '@vxe-ui/plugin-render-element', '@vxe-ui/plugin-export-xlsx', 'vxe-pc-ui', 'vue-i18n', 'exceljs', 'lodash-es', '@vueuse/core', 'mitt', 'vue-router', 'nprogress'], factory) :
|
|
@@ -18251,13 +18251,13 @@
|
|
|
18251
18251
|
});
|
|
18252
18252
|
}
|
|
18253
18253
|
|
|
18254
|
-
const vxeSize$1 = useThemeConfig().themeConfig.globalComponentSize == "small" ? "mini" : useThemeConfig().themeConfig.globalComponentSize == "default" ? "small" : "medium";
|
|
18255
18254
|
const setupVXETable = (app) => {
|
|
18255
|
+
const vxeSize = useThemeConfig().themeConfig.globalComponentSize == "small" ? "mini" : useThemeConfig().themeConfig.globalComponentSize == "default" ? "small" : "medium";
|
|
18256
18256
|
VxeUITable.use(VxeUIPluginRenderElement);
|
|
18257
18257
|
VxeUITable.use(VxeUIPluginExportXLSX, { ExcelJS });
|
|
18258
18258
|
VxeUITable.setTheme("light");
|
|
18259
18259
|
VxeUITable.setConfig({
|
|
18260
|
-
size: vxeSize
|
|
18260
|
+
size: vxeSize,
|
|
18261
18261
|
// 全局尺寸mini、small、medium/default
|
|
18262
18262
|
i18n: (key, args) => i18n.global.t(key, args),
|
|
18263
18263
|
// i18n: (key, args) => i18n.global.t(key, args),
|
|
@@ -18272,7 +18272,7 @@
|
|
|
18272
18272
|
// keepSource: false,// 保持原始值的状态,被某些功能所依赖,比如编辑状态、还原数据等(开启后影响性能,具体取决于数据量)
|
|
18273
18273
|
showOverflow: true,
|
|
18274
18274
|
// 设置所有内容过长时显示为省略号(如果是固定列建议设置该值,提升渲染速度)
|
|
18275
|
-
size: vxeSize
|
|
18275
|
+
size: vxeSize,
|
|
18276
18276
|
// 表格的尺寸[medium, small, mini]
|
|
18277
18277
|
autoResize: true,
|
|
18278
18278
|
// 自动监听父元素的变化去重新计算表格(对于父元素可能存在动态变化、显示隐藏的容器中、列宽异常等场景中的可能会用到)
|
|
@@ -18363,9 +18363,9 @@
|
|
|
18363
18363
|
}
|
|
18364
18364
|
},
|
|
18365
18365
|
grid: {
|
|
18366
|
-
size: vxeSize
|
|
18366
|
+
size: vxeSize,
|
|
18367
18367
|
toolbarConfig: {
|
|
18368
|
-
size: vxeSize
|
|
18368
|
+
size: vxeSize,
|
|
18369
18369
|
// 尺寸 medium, small, mini
|
|
18370
18370
|
perfect: false
|
|
18371
18371
|
// 配套的样式
|
|
@@ -18374,7 +18374,7 @@
|
|
|
18374
18374
|
// 是否允许通过按下 ESC 键还原
|
|
18375
18375
|
},
|
|
18376
18376
|
pager: {
|
|
18377
|
-
size: vxeSize
|
|
18377
|
+
size: vxeSize,
|
|
18378
18378
|
background: true,
|
|
18379
18379
|
// 带背景颜色
|
|
18380
18380
|
perfect: false,
|
|
@@ -22231,6 +22231,7 @@
|
|
|
22231
22231
|
|
|
22232
22232
|
const makeInstaller = (components = []) => {
|
|
22233
22233
|
const install = (app) => {
|
|
22234
|
+
app.use(pinia);
|
|
22234
22235
|
components.forEach(
|
|
22235
22236
|
(component) => {
|
|
22236
22237
|
if (!app._context.components[component.name]) {
|
|
@@ -22238,12 +22239,9 @@
|
|
|
22238
22239
|
}
|
|
22239
22240
|
}
|
|
22240
22241
|
);
|
|
22241
|
-
|
|
22242
|
-
|
|
22243
|
-
|
|
22244
|
-
directive(app);
|
|
22245
|
-
app.use(setupVXETable);
|
|
22246
|
-
}
|
|
22242
|
+
elSvg(app);
|
|
22243
|
+
directive(app);
|
|
22244
|
+
setupVXETable(app);
|
|
22247
22245
|
};
|
|
22248
22246
|
return {
|
|
22249
22247
|
install
|