fancy-plugins-components 1.0.16 → 1.0.19
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/es/components.d.ts +1 -1
- package/dist/es/components.js +1 -1
- package/dist/es/{button/button.vue.js → fancy-button/index.vue.js} +6 -6
- package/dist/es/fancy-button/index.vue2.js +4 -0
- package/dist/es/fancy-button/styles/index.js +2 -0
- package/dist/es/index.d.ts +1 -0
- package/dist/es/index.js +6 -4
- package/dist/es/styles/index.scss +1 -1
- package/dist/es/types.d.ts +1 -1
- package/dist/es/utils/resolvers.js +26 -0
- package/package.json +10 -2
- package/dist/es/button/button.vue2.js +0 -4
- package/dist/es/button/styles/index.d.ts +0 -0
- /package/dist/es/{button/button.vue.d.ts → fancy-button/index.vue.d.ts} +0 -0
- /package/dist/es/{button → fancy-button}/styles/index.scss +0 -0
- /package/dist/es/{button → fancy-button}/types.d.ts +0 -0
package/dist/es/components.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as FancyButton } from './button/
|
|
1
|
+
export { default as FancyButton } from './fancy-button/index.vue';
|
package/dist/es/components.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as e, createBlock as
|
|
1
|
+
import { defineComponent as e, createBlock as n, openBlock as o, unref as r, withCtx as p, createTextVNode as a } from "vue";
|
|
2
2
|
import { ElButton as s } from "element-plus";
|
|
3
|
-
const
|
|
3
|
+
const c = /* @__PURE__ */ e({
|
|
4
4
|
name: "FancyButton",
|
|
5
|
-
__name: "
|
|
5
|
+
__name: "index",
|
|
6
6
|
props: {
|
|
7
7
|
type: {},
|
|
8
8
|
size: {},
|
|
9
9
|
loading: {}
|
|
10
10
|
},
|
|
11
|
-
setup(
|
|
12
|
-
return (m, t) => (
|
|
11
|
+
setup(i) {
|
|
12
|
+
return (m, t) => (o(), n(r(s), { class: "test_btn" }, {
|
|
13
13
|
default: p(() => [...t[0] || (t[0] = [
|
|
14
14
|
a("123", -1)
|
|
15
15
|
])]),
|
|
@@ -18,5 +18,5 @@ const f = /* @__PURE__ */ e({
|
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
export {
|
|
21
|
-
|
|
21
|
+
c as default
|
|
22
22
|
};
|
package/dist/es/index.d.ts
CHANGED
package/dist/es/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { installer as t } from "./installer.js";
|
|
2
|
+
import { FancyComponentsResolver as a } from "./utils/resolvers.js";
|
|
3
|
+
import { default as f } from "./fancy-button/index.vue.js";
|
|
3
4
|
export {
|
|
4
|
-
|
|
5
|
-
a as
|
|
5
|
+
f as FancyButton,
|
|
6
|
+
a as FancyComponentsResolver,
|
|
7
|
+
t as default
|
|
6
8
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@use '../button/styles/index.scss';
|
|
1
|
+
@use '../fancy-button/styles/index.scss';
|
package/dist/es/types.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './button/types';
|
|
1
|
+
export * from './fancy-button/types';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
function i(e, t) {
|
|
2
|
+
const n = t?.importStyle;
|
|
3
|
+
if (n)
|
|
4
|
+
return n === "css" ? `${e}/style/css` : `${e}/style/index`;
|
|
5
|
+
}
|
|
6
|
+
function u(e, t, n) {
|
|
7
|
+
return n ? `${t}${n}/${e}` : `${t}/es/${e}`;
|
|
8
|
+
}
|
|
9
|
+
function f(e) {
|
|
10
|
+
return {
|
|
11
|
+
type: "component",
|
|
12
|
+
resolve: (t) => {
|
|
13
|
+
const { path: n, exclude: c } = e || {};
|
|
14
|
+
if (t.match(/^Fancy[A-Z]/) && !c?.includes?.(t)) {
|
|
15
|
+
const r = "fancy-plugins-components", s = t.replace(/([A-Z])/g, " $1").trim().split(" ").join("-").toLowerCase(), o = u(s, r, n);
|
|
16
|
+
return {
|
|
17
|
+
from: `${r}${n}/${s}/index.vue`,
|
|
18
|
+
sideEffects: i(o, e)
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
f as FancyComponentsResolver
|
|
26
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fancy-plugins-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.19",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/es/index.js",
|
|
6
6
|
"module": "./dist/es/index.js",
|
|
@@ -18,8 +18,14 @@
|
|
|
18
18
|
"dist"
|
|
19
19
|
],
|
|
20
20
|
"scripts": {
|
|
21
|
-
"build": "vite build"
|
|
21
|
+
"build": "vite build && node build/copy-styles.ts"
|
|
22
22
|
},
|
|
23
|
+
"sideEffects": [
|
|
24
|
+
"*.css",
|
|
25
|
+
"*.scss",
|
|
26
|
+
"dist/es/*",
|
|
27
|
+
"dis/es/*/style/**"
|
|
28
|
+
],
|
|
23
29
|
"keywords": [],
|
|
24
30
|
"author": "",
|
|
25
31
|
"license": "ISC",
|
|
@@ -28,6 +34,8 @@
|
|
|
28
34
|
"element-plus": "^2.13.0"
|
|
29
35
|
},
|
|
30
36
|
"devDependencies": {
|
|
37
|
+
"fast-glob": "^3.3.3",
|
|
38
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
31
39
|
"sass": "^1.97.1",
|
|
32
40
|
"vite-plugin-static-copy": "^3.1.4"
|
|
33
41
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|