@indfnd/common-mobile 0.0.19 → 0.0.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/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.21](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.20...v0.0.21) (2024-05-24)
6
+
7
+
8
+ ### Features
9
+
10
+ * 保留小数位数 ([d1de86a](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/d1de86a26f566caf6ff1082c14534050a9352b28))
11
+ * 样式布局修改 ([9927e0b](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/9927e0b72986e41dd66421bada827a72044fc9d5))
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * permission cache ([1b80b08](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/1b80b087a19762cfffbfe7991b924445f9de7a7d))
17
+
18
+ ### [0.0.20](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.19...v0.0.20) (2024-04-19)
19
+
5
20
  ### [0.0.19](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.18...v0.0.19) (2024-04-19)
6
21
 
7
22
 
@@ -2,7 +2,7 @@ import { getQuarterNum, getHalfYearNum, getHalfYear, formatDate, checkIdCard, ch
2
2
  import { DropdownMenu as DropdownMenu$1, DropdownItem as DropdownItem$1, Message, LoadingBar, Spin } from "view-design";
3
3
  import Vue$1 from "vue";
4
4
  const name = "@indfnd/common-mobile";
5
- const version$1 = "0.0.18";
5
+ const version$1 = "0.0.20";
6
6
  const author = "huxuetong";
7
7
  const publishConfig = {
8
8
  registry: "https://registry.npmjs.org/"
@@ -6571,7 +6571,9 @@ var FormImpl = {
6571
6571
  input: (val) => {
6572
6572
  this.form[d.formKey] = val;
6573
6573
  this.$emit("input", this.form);
6574
- this.$emit("fieldChange", { formKey: d.formKey, row: this.form });
6574
+ this.$nextTick().then(() => {
6575
+ this.$emit("fieldChange", { formKey: d.formKey, row: this.form });
6576
+ });
6575
6577
  }
6576
6578
  }
6577
6579
  });
@@ -6580,7 +6582,7 @@ var FormImpl = {
6580
6582
  case "number": {
6581
6583
  let text = this.form[d.formKey];
6582
6584
  if (d.scale !== void 0) {
6583
- text = isNaN(text) || text === null ? text : parseFloat(text).toFixed(d.scale);
6585
+ text = isNaN(text) || text === null ? text : parseFloat(parseFloat(text).toFixed(d.scale));
6584
6586
  }
6585
6587
  itemInner = h("Input", {
6586
6588
  ref: d.formKey,
@@ -6605,7 +6607,9 @@ var FormImpl = {
6605
6607
  this.form[d.formKey] = parseFloat(v);
6606
6608
  this.$refs[d.formKey] && this.$refs[d.formKey].setCurrentValue(v);
6607
6609
  this.$emit("input", this.form);
6608
- this.$emit("fieldChange", { formKey: d.formKey, row: this.form });
6610
+ this.$nextTick().then(() => {
6611
+ this.$emit("fieldChange", { formKey: d.formKey, row: this.form });
6612
+ });
6609
6613
  }
6610
6614
  }
6611
6615
  });
@@ -6628,7 +6632,9 @@ var FormImpl = {
6628
6632
  input: (val) => {
6629
6633
  this.form[d.formKey] = val;
6630
6634
  this.$emit("input", this.form);
6631
- this.$emit("fieldChange", { formKey: d.formKey, row: this.form });
6635
+ this.$nextTick().then(() => {
6636
+ this.$emit("fieldChange", { formKey: d.formKey, row: this.form });
6637
+ });
6632
6638
  }
6633
6639
  }
6634
6640
  });
