@uxda/appkit 1.2.72 → 4.0.0
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 +7 -501
- package/dist/index.js +58 -85
- package/package.json +78 -78
- package/project.config.json +15 -15
- package/project.tt.json +13 -13
- package/rollup.config.mjs +54 -54
- package/src/Appkit.ts +65 -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 +209 -209
- 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 +235 -235
- package/src/balance/components/SecondBalance.vue +71 -71
- package/src/balance/components/Tip.vue +45 -45
- package/src/balance/components/index.ts +9 -9
- package/src/balance/types.ts +90 -90
- 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/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 +88 -88
- 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/LoginSetting.vue +112 -112
- package/src/notice/components/NoticeBanner.vue +243 -243
- package/src/notice/components/NoticeEntry.vue +99 -99
- package/src/notice/components/NoticeList.vue +278 -315
- package/src/notice/components/NoticePopup.vue +163 -161
- package/src/notice/components/index.ts +6 -6
- 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 +71 -71
- package/src/payment/components/AmountPicker.vue +93 -93
- package/src/payment/components/RechargeResult.vue +69 -69
- package/src/payment/components/RechargeView.vue +154 -154
- package/src/payment/components/RightsPicker.vue +105 -105
- package/src/payment/components/TradeView.vue +298 -298
- package/src/payment/components/UserAgreement.vue +141 -141
- 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 +227 -227
- package/src/register/components/index.ts +2 -2
- package/src/shared/components/AppDrawer.vue +58 -58
- package/src/shared/components/DeviceVersion.vue +67 -67
- package/src/shared/components/EmptyView.vue +33 -33
- package/src/shared/components/PageHeader.vue +79 -79
- package/src/shared/components/index.ts +5 -5
- package/src/shared/composables/index.ts +2 -2
- package/src/shared/composables/useSafeArea.ts +46 -46
- package/src/shared/composables/useTabbar.ts +24 -24
- package/src/shared/http/Http.ts +135 -135
- 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/tsconfig.json +30 -30
- package/types/global.d.ts +21 -21
- package/types/vue.d.ts +10 -10
- package/dist/main.css +0 -3
- package/dist/styles.css +0 -1
package/dist/index.js
CHANGED
|
@@ -569,7 +569,7 @@ const request = (config) => {
|
|
|
569
569
|
return false;
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
|
-
if (raw.data
|
|
572
|
+
if (raw.data) {
|
|
573
573
|
const response = clientConfig.transforms && clientConfig.transforms[c.url] ? clientConfig.transforms[c.url](raw.data) : raw.data;
|
|
574
574
|
const paging = config.data.page ? clientConfig.paging.transform(raw.data) : void 0;
|
|
575
575
|
resolve(
|
|
@@ -1144,7 +1144,7 @@ const _hoisted_11$3 = {
|
|
|
1144
1144
|
class: "agreement"
|
|
1145
1145
|
};
|
|
1146
1146
|
const _hoisted_12$3 = { class: "buy-amount" };
|
|
1147
|
-
const _hoisted_13$
|
|
1147
|
+
const _hoisted_13$2 = { class: "left" };
|
|
1148
1148
|
const _hoisted_14$2 = { class: "amount" };
|
|
1149
1149
|
const _hoisted_15$1 = /* @__PURE__ */ createElementVNode(
|
|
1150
1150
|
"i",
|
|
@@ -1304,7 +1304,7 @@ var script$j = /* @__PURE__ */ defineComponent({
|
|
|
1304
1304
|
}, 8, ["modelValue"])
|
|
1305
1305
|
])) : createCommentVNode("v-if", true),
|
|
1306
1306
|
createElementVNode("div", _hoisted_12$3, [
|
|
1307
|
-
createElementVNode("div", _hoisted_13$
|
|
1307
|
+
createElementVNode("div", _hoisted_13$2, [
|
|
1308
1308
|
createTextVNode(" \u5F85\u652F\u4ED8\uFF1A "),
|
|
1309
1309
|
createElementVNode("span", _hoisted_14$2, [
|
|
1310
1310
|
_hoisted_15$1,
|
|
@@ -1462,7 +1462,7 @@ const _hoisted_12$2 = /* @__PURE__ */ createElementVNode(
|
|
|
1462
1462
|
-1
|
|
1463
1463
|
/* HOISTED */
|
|
1464
1464
|
);
|
|
1465
|
-
const _hoisted_13$
|
|
1465
|
+
const _hoisted_13$1 = /* @__PURE__ */ createElementVNode(
|
|
1466
1466
|
"img",
|
|
1467
1467
|
{
|
|
1468
1468
|
class: "pay-icon",
|
|
@@ -1474,7 +1474,7 @@ const _hoisted_13$2 = /* @__PURE__ */ createElementVNode(
|
|
|
1474
1474
|
);
|
|
1475
1475
|
const _hoisted_14$1 = [
|
|
1476
1476
|
_hoisted_12$2,
|
|
1477
|
-
_hoisted_13$
|
|
1477
|
+
_hoisted_13$1
|
|
1478
1478
|
];
|
|
1479
1479
|
var script$i = /* @__PURE__ */ defineComponent({
|
|
1480
1480
|
__name: "BalanceCard",
|
|
@@ -2015,7 +2015,7 @@ const _hoisted_11$1 = /* @__PURE__ */ createElementVNode(
|
|
|
2015
2015
|
/* HOISTED */
|
|
2016
2016
|
);
|
|
2017
2017
|
const _hoisted_12$1 = { class: "list" };
|
|
2018
|
-
const _hoisted_13
|
|
2018
|
+
const _hoisted_13 = { class: "item-count" };
|
|
2019
2019
|
const _hoisted_14 = { class: "item-title" };
|
|
2020
2020
|
const _hoisted_15 = {
|
|
2021
2021
|
key: 0,
|
|
@@ -2330,7 +2330,7 @@ var script$c = /* @__PURE__ */ defineComponent({
|
|
|
2330
2330
|
class: "item star-item",
|
|
2331
2331
|
key: index
|
|
2332
2332
|
}, [
|
|
2333
|
-
createElementVNode("div", _hoisted_13
|
|
2333
|
+
createElementVNode("div", _hoisted_13, [
|
|
2334
2334
|
createElementVNode(
|
|
2335
2335
|
"span",
|
|
2336
2336
|
null,
|
|
@@ -3510,6 +3510,32 @@ function useHttp() {
|
|
|
3510
3510
|
return $http;
|
|
3511
3511
|
}
|
|
3512
3512
|
|
|
3513
|
+
function useNotice() {
|
|
3514
|
+
async function noticeClick(item, cb) {
|
|
3515
|
+
if (item.isRead === 0) {
|
|
3516
|
+
await toReadFun([item.id || item.msgId]);
|
|
3517
|
+
}
|
|
3518
|
+
if (item.link) {
|
|
3519
|
+
cb && cb(item.link);
|
|
3520
|
+
}
|
|
3521
|
+
return true;
|
|
3522
|
+
}
|
|
3523
|
+
async function toReadFun(msgIds) {
|
|
3524
|
+
const $http = useHttp();
|
|
3525
|
+
return new Promise((resolve) => {
|
|
3526
|
+
$http.post("/cas/msg/read", msgIds).then(() => {
|
|
3527
|
+
resolve(true);
|
|
3528
|
+
}).catch(() => {
|
|
3529
|
+
resolve(false);
|
|
3530
|
+
});
|
|
3531
|
+
});
|
|
3532
|
+
}
|
|
3533
|
+
return {
|
|
3534
|
+
noticeClick,
|
|
3535
|
+
toReadFun
|
|
3536
|
+
};
|
|
3537
|
+
}
|
|
3538
|
+
|
|
3513
3539
|
const _hoisted_1$5 = /* @__PURE__ */ createElementVNode(
|
|
3514
3540
|
"div",
|
|
3515
3541
|
{ class: "notice-popup-hd" },
|
|
@@ -3571,7 +3597,7 @@ var script$5 = /* @__PURE__ */ defineComponent({
|
|
|
3571
3597
|
createElementVNode(
|
|
3572
3598
|
"div",
|
|
3573
3599
|
_hoisted_3$4,
|
|
3574
|
-
toDisplayString(_ctx.message.context
|
|
3600
|
+
toDisplayString(_ctx.message.context),
|
|
3575
3601
|
1
|
|
3576
3602
|
/* TEXT */
|
|
3577
3603
|
),
|
|
@@ -3597,32 +3623,6 @@ var script$5 = /* @__PURE__ */ defineComponent({
|
|
|
3597
3623
|
|
|
3598
3624
|
script$5.__file = "src/notice/components/NoticePopup.vue";
|
|
3599
3625
|
|
|
3600
|
-
function useNotice() {
|
|
3601
|
-
async function noticeClick(item, cb) {
|
|
3602
|
-
if (item.isRead === 0) {
|
|
3603
|
-
await toReadFun([item.id || item.msgId]);
|
|
3604
|
-
}
|
|
3605
|
-
if (item.link) {
|
|
3606
|
-
cb && cb(item.link);
|
|
3607
|
-
}
|
|
3608
|
-
return true;
|
|
3609
|
-
}
|
|
3610
|
-
async function toReadFun(msgIds) {
|
|
3611
|
-
const $http = useHttp();
|
|
3612
|
-
return new Promise((resolve) => {
|
|
3613
|
-
$http.post("/cas/msg/read", msgIds).then(() => {
|
|
3614
|
-
resolve(true);
|
|
3615
|
-
}).catch(() => {
|
|
3616
|
-
resolve(false);
|
|
3617
|
-
});
|
|
3618
|
-
});
|
|
3619
|
-
}
|
|
3620
|
-
return {
|
|
3621
|
-
noticeClick,
|
|
3622
|
-
toReadFun
|
|
3623
|
-
};
|
|
3624
|
-
}
|
|
3625
|
-
|
|
3626
3626
|
const _hoisted_1$4 = /* @__PURE__ */ createElementVNode(
|
|
3627
3627
|
"img",
|
|
3628
3628
|
{
|
|
@@ -3960,9 +3960,9 @@ var script$2 = /* @__PURE__ */ defineComponent({
|
|
|
3960
3960
|
tenantId: appkitOptions.tenant(),
|
|
3961
3961
|
userId: props.userId
|
|
3962
3962
|
}).then((result) => {
|
|
3963
|
-
if (
|
|
3964
|
-
|
|
3965
|
-
|
|
3963
|
+
if (result.status === 200) {
|
|
3964
|
+
noticeShow.value = result.data > 0;
|
|
3965
|
+
}
|
|
3966
3966
|
});
|
|
3967
3967
|
}
|
|
3968
3968
|
return (_ctx, _cache) => {
|
|
@@ -4130,7 +4130,7 @@ function useCommonList(api, query, showLoading = true, method = "GET") {
|
|
|
4130
4130
|
isLast.value = res.pageNum >= pages;
|
|
4131
4131
|
total.value = res.total;
|
|
4132
4132
|
}
|
|
4133
|
-
return
|
|
4133
|
+
return res?.list || [];
|
|
4134
4134
|
}
|
|
4135
4135
|
async function runNext() {
|
|
4136
4136
|
if (isLast.value)
|
|
@@ -4184,21 +4184,17 @@ const _hoisted_5 = /* @__PURE__ */ createElementVNode(
|
|
|
4184
4184
|
/* HOISTED */
|
|
4185
4185
|
);
|
|
4186
4186
|
const _hoisted_6 = { class: "time" };
|
|
4187
|
-
const _hoisted_7 =
|
|
4188
|
-
|
|
4189
|
-
class: "notice-list-label"
|
|
4190
|
-
};
|
|
4191
|
-
const _hoisted_8 = ["onClick"];
|
|
4192
|
-
const _hoisted_9 = {
|
|
4187
|
+
const _hoisted_7 = ["onClick"];
|
|
4188
|
+
const _hoisted_8 = {
|
|
4193
4189
|
key: 0,
|
|
4194
4190
|
class: "cue-text",
|
|
4195
4191
|
style: { "padding-bottom": "40px" }
|
|
4196
4192
|
};
|
|
4197
|
-
const
|
|
4193
|
+
const _hoisted_9 = {
|
|
4198
4194
|
key: 1,
|
|
4199
4195
|
class: "no-data"
|
|
4200
4196
|
};
|
|
4201
|
-
const
|
|
4197
|
+
const _hoisted_10 = /* @__PURE__ */ createElementVNode(
|
|
4202
4198
|
"div",
|
|
4203
4199
|
{ class: "no-data-img" },
|
|
4204
4200
|
[
|
|
@@ -4211,25 +4207,22 @@ const _hoisted_11 = /* @__PURE__ */ createElementVNode(
|
|
|
4211
4207
|
-1
|
|
4212
4208
|
/* HOISTED */
|
|
4213
4209
|
);
|
|
4214
|
-
const
|
|
4210
|
+
const _hoisted_11 = /* @__PURE__ */ createElementVNode(
|
|
4215
4211
|
"div",
|
|
4216
4212
|
{ class: "text" },
|
|
4217
4213
|
"\u6682\u65E0\u8BB0\u5F55",
|
|
4218
4214
|
-1
|
|
4219
4215
|
/* HOISTED */
|
|
4220
4216
|
);
|
|
4221
|
-
const
|
|
4222
|
-
|
|
4223
|
-
|
|
4217
|
+
const _hoisted_12 = [
|
|
4218
|
+
_hoisted_10,
|
|
4219
|
+
_hoisted_11
|
|
4224
4220
|
];
|
|
4225
4221
|
var script = /* @__PURE__ */ defineComponent({
|
|
4226
4222
|
__name: "NoticeList",
|
|
4227
4223
|
props: {
|
|
4228
4224
|
app: { type: String, required: true, default: "" },
|
|
4229
|
-
userId: { type: String, required: true, default: "" }
|
|
4230
|
-
showApp: { type: Boolean, required: false, default: false },
|
|
4231
|
-
showTitle: { type: Boolean, required: false, default: true },
|
|
4232
|
-
checkBeforeRead: { type: Function, required: false }
|
|
4225
|
+
userId: { type: String, required: true, default: "" }
|
|
4233
4226
|
},
|
|
4234
4227
|
emits: ["view"],
|
|
4235
4228
|
setup(__props, { emit: __emit }) {
|
|
@@ -4261,16 +4254,12 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
4261
4254
|
const start = dayjs(time);
|
|
4262
4255
|
const end = dayjs();
|
|
4263
4256
|
const diffInMinutes = end.diff(start, "minute");
|
|
4264
|
-
if (diffInMinutes < 60 &&
|
|
4257
|
+
if (diffInMinutes < 60 && 0 > diffInMinutes) {
|
|
4265
4258
|
return `${diffInMinutes}\u5206\u949F\u524D`;
|
|
4266
4259
|
}
|
|
4267
4260
|
return dayjs(time).format("YYYY-MM-DD HH:mm:ss");
|
|
4268
4261
|
}
|
|
4269
4262
|
async function notifyRead(notice, index) {
|
|
4270
|
-
if (props.checkBeforeRead) {
|
|
4271
|
-
if (!props.checkBeforeRead(notice, index))
|
|
4272
|
-
return;
|
|
4273
|
-
}
|
|
4274
4263
|
if (notice.isRead == "0") {
|
|
4275
4264
|
const res = await toReadFun([notice.id]);
|
|
4276
4265
|
if (res) {
|
|
@@ -4292,7 +4281,6 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
4292
4281
|
function onNoticeView(link) {
|
|
4293
4282
|
emits("view", link);
|
|
4294
4283
|
}
|
|
4295
|
-
const appMap = { aiapprove: "AI\u5BA1\u6279", corporateStar: "\u4F01\u660E\u661F" };
|
|
4296
4284
|
const emits = __emit;
|
|
4297
4285
|
return (_ctx, _cache) => {
|
|
4298
4286
|
const _component_rich_text = resolveComponent("rich-text");
|
|
@@ -4302,7 +4290,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
4302
4290
|
bordered: false,
|
|
4303
4291
|
focus: false,
|
|
4304
4292
|
value: query.value.title,
|
|
4305
|
-
placeholder: "\u8BF7\u8F93\u5165\
|
|
4293
|
+
placeholder: "\u8BF7\u8F93\u5165\u5BA2\u6237\u59D3\u540D\u641C\u7D22",
|
|
4306
4294
|
onSearch
|
|
4307
4295
|
}, null, 8, ["value"]),
|
|
4308
4296
|
createElementVNode("div", _hoisted_2, [
|
|
@@ -4336,30 +4324,15 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
4336
4324
|
1
|
|
4337
4325
|
/* TEXT */
|
|
4338
4326
|
),
|
|
4339
|
-
|
|
4327
|
+
createElementVNode(
|
|
4340
4328
|
"div",
|
|
4341
4329
|
{
|
|
4342
|
-
|
|
4343
|
-
class: normalizeClass(["text tit", { gray: item.isRead == "1" }]),
|
|
4344
|
-
style: { "display": "flex", "align-items": "center" }
|
|
4330
|
+
class: normalizeClass(["text tit", { gray: item.isRead == "1" }])
|
|
4345
4331
|
},
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
/* TEXT */
|
|
4351
|
-
),
|
|
4352
|
-
_ctx.showApp && appMap[item.appCode] ? (openBlock(), createElementBlock(
|
|
4353
|
-
"div",
|
|
4354
|
-
_hoisted_7,
|
|
4355
|
-
toDisplayString(appMap[item.appCode]),
|
|
4356
|
-
1
|
|
4357
|
-
/* TEXT */
|
|
4358
|
-
)) : createCommentVNode("v-if", true)
|
|
4359
|
-
],
|
|
4360
|
-
2
|
|
4361
|
-
/* CLASS */
|
|
4362
|
-
)) : createCommentVNode("v-if", true),
|
|
4332
|
+
toDisplayString(item.title),
|
|
4333
|
+
3
|
|
4334
|
+
/* TEXT, CLASS */
|
|
4335
|
+
),
|
|
4363
4336
|
createElementVNode(
|
|
4364
4337
|
"div",
|
|
4365
4338
|
{
|
|
@@ -4374,7 +4347,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
4374
4347
|
key: 0,
|
|
4375
4348
|
class: "notice-list-file",
|
|
4376
4349
|
onClick: ($event) => onNoticeView(item.link)
|
|
4377
|
-
}, " \u67E5\u770B\u9644\u4EF6 ", 8,
|
|
4350
|
+
}, " \u67E5\u770B\u9644\u4EF6 ", 8, _hoisted_7)) : createCommentVNode("v-if", true)
|
|
4378
4351
|
],
|
|
4379
4352
|
2
|
|
4380
4353
|
/* CLASS */
|
|
@@ -4385,12 +4358,12 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
4385
4358
|
128
|
|
4386
4359
|
/* KEYED_FRAGMENT */
|
|
4387
4360
|
)),
|
|
4388
|
-
unref(isLast) ? (openBlock(), createElementBlock("div",
|
|
4361
|
+
unref(isLast) ? (openBlock(), createElementBlock("div", _hoisted_8, "\u6CA1\u6709\u66F4\u591A\u4E86")) : createCommentVNode("v-if", true)
|
|
4389
4362
|
]),
|
|
4390
4363
|
_: 1
|
|
4391
4364
|
/* STABLE */
|
|
4392
4365
|
}, 8, ["refresherTriggered", "onScrolltolower"])
|
|
4393
|
-
])) : (openBlock(), createElementBlock("div",
|
|
4366
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_9, [..._hoisted_12]))
|
|
4394
4367
|
])
|
|
4395
4368
|
]);
|
|
4396
4369
|
};
|
package/package.json
CHANGED
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@uxda/appkit",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "小程序应用开发包",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"module": "dist/index.ts",
|
|
7
|
-
"moduleResolution": "node",
|
|
8
|
-
"scripts": {
|
|
9
|
-
"dev": "rollup -c rollup.config.mjs --watch",
|
|
10
|
-
"build": "rollup -c rollup.config.mjs"
|
|
11
|
-
},
|
|
12
|
-
"exports": {
|
|
13
|
-
".": "./dist/index.js",
|
|
14
|
-
"./appkit.css": "./dist/appkit.css"
|
|
15
|
-
},
|
|
16
|
-
"browserslist": [
|
|
17
|
-
"last 3 versions",
|
|
18
|
-
"Android >= 4.1",
|
|
19
|
-
"ios >= 8"
|
|
20
|
-
],
|
|
21
|
-
"author": "",
|
|
22
|
-
"dependencies": {
|
|
23
|
-
"@babel/runtime": "^7.7.7",
|
|
24
|
-
"@nutui/icons-vue-taro": "^0.0.9",
|
|
25
|
-
"@nutui/nutui-taro": "
|
|
26
|
-
"@tarojs/components": "^3.5.6",
|
|
27
|
-
"@tarojs/helper": "^3.5.6",
|
|
28
|
-
"@tarojs/plugin-framework-vue3": "^3.5.6",
|
|
29
|
-
"@tarojs/plugin-html": "^3.5.6",
|
|
30
|
-
"@tarojs/plugin-platform-alipay": "^3.5.6",
|
|
31
|
-
"@tarojs/plugin-platform-jd": "^3.5.6",
|
|
32
|
-
"@tarojs/plugin-platform-qq": "^3.5.6",
|
|
33
|
-
"@tarojs/plugin-platform-swan": "^3.5.6",
|
|
34
|
-
"@tarojs/plugin-platform-tt": "^3.5.6",
|
|
35
|
-
"@tarojs/plugin-platform-weapp": "^3.5.6",
|
|
36
|
-
"@tarojs/router": "^3.5.6",
|
|
37
|
-
"@tarojs/runtime": "^3.5.6",
|
|
38
|
-
"@tarojs/shared": "^3.5.6",
|
|
39
|
-
"@tarojs/taro": "^3.5.6",
|
|
40
|
-
"@tarojs/taro-h5": "^3.5.6",
|
|
41
|
-
"@types/wechat-miniprogram": "^3.4.7",
|
|
42
|
-
"dayjs": "^1.11.10",
|
|
43
|
-
"vue": "^3.3.0"
|
|
44
|
-
},
|
|
45
|
-
"devDependencies": {
|
|
46
|
-
"@babel/core": "^7.8.0",
|
|
47
|
-
"@tarojs/cli": "^3.5.6",
|
|
48
|
-
"@tarojs/taro-loader": "^3.5.6",
|
|
49
|
-
"@tarojs/webpack5-runner": "^3.5.6",
|
|
50
|
-
"@types/node": "^18.15.11",
|
|
51
|
-
"@types/webpack-env": "^1.13.6",
|
|
52
|
-
"@typescript-eslint/eslint-plugin": "^5.20.0",
|
|
53
|
-
"@typescript-eslint/parser": "^5.20.0",
|
|
54
|
-
"@vue/babel-plugin-jsx": "^1.0.6",
|
|
55
|
-
"@vue/compiler-sfc": "^3.2.40",
|
|
56
|
-
"babel-preset-taro": "^3.5.6",
|
|
57
|
-
"css-loader": "^3.4.2",
|
|
58
|
-
"eslint": "^8.12.0",
|
|
59
|
-
"eslint-config-taro": "^3.5.6",
|
|
60
|
-
"eslint-plugin-vue": "^8.0.0",
|
|
61
|
-
"postcss": "^8.4.32",
|
|
62
|
-
"postcss-import": "^15.1.0",
|
|
63
|
-
"rollup": "^4.6.1",
|
|
64
|
-
"rollup-plugin-css-only": "^4.5.2",
|
|
65
|
-
"rollup-plugin-dts": "^6.1.0",
|
|
66
|
-
"rollup-plugin-esbuild": "^6.1.0",
|
|
67
|
-
"rollup-plugin-postcss": "^4.0.2",
|
|
68
|
-
"rollup-plugin-scss": "^4.0.0",
|
|
69
|
-
"rollup-plugin-vue": "^6.0.0",
|
|
70
|
-
"style-loader": "^3.3.3",
|
|
71
|
-
"stylelint": "^9.3.0",
|
|
72
|
-
"ts-node": "^10.9.1",
|
|
73
|
-
"typescript": "^5.0.0",
|
|
74
|
-
"unplugin-auto-import": "^0.17.1",
|
|
75
|
-
"unplugin-vue-components": "^0.23.0",
|
|
76
|
-
"webpack": "^5.78.0"
|
|
77
|
-
}
|
|
78
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@uxda/appkit",
|
|
3
|
+
"version": "4.0.0",
|
|
4
|
+
"description": "小程序应用开发包",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.ts",
|
|
7
|
+
"moduleResolution": "node",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"dev": "rollup -c rollup.config.mjs --watch",
|
|
10
|
+
"build": "rollup -c rollup.config.mjs"
|
|
11
|
+
},
|
|
12
|
+
"exports": {
|
|
13
|
+
".": "./dist/index.js",
|
|
14
|
+
"./appkit.css": "./dist/appkit.css"
|
|
15
|
+
},
|
|
16
|
+
"browserslist": [
|
|
17
|
+
"last 3 versions",
|
|
18
|
+
"Android >= 4.1",
|
|
19
|
+
"ios >= 8"
|
|
20
|
+
],
|
|
21
|
+
"author": "",
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@babel/runtime": "^7.7.7",
|
|
24
|
+
"@nutui/icons-vue-taro": "^0.0.9",
|
|
25
|
+
"@nutui/nutui-taro": "4.x",
|
|
26
|
+
"@tarojs/components": "^3.5.6",
|
|
27
|
+
"@tarojs/helper": "^3.5.6",
|
|
28
|
+
"@tarojs/plugin-framework-vue3": "^3.5.6",
|
|
29
|
+
"@tarojs/plugin-html": "^3.5.6",
|
|
30
|
+
"@tarojs/plugin-platform-alipay": "^3.5.6",
|
|
31
|
+
"@tarojs/plugin-platform-jd": "^3.5.6",
|
|
32
|
+
"@tarojs/plugin-platform-qq": "^3.5.6",
|
|
33
|
+
"@tarojs/plugin-platform-swan": "^3.5.6",
|
|
34
|
+
"@tarojs/plugin-platform-tt": "^3.5.6",
|
|
35
|
+
"@tarojs/plugin-platform-weapp": "^3.5.6",
|
|
36
|
+
"@tarojs/router": "^3.5.6",
|
|
37
|
+
"@tarojs/runtime": "^3.5.6",
|
|
38
|
+
"@tarojs/shared": "^3.5.6",
|
|
39
|
+
"@tarojs/taro": "^3.5.6",
|
|
40
|
+
"@tarojs/taro-h5": "^3.5.6",
|
|
41
|
+
"@types/wechat-miniprogram": "^3.4.7",
|
|
42
|
+
"dayjs": "^1.11.10",
|
|
43
|
+
"vue": "^3.3.0"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@babel/core": "^7.8.0",
|
|
47
|
+
"@tarojs/cli": "^3.5.6",
|
|
48
|
+
"@tarojs/taro-loader": "^3.5.6",
|
|
49
|
+
"@tarojs/webpack5-runner": "^3.5.6",
|
|
50
|
+
"@types/node": "^18.15.11",
|
|
51
|
+
"@types/webpack-env": "^1.13.6",
|
|
52
|
+
"@typescript-eslint/eslint-plugin": "^5.20.0",
|
|
53
|
+
"@typescript-eslint/parser": "^5.20.0",
|
|
54
|
+
"@vue/babel-plugin-jsx": "^1.0.6",
|
|
55
|
+
"@vue/compiler-sfc": "^3.2.40",
|
|
56
|
+
"babel-preset-taro": "^3.5.6",
|
|
57
|
+
"css-loader": "^3.4.2",
|
|
58
|
+
"eslint": "^8.12.0",
|
|
59
|
+
"eslint-config-taro": "^3.5.6",
|
|
60
|
+
"eslint-plugin-vue": "^8.0.0",
|
|
61
|
+
"postcss": "^8.4.32",
|
|
62
|
+
"postcss-import": "^15.1.0",
|
|
63
|
+
"rollup": "^4.6.1",
|
|
64
|
+
"rollup-plugin-css-only": "^4.5.2",
|
|
65
|
+
"rollup-plugin-dts": "^6.1.0",
|
|
66
|
+
"rollup-plugin-esbuild": "^6.1.0",
|
|
67
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
68
|
+
"rollup-plugin-scss": "^4.0.0",
|
|
69
|
+
"rollup-plugin-vue": "^6.0.0",
|
|
70
|
+
"style-loader": "^3.3.3",
|
|
71
|
+
"stylelint": "^9.3.0",
|
|
72
|
+
"ts-node": "^10.9.1",
|
|
73
|
+
"typescript": "^5.0.0",
|
|
74
|
+
"unplugin-auto-import": "^0.17.1",
|
|
75
|
+
"unplugin-vue-components": "^0.23.0",
|
|
76
|
+
"webpack": "^5.78.0"
|
|
77
|
+
}
|
|
78
|
+
}
|
package/project.config.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
{
|
|
2
|
-
"miniprogramRoot": "./dist",
|
|
3
|
-
"projectname": "appkit",
|
|
4
|
-
"description": "",
|
|
5
|
-
"appid": "touristappid",
|
|
6
|
-
"setting": {
|
|
7
|
-
"urlCheck": true,
|
|
8
|
-
"es6": false,
|
|
9
|
-
"enhance": false,
|
|
10
|
-
"compileHotReLoad": false,
|
|
11
|
-
"postcss": false,
|
|
12
|
-
"minified": false
|
|
13
|
-
},
|
|
14
|
-
"compileType": "miniprogram"
|
|
15
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"miniprogramRoot": "./dist",
|
|
3
|
+
"projectname": "appkit",
|
|
4
|
+
"description": "",
|
|
5
|
+
"appid": "touristappid",
|
|
6
|
+
"setting": {
|
|
7
|
+
"urlCheck": true,
|
|
8
|
+
"es6": false,
|
|
9
|
+
"enhance": false,
|
|
10
|
+
"compileHotReLoad": false,
|
|
11
|
+
"postcss": false,
|
|
12
|
+
"minified": false
|
|
13
|
+
},
|
|
14
|
+
"compileType": "miniprogram"
|
|
15
|
+
}
|
package/project.tt.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
{
|
|
2
|
-
"miniprogramRoot": "./",
|
|
3
|
-
"projectname": "appkit",
|
|
4
|
-
"description": "",
|
|
5
|
-
"appid": "touristappid",
|
|
6
|
-
"setting": {
|
|
7
|
-
"urlCheck": true,
|
|
8
|
-
"es6": false,
|
|
9
|
-
"postcss": false,
|
|
10
|
-
"minified": false
|
|
11
|
-
},
|
|
12
|
-
"compileType": "miniprogram"
|
|
13
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"miniprogramRoot": "./",
|
|
3
|
+
"projectname": "appkit",
|
|
4
|
+
"description": "",
|
|
5
|
+
"appid": "touristappid",
|
|
6
|
+
"setting": {
|
|
7
|
+
"urlCheck": true,
|
|
8
|
+
"es6": false,
|
|
9
|
+
"postcss": false,
|
|
10
|
+
"minified": false
|
|
11
|
+
},
|
|
12
|
+
"compileType": "miniprogram"
|
|
13
|
+
}
|
package/rollup.config.mjs
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import vue from 'rollup-plugin-vue'
|
|
2
|
-
import css from 'rollup-plugin-css-only'
|
|
3
|
-
import esbuild from 'rollup-plugin-esbuild'
|
|
4
|
-
import postcss from 'rollup-plugin-postcss'
|
|
5
|
-
import atImport from 'postcss-import'
|
|
6
|
-
|
|
7
|
-
export default [
|
|
8
|
-
{
|
|
9
|
-
input: 'src/index.ts',
|
|
10
|
-
output: [
|
|
11
|
-
{
|
|
12
|
-
format: 'es',
|
|
13
|
-
name: 'AppKit',
|
|
14
|
-
exports: 'named',
|
|
15
|
-
globals: {
|
|
16
|
-
vue: 'Vue',
|
|
17
|
-
},
|
|
18
|
-
dir: 'dist'
|
|
19
|
-
},
|
|
20
|
-
],
|
|
21
|
-
plugins: [
|
|
22
|
-
css(),
|
|
23
|
-
vue({
|
|
24
|
-
css: false,
|
|
25
|
-
defaultLang: {
|
|
26
|
-
script: 'ts',
|
|
27
|
-
style: 'scss'
|
|
28
|
-
}
|
|
29
|
-
}),
|
|
30
|
-
postcss({
|
|
31
|
-
include: /\.scss/,
|
|
32
|
-
extract: 'appkit.css',
|
|
33
|
-
plugins: [
|
|
34
|
-
atImport()
|
|
35
|
-
]
|
|
36
|
-
}),
|
|
37
|
-
esbuild({
|
|
38
|
-
})
|
|
39
|
-
],
|
|
40
|
-
external: ['vue', '@nutui/nutui-taro']
|
|
41
|
-
},
|
|
42
|
-
// {
|
|
43
|
-
// input: './src/main.scss',
|
|
44
|
-
// output: {
|
|
45
|
-
// file: 'dist/main.css',
|
|
46
|
-
// },
|
|
47
|
-
// plugins: [
|
|
48
|
-
// postcss({
|
|
49
|
-
// use: ['sass'],
|
|
50
|
-
// extract: resolve('./dist/styles.css'),
|
|
51
|
-
// })
|
|
52
|
-
// ]
|
|
53
|
-
// },
|
|
54
|
-
]
|
|
1
|
+
import vue from 'rollup-plugin-vue'
|
|
2
|
+
import css from 'rollup-plugin-css-only'
|
|
3
|
+
import esbuild from 'rollup-plugin-esbuild'
|
|
4
|
+
import postcss from 'rollup-plugin-postcss'
|
|
5
|
+
import atImport from 'postcss-import'
|
|
6
|
+
|
|
7
|
+
export default [
|
|
8
|
+
{
|
|
9
|
+
input: 'src/index.ts',
|
|
10
|
+
output: [
|
|
11
|
+
{
|
|
12
|
+
format: 'es',
|
|
13
|
+
name: 'AppKit',
|
|
14
|
+
exports: 'named',
|
|
15
|
+
globals: {
|
|
16
|
+
vue: 'Vue',
|
|
17
|
+
},
|
|
18
|
+
dir: 'dist'
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
plugins: [
|
|
22
|
+
css(),
|
|
23
|
+
vue({
|
|
24
|
+
css: false,
|
|
25
|
+
defaultLang: {
|
|
26
|
+
script: 'ts',
|
|
27
|
+
style: 'scss'
|
|
28
|
+
}
|
|
29
|
+
}),
|
|
30
|
+
postcss({
|
|
31
|
+
include: /\.scss/,
|
|
32
|
+
extract: 'appkit.css',
|
|
33
|
+
plugins: [
|
|
34
|
+
atImport()
|
|
35
|
+
]
|
|
36
|
+
}),
|
|
37
|
+
esbuild({
|
|
38
|
+
})
|
|
39
|
+
],
|
|
40
|
+
external: ['vue', '@nutui/nutui-taro']
|
|
41
|
+
},
|
|
42
|
+
// {
|
|
43
|
+
// input: './src/main.scss',
|
|
44
|
+
// output: {
|
|
45
|
+
// file: 'dist/main.css',
|
|
46
|
+
// },
|
|
47
|
+
// plugins: [
|
|
48
|
+
// postcss({
|
|
49
|
+
// use: ['sass'],
|
|
50
|
+
// extract: resolve('./dist/styles.css'),
|
|
51
|
+
// })
|
|
52
|
+
// ]
|
|
53
|
+
// },
|
|
54
|
+
]
|