yuang-framework-ui-pc 1.0.13 → 1.0.15

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 s, getCurrentInstance as r, openBlock as a, createElementBlock as _, createElementVNode as u } from "vue";
2
- const l = /* @__PURE__ */ s({
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(n) {
5
- const { proxy: t } = r(), e = () => {
4
+ setup(a) {
5
+ const { proxy: t } = i(), r = () => {
6
6
  t.$message.success("我是测试按钮");
7
7
  };
8
- return (o, c) => (a(), _("div", null, [
9
- u("button", { onClick: e }, "我是测试按钮")
8
+ return (s, _) => (l(), m("div", null, [
9
+ y("button", { onClick: r }, "我是测试按钮")
10
10
  ]));
11
11
  }
12
- }), p = (n, t) => {
13
- const e = n.__vccOpts || n;
14
- for (const [o, c] of t)
15
- e[o] = c;
16
- return e;
17
- }, m = /* @__PURE__ */ p(l, [["__scopeId", "data-v-6a1b9529"]]), i = [m], d = function(n) {
18
- i.forEach((t) => {
19
- n.component(t.name, t);
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
- d as default
76
+ h as default
24
77
  };
@@ -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["yuang-framework-ui-pc"]=o(e.Vue))})(this,function(e){"use strict";const i=[((t,n)=>{const c=t.__vccOpts||t;for(const[s,u]of n)c[s]=u;return c})(e.defineComponent({__name:"index",setup(t){const{proxy:n}=e.getCurrentInstance(),c=()=>{n.$message.success("我是测试按钮")};return(s,u)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("button",{onClick:c},"我是测试按钮")]))}}),[["__scopeId","data-v-6a1b9529"]])];return function(t){i.forEach(n=>{t.component(n.name,n)})}});
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yuang-framework-ui-pc",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -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>
@@ -1,7 +1,8 @@
1
1
  // 引入封装好的组件
2
2
  import YuButton from "./YuButton/index.vue";
3
+ import YuRow from "./YuRow/index.vue";
3
4
  // 将来如果有其它组件,都可以写到这个数组里
4
- const components = [ YuButton ];
5
+ const components = [ YuButton, YuRow ];
5
6
 
6
7
  // 批量组件注册
7
8
  const install = function (Vue) {