@fecp/vue 1.0.2 → 1.0.4

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/es/index.mjs CHANGED
@@ -1,10 +1,15 @@
1
- import * as e from "./src/components/index.mjs";
2
- const n = {
3
- install: (t) => {
4
- for (let i in e)
5
- t.use(e[i]);
1
+ import * as index$1 from "./src/components/index.mjs";
2
+ import { Button } from "./src/components/button/index.mjs";
3
+ import { picker } from "./src/components/button2/index.mjs";
4
+ const index = {
5
+ install: (app) => {
6
+ for (let c in index$1) {
7
+ app.use(index$1[c]);
8
+ }
6
9
  }
7
10
  };
8
11
  export {
9
- n as default
12
+ Button,
13
+ index as default,
14
+ picker
10
15
  };
@@ -1,11 +1,14 @@
1
- import { createElementBlock as t, openBlock as e } from "vue";
1
+ import { createElementBlock, openBlock } from "vue";
2
2
  /* empty css */
3
- const o = { class: "btn" }, a = {
3
+ const _hoisted_1 = { class: "btn" };
4
+ const _sfc_main = {
4
5
  __name: "button",
5
- setup(n) {
6
- return (c, r) => (e(), t("button", o, "测试按钮111"));
6
+ setup(__props) {
7
+ return (_ctx, _cache) => {
8
+ return openBlock(), createElementBlock("button", _hoisted_1, "测试按钮111");
9
+ };
7
10
  }
8
11
  };
9
12
  export {
10
- a as default
13
+ _sfc_main as default
11
14
  };
@@ -1,3 +1,7 @@
1
- import t from "./button.vue.mjs";
2
- import i from "../../utils/install.mjs";
3
- i.withInstall("Button", t);
1
+ import _sfc_main from "./button.vue.mjs";
2
+ import install from "../../utils/install.mjs";
3
+ const Button = install.withInstall("Button", _sfc_main);
4
+ export {
5
+ Button,
6
+ Button as default
7
+ };
@@ -1,11 +1,14 @@
1
- import { createElementBlock as t, openBlock as e } from "vue";
1
+ import { createElementBlock, openBlock } from "vue";
2
2
  /* empty css */
3
- const o = { class: "btn" }, a = {
3
+ const _hoisted_1 = { class: "btn" };
4
+ const _sfc_main = {
4
5
  __name: "button",
5
- setup(n) {
6
- return (c, r) => (e(), t("button", o, "测试按钮22"));
6
+ setup(__props) {
7
+ return (_ctx, _cache) => {
8
+ return openBlock(), createElementBlock("button", _hoisted_1, "测试按钮22");
9
+ };
7
10
  }
8
11
  };
9
12
  export {
10
- a as default
13
+ _sfc_main as default
11
14
  };
@@ -1,3 +1,7 @@
1
- import t from "./button.vue.mjs";
2
- import i from "../../utils/install.mjs";
3
- i.withInstall("Button2", t);
1
+ import _sfc_main from "./button.vue.mjs";
2
+ import install from "../../utils/install.mjs";
3
+ const picker = install.withInstall("Picker", _sfc_main);
4
+ export {
5
+ picker as default,
6
+ picker
7
+ };
@@ -1,2 +1,6 @@
1
- import "./button/index.mjs";
2
- import "./button2/index.mjs";
1
+ import { Button } from "./button/index.mjs";
2
+ import { picker } from "./button2/index.mjs";
3
+ export {
4
+ Button,
5
+ picker
6
+ };
@@ -1,10 +1,12 @@
1
- const n = {
2
- withInstall: function(t, l) {
3
- return t = t.charAt(0).toUpperCase() + t.slice(1), l.install = (s) => {
4
- s.component("Fec" + t, l);
5
- }, l;
1
+ const install = {
2
+ withInstall: function(name, comp) {
3
+ name = name.charAt(0).toUpperCase() + name.slice(1);
4
+ comp.install = (app) => {
5
+ app.component("Fec" + name, comp);
6
+ };
7
+ return comp;
6
8
  }
7
9
  };
8
10
  export {
9
- n as default
11
+ install as default
10
12
  };
package/es/vue.css CHANGED
@@ -1 +1,6 @@
1
- .btn{color:red}.btn{color:#00f}
1
+ .btn {
2
+ color: red;
3
+ }
4
+ .btn {
5
+ color: blue;
6
+ }
package/lib/index.js CHANGED
@@ -1 +1,15 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./src/components/index.js"),l={install:t=>{for(let i in e)t.use(e[i])}};exports.default=l;
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const index$3 = require("./src/components/index.js");
4
+ const index$1 = require("./src/components/button/index.js");
5
+ const index$2 = require("./src/components/button2/index.js");
6
+ const index = {
7
+ install: (app) => {
8
+ for (let c in index$3) {
9
+ app.use(index$3[c]);
10
+ }
11
+ }
12
+ };
13
+ exports.Button = index$1.Button;
14
+ exports.picker = index$2.picker;
15
+ exports.default = index;
@@ -1 +1,14 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */const t={class:"btn"},o={__name:"button",setup(r){return(u,n)=>(e.openBlock(),e.createElementBlock("button",t,"测试按钮111"))}};exports.default=o;
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const vue = require("vue");
4
+ ;/* empty css */
5
+ const _hoisted_1 = { class: "btn" };
6
+ const _sfc_main = {
7
+ __name: "button",
8
+ setup(__props) {
9
+ return (_ctx, _cache) => {
10
+ return vue.openBlock(), vue.createElementBlock("button", _hoisted_1, "测试按钮111");
11
+ };
12
+ }
13
+ };
14
+ exports.default = _sfc_main;
@@ -1 +1,7 @@
1
- "use strict";const t=require("./button.vue.js"),e=require("../../utils/install.js");e.default.withInstall("Button",t.default);
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const button = require("./button.vue.js");
4
+ const install = require("../../utils/install.js");
5
+ const Button = install.default.withInstall("Button", button.default);
6
+ exports.Button = Button;
7
+ exports.default = Button;
@@ -1 +1,14 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */const t={class:"btn"},o={__name:"button",setup(r){return(u,n)=>(e.openBlock(),e.createElementBlock("button",t,"测试按钮22"))}};exports.default=o;
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const vue = require("vue");
4
+ ;/* empty css */
5
+ const _hoisted_1 = { class: "btn" };
6
+ const _sfc_main = {
7
+ __name: "button",
8
+ setup(__props) {
9
+ return (_ctx, _cache) => {
10
+ return vue.openBlock(), vue.createElementBlock("button", _hoisted_1, "测试按钮22");
11
+ };
12
+ }
13
+ };
14
+ exports.default = _sfc_main;
@@ -1 +1,7 @@
1
- "use strict";const t=require("./button.vue.js"),e=require("../../utils/install.js");e.default.withInstall("Button2",t.default);
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const button = require("./button.vue.js");
4
+ const install = require("../../utils/install.js");
5
+ const picker = install.default.withInstall("Picker", button.default);
6
+ exports.default = picker;
7
+ exports.picker = picker;
@@ -1 +1,6 @@
1
- "use strict";require("./button/index.js");require("./button2/index.js");
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const index = require("./button/index.js");
4
+ const index$1 = require("./button2/index.js");
5
+ exports.Button = index.Button;
6
+ exports.picker = index$1.picker;
@@ -1 +1,12 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s={withInstall:function(t,e){return t=t.charAt(0).toUpperCase()+t.slice(1),e.install=l=>{l.component("Fec"+t,e)},e}};exports.default=s;
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const install = {
4
+ withInstall: function(name, comp) {
5
+ name = name.charAt(0).toUpperCase() + name.slice(1);
6
+ comp.install = (app) => {
7
+ app.component("Fec" + name, comp);
8
+ };
9
+ return comp;
10
+ }
11
+ };
12
+ exports.default = install;
package/lib/vue.css CHANGED
@@ -1 +1,6 @@
1
- .btn{color:red}.btn{color:#00f}
1
+ .btn {
2
+ color: red;
3
+ }
4
+ .btn {
5
+ color: blue;
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fecp/vue",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.mjs",
6
6
  "files": [
@@ -11,7 +11,7 @@
11
11
  "publish": "npm publish --access public"
12
12
  },
13
13
  "keywords": [
14
- "fec",
14
+ "fecp",
15
15
  "vue3组件库"
16
16
  ],
17
17
  "sideEffects": [