@fmdeui/fmui 1.0.15 → 1.0.17

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.
@@ -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");
@@ -6,8 +6,8 @@ import { merge } from 'lodash-es';
6
6
  import '../api/index.mjs';
7
7
  import { useBaseApi } from '../api/base/index.mjs';
8
8
 
9
- const vxeSize = useThemeConfig().themeConfig.globalComponentSize == "small" ? "mini" : useThemeConfig().themeConfig.globalComponentSize == "default" ? "small" : "medium";
10
9
  const useVxeTable = (opt, extras) => {
10
+ const vxeSize = useThemeConfig().themeConfig.globalComponentSize == "small" ? "mini" : useThemeConfig().themeConfig.globalComponentSize == "default" ? "small" : "medium";
11
11
  const userStore = useUserInfo();
12
12
  const processColumns = (columns) => {
13
13
  columns.forEach((col) => {
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! fmdeui-fmui v1.0.15 */
1
+ /*! fmdeui-fmui v1.0.17 */
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$1,
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$1,
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$1,
18366
+ size: vxeSize,
18367
18367
  toolbarConfig: {
18368
- size: vxeSize$1,
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$1,
18377
+ size: vxeSize,
18378
18378
  background: true,
18379
18379
  // 带背景颜色
18380
18380
  perfect: false,
@@ -18597,8 +18597,8 @@
18597
18597
  return vue.withDirectives(el, [[vue.resolveDirective("auth-all"), value]]);
18598
18598
  }
18599
18599
 
18600
- const vxeSize = useThemeConfig().themeConfig.globalComponentSize == "small" ? "mini" : useThemeConfig().themeConfig.globalComponentSize == "default" ? "small" : "medium";
18601
18600
  const useVxeTable = (opt, extras) => {
18601
+ const vxeSize = useThemeConfig().themeConfig.globalComponentSize == "small" ? "mini" : useThemeConfig().themeConfig.globalComponentSize == "default" ? "small" : "medium";
18602
18602
  const userStore = useUserInfo();
18603
18603
  const processColumns = (columns) => {
18604
18604
  columns.forEach((col) => {