@ecan-bi/datav 1.0.1 → 1.0.5

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.
@@ -0,0 +1,17 @@
1
+ export interface CommonProps {
2
+ id: string;
3
+ name: string;
4
+ type: string;
5
+ width: string;
6
+ height: string;
7
+ x: string;
8
+ y: string;
9
+ zIndex: number;
10
+ rotate: string;
11
+ isShow: boolean;
12
+ isRender: boolean;
13
+ imgUrl: string;
14
+ }
15
+ export declare const transformToComponentProps: <T extends {
16
+ [key: string]: any;
17
+ }>(props: T) => any;
File without changes
@@ -0,0 +1,2 @@
1
+ export * from './text';
2
+ export * from './control';
@@ -0,0 +1 @@
1
+ export * from './input';
@@ -1,4 +1,4 @@
1
1
  declare const _default: import("vue").DefineComponent<{}, {
2
- text: import("vue").Ref<string>;
2
+ valueRef: import("vue").Ref<string>;
3
3
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{} & {} & {}>, {}>;
4
4
  export default _default;
@@ -0,0 +1,2 @@
1
+ export declare const EcanInput: import("../../_utils/withInstall").SFCWithInstall<import("vue").DefineComponent<{}, {}, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{} & {} & {}>, {}>> & Record<string, any>;
2
+ export default EcanInput;
package/dist/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
- import type { App } from 'vue';
1
+ import { App } from 'vue';
2
2
  export * from './components';
3
- export declare const install: (app: App) => App;
4
3
  declare const _default: {
5
- install: (app: App<any>) => App<any>;
4
+ install: (app: App<any>) => void;
6
5
  };
7
6
  export default _default;
package/dist/index.esm.js CHANGED
@@ -1 +1 @@
1
- import{defineComponent as e,ref as t,openBlock as r,createElementBlock as o,toDisplayString as n}from"vue";function s(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var a,u={exports:{}},l={exports:{}};(a=l).exports=function(e){if(Array.isArray(e))return e},a.exports.default=a.exports,a.exports.__esModule=!0;var p={exports:{}};!function(e){e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,n,s=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(o=r.next()).done)&&(s.push(o.value),!t||s.length!==t);a=!0);}catch(e){u=!0,n=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw n}}return s}},e.exports.default=e.exports,e.exports.__esModule=!0}(p);var c={exports:{}},i={exports:{}};!function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o},e.exports.default=e.exports,e.exports.__esModule=!0}(i),function(e){var t=i.exports;e.exports=function(e,r){if(e){if("string"==typeof e)return t(e,r);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?t(e,r):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0}(c);var x={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0}(x),function(e){var t=l.exports,r=p.exports,o=c.exports,n=x.exports;e.exports=function(e,s){return t(e)||r(e,s)||o(e,s)||n()},e.exports.default=e.exports,e.exports.__esModule=!0}(u);var f=s(u.exports),d={exports:{}},v={exports:{}};!function(e){var t=i.exports;e.exports=function(e){if(Array.isArray(e))return t(e)},e.exports.default=e.exports,e.exports.__esModule=!0}(v);var _={exports:{}};!function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.default=e.exports,e.exports.__esModule=!0}(_);var y={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0}(y),function(e){var t=v.exports,r=_.exports,o=c.exports,n=y.exports;e.exports=function(e){return t(e)||r(e)||o(e)||n()},e.exports.default=e.exports,e.exports.__esModule=!0}(d);var m=s(d.exports);"production"===process.env.NODE_ENV||Object.freeze({}),"production"===process.env.NODE_ENV||Object.freeze([]);var b=function(e,t){if(e.install=function(r){for(var o=0,n=[e].concat(m(Object.values(null!=t?t:{})));o<n.length;o++){var s=n[o];r.component(s.name,s)}},t)for(var r=0,o=Object.entries(t);r<o.length;r++){var n=f(o[r],2),s=n[0],a=n[1];e[s]=a}return e},h=e({name:"EText",setup:function(){return{text:t("基础文本")}}}),E={class:"red"};function S(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===r&&o.firstChild?o.insertBefore(n,o.firstChild):o.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}S(".red[data-v-6765f21d]{color:blue}"),h.render=function(e,t,s,a,u,l){return r(),o("div",E,n(e.text),1)},h.__scopeId="data-v-6765f21d",h.__file="src/components/text/text/Text.vue";var M=b(h),O=e({name:"EScrollText",setup:function(){return{text:t("基础文本")}}}),j={class:"red"};S(".red[data-v-2a1dc9c4]{color:red}"),O.render=function(e,t,s,a,u,l){return r(),o("div",j,n(e.text),1)},O.__scopeId="data-v-2a1dc9c4",O.__file="src/components/text/scroll-text/ScrollText.vue";var T=b(O),g=Object.freeze({__proto__:null,EText:M,EScrollText:T}),A=function(e){return Object.keys(g).forEach((function(t){var r=g[t];r.install&&e.use(r)})),e},w={install:A};export{T as EScrollText,M as EText,w as default,A as install};
1
+ import{defineComponent as t,openBlock as e,createElementBlock as n,toDisplayString as r,ref as o,createBlock as a,withCtx as i,createTextVNode as u}from"vue";import{mapValues as l}from"lodash-es";import{Button as c}from"ant-design-vue/es";import"ant-design-vue/es/button/style/css";function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){if(t){if("string"==typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(t,e):void 0}}function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a=[],i=!0,u=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(a.push(r.value),!e||a.length!==e);i=!0);}catch(t){u=!0,o=t}finally{try{i||null==n.return||n.return()}finally{if(u)throw o}}return a}}(t,e)||s(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||s(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}"production"===process.env.NODE_ENV||Object.freeze({}),"production"===process.env.NODE_ENV||Object.freeze([]);var m=function(t,e){if(t.install=function(n){for(var r=0,o=[t].concat(p(Object.values(null!=e?e:{})));r<o.length;r++){var a=o[r];n.component(a.name,a)}},e)for(var n=0,r=Object.entries(e);n<r.length;n++){var o=d(r[n],2),a=o[0],i=o[1];t[a]=i}return t},y={color:"#333333",fontFamily:"",fontSize:"14px",fontWeight:400,height:"40px",id:"",isRender:!0,isShow:!0,name:"基础文本",rotate:"0deg",text:"文字",type:"ecan-text",width:"100px",x:"0px",y:"0px",zIndex:0,imgUrl:""},v=l(y,(function(t){return{type:t.constructor,default:t}})),h=t({name:"EcanText",props:v,setup:function(t){console.log(t)}});h.render=function(t,o,a,i,u,l){return e(),n("div",null,r(t.text),1)},h.__file="src/text/text/Text.vue";var x=m(h),b=t({name:"EcanScrollText",setup:function(){return{text:o("基础文本")}}}),g={class:"red"};!function(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}(".red[data-v-0cbdffb5]{color:red}"),b.render=function(t,o,a,i,u,l){return e(),n("div",g,r(t.text),1)},b.__scopeId="data-v-0cbdffb5",b.__file="src/text/scroll-text/ScrollText.vue";var E=m(b),S=t({name:"EcanInput",setup:function(){return{valueRef:o("")}}}),_=u("测试");S.render=function(t,n,r,o,u,l){var f=c;return e(),a(f,null,{default:i((function(){return[_]})),_:1})},S.__file="src/control/input/Input.vue";var T=m(S),j=Object.freeze({__proto__:null,textProps:y,textComponentProps:v,EcanText:x,EcanScrollText:E,EcanInput:T}),A={install:function(t){Object.keys(j).forEach((function(e){var n=j[e];n.install&&t.use(n)}))}};export{T as EcanInput,E as EcanScrollText,x as EcanText,A as default,v as textComponentProps,y as textProps};
package/dist/index.umd.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).index={},e.vue)}(this,(function(e,t){"use strict";function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var o={exports:{}},n={exports:{}};!function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0}(n);var s={exports:{}};!function(e){e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,n,s=[],l=!0,a=!1;try{for(r=r.call(e);!(l=(o=r.next()).done)&&(s.push(o.value),!t||s.length!==t);l=!0);}catch(e){a=!0,n=e}finally{try{l||null==r.return||r.return()}finally{if(a)throw n}}return s}},e.exports.default=e.exports,e.exports.__esModule=!0}(s);var l={exports:{}},a={exports:{}};!function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o},e.exports.default=e.exports,e.exports.__esModule=!0}(a),function(e){var t=a.exports;e.exports=function(e,r){if(e){if("string"==typeof e)return t(e,r);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?t(e,r):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0}(l);var u={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0}(u),function(e){var t=n.exports,r=s.exports,o=l.exports,a=u.exports;e.exports=function(e,n){return t(e)||r(e,n)||o(e,n)||a()},e.exports.default=e.exports,e.exports.__esModule=!0}(o);var p=r(o.exports),i={exports:{}},c={exports:{}};!function(e){var t=a.exports;e.exports=function(e){if(Array.isArray(e))return t(e)},e.exports.default=e.exports,e.exports.__esModule=!0}(c);var f={exports:{}};!function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.default=e.exports,e.exports.__esModule=!0}(f);var d={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0}(d),function(e){var t=c.exports,r=f.exports,o=l.exports,n=d.exports;e.exports=function(e){return t(e)||r(e)||o(e)||n()},e.exports.default=e.exports,e.exports.__esModule=!0}(i);var x=r(i.exports);"production"===process.env.NODE_ENV||Object.freeze({}),"production"===process.env.NODE_ENV||Object.freeze([]);var v=function(e,t){if(e.install=function(r){for(var o=0,n=[e].concat(x(Object.values(null!=t?t:{})));o<n.length;o++){var s=n[o];r.component(s.name,s)}},t)for(var r=0,o=Object.entries(t);r<o.length;r++){var n=p(o[r],2),s=n[0],l=n[1];e[s]=l}return e},y=t.defineComponent({name:"EText",setup:function(){return{text:t.ref("基础文本")}}}),_={class:"red"};function m(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===r&&o.firstChild?o.insertBefore(n,o.firstChild):o.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}m(".red[data-v-6765f21d]{color:blue}"),y.render=function(e,r,o,n,s,l){return t.openBlock(),t.createElementBlock("div",_,t.toDisplayString(e.text),1)},y.__scopeId="data-v-6765f21d",y.__file="src/components/text/text/Text.vue";var b=v(y),h=t.defineComponent({name:"EScrollText",setup:function(){return{text:t.ref("基础文本")}}}),E={class:"red"};m(".red[data-v-2a1dc9c4]{color:red}"),h.render=function(e,r,o,n,s,l){return t.openBlock(),t.createElementBlock("div",E,t.toDisplayString(e.text),1)},h.__scopeId="data-v-2a1dc9c4",h.__file="src/components/text/scroll-text/ScrollText.vue";var S=v(h),T=Object.freeze({__proto__:null,EText:b,EScrollText:S}),g=function(e){return Object.keys(T).forEach((function(t){var r=T[t];r.install&&e.use(r)})),e},j={install:g};e.EScrollText=S,e.EText=b,e.default=j,e.install=g,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("lodash-es"),require("ant-design-vue/es"),require("ant-design-vue/es/button/style/css")):"function"==typeof define&&define.amd?define(["exports","vue","lodash-es","ant-design-vue/es","ant-design-vue/es/button/style/css"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).index={},e.vue,e["lodash-es"],e["ant-design-vue/es"])}(this,(function(e,t,n,r){"use strict";function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}"production"===process.env.NODE_ENV||Object.freeze({}),"production"===process.env.NODE_ENV||Object.freeze([]);var u,c=function(e,t){if(e.install=function(n){for(var r=0,o=[e].concat(l(Object.values(null!=t?t:{})));r<o.length;r++){var i=o[r];n.component(i.name,i)}},t)for(var n=0,r=Object.entries(t);n<r.length;n++){var o=a(r[n],2),i=o[0],u=o[1];e[i]=u}return e},s={color:"#333333",fontFamily:"",fontSize:"14px",fontWeight:400,height:"40px",id:"",isRender:!0,isShow:!0,name:"基础文本",rotate:"0deg",text:"文字",type:"ecan-text",width:"100px",x:"0px",y:"0px",zIndex:0,imgUrl:""},f=(u=s,n.mapValues(u,(function(e){return{type:e.constructor,default:e}}))),d=t.defineComponent({name:"EcanText",props:f,setup:function(e){console.log(e)}});d.render=function(e,n,r,o,i,a){return t.openBlock(),t.createElementBlock("div",null,t.toDisplayString(e.text),1)},d.__file="src/text/text/Text.vue";var p=c(d),y=t.defineComponent({name:"EcanScrollText",setup:function(){return{text:t.ref("基础文本")}}}),m={class:"red"};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".red[data-v-0cbdffb5]{color:red}"),y.render=function(e,n,r,o,i,a){return t.openBlock(),t.createElementBlock("div",m,t.toDisplayString(e.text),1)},y.__scopeId="data-v-0cbdffb5",y.__file="src/text/scroll-text/ScrollText.vue";var v=c(y),x=t.defineComponent({name:"EcanInput",setup:function(){return{valueRef:t.ref("")}}}),h=t.createTextVNode("测试");x.render=function(e,n,o,i,a,l){var u=r.Button;return t.openBlock(),t.createBlock(u,null,{default:t.withCtx((function(){return[h]})),_:1})},x.__file="src/control/input/Input.vue";var b=c(x),g=Object.freeze({__proto__:null,textProps:s,textComponentProps:f,EcanText:p,EcanScrollText:v,EcanInput:b}),E={install:function(e){Object.keys(g).forEach((function(t){var n=g[t];n.install&&e.use(n)}))}};e.EcanInput=b,e.EcanScrollText=v,e.EcanText=p,e.default=E,e.textComponentProps=f,e.textProps=s,Object.defineProperty(e,"__esModule",{value:!0})}));
File without changes
@@ -0,0 +1,2 @@
1
+ export declare const EcanScrollText: import("../../_utils/withInstall").SFCWithInstall<import("vue").DefineComponent<{}, {}, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{} & {} & {}>, {}>> & Record<string, any>;
2
+ export default EcanScrollText;
@@ -0,0 +1,4 @@
1
+ declare const _default: import("vue").DefineComponent<any, void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
2
+ [x: string]: any;
3
+ }>;
4
+ export default _default;
@@ -0,0 +1,3 @@
1
+ export { textProps, textComponentProps } from './props';
2
+ export declare const EcanText: import("../../_utils/withInstall").SFCWithInstall<import("vue").DefineComponent<{}, {}, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{} & {} & {}>, {}>> & Record<string, any>;
3
+ export default EcanText;
@@ -0,0 +1,10 @@
1
+ import { CommonProps } from '../../_utils/props';
2
+ export interface TextProps extends CommonProps {
3
+ text: string;
4
+ color: string;
5
+ fontSize: string;
6
+ fontFamily: string;
7
+ fontWeight: number;
8
+ }
9
+ export declare const textProps: TextProps;
10
+ export declare const textComponentProps: any;
package/package.json CHANGED
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "name": "@ecan-bi/datav",
3
- "version": "1.0.1",
3
+ "version": "1.0.5",
4
4
  "main": "dist/index.umd.js",
