sinosoft-common-button 1.0.5 → 1.0.7

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,16 +1,16 @@
1
- import { openBlock as d, createElementBlock as c, createElementVNode as p, defineComponent as g, resolveComponent as u, createVNode as r, normalizeClass as $, normalizeStyle as f, withCtx as l, createCommentVNode as _, renderSlot as S, createBlock as z, createTextVNode as n } from "vue";
1
+ import { openBlock as l, createElementBlock as d, createElementVNode as a, defineComponent as _, resolveComponent as n, createVNode as c, normalizeClass as m, normalizeStyle as s, withCtx as f, createCommentVNode as u, renderSlot as S, createBlock as $ } from "vue";
2
2
  /*! Element Plus Icons Vue v2.1.0 */
3
- var k = (e, t) => {
3
+ var F = (e, t) => {
4
4
  let o = e.__vccOpts || e;
5
- for (let [i, s] of t)
6
- o[i] = s;
5
+ for (let [r, i] of t)
6
+ o[r] = i;
7
7
  return o;
8
- }, F = {
8
+ }, v = {
9
9
  name: "Loading"
10
- }, B = {
10
+ }, w = {
11
11
  xmlns: "http://www.w3.org/2000/svg",
12
12
  viewBox: "0 0 1024 1024"
13
- }, w = /* @__PURE__ */ p(
13
+ }, z = /* @__PURE__ */ a(
14
14
  "path",
15
15
  {
16
16
  fill: "currentColor",
@@ -19,17 +19,17 @@ var k = (e, t) => {
19
19
  null,
20
20
  -1
21
21
  /* HOISTED */
22
- ), D = [
23
- w
22
+ ), x = [
23
+ z
24
24
  ];
25
- function E(e, t, o, i, s, y) {
26
- return d(), c("svg", B, D);
25
+ function D(e, t, o, r, i, g) {
26
+ return l(), d("svg", w, x);
27
27
  }
28
- var L = /* @__PURE__ */ k(F, [["render", E], ["__file", "loading.vue"]]);
29
- const x = g({
28
+ var k = /* @__PURE__ */ F(v, [["render", D], ["__file", "loading.vue"]]);
29
+ const E = _({
30
30
  components: {
31
31
  // sIcon,
32
- Loading: L
32
+ Loading: k
33
33
  },
34
34
  props: {
35
35
  plain: {
@@ -44,10 +44,32 @@ const x = g({
44
44
  type: Boolean,
45
45
  default: !1
46
46
  },
47
+ // 弹窗提交按钮
48
+ primaryDialog: {
49
+ type: Boolean,
50
+ default: !1
51
+ },
52
+ // 普通提交
53
+ primaryOrdinary: {
54
+ type: Boolean,
55
+ default: !1
56
+ },
47
57
  info: {
48
58
  type: Boolean,
49
59
  default: !1
50
60
  },
61
+ infoDialog: {
62
+ type: Boolean,
63
+ default: !1
64
+ },
65
+ infoOrdinary: {
66
+ type: Boolean,
67
+ default: !1
68
+ },
69
+ btnCode: {
70
+ type: String,
71
+ default: ""
72
+ },
51
73
  circle: {
52
74
  type: String,
53
75
  default: ""
@@ -96,32 +118,88 @@ const x = g({
96
118
  borderWidth: "1px",
97
119
  borderStyle: `${this.borderStyle}`,
98
120
  borderColor: `${this.color || "#216FED"}`,
99
- color: this.color || "#216FED"
121
+ color: this.color || "#216FED",
122
+ width: this.width,
123
+ height: this.height,
124
+ borderRadius: this.circle
100
125
  } : this.primary ? {
101
126
  background: "#216FED",
102
127
  borderWidth: "1px",
103
128
  borderStyle: `${this.borderStyle}`,
104
129
  borderColor: `${this.color || "#4E6DFD"}`,
105
- color: this.color || "#ffffff"
130
+ color: this.color || "#ffffff",
131
+ width: this.width,
132
+ height: this.height,
133
+ borderRadius: this.circle
134
+ } : this.primaryOrdinary ? {
135
+ background: "#216FED",
136
+ borderWidth: "1px",
137
+ borderStyle: `${this.borderStyle}`,
138
+ borderColor: `${this.color || "#4E6DFD"}`,
139
+ color: this.color || "#ffffff",
140
+ width: "190px",
141
+ height: "52px",
142
+ borderRadius: this.circle,
143
+ fontSize: "16px",
144
+ fontWeight: 600
145
+ } : this.primaryDialog ? {
146
+ width: "176px",
147
+ height: "46px",
148
+ background: "#216FED",
149
+ borderWidth: "1px",
150
+ borderStyle: `${this.borderStyle}`,
151
+ borderColor: `${this.color || "#4E6DFD"}`,
152
+ color: this.color || "#ffffff",
153
+ borderRadius: "8px",
154
+ fontSize: "16px",
155
+ fontWeight: 600
106
156
  } : this.default ? {
107
157
  background: "#ffffff",
108
158
  borderWidth: "1px",
109
159
  borderStyle: `${this.borderStyle}`,
110
160
  borderColor: `${this.color || "#DDE2E6"}`,
111
- color: this.color || "#2C3C4D"
161
+ color: this.color || "#2C3C4D",
162
+ width: this.width,
163
+ height: this.height,
164
+ borderRadius: this.circle
112
165
  } : this.info ? {
113
166
  background: "#C4C4C4",
114
167
  borderWidth: "1px",
115
168
  borderStyle: `${this.borderStyle}`,
116
169
  borderColor: `${this.color || "#C4C4C4"}`,
117
- color: this.color || "#FFFFFF"
170
+ color: this.color || "#FFFFFF",
171
+ width: this.width,
172
+ height: this.height,
173
+ borderRadius: this.circle
174
+ } : this.infoDialog ? {
175
+ width: "190px",
176
+ height: "46px ",
177
+ background: "#C4C4C4",
178
+ borderWidth: "1px",
179
+ borderStyle: `${this.borderStyle}`,
180
+ borderColor: `${this.color || "#C4C4C4"}`,
181
+ color: this.color || "#FFFFFF",
182
+ borderRadius: "8px",
183
+ fontSize: "16px",
184
+ fontWeight: 600
185
+ } : this.infoOrdinary ? {
186
+ width: "176px",
187
+ height: "52px",
188
+ background: "#C4C4C4",
189
+ borderWidth: "1px",
190
+ borderStyle: `${this.borderStyle}`,
191
+ borderColor: `${this.color || "#C4C4C4"}`,
192
+ color: this.color || "#FFFFFF",
193
+ borderRadius: "8px",
194
+ fontSize: "16px",
195
+ fontWeight: 600
118
196
  } : {
119
197
  color: this.color || "#ffffff",
120
198
  background: this.bgColor || "#216FED",
121
199
  borderStyle: `${this.borderStyle}`,
122
200
  borderColor: `${this.color || "#216FED"}`,
123
- height: this.height,
124
201
  width: this.width,
202
+ height: this.height,
125
203
  borderRadius: this.circle
126
204
  };
127
205
  },
@@ -143,113 +221,58 @@ const x = g({
143
221
  }
144
222
  }
145
223
  });
146
- const O = (e, t) => {
224
+ const B = (e, t) => {
147
225
  const o = e.__vccOpts || e;
148
- for (const [i, s] of t)
149
- o[i] = s;
226
+ for (const [r, i] of t)
227
+ o[r] = i;
150
228
  return o;
151
- }, V = {
229
+ }, W = {
152
230
  key: 0,
153
231
  class: "s-icon"
154
- }, N = ["src"];
155
- function j(e, t, o, i, s, y) {
156
- const m = u("Loading"), v = u("el-icon"), C = u("el-button");
157
- return d(), c("div", null, [
158
- r(C, {
159
- class: $(["s-button", { plain: e.plain, btnhover: !e.plain, loading: e.loading }]),
232
+ }, L = ["src"];
233
+ function O(e, t, o, r, i, g) {
234
+ const b = n("Loading"), y = n("el-icon"), C = n("el-button");
235
+ return l(), d("div", null, [
236
+ c(C, {
237
+ class: m(["s-button", { plain: e.plain, btnhover: !e.plain, loading: e.loading }]),
160
238
  disabled: e.loading,
161
- style: f(e.styleOjb),
162
- onClick: t[0] || (t[0] = (H) => e.$emit("handleClick"))
239
+ style: s(e.styleOjb),
240
+ onClick: t[0] || (t[0] = (R) => e.$emit("handleClick")),
241
+ btnCode: e.btnCode
163
242
  }, {
164
- default: l(() => [
165
- e.icon ? (d(), c("i", V, [
166
- p("img", {
243
+ default: f(() => [
244
+ e.icon ? (l(), d("i", W, [
245
+ a("img", {
167
246
  src: e.geturl,
168
247
  alt: "",
169
- style: f(e.styleObject)
170
- }, null, 12, N)
171
- ])) : _("", !0),
172
- p("span", {
173
- style: f({ color: e.color })
248
+ style: s(e.styleObject)
249
+ }, null, 12, L)
250
+ ])) : u("", !0),
251
+ a("span", {
252
+ style: s({ color: e.color })
174
253
  }, [
175
254
  S(e.$slots, "default", {}, void 0, !0)
176
255
  ], 4),
177
- e.loading ? (d(), z(v, {
256
+ e.loading ? (l(), $(y, {
178
257
  key: 1,
179
258
  class: "is-loading",
180
259
  color: e.loadingColor
181
260
  }, {
182
- default: l(() => [
183
- r(m)
261
+ default: f(() => [
262
+ c(b)
184
263
  ]),
185
264
  _: 1
186
- }, 8, ["color"])) : _("", !0)
265
+ }, 8, ["color"])) : u("", !0)
187
266
  ]),
188
267
  _: 3
189
- }, 8, ["class", "disabled", "style"])
268
+ }, 8, ["class", "disabled", "style", "btnCode"])
190
269
  ]);
191
270
  }
192
- const a = /* @__PURE__ */ O(x, [["render", j], ["__scopeId", "data-v-22aae99b"]]), W = { class: "table-button" }, b = /* @__PURE__ */ g({
193
- __name: "index",
194
- setup(e) {
195
- const t = () => {
196
- console.log(11111);
197
- };
198
- return (o, i) => (d(), c("div", W, [
199
- r(a, {
200
- plain: "",
201
- icon: "icon-add",
202
- size: 16,
203
- loading: !0,
204
- onHandleClick: t
205
- }, {
206
- default: l(() => [
207
- n("提交")
208
- ]),
209
- _: 1
210
- }),
211
- r(a, {
212
- bgColor: "#f00",
213
- height: "80px",
214
- circle: "60px",
215
- color: "#000"
216
- }, {
217
- default: l(() => [
218
- n("自定义")
219
- ]),
220
- _: 1
221
- }),
222
- r(a, { primary: "" }, {
223
- default: l(() => [
224
- n("提交")
225
- ]),
226
- _: 1
227
- }),
228
- r(a, { default: "" }, {
229
- default: l(() => [
230
- n("重置")
231
- ]),
232
- _: 1
233
- }),
234
- r(a, { info: "" }, {
235
- default: l(() => [
236
- n("置灰")
237
- ]),
238
- _: 1
239
- }),
240
- r(a, null, {
241
- default: l(() => [
242
- n("置灰")
243
- ]),
244
- _: 1
245
- })
246
- ]));
247
- }
248
- });
271
+ const p = /* @__PURE__ */ B(E, [["render", O], ["__scopeId", "data-v-d8e77edc"]]);
249
272
  function h(e, t = {}) {
250
- h.installed || (h.installed = !0, e.component("common-button", b));
273
+ h.installed || (h.installed = !0, e.component("common-button", p));
251
274
  }
252
- b.install = h;
275
+ p.install = h;
253
276
  export {
254
- b as default
277
+ p as default
255
278
  };
@@ -1 +1 @@
1
- (function(e,i){typeof exports=="object"&&typeof module<"u"?module.exports=i(require("vue")):typeof define=="function"&&define.amd?define(["vue"],i):(e=typeof globalThis<"u"?globalThis:e||self,e.button=i(e.Vue))})(this,function(e){"use strict";/*! Element Plus Icons Vue v2.1.0 */var i=(t,o)=>{let r=t.__vccOpts||t;for(let[n,a]of o)r[n]=a;return r},c={name:"Loading"},f={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},p=e.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1),h=[p];function _(t,o,r,n,a,S){return e.openBlock(),e.createElementBlock("svg",f,h)}var u=i(c,[["render",_],["__file","loading.vue"]]);const g=e.defineComponent({components:{Loading:u},props:{plain:{type:Boolean,default:!1},primary:{type:Boolean,default:!1},default:{type:Boolean,default:!1},info:{type:Boolean,default:!1},circle:{type:String,default:""},height:{type:String,default:""},width:{type:String,default:""},color:{type:String,default:""},loadingColor:{type:String,default:"#333333"},bgColor:{type:String,default:""},loading:{type:Boolean,default:!1},borderStyle:{type:String,default:"solid"},icon:{type:String,required:!1},size:{type:[Number,String],default:"auto"}},computed:{styleOjb(){return this.plain?{background:"#fff",borderWidth:"1px",borderStyle:`${this.borderStyle}`,borderColor:`${this.color||"#216FED"}`,color:this.color||"#216FED"}:this.primary?{background:"#216FED",borderWidth:"1px",borderStyle:`${this.borderStyle}`,borderColor:`${this.color||"#4E6DFD"}`,color:this.color||"#ffffff"}:this.default?{background:"#ffffff",borderWidth:"1px",borderStyle:`${this.borderStyle}`,borderColor:`${this.color||"#DDE2E6"}`,color:this.color||"#2C3C4D"}:this.info?{background:"#C4C4C4",borderWidth:"1px",borderStyle:`${this.borderStyle}`,borderColor:`${this.color||"#C4C4C4"}`,color:this.color||"#FFFFFF"}:{color:this.color||"#ffffff",background:this.bgColor||"#216FED",borderStyle:`${this.borderStyle}`,borderColor:`${this.color||"#216FED"}`,height:this.height,width:this.width,borderRadius:this.circle}},geturl(){if(this.icon){if(this.icon.includes("/")||this.icon.includes("base64"))return this.icon;if(this.icon.includes("svg"))return`@icons/svg/${this.icon}`}else return"";return`@icons/png/${this.icon}.png`},styleObject:function(){return{width:typeof this.size=="string"?this.size:this.size+"px",height:typeof this.size=="string"?this.size:this.size+"px"}}}}),z="",y=(t,o)=>{const r=t.__vccOpts||t;for(const[n,a]of o)r[n]=a;return r},m={key:0,class:"s-icon"},b=["src"];function C(t,o,r,n,a,S){const k=e.resolveComponent("Loading"),V=e.resolveComponent("el-icon"),x=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(x,{class:e.normalizeClass(["s-button",{plain:t.plain,btnhover:!t.plain,loading:t.loading}]),disabled:t.loading,style:e.normalizeStyle(t.styleOjb),onClick:o[0]||(o[0]=N=>t.$emit("handleClick"))},{default:e.withCtx(()=>[t.icon?(e.openBlock(),e.createElementBlock("i",m,[e.createElementVNode("img",{src:t.geturl,alt:"",style:e.normalizeStyle(t.styleObject)},null,12,b)])):e.createCommentVNode("",!0),e.createElementVNode("span",{style:e.normalizeStyle({color:t.color})},[e.renderSlot(t.$slots,"default",{},void 0,!0)],4),t.loading?(e.openBlock(),e.createBlock(V,{key:1,class:"is-loading",color:t.loadingColor},{default:e.withCtx(()=>[e.createVNode(k)]),_:1},8,["color"])):e.createCommentVNode("",!0)]),_:3},8,["class","disabled","style"])])}const l=y(g,[["render",C],["__scopeId","data-v-22aae99b"]]),$={class:"table-button"},s=e.defineComponent({__name:"index",setup(t){const o=()=>{console.log(11111)};return(r,n)=>(e.openBlock(),e.createElementBlock("div",$,[e.createVNode(l,{plain:"",icon:"icon-add",size:16,loading:!0,onHandleClick:o},{default:e.withCtx(()=>[e.createTextVNode("提交")]),_:1}),e.createVNode(l,{bgColor:"#f00",height:"80px",circle:"60px",color:"#000"},{default:e.withCtx(()=>[e.createTextVNode("自定义")]),_:1}),e.createVNode(l,{primary:""},{default:e.withCtx(()=>[e.createTextVNode("提交")]),_:1}),e.createVNode(l,{default:""},{default:e.withCtx(()=>[e.createTextVNode("重置")]),_:1}),e.createVNode(l,{info:""},{default:e.withCtx(()=>[e.createTextVNode("置灰")]),_:1}),e.createVNode(l,null,{default:e.withCtx(()=>[e.createTextVNode("置灰")]),_:1})]))}});function d(t,o={}){d.installed||(d.installed=!0,t.component("common-button",s))}return s.install=d,s});
1
+ (function(e,i){typeof exports=="object"&&typeof module<"u"?module.exports=i(require("vue")):typeof define=="function"&&define.amd?define(["vue"],i):(e=typeof globalThis<"u"?globalThis:e||self,e.button=i(e.Vue))})(this,function(e){"use strict";/*! Element Plus Icons Vue v2.1.0 */var i=(t,o)=>{let r=t.__vccOpts||t;for(let[l,n]of o)r[l]=n;return r},a={name:"Loading"},h={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},c=e.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1),f=[c];function p(t,o,r,l,n,_){return e.openBlock(),e.createElementBlock("svg",h,f)}var u=i(a,[["render",p],["__file","loading.vue"]]);const b=e.defineComponent({components:{Loading:u},props:{plain:{type:Boolean,default:!1},primary:{type:Boolean,default:!1},default:{type:Boolean,default:!1},primaryDialog:{type:Boolean,default:!1},primaryOrdinary:{type:Boolean,default:!1},info:{type:Boolean,default:!1},infoDialog:{type:Boolean,default:!1},infoOrdinary:{type:Boolean,default:!1},btnCode:{type:String,default:""},circle:{type:String,default:""},height:{type:String,default:""},width:{type:String,default:""},color:{type:String,default:""},loadingColor:{type:String,default:"#333333"},bgColor:{type:String,default:""},loading:{type:Boolean,default:!1},borderStyle:{type:String,default:"solid"},icon:{type:String,required:!1},size:{type:[Number,String],default:"auto"}},computed:{styleOjb(){return this.plain?{background:"#fff",borderWidth:"1px",borderStyle:`${this.borderStyle}`,borderColor:`${this.color||"#216FED"}`,color:this.color||"#216FED",width:this.width,height:this.height,borderRadius:this.circle}:this.primary?{background:"#216FED",borderWidth:"1px",borderStyle:`${this.borderStyle}`,borderColor:`${this.color||"#4E6DFD"}`,color:this.color||"#ffffff",width:this.width,height:this.height,borderRadius:this.circle}:this.primaryOrdinary?{background:"#216FED",borderWidth:"1px",borderStyle:`${this.borderStyle}`,borderColor:`${this.color||"#4E6DFD"}`,color:this.color||"#ffffff",width:"190px",height:"52px",borderRadius:this.circle,fontSize:"16px",fontWeight:600}:this.primaryDialog?{width:"176px",height:"46px",background:"#216FED",borderWidth:"1px",borderStyle:`${this.borderStyle}`,borderColor:`${this.color||"#4E6DFD"}`,color:this.color||"#ffffff",borderRadius:"8px",fontSize:"16px",fontWeight:600}:this.default?{background:"#ffffff",borderWidth:"1px",borderStyle:`${this.borderStyle}`,borderColor:`${this.color||"#DDE2E6"}`,color:this.color||"#2C3C4D",width:this.width,height:this.height,borderRadius:this.circle}:this.info?{background:"#C4C4C4",borderWidth:"1px",borderStyle:`${this.borderStyle}`,borderColor:`${this.color||"#C4C4C4"}`,color:this.color||"#FFFFFF",width:this.width,height:this.height,borderRadius:this.circle}:this.infoDialog?{width:"190px",height:"46px ",background:"#C4C4C4",borderWidth:"1px",borderStyle:`${this.borderStyle}`,borderColor:`${this.color||"#C4C4C4"}`,color:this.color||"#FFFFFF",borderRadius:"8px",fontSize:"16px",fontWeight:600}:this.infoOrdinary?{width:"176px",height:"52px",background:"#C4C4C4",borderWidth:"1px",borderStyle:`${this.borderStyle}`,borderColor:`${this.color||"#C4C4C4"}`,color:this.color||"#FFFFFF",borderRadius:"8px",fontSize:"16px",fontWeight:600}:{color:this.color||"#ffffff",background:this.bgColor||"#216FED",borderStyle:`${this.borderStyle}`,borderColor:`${this.color||"#216FED"}`,width:this.width,height:this.height,borderRadius:this.circle}},geturl(){if(this.icon){if(this.icon.includes("/")||this.icon.includes("base64"))return this.icon;if(this.icon.includes("svg"))return`@icons/svg/${this.icon}`}else return"";return`@icons/png/${this.icon}.png`},styleObject:function(){return{width:typeof this.size=="string"?this.size:this.size+"px",height:typeof this.size=="string"?this.size:this.size+"px"}}}}),k="",g=(t,o)=>{const r=t.__vccOpts||t;for(const[l,n]of o)r[l]=n;return r},y={key:0,class:"s-icon"},C=["src"];function m(t,o,r,l,n,_){const S=e.resolveComponent("Loading"),$=e.resolveComponent("el-icon"),F=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(F,{class:e.normalizeClass(["s-button",{plain:t.plain,btnhover:!t.plain,loading:t.loading}]),disabled:t.loading,style:e.normalizeStyle(t.styleOjb),onClick:o[0]||(o[0]=w=>t.$emit("handleClick")),btnCode:t.btnCode},{default:e.withCtx(()=>[t.icon?(e.openBlock(),e.createElementBlock("i",y,[e.createElementVNode("img",{src:t.geturl,alt:"",style:e.normalizeStyle(t.styleObject)},null,12,C)])):e.createCommentVNode("",!0),e.createElementVNode("span",{style:e.normalizeStyle({color:t.color})},[e.renderSlot(t.$slots,"default",{},void 0,!0)],4),t.loading?(e.openBlock(),e.createBlock($,{key:1,class:"is-loading",color:t.loadingColor},{default:e.withCtx(()=>[e.createVNode(S)]),_:1},8,["color"])):e.createCommentVNode("",!0)]),_:3},8,["class","disabled","style","btnCode"])])}const s=g(b,[["render",m],["__scopeId","data-v-d8e77edc"]]);function d(t,o={}){d.installed||(d.installed=!0,t.component("common-button",s))}return s.install=d,s});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sinosoft-common-button",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "",
5
5
  "main": "common-button.es.js",
6
6
  "scripts": {
package/style.css CHANGED
@@ -1 +1 @@
1
- .btnhover[data-v-22aae99b]:hover{box-shadow:0 0 15px #2461cc4d;opacity:.95}.s-button[data-v-22aae99b]{display:inline-block;height:36px;line-height:1;border:none;background:linear-gradient(350deg,#4A60FF 0%,#64B0F3 100%,#64B0F3 100%);padding:0 19px;border-radius:7px;cursor:pointer;white-space:nowrap;text-align:center;transition:all .5s ease-in-out;user-select:none}.s-button+.s-button[data-v-22aae99b]{margin-left:15px}.s-button span[data-v-22aae99b]{display:inline-block;margin:0 4px;text-justify:auto;line-height:1;font-size:14px;font-weight:500}.s-button>*[data-v-22aae99b]{vertical-align:middle}.plain[data-v-22aae99b]{background:#fff}.plain-icon[data-v-22aae99b]{margin-right:4px}.loading[data-v-22aae99b]{opacity:.8}.s-icon[data-v-22aae99b]{display:inline-block;line-height:1;flex-shrink:0;overflow:hidden}.s-icon img[data-v-22aae99b]{float:left}
1
+ .btnhover[data-v-d8e77edc]:hover{box-shadow:0 0 15px #2461cc4d;opacity:.95}.s-button[data-v-d8e77edc]{display:inline-block;height:36px;line-height:1;border:none;background:linear-gradient(350deg,#4A60FF 0%,#64B0F3 100%,#64B0F3 100%);padding:0 19px;border-radius:7px;cursor:pointer;white-space:nowrap;text-align:center;transition:all .5s ease-in-out;user-select:none}.s-button+.s-button[data-v-d8e77edc]{margin-left:15px}.s-button span[data-v-d8e77edc]{display:inline-block;margin:0 4px;text-justify:auto;line-height:1}.s-button>*[data-v-d8e77edc]{vertical-align:middle}.plain[data-v-d8e77edc]{background:#fff}.plain-icon[data-v-d8e77edc]{margin-right:4px}.loading[data-v-d8e77edc]{opacity:.8}.s-icon[data-v-d8e77edc]{display:inline-block;line-height:1;flex-shrink:0;overflow:hidden}.s-icon img[data-v-d8e77edc]{float:left}