Liuyi
2024-11-12 0ed8e370659ad4e0582301ae31cfa155da114590
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
"use strict";
const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
const _sfc_main = {
  __name: "navbar",
  props: {
    title: {
      type: String,
      default: ""
    }
  },
  setup(__props) {
    function navBackTo() {
      common_vendor.index.navigateBack();
    }
    const props = __props;
    const pageTitle = common_vendor.ref(props.title);
    common_vendor.watch(
      props.title,
      (New, Old) => {
        pageTitle.value = New;
      },
      { immediate: true }
    );
    return (_ctx, _cache) => {
      return {
        a: common_assets._imports_0,
        b: common_vendor.o(($event) => navBackTo()),
        c: common_vendor.t(__props.title)
      };
    };
  }
};
wx.createComponent(_sfc_main);