@uxda/appkit 4.2.63 → 4.2.64
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/appkit.css +1 -1
- package/dist/index.js +11 -13
- package/package.json +1 -1
- package/src/balance/components/AccountView.vue +1 -1
- package/src/balance/components/ConsumptionFilter.vue +1 -1
- package/src/balance/components/ListFilterPicker.vue +1 -1
- package/src/user/components/UserInfo.vue +7 -6
package/dist/appkit.css
CHANGED
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import '@nutui/nutui-taro/dist/packages/checkbox/style/css';
|
|
|
4
4
|
import { defineComponent, reactive, createBlock, openBlock, withCtx, createElementBlock, Fragment, renderList, normalizeClass, createElementVNode, toDisplayString, createTextVNode, ref, computed, onUnmounted, createCommentVNode, renderSlot, createVNode, normalizeStyle, unref, isRef, onMounted, createStaticVNode, watch, withDirectives, vShow, useModel, mergeModels, resolveComponent, vModelText, watchPostEffect, withModifiers } from 'vue';
|
|
5
5
|
import '@nutui/nutui-taro/dist/packages/grid/style/css';
|
|
6
6
|
import '@nutui/nutui-taro/dist/packages/griditem/style/css';
|
|
7
|
-
import Taro, { getSystemInfoSync, getMenuButtonBoundingClientRect, uploadFile, request as request$1, showToast, chooseMedia, chooseMessageFile, showLoading, hideLoading, useDidShow, showModal, getStorageSync,
|
|
7
|
+
import Taro, { getSystemInfoSync, getMenuButtonBoundingClientRect, uploadFile, request as request$1, showToast, chooseMedia, chooseMessageFile, showLoading, hideLoading, useDidShow, showModal, getStorageSync, useRouter } from '@tarojs/taro';
|
|
8
8
|
import '@nutui/nutui-taro/dist/packages/popup/style/css';
|
|
9
9
|
import isMobilePhone from 'validator/es/lib/isMobilePhone';
|
|
10
10
|
import isIdentityCard from 'validator/es/lib/isIdentityCard';
|
|
@@ -2535,9 +2535,7 @@ var script$v = /* @__PURE__ */ defineComponent({
|
|
|
2535
2535
|
_cache[0] || (_cache[0] = createElementVNode(
|
|
2536
2536
|
"div",
|
|
2537
2537
|
{ class: "consumption-filter-title" },
|
|
2538
|
-
|
|
2539
|
-
createElementVNode("h3", null, "\u9009\u62E9\u7B5B\u9009\u9879")
|
|
2540
|
-
],
|
|
2538
|
+
" \u9009\u62E9\u7B5B\u9009\u9879 ",
|
|
2541
2539
|
-1
|
|
2542
2540
|
/* HOISTED */
|
|
2543
2541
|
)),
|
|
@@ -3793,9 +3791,7 @@ var script$n = /* @__PURE__ */ defineComponent({
|
|
|
3793
3791
|
_cache[0] || (_cache[0] = createElementVNode(
|
|
3794
3792
|
"div",
|
|
3795
3793
|
{ class: "list-filter-picker-title" },
|
|
3796
|
-
|
|
3797
|
-
createElementVNode("h3", null, "\u9009\u62E9\u7B5B\u9009\u9879")
|
|
3798
|
-
],
|
|
3794
|
+
" \u9009\u62E9\u7B5B\u9009\u9879 ",
|
|
3799
3795
|
-1
|
|
3800
3796
|
/* HOISTED */
|
|
3801
3797
|
)),
|
|
@@ -6037,16 +6033,18 @@ var script$9 = /* @__PURE__ */ defineComponent({
|
|
|
6037
6033
|
});
|
|
6038
6034
|
updateImage(res.tempFilePath);
|
|
6039
6035
|
} else {
|
|
6040
|
-
let res = await
|
|
6041
|
-
count: 1
|
|
6036
|
+
let res = await chooseMedia({
|
|
6037
|
+
count: 1,
|
|
6038
|
+
sourceType: ["album"]
|
|
6039
|
+
// "camera" | "album"
|
|
6042
6040
|
});
|
|
6043
|
-
if (res.
|
|
6044
|
-
const
|
|
6041
|
+
if (res.tempFiles) {
|
|
6042
|
+
const { tempFilePath } = res.tempFiles[0];
|
|
6045
6043
|
if (Taro.getEnv() === "WEB") {
|
|
6046
|
-
updateImage(
|
|
6044
|
+
updateImage(tempFilePath);
|
|
6047
6045
|
return;
|
|
6048
6046
|
}
|
|
6049
|
-
emits("crop",
|
|
6047
|
+
emits("crop", tempFilePath);
|
|
6050
6048
|
}
|
|
6051
6049
|
}
|
|
6052
6050
|
}
|
package/package.json
CHANGED
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
</template>
|
|
129
129
|
|
|
130
130
|
<script lang="ts" setup>
|
|
131
|
-
import Taro, { useDidShow, showToast, showLoading, hideLoading, uploadFile, showModal,
|
|
131
|
+
import Taro, { useDidShow, showToast, showLoading, hideLoading, uploadFile, showModal, chooseMedia } from "@tarojs/taro";
|
|
132
132
|
import { ref, onMounted, reactive, onUnmounted } from "vue";
|
|
133
133
|
import { useAppKitOptions } from "../../Appkit";
|
|
134
134
|
import { useEncode } from "../../shared/composables/useEncode";
|
|
@@ -198,18 +198,19 @@ async function toUpload() {
|
|
|
198
198
|
|
|
199
199
|
updateImage(res.tempFilePath);
|
|
200
200
|
} else {
|
|
201
|
-
let res = await
|
|
201
|
+
let res = await chooseMedia({
|
|
202
202
|
count: 1,
|
|
203
|
+
sourceType: ['album'], // "camera" | "album"
|
|
203
204
|
});
|
|
204
|
-
if (res.
|
|
205
|
-
const
|
|
205
|
+
if (res.tempFiles) {
|
|
206
|
+
const { tempFilePath } = res.tempFiles[0];
|
|
206
207
|
|
|
207
208
|
if (Taro.getEnv() === "WEB") {
|
|
208
|
-
updateImage(
|
|
209
|
+
updateImage(tempFilePath);
|
|
209
210
|
return
|
|
210
211
|
}
|
|
211
212
|
|
|
212
|
-
emits("crop",
|
|
213
|
+
emits("crop", tempFilePath);
|
|
213
214
|
}
|
|
214
215
|
}
|
|
215
216
|
}
|