@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 +11 -6
- package/es/src/components/button/button.vue.mjs +8 -5
- package/es/src/components/button/index.mjs +7 -3
- package/es/src/components/button2/button.vue.mjs +8 -5
- package/es/src/components/button2/index.mjs +7 -3
- package/es/src/components/index.mjs +6 -2
- package/es/src/utils/install.mjs +8 -6
- package/es/vue.css +6 -1
- package/lib/index.js +15 -1
- package/lib/src/components/button/button.vue.js +14 -1
- package/lib/src/components/button/index.js +7 -1
- package/lib/src/components/button2/button.vue.js +14 -1
- package/lib/src/components/button2/index.js +7 -1
- package/lib/src/components/index.js +6 -1
- package/lib/src/utils/install.js +12 -1
- package/lib/vue.css +6 -1
- package/package.json +2 -2
package/es/index.mjs
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
12
|
+
Button,
|
|
13
|
+
index as default,
|
|
14
|
+
picker
|
|
10
15
|
};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { createElementBlock
|
|
1
|
+
import { createElementBlock, openBlock } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
|
-
const
|
|
3
|
+
const _hoisted_1 = { class: "btn" };
|
|
4
|
+
const _sfc_main = {
|
|
4
5
|
__name: "button",
|
|
5
|
-
setup(
|
|
6
|
-
return (
|
|
6
|
+
setup(__props) {
|
|
7
|
+
return (_ctx, _cache) => {
|
|
8
|
+
return openBlock(), createElementBlock("button", _hoisted_1, "测试按钮111");
|
|
9
|
+
};
|
|
7
10
|
}
|
|
8
11
|
};
|
|
9
12
|
export {
|
|
10
|
-
|
|
13
|
+
_sfc_main as default
|
|
11
14
|
};
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
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
|
|
1
|
+
import { createElementBlock, openBlock } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
|
-
const
|
|
3
|
+
const _hoisted_1 = { class: "btn" };
|
|
4
|
+
const _sfc_main = {
|
|
4
5
|
__name: "button",
|
|
5
|
-
setup(
|
|
6
|
-
return (
|
|
6
|
+
setup(__props) {
|
|
7
|
+
return (_ctx, _cache) => {
|
|
8
|
+
return openBlock(), createElementBlock("button", _hoisted_1, "测试按钮22");
|
|
9
|
+
};
|
|
7
10
|
}
|
|
8
11
|
};
|
|
9
12
|
export {
|
|
10
|
-
|
|
13
|
+
_sfc_main as default
|
|
11
14
|
};
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
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
|
+
};
|
package/es/src/utils/install.mjs
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
const
|
|
2
|
-
withInstall: function(
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
11
|
+
install as default
|
|
10
12
|
};
|
package/es/vue.css
CHANGED
package/lib/index.js
CHANGED
|
@@ -1 +1,15 @@
|
|
|
1
|
-
"use strict";
|
|
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";
|
|
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";
|
|
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";
|
|
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";
|
|
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";
|
|
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;
|
package/lib/src/utils/install.js
CHANGED
|
@@ -1 +1,12 @@
|
|
|
1
|
-
"use strict";
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fecp/vue",
|
|
3
|
-
"version": "1.0.
|
|
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
|
-
"
|
|
14
|
+
"fecp",
|
|
15
15
|
"vue3组件库"
|
|
16
16
|
],
|
|
17
17
|
"sideEffects": [
|