cnhis-design-vue 2.1.87 → 2.1.89
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 +18 -4
- package/es/age/index.js +2 -2
- package/es/big-table/index.js +64 -48
- package/es/big-table/style.css +1 -1
- package/es/button/index.js +1663 -1151
- package/es/captcha/index.js +3 -3
- package/es/checkbox/index.js +1 -1
- package/es/color-picker/index.js +1 -1
- package/es/drag-layout/index.js +3 -3
- package/es/editor/index.js +1 -1
- package/es/ellipsis/index.js +1 -1
- package/es/fabric-chart/index.js +9 -9
- package/es/form-table/index.js +20 -20
- package/es/index/index.js +1862 -1348
- package/es/index/style.css +1 -1
- package/es/input/index.js +1 -1
- package/es/map/index.js +1 -1
- package/es/multi-chat/index.js +25 -25
- package/es/multi-chat-client/index.js +19 -19
- package/es/multi-chat-history/index.js +4 -4
- package/es/multi-chat-record/index.js +4 -4
- package/es/multi-chat-setting/index.js +20 -20
- package/es/multi-chat-sip/index.js +1 -1
- package/es/radio/index.js +1 -1
- package/es/scale-container/index.js +1 -1
- package/es/scale-view/index.js +27 -27
- package/es/select/index.js +4 -4
- package/es/select-label/index.js +3 -3
- package/es/select-person/index.js +2 -2
- package/es/select-tag/index.js +4 -4
- package/es/shortcut-setter/index.js +2 -2
- package/es/table-filter/index.js +1675 -1177
- package/es/tag/index.js +1 -1
- package/es/verification-code/index.js +2 -2
- package/package.json +1 -1
- package/packages/big-table/src/BigTable.vue +16 -3
- package/packages/big-table/src/assets/iconfont/iconfont.css +6 -2
- package/packages/big-table/src/assets/iconfont/iconfont.ttf +0 -0
- package/packages/big-table/src/assets/style/table-base.less +19 -0
- package/packages/button/src/ButtonPrint/js/print.es.min.js +1590 -1173
package/es/tag/index.js
CHANGED
|
@@ -1083,7 +1083,7 @@ var create = __webpack_require__("8aef");
|
|
|
1083
1083
|
name: 'checkable-tag',
|
|
1084
1084
|
extends: tag_default.a.CheckableTag
|
|
1085
1085
|
}));
|
|
1086
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
1086
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5221e509-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/tag/src/TagGroup.vue?vue&type=template&id=6159c636&scoped=true&
|
|
1087
1087
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"label-wrap"},[_c('div',{staticClass:"left-label-wrap"},[_c('c-tabs',{class:['self-tabs', ("self-tabs-" + _vm.color)],attrs:{"hideAdd":"","activeKey":_vm.labelAnchorKey,"tab-position":"left"},on:{"change":_vm.labelAnchorTabsOnChange}},[_vm._l((_vm.labelList),function(v){return [_c('c-tab-pane',{key:v.curKey},[_c('span',{attrs:{"slot":"tab"},slot:"tab"},[_vm._v(" "+_vm._s(v.title)+" ")])])]})],2)],1),_c('div',{staticClass:"right-label-wrap"},[_c('a-anchor',{directives:[{name:"show",rawName:"v-show",value:(false),expression:"false"}],attrs:{"getContainer":_vm.anchorGetContainer},on:{"click":_vm.handleAnchorClick,"change":_vm.anchorOnChange}},[_vm._l((_vm.labelList),function(v,i){return [_c('a-anchor-link',{key:v.curKey,attrs:{"href":("#" + (v.curKey)),"title":i}})]})],2),_vm._l((_vm.labelList),function(v,k){return _c('div',{key:k,staticClass:"edit-label-content"},[_c('div',{staticClass:"edit-label",attrs:{"id":v.curKey}},[_vm._v(" "+_vm._s(v.title)+" "),_c('span',{staticClass:"edit-label-type"},[_vm._v("("+_vm._s(v.multipleChoice == 2 ? "单" : "多")+"选)")])]),_c('div',{staticClass:"edit-content"},[(!v.itemList)?_c('div',{staticClass:"label-disable-wrap"},[_c('p',{staticClass:"label-disable-title"},[_vm._v("无可选标签")]),_c('p',{staticClass:"label-disable-desc"},[_vm._v("请联系管理员进行标签管理设置")])]):_c('div',{staticClass:"label-content"},[_vm._l((v.itemList),function(item){return _c('a-checkable-tag',{key:item.labelId,class:[{ 'sys-label-tag': item.isPublic && item.isPublic == 1 }, ("label-tag-" + _vm.color)],on:{"change":function($event){return _vm.handleLabelChange($event, item, v, v.curKey)}},model:{value:(item.isSelect),callback:function ($$v) {_vm.$set(item, "isSelect", $$v)},expression:"item.isSelect"}},[_c('a-tooltip',{attrs:{"placement":"topLeft"}},[_c('template',{slot:"title"},[_c('span',[_vm._v(_vm._s(item.labelName))])]),_vm._v(" "+_vm._s(item.labelName)+" ")],2),_c('a-icon',{directives:[{name:"show",rawName:"v-show",value:(!(item.isPublic && item.isPublic == 1)),expression:"!(item.isPublic && item.isPublic == 1)"}],staticClass:"label-close",attrs:{"type":"close"},nativeOn:{"click":function($event){$event.stopPropagation();return _vm.handleDelLabel(item, v)}}})],1)}),(_vm.isEdit && !v.isNoAdd)?_c('a-button',{directives:[{name:"show",rawName:"v-show",value:(!v.showAdd),expression:"!v.showAdd"}],class:['label-add', ("label-tag-" + _vm.color)],attrs:{"type":"dashed"},on:{"click":function($event){return _vm.handleAddLabel($event, v)}}},[_c('a-icon',{attrs:{"type":"plus"}}),_vm._v(" 标签 ")],1):_vm._e(),(_vm.isEdit && !v.isNoAdd)?_c('a-input',{directives:[{name:"show",rawName:"v-show",value:(v.showAdd),expression:"v.showAdd"}],class:['label-add', 'add-input', ("label-tag-" + _vm.color)],on:{"blur":function($event){return _vm.hanldeBlur($event, v, v.curKey)}},model:{value:(v.addVal),callback:function ($$v) {_vm.$set(v, "addVal", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:"v.addVal"}},[_c('a-icon',{attrs:{"slot":"suffix","type":"close"},nativeOn:{"click":function($event){$event.stopPropagation();return _vm.clearaddVal($event, v)}},slot:"suffix"})],1):_vm._e()],2)])])})],2)])}
|
|
1088
1088
|
var staticRenderFns = []
|
|
1089
1089
|
|
|
@@ -801,7 +801,7 @@ var es_promise_finally = __webpack_require__("a79d");
|
|
|
801
801
|
// EXTERNAL MODULE: external "core-js/modules/es.function.name.js"
|
|
802
802
|
var es_function_name_js_ = __webpack_require__("db0a");
|
|
803
803
|
|
|
804
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
804
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5221e509-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/verification-code/verification-code.vue?vue&type=template&id=39c11d42&scoped=true&
|
|
805
805
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"verification-code-container"},[_c('a-input',_vm._g(_vm._b({on:{"change":_vm.verifyCodeChange},model:{value:(_vm.verifyCode),callback:function ($$v) {_vm.verifyCode=$$v},expression:"verifyCode"}},'a-input',_vm.$attrs,false),_vm.$listeners),[_c('template',{slot:"addonAfter"},[_c('span',{staticClass:"captcha-wrap"},[_c('span',{class:['get-code', { disabled: _vm.count }],on:{"click":_vm.sendVerify}},[_vm._v(" "+_vm._s(_vm.getText)+" ")])])])],2)],1)}
|
|
806
806
|
var staticRenderFns = []
|
|
807
807
|
|
|
@@ -967,7 +967,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
967
967
|
)
|
|
968
968
|
|
|
969
969
|
/* harmony default export */ var verification_code = (component.exports);
|
|
970
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
970
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5221e509-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/verification-code/SlideVerify.vue?vue&type=template&id=738bb298&scoped=true&
|
|
971
971
|
var SlideVerifyvue_type_template_id_738bb298_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"slide"},[(_vm.title)?_c('div',{staticClass:"verify-title"},[_c('span',[_vm._v(_vm._s(_vm.title))]),_c('div',{staticClass:"right-icon",on:{"click":_vm.cancelVerify}},[_c('a-icon',{attrs:{"type":"close"}})],1)]):_vm._e(),_c('div',{staticClass:"verify-div"},[_c('div',{staticClass:"verify-container"},[_c('div',{staticClass:"slide-verify"},[_c('div',{staticClass:"bg-wrap"},[_c('img',{staticClass:"bg-img",style:(_vm.resourceStyle),attrs:{"src":_vm.resource.resourceImg,"alt":""}})]),_c('a-icon',{staticClass:"slide-verify-refresh-icon",attrs:{"type":"redo"},on:{"click":_vm.refresh}}),_c('img',{ref:"block",staticClass:"slide-verify-block",style:(_vm.puzzleStyle),attrs:{"src":_vm.resource.puzzleImg,"draggable":"false"},on:{"mousedown":_vm.sliderDown}}),_c('div',{staticClass:"slide-verify-slider",class:{
|
|
972
972
|
'container-active': _vm.containerActive,
|
|
973
973
|
'container-success': _vm.containerSuccess,
|
package/package.json
CHANGED
|
@@ -317,20 +317,22 @@ export default create({
|
|
|
317
317
|
switch (Number(this.isTree)) {
|
|
318
318
|
case 1:
|
|
319
319
|
case 3:
|
|
320
|
+
// 同步树
|
|
320
321
|
result = {
|
|
321
322
|
children: 'childrenList',
|
|
322
323
|
accordion: this.openOnly > 0,
|
|
323
324
|
reserve: true
|
|
324
325
|
};
|
|
325
326
|
break;
|
|
326
|
-
case 2
|
|
327
|
+
case 2:// 异步树
|
|
327
328
|
result = {
|
|
328
329
|
lazy: true,
|
|
329
330
|
reserve: true,
|
|
330
331
|
children: 'childrenList',
|
|
331
332
|
hasChild: 'hasChildren',
|
|
332
333
|
loadMethod: this.loadChildrenMethod,
|
|
333
|
-
accordion: this.openOnly > 0
|
|
334
|
+
accordion: this.openOnly > 0,
|
|
335
|
+
iconLoaded: 'iconfont icon-loading roll'
|
|
334
336
|
};
|
|
335
337
|
break;
|
|
336
338
|
default:
|
|
@@ -2390,8 +2392,12 @@ export default create({
|
|
|
2390
2392
|
let newRow = [];
|
|
2391
2393
|
if (this.isTree != 0) {
|
|
2392
2394
|
// 点击树形表格的按钮 不需要触发选中行
|
|
2393
|
-
let { className } = $event.target || {};
|
|
2395
|
+
let { className, parentElement } = $event.target || {};
|
|
2394
2396
|
if (className && className.includes('vxe-tree--node-btn')) return;
|
|
2397
|
+
// 点击父级箭头和文字,都能触发展开子节点 已经展开父级,只能点击小箭头进行收起
|
|
2398
|
+
if(parentElement?.className && parentElement.className.includes('vxe-tree-cell')) {
|
|
2399
|
+
this.toggleCellTreeExpand(data, table)
|
|
2400
|
+
}
|
|
2395
2401
|
// // 树表格 无法选中有子集的行
|
|
2396
2402
|
// if (row.hasChildren) {
|
|
2397
2403
|
// table.setAllCheckboxRow(false);
|
|
@@ -2933,6 +2939,13 @@ export default create({
|
|
|
2933
2939
|
});
|
|
2934
2940
|
}
|
|
2935
2941
|
},
|
|
2942
|
+
toggleCellTreeExpand(data, table){
|
|
2943
|
+
const {row} = data;
|
|
2944
|
+
if(!row.hasChildren) return;
|
|
2945
|
+
let isTreeExpandByRow = table.isTreeExpandByRow(row);
|
|
2946
|
+
if(isTreeExpandByRow) return;
|
|
2947
|
+
table.setTreeExpand(row, true)
|
|
2948
|
+
},
|
|
2936
2949
|
// 懒加载树子节点
|
|
2937
2950
|
loadChildrenMethod({ row }) {
|
|
2938
2951
|
// vxe-table v2.x 未根据 checkMethod 禁用逻辑 直接根据父级决定子级checked状态
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@font-face {
|
|
2
|
-
font-family: "iconfont"; /* Project id
|
|
3
|
-
src:
|
|
2
|
+
font-family: "iconfont"; /* Project id 4141620 */
|
|
3
|
+
src:url('iconfont.ttf?t=1687921861098') format('truetype');
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.iconfont {
|
|
@@ -11,6 +11,10 @@
|
|
|
11
11
|
-moz-osx-font-smoothing: grayscale;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
.icon-loading:before {
|
|
15
|
+
content: "\e689";
|
|
16
|
+
}
|
|
17
|
+
|
|
14
18
|
.icon-a-xitongtubiaotianjia:before {
|
|
15
19
|
content: "\e9c3";
|
|
16
20
|
}
|
|
Binary file
|
|
@@ -252,6 +252,25 @@ body {
|
|
|
252
252
|
display: none;
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
|
+
.vxe-tree--node-btn.icon-loading {
|
|
256
|
+
font-size: 14px;
|
|
257
|
+
width: 14px;
|
|
258
|
+
height: 14px;
|
|
259
|
+
color: #000;
|
|
260
|
+
line-height: 1;
|
|
261
|
+
&.roll {
|
|
262
|
+
animation: rollCircle 1s infinite linear;
|
|
263
|
+
transform-origin: center center;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
@keyframes rollCircle {
|
|
267
|
+
0% {
|
|
268
|
+
transform: rotate(0deg);
|
|
269
|
+
}
|
|
270
|
+
100% {
|
|
271
|
+
transform: rotate(360deg);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
255
274
|
}
|
|
256
275
|
/deep/ .filter-box {
|
|
257
276
|
display: flex;
|