erp-plus 1.0.110 → 1.0.112

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/dist/index.d.ts CHANGED
@@ -1,3 +1,26 @@
1
1
  import { Plugin } from 'vue';
2
+ /**
3
+ * 布局大小档位
4
+ * - 'default':默认档,外观 = master 分支
5
+ * - 'small' :稍小档,外观 = feature/workflow_20260903 分支
6
+ */
7
+ export type ErpSize = 'default' | 'small';
8
+ /**
9
+ * 设置档位:在 <html> 上切换根类,由 default.scss / size.scss 驱动
10
+ * 注意:主应用与子应用在 qiankun 下共享同一个 <html>,
11
+ * 故仅在需要显式指定档位时调用本方法(见 install 中的处理)
12
+ */
13
+ export declare function setErpSize(size: ErpSize): void;
14
+ /** 读取当前档位 */
15
+ export declare function getErpSize(): ErpSize;
16
+ export interface ErpPlusOptions {
17
+ /** 自定义 svg 图标集合 */
18
+ icons?: Record<string, any>;
19
+ /**
20
+ * 档位。**不传则不操作 DOM**(避免在 qiankun 子应用中误关掉主应用的档位)。
21
+ * 需要控制档位时显式传入,或改用 setErpSize() / 宿主自行加根类。
22
+ */
23
+ size?: ErpSize;
24
+ }
2
25
  declare const install: Plugin;
3
26
  export default install;
@@ -1,4 +1,6 @@
1
+ export * from '../index'
1
2
  export {}
2
3
  import ErpPlus from '../index'
3
4
  export default ErpPlus
5
+ export * from '../index'
4
6
  export {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "erp-plus",
3
- "version": "1.0.110",
3
+ "version": "1.0.112",
4
4
  "author": "zhangxl",
5
5
  "main": "dist/erp-plus.umd.js",
6
6
  "module": "dist/erp-plus.es.js",