@uxda/appkit 4.1.20 → 4.1.21
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/.eslintrc.mjs +7 -7
- package/README.md +187 -187
- package/babel.config.js +12 -12
- package/dist/appkit.css +25 -22
- package/dist/assets/asset-3B_CoPto +1 -0
- package/dist/index.js +1139 -1034
- package/package.json +75 -75
- package/project.config.json +15 -15
- package/project.tt.json +13 -13
- package/rollup.config.mjs +56 -56
- package/src/Appkit.ts +66 -65
- package/src/balance/api/endpoints.ts +126 -126
- package/src/balance/api/index.ts +82 -82
- package/src/balance/components/AccountView.vue +748 -748
- package/src/balance/components/BalanceCard.vue +205 -205
- package/src/balance/components/BalanceReminder.vue +85 -85
- package/src/balance/components/ConsumptionFilter.vue +218 -218
- package/src/balance/components/ConsumptionRules.vue +68 -68
- package/src/balance/components/DateFilter.vue +230 -227
- package/src/balance/components/DateRange.vue +75 -77
- package/src/balance/components/ListFilter.vue +63 -63
- package/src/balance/components/ListFilterPicker.vue +186 -186
- package/src/balance/components/SecondBalance.vue +71 -71
- package/src/balance/components/Tip.vue +45 -45
- package/src/balance/components/index.ts +13 -13
- package/src/balance/types.ts +91 -91
- package/src/components/bt-cropper/index.vue +774 -774
- package/src/components/bt-cropper/utils/calcCropper.js +42 -42
- package/src/components/bt-cropper/utils/calcImagePosition.js +23 -23
- package/src/components/bt-cropper/utils/calcImageSize.js +37 -37
- package/src/components/bt-cropper/utils/calcPointDistance.js +12 -12
- package/src/components/bt-cropper/utils/calcRightAndBottom.js +7 -7
- package/src/components/bt-cropper/utils/ratio.js +3 -3
- package/src/components/bt-cropper/utils/tools.js +25 -25
- package/src/components/dd-area/index.vue +225 -225
- package/src/components/dd-icon/doc.md +21 -21
- package/src/components/dd-icon/index.vue +23 -23
- package/src/components/dd-notice-bar/index.vue +78 -78
- package/src/components/dd-search/doc.md +34 -34
- package/src/components/dd-search/index.vue +168 -168
- package/src/components/dd-selector/index.vue +124 -124
- package/src/components/dd-skeleton/doc.md +19 -19
- package/src/components/dd-skeleton/index.vue +36 -36
- package/src/components/ocr-id/index.vue +114 -114
- package/src/components/ocr-id/types.d.ts +12 -12
- package/src/global.ts +6 -6
- package/src/index.ts +89 -89
- package/src/main.scss +1 -1
- package/src/notice/api/endpoints.ts +17 -17
- package/src/notice/api/index.ts +82 -82
- package/src/notice/components/NoticeBanner.vue +243 -243
- package/src/notice/components/NoticeEntry.vue +99 -99
- package/src/notice/components/NoticeList.vue +315 -315
- package/src/notice/components/NoticePopup.vue +162 -162
- package/src/notice/components/index.ts +5 -5
- package/src/notice/components/useCommonList.ts +86 -86
- package/src/notice/components/useNotice.ts +35 -35
- package/src/notice/index.ts +1 -1
- package/src/notice/types.ts +25 -25
- package/src/payment/api/config.ts +7 -7
- package/src/payment/api/endpoints.ts +103 -103
- package/src/payment/api/index.ts +76 -71
- package/src/payment/components/AmountPicker.vue +93 -93
- package/src/payment/components/RechargeResult.vue +69 -69
- package/src/payment/components/RechargeView.vue +154 -151
- package/src/payment/components/RightsPicker.vue +105 -105
- package/src/payment/components/TradeView.vue +294 -294
- package/src/payment/components/UserAgreement.vue +234 -234
- package/src/payment/components/index.ts +22 -22
- package/src/payment/index.ts +5 -5
- package/src/payment/services/index.ts +16 -16
- package/src/payment/services/invoke-recharge.ts +25 -25
- package/src/payment/services/request-payment.ts +58 -58
- package/src/payment/types.ts +28 -28
- package/src/register/components/SelfRegistration.vue +254 -254
- package/src/register/components/index.ts +2 -2
- package/src/shared/components/AppDrawer.vue +58 -58
- package/src/shared/components/AppVerify.vue +129 -129
- package/src/shared/components/DeviceVersion.vue +68 -68
- package/src/shared/components/EmptyView.vue +33 -33
- package/src/shared/components/OcrBusinessLicense.vue +133 -133
- package/src/shared/components/OcrIcon.vue +133 -133
- package/src/shared/components/PageHeader.vue +79 -79
- package/src/shared/components/index.ts +8 -8
- package/src/shared/composables/index.ts +7 -7
- package/src/shared/composables/useCountdown.ts +46 -46
- package/src/shared/composables/useCrypto.ts +76 -76
- package/src/shared/composables/useDragBox.ts +97 -97
- package/src/shared/composables/useEncode.ts +43 -43
- package/src/shared/composables/useSafeArea.ts +46 -46
- package/src/shared/composables/useTabbar.ts +24 -24
- package/src/shared/composables/useUpload.ts +54 -54
- package/src/shared/composables/useValidator.ts +31 -31
- package/src/shared/http/Http.ts +136 -136
- package/src/shared/http/index.ts +1 -1
- package/src/shared/http/types.ts +157 -157
- package/src/shared/index.ts +3 -3
- package/src/shared/weixin/payment.ts +38 -38
- package/src/styles/fonts.scss +2 -2
- package/src/styles/vars.scss +3 -3
- package/src/user/api/endpoints.ts +17 -17
- package/src/user/api/index.ts +87 -87
- package/src/user/components/LoginSetting.vue +114 -114
- package/src/user/components/UserBinding.vue +307 -307
- package/src/user/components/UserBindingSuccess.vue +80 -80
- package/src/user/components/UserEntry.vue +137 -137
- package/src/user/components/UserFeedback.vue +431 -431
- package/src/user/components/UserFeedbackEntry.vue +192 -192
- package/src/user/components/UserHeadCrop.vue +65 -65
- package/src/user/components/UserInfo.vue +637 -637
- package/src/user/components/UserResourceEmpty.vue +75 -75
- package/src/user/components/index.ts +21 -21
- package/src/user/index.ts +1 -1
- package/tsconfig.json +30 -30
- package/types/global.d.ts +21 -21
- package/types/vue.d.ts +10 -10
package/.eslintrc.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
extends: [
|
|
3
|
-
'./.eslintrc-auto-import.json'
|
|
4
|
-
],
|
|
5
|
-
rules: {
|
|
6
|
-
ident: ['error', 2]
|
|
7
|
-
}
|
|
1
|
+
module.exports = {
|
|
2
|
+
extends: [
|
|
3
|
+
'./.eslintrc-auto-import.json'
|
|
4
|
+
],
|
|
5
|
+
rules: {
|
|
6
|
+
ident: ['error', 2]
|
|
7
|
+
}
|
|
8
8
|
}
|
package/README.md
CHANGED
|
@@ -1,188 +1,188 @@
|
|
|
1
|
-
# AppKit
|
|
2
|
-
|
|
3
|
-
小程序应用开发包
|
|
4
|
-
|
|
5
|
-
向诸小程序提供供用的组件及基础设施
|
|
6
|
-
|
|
7
|
-
模块:
|
|
8
|
-
* payment 支付
|
|
9
|
-
* balance 账户、代币(云豆)余额
|
|
10
|
-
* auth 登录及会话状态 (待定)
|
|
11
|
-
|
|
12
|
-
## 将 AppKit 加入应用项目
|
|
13
|
-
|
|
14
|
-
```bash
|
|
15
|
-
git clone git@10.1.108.137:fed/appkit.git
|
|
16
|
-
cd appkit
|
|
17
|
-
yarn link
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
然后 cd 到(周转)小程序根目录执行:
|
|
21
|
-
```bash
|
|
22
|
-
yarn link @uxda/appkit
|
|
23
|
-
```
|
|
24
|
-
完成 npm link
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
## 用法
|
|
28
|
-
```typescript
|
|
29
|
-
import AppKit from '@uxda/appkit'
|
|
30
|
-
import '@uxda/appkit/appkit.css'
|
|
31
|
-
```
|
|
32
|
-
## AppKit 初始化
|
|
33
|
-
|
|
34
|
-
在应用入口页调用(示例)
|
|
35
|
-
```typescript
|
|
36
|
-
const App = createApp({})
|
|
37
|
-
App.use(AppKit, {
|
|
38
|
-
app: () => 'cloudkitPro',
|
|
39
|
-
tenant: () => '1',
|
|
40
|
-
token: () => localStorage.getItem('token'),
|
|
41
|
-
baseUrl: () => process.env.TARO_APP_BASE_URL,
|
|
42
|
-
401: () => {
|
|
43
|
-
// 登录态丢失时的处理
|
|
44
|
-
}
|
|
45
|
-
})
|
|
46
|
-
```
|
|
47
|
-
为 AppKit 的运行提供必需的 API 参数
|
|
48
|
-
* app: 当前的 app code (嵌入接口调用的 header 参数)
|
|
49
|
-
* tenant: 租户ID 需要提供以便调用接口
|
|
50
|
-
* token: 用户登录态 token
|
|
51
|
-
* baseUrl: 调用 API 的URL域名
|
|
52
|
-
* 401: 登录态丢失异常处理 (通常要跳转登录页)
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
## UI组件
|
|
56
|
-
### 1️⃣ 充值用户界面 <recharge-view>
|
|
57
|
-
|
|
58
|
-
```typescript
|
|
59
|
-
import { RechargeView } from '@uxda/appkit'
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
```html
|
|
63
|
-
<template>
|
|
64
|
-
<recharge-view
|
|
65
|
-
app="crm"
|
|
66
|
-
tenant="1"
|
|
67
|
-
@complete="onRechargeComplete" />
|
|
68
|
-
</template>
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
#### 属性 props
|
|
72
|
-
|
|
73
|
-
#### 事件 emits
|
|
74
|
-
|
|
75
|
-
* @complete: 充值完成时发生
|
|
76
|
-
|
|
77
|
-
### 2️⃣ 账户页 <account-view>
|
|
78
|
-
```
|
|
79
|
-
import { AccountView } from '@uxda/appkit'
|
|
80
|
-
```
|
|
81
|
-
```html
|
|
82
|
-
<template>
|
|
83
|
-
<account-view app="crm" @recharge=onAccountViewRecharge />
|
|
84
|
-
<template>
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
#### 事件 emits
|
|
88
|
-
* @recharge 点击充值按钮时发生
|
|
89
|
-
|
|
90
|
-
### 3️⃣ 账户卡片 <balance-card>
|
|
91
|
-
|
|
92
|
-
```typescript
|
|
93
|
-
import { BalanceCard } from '@uxda/appkit'
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
```html
|
|
97
|
-
<template>
|
|
98
|
-
<balance-card app="crm" @drill="onBalanceCardDrill" @recharge="onBalanceCardRecharge" />
|
|
99
|
-
<template>
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
#### 事件 emits
|
|
103
|
-
* app 配置到组件上的 app code
|
|
104
|
-
* @drill 点击账户详情时发生
|
|
105
|
-
* @recharge 点击充值按钮时发生
|
|
106
|
-
|
|
107
|
-
场景端需定义以上跳转逻辑:
|
|
108
|
-
|
|
109
|
-
```typescript
|
|
110
|
-
function onBalanceCardDrill () {
|
|
111
|
-
//...
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
function onBalanceCardRecharge () {
|
|
115
|
-
//...
|
|
116
|
-
}
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
### 方法 methods
|
|
120
|
-
* reload() 刷新数据
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
### 4️⃣ 余额不足提示框 <balance-reminder>
|
|
125
|
-
|
|
126
|
-
```typescript
|
|
127
|
-
import { BalanceReminder } from '@uxda/appkit'
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
```html
|
|
131
|
-
<balance-reminder v-model="balanceReminderOpen"
|
|
132
|
-
@recharge="onBalanceReminderRecharge" />
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
#### 事件 emits
|
|
136
|
-
* @recharge 点击充值按钮时发生
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
## 公共API
|
|
140
|
-
### 1️⃣ 唤起充值(跳支付中心小程序) $app.invokeRecharge()
|
|
141
|
-
|
|
142
|
-
```typescript
|
|
143
|
-
import { useAppKit } from '@uxda/appkit'
|
|
144
|
-
const $app = useAppKit()
|
|
145
|
-
$app.invokeRecharge({
|
|
146
|
-
app: 'crm',
|
|
147
|
-
tenant: '1',
|
|
148
|
-
})
|
|
149
|
-
```
|
|
150
|
-
|
|
151
|
-
### 2️⃣ 唤起充值(小程序内直接支付、不跳) $app.requestPayment()
|
|
152
|
-
|
|
153
|
-
```typescript
|
|
154
|
-
import { useAppKit } from '@uxda/appkit'
|
|
155
|
-
const $app = useAppKit()
|
|
156
|
-
$app.requestPayment({
|
|
157
|
-
app: 'crm',
|
|
158
|
-
tenant: '1',
|
|
159
|
-
amount: 100,
|
|
160
|
-
user: '' // wx.login 之后得到的用户临时凭证
|
|
161
|
-
})
|
|
162
|
-
```
|
|
163
|
-
|
|
164
|
-
## Hooks (Vue Composables)
|
|
165
|
-
|
|
166
|
-
### useTabbar
|
|
167
|
-
用于获取或设置 custom tab bar
|
|
168
|
-
|
|
169
|
-
```typescript
|
|
170
|
-
import { useTabbar } from '@uxda/appkit-next'
|
|
171
|
-
|
|
172
|
-
onMounted(() => {
|
|
173
|
-
const { setTab } = useTabbar()
|
|
174
|
-
setTab('home')
|
|
175
|
-
})
|
|
176
|
-
```
|
|
177
|
-
以上代码用于切换到 /pages/home/index 时, 设置 tab bar 选中项为 'home'
|
|
178
|
-
在 custom-tab-bar/index.vue 需要做以下设置
|
|
179
|
-
|
|
180
|
-
```typescript
|
|
181
|
-
import { useSafeArea, useTabbar } from '@uxda/appkit-next'
|
|
182
|
-
|
|
183
|
-
const { onTabChange } = useTabbar()
|
|
184
|
-
onTabChange((value: string) => {
|
|
185
|
-
selected.value = value
|
|
186
|
-
})
|
|
187
|
-
```
|
|
1
|
+
# AppKit
|
|
2
|
+
|
|
3
|
+
小程序应用开发包
|
|
4
|
+
|
|
5
|
+
向诸小程序提供供用的组件及基础设施
|
|
6
|
+
|
|
7
|
+
模块:
|
|
8
|
+
* payment 支付
|
|
9
|
+
* balance 账户、代币(云豆)余额
|
|
10
|
+
* auth 登录及会话状态 (待定)
|
|
11
|
+
|
|
12
|
+
## 将 AppKit 加入应用项目
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
git clone git@10.1.108.137:fed/appkit.git
|
|
16
|
+
cd appkit
|
|
17
|
+
yarn link
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
然后 cd 到(周转)小程序根目录执行:
|
|
21
|
+
```bash
|
|
22
|
+
yarn link @uxda/appkit
|
|
23
|
+
```
|
|
24
|
+
完成 npm link
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## 用法
|
|
28
|
+
```typescript
|
|
29
|
+
import AppKit from '@uxda/appkit'
|
|
30
|
+
import '@uxda/appkit/appkit.css'
|
|
31
|
+
```
|
|
32
|
+
## AppKit 初始化
|
|
33
|
+
|
|
34
|
+
在应用入口页调用(示例)
|
|
35
|
+
```typescript
|
|
36
|
+
const App = createApp({})
|
|
37
|
+
App.use(AppKit, {
|
|
38
|
+
app: () => 'cloudkitPro',
|
|
39
|
+
tenant: () => '1',
|
|
40
|
+
token: () => localStorage.getItem('token'),
|
|
41
|
+
baseUrl: () => process.env.TARO_APP_BASE_URL,
|
|
42
|
+
401: () => {
|
|
43
|
+
// 登录态丢失时的处理
|
|
44
|
+
}
|
|
45
|
+
})
|
|
46
|
+
```
|
|
47
|
+
为 AppKit 的运行提供必需的 API 参数
|
|
48
|
+
* app: 当前的 app code (嵌入接口调用的 header 参数)
|
|
49
|
+
* tenant: 租户ID 需要提供以便调用接口
|
|
50
|
+
* token: 用户登录态 token
|
|
51
|
+
* baseUrl: 调用 API 的URL域名
|
|
52
|
+
* 401: 登录态丢失异常处理 (通常要跳转登录页)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
## UI组件
|
|
56
|
+
### 1️⃣ 充值用户界面 <recharge-view>
|
|
57
|
+
|
|
58
|
+
```typescript
|
|
59
|
+
import { RechargeView } from '@uxda/appkit'
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
```html
|
|
63
|
+
<template>
|
|
64
|
+
<recharge-view
|
|
65
|
+
app="crm"
|
|
66
|
+
tenant="1"
|
|
67
|
+
@complete="onRechargeComplete" />
|
|
68
|
+
</template>
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
#### 属性 props
|
|
72
|
+
|
|
73
|
+
#### 事件 emits
|
|
74
|
+
|
|
75
|
+
* @complete: 充值完成时发生
|
|
76
|
+
|
|
77
|
+
### 2️⃣ 账户页 <account-view>
|
|
78
|
+
```
|
|
79
|
+
import { AccountView } from '@uxda/appkit'
|
|
80
|
+
```
|
|
81
|
+
```html
|
|
82
|
+
<template>
|
|
83
|
+
<account-view app="crm" @recharge=onAccountViewRecharge />
|
|
84
|
+
<template>
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
#### 事件 emits
|
|
88
|
+
* @recharge 点击充值按钮时发生
|
|
89
|
+
|
|
90
|
+
### 3️⃣ 账户卡片 <balance-card>
|
|
91
|
+
|
|
92
|
+
```typescript
|
|
93
|
+
import { BalanceCard } from '@uxda/appkit'
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
```html
|
|
97
|
+
<template>
|
|
98
|
+
<balance-card app="crm" @drill="onBalanceCardDrill" @recharge="onBalanceCardRecharge" />
|
|
99
|
+
<template>
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
#### 事件 emits
|
|
103
|
+
* app 配置到组件上的 app code
|
|
104
|
+
* @drill 点击账户详情时发生
|
|
105
|
+
* @recharge 点击充值按钮时发生
|
|
106
|
+
|
|
107
|
+
场景端需定义以上跳转逻辑:
|
|
108
|
+
|
|
109
|
+
```typescript
|
|
110
|
+
function onBalanceCardDrill () {
|
|
111
|
+
//...
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
function onBalanceCardRecharge () {
|
|
115
|
+
//...
|
|
116
|
+
}
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
### 方法 methods
|
|
120
|
+
* reload() 刷新数据
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
### 4️⃣ 余额不足提示框 <balance-reminder>
|
|
125
|
+
|
|
126
|
+
```typescript
|
|
127
|
+
import { BalanceReminder } from '@uxda/appkit'
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
```html
|
|
131
|
+
<balance-reminder v-model="balanceReminderOpen"
|
|
132
|
+
@recharge="onBalanceReminderRecharge" />
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
#### 事件 emits
|
|
136
|
+
* @recharge 点击充值按钮时发生
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
## 公共API
|
|
140
|
+
### 1️⃣ 唤起充值(跳支付中心小程序) $app.invokeRecharge()
|
|
141
|
+
|
|
142
|
+
```typescript
|
|
143
|
+
import { useAppKit } from '@uxda/appkit'
|
|
144
|
+
const $app = useAppKit()
|
|
145
|
+
$app.invokeRecharge({
|
|
146
|
+
app: 'crm',
|
|
147
|
+
tenant: '1',
|
|
148
|
+
})
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
### 2️⃣ 唤起充值(小程序内直接支付、不跳) $app.requestPayment()
|
|
152
|
+
|
|
153
|
+
```typescript
|
|
154
|
+
import { useAppKit } from '@uxda/appkit'
|
|
155
|
+
const $app = useAppKit()
|
|
156
|
+
$app.requestPayment({
|
|
157
|
+
app: 'crm',
|
|
158
|
+
tenant: '1',
|
|
159
|
+
amount: 100,
|
|
160
|
+
user: '' // wx.login 之后得到的用户临时凭证
|
|
161
|
+
})
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
## Hooks (Vue Composables)
|
|
165
|
+
|
|
166
|
+
### useTabbar
|
|
167
|
+
用于获取或设置 custom tab bar
|
|
168
|
+
|
|
169
|
+
```typescript
|
|
170
|
+
import { useTabbar } from '@uxda/appkit-next'
|
|
171
|
+
|
|
172
|
+
onMounted(() => {
|
|
173
|
+
const { setTab } = useTabbar()
|
|
174
|
+
setTab('home')
|
|
175
|
+
})
|
|
176
|
+
```
|
|
177
|
+
以上代码用于切换到 /pages/home/index 时, 设置 tab bar 选中项为 'home'
|
|
178
|
+
在 custom-tab-bar/index.vue 需要做以下设置
|
|
179
|
+
|
|
180
|
+
```typescript
|
|
181
|
+
import { useSafeArea, useTabbar } from '@uxda/appkit-next'
|
|
182
|
+
|
|
183
|
+
const { onTabChange } = useTabbar()
|
|
184
|
+
onTabChange((value: string) => {
|
|
185
|
+
selected.value = value
|
|
186
|
+
})
|
|
187
|
+
```
|
|
188
188
|
以上代码设置响应页面内的 setTab() 动作
|
package/babel.config.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
// babel-preset-taro 更多选项和默认值:
|
|
2
|
-
// https://github.com/NervJS/taro/blob/next/packages/babel-preset-taro/README.md
|
|
3
|
-
module.exports = {
|
|
4
|
-
presets: [
|
|
5
|
-
['taro', {
|
|
6
|
-
framework: 'vue3',
|
|
7
|
-
ts: true
|
|
8
|
-
}]
|
|
9
|
-
],
|
|
10
|
-
plugins: [
|
|
11
|
-
],
|
|
12
|
-
}
|
|
1
|
+
// babel-preset-taro 更多选项和默认值:
|
|
2
|
+
// https://github.com/NervJS/taro/blob/next/packages/babel-preset-taro/README.md
|
|
3
|
+
module.exports = {
|
|
4
|
+
presets: [
|
|
5
|
+
['taro', {
|
|
6
|
+
framework: 'vue3',
|
|
7
|
+
ts: true
|
|
8
|
+
}]
|
|
9
|
+
],
|
|
10
|
+
plugins: [
|
|
11
|
+
],
|
|
12
|
+
}
|
package/dist/appkit.css
CHANGED
|
@@ -435,12 +435,12 @@
|
|
|
435
435
|
color: #353535;
|
|
436
436
|
background: linear-gradient(90deg, #FFEBC1 0%, #FFB875 100%);
|
|
437
437
|
}
|
|
438
|
-
page {
|
|
439
|
-
--text-color: #333;
|
|
440
|
-
--text-color-dark-mode: #eee;
|
|
438
|
+
page {
|
|
439
|
+
--text-color: #333;
|
|
440
|
+
--text-color-dark-mode: #eee;
|
|
441
441
|
}
|
|
442
|
-
.number {
|
|
443
|
-
font-family: 'DIN alternate', 'Roboto', sans-serif-condensed-light;
|
|
442
|
+
.number {
|
|
443
|
+
font-family: 'DIN alternate', 'Barlow Condensed', 'Roboto Condensed', sans-serif-condensed-light;
|
|
444
444
|
}
|
|
445
445
|
.account-card .card {
|
|
446
446
|
background: #2f2f2f;
|
|
@@ -623,14 +623,14 @@ page {
|
|
|
623
623
|
top: 11px;
|
|
624
624
|
background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDIiIGhlaWdodD0iNDIiIHZpZXdCb3g9IjAgMCA0MiA0MiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggb3BhY2l0eT0iMC4wMSIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00MSA0MUgxVjFINDFWNDFaIiBmaWxsPSIjRDhEOEQ4IiBzdHJva2U9ImJsYWNrIiBzdHJva2Utb3BhY2l0eT0iMC4wMSIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTIzLjM1NjEgMjAuOTk5OUwzMy45NjM3IDMxLjYwNzJDMzQuNjE0NiAzMi4yNTgxIDM0LjYxNDYgMzMuMzEzNCAzMy45NjM3IDMzLjk2NDJDMzMuMzQyNSAzNC41ODU1IDMyLjM1MjcgMzQuNjEzOCAzMS42OTc5IDM0LjA0ODlMMjAuOTk5NCAyMy4zNTY2TDEwLjM5MzUgMzMuOTY0MkM5Ljc0MjY1IDM0LjYxNTEgOC42ODczOCAzNC42MTUxIDguMDM2NSAzMy45NjQyQzcuNDE1MTkgMzMuMzQyOSA3LjM4Njk3IDMyLjM1MzIgNy45NTE3OSAzMS42OTg0TDE4LjY0MjggMjAuOTk5OUw4LjAzNjUgMTAuMzk0QzcuMzg1NjMgOS43NDMxNCA3LjM4NTYzIDguNjg3ODcgOC4wMzY1IDguMDM2OTlDOC42NTc3OSA3LjQxNTY4IDkuNjQ3NTQgNy4zODc0NiAxMC4zMDIzIDcuOTUyMjdMMjAuOTk5NCAxOC42NDMzTDMxLjYwNjcgOC4wMzY5OUMzMi4yNTc2IDcuMzg2MTIgMzMuMzEyOSA3LjM4NjEyIDMzLjk2MzcgOC4wMzY5OUMzNC41ODUgOC42NTgyOCAzNC42MTMzIDkuNjQ4MDMgMzQuMDQ4NSAxMC4zMDI4TDIzLjM1NjEgMjAuOTk5OVoiIGZpbGw9IiMxNzFBMUQiIHN0cm9rZT0iYmxhY2siIHN0cm9rZS1vcGFjaXR5PSIwLjAxIi8+Cjwvc3ZnPgo=");
|
|
625
625
|
}
|
|
626
|
-
.
|
|
626
|
+
.appkit-date-filter {
|
|
627
627
|
height: 100%;
|
|
628
628
|
display: flex;
|
|
629
629
|
flex-direction: column;
|
|
630
630
|
width: 100%;
|
|
631
631
|
position: relative;
|
|
632
632
|
}
|
|
633
|
-
.
|
|
633
|
+
.appkit-date-filter .date-filter-header {
|
|
634
634
|
text-align: center;
|
|
635
635
|
height: 44px;
|
|
636
636
|
line-height: 44px;
|
|
@@ -638,42 +638,42 @@ page {
|
|
|
638
638
|
font-size: 17px;
|
|
639
639
|
background-color: #f5f5f5;
|
|
640
640
|
}
|
|
641
|
-
.
|
|
641
|
+
.appkit-date-filter .content {
|
|
642
642
|
flex: 1;
|
|
643
643
|
margin: 15px;
|
|
644
644
|
overflow-y: scroll;
|
|
645
645
|
color: #353535;
|
|
646
646
|
font-size: 13px;
|
|
647
647
|
}
|
|
648
|
-
.
|
|
648
|
+
.appkit-date-filter .content .title {
|
|
649
649
|
opacity: 0.6;
|
|
650
650
|
line-height: 18px;
|
|
651
651
|
}
|
|
652
|
-
.
|
|
652
|
+
.appkit-date-filter .content .info {
|
|
653
653
|
display: grid;
|
|
654
654
|
grid-template-columns: 1fr 1fr 1fr;
|
|
655
655
|
grid-gap: 10px;
|
|
656
656
|
margin: 10px 0;
|
|
657
657
|
}
|
|
658
|
-
.
|
|
658
|
+
.appkit-date-filter .content .info .item {
|
|
659
659
|
height: 30px;
|
|
660
660
|
line-height: 30px;
|
|
661
661
|
border: 1px solid #ccc;
|
|
662
662
|
border-radius: 6px;
|
|
663
663
|
text-align: center;
|
|
664
664
|
}
|
|
665
|
-
.
|
|
665
|
+
.appkit-date-filter .content .info .current {
|
|
666
666
|
border: 1px solid;
|
|
667
667
|
border-image-source: linear-gradient(180deg, rgba(239, 208, 130, 0.8) 0%, rgba(255, 185, 120, 0.8) 100%);
|
|
668
668
|
background: linear-gradient(180deg, rgba(239, 208, 130, 0.8) 0%, rgba(255, 185, 120, 0.8) 100%), linear-gradient(180deg, #fff7e3 0%, #fefde6 100%);
|
|
669
669
|
}
|
|
670
|
-
.
|
|
671
|
-
margin: 0 15px;
|
|
670
|
+
.appkit-date-filter .buttons {
|
|
671
|
+
margin: 32px 15px 0 15px;
|
|
672
672
|
display: flex;
|
|
673
673
|
justify-content: space-between;
|
|
674
674
|
align-items: center;
|
|
675
675
|
}
|
|
676
|
-
.
|
|
676
|
+
.appkit-date-filter .buttons .btn {
|
|
677
677
|
flex: 1;
|
|
678
678
|
height: 40px;
|
|
679
679
|
line-height: 40px;
|
|
@@ -684,22 +684,22 @@ page {
|
|
|
684
684
|
font-size: 16px;
|
|
685
685
|
border-radius: 6px;
|
|
686
686
|
}
|
|
687
|
-
.
|
|
687
|
+
.appkit-date-filter .buttons .confirm {
|
|
688
688
|
margin-left: 11px;
|
|
689
689
|
color: #000;
|
|
690
690
|
border: none;
|
|
691
691
|
background: linear-gradient(90deg, #ffebc1 0%, #ffd7a7 52.29%, #ffb875 100%);
|
|
692
692
|
}
|
|
693
|
-
.
|
|
693
|
+
.appkit-date-filter .time {
|
|
694
694
|
display: flex;
|
|
695
695
|
justify-content: flex-start;
|
|
696
696
|
align-items: center;
|
|
697
697
|
margin: 10px 0 30px 0;
|
|
698
698
|
}
|
|
699
|
-
.
|
|
699
|
+
.appkit-date-filter .time .line {
|
|
700
700
|
margin: 0 8px;
|
|
701
701
|
}
|
|
702
|
-
.
|
|
702
|
+
.appkit-date-filter .time .item {
|
|
703
703
|
height: 30px;
|
|
704
704
|
line-height: 30px;
|
|
705
705
|
padding: 0 15px;
|
|
@@ -710,13 +710,16 @@ page {
|
|
|
710
710
|
background: rgba(245, 245, 245, 0.8);
|
|
711
711
|
border-radius: 6px;
|
|
712
712
|
}
|
|
713
|
-
.
|
|
713
|
+
.appkit-date-filter .time .current {
|
|
714
714
|
border: 1px solid #353535;
|
|
715
715
|
}
|
|
716
|
-
.
|
|
716
|
+
.appkit-date-filter .bottom {
|
|
717
717
|
height: 32px;
|
|
718
718
|
background: #fff;
|
|
719
719
|
}
|
|
720
|
+
.nut-overlay.date-filter-picker-overlay {
|
|
721
|
+
height: 100vh;
|
|
722
|
+
}
|
|
720
723
|
.consumption-rules .title {
|
|
721
724
|
line-height: 16px;
|
|
722
725
|
font-weight: 500;
|
|
@@ -1462,7 +1465,7 @@ page {
|
|
|
1462
1465
|
padding-left: 6px;
|
|
1463
1466
|
}
|
|
1464
1467
|
.notice-entry {
|
|
1465
|
-
position:
|
|
1468
|
+
position: absolute;
|
|
1466
1469
|
right: 0;
|
|
1467
1470
|
top: 120px;
|
|
1468
1471
|
min-width: 66px;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|