"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var dateFormat_js_1 = require("../../miniprogram_npm/dai-mp/tools/dateFormat.js"); Component({ properties: { format: { type: String, value: "yyyy-MM-dd", }, timestamp: { type: String, value: "", }, }, data: { showText: "", }, observers: { timestamp: function (val) { this.computeShowText(); }, }, lifetimes: { ready: function () { this.init(); }, }, methods: { init: function () { }, computeShowText: function () { var _a = this.data, timestamp = _a.timestamp, format = _a.format; var showText = dateFormat_js_1.default(new Date(timestamp * 1000), format); this.setData({ showText: showText }); }, }, });