@uxda/appkit 4.3.27 → 4.3.28
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/Appkit/347/273/204/344/273/266/344/275/277/347/224/250/350/247/204/345/210/231.md +62 -0
- package/dist/appkit.css +9 -0
- package/dist/assets/asset-DcH8Kg-2 +1 -0
- package/dist/assets/index-DcH8Kg-2.css +1 -0
- package/dist/index.js +111 -43
- package/package.json +5 -2
- package/rollup.config.mjs +3 -0
- package/src/shared/components/OfficeDocx.vue +33 -0
- package/src/shared/components/OfficePdf.vue +35 -0
- package/src/shared/components/index.ts +3 -1
|
@@ -43,6 +43,10 @@
|
|
|
43
43
|
### 业务场景 (Scenarios)
|
|
44
44
|
- [SharePoster - 分享海报](#shareposter---分享海报)
|
|
45
45
|
|
|
46
|
+
### 共享模块 (Shared)
|
|
47
|
+
- [OfficePdf - PDF 预览](#officepdf---pdf-预览)
|
|
48
|
+
- [OfficeDocx - Word 文档预览](#officedocx---word-文档预览)
|
|
49
|
+
|
|
46
50
|
### 通用基础组件 (Components)
|
|
47
51
|
- [DdSearch - 搜索框](#ddsearch---搜索框)
|
|
48
52
|
- [DdIcon - 图标组件](#ddicon---图标组件)
|
|
@@ -1501,6 +1505,64 @@ const handleShare = () => {
|
|
|
1501
1505
|
|
|
1502
1506
|
---
|
|
1503
1507
|
|
|
1508
|
+
# 共享模块组件使用规则
|
|
1509
|
+
|
|
1510
|
+
## OfficePdf - PDF 预览
|
|
1511
|
+
|
|
1512
|
+
**功能描述**: 基于 @vue-office/pdf 的 PDF 在线预览组件,用于在小程序/H5 中展示 PDF 文件。
|
|
1513
|
+
|
|
1514
|
+
### 导入方式
|
|
1515
|
+
|
|
1516
|
+
```typescript
|
|
1517
|
+
import { OfficePdf } from '@uxda/appkit'
|
|
1518
|
+
// 或
|
|
1519
|
+
import { OfficePdf } from '@uxda/appkit/shared'
|
|
1520
|
+
```
|
|
1521
|
+
|
|
1522
|
+
### Props
|
|
1523
|
+
|
|
1524
|
+
| 属性名 | 类型 | 必填 | 默认值 | 说明 |
|
|
1525
|
+
|--------|------|------|--------|------|
|
|
1526
|
+
| `src` | `string` | ✅ | - | PDF 文件地址(URL) |
|
|
1527
|
+
|
|
1528
|
+
### Events
|
|
1529
|
+
|
|
1530
|
+
组件内部使用 @vue-office/pdf 的 `rendered`、`error`,如需对外暴露可在组件内通过 `defineEmits` 透传。
|
|
1531
|
+
|
|
1532
|
+
### Slots
|
|
1533
|
+
|
|
1534
|
+
无。
|
|
1535
|
+
|
|
1536
|
+
---
|
|
1537
|
+
|
|
1538
|
+
## OfficeDocx - Word 文档预览
|
|
1539
|
+
|
|
1540
|
+
**功能描述**: 基于 @vue-office/docx 的 Word 文档在线预览组件,用于在小程序/H5 中展示 .docx 文件。
|
|
1541
|
+
|
|
1542
|
+
### 导入方式
|
|
1543
|
+
|
|
1544
|
+
```typescript
|
|
1545
|
+
import { OfficeDocx } from '@uxda/appkit'
|
|
1546
|
+
// 或
|
|
1547
|
+
import { OfficeDocx } from '@uxda/appkit/shared'
|
|
1548
|
+
```
|
|
1549
|
+
|
|
1550
|
+
### Props
|
|
1551
|
+
|
|
1552
|
+
| 属性名 | 类型 | 必填 | 默认值 | 说明 |
|
|
1553
|
+
|--------|------|------|--------|------|
|
|
1554
|
+
| `src` | `string` | ✅ | - | Word 文档地址(URL) |
|
|
1555
|
+
|
|
1556
|
+
### Events
|
|
1557
|
+
|
|
1558
|
+
组件内部使用 @vue-office/docx 的 `rendered`、`error`,如需对外暴露可在组件内通过 `defineEmits` 透传。
|
|
1559
|
+
|
|
1560
|
+
### Slots
|
|
1561
|
+
|
|
1562
|
+
无。
|
|
1563
|
+
|
|
1564
|
+
---
|
|
1565
|
+
|
|
1504
1566
|
# 通用基础组件使用规则
|
|
1505
1567
|
|
|
1506
1568
|
## DdSearch - 搜索框
|
package/dist/appkit.css
CHANGED
|
@@ -229,6 +229,15 @@
|
|
|
229
229
|
.ocr-invoice.disabled .ns-icon {
|
|
230
230
|
filter: brightness(1.5) grayscale(1);
|
|
231
231
|
}
|
|
232
|
+
.office-pdf {
|
|
233
|
+
height: 100%;
|
|
234
|
+
}
|
|
235
|
+
.office-pdf .vue-office-pdf-wrapper {
|
|
236
|
+
height: 100%;
|
|
237
|
+
}
|
|
238
|
+
.office-docx {
|
|
239
|
+
height: 100%;
|
|
240
|
+
}
|
|
232
241
|
.recharge-view {
|
|
233
242
|
height: 100%;
|
|
234
243
|
display: flex;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Grid, GridItem, Popup, ActionSheet, Checkbox, Button, Dialog, DatePicker, Form, FormItem, RadioGroup, Radio, Ellipsis, Skeleton, Cell, Input, Steps, Step } from '@nutui/nutui-taro';
|
|
2
2
|
import '@nutui/nutui-taro/dist/packages/button/style/css';
|
|
3
3
|
import '@nutui/nutui-taro/dist/packages/checkbox/style/css';
|
|
4
|
-
import { defineComponent, reactive,
|
|
4
|
+
import { defineComponent, reactive, createBlock, openBlock, withCtx, createElementBlock, Fragment, renderList, normalizeClass, createElementVNode, toDisplayString, createTextVNode, ref, computed, onUnmounted, resolveDirective, createCommentVNode, withDirectives, renderSlot, createVNode, normalizeStyle, unref, isRef, onMounted, createStaticVNode, watch, vShow, mergeModels, useModel, 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
7
|
import Taro, { showModal, getSystemInfoSync, getMenuButtonBoundingClientRect, request as request$1, uploadFile, showToast, chooseMedia, chooseMessageFile, showLoading, hideLoading, getStorageSync, setStorageSync, getSystemInfo, getNetworkType, getEnv, getAccountInfoSync, getPerformance, onAppHide, useDidShow, onAppShow, onNetworkStatusChange, useRouter } from '@tarojs/taro';
|
|
@@ -11,6 +11,9 @@ import isIdentityCard from 'validator/es/lib/isIdentityCard';
|
|
|
11
11
|
import qs from 'qs';
|
|
12
12
|
import { NsForm, NsInput, NsButton, useNutshell, NsIcon, usePopup, NsButtonGroup, usePaging, NsPage, NsTabs, NsPageContent, NsSkeleton, NsRepeator, NsCard, NsEmpty, NsCheckbox } from '@uxda/nutshell/taro';
|
|
13
13
|
import '@nutui/nutui-taro/dist/packages/actionsheet/style/css';
|
|
14
|
+
import VueOfficePdf from '@vue-office/pdf';
|
|
15
|
+
import VueOfficeDocx from '@vue-office/docx';
|
|
16
|
+
import '@vue-office/docx/lib/index.css';
|
|
14
17
|
import pako from 'pako';
|
|
15
18
|
import dsBridge from 'dsbridge';
|
|
16
19
|
import { debounce as debounce$1 } from 'lodash-es';
|
|
@@ -32,9 +35,9 @@ import '@nutui/nutui-taro/dist/packages/skeleton/style/css';
|
|
|
32
35
|
import '@nutui/nutui-taro/dist/packages/steps/style/css';
|
|
33
36
|
import '@nutui/nutui-taro/dist/packages/step/style/css';
|
|
34
37
|
|
|
35
|
-
const _hoisted_1$
|
|
38
|
+
const _hoisted_1$I = { class: "token-line number" };
|
|
36
39
|
const _hoisted_2$t = { class: "number" };
|
|
37
|
-
var script$
|
|
40
|
+
var script$Q = /* @__PURE__ */ defineComponent({
|
|
38
41
|
__name: "AmountPicker",
|
|
39
42
|
props: {
|
|
40
43
|
items: { type: Array, required: true, default: () => [] },
|
|
@@ -72,7 +75,7 @@ var script$O = /* @__PURE__ */ defineComponent({
|
|
|
72
75
|
default: withCtx(() => [
|
|
73
76
|
createElementVNode(
|
|
74
77
|
"h4",
|
|
75
|
-
_hoisted_1$
|
|
78
|
+
_hoisted_1$I,
|
|
76
79
|
toDisplayString(amount.token),
|
|
77
80
|
1
|
|
78
81
|
/* TEXT */
|
|
@@ -107,7 +110,7 @@ var script$O = /* @__PURE__ */ defineComponent({
|
|
|
107
110
|
}
|
|
108
111
|
});
|
|
109
112
|
|
|
110
|
-
script$
|
|
113
|
+
script$Q.__file = "src/payment/components/AmountPicker.vue";
|
|
111
114
|
|
|
112
115
|
const getSdkConfig = (appCode, url) => {
|
|
113
116
|
return new Promise((resolve, reject) => {
|
|
@@ -634,11 +637,11 @@ const useUpload = (config) => {
|
|
|
634
637
|
};
|
|
635
638
|
};
|
|
636
639
|
|
|
637
|
-
const _hoisted_1$
|
|
640
|
+
const _hoisted_1$H = {
|
|
638
641
|
key: 0,
|
|
639
642
|
class: "page-title"
|
|
640
643
|
};
|
|
641
|
-
var script$
|
|
644
|
+
var script$P = /* @__PURE__ */ defineComponent({
|
|
642
645
|
__name: "PageHeader",
|
|
643
646
|
props: {
|
|
644
647
|
title: { type: String, required: false, default: "" },
|
|
@@ -669,7 +672,7 @@ var script$N = /* @__PURE__ */ defineComponent({
|
|
|
669
672
|
[
|
|
670
673
|
__props.title ? (openBlock(), createElementBlock(
|
|
671
674
|
"h1",
|
|
672
|
-
_hoisted_1$
|
|
675
|
+
_hoisted_1$H,
|
|
673
676
|
toDisplayString(__props.title),
|
|
674
677
|
1
|
|
675
678
|
/* TEXT */
|
|
@@ -695,10 +698,10 @@ var script$N = /* @__PURE__ */ defineComponent({
|
|
|
695
698
|
}
|
|
696
699
|
});
|
|
697
700
|
|
|
698
|
-
script$
|
|
701
|
+
script$P.__file = "src/shared/components/PageHeader.vue";
|
|
699
702
|
|
|
700
|
-
const _hoisted_1$
|
|
701
|
-
var script$
|
|
703
|
+
const _hoisted_1$G = { class: "drawer-body" };
|
|
704
|
+
var script$O = /* @__PURE__ */ defineComponent({
|
|
702
705
|
__name: "AppDrawer",
|
|
703
706
|
props: {
|
|
704
707
|
modelValue: { type: Boolean, required: true },
|
|
@@ -722,12 +725,12 @@ var script$M = /* @__PURE__ */ defineComponent({
|
|
|
722
725
|
"onUpdate:visible": onVisibleChange
|
|
723
726
|
}, {
|
|
724
727
|
default: withCtx(() => [
|
|
725
|
-
createVNode(script$
|
|
728
|
+
createVNode(script$P, {
|
|
726
729
|
title: __props.title,
|
|
727
730
|
style: normalizeStyle(unref(Taro).getEnv() !== "WEB" ? "" : "--height: 40px"),
|
|
728
731
|
onClose: onPageHeaderClose
|
|
729
732
|
}, null, 8, ["title", "style"]),
|
|
730
|
-
createElementVNode("div", _hoisted_1$
|
|
733
|
+
createElementVNode("div", _hoisted_1$G, [
|
|
731
734
|
renderSlot(_ctx.$slots, "default")
|
|
732
735
|
])
|
|
733
736
|
]),
|
|
@@ -738,9 +741,9 @@ var script$M = /* @__PURE__ */ defineComponent({
|
|
|
738
741
|
}
|
|
739
742
|
});
|
|
740
743
|
|
|
741
|
-
script$
|
|
744
|
+
script$O.__file = "src/shared/components/AppDrawer.vue";
|
|
742
745
|
|
|
743
|
-
const _hoisted_1$
|
|
746
|
+
const _hoisted_1$F = { class: "app-verify column" };
|
|
744
747
|
const _hoisted_2$s = { class: "caption" };
|
|
745
748
|
const _hoisted_3$m = { class: "number" };
|
|
746
749
|
const _hoisted_4$i = { class: "form-btn" };
|
|
@@ -749,7 +752,7 @@ const _hoisted_5$e = {
|
|
|
749
752
|
class: "caption"
|
|
750
753
|
};
|
|
751
754
|
const _hoisted_6$a = { class: "row buttons" };
|
|
752
|
-
var script$
|
|
755
|
+
var script$N = /* @__PURE__ */ defineComponent({
|
|
753
756
|
__name: "AppVerify",
|
|
754
757
|
props: {
|
|
755
758
|
phone: { type: String, required: true },
|
|
@@ -782,7 +785,7 @@ var script$L = /* @__PURE__ */ defineComponent({
|
|
|
782
785
|
const props = __props;
|
|
783
786
|
return (_ctx, _cache) => {
|
|
784
787
|
const _directive_track_click = resolveDirective("track-click");
|
|
785
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
788
|
+
return openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
786
789
|
createElementVNode(
|
|
787
790
|
"h2",
|
|
788
791
|
null,
|
|
@@ -894,10 +897,10 @@ var script$L = /* @__PURE__ */ defineComponent({
|
|
|
894
897
|
}
|
|
895
898
|
});
|
|
896
899
|
|
|
897
|
-
script$
|
|
900
|
+
script$N.__file = "src/shared/components/AppVerify.vue";
|
|
898
901
|
|
|
899
|
-
const _hoisted_1$
|
|
900
|
-
var script$
|
|
902
|
+
const _hoisted_1$E = { key: 0 };
|
|
903
|
+
var script$M = /* @__PURE__ */ defineComponent({
|
|
901
904
|
__name: "index",
|
|
902
905
|
props: {
|
|
903
906
|
text: { type: String, required: false },
|
|
@@ -929,7 +932,7 @@ var script$K = /* @__PURE__ */ defineComponent({
|
|
|
929
932
|
}, [
|
|
930
933
|
__props.text ? (openBlock(), createElementBlock(
|
|
931
934
|
"span",
|
|
932
|
-
_hoisted_1$
|
|
935
|
+
_hoisted_1$E,
|
|
933
936
|
toDisplayString(__props.text),
|
|
934
937
|
1
|
|
935
938
|
/* TEXT */
|
|
@@ -964,7 +967,7 @@ var script$K = /* @__PURE__ */ defineComponent({
|
|
|
964
967
|
}
|
|
965
968
|
});
|
|
966
969
|
|
|
967
|
-
script$
|
|
970
|
+
script$M.__file = "src/components/dd-notice-bar/index.vue";
|
|
968
971
|
|
|
969
972
|
const typeMappings = {
|
|
970
973
|
CZ: "\u5145\u503C",
|
|
@@ -1169,7 +1172,7 @@ function useHttp$3() {
|
|
|
1169
1172
|
return $http;
|
|
1170
1173
|
}
|
|
1171
1174
|
|
|
1172
|
-
var script$
|
|
1175
|
+
var script$L = /* @__PURE__ */ defineComponent({
|
|
1173
1176
|
__name: "DeviceVersion",
|
|
1174
1177
|
props: {
|
|
1175
1178
|
versions: { type: String, required: false, default: "{}" }
|
|
@@ -1216,7 +1219,7 @@ var script$J = /* @__PURE__ */ defineComponent({
|
|
|
1216
1219
|
}
|
|
1217
1220
|
});
|
|
1218
1221
|
return (_ctx, _cache) => {
|
|
1219
|
-
return showAlert.value ? (openBlock(), createBlock(script$
|
|
1222
|
+
return showAlert.value ? (openBlock(), createBlock(script$M, {
|
|
1220
1223
|
key: 0,
|
|
1221
1224
|
showClose: "",
|
|
1222
1225
|
style: normalizeStyle(topStype.value),
|
|
@@ -1227,9 +1230,9 @@ var script$J = /* @__PURE__ */ defineComponent({
|
|
|
1227
1230
|
}
|
|
1228
1231
|
});
|
|
1229
1232
|
|
|
1230
|
-
script$
|
|
1233
|
+
script$L.__file = "src/shared/components/DeviceVersion.vue";
|
|
1231
1234
|
|
|
1232
|
-
var script$
|
|
1235
|
+
var script$K = /* @__PURE__ */ defineComponent({
|
|
1233
1236
|
__name: "OcrIcon",
|
|
1234
1237
|
props: {
|
|
1235
1238
|
disabled: { type: Boolean, required: false, default: false },
|
|
@@ -1442,9 +1445,9 @@ var script$I = /* @__PURE__ */ defineComponent({
|
|
|
1442
1445
|
}
|
|
1443
1446
|
});
|
|
1444
1447
|
|
|
1445
|
-
script$
|
|
1448
|
+
script$K.__file = "src/shared/components/OcrIcon.vue";
|
|
1446
1449
|
|
|
1447
|
-
var script$
|
|
1450
|
+
var script$J = /* @__PURE__ */ defineComponent({
|
|
1448
1451
|
__name: "OcrBank",
|
|
1449
1452
|
props: {
|
|
1450
1453
|
disabled: { type: Boolean, required: false, default: false },
|
|
@@ -1609,9 +1612,9 @@ var script$H = /* @__PURE__ */ defineComponent({
|
|
|
1609
1612
|
}
|
|
1610
1613
|
});
|
|
1611
1614
|
|
|
1612
|
-
script$
|
|
1615
|
+
script$J.__file = "src/shared/components/OcrBank.vue";
|
|
1613
1616
|
|
|
1614
|
-
var script$
|
|
1617
|
+
var script$I = /* @__PURE__ */ defineComponent({
|
|
1615
1618
|
__name: "OcrBusinessLicense",
|
|
1616
1619
|
props: {
|
|
1617
1620
|
disabled: { type: Boolean, required: true, default: false },
|
|
@@ -1706,9 +1709,9 @@ var script$G = /* @__PURE__ */ defineComponent({
|
|
|
1706
1709
|
}
|
|
1707
1710
|
});
|
|
1708
1711
|
|
|
1709
|
-
script$
|
|
1712
|
+
script$I.__file = "src/shared/components/OcrBusinessLicense.vue";
|
|
1710
1713
|
|
|
1711
|
-
var script$
|
|
1714
|
+
var script$H = /* @__PURE__ */ defineComponent({
|
|
1712
1715
|
__name: "OcrInvoice",
|
|
1713
1716
|
props: {
|
|
1714
1717
|
disabled: { type: Boolean, required: false, default: false },
|
|
@@ -1964,7 +1967,63 @@ var script$F = /* @__PURE__ */ defineComponent({
|
|
|
1964
1967
|
}
|
|
1965
1968
|
});
|
|
1966
1969
|
|
|
1967
|
-
script$
|
|
1970
|
+
script$H.__file = "src/shared/components/OcrInvoice.vue";
|
|
1971
|
+
|
|
1972
|
+
const _hoisted_1$D = { class: "office-pdf" };
|
|
1973
|
+
var script$G = /* @__PURE__ */ defineComponent({
|
|
1974
|
+
__name: "OfficePdf",
|
|
1975
|
+
props: {
|
|
1976
|
+
src: { type: String, required: true }
|
|
1977
|
+
},
|
|
1978
|
+
setup(__props) {
|
|
1979
|
+
function onRendered() {
|
|
1980
|
+
console.log("rendered");
|
|
1981
|
+
}
|
|
1982
|
+
function onError(error) {
|
|
1983
|
+
console.log("error", error);
|
|
1984
|
+
}
|
|
1985
|
+
return (_ctx, _cache) => {
|
|
1986
|
+
return openBlock(), createElementBlock("div", _hoisted_1$D, [
|
|
1987
|
+
createVNode(unref(VueOfficePdf), {
|
|
1988
|
+
style: { "height": "100%" },
|
|
1989
|
+
src: __props.src,
|
|
1990
|
+
onRendered,
|
|
1991
|
+
onError
|
|
1992
|
+
}, null, 8, ["src"])
|
|
1993
|
+
]);
|
|
1994
|
+
};
|
|
1995
|
+
}
|
|
1996
|
+
});
|
|
1997
|
+
|
|
1998
|
+
script$G.__file = "src/shared/components/OfficePdf.vue";
|
|
1999
|
+
|
|
2000
|
+
const _hoisted_1$C = { class: "office-docx" };
|
|
2001
|
+
var script$F = /* @__PURE__ */ defineComponent({
|
|
2002
|
+
__name: "OfficeDocx",
|
|
2003
|
+
props: {
|
|
2004
|
+
src: { type: String, required: true }
|
|
2005
|
+
},
|
|
2006
|
+
setup(__props) {
|
|
2007
|
+
function onRendered() {
|
|
2008
|
+
console.log("rendered");
|
|
2009
|
+
}
|
|
2010
|
+
function onError(error) {
|
|
2011
|
+
console.log("error", error);
|
|
2012
|
+
}
|
|
2013
|
+
return (_ctx, _cache) => {
|
|
2014
|
+
return openBlock(), createElementBlock("div", _hoisted_1$C, [
|
|
2015
|
+
createVNode(unref(VueOfficeDocx), {
|
|
2016
|
+
style: { "height": "100%" },
|
|
2017
|
+
src: __props.src,
|
|
2018
|
+
onRendered,
|
|
2019
|
+
onError
|
|
2020
|
+
}, null, 8, ["src"])
|
|
2021
|
+
]);
|
|
2022
|
+
};
|
|
2023
|
+
}
|
|
2024
|
+
});
|
|
2025
|
+
|
|
2026
|
+
script$F.__file = "src/shared/components/OfficeDocx.vue";
|
|
1968
2027
|
|
|
1969
2028
|
var HttpMethod = /* @__PURE__ */ ((HttpMethod2) => {
|
|
1970
2029
|
HttpMethod2["get"] = "GET";
|
|
@@ -2071,6 +2130,15 @@ function isApp() {
|
|
|
2071
2130
|
var __defProp = Object.defineProperty;
|
|
2072
2131
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2073
2132
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2133
|
+
var TrackingEventType = /* @__PURE__ */ ((TrackingEventType2) => {
|
|
2134
|
+
TrackingEventType2["PAGE_VIEW"] = "page_view";
|
|
2135
|
+
TrackingEventType2["PAGE_LEAVE"] = "page_leave";
|
|
2136
|
+
TrackingEventType2["APP_DEVICE_INFO"] = "app_device_info";
|
|
2137
|
+
TrackingEventType2["CLICK"] = "click";
|
|
2138
|
+
TrackingEventType2["CUSTOM"] = "custom";
|
|
2139
|
+
return TrackingEventType2;
|
|
2140
|
+
})(TrackingEventType || {});
|
|
2141
|
+
const { PAGE_VIEW, PAGE_LEAVE, CLICK, CUSTOM, APP_DEVICE_INFO } = TrackingEventType;
|
|
2074
2142
|
const DEFAULT_CONFIG = {
|
|
2075
2143
|
enabled: true,
|
|
2076
2144
|
debug: false,
|
|
@@ -3606,7 +3674,7 @@ var script$E = /* @__PURE__ */ defineComponent({
|
|
|
3606
3674
|
const _directive_track_click = resolveDirective("track-click");
|
|
3607
3675
|
return openBlock(), createElementBlock("view", _hoisted_1$B, [
|
|
3608
3676
|
createElementVNode("view", _hoisted_2$r, [
|
|
3609
|
-
createVNode(script$
|
|
3677
|
+
createVNode(script$Q, {
|
|
3610
3678
|
items: amounts.value,
|
|
3611
3679
|
selected: state.selected,
|
|
3612
3680
|
onChange: onAmountSelect
|
|
@@ -4328,7 +4396,7 @@ var script$A = /* @__PURE__ */ defineComponent({
|
|
|
4328
4396
|
script$A.__file = "src/payment/components/TradeView.vue";
|
|
4329
4397
|
|
|
4330
4398
|
const components = {
|
|
4331
|
-
AmountPicker: script$
|
|
4399
|
+
AmountPicker: script$Q,
|
|
4332
4400
|
RechargeView: script$E,
|
|
4333
4401
|
UserAgreement: script$D,
|
|
4334
4402
|
RechargeResult: script$C,
|
|
@@ -5146,7 +5214,7 @@ var script$t = /* @__PURE__ */ defineComponent({
|
|
|
5146
5214
|
[
|
|
5147
5215
|
createElementVNode("div", _hoisted_1$q, [
|
|
5148
5216
|
createElementVNode("div", _hoisted_2$k, [
|
|
5149
|
-
createVNode(unref(script$
|
|
5217
|
+
createVNode(unref(script$P), {
|
|
5150
5218
|
title: unref(Taro).getEnv() !== "WEB" ? "\u6211\u7684\u8D26\u6237" : "",
|
|
5151
5219
|
class: normalizeClass({ "with-background": scrolled.value > 0 }),
|
|
5152
5220
|
onClose: onPageHeaderClose
|
|
@@ -5451,7 +5519,7 @@ var script$t = /* @__PURE__ */ defineComponent({
|
|
|
5451
5519
|
_: 1
|
|
5452
5520
|
/* STABLE */
|
|
5453
5521
|
}, 8, ["visible"]),
|
|
5454
|
-
createVNode(unref(script$
|
|
5522
|
+
createVNode(unref(script$O), {
|
|
5455
5523
|
modelValue: secondBalanceOpen.value,
|
|
5456
5524
|
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => secondBalanceOpen.value = $event),
|
|
5457
5525
|
title: "\u6536\u652F\u660E\u7EC6"
|
|
@@ -6821,7 +6889,7 @@ var script$k = /* @__PURE__ */ defineComponent({
|
|
|
6821
6889
|
), [
|
|
6822
6890
|
[vModelText, formState.name]
|
|
6823
6891
|
]),
|
|
6824
|
-
createVNode(script$
|
|
6892
|
+
createVNode(script$K, {
|
|
6825
6893
|
"has-upload-vo": false,
|
|
6826
6894
|
onComplete: onOCRInfo
|
|
6827
6895
|
}, {
|
|
@@ -7270,7 +7338,7 @@ var script$i = /* @__PURE__ */ defineComponent({
|
|
|
7270
7338
|
emits: ["detail", "close", "view", "popup", "hasBanner"],
|
|
7271
7339
|
setup(__props, { emit: __emit }) {
|
|
7272
7340
|
const props = __props;
|
|
7273
|
-
const {
|
|
7341
|
+
const { noticeClick } = useNotice();
|
|
7274
7342
|
const bannerMessages = ref([]);
|
|
7275
7343
|
const popMessages = ref([]);
|
|
7276
7344
|
const activeKey = ref(0);
|
|
@@ -7395,7 +7463,7 @@ var script$i = /* @__PURE__ */ defineComponent({
|
|
|
7395
7463
|
Fragment,
|
|
7396
7464
|
null,
|
|
7397
7465
|
renderList(bannerMessages.value, (item, key) => {
|
|
7398
|
-
return withDirectives((openBlock(), createBlock(script$
|
|
7466
|
+
return withDirectives((openBlock(), createBlock(script$M, {
|
|
7399
7467
|
class: normalizeClass({ show: key === activeKey.value }),
|
|
7400
7468
|
key,
|
|
7401
7469
|
showClose: item.noticeType === 0,
|
|
@@ -11395,7 +11463,7 @@ var script$2 = /* @__PURE__ */ defineComponent({
|
|
|
11395
11463
|
rules: ["required"]
|
|
11396
11464
|
}, {
|
|
11397
11465
|
append: withCtx(() => [
|
|
11398
|
-
!\u5DF2\u8BA4\u8BC1.value ? (openBlock(), createBlock(unref(script$
|
|
11466
|
+
!\u5DF2\u8BA4\u8BC1.value ? (openBlock(), createBlock(unref(script$K), {
|
|
11399
11467
|
key: 0,
|
|
11400
11468
|
"has-upload-vo": false,
|
|
11401
11469
|
onComplete: onOcrComplete
|
|
@@ -12006,4 +12074,4 @@ const AppKit = {
|
|
|
12006
12074
|
}
|
|
12007
12075
|
};
|
|
12008
12076
|
|
|
12009
|
-
export { script$t as AccountView, script$
|
|
12077
|
+
export { script$t as AccountView, script$Q as AmountPicker, script$O as AppDrawer, script$N as AppVerify, script$z as BalanceCard, script$s as BalanceReminder, script$r as DateRange, script$L as DeviceVersion, script$p as ListFilter, script$4 as LoginSetting, script$i as NoticeBanner, script$h as NoticeEntry, script$f as NoticeList, script$e as NoticeList2, script$J as OcrBank, script$I as OcrBusinessLicense, script$K as OcrIcon, script$H as OcrInvoice, script$F as OfficeDocx, script$G as OfficePdf, script$P as PageHeader, script$o as PromoterCard, script$C as RechargeResult, script$E as RechargeView, script$k as SelfRegistration, script as SharePoster, script$A as TradeView, script$D as UserAgreement, script$2 as UserAuth, script$a as UserBinding, script$9 as UserBindingSuccess, script$d as UserEntry, script$6 as UserFeedback, script$5 as UserFeedbackEntry, script$7 as UserHeadCrop, script$b as UserInfo, script$3 as UserResourceEmpty, components, compressImage, compressImageWithCanvas, createHttp, AppKit as default, defaultCryptoConfig, generateUniqueId, getCompressQuality, getSdkConfig, initTracking, installTrackingPlugin, jssdkServices, requestPayment$2 as requestPayment, requestWxH5Pay, services$1 as services, trackingSDK, useAppKit, useCountdown, useCrypto, useEncode, useLogger, usePageTracking, useSafeArea, useTabbar, useUpload, useValidator, useWxAuth };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uxda/appkit",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.28",
|
|
4
4
|
"description": "小程序应用开发包",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.ts",
|
|
@@ -35,12 +35,15 @@
|
|
|
35
35
|
"@tarojs/taro": "^4.1.7",
|
|
36
36
|
"@types/wechat-miniprogram": "^3.4.7",
|
|
37
37
|
"@uxda/nutshell": "^1.6.98",
|
|
38
|
+
"@vue-office/docx": "^1.6.3",
|
|
39
|
+
"@vue-office/pdf": "^2.0.10",
|
|
38
40
|
"dayjs": "^1.11.18",
|
|
39
41
|
"dsbridge": "^3.1.4",
|
|
40
42
|
"lodash-es": "^4.17.21",
|
|
41
43
|
"pako": "^2.1.0",
|
|
42
44
|
"validator": "^13.15.15",
|
|
43
|
-
"vue": "^3.5.22"
|
|
45
|
+
"vue": "^3.5.22",
|
|
46
|
+
"vue-demi": "^0.14.10"
|
|
44
47
|
},
|
|
45
48
|
"devDependencies": {
|
|
46
49
|
"@babel/core": "^7.28.4",
|
package/rollup.config.mjs
CHANGED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="office-docx">
|
|
3
|
+
<vue-office-docx
|
|
4
|
+
style="height: 100%"
|
|
5
|
+
:src="src"
|
|
6
|
+
@rendered="onRendered"
|
|
7
|
+
@error="onError"
|
|
8
|
+
/>
|
|
9
|
+
</div>
|
|
10
|
+
</template>
|
|
11
|
+
|
|
12
|
+
<script lang="ts" setup>
|
|
13
|
+
import VueOfficeDocx from '@vue-office/docx'
|
|
14
|
+
import '@vue-office/docx/lib/index.css'
|
|
15
|
+
|
|
16
|
+
const props = defineProps<{
|
|
17
|
+
src: string
|
|
18
|
+
}>()
|
|
19
|
+
|
|
20
|
+
function onRendered() {
|
|
21
|
+
console.log('rendered')
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function onError(error: any) {
|
|
25
|
+
console.log('error', error)
|
|
26
|
+
}
|
|
27
|
+
</script>
|
|
28
|
+
|
|
29
|
+
<style lang="scss">
|
|
30
|
+
.office-docx {
|
|
31
|
+
height: 100%;
|
|
32
|
+
}
|
|
33
|
+
</style>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="office-pdf">
|
|
3
|
+
<vue-office-pdf
|
|
4
|
+
style="height: 100%"
|
|
5
|
+
:src="src"
|
|
6
|
+
@rendered="onRendered"
|
|
7
|
+
@error="onError"
|
|
8
|
+
/>
|
|
9
|
+
</div>
|
|
10
|
+
</template>
|
|
11
|
+
|
|
12
|
+
<script lang="ts" setup>
|
|
13
|
+
import VueOfficePdf from '@vue-office/pdf'
|
|
14
|
+
|
|
15
|
+
const props = defineProps<{
|
|
16
|
+
src: string
|
|
17
|
+
}>()
|
|
18
|
+
|
|
19
|
+
function onRendered() {
|
|
20
|
+
console.log('rendered')
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function onError(error: any) {
|
|
24
|
+
console.log('error', error)
|
|
25
|
+
}
|
|
26
|
+
</script>
|
|
27
|
+
|
|
28
|
+
<style lang="scss">
|
|
29
|
+
.office-pdf {
|
|
30
|
+
height: 100%;
|
|
31
|
+
.vue-office-pdf-wrapper {
|
|
32
|
+
height: 100%;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
</style>
|
|
@@ -6,5 +6,7 @@ import OcrIcon from './OcrIcon.vue'
|
|
|
6
6
|
import OcrBank from './OcrBank.vue'
|
|
7
7
|
import OcrBusinessLicense from './OcrBusinessLicense.vue'
|
|
8
8
|
import OcrInvoice from './OcrInvoice.vue'
|
|
9
|
+
import OfficePdf from './OfficePdf.vue'
|
|
10
|
+
import OfficeDocx from './OfficeDocx.vue'
|
|
9
11
|
|
|
10
|
-
export { AppDrawer, PageHeader, DeviceVersion, AppVerify, OcrIcon, OcrBank,OcrBusinessLicense, OcrInvoice }
|
|
12
|
+
export { AppDrawer, PageHeader, DeviceVersion, AppVerify, OcrIcon, OcrBank,OcrBusinessLicense, OcrInvoice, OfficePdf, OfficeDocx }
|