eoss-mobiles 0.2.38 → 0.2.40
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/lib/eoss-mobile.common.js +449 -15
- package/lib/grid.js +443 -9
- package/lib/index.js +1 -1
- package/lib/theme-chalk/grid.css +1 -0
- package/lib/theme-chalk/index.css +1 -1
- package/package.json +1 -1
- package/packages/grid/src/main.vue +252 -8
- package/packages/theme-chalk/lib/grid.css +1 -0
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/src/grid.scss +44 -0
- package/src/index.js +1 -1
|
@@ -6824,14 +6824,21 @@ uploader_src_main.install = function (Vue) {
|
|
|
6824
6824
|
};
|
|
6825
6825
|
|
|
6826
6826
|
/* harmony default export */ var uploader = (uploader_src_main);
|
|
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=
|
|
6828
|
-
var
|
|
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=683d1686&
|
|
6828
|
+
var mainvue_type_template_id_683d1686_render = function () {
|
|
6829
6829
|
var _vm = this
|
|
6830
6830
|
var _h = _vm.$createElement
|
|
6831
6831
|
var _c = _vm._self._c || _h
|
|
6832
6832
|
return _c(
|
|
6833
6833
|
"div",
|
|
6834
|
-
{
|
|
6834
|
+
{
|
|
6835
|
+
staticClass: "em-grid",
|
|
6836
|
+
on: {
|
|
6837
|
+
click: function ($event) {
|
|
6838
|
+
_vm.showHide = false
|
|
6839
|
+
},
|
|
6840
|
+
},
|
|
6841
|
+
},
|
|
6835
6842
|
[
|
|
6836
6843
|
_c(
|
|
6837
6844
|
"van-grid",
|
|
@@ -6845,7 +6852,7 @@ var mainvue_type_template_id_74623ee7_render = function () {
|
|
|
6845
6852
|
_vm.$listeners
|
|
6846
6853
|
),
|
|
6847
6854
|
[
|
|
6848
|
-
_vm._l(_vm
|
|
6855
|
+
_vm._l(_vm.newData, function (item, index) {
|
|
6849
6856
|
return _c(
|
|
6850
6857
|
"van-grid-item",
|
|
6851
6858
|
_vm._b(
|
|
@@ -6854,8 +6861,8 @@ var mainvue_type_template_id_74623ee7_render = function () {
|
|
|
6854
6861
|
{
|
|
6855
6862
|
name: "show",
|
|
6856
6863
|
rawName: "v-show",
|
|
6857
|
-
value: _vm
|
|
6858
|
-
expression: "
|
|
6864
|
+
value: _vm.newData && _vm.newData.length > 0,
|
|
6865
|
+
expression: "newData && newData.length > 0",
|
|
6859
6866
|
},
|
|
6860
6867
|
],
|
|
6861
6868
|
key: index,
|
|
@@ -6863,6 +6870,7 @@ var mainvue_type_template_id_74623ee7_render = function () {
|
|
|
6863
6870
|
style: "width:" + 100 / _vm.columnNum + "%;",
|
|
6864
6871
|
on: {
|
|
6865
6872
|
click: function ($event) {
|
|
6873
|
+
$event.stopPropagation()
|
|
6866
6874
|
_vm.goView($event, item)
|
|
6867
6875
|
},
|
|
6868
6876
|
},
|
|
@@ -6870,22 +6878,193 @@ var mainvue_type_template_id_74623ee7_render = function () {
|
|
|
6870
6878
|
"van-grid-item",
|
|
6871
6879
|
item,
|
|
6872
6880
|
false
|
|
6873
|
-
)
|
|
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
|
|
6874
6980
|
)
|
|
6875
6981
|
}),
|
|
6876
6982
|
_vm._t("default"),
|
|
6877
6983
|
],
|
|
6878
6984
|
2
|
|
6879
6985
|
),
|
|
6986
|
+
_vm.show
|
|
6987
|
+
? _c(
|
|
6988
|
+
"em-popup",
|
|
6989
|
+
{
|
|
6990
|
+
staticStyle: { width: "80%", height: "50%" },
|
|
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(),
|
|
6880
7059
|
],
|
|
6881
7060
|
1
|
|
6882
7061
|
)
|
|
6883
7062
|
}
|
|
6884
|
-
var
|
|
6885
|
-
|
|
7063
|
+
var mainvue_type_template_id_683d1686_staticRenderFns = []
|
|
7064
|
+
mainvue_type_template_id_683d1686_render._withStripped = true
|
|
6886
7065
|
|
|
6887
7066
|
|
|
6888
|
-
// CONCATENATED MODULE: ./packages/grid/src/main.vue?vue&type=template&id=
|
|
7067
|
+
// CONCATENATED MODULE: ./packages/grid/src/main.vue?vue&type=template&id=683d1686&
|
|
6889
7068
|
|
|
6890
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&
|
|
6891
7070
|
//
|
|
@@ -6905,11 +7084,91 @@ mainvue_type_template_id_74623ee7_render._withStripped = true
|
|
|
6905
7084
|
//
|
|
6906
7085
|
//
|
|
6907
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
|
+
//
|
|
6908
7161
|
|
|
6909
7162
|
/* harmony default export */ var grid_src_mainvue_type_script_lang_js_ = ({
|
|
6910
7163
|
name: 'EmGrid',
|
|
6911
7164
|
inheritAttrs: false,
|
|
6912
7165
|
props: {
|
|
7166
|
+
data: {
|
|
7167
|
+
type: Array,
|
|
7168
|
+
default: function _default() {
|
|
7169
|
+
return [];
|
|
7170
|
+
}
|
|
7171
|
+
},
|
|
6913
7172
|
columnNum: {
|
|
6914
7173
|
type: [Number, String],
|
|
6915
7174
|
default: 4
|
|
@@ -6921,12 +7180,187 @@ mainvue_type_template_id_74623ee7_render._withStripped = true
|
|
|
6921
7180
|
targetStop: {
|
|
6922
7181
|
type: Boolean,
|
|
6923
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
|
|
6924
7244
|
}
|
|
6925
7245
|
},
|
|
6926
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
|
+
},
|
|
6927
7330
|
goView: function goView(event, val) {
|
|
6928
|
-
this
|
|
6929
|
-
|
|
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);
|
|
6930
7364
|
}
|
|
6931
7365
|
}
|
|
6932
7366
|
});
|
|
@@ -6942,8 +7376,8 @@ mainvue_type_template_id_74623ee7_render._withStripped = true
|
|
|
6942
7376
|
|
|
6943
7377
|
var grid_src_main_component = normalizeComponent(
|
|
6944
7378
|
packages_grid_src_mainvue_type_script_lang_js_,
|
|
6945
|
-
|
|
6946
|
-
|
|
7379
|
+
mainvue_type_template_id_683d1686_render,
|
|
7380
|
+
mainvue_type_template_id_683d1686_staticRenderFns,
|
|
6947
7381
|
false,
|
|
6948
7382
|
null,
|
|
6949
7383
|
null,
|
|
@@ -21816,7 +22250,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
21816
22250
|
}
|
|
21817
22251
|
|
|
21818
22252
|
/* harmony default export */ var src = __webpack_exports__["default"] = ({
|
|
21819
|
-
version: '0.2.
|
|
22253
|
+
version: '0.2.40',
|
|
21820
22254
|
install: install,
|
|
21821
22255
|
Button: packages_button,
|
|
21822
22256
|
ButtonGroup: button_group,
|