@web-utils/component 1.1.2 → 1.1.3
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 +1 @@
|
|
|
1
|
-
var i=Object.defineProperty;var s=Object.getOwnPropertySymbols;var p=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable;var l=(e,t
|
|
1
|
+
var i=Object.defineProperty;var s=Object.getOwnPropertySymbols;var p=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable;var l=(e,r,t)=>r in e?i(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,o=(e,r)=>{for(var t in r||(r={}))p.call(r,t)&&l(e,t,r[t]);if(s)for(var t of s(r))m.call(r,t)&&l(e,t,r[t]);return e};import{f as c}from"../../chunks/2ff8f2f5.js";import{Input as _}from"element-ui";import{i as d,n as f}from"../../chunks/911dc75d.js";import{n as v}from"../../chunks/6499de3a.js";var y=function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("FormItem",e._b({attrs:{rules:e.computeRules,disabled:e.inputDisabled},scopedSlots:e._u([{key:"default",fn:function(){return[e._t("default",function(){return[t("ElInput",e._g(e._b({class:{"is-readonly":e.readonly},attrs:{value:e.value,readonly:e.readonly,maxlength:e.maxLength,disabled:e.inputDisabled,placeholder:e.computePlaceholder},on:{input:e.emitInput},scopedSlots:e._u([{key:"append",fn:function(){return[e._t("append")]},proxy:!0}],null,!0)},"ElInput",e.inputProps,!1),e.listeners)),e.$slots.warn?t("div",{staticClass:"el-form-item__warn"},[e._t("warn")],2):e._e()]})]},proxy:!0},{key:"error",fn:function(a){var n=a.error;return[e.$scopedSlots.error&&e.$scopedSlots.error(n)?t("div",{staticClass:"el-form-item__error"},[e._t("error",function(){return[e._v(" "+e._s(n)+" ")]},{error:n})],2):e._e()]}},{key:"label",fn:function(){return[e._t("label")]},proxy:!0}],null,!0)},"FormItem",e.formItemProps,!1))},h=[];const b=Object.keys(_.props).filter(e=>!["value","placeholder","disabled"].includes(e)),I={name:"FormInput",mixins:[c],props:{value:{type:[String,Number]},maxLength:{type:String,default:"200"}},computed:{inputProps(){return d(o(o({},f(this.$attrs)),this.$props),b)}},methods:{emitInput(e){this.$emit("input",e)}}},u={};var x=v(I,y,h,!1,S,null,null,null);function S(e){for(let r in u)this[r]=u[r]}var $=function(){return x.exports}();export{$ as default};
|
|
File without changes
|
package/dist/index.es.js
CHANGED
|
@@ -5572,30 +5572,32 @@ var Le = /* @__PURE__ */ function() {
|
|
|
5572
5572
|
scopedSlots: e._u([{
|
|
5573
5573
|
key: "default",
|
|
5574
5574
|
fn: function() {
|
|
5575
|
-
return [e
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
attrs: {
|
|
5580
|
-
value: e.value,
|
|
5581
|
-
readonly: e.readonly,
|
|
5582
|
-
maxlength: e.maxLength,
|
|
5583
|
-
disabled: e.inputDisabled,
|
|
5584
|
-
placeholder: e.computePlaceholder
|
|
5585
|
-
},
|
|
5586
|
-
on: {
|
|
5587
|
-
input: e.emitInput
|
|
5588
|
-
},
|
|
5589
|
-
scopedSlots: e._u([{
|
|
5590
|
-
key: "append",
|
|
5591
|
-
fn: function() {
|
|
5592
|
-
return [e._t("append")];
|
|
5575
|
+
return [e._t("default", function() {
|
|
5576
|
+
return [r("ElInput", e._g(e._b({
|
|
5577
|
+
class: {
|
|
5578
|
+
"is-readonly": e.readonly
|
|
5593
5579
|
},
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
|
|
5598
|
-
|
|
5580
|
+
attrs: {
|
|
5581
|
+
value: e.value,
|
|
5582
|
+
readonly: e.readonly,
|
|
5583
|
+
maxlength: e.maxLength,
|
|
5584
|
+
disabled: e.inputDisabled,
|
|
5585
|
+
placeholder: e.computePlaceholder
|
|
5586
|
+
},
|
|
5587
|
+
on: {
|
|
5588
|
+
input: e.emitInput
|
|
5589
|
+
},
|
|
5590
|
+
scopedSlots: e._u([{
|
|
5591
|
+
key: "append",
|
|
5592
|
+
fn: function() {
|
|
5593
|
+
return [e._t("append")];
|
|
5594
|
+
},
|
|
5595
|
+
proxy: !0
|
|
5596
|
+
}], null, !0)
|
|
5597
|
+
}, "ElInput", e.inputProps, !1), e.listeners)), e.$slots.warn ? r("div", {
|
|
5598
|
+
staticClass: "el-form-item__warn"
|
|
5599
|
+
}, [e._t("warn")], 2) : e._e()];
|
|
5600
|
+
})];
|
|
5599
5601
|
},
|
|
5600
5602
|
proxy: !0
|
|
5601
5603
|
}, {
|
|
@@ -8713,7 +8715,7 @@ function pc(e) {
|
|
|
8713
8715
|
var ct = /* @__PURE__ */ function() {
|
|
8714
8716
|
return hc.exports;
|
|
8715
8717
|
}();
|
|
8716
|
-
const fc = "1.1.
|
|
8718
|
+
const fc = "1.1.3";
|
|
8717
8719
|
function mc(e) {
|
|
8718
8720
|
e.component(ne.name, ne), e.component(ae.name, ae), e.component(oe.name, oe), e.component(le.name, le), e.component(Ae.name, Ae), e.component(ce.name, ce), e.component(ue.name, ue), e.component(de.name, de), e.component(he.name, he), e.component(pe.name, pe), e.component(fe.name, fe), e.component(me.name, me), e.component(ve.name, ve), e.component(ge.name, ge), e.component(ye.name, ye), e.component(be.name, be), e.component(xe.name, xe), e.component($e.name, $e), e.component(we.name, we), e.component(Se.name, Se), e.component(Z.name, Z), e.component(Ce.name, Ce), e.component(ke.name, ke), e.component(Te.name, Te), e.component(Pe.name, Pe), e.component(Be.name, Be), e.component(Fe.name, Fe), e.component(Ie.name, Ie), e.component(Ee.name, Ee), e.component(Ne.name, Ne), e.component(Re.name, Re), e.component(Me.name, Me), e.component(Oe.name, Oe), e.component(Le.name, Le), e.component(ze.name, ze), e.component(je.name, je), e.component(De.name, De), e.component(We.name, We), e.component(He.name, He), e.component(Ke.name, Ke), e.component(Xe.name, Xe), e.component(qe.name, qe), e.component(Ge.name, Ge), e.component(Ve.name, Ve), e.component(Ue.name, Ue), e.component(Ye.name, Ye), e.component(Ze.name, Ze), e.component(Je.name, Je), e.component(Qe.name, Qe), e.component(et.name, et), e.component(tt.name, tt), e.component(rt.name, rt), e.component(it.name, it), e.component(st.name, st), e.component(nt.name, nt), e.component(at.name, at), e.component(ot.name, ot), e.component(lt.name, lt), e.component(At.name, At), e.component(ct.name, ct);
|
|
8719
8721
|
}
|
package/package.json
CHANGED
package/web-types.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"framework": "vue",
|
|
4
4
|
"name": "@web-utils/component",
|
|
5
|
-
"version": "1.1.
|
|
5
|
+
"version": "1.1.3",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"description-markup": "markdown",
|
|
@@ -4333,13 +4333,13 @@
|
|
|
4333
4333
|
],
|
|
4334
4334
|
"slots": [
|
|
4335
4335
|
{
|
|
4336
|
-
"name": "
|
|
4336
|
+
"name": "default"
|
|
4337
4337
|
},
|
|
4338
4338
|
{
|
|
4339
|
-
"name": "
|
|
4339
|
+
"name": "append"
|
|
4340
4340
|
},
|
|
4341
4341
|
{
|
|
4342
|
-
"name": "
|
|
4342
|
+
"name": "warn"
|
|
4343
4343
|
},
|
|
4344
4344
|
{
|
|
4345
4345
|
"name": "error"
|