Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mshow3/basic-component

Package Overview
Dependencies
Maintainers
5
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mshow3/basic-component - npm Package Compare versions

Comparing version 1.0.55 to 1.0.57

2

index.js

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

(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("iview"),require("_vmm_html"),require("_"),require("Vue"),require("moment"),require("_mshow3_editor")):"function"===typeof define&&define.amd?define(["iview","_vmm_html","_","Vue","moment","_mshow3_editor"],t):"object"===typeof exports?exports["main"]=t(require("iview"),require("_vmm_html"),require("_"),require("Vue"),require("moment"),require("_mshow3_editor")):e["main"]=t(e["iview"],e["_vmm_html"],e["_"],e["Vue"],e["moment"],e["_mshow3_editor"])})("undefined"!==typeof self?self:this,function(e,t,r,n,o,i){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s="c267")}({"002d":function(t,r){t.exports=e},"175f":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("h1",[e._v(e._s(e.full))])])},o=[],i=r("8bbf"),a=r.n(i),c=r("c32d"),s=r.n(c),u=a.a.extend({mshowComponent:{title:"基础日期",icon:"md-calendar",description:"当前日期显示",defaultSize:{width:400,height:300}},data(){return{value:0}},computed:{full(){return s()().format("LLLL")},attrs(){return{value:"VALUE"}}},methods:{},created(){console.log("basic date created...",this.$attrs)}}),d=u,l=r("2877"),f=Object(l["a"])(d,n,o,!1,null,"665dbbba",null);t["default"]=f.exports},2877:function(e,t,r){"use strict";function n(e,t,r,n,o,i,a,c){var s,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=r,u._compiled=!0),n&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),a?(s=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=s):o&&(s=c?function(){o.call(this,this.$root.$options.shadowRoot)}:o),s)if(u.functional){u._injectStyles=s;var d=u.render;u.render=function(e,t){return s.call(t),d(e,t)}}else{var l=u.beforeCreate;u.beforeCreate=l?[].concat(l,s):[s]}return{exports:e,options:u}}r.d(t,"a",function(){return n})},"42a3":function(e,r){e.exports=t},4438:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},o=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("h1",[e._v("基础数字")])])}],i=r("8bbf"),a=r.n(i),c=r("60bb"),s=r.n(c);const u={id:999},d={click:{name:"点击"}};var l=a.a.extend({mshowComponent:{title:"基础数字",icon:"md-options",description:"显示多位数字",defaultSize:{width:400,height:300}},props:{attrs:Object},computed:{num(){return s.a.get(this.attrs,"num.value")}},created(){console.log("components:")}}),f=l,m=r("2877");r.d(t,"attrs",function(){return u}),r.d(t,"events",function(){return d});var p=Object(m["a"])(f,n,o,!1,null,"607a9324",null);t["default"]=p.exports},"4c0f":function(e,t){(function(e){var t="currentScript",r=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(n){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(n.stack)||[!1])[1];for(e in r)if(r[e].src==t||"interactive"==r[e].readyState)return r[e];return null}}})})(document)},"60bb":function(e,t){e.exports=r},"7a79":function(e,t,r){var n={"./BasicDate.vue":"175f","./BasicNumber.vue":"4438","./BasicPic.vue":"985f","./BasicText.vue":"9fca","./BasicTime.vue":"82df"};function o(e){var t=i(e);return r(t)}function i(e){var t=n[e];if(!(t+1)){var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}return t}o.keys=function(){return Object.keys(n)},o.resolve=i,e.exports=o,o.id="7a79"},"82df":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("h1",[e._v(e._s(e.time))])])},o=[],i=r("8bbf"),a=r.n(i),c=a.a.extend({mshowComponent:{title:"基础时间",icon:"md-clock",description:"当前时间显示",defaultSize:{width:400,height:300}},inheritAttrs:!1,data(){return{value:0,time:"",timerHandle:null}},computed:{attrs(){return{value:"VALUE"}}},methods:{},destroyed(){clearInterval(this.timerHandle)},mounted(){this.timerHandle()},created(){this.timerHandle=()=>{const e=new Date;this.time=`${e.getHours()}:${e.getMinutes()}:${e.getSeconds()}`},setInterval(this.timerHandle,1e3),console.log("basic test created...",this.$attrs),this.$on("msg",e=>{console.log("--\x3eon msg:",e),this.value=e.data.value})}}),s=c,u=r("2877"),d=Object(u["a"])(s,n,o,!1,null,"6f0af8aa",null);t["default"]=d.exports},"8bbf":function(e,t){e.exports=n},9224:function(e){e.exports={a:"@mshow3/basic-component"}},"985f":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div")},o=[],i=r("8bbf"),a=r.n(i),c=a.a.extend({mshowComponent:{title:"基础图片",icon:"md-calendar",description:"当前日期显示",defaultSize:{width:400,height:300}},inheritAttrs:!1,data(){return{}},computed:{},methods:{},created(){console.log("basic date created...",this.$attrs)}}),s=c,u=r("2877"),d=Object(u["a"])(s,n,o,!1,null,"92dcadcc",null);t["default"]=d.exports},"9fca":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("h1",[e._v(e._s(e.layer.attrs.text))])])},o=[],i=r("8bbf"),a=r.n(i),c=r("d312"),s=r.n(c),u=r("42a3"),d=r.n(u),l=r("9224");const f=d.a.logger(`${l["a"]}:BasicText`);var m=a.a.extend({inheritAttrs:!0,mshowComponent:{title:"基础文本",icon:"md-text",description:"文本信息",defaultSize:{width:400,height:300},params:[{groupName:"文字属性",paramsGroup:[{name:"文字",type:"text",width:200,model:"attrs.text"},{name:"自动",type:"check",width:200,model:"attrs.text"}]}]},data(){return{}},props:["layer"],computed:{activedLayer(){return s.a.hEditor.activedLayer},componentLibraryInfo(){var e;return s.a.componentLibrary.libs[null===(e=this.activedLayer)||void 0===e?void 0:e.libName]},componentInfo(){var e;return null===(e=this.componentLibraryInfo)||void 0===e?void 0:e.components[this.activedLayer.componentName]}},methods:{},created(){this.layer.attrs.text||(this.layer.attrs.text="您好"),f.warn("basic test created...",this.layer.attrs)}}),p=m,v=r("2877"),h=Object(v["a"])(p,n,o,!1,null,"308f440a",null);t["default"]=h.exports},c267:function(e,t,r){"use strict";var n;(r.r(t),"undefined"!==typeof window)&&(r("4c0f"),(n=window.document.currentScript)&&(n=n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(r.p=n[1]));r("002d");var o=r("9224"),i=r("42a3"),a=r.n(i);const c=a.a.logger(`${o["a"]}:main`);a.a.project.loadVueDir(o["a"],r("7a79")),c.debug("start ...");const s={};window[o["a"].replace(/[@\/-]/g,"_")]=s;var u=s;t["default"]=u},c32d:function(e,t){e.exports=o},d312:function(e,t){e.exports=i}})});
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("iview"),require("_vmm_html"),require("_"),require("Vue"),require("moment")):"function"===typeof define&&define.amd?define(["iview","_vmm_html","_","Vue","moment"],e):"object"===typeof exports?exports["main"]=e(require("iview"),require("_vmm_html"),require("_"),require("Vue"),require("moment")):t["main"]=e(t["iview"],t["_vmm_html"],t["_"],t["Vue"],t["moment"])})("undefined"!==typeof self?self:this,(function(t,e,r,n,a){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var a=e[n]={i:n,l:!1,exports:{}};return t[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)r.d(n,a,function(e){return t[e]}.bind(null,a));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s="c267")}({"002d":function(e,r){e.exports=t},"175f":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("h1",[t._v(t._s(t.full))])])},a=[],o=r("8bbf"),i=r.n(o),s=r("c32d"),l=r.n(s),c=i.a.extend({mshowComponent:{title:"基础日期",icon:"md-calendar",description:"当前日期显示",defaultSize:{width:400,height:300}},data(){return{value:0}},computed:{full(){return l()().format("LLLL")},attrs(){return{value:"VALUE"}}},methods:{},created(){console.log("basic date created...",this.$attrs)}}),u=c,d=r("2877"),m=Object(d["a"])(u,n,a,!1,null,"665dbbba",null);e["default"]=m.exports},2877:function(t,e,r){"use strict";function n(t,e,r,n,a,o,i,s){var l,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=r,c._compiled=!0),n&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),i?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),a&&a.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},c._ssrRegister=l):a&&(l=s?function(){a.call(this,this.$root.$options.shadowRoot)}:a),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:c}}r.d(e,"a",(function(){return n}))},"42a3":function(t,r){t.exports=e},4438:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},a=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("h1",[t._v("基础数字")])])}],o=r("8bbf"),i=r.n(o),s=r("60bb"),l=r.n(s);const c={id:999},u={click:{name:"点击"}};var d=i.a.extend({mshowComponent:{title:"基础数字",icon:"md-options",description:"显示多位数字",defaultSize:{width:400,height:300}},props:{attrs:Object},computed:{num(){return l.a.get(this.attrs,"num.value")}},created(){console.log("components:")}}),m=d,h=r("2877");r.d(e,"attrs",(function(){return c})),r.d(e,"events",(function(){return u}));var f=Object(h["a"])(m,n,a,!1,null,"607a9324",null);e["default"]=f.exports},"4c0f":function(t,e){(function(t){var e="currentScript",r=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(n){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(n.stack)||[!1])[1];for(t in r)if(r[t].src==e||"interactive"==r[t].readyState)return r[t];return null}}})})(document)},"60bb":function(t,e){t.exports=r},"7a79":function(t,e,r){var n={"./BasicDate.vue":"175f","./BasicNumber.vue":"4438","./BasicPic.vue":"985f","./BasicText.vue":"9fca","./BasicTime.vue":"82df"};function a(t){var e=o(t);return r(e)}function o(t){if(!r.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}a.keys=function(){return Object.keys(n)},a.resolve=o,t.exports=a,a.id="7a79"},"82df":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("h1",[t._v(t._s(t.time))])])},a=[],o=r("8bbf"),i=r.n(o),s=i.a.extend({mshowComponent:{title:"基础时间",icon:"md-clock",description:"当前时间显示",defaultSize:{width:400,height:300}},inheritAttrs:!1,data(){return{value:0,time:"",timerHandle:null}},computed:{attrs(){return{value:"VALUE"}}},methods:{},destroyed(){clearInterval(this.timerHandle)},mounted(){this.timerHandle()},created(){this.timerHandle=()=>{const t=new Date;this.time=`${t.getHours()}:${t.getMinutes()}:${t.getSeconds()}`},setInterval(this.timerHandle,1e3),console.log("basic test created...",this.$attrs),this.$on("msg",t=>{console.log("--\x3eon msg:",t),this.value=t.data.value})}}),l=s,c=r("2877"),u=Object(c["a"])(l,n,a,!1,null,"6f0af8aa",null);e["default"]=u.exports},"8bbf":function(t,e){t.exports=n},9224:function(t){t.exports=JSON.parse('{"a":"@mshow3/basic-component"}')},"985f":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},a=[],o=r("8bbf"),i=r.n(o),s=i.a.extend({mshowComponent:{title:"基础图片",icon:"md-calendar",description:"当前日期显示",defaultSize:{width:400,height:300}},inheritAttrs:!1,data(){return{}},computed:{},methods:{},created(){console.log("basic date created...",this.$attrs)}}),l=s,c=r("2877"),u=Object(c["a"])(l,n,a,!1,null,"92dcadcc",null);e["default"]=u.exports},"9fca":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{style:{display:"flex",justifyContent:t._justifyContent}},[r("h1",{style:{backgroundImage:t.textGradient,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",color:t.textColor,fontWeight:t.textFontWight,fontSize:t.textSize,fontStyle:t._fontStyle,textDecoration:t._textDecoration,alignSelf:t._alignSelf,textShadow:t._textShadow}},[t._v(" "+t._s(t.layer.attrs.text)+" ")])])},a=[],o=r("8bbf"),i=r.n(o),s=r("42a3"),l=r.n(s),c=r("9224");const u=l.a.logger(`${c["a"]}:BasicText`);var d=i.a.extend({inheritAttrs:!0,mshowComponent:{title:"基础文本",icon:"md-text",description:"文本信息",defaultSize:{width:400,height:300},params:[{groupName:"文字属性",paramsGroup:[{name:"文字",type:"text",width:200,model:"attrs.text"},{name:"自动",type:"check",width:200,model:"attrs.auto"},{name:"斜体",type:"check",width:200,model:"attrs.Italics"},{name:"下划线",type:"check",width:200,model:"attrs.UnderLine"},{name:"垂直对齐方式",type:"single",width:200,model:"attrs.textAlign",selections:[{title:"垂直居中",value:"center"},{title:"上对齐",value:"flex-start"},{title:"下对齐",value:"flex-end"}]},{name:"水平对齐方式",type:"single",width:200,model:"attrs.justifyContent",selections:[{title:"居中",value:"center"},{title:"左对齐",value:"flex-start"},{title:"右对齐",value:"flex-end"}]},{name:"字体大小",type:"number",model:"attrs.size",width:200,min:10,max:1e3,slider:!0},{name:"字体粗细",type:"number",model:"attrs.strong",width:200,min:1,max:9,slider:!0},{name:"字体颜色",type:"color",model:"attrs.color"},{name:"字体渐变色",type:"gradient",model:"attrs.gradient"},{name:"阴影",type:"check",width:200,model:"attrs.enableShadow"},{name:"阴影颜色",type:"color",model:"attrs.shadowColor"},{name:"阴影水平位置",type:"number",model:"attrs.shadowHorizontalLocation",width:200,min:-100,max:100,slider:!0},{name:"阴影垂直位置",type:"number",model:"attrs.shadowVerticalLocation",width:200,min:-100,max:100,slider:!0},{name:"阴影模糊",type:"number",model:"attrs.shadowBlur",width:200,min:0,max:40,slider:!0}]}]},data(){return{}},props:["layer"],computed:{textSize(){return this.layer.attrs.size+"px"},textColor(){return this.layer.attrs.color},textFontWight(){const t=100*this.layer.attrs.strong;return t},textGradient(){var t=[];for(var e in this.layer.attrs.gradient.points){u.warn(this.layer.attrs.gradient.points[e],"21312312312");var r=this.layer.attrs.gradient.points[e].color;t.push(r)}return"linear-gradient("+t.join()+")"},_fontStyle(){return this.layer.attrs.Italics?"italic":"normal"},_textDecoration(){return this.layer.attrs.UnderLine?"underline":"none"},_alignSelf(){return this.layer.attrs.textAlign?this.layer.attrs.textAlign:"center"},_justifyContent(){return this.layer.attrs.justifyContent?this.layer.attrs.justifyContent:"center"},_textShadow(){let t=this.layer.attrs.shadowColor,e=this.layer.attrs.shadowHorizontalLocation,r=this.layer.attrs.shadowVerticalLocation,n=this.layer.attrs.shadowBlur;return`${e}px ${r}px ${n}px ${t}`},enableShadow(){this.layer.attrs.enableShadow&&this.$options.mshowComponent.params[0].paramsGroup.push({name:"阴影",type:"check",width:200,model:"attrs.hello"}),u.warn(JSON.stringify(this.$options.mshowComponent.params[0].paramsGroup,null,2))}},methods:{},created(){this.layer.attrs={text:this.layer.attrs.text||"您好",Italics:this.layer.attrs.Italics||!1,UnderLine:this.layer.attrs.UnderLine||!1,auto:this.layer.attrs.auto||!0,size:this.layer.attrs.size||40,strong:this.layer.attrs.strong||4,gradient:this.layer.attrs.gradient||{points:[{color:"#F09819"},{color:"#EDDE5D"}]},shadowColor:this.layer.attrs.shadowColor||"#000",shadowHorizontalLocation:this.layer.attrs.shadowHorizontalLocation||0,shadowVerticalLocation:this.layer.attrs.shadowVerticalLocation||0,shadowBlur:this.layer.attrs.shadowBlur||0,enableShadow:this.layer.attrs.enableShadow||!1},u.warn("basic test created...",this.layer.attrs)}}),m=d,h=r("2877"),f=Object(h["a"])(m,n,a,!1,null,"1b96b55a",null);e["default"]=f.exports},c267:function(t,e,r){"use strict";var n;(r.r(e),"undefined"!==typeof window)&&(r("4c0f"),(n=window.document.currentScript)&&(n=n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(r.p=n[1]));r("002d");var a=r("9224"),o=r("42a3"),i=r.n(o);const s=i.a.logger(`${a["a"]}:main`);i.a.project.loadVueDir(a["a"],r("7a79")),s.debug("start ...");const l={};window[a["a"].replace(/[@\/-]/g,"_")]=l;var c=l;e["default"]=c},c32d:function(t,e){t.exports=a}})}));
{
"name": "@mshow3/basic-component",
"version": "1.0.55",
"version": "1.0.57",
"description": "基础组件",

@@ -5,0 +5,0 @@ "license": "MIT",

import Vue from 'vue';
declare const _default: import("vue/types/vue").ExtendedVue<Vue, {}, {}, {
activedLayer: import("@vmm/html").DeepReadonlyObject<import("@vmm/html").DeepReadonlyObject<import("@mshow3/editor/types/src/globalData/task").ILayer>>;
componentLibraryInfo: import("@vmm/html").DeepReadonlyObject<import("@mshow3/editor/types/src/globalData/componentLibrary").IComponentLibrary>;
componentInfo: import("@vmm/html").DeepReadonlyObject<{
title: string;
icon: string;
description: string;
Vue?: import("vue").VueConstructor<Vue> | undefined;
size: {
width: number;
height: number;
};
events?: {} | undefined;
params?: [] | undefined;
}> | undefined;
textSize: string;
textColor: string;
textFontWight: any;
textGradient: string;
_fontStyle: string;
_textDecoration: string;
_alignSelf: string;
_justifyContent: string;
_textShadow: string;
enableShadow: void;
}, Record<"layer", any>>;
export default _default;

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc