{"version":3,"sources":["../src/cell/cell.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAe,MAAM,qBAAqB,CAAC;AAQlE,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,cAAc;IAC9C;;OAEG;IACH,eAAe,WAUb;IAEF,OAAO;;MAEL;IAEF,UAAU,+BAAS;IAEnB;;OAEG;IACH,IAAI;;;MAGF;IAEF;;OAEG;IACH,OAAO,CAAC,CAAC,KAAA;IAKT,QAAQ,CAAC,MAAM,SAAQ,EAAE,IAAI,SAAa;CAQ3C","file":"cell.d.ts","sourcesContent":["import { SuperComponent, wxComponent } from '../common/src/index';\nimport config from '../common/config';\nimport props from './props';\n\nconst { prefix } = config;\nconst name = `${prefix}-cell`;\n\n@wxComponent()\nexport default class Cell extends SuperComponent {\n /**\n * Component properties\n */\n externalClasses = [\n `${prefix}-class`,\n `${prefix}-class-title`,\n `${prefix}-class-description`,\n `${prefix}-class-note`,\n `${prefix}-class-hover`,\n `${prefix}-class-image`,\n `${prefix}-class-left`,\n `${prefix}-class-right`,\n `${prefix}-class-right-icon`,\n ];\n\n options = {\n multipleSlots: true,\n };\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 onClick(e) {\n this.triggerEvent('click', e.detail);\n this.jumpLink();\n }\n\n jumpLink(urlKey = 'url', link = 'jumpType') {\n const url = this.data[urlKey];\n const jumpType = this.data[link];\n if (url) {\n wx[jumpType]({ url });\n // wx.navigateTo({ url });\n }\n }\n}\n"]}