houwenjian 1.0.9 → 1.0.10

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,26 +1,27 @@
1
- import { ref as c, openBlock as _, createElementBlock as r, createElementVNode as o } from "vue";
2
- const u = (t, n) => {
3
- const e = t.__vccOpts || t;
4
- for (const [l, s] of n)
5
- e[l] = s;
6
- return e;
7
- }, d = {
1
+ import { ref as _, openBlock as r, createElementBlock as a, createElementVNode as o, toDisplayString as c } from "vue";
2
+ const u = (e, n) => {
3
+ const s = e.__vccOpts || e;
4
+ for (const [t, l] of n)
5
+ s[t] = l;
6
+ return s;
7
+ }, d = { class: "buttons" }, i = {
8
8
  __name: "test",
9
- setup(t) {
10
- return c("hello world"), (n, e) => (_(), r("div", null, [...e[0] || (e[0] = [
11
- o("h2", null, "npm module test", -1),
12
- o("h2", null, "作者 侯文建", -1),
9
+ setup(e) {
10
+ const n = _("hello world");
11
+ return (s, t) => (r(), a("div", null, [
12
+ t[0] || (t[0] = o("h2", null, "npm module test", -1)),
13
+ t[1] || (t[1] = o("h2", null, "作者 侯文建", -1)),
13
14
  o("div", null, [
14
- o("button", { class: "buttons" }, "提交")
15
- ], -1)
16
- ])]));
15
+ o("button", d, c(n.value), 1)
16
+ ])
17
+ ]));
17
18
  }
18
- }, p = /* @__PURE__ */ u(d, [["__scopeId", "data-v-3254c07f"]]), i = {
19
- install(t) {
20
- t.component("RichEditor", p);
19
+ }, p = /* @__PURE__ */ u(i, [["__scopeId", "data-v-4a4b3aff"]]), m = {
20
+ install(e) {
21
+ e.component("RichEditor", p);
21
22
  }
22
23
  };
23
24
  export {
24
25
  p as RichEditor,
25
- i as default
26
+ m as default
26
27
  };
@@ -1 +1 @@
1
- (function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.houwenjian={},t.Vue))})(this,function(t,e){"use strict";const r="",s=((n,c)=>{const o=n.__vccOpts||n;for(const[i,d]of c)o[i]=d;return o})({__name:"test",setup(n){return e.ref("hello world"),(c,o)=>(e.openBlock(),e.createElementBlock("div",null,[...o[0]||(o[0]=[e.createElementVNode("h2",null,"npm module test",-1),e.createElementVNode("h2",null,"作者 侯文建",-1),e.createElementVNode("div",null,[e.createElementVNode("button",{class:"buttons"},"提交")],-1)])]))}},[["__scopeId","data-v-3254c07f"]]),l={install(n){n.component("RichEditor",s)}};t.RichEditor=s,t.default=l,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.houwenjian={},t.Vue))})(this,function(t,e){"use strict";const _="",d=(o,s)=>{const i=o.__vccOpts||o;for(const[n,u]of s)i[n]=u;return i},r={class:"buttons"},l=d({__name:"test",setup(o){const s=e.ref("hello world");return(i,n)=>(e.openBlock(),e.createElementBlock("div",null,[n[0]||(n[0]=e.createElementVNode("h2",null,"npm module test",-1)),n[1]||(n[1]=e.createElementVNode("h2",null,"作者 侯文建",-1)),e.createElementVNode("div",null,[e.createElementVNode("button",r,e.toDisplayString(s.value),1)])]))}},[["__scopeId","data-v-4a4b3aff"]]),c={install(o){o.component("RichEditor",l)}};t.RichEditor=l,t.default=c,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .buttons[data-v-3254c07f]{color:red}
1
+ .buttons[data-v-4a4b3aff]{color:red}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houwenjian",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "Vue-based npm package built with Vite (JavaScript version)",
5
5
  "main": "dist/houwenjian.umd.js",
6
6
  "module": "dist/houwenjian.es.js",
package/src/test.vue CHANGED
@@ -3,7 +3,7 @@
3
3
  <h2>npm module test</h2>
4
4
  <h2>作者 侯文建</h2>
5
5
  <div>
6
- <button class="buttons">提交</button>
6
+ <button class="buttons">{{ message }}</button>
7
7
  </div>
8
8
  </div>
9
9
  </template>