yuang-framework-ui-pc 1.0.13 → 1.0.14
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,24 +1,77 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as d, getCurrentInstance as i, openBlock as l, createElementBlock as m, createElementVNode as y, resolveComponent as u, createBlock as x, withCtx as e, createVNode as o, createTextVNode as c } from "vue";
|
|
2
|
+
const g = /* @__PURE__ */ d({
|
|
3
3
|
__name: "index",
|
|
4
|
-
setup(
|
|
5
|
-
const { proxy: t } =
|
|
4
|
+
setup(a) {
|
|
5
|
+
const { proxy: t } = i(), r = () => {
|
|
6
6
|
t.$message.success("我是测试按钮");
|
|
7
7
|
};
|
|
8
|
-
return (
|
|
9
|
-
|
|
8
|
+
return (s, _) => (l(), m("div", null, [
|
|
9
|
+
y("button", { onClick: r }, "我是测试按钮")
|
|
10
10
|
]));
|
|
11
11
|
}
|
|
12
|
-
}), p = (
|
|
13
|
-
const
|
|
14
|
-
for (const [
|
|
15
|
-
|
|
16
|
-
return
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
|
|
12
|
+
}), p = (a, t) => {
|
|
13
|
+
const r = a.__vccOpts || a;
|
|
14
|
+
for (const [s, _] of t)
|
|
15
|
+
r[s] = _;
|
|
16
|
+
return r;
|
|
17
|
+
}, k = /* @__PURE__ */ p(g, [["__scopeId", "data-v-6a1b9529"]]), w = {
|
|
18
|
+
name: "YuRow"
|
|
19
|
+
};
|
|
20
|
+
function $(a, t, r, s, _, B) {
|
|
21
|
+
const n = u("el-button"), f = u("el-row");
|
|
22
|
+
return l(), x(f, { class: "mb-4" }, {
|
|
23
|
+
default: e(() => [
|
|
24
|
+
o(n, null, {
|
|
25
|
+
default: e(() => [
|
|
26
|
+
c("Default")
|
|
27
|
+
]),
|
|
28
|
+
_: 1
|
|
29
|
+
}),
|
|
30
|
+
o(n, { type: "primary" }, {
|
|
31
|
+
default: e(() => [
|
|
32
|
+
c("Primary")
|
|
33
|
+
]),
|
|
34
|
+
_: 1
|
|
35
|
+
}),
|
|
36
|
+
o(n, { type: "success" }, {
|
|
37
|
+
default: e(() => [
|
|
38
|
+
c("Success")
|
|
39
|
+
]),
|
|
40
|
+
_: 1
|
|
41
|
+
}),
|
|
42
|
+
o(n, { type: "info" }, {
|
|
43
|
+
default: e(() => [
|
|
44
|
+
c("Info")
|
|
45
|
+
]),
|
|
46
|
+
_: 1
|
|
47
|
+
}),
|
|
48
|
+
o(n, { type: "warning" }, {
|
|
49
|
+
default: e(() => [
|
|
50
|
+
c("Warning")
|
|
51
|
+
]),
|
|
52
|
+
_: 1
|
|
53
|
+
}),
|
|
54
|
+
o(n, { type: "danger" }, {
|
|
55
|
+
default: e(() => [
|
|
56
|
+
c("Danger")
|
|
57
|
+
]),
|
|
58
|
+
_: 1
|
|
59
|
+
}),
|
|
60
|
+
o(n, null, {
|
|
61
|
+
default: e(() => [
|
|
62
|
+
c("中文")
|
|
63
|
+
]),
|
|
64
|
+
_: 1
|
|
65
|
+
})
|
|
66
|
+
]),
|
|
67
|
+
_: 1
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
const b = /* @__PURE__ */ p(w, [["render", $]]), v = [k, b], h = function(a) {
|
|
71
|
+
v.forEach((t) => {
|
|
72
|
+
a.component(t.name, t);
|
|
20
73
|
});
|
|
21
74
|
};
|
|
22
75
|
export {
|
|
23
|
-
|
|
76
|
+
h as default
|
|
24
77
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,
|
|
1
|
+
(function(e,c){typeof exports=="object"&&typeof module<"u"?module.exports=c(require("vue")):typeof define=="function"&&define.amd?define(["vue"],c):(e=typeof globalThis<"u"?globalThis:e||self,e["yuang-framework-ui-pc"]=c(e.Vue))})(this,function(e){"use strict";const c=e.defineComponent({__name:"index",setup(o){const{proxy:t}=e.getCurrentInstance(),r=()=>{t.$message.success("我是测试按钮")};return(a,s)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("button",{onClick:r},"我是测试按钮")]))}}),d=(o,t)=>{const r=o.__vccOpts||o;for(const[a,s]of t)r[a]=s;return r},i=d(c,[["__scopeId","data-v-6a1b9529"]]),l={name:"YuRow"};function _(o,t,r,a,s,u){const n=e.resolveComponent("el-button"),p=e.resolveComponent("el-row");return e.openBlock(),e.createBlock(p,{class:"mb-4"},{default:e.withCtx(()=>[e.createVNode(n,null,{default:e.withCtx(()=>[e.createTextVNode("Default")]),_:1}),e.createVNode(n,{type:"primary"},{default:e.withCtx(()=>[e.createTextVNode("Primary")]),_:1}),e.createVNode(n,{type:"success"},{default:e.withCtx(()=>[e.createTextVNode("Success")]),_:1}),e.createVNode(n,{type:"info"},{default:e.withCtx(()=>[e.createTextVNode("Info")]),_:1}),e.createVNode(n,{type:"warning"},{default:e.withCtx(()=>[e.createTextVNode("Warning")]),_:1}),e.createVNode(n,{type:"danger"},{default:e.withCtx(()=>[e.createTextVNode("Danger")]),_:1}),e.createVNode(n,null,{default:e.withCtx(()=>[e.createTextVNode("中文")]),_:1})]),_:1})}const f=[i,d(l,[["render",_]])];return function(o){f.forEach(t=>{o.component(t.name,t)})}});
|
package/package.json
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-row class="mb-4">
|
|
3
|
+
<el-button>Default</el-button>
|
|
4
|
+
<el-button type="primary">Primary</el-button>
|
|
5
|
+
<el-button type="success">Success</el-button>
|
|
6
|
+
<el-button type="info">Info</el-button>
|
|
7
|
+
<el-button type="warning">Warning</el-button>
|
|
8
|
+
<el-button type="danger">Danger</el-button>
|
|
9
|
+
<el-button>中文</el-button>
|
|
10
|
+
</el-row>
|
|
11
|
+
</template>
|
|
12
|
+
<script>
|
|
13
|
+
export default {
|
|
14
|
+
name: 'YuRow'
|
|
15
|
+
}
|
|
16
|
+
</script>
|
package/src/packages/index.ts
CHANGED