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AG,EAAE,CAAC,CAAC;YACtB,0BAA0B;SAC3B;IACH,CAAC;CACF,CAAA;AA9CoB,IAAI;IADxB,WAAW,EAAE;GACO,IAAI,CA8CxB;eA9CoB,IAAI","file":"cell.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}-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"]}