lty-protocol 1.0.9 → 1.0.10

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,7 +1,21 @@
1
1
  import { Plugin } from 'vue';
2
2
  import { default as MyButton } from './components/MyButton.vue';
3
3
  import { default as Button2 } from './components/button2.vue';
4
- import { Modbus, IModbus } from './models/modbus';
4
+ /**
5
+ * 插件
6
+ * @description 引用时请通过 name 字段引用,例如:import { Protocol } from 'lty-protocol'
7
+ */
5
8
  declare const Protocol: Plugin;
6
- export { MyButton, Button2, Modbus, type IModbus };
9
+ /**
10
+ * 导出组件
11
+ */
12
+ export { MyButton, Button2 };
13
+ /**
14
+ * 导出协议模型
15
+ */
16
+ export * from './models';
17
+ export * from './types';
18
+ /**
19
+ * 导出插件
20
+ */
7
21
  export default Protocol;
@@ -0,0 +1 @@
1
+ export * from './modbus';
@@ -1,10 +1,8 @@
1
- interface IModbus {
2
- name: string;
3
- }
1
+ import { IModbus } from '../../types/modbus';
4
2
  declare class Modbus {
5
3
  options: IModbus;
6
4
  constructor(options: IModbus);
7
5
  add(name: string): void;
8
6
  get(): string;
9
7
  }
10
- export { Modbus, type IModbus };
8
+ export { Modbus };
@@ -0,0 +1 @@
1
+ export * from './modbus';
@@ -0,0 +1,4 @@
1
+ interface IModbus {
2
+ name: string;
3
+ }
4
+ export type { IModbus };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lty-protocol",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "main": "dist/lty-protocol.umd.js",
5
5
  "module": "dist/lty-protocol.mjs",
6
6
  "style": "dist/lty-protocol.css",