@uxda/appkit 1.1.0 → 1.1.2
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/README.md +6 -1
- package/dist/index.js +4 -1
- package/package.json +1 -1
- package/src/balance/components/BalanceCard.vue +5 -0
package/README.md
CHANGED
|
@@ -95,11 +95,12 @@ import { BalanceCard } from '@uxda/appkit'
|
|
|
95
95
|
|
|
96
96
|
```html
|
|
97
97
|
<template>
|
|
98
|
-
<balance-card @drill="onBalanceCardDrill" @recharge="onBalanceCardRecharge" />
|
|
98
|
+
<balance-card app="crm" @drill="onBalanceCardDrill" @recharge="onBalanceCardRecharge" />
|
|
99
99
|
<template>
|
|
100
100
|
```
|
|
101
101
|
|
|
102
102
|
#### 事件 emits
|
|
103
|
+
* app 配置到组件上的 app code
|
|
103
104
|
* @drill 点击账户详情时发生
|
|
104
105
|
* @recharge 点击充值按钮时发生
|
|
105
106
|
|
|
@@ -115,6 +116,10 @@ function onBalanceCardRecharge () {
|
|
|
115
116
|
}
|
|
116
117
|
```
|
|
117
118
|
|
|
119
|
+
### 方法 methods
|
|
120
|
+
* reload() 刷新数据
|
|
121
|
+
|
|
122
|
+
|
|
118
123
|
|
|
119
124
|
### 4️⃣ 余额不足提示框 <balance-reminder>
|
|
120
125
|
|
package/dist/index.js
CHANGED
|
@@ -919,7 +919,7 @@ var script$7 = /* @__PURE__ */ defineComponent({
|
|
|
919
919
|
*/
|
|
920
920
|
"recharge"
|
|
921
921
|
],
|
|
922
|
-
setup(__props, { emit: __emit }) {
|
|
922
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
923
923
|
const props = __props;
|
|
924
924
|
const balance = ref({
|
|
925
925
|
total: 0,
|
|
@@ -943,6 +943,9 @@ var script$7 = /* @__PURE__ */ defineComponent({
|
|
|
943
943
|
useDidShow(() => {
|
|
944
944
|
loadBalance();
|
|
945
945
|
});
|
|
946
|
+
__expose({
|
|
947
|
+
reload: loadBalance
|
|
948
|
+
});
|
|
946
949
|
return (_ctx, _cache) => {
|
|
947
950
|
return openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
948
951
|
createElementVNode("div", _hoisted_2$7, [
|
package/package.json
CHANGED