5
5
  "module": "dist/index.esm.js",
6
+ "typings": "dist/index.d.ts",
6
7
  "types": "dist/index.d.ts",
7
8
  "files": [
8
9
  "dist"
9
10
  ],
11
+ "description": "",
10
12
  "keywords": [],
11
13
  "author": "ayuan",
12
14
  "publishConfig": {
@@ -14,30 +16,39 @@
14
16
  },
15
17
  "license": "ISC",
16
18
  "scripts": {
17
- "build": "npm run clear && npm run lint && rollup -c ./build/rollup.config.js",
18
- "dev": "npm run clear && npm run lint && rollup -wc ./build/rollup.config.js",
19
+ "build": "gulp -f ./build/gulpfile.ts",
20
+ "rollup": "rollup -c ./build/rollup.config.ts",
21
+ "rollup:dev": "rollup -wc ./build/rollup.config.ts",
19
22
  "lint": "eslint ./src --ext .vue,.js,.ts,.jsx,.tsx",
20
- "lint:fix": "eslint --fix ./lib --ext .vue,.js,.ts,.jsx,.tsx",
21
- "clear": "rimraf ./dist",
22
- "test": "echo \"Error: no test specified\" && exit 1"
23
+ "lint:fix": "eslint --fix ./src --ext .vue,.js,.ts,.jsx,.tsx",
24
+ "clean": "rimraf ./dist",
25
+ "prepublishOnly": "npm run build",
26
+ "test": "jest"
23
27
  },
