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.
- package/dist/houwenjian.es.js +23 -18
- package/dist/houwenjian.umd.js +1 -1
- package/dist/style.css +1 -0
- package/package.json +12 -8
- package/src/test.vue +12 -2
- package/vite.config.js +1 -1
package/dist/houwenjian.es.js
CHANGED
|
@@ -1,22 +1,27 @@
|
|
|
1
|
-
import { openBlock as
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
for (const [
|
|
5
|
-
|
|
6
|
-
return
|
|
7
|
-
}, d = {}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
|
|
21
|
-
|
|
25
|
+
p as RichEditor,
|
|
26
|
+
m as default
|
|
22
27
|
};
|
package/dist/houwenjian.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e
|
|
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.
|
|
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
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
|
|
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