{"version":3,"sources":["../src/back-top/back-top.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,MAAM,MAAM,kBAAkB,CAAC;AACtC,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;AAC1B,MAAM,IAAI,GAAG,GAAG,MAAM,WAAW,CAAC;AAGlC,IAAqB,OAAO,GAA5B,MAAqB,OAAQ,SAAQ,cAAc;IAAnD;;QACE;;WAEG;QACH,oBAAe,GAAG,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC,CAAC;QAE9D,eAAU,GAAG,KAAK,CAAC;QAEnB;;WAEG;QACH,SAAI,GAAG;YACL,MAAM;YACN,WAAW,EAAE,IAAI;SAClB,CAAC;IAWJ,CAAC;IATC;;OAEG;IACH,KAAK;QACH,EAAE,CAAC,YAAY,CAAC;YACd,SAAS,EAAE,CAAC;YACZ,QAAQ,EAAE,GAAG;SACd,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AAzBoB,OAAO;IAD3B,WAAW,EAAE;GACO,OAAO,CAyB3B;eAzBoB,OAAO","file":"back-top.js","sourcesContent":["import { SuperComponent, wxComponent } from '../common/src/index';\nimport config from '../common/config';\nimport props from './props';\n\nconst { prefix } = config;\nconst name = `${prefix}-back-top`;\n\n@wxComponent()\nexport default class BackTop extends SuperComponent {\n /**\n * Component properties\n */\n externalClasses = ['t-class', 't-class-icon', 't-class-text'];\n\n properties = props;\n\n /**\n * Component initial data\n */\n data = {\n prefix,\n classPrefix: name,\n };\n\n /**\n * Component methods\n */\n toTop() {\n wx.pageScrollTo({\n scrollTop: 0,\n duration: 300,\n });\n }\n}\n"]}