ai.touchui-vue 1.31.1 → 1.31.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 +127 -108
- package/lib/date-picker.js +7 -7
- package/lib/dialog.js +4 -2
- package/lib/form.js +8 -8
- package/lib/header.js +4 -9
- package/lib/index.js +1 -1
- package/lib/tab.js +11 -2
- package/lib/table.js +57 -45
- package/lib/theme/css/theme/B-Design.css +1 -1
- package/lib/theme/css/theme/aiplan.css +1 -1
- package/lib/theme/css/theme/aiplangd.css +1 -1
- package/lib/theme/css/theme/chbn.css +1 -1
- package/lib/theme/css/theme/default.css +1 -1
- package/lib/theme/css/theme/dt.css +1 -1
- package/lib/theme/css/theme/ecloud.css +1 -1
- package/lib/theme/css/theme/hongkong.css +1 -1
- package/lib/theme/css/theme/narrow.css +1 -1
- package/lib/theme/css/theme/sdpf.css +1 -1
- package/lib/theme/css/theme/upc.css +1 -1
- package/lib/theme/css/theme/website.css +1 -1
- package/lib/theme/css/theme/zj.css +1 -1
- package/lib/tree.js +10 -9
- package/package.json +2 -2
- package/packages/date-picker/src/date-picker.vue +1 -1
- package/packages/dialog/src/dialog.vue +2 -0
- package/packages/form/src/form-item.vue +1 -1
- package/packages/header/src/header.vue +2 -3
- package/packages/tab/src/tab.vue +9 -0
- package/packages/table/src/table-head.vue +8 -5
- package/packages/table/src/table.vue +26 -23
- package/packages/theme/lib/css/theme/B-Design.css +1 -1
- package/packages/theme/lib/css/theme/aiplan.css +1 -1
- package/packages/theme/lib/css/theme/aiplangd.css +1 -1
- package/packages/theme/lib/css/theme/chbn.css +1 -1
- package/packages/theme/lib/css/theme/default.css +1 -1
- package/packages/theme/lib/css/theme/dt.css +1 -1
- package/packages/theme/lib/css/theme/ecloud.css +1 -1
- package/packages/theme/lib/css/theme/hongkong.css +1 -1
- package/packages/theme/lib/css/theme/narrow.css +1 -1
- package/packages/theme/lib/css/theme/sdpf.css +1 -1
- package/packages/theme/lib/css/theme/upc.css +1 -1
- package/packages/theme/lib/css/theme/website.css +1 -1
- package/packages/theme/lib/css/theme/zj.css +1 -1
- package/packages/theme/src/less/component/dialog.less +1 -1
- package/packages/theme/src/less/component/tab.less +3 -0
- package/packages/theme/src/less/component/table.less +12 -2
- package/packages/tree/src/treeItem.vue +1 -1
- package/src/index.js +1 -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=043fc0f4
|
|
203
203
|
var render = function () {
|
|
204
204
|
var _vm = this
|
|
205
205
|
var _h = _vm.$createElement
|
|
@@ -577,7 +577,7 @@ var staticRenderFns = []
|
|
|
577
577
|
render._withStripped = true
|
|
578
578
|
|
|
579
579
|
|
|
580
|
-
// CONCATENATED MODULE: ./packages/tab/src/tab.vue?vue&type=template&id=
|
|
580
|
+
// CONCATENATED MODULE: ./packages/tab/src/tab.vue?vue&type=template&id=043fc0f4
|
|
581
581
|
|
|
582
582
|
// 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
|
|
583
583
|
//
|
|
@@ -716,6 +716,12 @@ render._withStripped = true
|
|
|
716
716
|
beforeChange: {
|
|
717
717
|
type: Function,
|
|
718
718
|
default: null
|
|
719
|
+
},
|
|
720
|
+
// top:顶部
|
|
721
|
+
// left:左侧
|
|
722
|
+
iconPosition: {
|
|
723
|
+
type: String,
|
|
724
|
+
default: 'top'
|
|
719
725
|
}
|
|
720
726
|
},
|
|
721
727
|
data: function data() {
|
|
@@ -784,6 +790,9 @@ render._withStripped = true
|
|
|
784
790
|
if (this.tabOver === 'avg' && this.overSize) {
|
|
785
791
|
arr.push('to-tab-over-avg');
|
|
786
792
|
}
|
|
793
|
+
if (this.iconPosition === 'left') {
|
|
794
|
+
arr.push('to-tab-icon-position-left');
|
|
795
|
+
}
|
|
787
796
|
return arr;
|
|
788
797
|
},
|
|
789
798
|
setStyle: function setStyle() {
|
package/lib/table.js
CHANGED
|
@@ -245,7 +245,7 @@ module.exports = require("ai.touchui-vue/lib/locale");
|
|
|
245
245
|
// ESM COMPAT FLAG
|
|
246
246
|
__webpack_require__.r(__webpack_exports__);
|
|
247
247
|
|
|
248
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/table/src/table.vue?vue&type=template&id=
|
|
248
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/table/src/table.vue?vue&type=template&id=f49d5814
|
|
249
249
|
var render = function () {
|
|
250
250
|
var _vm = this
|
|
251
251
|
var _h = _vm.$createElement
|
|
@@ -1064,7 +1064,7 @@ var staticRenderFns = []
|
|
|
1064
1064
|
render._withStripped = true
|
|
1065
1065
|
|
|
1066
1066
|
|
|
1067
|
-
// CONCATENATED MODULE: ./packages/table/src/table.vue?vue&type=template&id=
|
|
1067
|
+
// CONCATENATED MODULE: ./packages/table/src/table.vue?vue&type=template&id=f49d5814
|
|
1068
1068
|
|
|
1069
1069
|
// EXTERNAL MODULE: external "vue"
|
|
1070
1070
|
var external_vue_ = __webpack_require__(4);
|
|
@@ -1366,8 +1366,8 @@ function queryVm(dom, targetName) {
|
|
|
1366
1366
|
// 如果未找到,递归向上查找父 DOM 节点
|
|
1367
1367
|
return queryVm(dom.parentElement, targetName);
|
|
1368
1368
|
}
|
|
1369
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/table/src/table-head.vue?vue&type=template&id=
|
|
1370
|
-
var
|
|
1369
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/table/src/table-head.vue?vue&type=template&id=27e51324
|
|
1370
|
+
var table_headvue_type_template_id_27e51324_render = function () {
|
|
1371
1371
|
var _vm = this
|
|
1372
1372
|
var _h = _vm.$createElement
|
|
1373
1373
|
var _c = _vm._self._c || _h
|
|
@@ -1475,7 +1475,7 @@ var table_headvue_type_template_id_05f130cc_render = function () {
|
|
|
1475
1475
|
_vm._v(
|
|
1476
1476
|
_vm._s(
|
|
1477
1477
|
_vm.ToTable.indexColumnName || item.label
|
|
1478
|
-
)
|
|
1478
|
+
) + "111"
|
|
1479
1479
|
),
|
|
1480
1480
|
]),
|
|
1481
1481
|
],
|
|
@@ -1527,18 +1527,22 @@ var table_headvue_type_template_id_05f130cc_render = function () {
|
|
|
1527
1527
|
},
|
|
1528
1528
|
[
|
|
1529
1529
|
item.sortable === true
|
|
1530
|
-
?
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1530
|
+
? _c(
|
|
1531
|
+
"span",
|
|
1532
|
+
{
|
|
1533
|
+
staticClass: "to-table-sorticon",
|
|
1534
|
+
class: "type-" + item.orderType,
|
|
1535
|
+
},
|
|
1536
|
+
[
|
|
1537
|
+
_c("to-icon", {
|
|
1538
|
+
attrs: { value: "fold", type: "fill" },
|
|
1539
|
+
}),
|
|
1540
|
+
_c("to-icon", {
|
|
1541
|
+
attrs: { value: "unfold", type: "fill" },
|
|
1542
|
+
}),
|
|
1543
|
+
],
|
|
1544
|
+
1
|
|
1545
|
+
)
|
|
1542
1546
|
: _vm._e(),
|
|
1543
1547
|
_vm._t(
|
|
1544
1548
|
item.prop + "_th",
|
|
@@ -1560,11 +1564,11 @@ var table_headvue_type_template_id_05f130cc_render = function () {
|
|
|
1560
1564
|
0
|
|
1561
1565
|
)
|
|
1562
1566
|
}
|
|
1563
|
-
var
|
|
1564
|
-
|
|
1567
|
+
var table_headvue_type_template_id_27e51324_staticRenderFns = []
|
|
1568
|
+
table_headvue_type_template_id_27e51324_render._withStripped = true
|
|
1565
1569
|
|
|
1566
1570
|
|
|
1567
|
-
// CONCATENATED MODULE: ./packages/table/src/table-head.vue?vue&type=template&id=
|
|
1571
|
+
// CONCATENATED MODULE: ./packages/table/src/table-head.vue?vue&type=template&id=27e51324
|
|
1568
1572
|
|
|
1569
1573
|
// EXTERNAL MODULE: external "ai.touchui-vue/lib/mixins/locale"
|
|
1570
1574
|
var locale_ = __webpack_require__(2);
|
|
@@ -1878,6 +1882,9 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
1878
1882
|
//
|
|
1879
1883
|
//
|
|
1880
1884
|
//
|
|
1885
|
+
//
|
|
1886
|
+
//
|
|
1887
|
+
//
|
|
1881
1888
|
|
|
1882
1889
|
|
|
1883
1890
|
|
|
@@ -2069,8 +2076,8 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
2069
2076
|
|
|
2070
2077
|
var table_head_component = Object(componentNormalizer["a" /* default */])(
|
|
2071
2078
|
src_table_headvue_type_script_lang_js,
|
|
2072
|
-
|
|
2073
|
-
|
|
2079
|
+
table_headvue_type_template_id_27e51324_render,
|
|
2080
|
+
table_headvue_type_template_id_27e51324_staticRenderFns,
|
|
2074
2081
|
false,
|
|
2075
2082
|
null,
|
|
2076
2083
|
null,
|
|
@@ -3884,14 +3891,16 @@ function db(fn) {
|
|
|
3884
3891
|
|
|
3885
3892
|
methods: {
|
|
3886
3893
|
init: function init() {
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3894
|
+
if (this.$refs && this.$refs.tbody) {
|
|
3895
|
+
// 监听 slot 中的 DOM 变化
|
|
3896
|
+
var tbody = this.$refs.tbody.$el || this.$refs.tbody;
|
|
3897
|
+
var observer = new MutationObserver(this.adjust);
|
|
3898
|
+
observer.observe(tbody, {
|
|
3899
|
+
childList: true,
|
|
3900
|
+
subtree: true
|
|
3901
|
+
});
|
|
3902
|
+
this.observer = observer;
|
|
3903
|
+
}
|
|
3895
3904
|
window.addEventListener('resize', this.dbSetFix);
|
|
3896
3905
|
window.addEventListener('touchend', this.restoreClick);
|
|
3897
3906
|
},
|
|
@@ -4525,24 +4534,27 @@ function db(fn) {
|
|
|
4525
4534
|
}
|
|
4526
4535
|
},
|
|
4527
4536
|
handleSortClick: function handleSortClick(item, index) {
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
if (
|
|
4542
|
-
|
|
4537
|
+
var _this17 = this;
|
|
4538
|
+
|
|
4539
|
+
var orderType = item.orderType;
|
|
4540
|
+
this.columns.map(function (column, columnIndex) {
|
|
4541
|
+
if (columnIndex === index) {
|
|
4542
|
+
if (!orderType) {
|
|
4543
|
+
_this17.$set(column, 'orderType', 'asc');
|
|
4544
|
+
} else if (orderType === 'asc') {
|
|
4545
|
+
_this17.$set(column, 'orderType', 'desc');
|
|
4546
|
+
} else if (orderType === 'desc') {
|
|
4547
|
+
_this17.$set(column, 'orderType', '');
|
|
4548
|
+
}
|
|
4549
|
+
} else {
|
|
4550
|
+
if (column.sortable) {
|
|
4551
|
+
_this17.$set(column, 'orderType', '');
|
|
4543
4552
|
}
|
|
4544
4553
|
}
|
|
4545
4554
|
});
|
|
4555
|
+
if (this.initData.length === 0) {
|
|
4556
|
+
this.initData = JSON.parse(JSON.stringify(this.data));
|
|
4557
|
+
}
|
|
4546
4558
|
if (this.sortFunction) {
|
|
4547
4559
|
this.sortFunction(index, item.orderType);
|
|
4548
4560
|
} else {
|