rx-compo 1.0.2 → 1.0.51

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.
@@ -1,16 +1,3 @@
1
- declare const WButton: import("rx-compo/es/utils/with-install").SFCWithInstall<import("vue").DefineComponent<{
2
- type: {
3
- type: import("vue").PropType<"" | "default" | "success" | "warning" | "info" | "text" | "primary" | "danger">;
4
- default: string;
5
- };
6
- }, {
7
- handlerClick: () => void;
8
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
9
- type?: unknown;
10
- } & {
11
- type: "" | "default" | "success" | "warning" | "info" | "text" | "primary" | "danger";
12
- } & {}>, {
13
- type: "" | "default" | "success" | "warning" | "info" | "text" | "primary" | "danger";
14
- }>>;
1
+ declare const WButton: import("@vue/runtime-core").Plugin;
15
2
  export { WButton };
16
3
  export default WButton;
@@ -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: T) => SFCWithInstall<T>
@@ -0,0 +1,6 @@
1
+ export const withInstall = (comp) => {
2
+ comp.install = function (app) {
3
+ app.component(comp.name, comp)
4
+ }
5
+ return comp
6
+ }
@@ -1,16 +1,3 @@
1
- declare const WButton: import("rx-compo/es/utils/with-install").SFCWithInstall<import("vue").DefineComponent<{
2
- type: {
3
- type: import("vue").PropType<"" | "default" | "success" | "warning" | "info" | "text" | "primary" | "danger">;
4
- default: string;
5
- };
6
- }, {
7
- handlerClick: () => void;
8
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
9
- type?: unknown;
10
- } & {
11
- type: "" | "default" | "success" | "warning" | "info" | "text" | "primary" | "danger";
12
- } & {}>, {
13
- type: "" | "default" | "success" | "warning" | "info" | "text" | "primary" | "danger";
14
- }>>;
1
+ declare const WButton: import("@vue/runtime-core").Plugin;
15
2
  export { WButton };
16
3
  export default WButton;
@@ -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: T) => SFCWithInstall<T>
@@ -0,0 +1,10 @@
1
+ 'use strict'
2
+ Object.defineProperty(exports, '__esModule', { value: true })
3
+ exports.withInstall = void 0
4
+ const withInstall = (comp) => {
5
+ comp.install = function (app) {
6
+ app.component(comp.name, comp)
7
+ }
8
+ return comp
9
+ }
10
+ exports.withInstall = withInstall
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rx-compo",
3
- "version": "1.0.2",
3
+ "version": "1.0.51",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "main": "lib/index.js",
@@ -1,16 +1,3 @@
1
- declare const WButton: import("rx-compo/es/utils/with-install").SFCWithInstall<import("vue").DefineComponent<{
2
- type: {
3
- type: import("vue").PropType<"" | "default" | "success" | "warning" | "info" | "text" | "primary" | "danger">;
4
- default: string;
5
- };
6
- }, {
7
- handlerClick: () => void;
8
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
9
- type?: unknown;
10
- } & {
11
- type: "" | "default" | "success" | "warning" | "info" | "text" | "primary" | "danger";
12
- } & {}>, {
13
- type: "" | "default" | "success" | "warning" | "info" | "text" | "primary" | "danger";
14
- }>>;
1
+ declare const WButton: import("@vue/runtime-core").Plugin;
15
2
  export { WButton };
16
3
  export default WButton;
@@ -1,3 +1,3 @@
1
- import type { Plugin } from "vue";
1
+ import type { Plugin } from 'vue';
2
2
  export declare type SFCWithInstall<T> = T & Plugin;
3
- export declare const withInstall: <T>(comp: T) => SFCWithInstall<T>;
3
+ export declare const withInstall: <T>(comp: any) => SFCWithInstall<T>;