rx-compo 1.0.52 → 1.0.53

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.
@@ -0,0 +1,3 @@
1
+ import type { Plugin } from 'vue';
2
+ export declare type SFCWithInstall<T> = T & Plugin;
3
+ export declare const withInstall: <T>(comp: any) => SFCWithInstall<T>;
@@ -0,0 +1,7 @@
1
+ export const withInstall = (comp) => {
2
+ ;
3
+ comp.install = function (app) {
4
+ app.component(comp.name, comp);
5
+ };
6
+ return comp;
7
+ };
@@ -0,0 +1,3 @@
1
+ import type { Plugin } from 'vue';
2
+ export declare type SFCWithInstall<T> = T & Plugin;
3
+ export declare const withInstall: <T>(comp: any) => SFCWithInstall<T>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.withInstall = void 0;
4
+ const withInstall = (comp) => {
5
+ ;
6
+ comp.install = function (app) {
7
+ app.component(comp.name, comp);
8
+ };
9
+ return comp;
10
+ };
11
+ exports.withInstall = withInstall;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rx-compo",
3
- "version": "1.0.52",
3
+ "version": "1.0.53",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "main": "lib/index.js",