24
28
  "devDependencies": {
25
29
  "@babel/core": "^7.16.0",
26
30
  "@babel/plugin-transform-runtime": "^7.16.4",
27
31
  "@babel/preset-env": "^7.16.4",
28
32
  "@babel/preset-typescript": "^7.16.0",
29
- "@rollup/plugin-alias": "^3.1.8",
30
33
  "@rollup/plugin-babel": "^5.3.0",
31
34
  "@rollup/plugin-commonjs": "^21.0.1",
32
35
  "@rollup/plugin-json": "^4.1.0",
33
36
  "@rollup/plugin-node-resolve": "^13.0.6",
34
37
  "@rollup/plugin-typescript": "^8.3.0",
38
+ "@sucrase/jest-plugin": "^2.2.0",
39
+ "@types/gulp": "^4.0.9",
40
+ "@types/jest": "^26.0.23",
41
+ "@types/rollup-plugin-peer-deps-external": "^2.2.1",
35
42
  "@typescript-eslint/eslint-plugin": "^5.4.0",
36
- "@typescript-eslint/parser": "^5.4.0",
43
+ "@typescript-eslint/parser": "^5.6.0",
37
44
  "@vue/compiler-sfc": "^3.2.22",
38
45
  "@vue/eslint-config-standard": "^6.1.0",
46
+ "@vue/test-utils": "^2.0.0-rc.17",
47
+ "ant-design-vue": "^3.0.0-alpha.14",
39
48
  "autoprefixer": "^10.4.0",
40
- "babel-eslint": "^10.1.0",
49
+ "babel-jest": "^26.6.3",
50
+ "babel-plugin-import": "^1.13.3",
51
+ "chalk": "^4.1.2",
41
52
  "cssnano": "^5.0.11",
42
53
  "eslint": "^7.32.0",
43
54
  "eslint-config-standard": "^16.0.3",
@@ -45,23 +56,35 @@
45
56
  "eslint-plugin-node": "^11.1.0",
46
57
  "eslint-plugin-promise": "^5.1.1",
47
58
  "eslint-plugin-standard": "^5.0.0",
48
- "eslint-plugin-vue": "^8.1.1",
59
+ "eslint-plugin-vue": "^7.20.0",
60
+ "gulp": "^4.0.2",
61
+ "gulp-typescript": "^6.0.0-alpha.1",
62
+ "jest": "^26.6.3",
49
63
  "less": "^4.1.2",
50
64
  "npm": "^8.1.4",
65
+ "resize-observer-polyfill": "^1.5.1",
51
66
  "rimraf": "^2.7.1",
52
67
  "rollup": "^2.60.1",
53
68
  "rollup-plugin-commonjs": "^10.1.0",
54
69
  "rollup-plugin-css-only": "^3.1.0",
70
+ "rollup-plugin-filesize": "^9.1.1",
71
+ "rollup-plugin-peer-deps-external": "^2.2.4",
55
72
  "rollup-plugin-postcss": "^4.0.2",
56
73
  "rollup-plugin-terser": "^7.0.2",
57
74
  "rollup-plugin-typescript2": "^0.31.1",
58
75
  "rollup-plugin-vue": "^6.0.0",
76
+ "ts-jest": "^26.5.6",
59
77
  "tslib": "^2.3.1",
60
78
  "typescript": "^4.3.5",
61
- "vue-eslint-parser": "^8.0.1"
79
+ "unplugin-vue-components": "^0.17.2",
80
+ "vue-eslint-parser": "^8.0.1",
81
+ "vue-jest": "^5.0.0-alpha.10"
62
82
  },
63
83
  "peerDependencies": {
84
+ "ant-design-vue": "^3.0.0-alpha.14",
85
+ "lodash-es": "^4.17.21",
64
86
  "vue": "^3.2.22"
65
87
  },
66
- "description": ""
88
+ "dependencies": {
89
+ }
67
90
  }
@@ -1 +0,0 @@
1
- export * from './text';
@@ -1,2 +0,0 @@
1
- export declare const EScrollText: import("@/utils/withInstall").SFCWithInstall<import("vue").DefineComponent<{}, {}, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{} & {} & {}>, {}>> & Record<string, any>;
2
- export default EScrollText;
@@ -1,2 +0,0 @@
1
- export declare const EText: import("../../../utils/withInstall").SFCWithInstall<import("vue").DefineComponent<{}, {}, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{} & {} & {}>, {}>> & Record<string, any>;
2
- export default EText;
@@ -1 +0,0 @@
1
- export declare function setComponentName(name: string): string;