fo-vue-ui 0.0.1 → 0.0.3

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/fo-vue-ui.js CHANGED
@@ -1,21 +1,21 @@
1
1
  import { createElementBlock as s, openBlock as a } from "vue";
2
- const i = (e, c) => {
3
- const o = e.__vccOpts || e;
4
- for (const [t, n] of c)
5
- o[t] = n;
6
- return o;
2
+ const i = (e, o) => {
3
+ const c = e.__vccOpts || e;
4
+ for (const [n, t] of o)
5
+ c[n] = t;
6
+ return c;
7
7
  }, p = { class: "ceshicomp" }, r = {
8
8
  __name: "ceshicomp",
9
9
  props: { name: "ceshicomp" },
10
10
  setup(e) {
11
- return (c, o) => (a(), s("div", p, "123"));
11
+ return (o, c) => (a(), s("div", p, "123"));
12
12
  }
13
- }, _ = /* @__PURE__ */ i(r, [["__scopeId", "data-v-80063cdc"]]), m = [_], d = (e) => {
14
- m.forEach((c) => {
15
- c.name && e.component(c.name, c);
13
+ }, _ = /* @__PURE__ */ i(r, [["__scopeId", "data-v-80063cdc"]]), m = [_], l = (e) => {
14
+ m.forEach((o) => {
15
+ console.log("install component", o.name), o.name && e.component(o.name, o);
16
16
  });
17
17
  };
18
- typeof window < "u" && "Vue" in window && d(window.Vue);
18
+ typeof window < "u" && "Vue" in window && l(window.Vue);
19
19
  export {
20
- d as default
20
+ l as default
21
21
  };
@@ -1 +1 @@
1
- (function(e,o){typeof exports=="object"&&typeof module<"u"?module.exports=o(require("vue")):typeof define=="function"&&define.amd?define(["vue"],o):(e=typeof globalThis<"u"?globalThis:e||self,e["fo-vue-ui"]=o(e.Vue))})(this,(function(e){"use strict";const o=(c,n)=>{const t=c.__vccOpts||c;for(const[p,u]of n)t[p]=u;return t},i={class:"ceshicomp"},f=[o({__name:"ceshicomp",props:{name:"ceshicomp"},setup(c){return(n,t)=>(e.openBlock(),e.createElementBlock("div",i,"123"))}},[["__scopeId","data-v-80063cdc"]])],s=c=>{f.forEach(n=>{n.name&&c.component(n.name,n)})};return typeof window<"u"&&"Vue"in window&&s(window.Vue),s}));
1
+ (function(e,o){typeof exports=="object"&&typeof module<"u"?module.exports=o(require("vue")):typeof define=="function"&&define.amd?define(["vue"],o):(e=typeof globalThis<"u"?globalThis:e||self,e["fo-vue-ui"]=o(e.Vue))})(this,(function(e){"use strict";const o=(c,n)=>{const t=c.__vccOpts||c;for(const[p,u]of n)t[p]=u;return t},i={class:"ceshicomp"},f=[o({__name:"ceshicomp",props:{name:"ceshicomp"},setup(c){return(n,t)=>(e.openBlock(),e.createElementBlock("div",i,"123"))}},[["__scopeId","data-v-80063cdc"]])],s=c=>{f.forEach(n=>{console.log("install component",n.name),n.name&&c.component(n.name,n)})};return typeof window<"u"&&"Vue"in window&&s(window.Vue),s}));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "fo-vue-ui",
3
3
  "private": false,
4
- "version": "0.0.1",
4
+ "version": "0.0.3",
5
5
  "type": "module",
6
6
  "main": "dist/fo-vue-ui.umd.cjs",
7
7
  "scripts": {
@@ -13,12 +13,12 @@
13
13
  "vue": "^3.5.24"
14
14
  },
15
15
  "devDependencies": {
16
- "@types/node": "^24.10.1",
17
- "@vitejs/plugin-vue": "^6.0.1",
16
+ "@types/node": "^18.17.5",
17
+ "@vitejs/plugin-vue": "^4.3.1",
18
18
  "@vue/tsconfig": "^0.8.1",
19
19
  "sass": "^1.77.8",
20
- "typescript": "~5.9.3",
21
- "vite": "^7.2.4",
22
- "vue-tsc": "^3.1.4"
20
+ "typescript": "^5.1.6",
21
+ "vite": "^4.4.9",
22
+ "vue-tsc": "^2.0.29"
23
23
  }
24
24
  }
package/src/App.vue CHANGED
@@ -1,3 +1,9 @@
1
- <template></template>
2
- <script setup lang="ts"></script>
1
+ <template>
2
+ <div class="app">
3
+ <ceshicomp></ceshicomp>
4
+ </div>
5
+ </template>
6
+ <script setup lang="ts">
7
+ import ceshicomp from "./components/ceshicomp/ceshicomp.vue"
8
+ </script>
3
9
  <style scoped></style>
@@ -5,6 +5,7 @@ const components = [ceshicomp]
5
5
 
6
6
  const install = (app: App) => {
7
7
  components.forEach((component) => {
8
+ console.log("install component", component.name)
8
9
  if (component.name) {
9
10
  app.component(component.name, component)
10
11
  }
@@ -0,0 +1 @@
1
+ {"root":["./src/main.ts","./src/vue.d.ts","./src/components/index.ts","./src/app.vue","./src/components/ceshicomp/ceshicomp.vue"],"version":"5.9.3"}
@@ -0,0 +1 @@
1
+ {"root":["./vite.config.ts"],"version":"5.9.3"}