@@ -6652,7 +6658,9 @@ var FormImpl = {
6652
6658
  input: (val) => {
6653
6659
  this.form[d.formKey] = val;
6654
6660
  this.$emit("input", this.form);
6655
- this.$emit("fieldChange", { formKey: d.formKey, row: this.form });
6661
+ this.$nextTick().then(() => {
6662
+ this.$emit("fieldChange", { formKey: d.formKey, row: this.form });
6663
+ });
6656
6664
  const required = d.required instanceof Function ? d.required(this.form) : d.required;
6657
6665
  if (required) {
6658
6666
  this.$refs.form.validateField(d.formKey);
@@ -6675,7 +6683,9 @@ var FormImpl = {
6675
6683
  input: (val) => {
6676
6684
  this.form[d.formKey] = val;
6677
6685
  this.$emit("input", this.form);
6678
- this.$emit("fieldChange", { formKey: d.formKey, row: this.form });
6686
+ this.$nextTick().then(() => {
6687
+ this.$emit("fieldChange", { formKey: d.formKey, row: this.form });
6688
+ });
6679
6689
  const required = d.required instanceof Function ? d.required(this.form) : d.required;
6680
6690
  if (required) {
6681
6691
  this.$nextTick(() => {
@@ -6712,7 +6722,9 @@ var FormImpl = {
6712
6722
  input: (val) => {
6713
6723
  this.form[d.formKey] = val;
6714
6724
  this.$emit("input", this.form);
6715
- this.$emit("fieldChange", { formKey: d.formKey, row: this.form });
6725
+ this.$nextTick().then(() => {
6726
+ this.$emit("fieldChange", { formKey: d.formKey, row: this.form });
6727
+ });
6716
6728
  const required = d.required instanceof Function ? d.required(this.form) : d.required;
6717
6729
  if (required) {
6718
6730
  this.$nextTick(() => {
@@ -6737,7 +6749,9 @@ var FormImpl = {
6737
6749
  input: (val) => {
6738
6750
  this.form[d.formKey] = val;
6739
6751
  this.$emit("input", this.form);
6740
- this.$emit("fieldChange", { formKey: d.formKey, row: this.form });
6752
+ this.$nextTick().then(() => {
6753
+ this.$emit("fieldChange", { formKey: d.formKey, row: this.form });
6754
+ });
6741
6755
  const required = d.required instanceof Function ? d.required(this.form) : d.required;
6742
6756
  if (required) {
6743
6757
  this.$nextTick(() => {
@@ -6780,7 +6794,9 @@ var FormImpl = {
6780
6794
  input: (val) => {
6781
6795
  this.form[d.formKey] = val;
6782
6796
  this.$emit("input", this.form);
6783
- this.$emit("fieldChange", { formKey: d.formKey, row: this.form });
6797
+ this.$nextTick().then(() => {
6798
+ this.$emit("fieldChange", { formKey: d.formKey, row: this.form });
6799
+ });
6784
6800
  const required = d.required instanceof Function ? d.required(this.form) : d.required;
6785
6801
  if (required) {
6786
6802
  this.$nextTick(() => {
@@ -6809,7 +6825,9 @@ var FormImpl = {
6809
6825
  input: (val) => {
6810
6826
  this.form[d.formKey] = val;
6811
6827
  this.$emit("input", this.form);
6812
- this.$emit("fieldChange", { formKey: d.formKey, row: this.form });
6828
+ this.$nextTick().then(() => {
6829
+ this.$emit("fieldChange", { formKey: d.formKey, row: this.form });
6830
+ });
6813
6831
  const required = d.required instanceof Function ? d.required(this.form) : d.required;
6814
6832
  if (required) {
6815
6833
  this.$refs.form.validateField(d.formKey);
@@ -6834,7 +6852,9 @@ var FormImpl = {
6834
6852
  onChangeData: (val) => {
6835
6853
  this.form[d.formKey] = val;
6836
6854
  this.$emit("input", this.form);
6837
- this.$emit("fieldChange", { formKey: d.formKey, row: this.form });
6855
+ this.$nextTick().then(() => {
6856
+ this.$emit("fieldChange", { formKey: d.formKey, row: this.form });
6857
+ });
6838
6858
  }
6839
6859
  }
6840
6860
  });
@@ -6855,7 +6875,9 @@ var FormImpl = {
6855
6875
  onChangeData: (val) => {
6856
6876
  this.form[d.formKey] = val;
6857
6877
  this.$emit("input", this.form);
6858
- this.$emit("fieldChange", { formKey: d.formKey, row: this.form });
6878
+ this.$nextTick().then(() => {
6879
+ this.$emit("fieldChange", { formKey: d.formKey, row: this.form });
6880
+ });
6859
6881
  }
6860
6882
  }
6861
6883
  });
@@ -6874,7 +6896,7 @@ var FormImpl = {
6874
6896
  text = formatDate(text);
6875
6897
  }
6876
6898
  if (d.scale !== void 0) {
6877
- text = isNaN(text) || text === null ? text : parseFloat(text).toFixed(d.scale);
6899
+ text = isNaN(text) || text === null ? text : parseFloat(parseFloat(text).toFixed(d.scale));
6878
6900
  }
6879
6901
  itemInner = h("span", {}, [
6880
6902
  h(
@@ -44028,9 +44050,9 @@ var render$k = function() {
44028
44050
  var _vm = this;
44029
44051
  var _h = _vm.$createElement;
44030
44052
  var _c = _vm._self._c || _h;
44031
- return _c("div", { staticClass: "height100 ind-basic-layout ind-flex-column" }, [_c("van-nav-bar", { staticClass: "ind-flex-no-shrink", attrs: { "title": _vm.$route.meta.title, "left-text": "", "left-arrow": "" }, on: { "click-left": function($event) {
44053
+ return _c("div", { staticClass: "height100 ind-basic-layout ind-flex-column" }, [_c("van-sticky", [_c("van-nav-bar", { staticClass: "ind-flex-no-shrink", attrs: { "title": _vm.$route.meta.title, "left-text": "", "left-arrow": "" }, on: { "click-left": function($event) {
44032
44054
  return _vm.$router.go(-1);
44033
- } } }), _c("div", { staticClass: "ind-main-content-wrapper ind-flex-grow", attrs: { "id": "keepalive" } }, [_c("KeepAlive", { attrs: { "max": _vm.$store.state.app.maxTabNum } }, [_c("RouterView", { key: _vm.$route.path })], 1)], 1)], 1);
44055
+ } } })], 1), _c("div", { staticClass: "ind-main-content-wrapper ind-flex-grow", attrs: { "id": "keepalive" } }, [_c("KeepAlive", { attrs: { "max": _vm.$store.state.app.maxTabNum } }, [_c("RouterView", { key: _vm.$route.path })], 1)], 1)], 1);
44034
44056
  };
44035
44057
  var staticRenderFns$k = [];
44036
44058
  const __vue2_script$k = {
@@ -44657,9 +44679,9 @@ var render$g = function() {
44657
44679
  var _c = _vm._self._c || _h;
44658
44680
  return _c("van-popup", { style: { width: "100%", height: "100vh" }, attrs: { "value": _vm.value, "position": "right", "get-container": "body" }, on: { "input": function($event) {
44659
44681
  return _vm.$emit("input", $event);
44660
- } } }, [_c("div", { staticClass: "height100 ind-basic-layout ind-flex-column" }, [_c("van-nav-bar", { staticClass: "ind-flex-no-shrink", attrs: { "title": _vm.title || _vm.$route.meta.title, "left-text": "", "left-arrow": "" }, on: { "click-left": function($event) {
44682
+ } } }, [_c("div", { staticClass: "height100 ind-basic-layout ind-flex-column" }, [_c("van-sticky", [_c("van-nav-bar", { staticClass: "ind-flex-no-shrink", attrs: { "title": _vm.title || _vm.$route.meta.title, "left-text": "", "left-arrow": "" }, on: { "click-left": function($event) {
44661
44683
  return _vm.$emit("input", false);
44662
- } } }), _c("div", { staticClass: "ind-main-content-wrapper ind-flex-grow" }, [_vm._t("default")], 2)], 1)]);
44684
+ } } })], 1), _c("div", { staticClass: "ind-main-content-wrapper ind-flex-grow" }, [_vm._t("default")], 2)], 1)]);
44663
44685
  };
44664
44686
  var staticRenderFns$g = [];
44665
44687
  const __vue2_script$g = {
@@ -44670,7 +44692,12 @@ const __vue2_script$g = {
44670
44692
  data() {
44671
44693
  return {};
44672
44694
  },
44673
- methods: {}
44695
+ methods: {},
44696
+ beforeRouteLeave(to, from, next2) {
44697
+ if (this.value) {
44698
+ this.$emit("input", false);
44699
+ }
44700
+ }
44674
44701
  };
44675
44702
  const __cssModules$g = {};
44676
44703
  var __component__$g = /* @__PURE__ */ normalizeComponent(
@@ -62984,7 +63011,7 @@ var render$a = function() {
62984
63011
  var _vm = this;
62985
63012
  var _h = _vm.$createElement;
62986
63013
  var _c = _vm._self._c || _h;
62987
- return _c("van-popup", { style: { width: "100%", height: "100%" }, attrs: { "value": _vm.show, "position": "right", "lazy-render": true, "get-container": "body" }, on: { "opened": _vm.getTableData } }, [_c("div", { staticClass: "ind-select-panel ind-vcenter", class: [_vm.isTree ? "ind-mobile-tree" : "", _vm.showHeader ? "ind-select-panel-widthheader" : ""], staticStyle: { "width": "100%", "height": "100vh" }, style: { paddingBottom: _vm.multiple && !_vm.showHeader ? "20px" : "0" } }, [_c("van-nav-bar", { staticClass: "ind-flex-no-shrink", attrs: { "title": "\u8BF7\u9009\u62E9" + _vm.title, "left-text": "", "left-arrow": "" }, on: { "click-left": _vm.cancel } }), _c("div", { staticClass: "ind-main-content-wrapper ind-flex-grow ind-vcenter" }, [_c("van-search", { staticClass: "ind-flex-no-shrink", staticStyle: { "position": "relative", "z-index": "3" }, attrs: { "placeholder": "\u8BF7\u8F93\u5165\u641C\u7D22\u5173\u952E\u8BCD" }, on: { "search": _vm.doSearch }, model: { value: _vm.searchVal, callback: function($$v) {
63014
+ return _c("van-popup", { style: { width: "100%", height: "100%" }, attrs: { "value": _vm.show, "position": "right", "lazy-render": true, "get-container": "body" }, on: { "opened": _vm.getTableData } }, [_c("div", { staticClass: "ind-select-panel ind-vcenter", class: [_vm.isTree ? "ind-mobile-tree" : "", _vm.showHeader ? "ind-select-panel-widthheader" : ""], staticStyle: { "width": "100%", "height": "100vh" }, style: { paddingBottom: _vm.multiple && !_vm.showHeader ? "20px" : "0" } }, [_c("van-sticky", [_c("van-nav-bar", { staticClass: "ind-flex-no-shrink", attrs: { "title": "\u8BF7\u9009\u62E9" + _vm.title, "left-text": "", "left-arrow": "" }, on: { "click-left": _vm.cancel } })], 1), _c("div", { staticClass: "ind-main-content-wrapper ind-flex-grow ind-vcenter" }, [_c("van-search", { staticClass: "ind-flex-no-shrink", staticStyle: { "position": "relative", "z-index": "3" }, attrs: { "placeholder": "\u8BF7\u8F93\u5165\u641C\u7D22\u5173\u952E\u8BCD" }, on: { "search": _vm.doSearch }, model: { value: _vm.searchVal, callback: function($$v) {
62988
63015
  _vm.searchVal = $$v;
62989
63016
  }, expression: "searchVal" } }), _c("IndTable", { ref: "table", attrs: { "rowClick": "", "headerHeight": 49, "rowMultiSelectWithClick": _vm.multiple, "isRowSelectable": _vm.isRowSelectable, "groupSelectsChildren": _vm.multiple, "showBottom": false, "dataApi": _vm.selectDataApi, "searchParams": _vm.searchParams, "columns": _vm.columnsData, "rowKey": _vm.selectRowKey, "showTableOption": false, "groupDefaultExpanded": 3, "disablePage": "" }, on: { "on-select-change": _vm.onSelectChange, "on-data-format-load": _vm.setLength } }), _c("div", { staticClass: "ind-bottom-info ind-bottom-btn", style: { position: _vm.showHeader ? "static" : "absolute", bottom: 0 }, attrs: { "slot": "bottom" }, slot: "bottom" }, [_vm.multiple ? _c("div", { staticClass: "ind-flex" }, [_vm._v(" \u5171\xA0"), _c("span", { staticClass: "ind-orange ind-large" }, [_vm._v(_vm._s(_vm.dataLen))]), _vm._v("\xA0\u6761\u6570\u636E\uFF0C\u5DF2\u9009\u62E9\xA0"), _c("span", { staticClass: "ind-orange ind-large" }, [_vm._v(_vm._s(_vm.selectedRows.length))]), _vm._v("\xA0\u6761 ")]) : _vm._e(), _c("div", { staticClass: "ind-flex ind-space-between", class: [_vm.multiple ? "ind-mt" : ""] }, [_vm.multiple ? _c("div", { staticClass: "ind-flex ind-flex-no-shrink ind-checkbox-bottom ag-theme-balham ag-theme-balham-dark", staticStyle: { "margin-right": "20px" }, style: { top: _vm.showHeader ? "7px" : "" }, on: { "click": _vm.toggleCheckAll } }, [_c("div", { staticClass: "ag-checkbox-input-wrapper", class: _vm.allCheck ? "ag-checked" : "" }), _vm._v(" \u5168\u9009 ")]) : _vm._e(), _c("div", { staticClass: "ind-flex", staticStyle: { "width": "100%" } }, [_c("IndButton", { attrs: { "bizType": "cancel" }, on: { "click": _vm.cancel } }, [_vm._v("\u53D6\u6D88")]), _c("IndButton", { attrs: { "bizType": "primary" }, on: { "click": _vm.confirm } }, [_vm._v("\u786E\u8BA4")])], 1)])])], 1)], 1)]);
62990
63017
  };
@@ -63520,7 +63547,7 @@ var render$6 = function() {
63520
63547
  var _vm = this;
63521
63548
  var _h = _vm.$createElement;
63522
63549
  var _c = _vm._self._c || _h;
63523
- return _c("div", { staticClass: "app-page" }, [_c("van-nav-bar", { attrs: { "fixed": true, "placeholder": true, "safe-area-inset-top": true, "title": "\u6211\u7684" } }), _c("van-cell-group", { attrs: { "title": "\u4E2A\u4EBA\u4FE1\u606F" } }, [_c("van-cell", { attrs: { "title": "\u7528\u6237\u540D", "value": _vm.user.userName } })], 1), _c("van-cell-group", { attrs: { "title": "\u5E94\u7528" } }, [_c("van-cell", { attrs: { "title": "\u540D\u79F0", "value": _vm.app.name } }), _c("van-cell", { attrs: { "title": "\u7F16\u7801", "value": _vm.app.appId } }), _c("van-cell", { attrs: { "title": "\u5E94\u7528\u7248\u672C", "value": JSON.parse(_vm.app.extendProps.extendProps).appVersion } }), _c("van-cell", { attrs: { "title": "\u914D\u7F6E\u7248\u672C", "value": JSON.parse(_vm.app.extendProps.extendProps).profileVersion } })], 1), _c("van-cell-group", { attrs: { "title": "\u901A\u7528" } }, [_c("van-cell", { directives: [{ name: "permission", rawName: "v-permission", value: ["12210071"], expression: "['12210071']" }], attrs: { "title": "v-permission=['12210071']", "value": _vm.app.version } }), _c("van-cell", { directives: [{ name: "permission", rawName: "v-permission", value: ["1221001111"], expression: "['1221001111']" }], attrs: { "title": "v-permission=['1221001111']", "value": _vm.app.version } }), _c("van-cell", { attrs: { "title": "\u8BBE\u7F6E", "is-link": "", "to": "/setting" } })], 1), _c("tabbar")], 1);
63550
+ return _c("div", { staticClass: "height100" }, [_c("van-sticky", [_c("van-nav-bar", { attrs: { "placeholder": true, "safe-area-inset-top": true, "title": "\u6211\u7684" } })], 1), _c("div", { staticClass: "app-page", staticStyle: { "padding-top": "0" } }, [_c("van-cell-group", { attrs: { "title": "\u4E2A\u4EBA\u4FE1\u606F" } }, [_c("van-cell", { attrs: { "title": "\u7528\u6237\u540D", "value": _vm.user.userName } })], 1), _c("van-cell-group", { attrs: { "title": "\u5E94\u7528" } }, [_c("van-cell", { attrs: { "title": "\u540D\u79F0", "value": _vm.app.name } }), _c("van-cell", { attrs: { "title": "\u7F16\u7801", "value": _vm.app.appId } }), _c("van-cell", { attrs: { "title": "\u5E94\u7528\u7248\u672C", "value": JSON.parse(_vm.app.extendProps.extendProps).appVersion } }), _c("van-cell", { attrs: { "title": "\u914D\u7F6E\u7248\u672C", "value": JSON.parse(_vm.app.extendProps.extendProps).profileVersion } })], 1), _c("van-cell-group", { attrs: { "title": "\u901A\u7528" } }, [_c("van-cell", { directives: [{ name: "permission", rawName: "v-permission", value: ["12210071"], expression: "['12210071']" }], attrs: { "title": "v-permission=['12210071']", "value": _vm.app.version } }), _c("van-cell", { directives: [{ name: "permission", rawName: "v-permission", value: ["1221001111"], expression: "['1221001111']" }], attrs: { "title": "v-permission=['1221001111']", "value": _vm.app.version } }), _c("van-cell", { attrs: { "title": "\u8BBE\u7F6E", "is-link": "", "to": "/setting" } })], 1), _c("tabbar")], 1)], 1);
63524
63551
  };
63525
63552
  var staticRenderFns$6 = [];
63526
63553
  const __vue2_script$6 = {
@@ -68152,17 +68179,17 @@ var render$3 = function() {
68152
68179
  var _vm = this;
68153
68180
  var _h = _vm.$createElement;
68154
68181
  var _c = _vm._self._c || _h;
68155
- return _c("div", { staticClass: "app-page" }, [_c("van-nav-bar", { attrs: { "fixed": true, "placeholder": true, "safe-area-inset-top": true, "title": _vm.title } }), _c("div", { staticClass: "placeholder", style: { height: _vm.offsetTop - 54 + "px" } }), _c("div", { ref: "myapp", staticClass: "myapp", style: { top: 46 + "px", width: "-webkit-fill-available" } }, [_c("div", { staticClass: "ind-panel" }, [_c("div", [_c("div", { staticClass: "ind-panel-title" }, [_vm._v(" \u6211\u7684\u5E94\u7528 "), _c("van-button", { staticClass: "edit-btn", attrs: { "size": "small", "type": "info", "text": this.editButtonName }, on: { "click": _vm.toggleEdit } })], 1)]), _c("draggable", { staticClass: "wrapper", attrs: { "options": { disabled: _vm.disableDraggable } }, model: { value: _vm.my_apps, callback: function($$v) {
68182
+ return _c("div", { staticClass: "height100" }, [_c("van-sticky", [_c("van-nav-bar", { attrs: { "placeholder": true, "safe-area-inset-top": true, "title": _vm.title } })], 1), _c("div", { staticClass: "app-page" }, [_c("van-sticky", { staticClass: "myapp-sticky", attrs: { "offset-top": 48 } }, [_c("div", { ref: "myapp", staticClass: "myapp", style: { width: "-webkit-fill-available" } }, [_c("div", { staticClass: "ind-panel" }, [_c("div", [_c("div", { staticClass: "ind-panel-title" }, [_vm._v(" \u6211\u7684\u5E94\u7528 "), _c("van-button", { staticClass: "edit-btn", attrs: { "size": "small", "type": "info", "text": this.editButtonName }, on: { "click": _vm.toggleEdit } })], 1)]), _c("draggable", { staticClass: "wrapper", attrs: { "options": { disabled: _vm.disableDraggable } }, model: { value: _vm.my_apps, callback: function($$v) {
68156
68183
  _vm.my_apps = $$v;
68157
68184
  }, expression: "my_apps" } }, [_c("transition-group", { staticClass: "my-app-list", staticStyle: { "display": "flex", "flex-wrap": "wrap" } }, _vm._l(_vm.my_apps, function(item2, idx) {
68158
68185
  return _c("apps-item", { key: idx, staticClass: "item", staticStyle: { "width": "25%", "padding": "16px 8px", "box-sizing": "border-box" }, attrs: { "item": item2, "state": item2.state, "editStatus": _vm.currentEditStatus == "on" ? "minus" : "off" }, on: { "touchend": _vm.rmFromMyAppsClick } });
68159
- }), 1)], 1)], 1)]), _c("van-tabs", { attrs: { "color": "#488aff", "scrollspy": "", "sticky": "", "offset-top": _vm.offsetTop }, model: { value: _vm.active, callback: function($$v) {
68186
+ }), 1)], 1)], 1)])]), _c("van-tabs", { attrs: { "color": "#488aff", "scrollspy": "", "sticky": "", "offset-top": _vm.offsetTop }, model: { value: _vm.active, callback: function($$v) {
68160
68187
  _vm.active = $$v;
68161
68188
  }, expression: "active" } }, _vm._l(_vm.apps_menus, function(tab, idx) {
68162
68189
  return _c("van-tab", { key: "tab" + idx, staticClass: "ind-panel", attrs: { "title": tab.meta.title } }, [_c("div", { staticClass: "ind-panel-title" }, [_vm._v(_vm._s(tab.meta.title))]), _c("van-grid", { attrs: { "border": false, "clickable": "", "gutter": 0, "column-num": 4 } }, _vm._l(tab.children, function(menu) {
68163
68190
  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);
68164
68191
  }), 1)], 1);
68165
- }), 1), _c("tabbar")], 1);
68192
+ }), 1), _c("tabbar")], 1)], 1);
68166
68193
  };
68167
68194
  var staticRenderFns$3 = [];
68168
68195
  const __vue2_script$3 = {
@@ -68207,7 +68234,7 @@ const __vue2_script$3 = {
68207
68234
  },
68208
68235
  my_apps() {
68209
68236
  setTimeout(() => {
68210
- this.offsetTop = this.$refs.myapp.clientHeight + 46;
68237
+ this.offsetTop = this.$refs.myapp.clientHeight + 48;
68211
68238
  }, 200);
68212
68239
  }
68213
68240
  },
@@ -68223,7 +68250,7 @@ const __vue2_script$3 = {
68223
68250
  this.processState(this.my_apps, temps);
68224
68251
  console.log(this.apps_menus);
68225
68252
  setTimeout(() => {
68226
- this.offsetTop = this.$refs.myapp.clientHeight + 46;
68253
+ this.offsetTop = this.$refs.myapp.clientHeight + 48;
68227
68254
  }, 100);
68228
68255
  },
68229
68256
  methods: {
@@ -68341,7 +68368,7 @@ var render$2 = function() {
68341
68368
  var _vm = this;
68342
68369
  var _h = _vm.$createElement;
68343
68370
  var _c = _vm._self._c || _h;
68344
- return _c("div", { staticClass: "app" }, [_c("van-nav-bar", { attrs: { "title": _vm.title, "right-text": "\u4FDD\u5B58", "left-arrow": "" }, on: { "click-left": _vm.back, "click-right": _vm.save } }), _c("div", { staticClass: "ind-panel" }, [_c("div", [_c("div", { staticClass: "ind-panel-title" }, [_vm._v(_vm._s(_vm.title))])]), _c("van-grid", { attrs: { "border": false } }, _vm._l(_vm.myAppList, function(menu) {
68371
+ return _c("div", { staticClass: "app" }, [_c("van-sticky", [_c("van-nav-bar", { attrs: { "title": _vm.title, "right-text": "\u4FDD\u5B58", "left-arrow": "" }, on: { "click-left": _vm.back, "click-right": _vm.save } })], 1), _c("div", { staticClass: "ind-panel" }, [_c("div", [_c("div", { staticClass: "ind-panel-title" }, [_vm._v(_vm._s(_vm.title))])]), _c("van-grid", { attrs: { "border": false } }, _vm._l(_vm.myAppList, function(menu) {
68345
68372
  return _c("van-grid-item", { key: menu.meta.permissionId, on: { "click": function($event) {
68346
68373
  return _vm.rmFromMyApps(menu);
68347
68374
  } } }, [_c("div", { staticStyle: { "height": "100%" } }, [_c("van-badge", { attrs: { "color": "#999" }, scopedSlots: _vm._u([{ key: "content", fn: function() {
@@ -68463,7 +68490,7 @@ var __component__$2 = /* @__PURE__ */ normalizeComponent(
68463
68490
  staticRenderFns$2,
68464
68491
  false,
68465
68492
  __vue2_injectStyles$2,
68466
- "048016ce",
68493
+ "1cee7da5",
68467
68494
  null,
68468
68495
  null
68469
68496
  );
@@ -68513,7 +68540,7 @@ var render82 = function() {
68513
68540
  var _vm = this;
68514
68541
  var _h = _vm.$createElement;
68515
68542
  var _c = _vm._self._c || _h;
68516
- return _c("div", { staticClass: "app-page" }, [_c("van-nav-bar", { attrs: { "fixed": true, "left-arrow": "", "placeholder": true, "safe-area-inset-top": true, "title": "\u8BBE\u7F6E" }, on: { "click-left": _vm.onClickLeft } }), _c("van-cell-group", { attrs: { "title": "\u8BBE\u7F6E" } }, [_c("van-cell", { attrs: { "title": "vconsole\u8C03\u8BD5" } }, [_c("van-switch", { model: { value: _vm.vconsoleChecked, callback: function($$v) {
68543
+ return _c("div", { staticClass: "app-page" }, [_c("van-sticky", [_c("van-nav-bar", { attrs: { "fixed": true, "left-arrow": "", "placeholder": true, "safe-area-inset-top": true, "title": "\u8BBE\u7F6E" }, on: { "click-left": _vm.onClickLeft } })], 1), _c("van-cell-group", { attrs: { "title": "\u8BBE\u7F6E" } }, [_c("van-cell", { attrs: { "title": "vconsole\u8C03\u8BD5" } }, [_c("van-switch", { model: { value: _vm.vconsoleChecked, callback: function($$v) {
68517
68544
  _vm.vconsoleChecked = $$v;
68518
68545
  }, expression: "vconsoleChecked" } })], 1), _c("van-cell", { attrs: { "title": "\u8FDC\u7A0B\u8C03\u8BD5" } }, [_c("van-switch", { model: { value: _vm.chiiChecked, callback: function($$v) {
68519
68546
  _vm.chiiChecked = $$v;
@@ -69080,7 +69107,9 @@ var user = {
69080
69107
  clearUserInfoCache();
69081
69108
  commit2("setToken", token);
69082
69109
  commit2("setTagNavList", []);
69083
- clearPermissionCache();
69110
+ if (window.top === window.self) {
69111
+ clearPermissionCache();
69112
+ }
69084
69113
  },
69085
69114
  async handleLogout({ state, commit: commit2 }) {
69086
69115
  await logoutApi(state.token);
@@ -69387,6 +69416,16 @@ const install = function(Vue2, opts = { theme: "" }) {
69387
69416
  Object.keys(directives).forEach((key) => {
69388
69417
  Vue2.directive(key, directives[key]);
69389
69418
  });
69419
+ window.addEventListener("resize", function() {
69420
+ var screenHeight = window.innerHeight;
69421
+ var viewportHeight = document.documentElement.clientHeight;
69422
+ var keyboardRatio = screenHeight / viewportHeight;
69423
+ if (keyboardRatio < 1) {
69424
+ console.log("\u952E\u76D8\u53EF\u80FD\u5C55\u5F00\u4E86");
69425
+ } else {
69426
+ console.log("\u952E\u76D8\u53EF\u80FD\u6536\u8D77\u4E86");
69427
+ }
69428
+ });
69390
69429
  };
69391
69430
  if (typeof window !== "undefined" && window.Vue) {
69392
69431
  install(window.Vue);