ai.touchui-vue 1.33.2 → 1.33.3
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/ai.touchui-vue.common.js +13 -7
- package/lib/index.js +1 -1
- package/lib/tab.js +8 -2
- package/package.json +2 -1
- package/packages/tab/src/tab.vue +4 -1
package/lib/tab.js
CHANGED
|
@@ -199,7 +199,7 @@ function normalizeComponent(
|
|
|
199
199
|
// ESM COMPAT FLAG
|
|
200
200
|
__webpack_require__.r(__webpack_exports__);
|
|
201
201
|
|
|
202
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/tab/src/tab.vue?vue&type=template&id=
|
|
202
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/tab/src/tab.vue?vue&type=template&id=46748484
|
|
203
203
|
var render = function () {
|
|
204
204
|
var _vm = this
|
|
205
205
|
var _h = _vm.$createElement
|
|
@@ -259,6 +259,9 @@ var render = function () {
|
|
|
259
259
|
mouseover: function ($event) {
|
|
260
260
|
return _vm.changeTab(item, index, "mouseover")
|
|
261
261
|
},
|
|
262
|
+
contextmenu: function (e) {
|
|
263
|
+
return _vm.contextmenuHandle(e, item, index)
|
|
264
|
+
},
|
|
262
265
|
},
|
|
263
266
|
},
|
|
264
267
|
[
|
|
@@ -584,7 +587,7 @@ var staticRenderFns = []
|
|
|
584
587
|
render._withStripped = true
|
|
585
588
|
|
|
586
589
|
|
|
587
|
-
// CONCATENATED MODULE: ./packages/tab/src/tab.vue?vue&type=template&id=
|
|
590
|
+
// CONCATENATED MODULE: ./packages/tab/src/tab.vue?vue&type=template&id=46748484
|
|
588
591
|
|
|
589
592
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/tab/src/tab.vue?vue&type=script&lang=js
|
|
590
593
|
//
|
|
@@ -1222,6 +1225,9 @@ render._withStripped = true
|
|
|
1222
1225
|
this.showPage = false;
|
|
1223
1226
|
this.$emit('change', '');
|
|
1224
1227
|
}
|
|
1228
|
+
},
|
|
1229
|
+
contextmenuHandle: function contextmenuHandle(event, item, index) {
|
|
1230
|
+
this.$emit('tab-contextmenu', event, item, index);
|
|
1225
1231
|
}
|
|
1226
1232
|
}
|
|
1227
1233
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ai.touchui-vue",
|
|
3
|
-
"version": "1.33.
|
|
3
|
+
"version": "1.33.3",
|
|
4
4
|
"description": "TouchUI Component Library for Vue.js.",
|
|
5
5
|
"main": "lib/ai.touchui-vue.common.js",
|
|
6
6
|
"files": [
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
"@typescript-eslint/eslint-plugin": "5.8.0",
|
|
61
61
|
"@vue/component-compiler-utils": "2.6.0",
|
|
62
62
|
"ai.touchui-chat": "^1.9.0",
|
|
63
|
+
"ai.touchui-desk": "0.0.43",
|
|
63
64
|
"ai.touchui-plugin": "^1.0.60",
|
|
64
65
|
"algoliasearch": "3.35.1",
|
|
65
66
|
"archiver": "5.3.1",
|
package/packages/tab/src/tab.vue
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<li v-if="$slots.center && Math.floor(itabs.length / 2) === index" :key="index" class="center">
|
|
11
11
|
<slot name="center"></slot>
|
|
12
12
|
</li>
|
|
13
|
-
<li v-else :key="index" :style="setTabStyle(item)" :class="{ on: item.value === iValue, deletable, disabled: item.disabled}" @click="changeTab(item, index, 'click')" @mouseover="changeTab(item, index, 'mouseover')">
|
|
13
|
+
<li v-else :key="index" :style="setTabStyle(item)" :class="{ on: item.value === iValue, deletable, disabled: item.disabled}" @click="changeTab(item, index, 'click')" @mouseover="changeTab(item, index, 'mouseover')" @contextmenu="e => contextmenuHandle(e, item, index)">
|
|
14
14
|
<div class="content">
|
|
15
15
|
<slot name="item" :item="item">
|
|
16
16
|
<div v-if="item.pic" class="pic">
|
|
@@ -588,6 +588,9 @@ export default {
|
|
|
588
588
|
this.showPage = false
|
|
589
589
|
this.$emit('change', '');
|
|
590
590
|
}
|
|
591
|
+
},
|
|
592
|
+
contextmenuHandle(event, item, index) {
|
|
593
|
+
this.$emit('tab-contextmenu', event, item, index)
|
|
591
594
|
}
|
|
592
595
|
}
|
|
593
596
|
};
|