🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@her-activity-components/el-any

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@her-activity-components/el-any - npm Package Compare versions

Comparing version
0.1.12
to
0.1.13
+2
-2
dist/consumer.js

@@ -1,2 +0,2 @@

var _her_activity_components_el_any_0_1_12 = (function (exports) {
var _her_activity_components_el_any_0_1_13 = (function (exports) {
'use strict';

@@ -71,3 +71,3 @@

if ($Vue) {
$Vue.component("@her-activity-components/el-any@0.1.12", component);
$Vue.component("@her-activity-components/el-any@0.1.13", component);
}

@@ -74,0 +74,0 @@

@@ -1,1 +0,1 @@

var _her_activity_components_el_any_0_1_12=function(n){"use strict";var e,t=0,i=[],r={style:{height:"40px",lineHeight:"40px",textAlign:"center"}},s={props:{name:String,data:Object},data:function(){return{ready:2===t}},mounted:function(){var n,e=this;!this.ready&&(n=function(){return e.ready=!0},2===t?n():1===t?i.push(n):(t=1,i.push(n),$script(["https://cdn.jsdelivr.net/npm/fg-loadcss@2.0.1/dist/loadCSS.min.js","https://cdn.jsdelivr.net/npm/element-ui@2.4.8/lib/index.js"],function(){loadCSS("https://cdn.jsdelivr.net/npm/element-ui@2.4.8/lib/theme-chalk/index.css"),t=2,i.forEach(function(n){return n()}),i=[]})))},render:function(n){if(!this.ready)return n("div",r,[n("i",{class:"el-icon-loading"})]);var t=this.$slots,e=Object.keys(t).reduce(function(n,e){return n.concat(t[e])},[]);return n(this.name,Object.assign({},this.data),e)}};return"undefined"!=typeof window?e=window.Vue:"undefined"!=typeof global&&(e=global.Vue),e&&e.component("@her-activity-components/el-any@0.1.12",s),n.$=s,n}({});
var _her_activity_components_el_any_0_1_13=function(n){"use strict";var e,t=0,i=[],r={style:{height:"40px",lineHeight:"40px",textAlign:"center"}},s={props:{name:String,data:Object},data:function(){return{ready:2===t}},mounted:function(){var n,e=this;!this.ready&&(n=function(){return e.ready=!0},2===t?n():1===t?i.push(n):(t=1,i.push(n),$script(["https://cdn.jsdelivr.net/npm/fg-loadcss@2.0.1/dist/loadCSS.min.js","https://cdn.jsdelivr.net/npm/element-ui@2.4.8/lib/index.js"],function(){loadCSS("https://cdn.jsdelivr.net/npm/element-ui@2.4.8/lib/theme-chalk/index.css"),t=2,i.forEach(function(n){return n()}),i=[]})))},render:function(n){if(!this.ready)return n("div",r,[n("i",{class:"el-icon-loading"})]);var t=this.$slots,e=Object.keys(t).reduce(function(n,e){return n.concat(t[e])},[]);return n(this.name,Object.assign({},this.data),e)}};return"undefined"!=typeof window?e=window.Vue:"undefined"!=typeof global&&(e=global.Vue),e&&e.component("@her-activity-components/el-any@0.1.13",s),n.$=s,n}({});

@@ -1,2 +0,2 @@

var _her_activity_components_el_any_0_1_12 = (function (exports) {
var _her_activity_components_el_any_0_1_13 = (function (exports) {
'use strict';

@@ -45,13 +45,2 @@

data: function data() {
var this$1 = this;
var genValidator = function (key) { return function (rule, value, callback) {
var ref = this$1.$refs[key];
if (ref && !ref.valid) {
callback(new Error('请检查配置格式'));
} else {
callback();
}
}; };
return {

@@ -66,3 +55,3 @@ model: {

data: [
{ validator: genValidator('data'), trigger: 'blur' } ],
{ type: 'object', message: '请检查配置格式', trigger: 'blur' } ],
},

@@ -137,3 +126,2 @@ components: components,

_c("json-input", {
ref: "data",
model: {

@@ -227,3 +215,3 @@ value: _vm.model.data,

if ($Vue) {
$Vue.component("@her-activity-components/el-any@0.1.12", component);
$Vue.component("@her-activity-components/el-any@0.1.13", component);
}

@@ -230,0 +218,0 @@

@@ -1,1 +0,1 @@

var _her_activity_components_el_any_0_1_12=function(e){"use strict";var a=window.ELEMENT,t=Object.keys(a).reduce(function(e,t){var n=a[t];return n.name&&"install"!==t&&e.push({label:t,name:n.name}),e},[]),n={props:{name:String,data:Object},data:function(){var r,o=this;return{model:{name:this.name,data:this.data},rules:{name:[{required:!0,message:"\u8bf7\u9009\u62e9\u7ec4\u4ef6"}],data:[{validator:(r="data",function(e,t,n){var a=o.$refs[r];a&&!a.valid?n(new Error("\u8bf7\u68c0\u67e5\u914d\u7f6e\u683c\u5f0f")):n()}),trigger:"blur"}]},components:t}},methods:{onSubmit:function(){var t=this;this.$refs.form.validate(function(e){if(!e)return!1;t.$emit("save",{props:t.model})})},onCancel:function(){this.$refs.form.resetFields()}}};var r,o,l,i,s,d,m=(l=void 0,i=!(r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-form",{ref:"form",attrs:{model:t.model,rules:t.rules,"label-width":"120px"}},[n("el-form-item",{attrs:{label:"Element \u7ec4\u4ef6\u540d",prop:"name"}},[n("el-select",{attrs:{filterable:"",placeholder:"\u8bf7\u9009\u62e9"},model:{value:t.model.name,callback:function(e){t.$set(t.model,"name",e)},expression:"model.name"}},t._l(t.components,function(e){return n("el-option",{key:e.name,attrs:{label:e.label,value:e.name}})}))],1),t._v(" "),n("el-form-item",{attrs:{label:"\u7ec4\u4ef6\u914d\u7f6e",prop:"data"}},[n("json-input",{ref:"data",model:{value:t.model.data,callback:function(e){t.$set(t.model,"data",e)},expression:"model.data"}})],1),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("\u4fdd\u5b58")]),t._v(" "),n("el-button",{on:{click:t.onCancel}},[t._v("\u53d6\u6d88")])],1)],1)},staticRenderFns:[]}),(s=("function"==typeof(o=n)?o.options:o)||{}).__file="provider.vue",s.render||(s.render=r.render,s.staticRenderFns=r.staticRenderFns,s._compiled=!0,i&&(s.functional=!0)),s._scopeId=l,s);return"undefined"!=typeof window?d=window.Vue:"undefined"!=typeof global&&(d=global.Vue),d&&d.component("@her-activity-components/el-any@0.1.12",m),e.$=m,e}({});
var _her_activity_components_el_any_0_1_13=function(e){"use strict";var a=window.ELEMENT,t=Object.keys(a).reduce(function(e,t){var n=a[t];return n.name&&"install"!==t&&e.push({label:t,name:n.name}),e},[]),n={props:{name:String,data:Object},data:function(){return{model:{name:this.name,data:this.data},rules:{name:[{required:!0,message:"\u8bf7\u9009\u62e9\u7ec4\u4ef6"}],data:[{type:"object",message:"\u8bf7\u68c0\u67e5\u914d\u7f6e\u683c\u5f0f",trigger:"blur"}]},components:t}},methods:{onSubmit:function(){var t=this;this.$refs.form.validate(function(e){if(!e)return!1;t.$emit("save",{props:t.model})})},onCancel:function(){this.$refs.form.resetFields()}}};var o,r,l,i,s,m,d=(l=void 0,i=!(o={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-form",{ref:"form",attrs:{model:t.model,rules:t.rules,"label-width":"120px"}},[n("el-form-item",{attrs:{label:"Element \u7ec4\u4ef6\u540d",prop:"name"}},[n("el-select",{attrs:{filterable:"",placeholder:"\u8bf7\u9009\u62e9"},model:{value:t.model.name,callback:function(e){t.$set(t.model,"name",e)},expression:"model.name"}},t._l(t.components,function(e){return n("el-option",{key:e.name,attrs:{label:e.label,value:e.name}})}))],1),t._v(" "),n("el-form-item",{attrs:{label:"\u7ec4\u4ef6\u914d\u7f6e",prop:"data"}},[n("json-input",{model:{value:t.model.data,callback:function(e){t.$set(t.model,"data",e)},expression:"model.data"}})],1),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("\u4fdd\u5b58")]),t._v(" "),n("el-button",{on:{click:t.onCancel}},[t._v("\u53d6\u6d88")])],1)],1)},staticRenderFns:[]}),(s=("function"==typeof(r=n)?r.options:r)||{}).__file="provider.vue",s.render||(s.render=o.render,s.staticRenderFns=o.staticRenderFns,s._compiled=!0,i&&(s.functional=!0)),s._scopeId=l,s);return"undefined"!=typeof window?m=window.Vue:"undefined"!=typeof global&&(m=global.Vue),m&&m.component("@her-activity-components/el-any@0.1.13",d),e.$=d,e}({});
{
"name": "@her-activity-components/el-any",
"version": "0.1.12",
"version": "0.1.13",
"publishConfig": {

@@ -10,3 +10,3 @@ "access": "public"

],
"gitHead": "8d37b8ba50c2f58712faa7b901eb5a7b33d5d242"
"gitHead": "a528f0678b41e812759375ea2d0200aea3571ac5"
}