@uxda/appkit 1.2.18 → 1.2.22

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
@@ -1881,7 +1881,7 @@ const _hoisted_10 = {
1881
1881
  const _hoisted_11 = /* @__PURE__ */ createElementVNode(
1882
1882
  "div",
1883
1883
  { class: "title" },
1884
- "\u542F\u660E\u661F\u6743\u76CA",
1884
+ "\u4F01\u660E\u661F\u6743\u76CA",
1885
1885
  -1
1886
1886
  /* HOISTED */
1887
1887
  );
@@ -2499,7 +2499,8 @@ const _hoisted_5$1 = { class: "col" };
2499
2499
  var script$5 = /* @__PURE__ */ defineComponent({
2500
2500
  __name: "BalanceReminder",
2501
2501
  props: {
2502
- modelValue: { type: Boolean, required: true, default: () => false }
2502
+ modelValue: { type: Boolean, required: true, default: () => false },
2503
+ buttonText: { type: String, required: false, default: "\u53BB\u5145\u503C" }
2503
2504
  },
2504
2505
  emits: ["recharge", "update:modelValue"],
2505
2506
  setup(__props, { emit: __emit }) {
@@ -2538,7 +2539,11 @@ var script$5 = /* @__PURE__ */ defineComponent({
2538
2539
  onClick: _cache[1] || (_cache[1] = ($event) => emit("recharge"))
2539
2540
  }, {
2540
2541
  default: withCtx(() => [
2541
- createTextVNode("\u53BB\u5145\u503C")
2542
+ createTextVNode(
2543
+ toDisplayString(_ctx.buttonText),
2544
+ 1
2545
+ /* TEXT */
2546
+ )
2542
2547
  ]),
2543
2548
  _: 1
2544
2549
  /* STABLE */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxda/appkit",
3
- "version": "1.2.18",
3
+ "version": "1.2.22",
4
4
  "description": "小程序应用开发包",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.ts",
@@ -20,7 +20,7 @@
20
20
  <div class="col">
21
21
  <nut-button block
22
22
  class="recharge-button"
23
- @click="emit('recharge')">去充值</nut-button>
23
+ @click="emit('recharge')">{{buttonText}}</nut-button>
24
24
  </div>
25
25
  </div>
26
26
  </div>
@@ -30,13 +30,15 @@
30
30
  <script setup lang="ts">
31
31
  interface BalanceReminderProps {
32
32
  modelValue: boolean
33
+ buttonText?: string
33
34
  }
34
35
 
35
36
  const emit = defineEmits(['recharge', 'update:modelValue'])
36
37
 
37
38
  withDefaults(
38
39
  defineProps<BalanceReminderProps>(), {
39
- modelValue: () => false
40
+ modelValue: () => false,
41
+ buttonText: '去充值'
40
42
  }
41
43
  )
42
44
  </script>