@indfnd/common-mobile 0.0.98 → 0.0.100
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/CHANGELOG.md +15 -0
- package/dist/ind-common-mobile.es.js +89 -76
- package/dist/ind-common-mobile.umd.cjs +20 -20
- package/dist/styles/index.css +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.0.100](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.99...v0.0.100) (2025-09-26)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* 修改 ([8198b79](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/8198b7919c923dd34cf3226b6cf7b66cc6a7d5fb))
|
|
11
|
+
|
|
12
|
+
### [0.0.99](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.98...v0.0.99) (2025-09-20)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* 更新 ([7a87964](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/7a87964d0f65d70b92d4d7b8f6f4e9f0c66ca481))
|
|
18
|
+
* 更新 ([9609e19](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/9609e19b4cdd3229398c5f5177736b63dcd0c923))
|
|
19
|
+
|
|
5
20
|
### [0.0.98](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.97...v0.0.98) (2025-09-20)
|
|
6
21
|
|
|
7
22
|
|
|
@@ -2,7 +2,7 @@ import { getQuarterNum, getHalfYearNum, formatDate, useConfig, getLocalStorage,
|
|
|
2
2
|
import Vue$1 from "vue";
|
|
3
3
|
import { DropdownMenu as DropdownMenu$1, DropdownItem as DropdownItem$1, Message, LoadingBar, Spin } from "view-design";
|
|
4
4
|
const name$1 = "@indfnd/common-mobile";
|
|
5
|
-
const version$2 = "0.0.
|
|
5
|
+
const version$2 = "0.0.99";
|
|
6
6
|
const author$1 = "huxuetong";
|
|
7
7
|
const publishConfig = {
|
|
8
8
|
registry: "https://registry.npmjs.org/"
|
|
@@ -45180,6 +45180,7 @@ var normalMerge = ["attrs", "props", "domProps"], toArrayMerge = ["class", "styl
|
|
|
45180
45180
|
};
|
|
45181
45181
|
};
|
|
45182
45182
|
var helper = mergeJsxProps;
|
|
45183
|
+
var _mergeJSXProps = helper;
|
|
45183
45184
|
function gen(name2, mods) {
|
|
45184
45185
|
if (!mods) {
|
|
45185
45186
|
return "";
|
|
@@ -45631,7 +45632,7 @@ function Overlay(h, props, slots2, ctx) {
|
|
|
45631
45632
|
"attrs": {
|
|
45632
45633
|
"name": "van-fade"
|
|
45633
45634
|
}
|
|
45634
|
-
}, [h("div",
|
|
45635
|
+
}, [h("div", _mergeJSXProps([{
|
|
45635
45636
|
"directives": [{
|
|
45636
45637
|
name: "show",
|
|
45637
45638
|
value: props.show
|
|
@@ -46102,7 +46103,7 @@ function Info(h, props, slots2, ctx) {
|
|
|
46102
46103
|
if (!dot && !showInfo) {
|
|
46103
46104
|
return;
|
|
46104
46105
|
}
|
|
46105
|
-
return h("div",
|
|
46106
|
+
return h("div", _mergeJSXProps([{
|
|
46106
46107
|
"class": bem$1w({
|
|
46107
46108
|
dot
|
|
46108
46109
|
})
|
|
@@ -46129,7 +46130,7 @@ function Icon(h, props, slots2, ctx) {
|
|
|
46129
46130
|
var _props$badge;
|
|
46130
46131
|
var name2 = correctName(props.name);
|
|
46131
46132
|
var imageIcon = isImage(name2);
|
|
46132
|
-
return h(props.tag,
|
|
46133
|
+
return h(props.tag, _mergeJSXProps([{
|
|
46133
46134
|
"class": [props.classPrefix, imageIcon ? "" : props.classPrefix + "-" + name2],
|
|
46134
46135
|
"style": {
|
|
46135
46136
|
color: props.color,
|
|
@@ -46305,7 +46306,7 @@ function Loading(h, props, slots2, ctx) {
|
|
|
46305
46306
|
style12.width = iconSize;
|
|
46306
46307
|
style12.height = iconSize;
|
|
46307
46308
|
}
|
|
46308
|
-
return h("div",
|
|
46309
|
+
return h("div", _mergeJSXProps([{
|
|
46309
46310
|
"class": bem$1t([type2, {
|
|
46310
46311
|
vertical: props.vertical
|
|
46311
46312
|
}])
|
|
@@ -46416,7 +46417,7 @@ function ActionSheet(h, props, slots2, ctx) {
|
|
|
46416
46417
|
}, [description2]);
|
|
46417
46418
|
}
|
|
46418
46419
|
}
|
|
46419
|
-
return h(Popup,
|
|
46420
|
+
return h(Popup, _mergeJSXProps([{
|
|
46420
46421
|
"class": bem$1s(),
|
|
46421
46422
|
"attrs": {
|
|
46422
46423
|
"position": "bottom",
|
|
@@ -46828,7 +46829,7 @@ var PickerColumn = createComponent$1A({
|
|
|
46828
46829
|
class: "van-ellipsis",
|
|
46829
46830
|
domProps: (_domProps = {}, _domProps[_this4.allowHtml ? "innerHTML" : "textContent"] = text, _domProps)
|
|
46830
46831
|
};
|
|
46831
|
-
return h("li",
|
|
46832
|
+
return h("li", _mergeJSXProps([{}, data49]), [_this4.slots("option", option2) || h("div", _mergeJSXProps([{}, childData]))]);
|
|
46832
46833
|
});
|
|
46833
46834
|
}
|
|
46834
46835
|
},
|
|
@@ -47555,7 +47556,7 @@ function Cell(h, props, slots2, ctx) {
|
|
|
47555
47556
|
if (size2) {
|
|
47556
47557
|
classes[size2] = size2;
|
|
47557
47558
|
}
|
|
47558
|
-
return h("div",
|
|
47559
|
+
return h("div", _mergeJSXProps([{
|
|
47559
47560
|
"class": bem$1o(classes),
|
|
47560
47561
|
"attrs": {
|
|
47561
47562
|
"role": clickable ? "button" : null,
|
|
@@ -47964,7 +47965,7 @@ var Field = createComponent$1w({
|
|
|
47964
47965
|
}]
|
|
47965
47966
|
};
|
|
47966
47967
|
if (type2 === "textarea") {
|
|
47967
|
-
return h("textarea",
|
|
47968
|
+
return h("textarea", _mergeJSXProps([{}, inputProps]));
|
|
47968
47969
|
}
|
|
47969
47970
|
var inputType = type2;
|
|
47970
47971
|
var inputMode;
|
|
@@ -47976,7 +47977,7 @@ var Field = createComponent$1w({
|
|
|
47976
47977
|
inputType = "tel";
|
|
47977
47978
|
inputMode = "numeric";
|
|
47978
47979
|
}
|
|
47979
|
-
return h("input",
|
|
47980
|
+
return h("input", _mergeJSXProps([{
|
|
47980
47981
|
"attrs": {
|
|
47981
47982
|
"type": inputType,
|
|
47982
47983
|
"inputmode": inputMode
|
|
@@ -48492,7 +48493,7 @@ function Button(h, props, slots2, ctx) {
|
|
|
48492
48493
|
}
|
|
48493
48494
|
return content;
|
|
48494
48495
|
}
|
|
48495
|
-
return h(tag,
|
|
48496
|
+
return h(tag, _mergeJSXProps([{
|
|
48496
48497
|
"style": style12,
|
|
48497
48498
|
"class": classes,
|
|
48498
48499
|
"attrs": {
|
|
@@ -48908,7 +48909,7 @@ var VanDialog = createComponent$1r({
|
|
|
48908
48909
|
"class": bem$1i("content", {
|
|
48909
48910
|
isolated: !hasTitle
|
|
48910
48911
|
})
|
|
48911
|
-
}, [h("div",
|
|
48912
|
+
}, [h("div", _mergeJSXProps([{}, data49]))]);
|
|
48912
48913
|
}
|
|
48913
48914
|
}
|
|
48914
48915
|
},
|
|
@@ -49724,7 +49725,7 @@ function Tag(h, props, slots2, ctx) {
|
|
|
49724
49725
|
"attrs": {
|
|
49725
49726
|
"name": props.closeable ? "van-fade" : null
|
|
49726
49727
|
}
|
|
49727
|
-
}, [h("span",
|
|
49728
|
+
}, [h("span", _mergeJSXProps([{
|
|
49728
49729
|
"key": "content",
|
|
49729
49730
|
"style": style12,
|
|
49730
49731
|
"class": bem$1d([classes, type2])
|
|
@@ -49953,7 +49954,7 @@ function AddressItem(h, props, slots2, ctx) {
|
|
|
49953
49954
|
"on": {
|
|
49954
49955
|
"click": onClick19
|
|
49955
49956
|
}
|
|
49956
|
-
}, [h(Cell$1,
|
|
49957
|
+
}, [h(Cell$1, _mergeJSXProps([{
|
|
49957
49958
|
"attrs": {
|
|
49958
49959
|
"border": false,
|
|
49959
49960
|
"valueClass": bem$1b("value")
|
|
@@ -50011,7 +50012,7 @@ function AddressList(h, props, slots2, ctx) {
|
|
|
50011
50012
|
}
|
|
50012
50013
|
var List2 = genList(props.list);
|
|
50013
50014
|
var DisabledList = genList(props.disabledList, true);
|
|
50014
|
-
return h("div",
|
|
50015
|
+
return h("div", _mergeJSXProps([{
|
|
50015
50016
|
"class": bem$1a()
|
|
50016
50017
|
}, inherit(ctx)]), [slots2.top == null ? void 0 : slots2.top(), h(RadioGroup, {
|
|
50017
50018
|
"attrs": {
|
|
@@ -51123,7 +51124,7 @@ var Image = createComponent$1e({
|
|
|
51123
51124
|
return;
|
|
51124
51125
|
}
|
|
51125
51126
|
if (this.lazyLoad) {
|
|
51126
|
-
return h("img",
|
|
51127
|
+
return h("img", _mergeJSXProps([{
|
|
51127
51128
|
"ref": "image",
|
|
51128
51129
|
"directives": [{
|
|
51129
51130
|
name: "lazy",
|
|
@@ -51131,7 +51132,7 @@ var Image = createComponent$1e({
|
|
|
51131
51132
|
}]
|
|
51132
51133
|
}, imgData]));
|
|
51133
51134
|
}
|
|
51134
|
-
return h("img",
|
|
51135
|
+
return h("img", _mergeJSXProps([{
|
|
51135
51136
|
"attrs": {
|
|
51136
51137
|
"src": this.src
|
|
51137
51138
|
},
|
|
@@ -51258,7 +51259,7 @@ function Card(h, props, slots2, ctx) {
|
|
|
51258
51259
|
}, [slots2.footer()]);
|
|
51259
51260
|
}
|
|
51260
51261
|
}
|
|
51261
|
-
return h("div",
|
|
51262
|
+
return h("div", _mergeJSXProps([{
|
|
51262
51263
|
"class": bem$16()
|
|
51263
51264
|
}, inherit(ctx, true)]), [h("div", {
|
|
51264
51265
|
"class": bem$16("header")
|
|
@@ -52290,7 +52291,7 @@ var Cascader = createComponent$17({
|
|
|
52290
52291
|
var _createNamespace$12 = createNamespace("cell-group"), createComponent$16 = _createNamespace$12[0], bem$$ = _createNamespace$12[1];
|
|
52291
52292
|
function CellGroup(h, props, slots2, ctx) {
|
|
52292
52293
|
var _ref;
|
|
52293
|
-
var Group = h("div",
|
|
52294
|
+
var Group = h("div", _mergeJSXProps([{
|
|
52294
52295
|
"class": [bem$$({
|
|
52295
52296
|
inset: props.inset
|
|
52296
52297
|
}), (_ref = {}, _ref[BORDER_TOP_BOTTOM] = props.border, _ref)]
|
|
@@ -52831,7 +52832,7 @@ function ContactCard(h, props, slots2, ctx) {
|
|
|
52831
52832
|
}
|
|
52832
52833
|
return [h("div", [t$i("name") + "\uFF1A" + props.name]), h("div", [t$i("tel") + "\uFF1A" + props.tel])];
|
|
52833
52834
|
}
|
|
52834
|
-
return h(Cell$1,
|
|
52835
|
+
return h(Cell$1, _mergeJSXProps([{
|
|
52835
52836
|
"attrs": {
|
|
52836
52837
|
"center": true,
|
|
52837
52838
|
"border": false,
|
|
@@ -53090,7 +53091,7 @@ function ContactList(h, props, slots2, ctx) {
|
|
|
53090
53091
|
}
|
|
53091
53092
|
});
|
|
53092
53093
|
});
|
|
53093
|
-
return h("div",
|
|
53094
|
+
return h("div", _mergeJSXProps([{
|
|
53094
53095
|
"class": bem$S()
|
|
53095
53096
|
}, inherit(ctx)]), [h(RadioGroup, {
|
|
53096
53097
|
"attrs": {
|
|
@@ -53411,7 +53412,7 @@ function formatValue(props) {
|
|
|
53411
53412
|
function CouponCell(h, props, slots2, ctx) {
|
|
53412
53413
|
var selected = props.coupons[+props.chosenCoupon];
|
|
53413
53414
|
var value17 = formatValue(props);
|
|
53414
|
-
return h(Cell$1,
|
|
53415
|
+
return h(Cell$1, _mergeJSXProps([{
|
|
53415
53416
|
"class": bem$P(),
|
|
53416
53417
|
"attrs": {
|
|
53417
53418
|
"value": value17,
|
|
@@ -54216,7 +54217,7 @@ var DatetimePicker = createComponent$S({
|
|
|
54216
54217
|
var _createNamespace$N = createNamespace("divider"), createComponent$R = _createNamespace$N[0], bem$M = _createNamespace$N[1];
|
|
54217
54218
|
function Divider(h, props, slots2, ctx) {
|
|
54218
54219
|
var _bem;
|
|
54219
|
-
return h("div",
|
|
54220
|
+
return h("div", _mergeJSXProps([{
|
|
54220
54221
|
"attrs": {
|
|
54221
54222
|
"role": "separator"
|
|
54222
54223
|
},
|
|
@@ -56816,7 +56817,7 @@ function Notify$1(h, props, slots2, ctx) {
|
|
|
56816
56817
|
color: props.color,
|
|
56817
56818
|
background: props.background
|
|
56818
56819
|
};
|
|
56819
|
-
return h(Popup,
|
|
56820
|
+
return h(Popup, _mergeJSXProps([{
|
|
56820
56821
|
"attrs": {
|
|
56821
56822
|
"value": props.value,
|
|
56822
56823
|
"position": "top",
|
|
@@ -57432,7 +57433,7 @@ function Panel(h, props, slots2, ctx) {
|
|
|
57432
57433
|
"class": [bem$s("footer"), BORDER_TOP]
|
|
57433
57434
|
}, [slots2.footer()])];
|
|
57434
57435
|
};
|
|
57435
|
-
return h(CellGroup$1,
|
|
57436
|
+
return h(CellGroup$1, _mergeJSXProps([{
|
|
57436
57437
|
"class": bem$s(),
|
|
57437
57438
|
"scopedSlots": {
|
|
57438
57439
|
default: Content2
|
|
@@ -57478,7 +57479,7 @@ function PasswordInput(h, props, slots2, ctx) {
|
|
|
57478
57479
|
}
|
|
57479
57480
|
return h("div", {
|
|
57480
57481
|
"class": bem$r()
|
|
57481
|
-
}, [h("ul",
|
|
57482
|
+
}, [h("ul", _mergeJSXProps([{
|
|
57482
57483
|
"class": [bem$r("security"), (_ref2 = {}, _ref2[BORDER_SURROUND] = !gutter, _ref2)],
|
|
57483
57484
|
"on": {
|
|
57484
57485
|
"touchstart": function touchstart(event) {
|
|
@@ -59188,7 +59189,7 @@ function Search(h, props, slots2, ctx) {
|
|
|
59188
59189
|
};
|
|
59189
59190
|
var inheritData = inherit(ctx);
|
|
59190
59191
|
inheritData.attrs = void 0;
|
|
59191
|
-
return h("div",
|
|
59192
|
+
return h("div", _mergeJSXProps([{
|
|
59192
59193
|
"class": bem$l({
|
|
59193
59194
|
"show-action": props.showAction
|
|
59194
59195
|
}),
|
|
@@ -59197,7 +59198,7 @@ function Search(h, props, slots2, ctx) {
|
|
|
59197
59198
|
}
|
|
59198
59199
|
}, inheritData]), [slots2.left == null ? void 0 : slots2.left(), h("div", {
|
|
59199
59200
|
"class": bem$l("content", props.shape)
|
|
59200
|
-
}, [Label(), h(Field,
|
|
59201
|
+
}, [Label(), h(Field, _mergeJSXProps([{
|
|
59201
59202
|
"attrs": {
|
|
59202
59203
|
"type": "search",
|
|
59203
59204
|
"border": false,
|
|
@@ -59520,7 +59521,7 @@ function Skeleton(h, props, slots2, ctx) {
|
|
|
59520
59521
|
});
|
|
59521
59522
|
}
|
|
59522
59523
|
}
|
|
59523
|
-
return h("div",
|
|
59524
|
+
return h("div", _mergeJSXProps([{
|
|
59524
59525
|
"class": bem$h({
|
|
59525
59526
|
animate: props.animate,
|
|
59526
59527
|
round: props.round
|
|
@@ -59778,7 +59779,7 @@ function SkuHeader$1(h, props, slots2, ctx) {
|
|
|
59778
59779
|
var previewImage = function previewImage2() {
|
|
59779
59780
|
skuEventBus.$emit("sku:previewImage", selectedValue);
|
|
59780
59781
|
};
|
|
59781
|
-
return h("div",
|
|
59782
|
+
return h("div", _mergeJSXProps([{
|
|
59782
59783
|
"class": [bem$g(), BORDER_BOTTOM]
|
|
59783
59784
|
}, inherit(ctx)]), [showHeaderImage && h(Image, {
|
|
59784
59785
|
"attrs": {
|
|
@@ -59803,7 +59804,7 @@ SkuHeader$1.props = {
|
|
|
59803
59804
|
var SkuHeader$2 = createComponent$l(SkuHeader$1);
|
|
59804
59805
|
var _createNamespace$g = createNamespace("sku-header-item"), createComponent$k = _createNamespace$g[0], bem$f = _createNamespace$g[1];
|
|
59805
59806
|
function SkuHeader(h, props, slots2, ctx) {
|
|
59806
|
-
return h("div",
|
|
59807
|
+
return h("div", _mergeJSXProps([{
|
|
59807
59808
|
"class": bem$f()
|
|
59808
59809
|
}, inherit(ctx)]), [slots2.default && slots2.default()]);
|
|
59809
59810
|
}
|
|
@@ -60281,7 +60282,7 @@ var Stepper = createComponent$g({
|
|
|
60281
60282
|
};
|
|
60282
60283
|
return h("div", {
|
|
60283
60284
|
"class": bem$d([this.theme])
|
|
60284
|
-
}, [h("button",
|
|
60285
|
+
}, [h("button", _mergeJSXProps([{
|
|
60285
60286
|
"directives": [{
|
|
60286
60287
|
name: "show",
|
|
60287
60288
|
value: this.showMinus
|
|
@@ -60321,7 +60322,7 @@ var Stepper = createComponent$g({
|
|
|
60321
60322
|
"blur": this.onBlur,
|
|
60322
60323
|
"mousedown": this.onMousedown
|
|
60323
60324
|
}
|
|
60324
|
-
}), h("button",
|
|
60325
|
+
}), h("button", _mergeJSXProps([{
|
|
60325
60326
|
"directives": [{
|
|
60326
60327
|
name: "show",
|
|
60327
60328
|
value: this.showPlus
|
|
@@ -61365,7 +61366,7 @@ function SkuActions(h, props, slots2, ctx) {
|
|
|
61365
61366
|
props.skuEventBus.$emit(name2);
|
|
61366
61367
|
};
|
|
61367
61368
|
};
|
|
61368
|
-
return h("div",
|
|
61369
|
+
return h("div", _mergeJSXProps([{
|
|
61369
61370
|
"class": bem$a()
|
|
61370
61371
|
}, inherit(ctx)]), [props.showAddCartBtn && h(Button$1, {
|
|
61371
61372
|
"attrs": {
|
|
@@ -62504,7 +62505,7 @@ function SubmitBar(h, props, slots2, ctx) {
|
|
|
62504
62505
|
}, [tip]), slots2.tip && slots2.tip()]);
|
|
62505
62506
|
}
|
|
62506
62507
|
}
|
|
62507
|
-
return h("div",
|
|
62508
|
+
return h("div", _mergeJSXProps([{
|
|
62508
62509
|
"class": bem$5({
|
|
62509
62510
|
unfit: !props.safeAreaInsetBottom
|
|
62510
62511
|
})
|
|
@@ -62743,7 +62744,7 @@ var SwipeCell = createComponent$4({
|
|
|
62743
62744
|
});
|
|
62744
62745
|
var _createNamespace$3 = createNamespace("switch-cell"), createComponent$3 = _createNamespace$3[0], bem$3 = _createNamespace$3[1];
|
|
62745
62746
|
function SwitchCell(h, props, slots2, ctx) {
|
|
62746
|
-
return h(Cell$1,
|
|
62747
|
+
return h(Cell$1, _mergeJSXProps([{
|
|
62747
62748
|
"attrs": {
|
|
62748
62749
|
"center": true,
|
|
62749
62750
|
"size": props.cellSize,
|
|
@@ -63020,7 +63021,7 @@ function TreeSelect(h, props, slots2, ctx) {
|
|
|
63020
63021
|
})]);
|
|
63021
63022
|
});
|
|
63022
63023
|
}
|
|
63023
|
-
return h("div",
|
|
63024
|
+
return h("div", _mergeJSXProps([{
|
|
63024
63025
|
"class": bem(),
|
|
63025
63026
|
"style": {
|
|
63026
63027
|
height: addUnit(height)
|
|
@@ -68916,13 +68917,13 @@ var render$2 = function() {
|
|
|
68916
68917
|
return [_c("van-icon", { attrs: { "name": "search" } })];
|
|
68917
68918
|
}, proxy: true }]), model: { value: _vm.searchValue, callback: function($$v) {
|
|
68918
68919
|
_vm.searchValue = $$v;
|
|
68919
|
-
}, expression: "searchValue" } })], 1), _c("van-popup", { attrs: { "round": true }, model: { value: _vm.show, callback: function($$v) {
|
|
68920
|
+
}, expression: "searchValue" } })], 1), _c("van-popup", { staticStyle: { "width": "80%", "height": "50%" }, attrs: { "round": true }, model: { value: _vm.show, callback: function($$v) {
|
|
68920
68921
|
_vm.show = $$v;
|
|
68921
|
-
}, expression: "show" } }, [_c("
|
|
68922
|
-
return _c("
|
|
68923
|
-
}), 1)]), _c("div", { staticClass: "ind-m-myApp-container" }, [_c("div", { staticClass: "ind-m-myApp-inner" }, [_c("div", { staticClass: "ind-m-myApp-container-top" }, [_c("div", { staticClass: "ind-m-my-apps-title" }, [_vm._v("\u6211\u7684\u5E94\u7528")]), _c("van-button", { staticClass: "ind-m-edit-btn", attrs: { "size": "small", "type": "info", "text": _vm.editButtonName }, on: { "click": _vm.toggleEdit } })], 1), _c("
|
|
68924
|
-
return _c("
|
|
68925
|
-
}),
|
|
68922
|
+
}, expression: "show" } }, [_c("van-grid", { attrs: { "column-num": 4 } }, _vm._l(_vm.searchApp, function(item2, idx) {
|
|
68923
|
+
return _c("van-grid-item", { key: idx }, [_c("apps-item", { attrs: { "item": item2, "state": item2.state, "editStatus": _vm.currentEditStatus == "on" ? "minus" : "off" }, on: { "touchend": _vm.rmFromMyAppsClick } })], 1);
|
|
68924
|
+
}), 1)], 1), _c("div", { staticClass: "ind-m-myApp-container" }, [_c("div", { staticClass: "ind-m-myApp-inner" }, [_c("div", { staticClass: "ind-m-myApp-container-top" }, [_c("div", { staticClass: "ind-m-my-apps-title" }, [_vm._v("\u6211\u7684\u5E94\u7528")]), _c("van-button", { staticClass: "ind-m-edit-btn", attrs: { "size": "small", "type": "info", "text": _vm.editButtonName }, on: { "click": _vm.toggleEdit } })], 1), _c("van-grid", { attrs: { "column-num": 4 } }, _vm._l(_vm.isEditing ? _vm.tempMyApps : _vm.my_apps, function(item2, idx) {
|
|
68925
|
+
return _c("van-grid-item", { key: idx }, [_c("apps-item", { attrs: { "item": item2, "state": item2.state, "editStatus": _vm.currentEditStatus == "on" ? "minus" : "off" }, on: { "touchend": _vm.rmFromMyAppsClick } })], 1);
|
|
68926
|
+
}), 1)], 1)]), _c("div", { staticClass: "customnnnmmmm-tabs-container" }, [_c("div", { staticClass: "customnnnmmmm-tabs-header-wrapper" }, [_c("div", { ref: "tabsHeader", staticClass: "customnnnmmmm-tabs-header" }, _vm._l(_vm.apps_menus, function(tab, idx) {
|
|
68926
68927
|
return _c("div", { key: "tab" + idx, staticClass: "customnnnmmmm-tab-item", class: { active: _vm.active === idx }, on: { "click": function($event) {
|
|
68927
68928
|
return _vm.handleTabClick(idx);
|
|
68928
68929
|
} } }, [_c("div", { staticClass: "customnnnmmmm-tab-item-top", class: { active: _vm.active === idx } }, [_vm._v(" " + _vm._s(tab.meta.title) + " ")]), _c("div", { staticClass: "customnnnmmmm-tab-item-bottom", class: { active: _vm.active === idx } })]);
|
|
@@ -68930,7 +68931,7 @@ var render$2 = function() {
|
|
|
68930
68931
|
return _c("div", { key: index2, class: ["ind-m-sidebar-item", { active: _vm.activeKey === index2 }], on: { "click": function($event) {
|
|
68931
68932
|
return _vm.handleSidebarClick(index2);
|
|
68932
68933
|
} } }, [_c("span", { staticClass: "ind-m-sidebar-text" }, [_vm._v(_vm._s(item2.meta.title))])]);
|
|
68933
|
-
}), 0), _c("div", { ref: "scrollContainer", staticClass: "ind-m-apps-container", staticStyle: { "padding-top": "0px"
|
|
68934
|
+
}), 0), _c("div", { ref: "scrollContainer", staticClass: "ind-m-apps-container", staticStyle: { "padding-top": "0px", "padding-bottom": "300px", "height": "100%" }, on: { "scroll": _vm.handleRightScroll } }, _vm._l(_vm.apps_menus[_vm.active] && _vm.apps_menus[_vm.active].children || [], function(item2, index2) {
|
|
68934
68935
|
return _c("div", { key: index2, staticClass: "ind-m-menu-section", attrs: { "id": "section-" + _vm.active + "-" + index2, "data-index": index2 } }, [_c("div", { staticClass: "ind-m-divider-container" }, [_c("van-divider", { staticClass: "ind-m-custom-divider" }, [_vm._v(" " + _vm._s(item2.meta.title) + " ")])], 1), _c("div", { staticClass: "ind-m-menu-section-content" }, _vm._l((((_vm.apps_menus[_vm.active] || {}).children || [])[index2] || {}).children || [], function(subItem, subIndex) {
|
|
68935
68936
|
return _c("div", { key: "level3-" + subIndex, class: ["ind-m-app-item-wrapper", { "full-width": subItem.children }] }, [!subItem.children ? _c("apps-item", { attrs: { "item": subItem, "state": subItem.state, "title": subItem.meta.title, "editStatus": _vm.currentEditStatus == "on" ? "plus" : "off" }, on: { "touchend": _vm.addToMyAppsClick } }) : _vm._e(), subItem.children ? _c("div", { staticClass: "ind-m-category-header" }, [_c("div", { staticClass: "ind-m-category-indicator" }), _c("div", { staticClass: "ind-m-category-title" }, [_vm._v(_vm._s(subItem.meta.title))])]) : _vm._e(), subItem.children ? _c("van-grid", { attrs: { "border": false, "clickable": "", "gutter": 0, "column-num": 3 } }, _vm._l(_vm.apps_menus[_vm.active] && _vm.apps_menus[_vm.active].children[index2] && _vm.apps_menus[_vm.active].children[index2].children[subIndex] && _vm.apps_menus[_vm.active].children[index2].children[subIndex].children || [], function(menu) {
|
|
68936
68937
|
return _c("van-grid-item", { key: menu.meta.permissionId, staticClass: "menu" }, [_c("apps-item", { attrs: { "item": menu, "state": menu.state, "title": menu.meta.title, "editStatus": _vm.currentEditStatus == "on" ? "plus" : "off" }, on: { "touchend": _vm.addToMyAppsClick } })], 1);
|
|
@@ -68955,6 +68956,8 @@ const __vue2_script$2 = {
|
|
|
68955
68956
|
name: "appsNew",
|
|
68956
68957
|
apps_menus: [],
|
|
68957
68958
|
my_apps: [],
|
|
68959
|
+
tempMyApps: [],
|
|
68960
|
+
isEditing: false,
|
|
68958
68961
|
title: "",
|
|
68959
68962
|
editButtonName: "\u7F16\u8F91",
|
|
68960
68963
|
rmFromMyAppsClick: this.routeTo,
|
|
@@ -68972,24 +68975,23 @@ const __vue2_script$2 = {
|
|
|
68972
68975
|
this.editButtonName = "\u5B8C\u6210";
|
|
68973
68976
|
this.rmFromMyAppsClick = this.rmFromMyApps;
|
|
68974
68977
|
this.addToMyAppsClick = this.addToMyApps;
|
|
68975
|
-
this.disableDraggable = false;
|
|
68976
68978
|
break;
|
|
68977
68979
|
}
|
|
68978
68980
|
case "off": {
|
|
68979
68981
|
this.editButtonName = "\u7F16\u8F91";
|
|
68980
68982
|
this.rmFromMyAppsClick = this.routeTo;
|
|
68981
68983
|
this.addToMyAppsClick = this.routeTo;
|
|
68982
|
-
this.saveMyApps();
|
|
68983
|
-
this.disableDraggable = true;
|
|
68984
68984
|
break;
|
|
68985
68985
|
}
|
|
68986
68986
|
}
|
|
68987
68987
|
},
|
|
68988
68988
|
my_apps() {
|
|
68989
|
-
|
|
68990
|
-
|
|
68991
|
-
|
|
68992
|
-
|
|
68989
|
+
if (!this.isEditing) {
|
|
68990
|
+
setTimeout(() => {
|
|
68991
|
+
var _a;
|
|
68992
|
+
this.offsetTop = ((_a = this.$refs.myapp) == null ? void 0 : _a.clientHeight) + 48 || 246;
|
|
68993
|
+
}, 200);
|
|
68994
|
+
}
|
|
68993
68995
|
},
|
|
68994
68996
|
active(newVal, oldVal) {
|
|
68995
68997
|
this.$set(this.tabActiveKeys, oldVal, this.activeKey);
|
|
@@ -69003,7 +69005,9 @@ const __vue2_script$2 = {
|
|
|
69003
69005
|
}
|
|
69004
69006
|
},
|
|
69005
69007
|
updated() {
|
|
69006
|
-
|
|
69008
|
+
if (!this.isEditing) {
|
|
69009
|
+
this.$store.commit("setMyAppsList", this.my_apps);
|
|
69010
|
+
}
|
|
69007
69011
|
},
|
|
69008
69012
|
mounted() {
|
|
69009
69013
|
var _a;
|
|
@@ -69064,9 +69068,7 @@ const __vue2_script$2 = {
|
|
|
69064
69068
|
return;
|
|
69065
69069
|
}
|
|
69066
69070
|
const searchTerm = this.searchValue.toLowerCase().trim();
|
|
69067
|
-
const allLeafNodes = this.findObjectsWithoutChildren(this.apps_menus)
|
|
69068
|
-
(item2) => item2.path !== "" || item2.uri !== ""
|
|
69069
|
-
);
|
|
69071
|
+
const allLeafNodes = this.findObjectsWithoutChildren(this.apps_menus);
|
|
69070
69072
|
this.searchApp = allLeafNodes.filter(
|
|
69071
69073
|
(item2) => {
|
|
69072
69074
|
var _a, _b;
|
|
@@ -69153,18 +69155,6 @@ const __vue2_script$2 = {
|
|
|
69153
69155
|
this.$router.push({ path: app2.uri });
|
|
69154
69156
|
}
|
|
69155
69157
|
},
|
|
69156
|
-
toggleEdit() {
|
|
69157
|
-
this.currentEditStatus = this.currentEditStatus === "on" ? "off" : "on";
|
|
69158
|
-
},
|
|
69159
|
-
saveMyApps() {
|
|
69160
|
-
Dialog.confirm({
|
|
69161
|
-
title: "\u63D0\u793A",
|
|
69162
|
-
message: "\u662F\u5426\u4FDD\u5B58"
|
|
69163
|
-
}).then(() => {
|
|
69164
|
-
this.$store.commit("setMyAppsList", this.my_apps);
|
|
69165
|
-
}).catch(() => {
|
|
69166
|
-
});
|
|
69167
|
-
},
|
|
69168
69158
|
appsMenusExtended(menuTree, currentDepth = 0) {
|
|
69169
69159
|
if (currentDepth > 4)
|
|
69170
69160
|
return;
|
|
@@ -69209,29 +69199,49 @@ const __vue2_script$2 = {
|
|
|
69209
69199
|
});
|
|
69210
69200
|
return b;
|
|
69211
69201
|
},
|
|
69212
|
-
|
|
69213
|
-
if (this.
|
|
69202
|
+
toggleEdit() {
|
|
69203
|
+
if (this.currentEditStatus === "off") {
|
|
69204
|
+
this.tempMyApps = JSON.parse(JSON.stringify(this.my_apps));
|
|
69205
|
+
this.currentEditStatus = "on";
|
|
69206
|
+
this.isEditing = true;
|
|
69207
|
+
} else {
|
|
69208
|
+
Dialog.confirm({
|
|
69209
|
+
title: "\u63D0\u793A",
|
|
69210
|
+
message: "\u662F\u5426\u4FDD\u5B58\u66F4\u6539\uFF1F"
|
|
69211
|
+
}).then(() => {
|
|
69212
|
+
this.my_apps = this.tempMyApps;
|
|
69213
|
+
this.currentEditStatus = "off";
|
|
69214
|
+
this.isEditing = false;
|
|
69215
|
+
this.saveMyApps();
|
|
69216
|
+
}).catch(() => {
|
|
69217
|
+
this.currentEditStatus = "on";
|
|
69218
|
+
this.isEditing = true;
|
|
69219
|
+
});
|
|
69220
|
+
}
|
|
69221
|
+
},
|
|
69222
|
+
addToMyApps: _.debounce(function(menu) {
|
|
69223
|
+
if (this.tempMyApps.length == this.maxApps) {
|
|
69214
69224
|
Toast("\u9996\u9875\u6700\u591A\u6DFB\u52A0" + this.maxApps + "\u4E2A\u5E94\u7528!");
|
|
69215
69225
|
return;
|
|
69216
69226
|
}
|
|
69217
|
-
if (this.
|
|
69227
|
+
if (this.tempMyApps.find((v) => v.meta.permissionId === menu.meta.permissionId)) {
|
|
69218
69228
|
console.log("\u5E94\u7528\u5DF2\u5B58\u5728");
|
|
69219
69229
|
return;
|
|
69220
69230
|
}
|
|
69221
69231
|
const menuItem = this.findMenu(this.apps_menus, menu, false);
|
|
69222
69232
|
if (menuItem) {
|
|
69223
|
-
this.
|
|
69233
|
+
this.tempMyApps.push(menuItem);
|
|
69224
69234
|
}
|
|
69225
|
-
},
|
|
69226
|
-
rmFromMyApps(menu) {
|
|
69227
|
-
const index2 = this.
|
|
69235
|
+
}, 100),
|
|
69236
|
+
rmFromMyApps: _.debounce(function(menu) {
|
|
69237
|
+
const index2 = this.tempMyApps.findIndex(
|
|
69228
69238
|
(item2) => item2.meta.permissionId === menu.meta.permissionId
|
|
69229
69239
|
);
|
|
69230
69240
|
if (index2 !== -1) {
|
|
69231
|
-
this.
|
|
69241
|
+
this.tempMyApps.splice(index2, 1);
|
|
69232
69242
|
this.findMenu(this.apps_menus, menu, true);
|
|
69233
69243
|
}
|
|
69234
|
-
},
|
|
69244
|
+
}, 100),
|
|
69235
69245
|
findMenu(list2, menu, flag) {
|
|
69236
69246
|
for (let i = 0; i < list2.length; i++) {
|
|
69237
69247
|
if (list2[i].children) {
|
|
@@ -69245,6 +69255,9 @@ const __vue2_script$2 = {
|
|
|
69245
69255
|
}
|
|
69246
69256
|
}
|
|
69247
69257
|
return false;
|
|
69258
|
+
},
|
|
69259
|
+
saveMyApps() {
|
|
69260
|
+
this.$store.commit("setMyAppsList", this.my_apps);
|
|
69248
69261
|
}
|
|
69249
69262
|
}
|
|
69250
69263
|
};
|