eoss-mobiles 0.2.37 → 0.2.39

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.
@@ -730,8 +730,8 @@ mainvue_type_template_id_3fb4f01a_render._withStripped = true
730
730
 
731
731
  // CONCATENATED MODULE: ./packages/selector/src/main.vue?vue&type=template&id=3fb4f01a&
732
732
 
733
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/selector-tree.vue?vue&type=template&id=e52199b2&
734
- var selector_treevue_type_template_id_e52199b2_render = function () {
733
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/selector-tree.vue?vue&type=template&id=a75e86e2&
734
+ var selector_treevue_type_template_id_a75e86e2_render = function () {
735
735
  var _vm = this
736
736
  var _h = _vm.$createElement
737
737
  var _c = _vm._self._c || _h
@@ -898,11 +898,11 @@ var selector_treevue_type_template_id_e52199b2_render = function () {
898
898
  1
899
899
  )
900
900
  }
901
- var selector_treevue_type_template_id_e52199b2_staticRenderFns = []
902
- selector_treevue_type_template_id_e52199b2_render._withStripped = true
901
+ var selector_treevue_type_template_id_a75e86e2_staticRenderFns = []
902
+ selector_treevue_type_template_id_a75e86e2_render._withStripped = true
903
903
 
904
904
 
905
- // CONCATENATED MODULE: ./packages/selector/src/selector-tree.vue?vue&type=template&id=e52199b2&
905
+ // CONCATENATED MODULE: ./packages/selector/src/selector-tree.vue?vue&type=template&id=a75e86e2&
906
906
 
907
907
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/tree.vue?vue&type=template&id=33f22d0d&
908
908
  var treevue_type_template_id_33f22d0d_render = function () {
@@ -3963,6 +3963,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3963
3963
  this.newParam.selecttype = this.newTabs[this.selectIndex].param.selecttype;
3964
3964
  if (this.newParam.selecttype === 'persongroup') {
3965
3965
  this.newParam.pid = 'root';
3966
+ this.newParam.myUserid = this.newParam.myUserid || util.getStorage('userId');
3966
3967
  } else {
3967
3968
  this.newParam.pid = this.param.pid || 'root';
3968
3969
  }
@@ -4269,8 +4270,8 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
4269
4270
 
4270
4271
  var selector_tree_component = normalizeComponent(
4271
4272
  src_selector_treevue_type_script_lang_js_,
4272
- selector_treevue_type_template_id_e52199b2_render,
4273
- selector_treevue_type_template_id_e52199b2_staticRenderFns,
4273
+ selector_treevue_type_template_id_a75e86e2_render,
4274
+ selector_treevue_type_template_id_a75e86e2_staticRenderFns,
4274
4275
  false,
4275
4276
  null,
4276
4277
  null,
@@ -6823,14 +6824,21 @@ uploader_src_main.install = function (Vue) {
6823
6824
  };
6824
6825
 
6825
6826
  /* harmony default export */ var uploader = (uploader_src_main);
6826
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/grid/src/main.vue?vue&type=template&id=74623ee7&
6827
- var mainvue_type_template_id_74623ee7_render = function () {
6827
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/grid/src/main.vue?vue&type=template&id=708186ee&
6828
+ var mainvue_type_template_id_708186ee_render = function () {
6828
6829
  var _vm = this
6829
6830
  var _h = _vm.$createElement
6830
6831
  var _c = _vm._self._c || _h
6831
6832
  return _c(
6832
6833
  "div",
6833
- { staticClass: "em-grid" },
6834
+ {
6835
+ staticClass: "em-grid",
6836
+ on: {
6837
+ click: function ($event) {
6838
+ _vm.showHide = false
6839
+ },
6840
+ },
6841
+ },
6834
6842
  [
6835
6843
  _c(
6836
6844
  "van-grid",
@@ -6844,7 +6852,7 @@ var mainvue_type_template_id_74623ee7_render = function () {
6844
6852
  _vm.$listeners
6845
6853
  ),
6846
6854
  [
6847
- _vm._l(_vm.$attrs.data, function (item, index) {
6855
+ _vm._l(_vm.newData, function (item, index) {
6848
6856
  return _c(
6849
6857
  "van-grid-item",
6850
6858
  _vm._b(
@@ -6853,8 +6861,8 @@ var mainvue_type_template_id_74623ee7_render = function () {
6853
6861
  {
6854
6862
  name: "show",
6855
6863
  rawName: "v-show",
6856
- value: _vm.$attrs.data && _vm.$attrs.data.length > 0,
6857
- expression: "$attrs.data && $attrs.data.length > 0",
6864
+ value: _vm.newData && _vm.newData.length > 0,
6865
+ expression: "newData && newData.length > 0",
6858
6866
  },
6859
6867
  ],
6860
6868
  key: index,
@@ -6862,6 +6870,7 @@ var mainvue_type_template_id_74623ee7_render = function () {
6862
6870
  style: "width:" + 100 / _vm.columnNum + "%;",
6863
6871
  on: {
6864
6872
  click: function ($event) {
6873
+ $event.stopPropagation()
6865
6874
  _vm.goView($event, item)
6866
6875
  },
6867
6876
  },
@@ -6869,22 +6878,193 @@ var mainvue_type_template_id_74623ee7_render = function () {
6869
6878
  "van-grid-item",
6870
6879
  item,
6871
6880
  false
6872
- )
6881
+ ),
6882
+ [
6883
+ _c(
6884
+ "i",
6885
+ {
6886
+ staticClass: "van-icon van-grid-item__icon",
6887
+ class:
6888
+ item.icon.startsWith("http") &&
6889
+ item.icon.indexOf("/") != -1
6890
+ ? ""
6891
+ : "van-icon-" + item.icon,
6892
+ style: { size: item.iconSize ? item.iconSize : "" },
6893
+ },
6894
+ [
6895
+ item.icon.startsWith("http") || item.icon.indexOf("/") != -1
6896
+ ? _c("img", {
6897
+ staticClass: "van-icon__image",
6898
+ style: {
6899
+ width: item.iconSize ? item.iconSize : "",
6900
+ height: item.iconSize ? item.iconSize : "",
6901
+ },
6902
+ attrs: { src: item.icon },
6903
+ })
6904
+ : _vm._e(),
6905
+ _c("div", {
6906
+ directives: [
6907
+ {
6908
+ name: "show",
6909
+ rawName: "v-show",
6910
+ value: item.dot,
6911
+ expression: "item.dot",
6912
+ },
6913
+ ],
6914
+ staticClass: "van-info van-info--dot",
6915
+ style: { background: item.dotColor || "" },
6916
+ }),
6917
+ _c(
6918
+ "div",
6919
+ {
6920
+ directives: [
6921
+ {
6922
+ name: "show",
6923
+ rawName: "v-show",
6924
+ value: item.badge,
6925
+ expression: "item.badge",
6926
+ },
6927
+ ],
6928
+ staticClass: "van-info",
6929
+ style: { background: _vm.badgeColor || "" },
6930
+ },
6931
+ [
6932
+ _vm._v(
6933
+ "\n " +
6934
+ _vm._s(
6935
+ _vm.maxBadge &&
6936
+ !isNaN(item.badge) &&
6937
+ Number(_vm.maxBadge) < Number(item.badge)
6938
+ ? _vm.maxBadge + "+"
6939
+ : item.badge
6940
+ ) +
6941
+ "\n "
6942
+ ),
6943
+ ]
6944
+ ),
6945
+ ]
6946
+ ),
6947
+ _c("span", { staticClass: "van-grid-item__text" }, [
6948
+ _vm._v(_vm._s(item.text)),
6949
+ ]),
6950
+ _vm.showHide && item.menuType != "add"
6951
+ ? _c("van-icon", {
6952
+ staticClass: "em-grid-del",
6953
+ attrs: { name: "clear", size: "20px" },
6954
+ on: {
6955
+ click: function ($event) {
6956
+ $event.stopPropagation()
6957
+ _vm.handleHide(item)
6958
+ },
6959
+ },
6960
+ })
6961
+ : _vm._e(),
6962
+ item.showMenu
6963
+ ? _c(
6964
+ "div",
6965
+ { staticClass: "em-grid-select-box" },
6966
+ [
6967
+ _c("van-icon", {
6968
+ attrs: {
6969
+ size: "30px",
6970
+ color: "#fff",
6971
+ name: "success",
6972
+ },
6973
+ }),
6974
+ ],
6975
+ 1
6976
+ )
6977
+ : _vm._e(),
6978
+ ],
6979
+ 1
6873
6980
  )
6874
6981
  }),
6875
6982
  _vm._t("default"),
6876
6983
  ],
6877
6984
  2
6878
6985
  ),
6986
+ _vm.show
6987
+ ? _c(
6988
+ "em-popup",
6989
+ {
6990
+ staticStyle: { width: "80%", height: "80%" },
6991
+ model: {
6992
+ value: _vm.show,
6993
+ callback: function ($$v) {
6994
+ _vm.show = $$v
6995
+ },
6996
+ expression: "show",
6997
+ },
6998
+ },
6999
+ [
7000
+ _c(
7001
+ "div",
7002
+ { staticClass: "em-grid-popup" },
7003
+ [
7004
+ _c("p", { staticClass: "em-grid-popup-label" }, [
7005
+ _vm._v("添加菜单"),
7006
+ ]),
7007
+ _c(
7008
+ "em-grid",
7009
+ _vm._b(
7010
+ {
7011
+ staticClass: "em-grid-popup-content",
7012
+ attrs: {
7013
+ data: _vm.hideMenuList,
7014
+ border: false,
7015
+ "column-num": _vm.$attrs.columnNum,
7016
+ },
7017
+ on: { click: _vm.selectMenu },
7018
+ },
7019
+ "em-grid",
7020
+ _vm.$attrs,
7021
+ false
7022
+ )
7023
+ ),
7024
+ _c(
7025
+ "div",
7026
+ { staticClass: "em-grid-popup-button" },
7027
+ [
7028
+ _c(
7029
+ "em-button",
7030
+ {
7031
+ staticStyle: { width: "49%" },
7032
+ attrs: { round: "" },
7033
+ on: {
7034
+ click: function ($event) {
7035
+ _vm.show = false
7036
+ },
7037
+ },
7038
+ },
7039
+ [_vm._v("取消")]
7040
+ ),
7041
+ _c(
7042
+ "em-button",
7043
+ {
7044
+ staticStyle: { width: "49%" },
7045
+ attrs: { round: "", type: "primary" },
7046
+ on: { click: _vm.handleShowMenu },
7047
+ },
7048
+ [_vm._v("确认")]
7049
+ ),
7050
+ ],
7051
+ 1
7052
+ ),
7053
+ ],
7054
+ 1
7055
+ ),
7056
+ ]
7057
+ )
7058
+ : _vm._e(),
6879
7059
  ],
6880
7060
  1
6881
7061
  )
6882
7062
  }
6883
- var mainvue_type_template_id_74623ee7_staticRenderFns = []
6884
- mainvue_type_template_id_74623ee7_render._withStripped = true
7063
+ var mainvue_type_template_id_708186ee_staticRenderFns = []
7064
+ mainvue_type_template_id_708186ee_render._withStripped = true
6885
7065
 
6886
7066
 
6887
- // CONCATENATED MODULE: ./packages/grid/src/main.vue?vue&type=template&id=74623ee7&
7067
+ // CONCATENATED MODULE: ./packages/grid/src/main.vue?vue&type=template&id=708186ee&
6888
7068
 
6889
7069
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/grid/src/main.vue?vue&type=script&lang=js&
6890
7070
  //
@@ -6904,11 +7084,91 @@ mainvue_type_template_id_74623ee7_render._withStripped = true
6904
7084
  //
6905
7085
  //
6906
7086
  //
7087
+ //
7088
+ //
7089
+ //
7090
+ //
7091
+ //
7092
+ //
7093
+ //
7094
+ //
7095
+ //
7096
+ //
7097
+ //
7098
+ //
7099
+ //
7100
+ //
7101
+ //
7102
+ //
7103
+ //
7104
+ //
7105
+ //
7106
+ //
7107
+ //
7108
+ //
7109
+ //
7110
+ //
7111
+ //
7112
+ //
7113
+ //
7114
+ //
7115
+ //
7116
+ //
7117
+ //
7118
+ //
7119
+ //
7120
+ //
7121
+ //
7122
+ //
7123
+ //
7124
+ //
7125
+ //
7126
+ //
7127
+ //
7128
+ //
7129
+ //
7130
+ //
7131
+ //
7132
+ //
7133
+ //
7134
+ //
7135
+ //
7136
+ //
7137
+ //
7138
+ //
7139
+ //
7140
+ //
7141
+ //
7142
+ //
7143
+ //
7144
+ //
7145
+ //
7146
+ //
7147
+ //
7148
+ //
7149
+ //
7150
+ //
7151
+ //
7152
+ //
7153
+ //
7154
+ //
7155
+ //
7156
+ //
7157
+ //
7158
+ //
7159
+ //
7160
+ //
6907
7161
 
6908
7162
  /* harmony default export */ var grid_src_mainvue_type_script_lang_js_ = ({
6909
7163
  name: 'EmGrid',
6910
7164
  inheritAttrs: false,
6911
7165
  props: {
7166
+ data: {
7167
+ type: Array,
7168
+ default: function _default() {
7169
+ return [];
7170
+ }
7171
+ },
6912
7172
  columnNum: {
6913
7173
  type: [Number, String],
6914
7174
  default: 4
@@ -6920,12 +7180,187 @@ mainvue_type_template_id_74623ee7_render._withStripped = true
6920
7180
  targetStop: {
6921
7181
  type: Boolean,
6922
7182
  default: true
7183
+ },
7184
+ badgeColor: {
7185
+ type: String,
7186
+ default: ''
7187
+ },
7188
+ maxBadge: {
7189
+ type: String,
7190
+ default: ''
7191
+ },
7192
+ isHideMenu: {
7193
+ type: Boolean,
7194
+ default: false
7195
+ },
7196
+ hideMenuKey: {
7197
+ type: String,
7198
+ default: 'id'
7199
+ },
7200
+ hideMenu: {
7201
+ type: [String, Array],
7202
+ default: function _default() {
7203
+ return [];
7204
+ }
7205
+ },
7206
+ addMenuIcon: {
7207
+ type: String,
7208
+ default: 'plus'
7209
+ },
7210
+ addMenuIconSize: {
7211
+ type: String,
7212
+ default: ''
7213
+ }
7214
+ },
7215
+ data: function data() {
7216
+ return {
7217
+ lastTapTime: 0,
7218
+ timer: null,
7219
+ showHide: false,
7220
+ newData: [],
7221
+ show: false,
7222
+ selectMenuArr: [],
7223
+ hideMenuList: []
7224
+ };
7225
+ },
7226
+
7227
+ watch: {
7228
+ hideMenu: {
7229
+ handler: function handler(val) {
7230
+ this.defaultHide(val);
7231
+ },
7232
+
7233
+ deep: true,
7234
+ immediate: true
7235
+ },
7236
+ data: {
7237
+ handler: function handler(val) {
7238
+ this.newData = JSON.parse(JSON.stringify(val));
7239
+ this.defaultHide(this.hideMenu);
7240
+ },
7241
+
7242
+ deep: true,
7243
+ immediate: true
6923
7244
  }
6924
7245
  },
6925
7246
  methods: {
7247
+ hideDelIcon: function hideDelIcon() {
7248
+ this.showHide = false;
7249
+ },
7250
+ handleShowMenu: function handleShowMenu() {
7251
+ var _this = this;
7252
+
7253
+ var str = this.selectMenuArr.join(',');
7254
+ if (Array.isArray(this.hideMenu)) {
7255
+ var hideArr = this.hideMenuList.filter(function (x) {
7256
+ return str.indexOf(x[_this.hideMenuKey]) == -1;
7257
+ });
7258
+ this.$emit('hide', hideArr);
7259
+ } else {
7260
+ var hide = this.hideMenuList.filter(function (x) {
7261
+ return str.indexOf(x[_this.hideMenuKey]) == -1;
7262
+ });
7263
+ hide = hide.map(function (x) {
7264
+ return x[_this.hideMenuKey];
7265
+ });
7266
+ this.$emit('hide', hide.join(','));
7267
+ }
7268
+ this.selectMenuArr = [];
7269
+ this.show = false;
7270
+ },
7271
+ selectMenu: function selectMenu(val) {
7272
+ var _this2 = this;
7273
+
7274
+ if (val.showMenu) {
7275
+ this.selectMenuArr = this.selectMenuArr.filter(function (x) {
7276
+ return x != val[_this2.hideMenuKey];
7277
+ });
7278
+ } else {
7279
+ this.selectMenuArr.push(val[this.hideMenuKey]);
7280
+ }
7281
+ this.$set(val, 'showMenu', !val.showMenu);
7282
+ },
7283
+ defaultHide: function defaultHide(val) {
7284
+ var _this3 = this;
7285
+
7286
+ if (this.isHideMenu && val != undefined) {
7287
+ if (Array.isArray(val)) {
7288
+ var menuKey = val.map(function (x) {
7289
+ return x.id;
7290
+ }).join(',');
7291
+ this.newData = this.data.filter(function (x) {
7292
+ return menuKey.indexOf(x[_this3.hideMenuKey]) == -1;
7293
+ });
7294
+ this.hideMenuList = this.data.filter(function (x) {
7295
+ return menuKey.indexOf(x[_this3.hideMenuKey]) != -1;
7296
+ });
7297
+ } else {
7298
+ val = val + '';
7299
+ this.newData = this.data.filter(function (x) {
7300
+ return val.indexOf(x[_this3.hideMenuKey]) == -1;
7301
+ });
7302
+ this.hideMenuList = this.data.filter(function (x) {
7303
+ return val.indexOf(x[_this3.hideMenuKey]) != -1;
7304
+ });
7305
+ }
7306
+ }
7307
+ if (this.isHideMenu != undefined && (this.newData.length > 0 && this.newData[this.newData.length - 1].menuType === 'add' ? this.newData.length - 1 < this.data.length : this.newData.length < this.data.length)) {
7308
+ this.newData.push({
7309
+ icon: this.addMenuIcon || 'plus',
7310
+ iconSize: this.addMenuIconSize,
7311
+ menuType: 'add'
7312
+ });
7313
+ }
7314
+ },
7315
+ handleHide: function handleHide(item) {
7316
+ var _this4 = this;
7317
+
7318
+ this.$dialog.confirm({
7319
+ message: '\u786E\u5B9A\u8981\u9690\u85CF<span style="color:red;font-weight:bold;margin:0px 5px">' + item.text + '</span>\u83DC\u5355\u5417\uFF1F'
7320
+ }).then(function () {
7321
+ if (Array.isArray(_this4.hideMenu)) {
7322
+ var hideArr = [].concat(_this4.hideMenu, [item]);
7323
+ _this4.$emit('hide', hideArr);
7324
+ } else {
7325
+ var hideStr = _this4.hideMenu ? _this4.hideMenu + ',' + item[_this4.hideMenuKey] : item[_this4.hideMenuKey];
7326
+ _this4.$emit('hide', hideStr);
7327
+ }
7328
+ });
7329
+ },
6926
7330
  goView: function goView(event, val) {
6927
- this.$emit('click', val);
6928
- this.targetStop && event.stopPropagation();
7331
+ var _this5 = this;
7332
+
7333
+ if (val.menuType === 'add') {
7334
+ this.show = true;
7335
+ return;
7336
+ }
7337
+ var currentTime = new Date().getTime();
7338
+ var tapLength = currentTime - this.lastTapTime;
7339
+ this.lastTapTime = currentTime;
7340
+ if (this.isHideMenu) {
7341
+ if (tapLength < 500) {
7342
+ this.handleDoubleClick(val);
7343
+ clearTimeout(this.timer);
7344
+ return;
7345
+ }
7346
+ if (this.showHide) {
7347
+ this.showHide = false;
7348
+ return;
7349
+ }
7350
+ this.timer = setTimeout(function () {
7351
+ _this5.$emit('click', val, event);
7352
+ _this5.targetStop && event.stopPropagation();
7353
+ }, 500);
7354
+ } else {
7355
+ this.$emit('click', val, event);
7356
+ this.targetStop && event.stopPropagation();
7357
+ }
7358
+ },
7359
+ handleDoubleClick: function handleDoubleClick(val) {
7360
+ if (this.isHideMenu) {
7361
+ this.showHide = true;
7362
+ }
7363
+ this.$emit('dbclick', val);
6929
7364
  }
6930
7365
  }
6931
7366
  });
@@ -6941,8 +7376,8 @@ mainvue_type_template_id_74623ee7_render._withStripped = true
6941
7376
 
6942
7377
  var grid_src_main_component = normalizeComponent(
6943
7378
  packages_grid_src_mainvue_type_script_lang_js_,
6944
- mainvue_type_template_id_74623ee7_render,
6945
- mainvue_type_template_id_74623ee7_staticRenderFns,
7379
+ mainvue_type_template_id_708186ee_render,
7380
+ mainvue_type_template_id_708186ee_staticRenderFns,
6946
7381
  false,
6947
7382
  null,
6948
7383
  null,
@@ -21815,7 +22250,7 @@ if (typeof window !== 'undefined' && window.Vue) {
21815
22250
  }
21816
22251
 
21817
22252
  /* harmony default export */ var src = __webpack_exports__["default"] = ({
21818
- version: '0.2.37',
22253
+ version: '0.2.39',
21819
22254
  install: install,
21820
22255
  Button: packages_button,
21821
22256
  ButtonGroup: button_group,