houwenjian 1.0.8 → 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,22 +1,27 @@
1
- import { openBlock as l, createElementBlock as s, createElementVNode as o } from "vue";
2
- const i = (t, e) => {
3
- const n = t.__vccOpts || t;
4
- for (const [r, c] of e)
5
- n[r] = c;
6
- return n;
7
- }, d = {};
8
- function m(t, e) {
9
- return l(), s("div", null, [...e[0] || (e[0] = [
10
- o("h2", null, "npm module test", -1),
11
- o("h2", null, "作者 侯文建", -1)
12
- ])]);
13
- }
14
- const u = /* @__PURE__ */ i(d, [["render", m]]), a = {
15
- install(t) {
16
- t.component("RichEditor", u);
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
+ __name: "test",
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)),
14
+ o("div", null, [
15
+ o("button", d, c(n.value), 1)
16
+ ])
17
+ ]));
18
+ }
19
+ }, p = /* @__PURE__ */ u(i, [["__scopeId", "data-v-4a4b3aff"]]), m = {
20
+ install(e) {
21
+ e.component("RichEditor", p);
17
22
  }
18
23
  };
19
24
  export {
20
- u as RichEditor,
21
- a as default
25
+ p as RichEditor,
26
+ m as default
22
27
  };
@@ -1 +1 @@
1
- (function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.houwenjian={},e.Vue))})(this,function(e,t){"use strict";const d=(n,o)=>{const c=n.__vccOpts||n;for(const[s,f]of o)c[s]=f;return c},r={};function u(n,o){return t.openBlock(),t.createElementBlock("div",null,[...o[0]||(o[0]=[t.createElementVNode("h2",null,"npm module test",-1),t.createElementVNode("h2",null,"作者 侯文建",-1)])])}const i=d(r,[["render",u]]),l={install(n){n.component("RichEditor",i)}};e.RichEditor=i,e.default=l,Object.defineProperties(e,{__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 ADDED
@@ -0,0 +1 @@
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.8",
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",
@@ -24,13 +24,17 @@
24
24
  "author": "HOU WEN JIAN",
25
25
  "license": "ISC",
26
26
  "vitest": {
27
- "coverage": {
28
- "reporter": ["text", "json", "html"],
29
- "thresholds": {
30
- "functions": 100,
31
- "branches": 100,
32
- "lines": 100
27
+ "coverage": {
28
+ "reporter": [
29
+ "text",
30
+ "json",
31
+ "html"
32
+ ],
33
+ "thresholds": {
34
+ "functions": 100,
35
+ "branches": 100,
36
+ "lines": 100
37
+ }
33
38
  }
34
39
  }
35
- }
36
40
  }
package/src/test.vue CHANGED
@@ -2,8 +2,18 @@
2
2
  <div>
3
3
  <h2>npm module test</h2>
4
4
  <h2>作者 侯文建</h2>
5
+ <div>
6
+ <button class="buttons">{{ message }}</button>
7
+ </div>
5
8
  </div>
6
9
  </template>
7
10
  <script setup>
8
-
9
- </script>
11
+ import { ref } from 'vue';
12
+ const message = ref("hello world")
13
+ </script>
14
+
15
+ <style scoped>
16
+ .buttons{
17
+ color:red;
18
+ }
19
+ </style>
package/vite.config.js CHANGED
@@ -22,4 +22,4 @@ export default defineConfig({
22
22
  environment: 'jsdom', // 配置测试环境为JSDOM
23
23
  globals: true
24
24
  }
25
- });
25
+ });