@uxda/appkit 1.0.74 → 1.0.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1664,6 +1664,11 @@ var script$1 = /* @__PURE__ */ defineComponent({
1664
1664
  filtering.dateTo = dayjs().format("YYYY-MM-DD");
1665
1665
  filtering.dateFrom = dayjs().add(-3, "M").format("YYYY-MM-DD");
1666
1666
  }
1667
+ function onPageHeaderClose() {
1668
+ Taro.navigateBack({
1669
+ delta: 1
1670
+ });
1671
+ }
1667
1672
  onMounted(() => {
1668
1673
  resetDateRange();
1669
1674
  });
@@ -1682,7 +1687,8 @@ var script$1 = /* @__PURE__ */ defineComponent({
1682
1687
  createVNode(unref(script$b), {
1683
1688
  "color-mode": "dark",
1684
1689
  title: "\u6211\u7684\u8D26\u6237",
1685
- class: normalizeClass({ "with-background": scrollY.value > 0 })
1690
+ class: normalizeClass({ "with-background": scrollY.value > 0 }),
1691
+ onClose: onPageHeaderClose
1686
1692
  }, null, 8, ["class"]),
1687
1693
  createElementVNode("div", { class: "row jusify-right" }, [
1688
1694
  createElementVNode("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxda/appkit",
3
- "version": "1.0.74",
3
+ "version": "1.0.76",
4
4
  "description": "小程序应用开发包",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.ts",
@@ -1,7 +1,8 @@
1
1
  <template>
2
2
  <div class="account-view" :class="{ popupOpen }">
3
3
  <page-header color-mode="dark" title="我的账户"
4
- :class="{'with-background': scrollY > 0}" />
4
+ :class="{'with-background': scrollY > 0}"
5
+ @close="onPageHeaderClose" />
5
6
  <div class="row jusify-right">
6
7
  <div class="small-bean-button" @click="onSecondBalanceButtonClick">
7
8
  <label>小云豆余额</label>
@@ -353,6 +354,12 @@ function resetDateRange () {
353
354
  filtering.dateFrom = dayjs().add(-3, 'M').format('YYYY-MM-DD')
354
355
  }
355
356
 
357
+ function onPageHeaderClose () {
358
+ Taro.navigateBack({
359
+ delta: 1
360
+ })
361
+ }
362
+
356
363
  onMounted(() => {
357
364
  resetDateRange()
358
365
  })