idp-base-components-lib 1.0.4 → 1.0.6
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/README.md +39 -0
- package/dist/index.cjs.js +1592 -1584
- package/dist/index.esm.js +1593 -1585
- package/dist/index.umd.js +1594 -1585
- package/package.json +4 -4
package/dist/index.esm.js
CHANGED
|
@@ -2,7 +2,6 @@ import { defineComponent, computed, createElementBlock, openBlock, normalizeStyl
|
|
|
2
2
|
import { ElTooltip, ElIcon, ElInput, ElSelect, ElOption, ElConfigProvider, ElDatePicker, ElButton, ElPopover, ElCheckbox, ElDropdown, ElDropdownMenu, ElDropdownItem, ElTag, ElBadge, ElAvatar } from "element-plus";
|
|
3
3
|
import { WarningFilled, CircleClose, View, Hide, Search, Refresh, ArrowUpBold, ArrowDownBold, Setting, Plus, Delete, Operation, User, SwitchButton, QuestionFilled, OfficeBuilding, ArrowDown, Bell } from "@element-plus/icons-vue";
|
|
4
4
|
import XEUtils from "xe-utils";
|
|
5
|
-
import { VxeUI as VxeUI$1 } from "vxe-pc-ui";
|
|
6
5
|
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
7
6
|
__name: "Button",
|
|
8
7
|
props: {
|
|
@@ -35385,1314 +35384,477 @@ const VxePager = Object.assign(VxePagerComponent, {
|
|
|
35385
35384
|
});
|
|
35386
35385
|
dynamicApp.use(VxePager);
|
|
35387
35386
|
VxeUI.component(VxePagerComponent);
|
|
35388
|
-
|
|
35389
|
-
|
|
35390
|
-
|
|
35391
|
-
|
|
35392
|
-
|
|
35393
|
-
|
|
35394
|
-
|
|
35395
|
-
|
|
35396
|
-
|
|
35397
|
-
|
|
35398
|
-
|
|
35399
|
-
|
|
35400
|
-
|
|
35401
|
-
|
|
35402
|
-
|
|
35403
|
-
|
|
35404
|
-
|
|
35405
|
-
|
|
35406
|
-
|
|
35407
|
-
|
|
35408
|
-
|
|
35409
|
-
|
|
35410
|
-
|
|
35411
|
-
|
|
35412
|
-
|
|
35413
|
-
|
|
35414
|
-
|
|
35415
|
-
|
|
35416
|
-
|
|
35417
|
-
|
|
35418
|
-
|
|
35419
|
-
|
|
35420
|
-
|
|
35421
|
-
|
|
35422
|
-
|
|
35423
|
-
|
|
35424
|
-
|
|
35425
|
-
|
|
35426
|
-
|
|
35427
|
-
|
|
35428
|
-
|
|
35429
|
-
|
|
35430
|
-
|
|
35431
|
-
|
|
35432
|
-
|
|
35433
|
-
|
|
35434
|
-
|
|
35435
|
-
|
|
35436
|
-
|
|
35437
|
-
|
|
35438
|
-
|
|
35439
|
-
|
|
35440
|
-
|
|
35441
|
-
|
|
35442
|
-
|
|
35443
|
-
|
|
35444
|
-
|
|
35445
|
-
|
|
35446
|
-
|
|
35447
|
-
|
|
35448
|
-
|
|
35449
|
-
|
|
35450
|
-
|
|
35451
|
-
|
|
35452
|
-
|
|
35453
|
-
|
|
35454
|
-
|
|
35455
|
-
|
|
35456
|
-
|
|
35457
|
-
|
|
35458
|
-
|
|
35459
|
-
|
|
35460
|
-
|
|
35461
|
-
|
|
35462
|
-
|
|
35463
|
-
|
|
35464
|
-
|
|
35465
|
-
|
|
35466
|
-
|
|
35467
|
-
|
|
35468
|
-
|
|
35469
|
-
|
|
35470
|
-
|
|
35471
|
-
|
|
35472
|
-
|
|
35473
|
-
|
|
35474
|
-
|
|
35475
|
-
|
|
35476
|
-
|
|
35477
|
-
|
|
35478
|
-
|
|
35479
|
-
|
|
35480
|
-
|
|
35481
|
-
|
|
35482
|
-
|
|
35483
|
-
|
|
35484
|
-
|
|
35485
|
-
|
|
35486
|
-
|
|
35487
|
-
|
|
35488
|
-
|
|
35489
|
-
|
|
35490
|
-
|
|
35491
|
-
|
|
35492
|
-
|
|
35493
|
-
|
|
35494
|
-
|
|
35495
|
-
|
|
35496
|
-
|
|
35497
|
-
|
|
35498
|
-
|
|
35499
|
-
|
|
35500
|
-
|
|
35501
|
-
|
|
35502
|
-
|
|
35503
|
-
|
|
35504
|
-
|
|
35505
|
-
|
|
35506
|
-
|
|
35507
|
-
|
|
35508
|
-
|
|
35509
|
-
|
|
35510
|
-
|
|
35511
|
-
|
|
35512
|
-
|
|
35513
|
-
|
|
35514
|
-
|
|
35515
|
-
|
|
35516
|
-
|
|
35517
|
-
|
|
35518
|
-
|
|
35519
|
-
|
|
35520
|
-
|
|
35521
|
-
|
|
35522
|
-
|
|
35523
|
-
|
|
35524
|
-
|
|
35525
|
-
|
|
35526
|
-
|
|
35527
|
-
|
|
35528
|
-
|
|
35529
|
-
|
|
35530
|
-
|
|
35531
|
-
|
|
35532
|
-
|
|
35533
|
-
|
|
35534
|
-
|
|
35535
|
-
|
|
35536
|
-
|
|
35537
|
-
|
|
35538
|
-
|
|
35539
|
-
prevJump: "向上跳页",
|
|
35540
|
-
prevJumpTitle: "向上跳页",
|
|
35541
|
-
nextJump: "向下跳页",
|
|
35542
|
-
nextJumpTitle: "向下跳页",
|
|
35543
|
-
endPage: "末页",
|
|
35544
|
-
endPageTitle: "末页"
|
|
35545
|
-
},
|
|
35546
|
-
alert: {
|
|
35547
|
-
title: "系统提示"
|
|
35548
|
-
},
|
|
35549
|
-
button: {
|
|
35550
|
-
confirm: "确认",
|
|
35551
|
-
cancel: "取消",
|
|
35552
|
-
clear: "清除"
|
|
35553
|
-
},
|
|
35554
|
-
filter: {
|
|
35555
|
-
search: "搜索"
|
|
35556
|
-
},
|
|
35557
|
-
custom: {
|
|
35558
|
-
cstmTitle: "列设置",
|
|
35559
|
-
cstmRestore: "恢复默认",
|
|
35560
|
-
cstmCancel: "取消",
|
|
35561
|
-
cstmConfirm: "确定",
|
|
35562
|
-
cstmConfirmRestore: "请确认是否恢复成默认列配置?",
|
|
35563
|
-
cstmDragTarget: "移动:{0}",
|
|
35564
|
-
setting: {
|
|
35565
|
-
colSort: "排序",
|
|
35566
|
-
sortHelpTip: "点击并拖动图标可以调整顺序",
|
|
35567
|
-
colTitle: "列标题",
|
|
35568
|
-
colResizable: "列宽(像素)",
|
|
35569
|
-
colVisible: "是否显示",
|
|
35570
|
-
colFixed: "冻结列",
|
|
35571
|
-
colFixedMax: "冻结列(最多 {0} 列)",
|
|
35572
|
-
fixedLeft: "左侧",
|
|
35573
|
-
fixedUnset: "不设置",
|
|
35574
|
-
fixedRight: "右侧"
|
|
35575
|
-
}
|
|
35576
|
-
},
|
|
35577
|
-
import: {
|
|
35578
|
-
modes: {
|
|
35579
|
-
covering: "覆盖方式(直接覆盖表格数据)",
|
|
35580
|
-
insert: "底部追加(在表格的底部追加新数据)",
|
|
35581
|
-
insertTop: "顶部追加(在表格的顶部追加新数据)",
|
|
35582
|
-
insertBottom: "底部追加(在表格的底部追加新数据)"
|
|
35583
|
-
},
|
|
35584
|
-
impTitle: "导入数据",
|
|
35585
|
-
impFile: "文件名",
|
|
35586
|
-
impSelect: "选择文件",
|
|
35587
|
-
impType: "文件类型",
|
|
35588
|
-
impOpts: "参数设置",
|
|
35589
|
-
impMode: "导入模式",
|
|
35590
|
-
impConfirm: "导入",
|
|
35591
|
-
impCancel: "取消"
|
|
35592
|
-
},
|
|
35593
|
-
export: {
|
|
35594
|
-
types: {
|
|
35595
|
-
csv: "CSV (逗号分隔)(*.csv)",
|
|
35596
|
-
html: "网页(*.html)",
|
|
35597
|
-
xml: "XML 数据(*.xml)",
|
|
35598
|
-
txt: "文本文件(制表符分隔)(*.txt)",
|
|
35599
|
-
xls: "Excel 97-2003 工作簿(*.xls)",
|
|
35600
|
-
xlsx: "Excel 工作簿(*.xlsx)",
|
|
35601
|
-
pdf: "PDF (*.pdf)"
|
|
35602
|
-
},
|
|
35603
|
-
modes: {
|
|
35604
|
-
empty: "空数据",
|
|
35605
|
-
current: "当前数据(当前页的数据)",
|
|
35606
|
-
selected: "选中数据(当前页选中的数据)",
|
|
35607
|
-
all: "全量数据(包括所有分页的数据)"
|
|
35608
|
-
},
|
|
35609
|
-
printTitle: "打印数据",
|
|
35610
|
-
expTitle: "导出数据",
|
|
35611
|
-
expName: "文件名",
|
|
35612
|
-
expNamePlaceholder: "请输入文件名",
|
|
35613
|
-
expSheetName: "标题",
|
|
35614
|
-
expSheetNamePlaceholder: "请输入标题",
|
|
35615
|
-
expType: "保存类型",
|
|
35616
|
-
expMode: "选择数据",
|
|
35617
|
-
expCurrentColumn: "全部字段",
|
|
35618
|
-
expColumn: "选择字段",
|
|
35619
|
-
expOpts: "参数设置",
|
|
35620
|
-
expOptHeader: "表头",
|
|
35621
|
-
expHeaderTitle: "是否需要表头",
|
|
35622
|
-
expOptFooter: "表尾",
|
|
35623
|
-
expFooterTitle: "是否需要表尾",
|
|
35624
|
-
expOptColgroup: "分组表头",
|
|
35625
|
-
expOptTitle: "列标题",
|
|
35626
|
-
expTitleTitle: "是否为列标题,否则显示为列的字段名",
|
|
35627
|
-
expColgroupTitle: "如果存在,则支持带有分组结构的表头",
|
|
35628
|
-
expOptMerge: "合并",
|
|
35629
|
-
expMergeTitle: "如果存在,则支持带有合并结构的单元格",
|
|
35630
|
-
expOptAllExpand: "展开树",
|
|
35631
|
-
expAllExpandTitle: "如果存在,则支持将带有层级结构的数据全部展开",
|
|
35632
|
-
expOptUseStyle: "样式",
|
|
35633
|
-
expUseStyleTitle: "如果存在,则支持带样式的单元格",
|
|
35634
|
-
expOptOriginal: "源数据",
|
|
35635
|
-
expOriginalTitle: "如果为源数据,则支持导入到表格中",
|
|
35636
|
-
expPrint: "打印",
|
|
35637
|
-
expConfirm: "导出",
|
|
35638
|
-
expCancel: "取消"
|
|
35639
|
-
},
|
|
35640
|
-
modal: {
|
|
35641
|
-
errTitle: "错误提示",
|
|
35642
|
-
zoomMin: "最小化",
|
|
35643
|
-
zoomIn: "最大化",
|
|
35644
|
-
zoomOut: "还原",
|
|
35645
|
-
close: "关闭",
|
|
35646
|
-
miniMaxSize: "最小化窗口的数量不能超过 {0} 个",
|
|
35647
|
-
footPropErr: "show-footer 仅用于启用表尾,需配合 show-confirm-button | show-cancel-button | 插槽使用"
|
|
35648
|
-
},
|
|
35649
|
-
drawer: {
|
|
35650
|
-
close: "关闭"
|
|
35651
|
-
},
|
|
35652
|
-
form: {
|
|
35653
|
-
folding: "收起",
|
|
35654
|
-
unfolding: "展开"
|
|
35655
|
-
},
|
|
35656
|
-
toolbar: {
|
|
35657
|
-
import: "导入",
|
|
35658
|
-
export: "导出",
|
|
35659
|
-
print: "打印",
|
|
35660
|
-
refresh: "刷新",
|
|
35661
|
-
zoomIn: "全屏",
|
|
35662
|
-
zoomOut: "还原",
|
|
35663
|
-
custom: "列设置",
|
|
35664
|
-
customAll: "全部",
|
|
35665
|
-
customConfirm: "确认",
|
|
35666
|
-
customRestore: "重置",
|
|
35667
|
-
fixedLeft: "冻结在左侧",
|
|
35668
|
-
fixedRight: "冻结在右侧",
|
|
35669
|
-
cancelFixed: "取消冻结列"
|
|
35670
|
-
},
|
|
35671
|
-
datePicker: {
|
|
35672
|
-
yearTitle: "{0} 年"
|
|
35673
|
-
},
|
|
35674
|
-
dateRangePicker: {
|
|
35675
|
-
pleaseRange: "请选择开始日期与结束日期"
|
|
35676
|
-
},
|
|
35677
|
-
input: {
|
|
35678
|
-
date: {
|
|
35679
|
-
m1: "01 月",
|
|
35680
|
-
m2: "02 月",
|
|
35681
|
-
m3: "03 月",
|
|
35682
|
-
m4: "04 月",
|
|
35683
|
-
m5: "05 月",
|
|
35684
|
-
m6: "06 月",
|
|
35685
|
-
m7: "07 月",
|
|
35686
|
-
m8: "08 月",
|
|
35687
|
-
m9: "09 月",
|
|
35688
|
-
m10: "10 月",
|
|
35689
|
-
m11: "11 月",
|
|
35690
|
-
m12: "12 月",
|
|
35691
|
-
quarterLabel: "{0} 年",
|
|
35692
|
-
monthLabel: "{0} 年",
|
|
35693
|
-
dayLabel: "{0} 年 {1}",
|
|
35694
|
-
labelFormat: {
|
|
35695
|
-
date: "yyyy-MM-dd",
|
|
35696
|
-
time: "HH:mm:ss",
|
|
35697
|
-
datetime: "yyyy-MM-dd HH:mm:ss",
|
|
35698
|
-
week: "yyyy 年第 WW 周",
|
|
35699
|
-
month: "yyyy-MM",
|
|
35700
|
-
quarter: "yyyy 年第 q 季度",
|
|
35701
|
-
year: "yyyy"
|
|
35702
|
-
},
|
|
35703
|
-
weeks: {
|
|
35704
|
-
w: "",
|
|
35705
|
-
w0: "周日",
|
|
35706
|
-
w1: "周一",
|
|
35707
|
-
w2: "周二",
|
|
35708
|
-
w3: "周三",
|
|
35709
|
-
w4: "周四",
|
|
35710
|
-
w5: "周五",
|
|
35711
|
-
w6: "周六"
|
|
35712
|
-
},
|
|
35713
|
-
months: {
|
|
35714
|
-
m0: "一月",
|
|
35715
|
-
m1: "二月",
|
|
35716
|
-
m2: "三月",
|
|
35717
|
-
m3: "四月",
|
|
35718
|
-
m4: "五月",
|
|
35719
|
-
m5: "六月",
|
|
35720
|
-
m6: "七月",
|
|
35721
|
-
m7: "八月",
|
|
35722
|
-
m8: "九月",
|
|
35723
|
-
m9: "十月",
|
|
35724
|
-
m10: "十一月",
|
|
35725
|
-
m11: "十二月"
|
|
35726
|
-
},
|
|
35727
|
-
quarters: {
|
|
35728
|
-
q1: "第一季度",
|
|
35729
|
-
q2: "第二季度",
|
|
35730
|
-
q3: "第三季度",
|
|
35731
|
-
q4: "第四季度"
|
|
35732
|
-
}
|
|
35733
|
-
}
|
|
35734
|
-
},
|
|
35735
|
-
numberInput: {
|
|
35736
|
-
currencySymbol: "¥"
|
|
35737
|
-
},
|
|
35738
|
-
imagePreview: {
|
|
35739
|
-
popupTitle: "预览",
|
|
35740
|
-
operBtn: {
|
|
35741
|
-
zoomOut: "缩小",
|
|
35742
|
-
zoomIn: "放大",
|
|
35743
|
-
pctFull: "等比例缩放",
|
|
35744
|
-
pct11: "显示原始尺寸",
|
|
35745
|
-
rotateLeft: "向左旋转",
|
|
35746
|
-
rotateRight: "向右旋转",
|
|
35747
|
-
print: "点击打印图片",
|
|
35748
|
-
download: "点击下载图片"
|
|
35387
|
+
const _export_sfc = (sfc, props) => {
|
|
35388
|
+
const target = sfc.__vccOpts || sfc;
|
|
35389
|
+
for (const [key, val] of props) {
|
|
35390
|
+
target[key] = val;
|
|
35391
|
+
}
|
|
35392
|
+
return target;
|
|
35393
|
+
};
|
|
35394
|
+
const _hoisted_1$3 = {
|
|
35395
|
+
t: "1767603030078",
|
|
35396
|
+
class: "icon",
|
|
35397
|
+
viewBox: "0 0 1024 1024",
|
|
35398
|
+
version: "1.1",
|
|
35399
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
35400
|
+
"p-id": "3993",
|
|
35401
|
+
width: "16",
|
|
35402
|
+
height: "16"
|
|
35403
|
+
};
|
|
35404
|
+
const _sfc_main$4 = {
|
|
35405
|
+
__name: "ImportIcon",
|
|
35406
|
+
props: {
|
|
35407
|
+
size: {
|
|
35408
|
+
type: [String, Number],
|
|
35409
|
+
default: 16
|
|
35410
|
+
},
|
|
35411
|
+
color: {
|
|
35412
|
+
type: String,
|
|
35413
|
+
default: "currentColor"
|
|
35414
|
+
}
|
|
35415
|
+
},
|
|
35416
|
+
setup(__props) {
|
|
35417
|
+
return (_ctx, _cache) => {
|
|
35418
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$3, [..._cache[0] || (_cache[0] = [
|
|
35419
|
+
createElementVNode("path", {
|
|
35420
|
+
d: "M766.84 101.64H322.7a65.14 65.14 0 0 0-65.07 65.07V296h57.22V166.71a7.86 7.86 0 0 1 7.85-7.85h444.14a7.86 7.86 0 0 1 7.85 7.85v690.58a7.86 7.86 0 0 1-7.85 7.85H322.7a7.86 7.86 0 0 1-7.85-7.85V750.76h-57.22v106.53a65.14 65.14 0 0 0 65.07 65.07h444.14a65.14 65.14 0 0 0 65.07-65.07V166.71a65.14 65.14 0 0 0-65.07-65.07z",
|
|
35421
|
+
"p-id": "3994",
|
|
35422
|
+
fill: "#165DFF"
|
|
35423
|
+
}, null, -1),
|
|
35424
|
+
createElementVNode("path", {
|
|
35425
|
+
d: "M400.91 684.93l35.31 45.03 248.33-194.78L437.5 316.99l-37.88 42.88 164.63 145.39H247.59v57.22h309.44L400.91 684.93z",
|
|
35426
|
+
"p-id": "3995",
|
|
35427
|
+
fill: "#165DFF"
|
|
35428
|
+
}, null, -1)
|
|
35429
|
+
])]);
|
|
35430
|
+
};
|
|
35431
|
+
}
|
|
35432
|
+
};
|
|
35433
|
+
const ImportIcon = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-76df1f54"]]);
|
|
35434
|
+
const _hoisted_1$2 = {
|
|
35435
|
+
t: "1767602925476",
|
|
35436
|
+
class: "icon",
|
|
35437
|
+
viewBox: "0 0 1024 1024",
|
|
35438
|
+
version: "1.1",
|
|
35439
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
35440
|
+
"p-id": "2910",
|
|
35441
|
+
width: "16",
|
|
35442
|
+
height: "16"
|
|
35443
|
+
};
|
|
35444
|
+
const _sfc_main$3 = {
|
|
35445
|
+
__name: "ExportIcon",
|
|
35446
|
+
props: {
|
|
35447
|
+
size: {
|
|
35448
|
+
type: [String, Number],
|
|
35449
|
+
default: 16
|
|
35450
|
+
},
|
|
35451
|
+
color: {
|
|
35452
|
+
type: String,
|
|
35453
|
+
default: "#364053"
|
|
35454
|
+
}
|
|
35455
|
+
},
|
|
35456
|
+
setup(__props) {
|
|
35457
|
+
return (_ctx, _cache) => {
|
|
35458
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$2, [..._cache[0] || (_cache[0] = [
|
|
35459
|
+
createElementVNode("path", {
|
|
35460
|
+
d: "M102.505095 877.1448H919.213044c33.644561-1.453005 61.220885 15.425134 61.193458 46.580454v5.268816c1.031553 33.814479-26.879926 51.281313-61.193458 49.925309H102.505095c-40.773785 0-59.002577-12.693057-61.198809-48.587367v-5.269485c1.527261-36.214079 23.157771-49.147965 61.198809-47.917727z m836.401788-537.958418L612.352681 56.719379a18.939908 18.939908 0 0 0-20.044379-2.474524 18.955295 18.955295 0 0 0-10.895532 17.003906v158.855872c-0.14985 9.740887-7.766754 16.692834-17.28755 18.76263-407.396677 88.581132-472.185854 425.174582-474.324554 546.45502-0.15587 8.819045 6.040809 16.485453 14.619024 18.501732 8.580223 2.014272 17.422013-2.150073 21.325459-10.057311C209.917762 630.319236 340.613297 444.815572 561.577779 463.097213c5.178505 0.428141 10.243954 1.745345 13.982163 5.357789 3.746238 3.612444 5.860186 8.593602 5.852828 13.794183v155.116992a18.953288 18.953288 0 0 0 10.805889 17.159108 18.936563 18.936563 0 0 0 20.134022-2.426358l326.554202-284.138093a19.157324 19.157324 0 0 0 6.512433-14.386891c0-5.509646-2.374847-10.754379-6.512433-14.387561z m0 0",
|
|
35461
|
+
fill: "#165DFF",
|
|
35462
|
+
"p-id": "2911"
|
|
35463
|
+
}, null, -1)
|
|
35464
|
+
])]);
|
|
35465
|
+
};
|
|
35466
|
+
}
|
|
35467
|
+
};
|
|
35468
|
+
const ExportIcon = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-4d162ab2"]]);
|
|
35469
|
+
const _hoisted_1$1 = { class: "vtable-wrapper" };
|
|
35470
|
+
const _hoisted_2$1 = { class: "vtable-title" };
|
|
35471
|
+
const _hoisted_3$1 = {
|
|
35472
|
+
key: 0,
|
|
35473
|
+
class: "vtable-search"
|
|
35474
|
+
};
|
|
35475
|
+
const _hoisted_4$1 = { class: "vtable-search-left" };
|
|
35476
|
+
const _hoisted_5$1 = { class: "vtable-search-content" };
|
|
35477
|
+
const _hoisted_6$1 = { class: "vtable-search-fields" };
|
|
35478
|
+
const _hoisted_7$1 = {
|
|
35479
|
+
key: 0,
|
|
35480
|
+
class: "vtable-search-label"
|
|
35481
|
+
};
|
|
35482
|
+
const _hoisted_8$1 = { class: "vtable-search-actions" };
|
|
35483
|
+
const _hoisted_9$1 = { class: "vtable-search-buttons" };
|
|
35484
|
+
const _hoisted_10$1 = { class: "toggle-icon-circle" };
|
|
35485
|
+
const _hoisted_11$1 = { class: "vtable-search-right" };
|
|
35486
|
+
const _hoisted_12 = { class: "custom-column-popover" };
|
|
35487
|
+
const _hoisted_13 = { class: "custom-column-list" };
|
|
35488
|
+
const _hoisted_14 = { class: "custom-column-footer" };
|
|
35489
|
+
const _hoisted_15 = { class: "vtable-search-operations" };
|
|
35490
|
+
const _hoisted_16 = { key: 0 };
|
|
35491
|
+
const _hoisted_17 = { key: 1 };
|
|
35492
|
+
const _hoisted_18 = {
|
|
35493
|
+
key: 2,
|
|
35494
|
+
style: { "margin-left": "4px" }
|
|
35495
|
+
};
|
|
35496
|
+
const _hoisted_19 = {
|
|
35497
|
+
key: 3,
|
|
35498
|
+
style: { "margin-left": "4px" }
|
|
35499
|
+
};
|
|
35500
|
+
const _hoisted_20 = {
|
|
35501
|
+
key: 4,
|
|
35502
|
+
style: { "margin-left": "4px" }
|
|
35503
|
+
};
|
|
35504
|
+
const _hoisted_21 = ["onClick"];
|
|
35505
|
+
const _hoisted_22 = {
|
|
35506
|
+
key: 0,
|
|
35507
|
+
"data-action": "linePreview",
|
|
35508
|
+
class: "vtable-operation-btn"
|
|
35509
|
+
};
|
|
35510
|
+
const _hoisted_23 = {
|
|
35511
|
+
key: 1,
|
|
35512
|
+
"data-action": "lineDownload",
|
|
35513
|
+
class: "vtable-operation-btn"
|
|
35514
|
+
};
|
|
35515
|
+
const _hoisted_24 = {
|
|
35516
|
+
key: 2,
|
|
35517
|
+
"data-action": "lineRename",
|
|
35518
|
+
class: "vtable-operation-btn"
|
|
35519
|
+
};
|
|
35520
|
+
const _hoisted_25 = {
|
|
35521
|
+
key: 3,
|
|
35522
|
+
"data-action": "lineDelete",
|
|
35523
|
+
class: "vtable-operation-btn"
|
|
35524
|
+
};
|
|
35525
|
+
const _hoisted_26 = { class: "custom-pager-total" };
|
|
35526
|
+
const OPERATION_FIELD = "operation";
|
|
35527
|
+
const _sfc_main$2 = {
|
|
35528
|
+
__name: "VTable",
|
|
35529
|
+
props: {
|
|
35530
|
+
// 表格配置
|
|
35531
|
+
config: {
|
|
35532
|
+
type: Object,
|
|
35533
|
+
required: true,
|
|
35534
|
+
validator: (value) => {
|
|
35535
|
+
if (!value || !value.columns || !Array.isArray(value.columns)) {
|
|
35536
|
+
console.warn("[VTable] config.columns is required and must be an array");
|
|
35537
|
+
return false;
|
|
35749
35538
|
}
|
|
35750
|
-
|
|
35751
|
-
|
|
35752
|
-
|
|
35753
|
-
|
|
35754
|
-
|
|
35755
|
-
|
|
35756
|
-
|
|
35757
|
-
|
|
35758
|
-
|
|
35759
|
-
|
|
35760
|
-
|
|
35761
|
-
|
|
35762
|
-
|
|
35763
|
-
|
|
35764
|
-
|
|
35765
|
-
|
|
35766
|
-
|
|
35767
|
-
|
|
35768
|
-
|
|
35769
|
-
|
|
35770
|
-
|
|
35771
|
-
|
|
35772
|
-
|
|
35773
|
-
|
|
35774
|
-
|
|
35539
|
+
return true;
|
|
35540
|
+
}
|
|
35541
|
+
},
|
|
35542
|
+
// 表格数据
|
|
35543
|
+
data: {
|
|
35544
|
+
type: Array,
|
|
35545
|
+
default: () => []
|
|
35546
|
+
},
|
|
35547
|
+
// 是否持久化列宽
|
|
35548
|
+
isSaveWidths: {
|
|
35549
|
+
type: Boolean,
|
|
35550
|
+
default: false
|
|
35551
|
+
},
|
|
35552
|
+
// 是否持久化自定义列
|
|
35553
|
+
isSaveCustomColumns: {
|
|
35554
|
+
type: Boolean,
|
|
35555
|
+
default: false
|
|
35556
|
+
},
|
|
35557
|
+
// 是否显示操作列
|
|
35558
|
+
showOperation: {
|
|
35559
|
+
type: Boolean,
|
|
35560
|
+
default: false
|
|
35561
|
+
},
|
|
35562
|
+
// 操作列配置
|
|
35563
|
+
operationConfig: {
|
|
35564
|
+
type: Object,
|
|
35565
|
+
default: () => ({
|
|
35566
|
+
preview: true,
|
|
35567
|
+
download: true,
|
|
35568
|
+
rename: true,
|
|
35569
|
+
delete: true,
|
|
35570
|
+
fixed: "left",
|
|
35571
|
+
width: 150
|
|
35572
|
+
})
|
|
35573
|
+
},
|
|
35574
|
+
// 是否启用分页
|
|
35575
|
+
enablePagination: {
|
|
35576
|
+
type: Boolean,
|
|
35577
|
+
default: true
|
|
35578
|
+
},
|
|
35579
|
+
total: {
|
|
35580
|
+
type: Number,
|
|
35581
|
+
default: 0,
|
|
35582
|
+
validator: (value) => value >= 0
|
|
35583
|
+
},
|
|
35584
|
+
// 搜索配置
|
|
35585
|
+
searchConfig: {
|
|
35586
|
+
type: Object,
|
|
35587
|
+
default: () => ({
|
|
35588
|
+
fields: [],
|
|
35589
|
+
// 搜索字段配置
|
|
35590
|
+
collapseCount: 3
|
|
35591
|
+
// 收起时显示的字段数量,默认3个
|
|
35592
|
+
})
|
|
35593
|
+
},
|
|
35594
|
+
// 持久化列宽和自定义列的 storageKey
|
|
35595
|
+
storageKey: {
|
|
35596
|
+
type: String,
|
|
35597
|
+
default: ""
|
|
35598
|
+
},
|
|
35599
|
+
// 自定义列是否显示
|
|
35600
|
+
showCustomColumnButton: {
|
|
35601
|
+
type: Boolean,
|
|
35602
|
+
default: true
|
|
35603
|
+
},
|
|
35604
|
+
// 行外操作按钮配置
|
|
35605
|
+
inlineOperationsConfig: {
|
|
35606
|
+
type: Object,
|
|
35607
|
+
default: () => ({
|
|
35608
|
+
buttons: ["plus", "operation", "delete", "import", "export"],
|
|
35609
|
+
collapseCount: 99
|
|
35610
|
+
})
|
|
35611
|
+
},
|
|
35612
|
+
// 是否显示加载中
|
|
35613
|
+
loading: {
|
|
35614
|
+
type: Boolean,
|
|
35615
|
+
default: false
|
|
35616
|
+
},
|
|
35617
|
+
// 存储类型
|
|
35618
|
+
storageType: {
|
|
35619
|
+
type: String,
|
|
35620
|
+
values: ["localStorage", "sessionStorage", "none"],
|
|
35621
|
+
default: "localStorage"
|
|
35622
|
+
}
|
|
35623
|
+
},
|
|
35624
|
+
emits: ["page-change", "check-column-change", "linePreview", "lineDownload", "lineRename", "lineDelete", "search", "reset", "plus", "delete", "import", "export", "button-click"],
|
|
35625
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
35626
|
+
const props = __props;
|
|
35627
|
+
const emit = __emit;
|
|
35628
|
+
const PAGE_SIZES = [10, 20, 50, 100];
|
|
35629
|
+
const tableRef = ref();
|
|
35630
|
+
const storageKey = computed(() => {
|
|
35631
|
+
var _a, _b, _c;
|
|
35632
|
+
return props.storageKey || ((_b = (_a = props.config) == null ? void 0 : _a.table) == null ? void 0 : _b.id) || ((_c = props.config) == null ? void 0 : _c.id) || "default";
|
|
35633
|
+
});
|
|
35634
|
+
const getStorage = () => {
|
|
35635
|
+
const type = props.storageType || "localStorage";
|
|
35636
|
+
if (type === "none") return null;
|
|
35637
|
+
try {
|
|
35638
|
+
return window[type];
|
|
35639
|
+
} catch (e) {
|
|
35640
|
+
console.warn(`[VTable] Storage type "${type}" is not available`);
|
|
35641
|
+
return null;
|
|
35642
|
+
}
|
|
35643
|
+
};
|
|
35644
|
+
const searchFields = computed(() => {
|
|
35645
|
+
var _a;
|
|
35646
|
+
return ((_a = props.searchConfig) == null ? void 0 : _a.fields) || [];
|
|
35647
|
+
});
|
|
35648
|
+
const collapseCount = computed(() => {
|
|
35649
|
+
var _a;
|
|
35650
|
+
return ((_a = props.searchConfig) == null ? void 0 : _a.collapseCount) ?? 3;
|
|
35651
|
+
});
|
|
35652
|
+
const isSearchExpanded = ref(false);
|
|
35653
|
+
const needToggle = computed(() => searchFields.value.length > collapseCount.value);
|
|
35654
|
+
const displayFields = computed(() => {
|
|
35655
|
+
if (isSearchExpanded.value || !needToggle.value) {
|
|
35656
|
+
return searchFields.value;
|
|
35657
|
+
}
|
|
35658
|
+
return searchFields.value.slice(0, collapseCount.value);
|
|
35659
|
+
});
|
|
35660
|
+
const inlineOperationsButtons = computed(() => props.inlineOperationsConfig.buttons || []);
|
|
35661
|
+
const visibleInlineButtons = computed(() => {
|
|
35662
|
+
const collapseCount2 = props.inlineOperationsConfig.collapseCount ?? 3;
|
|
35663
|
+
const buttons = inlineOperationsButtons.value.filter((btn) => btn !== "operation");
|
|
35664
|
+
return buttons.slice(0, collapseCount2);
|
|
35665
|
+
});
|
|
35666
|
+
const hiddenInlineButtons = computed(() => {
|
|
35667
|
+
const collapseCount2 = props.inlineOperationsConfig.collapseCount ?? 3;
|
|
35668
|
+
const buttons = inlineOperationsButtons.value.filter((btn) => btn !== "operation");
|
|
35669
|
+
return buttons.slice(collapseCount2);
|
|
35670
|
+
});
|
|
35671
|
+
const showBatchOperations = computed(() => {
|
|
35672
|
+
return hiddenInlineButtons.value.length > 0;
|
|
35673
|
+
});
|
|
35674
|
+
const searchForm = ref({});
|
|
35675
|
+
const customColumnVisible = ref(false);
|
|
35676
|
+
const allColumns = computed(() => props.config.columns || []);
|
|
35677
|
+
const visibleColumns = ref({});
|
|
35678
|
+
const tempVisibleColumns = ref({});
|
|
35679
|
+
function initVisibleColumns() {
|
|
35680
|
+
const columns2 = {};
|
|
35681
|
+
allColumns.value.forEach((col) => {
|
|
35682
|
+
const key = getColumnKey(col);
|
|
35683
|
+
if (key) {
|
|
35684
|
+
columns2[key] = true;
|
|
35775
35685
|
}
|
|
35776
|
-
}
|
|
35777
|
-
|
|
35778
|
-
|
|
35779
|
-
|
|
35780
|
-
|
|
35781
|
-
|
|
35782
|
-
|
|
35783
|
-
|
|
35784
|
-
hex: "十六进制"
|
|
35785
|
-
},
|
|
35786
|
-
formDesign: {
|
|
35787
|
-
formName: "表单名称",
|
|
35788
|
-
defFormTitle: "未命名的表单",
|
|
35789
|
-
widgetPropTab: "控件属性",
|
|
35790
|
-
widgetFormTab: "表单属性",
|
|
35791
|
-
error: {
|
|
35792
|
-
wdFormUni: "该类型的控件在表单中只允许添加一个",
|
|
35793
|
-
wdSubUni: "该类型的控件在子表中只允许添加一个"
|
|
35794
|
-
},
|
|
35795
|
-
styleSetting: {
|
|
35796
|
-
btn: "样式设置",
|
|
35797
|
-
title: "表单的样式设置",
|
|
35798
|
-
layoutTitle: "控件布局",
|
|
35799
|
-
verticalLayout: "上下布局",
|
|
35800
|
-
horizontalLayout: "横向布局",
|
|
35801
|
-
styleTitle: "标题样式",
|
|
35802
|
-
boldTitle: "标题加粗",
|
|
35803
|
-
fontBold: "加粗",
|
|
35804
|
-
fontNormal: "常规",
|
|
35805
|
-
colonTitle: "显示冒号",
|
|
35806
|
-
colonVisible: "显示",
|
|
35807
|
-
colonHidden: "隐藏",
|
|
35808
|
-
alignTitle: "对齐方式",
|
|
35809
|
-
widthTitle: "标题宽度",
|
|
35810
|
-
alignLeft: "居左",
|
|
35811
|
-
alignRight: "居右",
|
|
35812
|
-
unitPx: "像素",
|
|
35813
|
-
unitPct: "百分比"
|
|
35814
|
-
},
|
|
35815
|
-
widget: {
|
|
35816
|
-
group: {
|
|
35817
|
-
base: "基础控件",
|
|
35818
|
-
layout: "布局控件",
|
|
35819
|
-
system: "系统控件",
|
|
35820
|
-
module: "模块控件",
|
|
35821
|
-
chart: "图表控件",
|
|
35822
|
-
advanced: "高级控件"
|
|
35823
|
-
},
|
|
35824
|
-
copyTitle: "副本_{0}",
|
|
35825
|
-
component: {
|
|
35826
|
-
input: "输入框",
|
|
35827
|
-
textarea: "文本域",
|
|
35828
|
-
select: "下拉选择",
|
|
35829
|
-
row: "一行多列",
|
|
35830
|
-
title: "标题",
|
|
35831
|
-
text: "文本",
|
|
35832
|
-
subtable: "子表",
|
|
35833
|
-
VxeSwitch: "是/否",
|
|
35834
|
-
VxeInput: "输入框",
|
|
35835
|
-
VxeNumberInput: "数字",
|
|
35836
|
-
VxeDatePicker: "日期",
|
|
35837
|
-
VxeTextarea: "文本域",
|
|
35838
|
-
VxeSelect: "下拉选择",
|
|
35839
|
-
VxeTreeSelect: "树形选择",
|
|
35840
|
-
VxeRadioGroup: "单选框",
|
|
35841
|
-
VxeCheckboxGroup: "复选框",
|
|
35842
|
-
VxeUploadFile: "文件",
|
|
35843
|
-
VxeUploadImage: "图片",
|
|
35844
|
-
VxeRate: "评分",
|
|
35845
|
-
VxeSlider: "滑块"
|
|
35846
|
-
}
|
|
35847
|
-
},
|
|
35848
|
-
widgetProp: {
|
|
35849
|
-
name: "控件名称",
|
|
35850
|
-
placeholder: "提示语",
|
|
35851
|
-
required: "必填校验",
|
|
35852
|
-
multiple: "允许多选",
|
|
35853
|
-
displaySetting: {
|
|
35854
|
-
name: "显示设置",
|
|
35855
|
-
pc: "电脑端",
|
|
35856
|
-
mobile: "手机端",
|
|
35857
|
-
visible: "显示",
|
|
35858
|
-
hidden: "隐藏"
|
|
35859
|
-
},
|
|
35860
|
-
dataSource: {
|
|
35861
|
-
name: "数据源",
|
|
35862
|
-
defValue: "选项{0}",
|
|
35863
|
-
addOption: "添加选项",
|
|
35864
|
-
batchEditOption: "批量编辑",
|
|
35865
|
-
batchEditTip: "每行对应一个选项,支持从表格、Excel、WPS 中直接复制粘贴。",
|
|
35866
|
-
batchEditSubTip: "每行对应一个选项,如果是分组,子项可以是空格或制表键开头,支持从表格、Excel、WPS 中直接复制粘贴。",
|
|
35867
|
-
buildOption: "生成选项"
|
|
35868
|
-
},
|
|
35869
|
-
rowProp: {
|
|
35870
|
-
colSize: "列数",
|
|
35871
|
-
col2: "两列",
|
|
35872
|
-
col3: "三列",
|
|
35873
|
-
col4: "四列",
|
|
35874
|
-
col6: "六列",
|
|
35875
|
-
layout: "布局"
|
|
35876
|
-
},
|
|
35877
|
-
textProp: {
|
|
35878
|
-
name: "内容",
|
|
35879
|
-
alignTitle: "对齐方式",
|
|
35880
|
-
alignLeft: "居左",
|
|
35881
|
-
alignCenter: "居中",
|
|
35882
|
-
alignRight: "居右",
|
|
35883
|
-
colorTitle: "字体颜色",
|
|
35884
|
-
sizeTitle: "字体大小",
|
|
35885
|
-
boldTitle: "字体加粗",
|
|
35886
|
-
fontNormal: "常规",
|
|
35887
|
-
fontBold: "加粗"
|
|
35888
|
-
},
|
|
35889
|
-
subtableProp: {
|
|
35890
|
-
seqTitle: "序号",
|
|
35891
|
-
showSeq: "显示序号",
|
|
35892
|
-
showCheckbox: "允许多选",
|
|
35893
|
-
errSubDrag: "子表不支持该控件,请使用其他控件",
|
|
35894
|
-
colPlace: "将控件拖拽进来"
|
|
35895
|
-
},
|
|
35896
|
-
uploadProp: {
|
|
35897
|
-
limitFileCount: "文件数量限制",
|
|
35898
|
-
limitFileSize: "文件大小限制",
|
|
35899
|
-
multiFile: "允许上传多个文件",
|
|
35900
|
-
limitImgCount: "图片数量限制",
|
|
35901
|
-
limitImgSize: "图片大小限制",
|
|
35902
|
-
multiImg: "允许上传多张图片"
|
|
35686
|
+
});
|
|
35687
|
+
visibleColumns.value = columns2;
|
|
35688
|
+
if (props.isSaveCustomColumns) {
|
|
35689
|
+
try {
|
|
35690
|
+
const storage = getStorage();
|
|
35691
|
+
const saved = storage == null ? void 0 : storage.getItem(`vtable:visible-columns:${storageKey.value}`);
|
|
35692
|
+
if (saved) {
|
|
35693
|
+
visibleColumns.value = JSON.parse(saved);
|
|
35903
35694
|
}
|
|
35695
|
+
} catch (e) {
|
|
35696
|
+
console.error(e, "初始化自定义列失败");
|
|
35904
35697
|
}
|
|
35905
|
-
}
|
|
35906
|
-
|
|
35907
|
-
|
|
35908
|
-
|
|
35909
|
-
|
|
35910
|
-
|
|
35911
|
-
|
|
35912
|
-
|
|
35913
|
-
|
|
35914
|
-
|
|
35915
|
-
|
|
35916
|
-
|
|
35917
|
-
|
|
35918
|
-
|
|
35919
|
-
|
|
35920
|
-
|
|
35921
|
-
|
|
35922
|
-
|
|
35923
|
-
|
|
35924
|
-
|
|
35698
|
+
}
|
|
35699
|
+
}
|
|
35700
|
+
function resetCustomColumns() {
|
|
35701
|
+
try {
|
|
35702
|
+
const storage = getStorage();
|
|
35703
|
+
storage == null ? void 0 : storage.removeItem(`vtable:visible-columns:${storageKey.value}`);
|
|
35704
|
+
} catch (e) {
|
|
35705
|
+
console.error(e, "重置自定义列失败");
|
|
35706
|
+
}
|
|
35707
|
+
initVisibleColumns();
|
|
35708
|
+
}
|
|
35709
|
+
watch(customColumnVisible, (visible) => {
|
|
35710
|
+
if (visible) {
|
|
35711
|
+
tempVisibleColumns.value = { ...visibleColumns.value };
|
|
35712
|
+
}
|
|
35713
|
+
});
|
|
35714
|
+
function handleSaveCustomColumn() {
|
|
35715
|
+
const checkedCount = Object.values(tempVisibleColumns.value).filter(Boolean).length;
|
|
35716
|
+
if (checkedCount === 0) {
|
|
35717
|
+
console.warn("[VTable] 至少需要保留一列");
|
|
35718
|
+
emit("check-column-change", false);
|
|
35719
|
+
return;
|
|
35720
|
+
}
|
|
35721
|
+
visibleColumns.value = { ...tempVisibleColumns.value };
|
|
35722
|
+
if (props.isSaveCustomColumns) {
|
|
35723
|
+
try {
|
|
35724
|
+
const storage = getStorage();
|
|
35725
|
+
storage == null ? void 0 : storage.setItem(`vtable:visible-columns:${storageKey.value}`, JSON.stringify(visibleColumns.value));
|
|
35726
|
+
emit("check-column-change", true);
|
|
35727
|
+
} catch (e) {
|
|
35728
|
+
console.error(e, "保存自定义列失败");
|
|
35925
35729
|
}
|
|
35926
|
-
}
|
|
35927
|
-
|
|
35928
|
-
|
|
35929
|
-
|
|
35930
|
-
|
|
35931
|
-
|
|
35932
|
-
|
|
35933
|
-
|
|
35934
|
-
|
|
35935
|
-
|
|
35936
|
-
|
|
35937
|
-
|
|
35938
|
-
|
|
35730
|
+
}
|
|
35731
|
+
customColumnVisible.value = false;
|
|
35732
|
+
}
|
|
35733
|
+
function handleCancelCustomColumn() {
|
|
35734
|
+
customColumnVisible.value = false;
|
|
35735
|
+
}
|
|
35736
|
+
function initSearchForm() {
|
|
35737
|
+
const form = {};
|
|
35738
|
+
searchFields.value.forEach((field) => {
|
|
35739
|
+
form[field.field] = field.defaultValue ?? (field.type === "dateRange" ? [] : "");
|
|
35740
|
+
});
|
|
35741
|
+
searchForm.value = form;
|
|
35742
|
+
}
|
|
35743
|
+
watch(searchFields, () => {
|
|
35744
|
+
initSearchForm();
|
|
35745
|
+
}, { immediate: true });
|
|
35746
|
+
watch(allColumns, () => {
|
|
35747
|
+
initVisibleColumns();
|
|
35748
|
+
}, { immediate: true });
|
|
35749
|
+
function handleSearch() {
|
|
35750
|
+
emit("search", { type: "search", ...searchForm.value });
|
|
35751
|
+
}
|
|
35752
|
+
function handleReset() {
|
|
35753
|
+
initSearchForm();
|
|
35754
|
+
emit("reset");
|
|
35755
|
+
emit("search", { type: "reset", ...searchForm.value });
|
|
35756
|
+
}
|
|
35757
|
+
const defaultTableConfig = {
|
|
35758
|
+
stripe: false,
|
|
35759
|
+
"empty-text": "没有数据了",
|
|
35760
|
+
"header-row-class-name": "custom-header-row-class",
|
|
35761
|
+
"header-cell-config": { height: 40 },
|
|
35762
|
+
"cell-class-name": "custom-cell-class",
|
|
35763
|
+
"column-config": {
|
|
35764
|
+
resizable: true
|
|
35765
|
+
}
|
|
35766
|
+
};
|
|
35767
|
+
const tableProps2 = computed(() => ({
|
|
35768
|
+
...defaultTableConfig,
|
|
35769
|
+
...props.config.table || {}
|
|
35770
|
+
}));
|
|
35771
|
+
function readWidths() {
|
|
35772
|
+
if (!props.isSaveWidths) return {};
|
|
35773
|
+
try {
|
|
35774
|
+
const storage = getStorage();
|
|
35775
|
+
const data = storage == null ? void 0 : storage.getItem(`vtable:col-widths:${storageKey.value}`);
|
|
35776
|
+
return data ? JSON.parse(data) : {};
|
|
35777
|
+
} catch (e) {
|
|
35778
|
+
console.warn("[VTable] 读取列宽失败:", e);
|
|
35779
|
+
return {};
|
|
35780
|
+
}
|
|
35781
|
+
}
|
|
35782
|
+
function saveWidths(obj) {
|
|
35783
|
+
if (!props.isSaveWidths) return;
|
|
35784
|
+
try {
|
|
35785
|
+
const storage = getStorage();
|
|
35786
|
+
storage == null ? void 0 : storage.setItem(`vtable:col-widths:${storageKey.value}`, JSON.stringify(obj || {}));
|
|
35787
|
+
} catch (e) {
|
|
35788
|
+
console.warn("[VTable] 保存列宽失败:", e);
|
|
35789
|
+
}
|
|
35790
|
+
}
|
|
35791
|
+
function handleResizeChange({ column, $table }) {
|
|
35792
|
+
const widths = {};
|
|
35793
|
+
$table.getColumns().forEach((col) => {
|
|
35794
|
+
const key = col.property || col.field || col.key;
|
|
35795
|
+
if (key) widths[key] = col.renderWidth;
|
|
35796
|
+
});
|
|
35797
|
+
saveWidths(widths);
|
|
35798
|
+
}
|
|
35799
|
+
const columns = computed(() => {
|
|
35800
|
+
let cols = props.config.columns || [];
|
|
35801
|
+
cols = cols.filter((col) => {
|
|
35802
|
+
const key = getColumnKey(col);
|
|
35803
|
+
if (Object.keys(visibleColumns.value).length === 0) {
|
|
35804
|
+
return true;
|
|
35939
35805
|
}
|
|
35940
|
-
|
|
35941
|
-
|
|
35942
|
-
|
|
35943
|
-
|
|
35944
|
-
|
|
35945
|
-
|
|
35946
|
-
|
|
35947
|
-
|
|
35948
|
-
|
|
35949
|
-
|
|
35950
|
-
|
|
35951
|
-
second: "{yyyy}年{MM}月{dd}日{HH}时{mm}分{ss}秒"
|
|
35952
|
-
},
|
|
35953
|
-
tSimpleFormat: {
|
|
35954
|
-
year: "{yyyy}年",
|
|
35955
|
-
quarter: "{q}季度",
|
|
35956
|
-
month: "{M}月",
|
|
35957
|
-
week: "{W}周",
|
|
35958
|
-
day: "{d}",
|
|
35959
|
-
date: "{d}",
|
|
35960
|
-
hour: "{HH}",
|
|
35961
|
-
minute: "{mm}",
|
|
35962
|
-
second: "{ss}"
|
|
35963
|
-
},
|
|
35964
|
-
dayss: {
|
|
35965
|
-
w0: "日",
|
|
35966
|
-
w1: "一",
|
|
35967
|
-
w2: "二",
|
|
35968
|
-
w3: "三",
|
|
35969
|
-
w4: "四",
|
|
35970
|
-
w5: "五",
|
|
35971
|
-
w6: "六"
|
|
35806
|
+
return visibleColumns.value[key] !== false;
|
|
35807
|
+
});
|
|
35808
|
+
if (props.showOperation) {
|
|
35809
|
+
const operationCol = { field: OPERATION_FIELD, title: "操作", fixed: props.operationConfig.fixed, width: props.operationConfig.width };
|
|
35810
|
+
cols = [...cols, operationCol];
|
|
35811
|
+
}
|
|
35812
|
+
const widths = readWidths();
|
|
35813
|
+
return cols.map((col) => {
|
|
35814
|
+
const key = getColumnKey(col);
|
|
35815
|
+
if (key && widths && widths[key] != null) {
|
|
35816
|
+
return { ...col, width: widths[key] };
|
|
35972
35817
|
}
|
|
35973
|
-
|
|
35974
|
-
|
|
35975
|
-
|
|
35976
|
-
|
|
35977
|
-
|
|
35978
|
-
|
|
35979
|
-
|
|
35980
|
-
|
|
35981
|
-
|
|
35982
|
-
|
|
35983
|
-
|
|
35984
|
-
|
|
35985
|
-
|
|
35986
|
-
findLabel: "查找",
|
|
35987
|
-
replaceLabel: "替换",
|
|
35988
|
-
findTitle: "查找内容:",
|
|
35989
|
-
replaceTitle: "替换为:",
|
|
35990
|
-
tabs: {
|
|
35991
|
-
find: "查找",
|
|
35992
|
-
replace: "替换"
|
|
35993
|
-
},
|
|
35994
|
-
filter: {
|
|
35995
|
-
re: "正则表达式",
|
|
35996
|
-
whole: "全词匹配",
|
|
35997
|
-
sensitive: "区分大小写"
|
|
35998
|
-
},
|
|
35999
|
-
btns: {
|
|
36000
|
-
findNext: "查找下一个",
|
|
36001
|
-
findAll: "查找全部",
|
|
36002
|
-
replace: "替换",
|
|
36003
|
-
replaceAll: "替换全部",
|
|
36004
|
-
cancel: "取消"
|
|
36005
|
-
},
|
|
36006
|
-
header: {
|
|
36007
|
-
seq: "#",
|
|
36008
|
-
cell: "单元格",
|
|
36009
|
-
value: "值"
|
|
36010
|
-
},
|
|
36011
|
-
body: {
|
|
36012
|
-
row: "行:{0}",
|
|
36013
|
-
col: "列:{0}"
|
|
36014
|
-
},
|
|
36015
|
-
empty: "(空值)",
|
|
36016
|
-
reError: "无效的正则表达式",
|
|
36017
|
-
recordCount: "已找到 {0} 个单元格",
|
|
36018
|
-
notCell: "找不到匹配的单元格",
|
|
36019
|
-
replaceSuccess: "成功替换 {0} 个单元格"
|
|
36020
|
-
}
|
|
36021
|
-
},
|
|
36022
|
-
extendPivotTable: {
|
|
36023
|
-
aggregation: {
|
|
36024
|
-
grouping: "分组",
|
|
36025
|
-
values: "值",
|
|
36026
|
-
groupPlaceholder: "拖至此处进行分组",
|
|
36027
|
-
valuesPlaceholder: "拖至此处进行聚合",
|
|
36028
|
-
dragExistCol: "该列已存在",
|
|
36029
|
-
sortHelpTip: "点击并拖动图标可以调整顺序"
|
|
36030
|
-
},
|
|
36031
|
-
aggFuncs: {
|
|
36032
|
-
sum: "求和",
|
|
36033
|
-
count: "计数",
|
|
36034
|
-
avg: "平均值",
|
|
36035
|
-
min: "最小值",
|
|
36036
|
-
max: "最大值",
|
|
36037
|
-
first: "首个值",
|
|
36038
|
-
last: "末尾值"
|
|
36039
|
-
}
|
|
36040
|
-
},
|
|
36041
|
-
filterComplexInput: {
|
|
36042
|
-
menus: {
|
|
36043
|
-
fixedColumn: "冻结列",
|
|
36044
|
-
fixedGroup: "冻结分组",
|
|
36045
|
-
cancelFixed: "取消冻结",
|
|
36046
|
-
fixedLeft: "冻结左侧",
|
|
36047
|
-
fixedRight: "冻结右侧"
|
|
36048
|
-
},
|
|
36049
|
-
cases: {
|
|
36050
|
-
equal: "等于",
|
|
36051
|
-
gt: "大于",
|
|
36052
|
-
lt: "小于",
|
|
36053
|
-
begin: "开头是",
|
|
36054
|
-
endin: "结尾是",
|
|
36055
|
-
include: "包含",
|
|
36056
|
-
isSensitive: "区分大小写"
|
|
36057
|
-
}
|
|
36058
|
-
},
|
|
36059
|
-
filterCombination: {
|
|
36060
|
-
menus: {
|
|
36061
|
-
sort: "排序",
|
|
36062
|
-
clearSort: "清除排序",
|
|
36063
|
-
sortAsc: "升序",
|
|
36064
|
-
sortDesc: "降序",
|
|
36065
|
-
fixedColumn: "冻结列",
|
|
36066
|
-
fixedGroup: "冻结分组",
|
|
36067
|
-
cancelFixed: "取消冻结",
|
|
36068
|
-
fixedLeft: "冻结左侧",
|
|
36069
|
-
fixedRight: "冻结右侧",
|
|
36070
|
-
clearFilter: "清除筛选",
|
|
36071
|
-
textOption: "文本筛选",
|
|
36072
|
-
numberOption: "数值筛选",
|
|
36073
|
-
dateOption: "日期筛选"
|
|
36074
|
-
},
|
|
36075
|
-
popup: {
|
|
36076
|
-
title: "自定义筛选的方式",
|
|
36077
|
-
currColumnTitle: "显示行:",
|
|
36078
|
-
and: "与",
|
|
36079
|
-
or: "或",
|
|
36080
|
-
describeHtml: "可用 ? 代表单个字符<br/>用 * 代表任意多个字符"
|
|
36081
|
-
},
|
|
36082
|
-
cases: {
|
|
36083
|
-
equal: "等于",
|
|
36084
|
-
unequal: "不等于",
|
|
36085
|
-
gt: "大于",
|
|
36086
|
-
ge: "大于或等于",
|
|
36087
|
-
lt: "小于",
|
|
36088
|
-
le: "小于或等于",
|
|
36089
|
-
begin: "开头是",
|
|
36090
|
-
notbegin: "开头不是",
|
|
36091
|
-
endin: "结尾是",
|
|
36092
|
-
notendin: "结尾不是",
|
|
36093
|
-
include: "包含",
|
|
36094
|
-
exclude: "不包含",
|
|
36095
|
-
between: "介于",
|
|
36096
|
-
isAfter: "在以下日期之后",
|
|
36097
|
-
eqAfter: "在以下日期之后或与之相同",
|
|
36098
|
-
isBefore: "在以下日期之前",
|
|
36099
|
-
eqBefore: "在以下日期之前或与之相同",
|
|
36100
|
-
top10: "前10项",
|
|
36101
|
-
aboveAverage: "高于平均值",
|
|
36102
|
-
belowAverage: "低于平均值",
|
|
36103
|
-
before: "之前",
|
|
36104
|
-
after: "之后",
|
|
36105
|
-
tomorrow: "明天",
|
|
36106
|
-
today: "今天",
|
|
36107
|
-
yesterday: "昨天",
|
|
36108
|
-
nextWeek: "下周",
|
|
36109
|
-
thisWeek: "本周",
|
|
36110
|
-
lastWeek: "上周",
|
|
36111
|
-
nextMonth: "下月",
|
|
36112
|
-
thisMonth: "本月",
|
|
36113
|
-
lastMonth: "上月",
|
|
36114
|
-
nextYear: "明年",
|
|
36115
|
-
thisYear: "今年",
|
|
36116
|
-
lastYear: "去年",
|
|
36117
|
-
yearToDate: "本年度截止到现在",
|
|
36118
|
-
custom: "自定义筛选",
|
|
36119
|
-
insensitive: "不区分大小写",
|
|
36120
|
-
isSensitive: "区分大小写"
|
|
36121
|
-
},
|
|
36122
|
-
empty: "(空白)",
|
|
36123
|
-
notData: "无匹配项"
|
|
36124
|
-
}
|
|
36125
|
-
},
|
|
36126
|
-
pro: {
|
|
36127
|
-
area: {
|
|
36128
|
-
mergeErr: "无法对合并单元格进行该操作",
|
|
36129
|
-
multiErr: "无法对多重选择区域进行该操作",
|
|
36130
|
-
extendErr: "如果延伸的区域包含被合并的单元格,所有合并的单元格需大小相同",
|
|
36131
|
-
pasteMultiErr: "无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作"
|
|
36132
|
-
},
|
|
36133
|
-
fnr: {
|
|
36134
|
-
title: "查找和替换",
|
|
36135
|
-
findLabel: "查找",
|
|
36136
|
-
replaceLabel: "替换",
|
|
36137
|
-
findTitle: "查找内容:",
|
|
36138
|
-
replaceTitle: "替换为:",
|
|
36139
|
-
tabs: {
|
|
36140
|
-
find: "查找",
|
|
36141
|
-
replace: "替换"
|
|
36142
|
-
},
|
|
36143
|
-
filter: {
|
|
36144
|
-
re: "正则表达式",
|
|
36145
|
-
whole: "全词匹配",
|
|
36146
|
-
sensitive: "区分大小写"
|
|
36147
|
-
},
|
|
36148
|
-
btns: {
|
|
36149
|
-
findNext: "查找下一个",
|
|
36150
|
-
findAll: "查找全部",
|
|
36151
|
-
replace: "替换",
|
|
36152
|
-
replaceAll: "替换全部",
|
|
36153
|
-
cancel: "取消"
|
|
36154
|
-
},
|
|
36155
|
-
header: {
|
|
36156
|
-
seq: "#",
|
|
36157
|
-
cell: "单元格",
|
|
36158
|
-
value: "值"
|
|
36159
|
-
},
|
|
36160
|
-
empty: "(空值)",
|
|
36161
|
-
reError: "无效的正则表达式",
|
|
36162
|
-
recordCount: "已找到 {0} 个单元格",
|
|
36163
|
-
notCell: "找不到匹配的单元格",
|
|
36164
|
-
replaceSuccess: "成功替换 {0} 个单元格"
|
|
36165
|
-
}
|
|
36166
|
-
},
|
|
36167
|
-
renderer: {
|
|
36168
|
-
search: "搜索",
|
|
36169
|
-
cases: {
|
|
36170
|
-
equal: "等于",
|
|
36171
|
-
unequal: "不等于",
|
|
36172
|
-
gt: "大于",
|
|
36173
|
-
ge: "大于或等于",
|
|
36174
|
-
lt: "小于",
|
|
36175
|
-
le: "小于或等于",
|
|
36176
|
-
begin: "开头是",
|
|
36177
|
-
notbegin: "开头不是",
|
|
36178
|
-
endin: "结尾是",
|
|
36179
|
-
notendin: "结尾不是",
|
|
36180
|
-
include: "包含",
|
|
36181
|
-
exclude: "不包含",
|
|
36182
|
-
between: "介于",
|
|
36183
|
-
top10: "前10项",
|
|
36184
|
-
aboveAverage: "高于平均值",
|
|
36185
|
-
belowAverage: "低于平均值",
|
|
36186
|
-
custom: "自定义筛选",
|
|
36187
|
-
insensitive: "不区分大小写",
|
|
36188
|
-
isSensitive: "区分大小写"
|
|
36189
|
-
},
|
|
36190
|
-
combination: {
|
|
36191
|
-
menus: {
|
|
36192
|
-
sort: "排序",
|
|
36193
|
-
clearSort: "清除排序",
|
|
36194
|
-
sortAsc: "升序",
|
|
36195
|
-
sortDesc: "降序",
|
|
36196
|
-
fixedColumn: "冻结列",
|
|
36197
|
-
fixedGroup: "冻结分组",
|
|
36198
|
-
cancelFixed: "取消冻结",
|
|
36199
|
-
fixedLeft: "冻结到左侧",
|
|
36200
|
-
fixedRight: "冻结到右侧",
|
|
36201
|
-
clearFilter: "清除筛选",
|
|
36202
|
-
textOption: "文本筛选",
|
|
36203
|
-
numberOption: "数值筛选",
|
|
36204
|
-
dateOption: "日期筛选"
|
|
36205
|
-
},
|
|
36206
|
-
popup: {
|
|
36207
|
-
title: "自定义筛选的方式",
|
|
36208
|
-
currColumnTitle: "显示行:",
|
|
36209
|
-
and: "与",
|
|
36210
|
-
or: "或",
|
|
36211
|
-
describeHtml: "可用 ? 代表单个字符<br/>用 * 代表任意多个字符"
|
|
36212
|
-
},
|
|
36213
|
-
empty: "(空白)",
|
|
36214
|
-
notData: "无匹配项"
|
|
36215
|
-
}
|
|
36216
|
-
}
|
|
35818
|
+
return { ...col };
|
|
35819
|
+
});
|
|
35820
|
+
});
|
|
35821
|
+
const innerData = ref(props.data || []);
|
|
35822
|
+
const pageConfig = ref({
|
|
35823
|
+
currentPage: 1,
|
|
35824
|
+
pageSize: 10
|
|
35825
|
+
});
|
|
35826
|
+
watch(() => props.data, (val) => {
|
|
35827
|
+
innerData.value = val || [];
|
|
35828
|
+
}, { immediate: true });
|
|
35829
|
+
function getColumnKey(col) {
|
|
35830
|
+
return col.prop || col.field || col.key || col.title;
|
|
36217
35831
|
}
|
|
36218
|
-
|
|
36219
|
-
|
|
36220
|
-
|
|
36221
|
-
|
|
36222
|
-
const vxeZhCN = /* @__PURE__ */ getDefaultExportFromCjs(zhCNExports);
|
|
36223
|
-
const _export_sfc = (sfc, props) => {
|
|
36224
|
-
const target = sfc.__vccOpts || sfc;
|
|
36225
|
-
for (const [key, val] of props) {
|
|
36226
|
-
target[key] = val;
|
|
36227
|
-
}
|
|
36228
|
-
return target;
|
|
36229
|
-
};
|
|
36230
|
-
const _hoisted_1$3 = {
|
|
36231
|
-
t: "1767603030078",
|
|
36232
|
-
class: "icon",
|
|
36233
|
-
viewBox: "0 0 1024 1024",
|
|
36234
|
-
version: "1.1",
|
|
36235
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
36236
|
-
"p-id": "3993",
|
|
36237
|
-
width: "16",
|
|
36238
|
-
height: "16"
|
|
36239
|
-
};
|
|
36240
|
-
const _sfc_main$4 = {
|
|
36241
|
-
__name: "ImportIcon",
|
|
36242
|
-
props: {
|
|
36243
|
-
size: {
|
|
36244
|
-
type: [String, Number],
|
|
36245
|
-
default: 16
|
|
36246
|
-
},
|
|
36247
|
-
color: {
|
|
36248
|
-
type: String,
|
|
36249
|
-
default: "currentColor"
|
|
35832
|
+
function handlePageChange({ currentPage, pageSize }) {
|
|
35833
|
+
pageConfig.value.currentPage = currentPage;
|
|
35834
|
+
pageConfig.value.pageSize = pageSize;
|
|
35835
|
+
emit("page-change", { currentPage, pageSize });
|
|
36250
35836
|
}
|
|
36251
|
-
|
|
36252
|
-
|
|
36253
|
-
|
|
36254
|
-
|
|
36255
|
-
|
|
36256
|
-
|
|
36257
|
-
|
|
36258
|
-
fill: "#165DFF"
|
|
36259
|
-
}, null, -1),
|
|
36260
|
-
createElementVNode("path", {
|
|
36261
|
-
d: "M400.91 684.93l35.31 45.03 248.33-194.78L437.5 316.99l-37.88 42.88 164.63 145.39H247.59v57.22h309.44L400.91 684.93z",
|
|
36262
|
-
"p-id": "3995",
|
|
36263
|
-
fill: "#165DFF"
|
|
36264
|
-
}, null, -1)
|
|
36265
|
-
])]);
|
|
36266
|
-
};
|
|
36267
|
-
}
|
|
36268
|
-
};
|
|
36269
|
-
const ImportIcon = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-76df1f54"]]);
|
|
36270
|
-
const _hoisted_1$2 = {
|
|
36271
|
-
t: "1767602925476",
|
|
36272
|
-
class: "icon",
|
|
36273
|
-
viewBox: "0 0 1024 1024",
|
|
36274
|
-
version: "1.1",
|
|
36275
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
36276
|
-
"p-id": "2910",
|
|
36277
|
-
width: "16",
|
|
36278
|
-
height: "16"
|
|
36279
|
-
};
|
|
36280
|
-
const _sfc_main$3 = {
|
|
36281
|
-
__name: "ExportIcon",
|
|
36282
|
-
props: {
|
|
36283
|
-
size: {
|
|
36284
|
-
type: [String, Number],
|
|
36285
|
-
default: 16
|
|
36286
|
-
},
|
|
36287
|
-
color: {
|
|
36288
|
-
type: String,
|
|
36289
|
-
default: "#364053"
|
|
35837
|
+
const nativeTypes = ["seq", "index", "selection", "checkbox", "radio", "expand"];
|
|
35838
|
+
const isNativeType = (col) => !!(col && col.type && nativeTypes.includes(col.type));
|
|
35839
|
+
function handleOperationClick(event, row) {
|
|
35840
|
+
const action = event.target.getAttribute("data-action");
|
|
35841
|
+
if (action) {
|
|
35842
|
+
emit(action, row);
|
|
35843
|
+
}
|
|
36290
35844
|
}
|
|
36291
|
-
|
|
36292
|
-
|
|
36293
|
-
|
|
36294
|
-
|
|
36295
|
-
|
|
36296
|
-
d: "M102.505095 877.1448H919.213044c33.644561-1.453005 61.220885 15.425134 61.193458 46.580454v5.268816c1.031553 33.814479-26.879926 51.281313-61.193458 49.925309H102.505095c-40.773785 0-59.002577-12.693057-61.198809-48.587367v-5.269485c1.527261-36.214079 23.157771-49.147965 61.198809-47.917727z m836.401788-537.958418L612.352681 56.719379a18.939908 18.939908 0 0 0-20.044379-2.474524 18.955295 18.955295 0 0 0-10.895532 17.003906v158.855872c-0.14985 9.740887-7.766754 16.692834-17.28755 18.76263-407.396677 88.581132-472.185854 425.174582-474.324554 546.45502-0.15587 8.819045 6.040809 16.485453 14.619024 18.501732 8.580223 2.014272 17.422013-2.150073 21.325459-10.057311C209.917762 630.319236 340.613297 444.815572 561.577779 463.097213c5.178505 0.428141 10.243954 1.745345 13.982163 5.357789 3.746238 3.612444 5.860186 8.593602 5.852828 13.794183v155.116992a18.953288 18.953288 0 0 0 10.805889 17.159108 18.936563 18.936563 0 0 0 20.134022-2.426358l326.554202-284.138093a19.157324 19.157324 0 0 0 6.512433-14.386891c0-5.509646-2.374847-10.754379-6.512433-14.387561z m0 0",
|
|
36297
|
-
fill: "#165DFF",
|
|
36298
|
-
"p-id": "2911"
|
|
36299
|
-
}, null, -1)
|
|
36300
|
-
])]);
|
|
36301
|
-
};
|
|
36302
|
-
}
|
|
36303
|
-
};
|
|
36304
|
-
const ExportIcon = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-4d162ab2"]]);
|
|
36305
|
-
const _hoisted_1$1 = { class: "vtable-wrapper" };
|
|
36306
|
-
const _hoisted_2$1 = { class: "vtable-title" };
|
|
36307
|
-
const _hoisted_3$1 = {
|
|
36308
|
-
key: 0,
|
|
36309
|
-
class: "vtable-search"
|
|
36310
|
-
};
|
|
36311
|
-
const _hoisted_4$1 = { class: "vtable-search-left" };
|
|
36312
|
-
const _hoisted_5$1 = { class: "vtable-search-content" };
|
|
36313
|
-
const _hoisted_6$1 = { class: "vtable-search-fields" };
|
|
36314
|
-
const _hoisted_7$1 = {
|
|
36315
|
-
key: 0,
|
|
36316
|
-
class: "vtable-search-label"
|
|
36317
|
-
};
|
|
36318
|
-
const _hoisted_8$1 = { class: "vtable-search-actions" };
|
|
36319
|
-
const _hoisted_9$1 = { class: "vtable-search-buttons" };
|
|
36320
|
-
const _hoisted_10$1 = { class: "toggle-icon-circle" };
|
|
36321
|
-
const _hoisted_11$1 = { class: "vtable-search-right" };
|
|
36322
|
-
const _hoisted_12 = { class: "custom-column-popover" };
|
|
36323
|
-
const _hoisted_13 = { class: "custom-column-list" };
|
|
36324
|
-
const _hoisted_14 = { class: "custom-column-footer" };
|
|
36325
|
-
const _hoisted_15 = { class: "vtable-search-operations" };
|
|
36326
|
-
const _hoisted_16 = { key: 0 };
|
|
36327
|
-
const _hoisted_17 = { key: 1 };
|
|
36328
|
-
const _hoisted_18 = {
|
|
36329
|
-
key: 2,
|
|
36330
|
-
style: { "margin-left": "4px" }
|
|
36331
|
-
};
|
|
36332
|
-
const _hoisted_19 = {
|
|
36333
|
-
key: 3,
|
|
36334
|
-
style: { "margin-left": "4px" }
|
|
36335
|
-
};
|
|
36336
|
-
const _hoisted_20 = {
|
|
36337
|
-
key: 4,
|
|
36338
|
-
style: { "margin-left": "4px" }
|
|
36339
|
-
};
|
|
36340
|
-
const _hoisted_21 = ["onClick"];
|
|
36341
|
-
const _hoisted_22 = {
|
|
36342
|
-
key: 0,
|
|
36343
|
-
"data-action": "linePreview",
|
|
36344
|
-
class: "vtable-operation-btn"
|
|
36345
|
-
};
|
|
36346
|
-
const _hoisted_23 = {
|
|
36347
|
-
key: 1,
|
|
36348
|
-
"data-action": "lineDownload",
|
|
36349
|
-
class: "vtable-operation-btn"
|
|
36350
|
-
};
|
|
36351
|
-
const _hoisted_24 = {
|
|
36352
|
-
key: 2,
|
|
36353
|
-
"data-action": "lineRename",
|
|
36354
|
-
class: "vtable-operation-btn"
|
|
36355
|
-
};
|
|
36356
|
-
const _hoisted_25 = {
|
|
36357
|
-
key: 3,
|
|
36358
|
-
"data-action": "lineDelete",
|
|
36359
|
-
class: "vtable-operation-btn"
|
|
36360
|
-
};
|
|
36361
|
-
const _hoisted_26 = { class: "custom-pager-total" };
|
|
36362
|
-
const OPERATION_FIELD = "operation";
|
|
36363
|
-
const _sfc_main$2 = {
|
|
36364
|
-
__name: "VTable",
|
|
36365
|
-
props: {
|
|
36366
|
-
// 表格配置
|
|
36367
|
-
config: {
|
|
36368
|
-
type: Object,
|
|
36369
|
-
required: true,
|
|
36370
|
-
validator: (value) => {
|
|
36371
|
-
if (!value || !value.columns || !Array.isArray(value.columns)) {
|
|
36372
|
-
console.warn("[VTable] config.columns is required and must be an array");
|
|
36373
|
-
return false;
|
|
36374
|
-
}
|
|
36375
|
-
return true;
|
|
35845
|
+
function handleInlineButtonClick(button) {
|
|
35846
|
+
if (typeof button === "string") {
|
|
35847
|
+
emit(button);
|
|
35848
|
+
} else if (typeof button === "object") {
|
|
35849
|
+
emit("button-click", button);
|
|
36376
35850
|
}
|
|
36377
|
-
},
|
|
36378
|
-
// 表格数据
|
|
36379
|
-
data: {
|
|
36380
|
-
type: Array,
|
|
36381
|
-
default: () => []
|
|
36382
|
-
},
|
|
36383
|
-
// 是否持久化列宽
|
|
36384
|
-
isSaveWidths: {
|
|
36385
|
-
type: Boolean,
|
|
36386
|
-
default: false
|
|
36387
|
-
},
|
|
36388
|
-
// 是否持久化自定义列
|
|
36389
|
-
isSaveCustomColumns: {
|
|
36390
|
-
type: Boolean,
|
|
36391
|
-
default: false
|
|
36392
|
-
},
|
|
36393
|
-
// 是否显示操作列
|
|
36394
|
-
showOperation: {
|
|
36395
|
-
type: Boolean,
|
|
36396
|
-
default: false
|
|
36397
|
-
},
|
|
36398
|
-
// 操作列配置
|
|
36399
|
-
operationConfig: {
|
|
36400
|
-
type: Object,
|
|
36401
|
-
default: () => ({
|
|
36402
|
-
preview: true,
|
|
36403
|
-
download: true,
|
|
36404
|
-
rename: true,
|
|
36405
|
-
delete: true,
|
|
36406
|
-
fixed: "left",
|
|
36407
|
-
width: 150
|
|
36408
|
-
})
|
|
36409
|
-
},
|
|
36410
|
-
// 是否启用分页
|
|
36411
|
-
enablePagination: {
|
|
36412
|
-
type: Boolean,
|
|
36413
|
-
default: true
|
|
36414
|
-
},
|
|
36415
|
-
total: {
|
|
36416
|
-
type: Number,
|
|
36417
|
-
default: 0,
|
|
36418
|
-
validator: (value) => value >= 0
|
|
36419
|
-
},
|
|
36420
|
-
// 搜索配置
|
|
36421
|
-
searchConfig: {
|
|
36422
|
-
type: Object,
|
|
36423
|
-
default: () => ({
|
|
36424
|
-
fields: [],
|
|
36425
|
-
// 搜索字段配置
|
|
36426
|
-
collapseCount: 3
|
|
36427
|
-
// 收起时显示的字段数量,默认3个
|
|
36428
|
-
})
|
|
36429
|
-
},
|
|
36430
|
-
// 持久化列宽和自定义列的 storageKey
|
|
36431
|
-
storageKey: {
|
|
36432
|
-
type: String,
|
|
36433
|
-
default: ""
|
|
36434
|
-
},
|
|
36435
|
-
// 自定义列是否显示
|
|
36436
|
-
showCustomColumnButton: {
|
|
36437
|
-
type: Boolean,
|
|
36438
|
-
default: true
|
|
36439
|
-
},
|
|
36440
|
-
// 行外操作按钮配置
|
|
36441
|
-
inlineOperationsConfig: {
|
|
36442
|
-
type: Object,
|
|
36443
|
-
default: () => ({
|
|
36444
|
-
buttons: ["plus", "operation", "delete", "import", "export"],
|
|
36445
|
-
collapseCount: 99
|
|
36446
|
-
})
|
|
36447
|
-
},
|
|
36448
|
-
// 是否显示加载中
|
|
36449
|
-
loading: {
|
|
36450
|
-
type: Boolean,
|
|
36451
|
-
default: false
|
|
36452
|
-
},
|
|
36453
|
-
// 存储类型
|
|
36454
|
-
storageType: {
|
|
36455
|
-
type: String,
|
|
36456
|
-
values: ["localStorage", "sessionStorage", "none"],
|
|
36457
|
-
default: "localStorage"
|
|
36458
35851
|
}
|
|
36459
|
-
|
|
36460
|
-
emits: ["page-change", "check-column-change", "linePreview", "lineDownload", "lineRename", "lineDelete", "search", "reset", "plus", "delete", "import", "export", "button-click"],
|
|
36461
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
36462
|
-
VxeUI$1.setI18n("zh-CN", vxeZhCN);
|
|
36463
|
-
VxeUI$1.setLanguage("zh-CN");
|
|
36464
|
-
const props = __props;
|
|
36465
|
-
const emit = __emit;
|
|
36466
|
-
const PAGE_SIZES = [10, 20, 50, 100];
|
|
36467
|
-
const tableRef = ref();
|
|
36468
|
-
const storageKey = computed(() => {
|
|
36469
|
-
var _a, _b, _c;
|
|
36470
|
-
return props.storageKey || ((_b = (_a = props.config) == null ? void 0 : _a.table) == null ? void 0 : _b.id) || ((_c = props.config) == null ? void 0 : _c.id) || "default";
|
|
36471
|
-
});
|
|
36472
|
-
const getStorage = () => {
|
|
36473
|
-
const type = props.storageType || "localStorage";
|
|
36474
|
-
if (type === "none") return null;
|
|
35852
|
+
function clearWidths() {
|
|
36475
35853
|
try {
|
|
36476
|
-
|
|
35854
|
+
const storage = getStorage();
|
|
35855
|
+
storage == null ? void 0 : storage.removeItem(`vtable:col-widths:${storageKey.value}`);
|
|
36477
35856
|
} catch (e) {
|
|
36478
|
-
console.warn(
|
|
36479
|
-
return null;
|
|
36480
|
-
}
|
|
36481
|
-
};
|
|
36482
|
-
const searchFields = computed(() => {
|
|
36483
|
-
var _a;
|
|
36484
|
-
return ((_a = props.searchConfig) == null ? void 0 : _a.fields) || [];
|
|
36485
|
-
});
|
|
36486
|
-
const collapseCount = computed(() => {
|
|
36487
|
-
var _a;
|
|
36488
|
-
return ((_a = props.searchConfig) == null ? void 0 : _a.collapseCount) ?? 3;
|
|
36489
|
-
});
|
|
36490
|
-
const isSearchExpanded = ref(false);
|
|
36491
|
-
const needToggle = computed(() => searchFields.value.length > collapseCount.value);
|
|
36492
|
-
const displayFields = computed(() => {
|
|
36493
|
-
if (isSearchExpanded.value || !needToggle.value) {
|
|
36494
|
-
return searchFields.value;
|
|
36495
|
-
}
|
|
36496
|
-
return searchFields.value.slice(0, collapseCount.value);
|
|
36497
|
-
});
|
|
36498
|
-
const inlineOperationsButtons = computed(() => props.inlineOperationsConfig.buttons || []);
|
|
36499
|
-
const visibleInlineButtons = computed(() => {
|
|
36500
|
-
const collapseCount2 = props.inlineOperationsConfig.collapseCount ?? 3;
|
|
36501
|
-
const buttons = inlineOperationsButtons.value.filter((btn) => btn !== "operation");
|
|
36502
|
-
return buttons.slice(0, collapseCount2);
|
|
36503
|
-
});
|
|
36504
|
-
const hiddenInlineButtons = computed(() => {
|
|
36505
|
-
const collapseCount2 = props.inlineOperationsConfig.collapseCount ?? 3;
|
|
36506
|
-
const buttons = inlineOperationsButtons.value.filter((btn) => btn !== "operation");
|
|
36507
|
-
return buttons.slice(collapseCount2);
|
|
36508
|
-
});
|
|
36509
|
-
const showBatchOperations = computed(() => {
|
|
36510
|
-
return hiddenInlineButtons.value.length > 0;
|
|
36511
|
-
});
|
|
36512
|
-
const searchForm = ref({});
|
|
36513
|
-
const customColumnVisible = ref(false);
|
|
36514
|
-
const allColumns = computed(() => props.config.columns || []);
|
|
36515
|
-
const visibleColumns = ref({});
|
|
36516
|
-
const tempVisibleColumns = ref({});
|
|
36517
|
-
function initVisibleColumns() {
|
|
36518
|
-
const columns2 = {};
|
|
36519
|
-
allColumns.value.forEach((col) => {
|
|
36520
|
-
const key = getColumnKey(col);
|
|
36521
|
-
if (key) {
|
|
36522
|
-
columns2[key] = true;
|
|
36523
|
-
}
|
|
36524
|
-
});
|
|
36525
|
-
visibleColumns.value = columns2;
|
|
36526
|
-
if (props.isSaveCustomColumns) {
|
|
36527
|
-
try {
|
|
36528
|
-
const storage = getStorage();
|
|
36529
|
-
const saved = storage == null ? void 0 : storage.getItem(`vtable:visible-columns:${storageKey.value}`);
|
|
36530
|
-
if (saved) {
|
|
36531
|
-
visibleColumns.value = JSON.parse(saved);
|
|
36532
|
-
}
|
|
36533
|
-
} catch (e) {
|
|
36534
|
-
console.error(e, "初始化自定义列失败");
|
|
36535
|
-
}
|
|
36536
|
-
}
|
|
36537
|
-
}
|
|
36538
|
-
function resetCustomColumns() {
|
|
36539
|
-
try {
|
|
36540
|
-
const storage = getStorage();
|
|
36541
|
-
storage == null ? void 0 : storage.removeItem(`vtable:visible-columns:${storageKey.value}`);
|
|
36542
|
-
} catch (e) {
|
|
36543
|
-
console.error(e, "重置自定义列失败");
|
|
36544
|
-
}
|
|
36545
|
-
initVisibleColumns();
|
|
36546
|
-
}
|
|
36547
|
-
watch(customColumnVisible, (visible) => {
|
|
36548
|
-
if (visible) {
|
|
36549
|
-
tempVisibleColumns.value = { ...visibleColumns.value };
|
|
36550
|
-
}
|
|
36551
|
-
});
|
|
36552
|
-
function handleSaveCustomColumn() {
|
|
36553
|
-
const checkedCount = Object.values(tempVisibleColumns.value).filter(Boolean).length;
|
|
36554
|
-
if (checkedCount === 0) {
|
|
36555
|
-
console.warn("[VTable] 至少需要保留一列");
|
|
36556
|
-
emit("check-column-change", false);
|
|
36557
|
-
return;
|
|
36558
|
-
}
|
|
36559
|
-
visibleColumns.value = { ...tempVisibleColumns.value };
|
|
36560
|
-
if (props.isSaveCustomColumns) {
|
|
36561
|
-
try {
|
|
36562
|
-
const storage = getStorage();
|
|
36563
|
-
storage == null ? void 0 : storage.setItem(`vtable:visible-columns:${storageKey.value}`, JSON.stringify(visibleColumns.value));
|
|
36564
|
-
emit("check-column-change", true);
|
|
36565
|
-
} catch (e) {
|
|
36566
|
-
console.error(e, "保存自定义列失败");
|
|
36567
|
-
}
|
|
36568
|
-
}
|
|
36569
|
-
customColumnVisible.value = false;
|
|
36570
|
-
}
|
|
36571
|
-
function handleCancelCustomColumn() {
|
|
36572
|
-
customColumnVisible.value = false;
|
|
36573
|
-
}
|
|
36574
|
-
function initSearchForm() {
|
|
36575
|
-
const form = {};
|
|
36576
|
-
searchFields.value.forEach((field) => {
|
|
36577
|
-
form[field.field] = field.defaultValue ?? (field.type === "dateRange" ? [] : "");
|
|
36578
|
-
});
|
|
36579
|
-
searchForm.value = form;
|
|
36580
|
-
}
|
|
36581
|
-
watch(searchFields, () => {
|
|
36582
|
-
initSearchForm();
|
|
36583
|
-
}, { immediate: true });
|
|
36584
|
-
watch(allColumns, () => {
|
|
36585
|
-
initVisibleColumns();
|
|
36586
|
-
}, { immediate: true });
|
|
36587
|
-
function handleSearch() {
|
|
36588
|
-
emit("search", { type: "search", ...searchForm.value });
|
|
36589
|
-
}
|
|
36590
|
-
function handleReset() {
|
|
36591
|
-
initSearchForm();
|
|
36592
|
-
emit("reset");
|
|
36593
|
-
emit("search", { type: "reset", ...searchForm.value });
|
|
36594
|
-
}
|
|
36595
|
-
const defaultTableConfig = {
|
|
36596
|
-
stripe: false,
|
|
36597
|
-
"empty-text": "没有数据了",
|
|
36598
|
-
"header-row-class-name": "custom-header-row-class",
|
|
36599
|
-
"header-cell-config": { height: 40 },
|
|
36600
|
-
"cell-class-name": "custom-cell-class",
|
|
36601
|
-
"column-config": {
|
|
36602
|
-
resizable: true
|
|
36603
|
-
}
|
|
36604
|
-
};
|
|
36605
|
-
const tableProps2 = computed(() => ({
|
|
36606
|
-
...defaultTableConfig,
|
|
36607
|
-
...props.config.table || {}
|
|
36608
|
-
}));
|
|
36609
|
-
function readWidths() {
|
|
36610
|
-
if (!props.isSaveWidths) return {};
|
|
36611
|
-
try {
|
|
36612
|
-
const storage = getStorage();
|
|
36613
|
-
const data = storage == null ? void 0 : storage.getItem(`vtable:col-widths:${storageKey.value}`);
|
|
36614
|
-
return data ? JSON.parse(data) : {};
|
|
36615
|
-
} catch (e) {
|
|
36616
|
-
console.warn("[VTable] 读取列宽失败:", e);
|
|
36617
|
-
return {};
|
|
36618
|
-
}
|
|
36619
|
-
}
|
|
36620
|
-
function saveWidths(obj) {
|
|
36621
|
-
if (!props.isSaveWidths) return;
|
|
36622
|
-
try {
|
|
36623
|
-
const storage = getStorage();
|
|
36624
|
-
storage == null ? void 0 : storage.setItem(`vtable:col-widths:${storageKey.value}`, JSON.stringify(obj || {}));
|
|
36625
|
-
} catch (e) {
|
|
36626
|
-
console.warn("[VTable] 保存列宽失败:", e);
|
|
36627
|
-
}
|
|
36628
|
-
}
|
|
36629
|
-
function handleResizeChange({ column, $table }) {
|
|
36630
|
-
const widths = {};
|
|
36631
|
-
$table.getColumns().forEach((col) => {
|
|
36632
|
-
const key = col.property || col.field || col.key;
|
|
36633
|
-
if (key) widths[key] = col.renderWidth;
|
|
36634
|
-
});
|
|
36635
|
-
saveWidths(widths);
|
|
36636
|
-
}
|
|
36637
|
-
const columns = computed(() => {
|
|
36638
|
-
let cols = props.config.columns || [];
|
|
36639
|
-
cols = cols.filter((col) => {
|
|
36640
|
-
const key = getColumnKey(col);
|
|
36641
|
-
if (Object.keys(visibleColumns.value).length === 0) {
|
|
36642
|
-
return true;
|
|
36643
|
-
}
|
|
36644
|
-
return visibleColumns.value[key] !== false;
|
|
36645
|
-
});
|
|
36646
|
-
if (props.showOperation) {
|
|
36647
|
-
const operationCol = { field: OPERATION_FIELD, title: "操作", fixed: props.operationConfig.fixed, width: props.operationConfig.width };
|
|
36648
|
-
cols = [...cols, operationCol];
|
|
36649
|
-
}
|
|
36650
|
-
const widths = readWidths();
|
|
36651
|
-
return cols.map((col) => {
|
|
36652
|
-
const key = getColumnKey(col);
|
|
36653
|
-
if (key && widths && widths[key] != null) {
|
|
36654
|
-
return { ...col, width: widths[key] };
|
|
36655
|
-
}
|
|
36656
|
-
return { ...col };
|
|
36657
|
-
});
|
|
36658
|
-
});
|
|
36659
|
-
const innerData = ref(props.data || []);
|
|
36660
|
-
const pageConfig = ref({
|
|
36661
|
-
currentPage: 1,
|
|
36662
|
-
pageSize: 10
|
|
36663
|
-
});
|
|
36664
|
-
watch(() => props.data, (val) => {
|
|
36665
|
-
innerData.value = val || [];
|
|
36666
|
-
}, { immediate: true });
|
|
36667
|
-
function getColumnKey(col) {
|
|
36668
|
-
return col.prop || col.field || col.key || col.title;
|
|
36669
|
-
}
|
|
36670
|
-
function handlePageChange({ currentPage, pageSize }) {
|
|
36671
|
-
pageConfig.value.currentPage = currentPage;
|
|
36672
|
-
pageConfig.value.pageSize = pageSize;
|
|
36673
|
-
emit("page-change", { currentPage, pageSize });
|
|
36674
|
-
}
|
|
36675
|
-
const nativeTypes = ["seq", "index", "selection", "checkbox", "radio", "expand"];
|
|
36676
|
-
const isNativeType = (col) => !!(col && col.type && nativeTypes.includes(col.type));
|
|
36677
|
-
function handleOperationClick(event, row) {
|
|
36678
|
-
const action = event.target.getAttribute("data-action");
|
|
36679
|
-
if (action) {
|
|
36680
|
-
emit(action, row);
|
|
36681
|
-
}
|
|
36682
|
-
}
|
|
36683
|
-
function handleInlineButtonClick(button) {
|
|
36684
|
-
if (typeof button === "string") {
|
|
36685
|
-
emit(button);
|
|
36686
|
-
} else if (typeof button === "object") {
|
|
36687
|
-
emit("button-click", button);
|
|
36688
|
-
}
|
|
36689
|
-
}
|
|
36690
|
-
function clearWidths() {
|
|
36691
|
-
try {
|
|
36692
|
-
const storage = getStorage();
|
|
36693
|
-
storage == null ? void 0 : storage.removeItem(`vtable:col-widths:${storageKey.value}`);
|
|
36694
|
-
} catch (e) {
|
|
36695
|
-
console.warn("[VTable] 清空列宽缓存失败:", e);
|
|
35857
|
+
console.warn("[VTable] 清空列宽缓存失败:", e);
|
|
36696
35858
|
}
|
|
36697
35859
|
}
|
|
36698
35860
|
__expose({
|
|
@@ -37212,293 +36374,1130 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
37212
36374
|
if (searchValue.value.trim()) {
|
|
37213
36375
|
emit("search", searchValue.value);
|
|
37214
36376
|
}
|
|
37215
|
-
};
|
|
37216
|
-
const handleSearchMenuItemClick = (item) => {
|
|
37217
|
-
emit("search-menu-item-click", item);
|
|
37218
|
-
};
|
|
37219
|
-
const handleOrgChange = (org) => {
|
|
37220
|
-
emit("org-change", org);
|
|
37221
|
-
};
|
|
37222
|
-
const handleTodoClick = () => {
|
|
37223
|
-
emit("todo-click");
|
|
37224
|
-
};
|
|
37225
|
-
const handleHelpCommand = (command) => {
|
|
37226
|
-
emit("help-command", command);
|
|
37227
|
-
};
|
|
37228
|
-
const handleUserCommand = (command) => {
|
|
37229
|
-
emit("user-command", command);
|
|
37230
|
-
};
|
|
37231
|
-
return (_ctx, _cache) => {
|
|
37232
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
37233
|
-
createElementVNode("div", _hoisted_2, [
|
|
37234
|
-
__props.showLogo ? (openBlock(), createElementBlock("div", {
|
|
37235
|
-
key: 0,
|
|
37236
|
-
class: "diqp-nav-logo",
|
|
37237
|
-
onClick: handleLogoClick
|
|
37238
|
-
}, [
|
|
37239
|
-
__props.logo ? (openBlock(), createElementBlock("img", {
|
|
37240
|
-
key: 0,
|
|
37241
|
-
src: __props.logo,
|
|
37242
|
-
alt: __props.systemName || "Logo"
|
|
37243
|
-
}, null, 8, _hoisted_3)) : (openBlock(), createBlock(unref(ElIcon), {
|
|
37244
|
-
key: 1,
|
|
37245
|
-
class: "diqp-nav-logo-icon"
|
|
37246
|
-
}, {
|
|
37247
|
-
default: withCtx(() => [
|
|
37248
|
-
(openBlock(), createBlock(resolveDynamicComponent(__props.logoIcon)))
|
|
37249
|
-
]),
|
|
37250
|
-
_: 1
|
|
37251
|
-
}))
|
|
37252
|
-
])) : createCommentVNode("", true),
|
|
37253
|
-
__props.systemName ? (openBlock(), createElementBlock("div", _hoisted_4, toDisplayString(__props.systemName), 1)) : createCommentVNode("", true),
|
|
37254
|
-
__props.secretLevel ? (openBlock(), createBlock(unref(ElTag), {
|
|
37255
|
-
key: 2,
|
|
37256
|
-
type: getSecretTagType(__props.secretLevel),
|
|
37257
|
-
class: "diqp-nav-secret-tip",
|
|
37258
|
-
effect: "dark"
|
|
37259
|
-
}, {
|
|
37260
|
-
default: withCtx(() => [
|
|
37261
|
-
createTextVNode(toDisplayString(__props.secretLevel), 1)
|
|
37262
|
-
]),
|
|
37263
|
-
_: 1
|
|
37264
|
-
}, 8, ["type"])) : createCommentVNode("", true)
|
|
37265
|
-
]),
|
|
37266
|
-
createElementVNode("div", _hoisted_5, [
|
|
37267
|
-
__props.showSearch ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
37268
|
-
createVNode(unref(ElInput), {
|
|
37269
|
-
modelValue: searchValue.value,
|
|
37270
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchValue.value = $event),
|
|
37271
|
-
placeholder: __props.searchPlaceholder,
|
|
37272
|
-
class: "diqp-nav-search-input",
|
|
37273
|
-
clearable: "",
|
|
37274
|
-
onFocus: handleSearchFocus,
|
|
37275
|
-
onBlur: handleSearchBlur,
|
|
37276
|
-
onKeyup: withKeys(handleSearch, ["enter"])
|
|
37277
|
-
}, {
|
|
37278
|
-
prefix: withCtx(() => [
|
|
37279
|
-
createVNode(unref(ElIcon), { style: { "width": "20px", "height": "20px" } }, {
|
|
37280
|
-
default: withCtx(() => [
|
|
37281
|
-
createVNode(unref(Search), { style: { "width": "20px", "height": "20px" } })
|
|
37282
|
-
]),
|
|
37283
|
-
_: 1
|
|
37284
|
-
})
|
|
37285
|
-
]),
|
|
37286
|
-
_: 1
|
|
37287
|
-
}, 8, ["modelValue", "placeholder"]),
|
|
37288
|
-
__props.showSearchMenu && __props.searchMenuItems.length > 0 ? (openBlock(), createBlock(unref(ElDropdown), {
|
|
37289
|
-
key: 0,
|
|
37290
|
-
trigger: "click",
|
|
37291
|
-
placement: "bottom-start",
|
|
37292
|
-
class: "diqp-nav-search-menu"
|
|
37293
|
-
}, {
|
|
37294
|
-
dropdown: withCtx(() => [
|
|
37295
|
-
createVNode(unref(ElDropdownMenu), null, {
|
|
37296
|
-
default: withCtx(() => [
|
|
37297
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.searchMenuItems, (item, index2) => {
|
|
37298
|
-
return openBlock(), createBlock(unref(ElDropdownItem), {
|
|
37299
|
-
key: index2,
|
|
37300
|
-
onClick: ($event) => handleSearchMenuItemClick(item)
|
|
37301
|
-
}, {
|
|
37302
|
-
default: withCtx(() => [
|
|
37303
|
-
createTextVNode(toDisplayString(item.label), 1)
|
|
37304
|
-
]),
|
|
37305
|
-
_: 2
|
|
37306
|
-
}, 1032, ["onClick"]);
|
|
37307
|
-
}), 128))
|
|
37308
|
-
]),
|
|
37309
|
-
_: 1
|
|
37310
|
-
})
|
|
37311
|
-
]),
|
|
37312
|
-
default: withCtx(() => [
|
|
37313
|
-
createVNode(unref(ElButton), {
|
|
37314
|
-
type: "primary",
|
|
37315
|
-
icon: unref(Search),
|
|
37316
|
-
circle: ""
|
|
37317
|
-
}, null, 8, ["icon"])
|
|
37318
|
-
]),
|
|
37319
|
-
_: 1
|
|
37320
|
-
})) : createCommentVNode("", true)
|
|
37321
|
-
])) : createCommentVNode("", true)
|
|
37322
|
-
]),
|
|
37323
|
-
createElementVNode("div", _hoisted_7, [
|
|
37324
|
-
__props.showOrgSwitcher ? (openBlock(), createBlock(unref(ElDropdown), {
|
|
37325
|
-
key: 0,
|
|
37326
|
-
trigger: "click",
|
|
37327
|
-
placement: "bottom-end",
|
|
37328
|
-
onCommand: handleOrgChange
|
|
37329
|
-
}, {
|
|
37330
|
-
dropdown: withCtx(() => [
|
|
37331
|
-
createVNode(unref(ElDropdownMenu), null, {
|
|
37332
|
-
default: withCtx(() => [
|
|
37333
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.orgList, (org, index2) => {
|
|
37334
|
-
return openBlock(), createBlock(unref(ElDropdownItem), {
|
|
37335
|
-
key: index2,
|
|
37336
|
-
command: org.value,
|
|
37337
|
-
disabled: org.value === __props.currentOrg
|
|
37338
|
-
}, {
|
|
37339
|
-
default: withCtx(() => [
|
|
37340
|
-
createTextVNode(toDisplayString(org.label), 1)
|
|
37341
|
-
]),
|
|
37342
|
-
_: 2
|
|
37343
|
-
}, 1032, ["command", "disabled"]);
|
|
37344
|
-
}), 128))
|
|
37345
|
-
]),
|
|
37346
|
-
_: 1
|
|
37347
|
-
})
|
|
37348
|
-
]),
|
|
37349
|
-
default: withCtx(() => [
|
|
37350
|
-
createElementVNode("div", _hoisted_8, [
|
|
37351
|
-
createVNode(unref(ElIcon), { class: "diqp-nav-org-icon" }, {
|
|
37352
|
-
default: withCtx(() => [
|
|
37353
|
-
createVNode(unref(OfficeBuilding))
|
|
37354
|
-
]),
|
|
37355
|
-
_: 1
|
|
37356
|
-
}),
|
|
37357
|
-
createElementVNode("span", _hoisted_9, toDisplayString(__props.currentOrg || "切换组织"), 1),
|
|
37358
|
-
createVNode(unref(ElIcon), { class: "diqp-nav-arrow-icon" }, {
|
|
37359
|
-
default: withCtx(() => [
|
|
37360
|
-
createVNode(unref(ArrowDown))
|
|
37361
|
-
]),
|
|
37362
|
-
_: 1
|
|
37363
|
-
})
|
|
37364
|
-
])
|
|
37365
|
-
]),
|
|
37366
|
-
_: 1
|
|
37367
|
-
})) : createCommentVNode("", true),
|
|
37368
|
-
__props.showTodoBadge ? (openBlock(), createBlock(unref(ElBadge), {
|
|
37369
|
-
key: 1,
|
|
37370
|
-
value: __props.todoCount,
|
|
37371
|
-
max: 99,
|
|
37372
|
-
hidden: __props.todoCount === 0,
|
|
37373
|
-
class: "diqp-nav-todo-badge"
|
|
37374
|
-
}, {
|
|
37375
|
-
default: withCtx(() => [
|
|
37376
|
-
createVNode(unref(ElButton), {
|
|
37377
|
-
circle: "",
|
|
37378
|
-
onClick: handleTodoClick
|
|
37379
|
-
}, {
|
|
37380
|
-
default: withCtx(() => [
|
|
37381
|
-
createVNode(unref(ElIcon), null, {
|
|
37382
|
-
default: withCtx(() => [
|
|
37383
|
-
createVNode(unref(Bell))
|
|
37384
|
-
]),
|
|
37385
|
-
_: 1
|
|
37386
|
-
})
|
|
37387
|
-
]),
|
|
37388
|
-
_: 1
|
|
37389
|
-
})
|
|
37390
|
-
]),
|
|
37391
|
-
_: 1
|
|
37392
|
-
}, 8, ["value", "hidden"])) : createCommentVNode("", true),
|
|
37393
|
-
__props.showHelpCenter ? (openBlock(), createBlock(unref(ElDropdown), {
|
|
37394
|
-
key: 2,
|
|
37395
|
-
trigger: "click",
|
|
37396
|
-
placement: "bottom-end",
|
|
37397
|
-
onCommand: handleHelpCommand
|
|
37398
|
-
}, {
|
|
37399
|
-
dropdown: withCtx(() => [
|
|
37400
|
-
createVNode(unref(ElDropdownMenu), null, {
|
|
37401
|
-
default: withCtx(() => [
|
|
37402
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.helpMenuItems, (item, index2) => {
|
|
37403
|
-
return openBlock(), createBlock(unref(ElDropdownItem), {
|
|
37404
|
-
key: index2,
|
|
37405
|
-
command: item.value
|
|
37406
|
-
}, {
|
|
37407
|
-
default: withCtx(() => [
|
|
37408
|
-
item.icon ? (openBlock(), createBlock(unref(ElIcon), {
|
|
37409
|
-
key: 0,
|
|
37410
|
-
style: { "margin-right": "8px" }
|
|
37411
|
-
}, {
|
|
37412
|
-
default: withCtx(() => [
|
|
37413
|
-
(openBlock(), createBlock(resolveDynamicComponent(item.icon)))
|
|
37414
|
-
]),
|
|
37415
|
-
_: 2
|
|
37416
|
-
}, 1024)) : createCommentVNode("", true),
|
|
37417
|
-
createTextVNode(" " + toDisplayString(item.label), 1)
|
|
37418
|
-
]),
|
|
37419
|
-
_: 2
|
|
37420
|
-
}, 1032, ["command"]);
|
|
37421
|
-
}), 128))
|
|
37422
|
-
]),
|
|
37423
|
-
_: 1
|
|
37424
|
-
})
|
|
37425
|
-
]),
|
|
37426
|
-
default: withCtx(() => [
|
|
37427
|
-
createVNode(unref(ElButton), { circle: "" }, {
|
|
37428
|
-
default: withCtx(() => [
|
|
37429
|
-
createVNode(unref(ElIcon), null, {
|
|
37430
|
-
default: withCtx(() => [
|
|
37431
|
-
createVNode(unref(QuestionFilled))
|
|
37432
|
-
]),
|
|
37433
|
-
_: 1
|
|
37434
|
-
})
|
|
37435
|
-
]),
|
|
37436
|
-
_: 1
|
|
37437
|
-
})
|
|
37438
|
-
]),
|
|
37439
|
-
_: 1
|
|
37440
|
-
})) : createCommentVNode("", true),
|
|
37441
|
-
__props.showUserMenu ? (openBlock(), createBlock(unref(ElDropdown), {
|
|
37442
|
-
key: 3,
|
|
37443
|
-
trigger: "click",
|
|
37444
|
-
placement: "bottom-end",
|
|
37445
|
-
onCommand: handleUserCommand
|
|
37446
|
-
}, {
|
|
37447
|
-
dropdown: withCtx(() => [
|
|
37448
|
-
createVNode(unref(ElDropdownMenu), null, {
|
|
37449
|
-
default: withCtx(() => [
|
|
37450
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.userMenuItems, (item, index2) => {
|
|
37451
|
-
return openBlock(), createBlock(unref(ElDropdownItem), {
|
|
37452
|
-
key: index2,
|
|
37453
|
-
command: item.value,
|
|
37454
|
-
divided: item.divided
|
|
37455
|
-
}, {
|
|
37456
|
-
default: withCtx(() => [
|
|
37457
|
-
item.icon ? (openBlock(), createBlock(unref(ElIcon), {
|
|
37458
|
-
key: 0,
|
|
37459
|
-
style: { "margin-right": "8px" }
|
|
37460
|
-
}, {
|
|
37461
|
-
default: withCtx(() => [
|
|
37462
|
-
(openBlock(), createBlock(resolveDynamicComponent(item.icon)))
|
|
37463
|
-
]),
|
|
37464
|
-
_: 2
|
|
37465
|
-
}, 1024)) : createCommentVNode("", true),
|
|
37466
|
-
createTextVNode(" " + toDisplayString(item.label), 1)
|
|
37467
|
-
]),
|
|
37468
|
-
_: 2
|
|
37469
|
-
}, 1032, ["command", "divided"]);
|
|
37470
|
-
}), 128))
|
|
37471
|
-
]),
|
|
37472
|
-
_: 1
|
|
37473
|
-
})
|
|
37474
|
-
]),
|
|
37475
|
-
default: withCtx(() => [
|
|
37476
|
-
createElementVNode("div", _hoisted_10, [
|
|
37477
|
-
createVNode(unref(ElAvatar), {
|
|
37478
|
-
size: 32,
|
|
37479
|
-
src: __props.userAvatar
|
|
37480
|
-
}, {
|
|
37481
|
-
default: withCtx(() => [
|
|
37482
|
-
createTextVNode(toDisplayString(__props.userAvatar ? "" : (__props.userName || "U").charAt(0).toUpperCase()), 1)
|
|
37483
|
-
]),
|
|
37484
|
-
_: 1
|
|
37485
|
-
}, 8, ["src"]),
|
|
37486
|
-
createElementVNode("span", _hoisted_11, toDisplayString(__props.userName || "用户名"), 1),
|
|
37487
|
-
createVNode(unref(ElIcon), { class: "diqp-nav-arrow-icon" }, {
|
|
37488
|
-
default: withCtx(() => [
|
|
37489
|
-
createVNode(unref(ArrowDown))
|
|
37490
|
-
]),
|
|
37491
|
-
_: 1
|
|
37492
|
-
})
|
|
37493
|
-
])
|
|
37494
|
-
]),
|
|
37495
|
-
_: 1
|
|
37496
|
-
})) : createCommentVNode("", true)
|
|
37497
|
-
])
|
|
37498
|
-
]);
|
|
37499
|
-
};
|
|
37500
|
-
}
|
|
37501
|
-
});
|
|
36377
|
+
};
|
|
36378
|
+
const handleSearchMenuItemClick = (item) => {
|
|
36379
|
+
emit("search-menu-item-click", item);
|
|
36380
|
+
};
|
|
36381
|
+
const handleOrgChange = (org) => {
|
|
36382
|
+
emit("org-change", org);
|
|
36383
|
+
};
|
|
36384
|
+
const handleTodoClick = () => {
|
|
36385
|
+
emit("todo-click");
|
|
36386
|
+
};
|
|
36387
|
+
const handleHelpCommand = (command) => {
|
|
36388
|
+
emit("help-command", command);
|
|
36389
|
+
};
|
|
36390
|
+
const handleUserCommand = (command) => {
|
|
36391
|
+
emit("user-command", command);
|
|
36392
|
+
};
|
|
36393
|
+
return (_ctx, _cache) => {
|
|
36394
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
36395
|
+
createElementVNode("div", _hoisted_2, [
|
|
36396
|
+
__props.showLogo ? (openBlock(), createElementBlock("div", {
|
|
36397
|
+
key: 0,
|
|
36398
|
+
class: "diqp-nav-logo",
|
|
36399
|
+
onClick: handleLogoClick
|
|
36400
|
+
}, [
|
|
36401
|
+
__props.logo ? (openBlock(), createElementBlock("img", {
|
|
36402
|
+
key: 0,
|
|
36403
|
+
src: __props.logo,
|
|
36404
|
+
alt: __props.systemName || "Logo"
|
|
36405
|
+
}, null, 8, _hoisted_3)) : (openBlock(), createBlock(unref(ElIcon), {
|
|
36406
|
+
key: 1,
|
|
36407
|
+
class: "diqp-nav-logo-icon"
|
|
36408
|
+
}, {
|
|
36409
|
+
default: withCtx(() => [
|
|
36410
|
+
(openBlock(), createBlock(resolveDynamicComponent(__props.logoIcon)))
|
|
36411
|
+
]),
|
|
36412
|
+
_: 1
|
|
36413
|
+
}))
|
|
36414
|
+
])) : createCommentVNode("", true),
|
|
36415
|
+
__props.systemName ? (openBlock(), createElementBlock("div", _hoisted_4, toDisplayString(__props.systemName), 1)) : createCommentVNode("", true),
|
|
36416
|
+
__props.secretLevel ? (openBlock(), createBlock(unref(ElTag), {
|
|
36417
|
+
key: 2,
|
|
36418
|
+
type: getSecretTagType(__props.secretLevel),
|
|
36419
|
+
class: "diqp-nav-secret-tip",
|
|
36420
|
+
effect: "dark"
|
|
36421
|
+
}, {
|
|
36422
|
+
default: withCtx(() => [
|
|
36423
|
+
createTextVNode(toDisplayString(__props.secretLevel), 1)
|
|
36424
|
+
]),
|
|
36425
|
+
_: 1
|
|
36426
|
+
}, 8, ["type"])) : createCommentVNode("", true)
|
|
36427
|
+
]),
|
|
36428
|
+
createElementVNode("div", _hoisted_5, [
|
|
36429
|
+
__props.showSearch ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
36430
|
+
createVNode(unref(ElInput), {
|
|
36431
|
+
modelValue: searchValue.value,
|
|
36432
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchValue.value = $event),
|
|
36433
|
+
placeholder: __props.searchPlaceholder,
|
|
36434
|
+
class: "diqp-nav-search-input",
|
|
36435
|
+
clearable: "",
|
|
36436
|
+
onFocus: handleSearchFocus,
|
|
36437
|
+
onBlur: handleSearchBlur,
|
|
36438
|
+
onKeyup: withKeys(handleSearch, ["enter"])
|
|
36439
|
+
}, {
|
|
36440
|
+
prefix: withCtx(() => [
|
|
36441
|
+
createVNode(unref(ElIcon), { style: { "width": "20px", "height": "20px" } }, {
|
|
36442
|
+
default: withCtx(() => [
|
|
36443
|
+
createVNode(unref(Search), { style: { "width": "20px", "height": "20px" } })
|
|
36444
|
+
]),
|
|
36445
|
+
_: 1
|
|
36446
|
+
})
|
|
36447
|
+
]),
|
|
36448
|
+
_: 1
|
|
36449
|
+
}, 8, ["modelValue", "placeholder"]),
|
|
36450
|
+
__props.showSearchMenu && __props.searchMenuItems.length > 0 ? (openBlock(), createBlock(unref(ElDropdown), {
|
|
36451
|
+
key: 0,
|
|
36452
|
+
trigger: "click",
|
|
36453
|
+
placement: "bottom-start",
|
|
36454
|
+
class: "diqp-nav-search-menu"
|
|
36455
|
+
}, {
|
|
36456
|
+
dropdown: withCtx(() => [
|
|
36457
|
+
createVNode(unref(ElDropdownMenu), null, {
|
|
36458
|
+
default: withCtx(() => [
|
|
36459
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.searchMenuItems, (item, index2) => {
|
|
36460
|
+
return openBlock(), createBlock(unref(ElDropdownItem), {
|
|
36461
|
+
key: index2,
|
|
36462
|
+
onClick: ($event) => handleSearchMenuItemClick(item)
|
|
36463
|
+
}, {
|
|
36464
|
+
default: withCtx(() => [
|
|
36465
|
+
createTextVNode(toDisplayString(item.label), 1)
|
|
36466
|
+
]),
|
|
36467
|
+
_: 2
|
|
36468
|
+
}, 1032, ["onClick"]);
|
|
36469
|
+
}), 128))
|
|
36470
|
+
]),
|
|
36471
|
+
_: 1
|
|
36472
|
+
})
|
|
36473
|
+
]),
|
|
36474
|
+
default: withCtx(() => [
|
|
36475
|
+
createVNode(unref(ElButton), {
|
|
36476
|
+
type: "primary",
|
|
36477
|
+
icon: unref(Search),
|
|
36478
|
+
circle: ""
|
|
36479
|
+
}, null, 8, ["icon"])
|
|
36480
|
+
]),
|
|
36481
|
+
_: 1
|
|
36482
|
+
})) : createCommentVNode("", true)
|
|
36483
|
+
])) : createCommentVNode("", true)
|
|
36484
|
+
]),
|
|
36485
|
+
createElementVNode("div", _hoisted_7, [
|
|
36486
|
+
__props.showOrgSwitcher ? (openBlock(), createBlock(unref(ElDropdown), {
|
|
36487
|
+
key: 0,
|
|
36488
|
+
trigger: "click",
|
|
36489
|
+
placement: "bottom-end",
|
|
36490
|
+
onCommand: handleOrgChange
|
|
36491
|
+
}, {
|
|
36492
|
+
dropdown: withCtx(() => [
|
|
36493
|
+
createVNode(unref(ElDropdownMenu), null, {
|
|
36494
|
+
default: withCtx(() => [
|
|
36495
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.orgList, (org, index2) => {
|
|
36496
|
+
return openBlock(), createBlock(unref(ElDropdownItem), {
|
|
36497
|
+
key: index2,
|
|
36498
|
+
command: org.value,
|
|
36499
|
+
disabled: org.value === __props.currentOrg
|
|
36500
|
+
}, {
|
|
36501
|
+
default: withCtx(() => [
|
|
36502
|
+
createTextVNode(toDisplayString(org.label), 1)
|
|
36503
|
+
]),
|
|
36504
|
+
_: 2
|
|
36505
|
+
}, 1032, ["command", "disabled"]);
|
|
36506
|
+
}), 128))
|
|
36507
|
+
]),
|
|
36508
|
+
_: 1
|
|
36509
|
+
})
|
|
36510
|
+
]),
|
|
36511
|
+
default: withCtx(() => [
|
|
36512
|
+
createElementVNode("div", _hoisted_8, [
|
|
36513
|
+
createVNode(unref(ElIcon), { class: "diqp-nav-org-icon" }, {
|
|
36514
|
+
default: withCtx(() => [
|
|
36515
|
+
createVNode(unref(OfficeBuilding))
|
|
36516
|
+
]),
|
|
36517
|
+
_: 1
|
|
36518
|
+
}),
|
|
36519
|
+
createElementVNode("span", _hoisted_9, toDisplayString(__props.currentOrg || "切换组织"), 1),
|
|
36520
|
+
createVNode(unref(ElIcon), { class: "diqp-nav-arrow-icon" }, {
|
|
36521
|
+
default: withCtx(() => [
|
|
36522
|
+
createVNode(unref(ArrowDown))
|
|
36523
|
+
]),
|
|
36524
|
+
_: 1
|
|
36525
|
+
})
|
|
36526
|
+
])
|
|
36527
|
+
]),
|
|
36528
|
+
_: 1
|
|
36529
|
+
})) : createCommentVNode("", true),
|
|
36530
|
+
__props.showTodoBadge ? (openBlock(), createBlock(unref(ElBadge), {
|
|
36531
|
+
key: 1,
|
|
36532
|
+
value: __props.todoCount,
|
|
36533
|
+
max: 99,
|
|
36534
|
+
hidden: __props.todoCount === 0,
|
|
36535
|
+
class: "diqp-nav-todo-badge"
|
|
36536
|
+
}, {
|
|
36537
|
+
default: withCtx(() => [
|
|
36538
|
+
createVNode(unref(ElButton), {
|
|
36539
|
+
circle: "",
|
|
36540
|
+
onClick: handleTodoClick
|
|
36541
|
+
}, {
|
|
36542
|
+
default: withCtx(() => [
|
|
36543
|
+
createVNode(unref(ElIcon), null, {
|
|
36544
|
+
default: withCtx(() => [
|
|
36545
|
+
createVNode(unref(Bell))
|
|
36546
|
+
]),
|
|
36547
|
+
_: 1
|
|
36548
|
+
})
|
|
36549
|
+
]),
|
|
36550
|
+
_: 1
|
|
36551
|
+
})
|
|
36552
|
+
]),
|
|
36553
|
+
_: 1
|
|
36554
|
+
}, 8, ["value", "hidden"])) : createCommentVNode("", true),
|
|
36555
|
+
__props.showHelpCenter ? (openBlock(), createBlock(unref(ElDropdown), {
|
|
36556
|
+
key: 2,
|
|
36557
|
+
trigger: "click",
|
|
36558
|
+
placement: "bottom-end",
|
|
36559
|
+
onCommand: handleHelpCommand
|
|
36560
|
+
}, {
|
|
36561
|
+
dropdown: withCtx(() => [
|
|
36562
|
+
createVNode(unref(ElDropdownMenu), null, {
|
|
36563
|
+
default: withCtx(() => [
|
|
36564
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.helpMenuItems, (item, index2) => {
|
|
36565
|
+
return openBlock(), createBlock(unref(ElDropdownItem), {
|
|
36566
|
+
key: index2,
|
|
36567
|
+
command: item.value
|
|
36568
|
+
}, {
|
|
36569
|
+
default: withCtx(() => [
|
|
36570
|
+
item.icon ? (openBlock(), createBlock(unref(ElIcon), {
|
|
36571
|
+
key: 0,
|
|
36572
|
+
style: { "margin-right": "8px" }
|
|
36573
|
+
}, {
|
|
36574
|
+
default: withCtx(() => [
|
|
36575
|
+
(openBlock(), createBlock(resolveDynamicComponent(item.icon)))
|
|
36576
|
+
]),
|
|
36577
|
+
_: 2
|
|
36578
|
+
}, 1024)) : createCommentVNode("", true),
|
|
36579
|
+
createTextVNode(" " + toDisplayString(item.label), 1)
|
|
36580
|
+
]),
|
|
36581
|
+
_: 2
|
|
36582
|
+
}, 1032, ["command"]);
|
|
36583
|
+
}), 128))
|
|
36584
|
+
]),
|
|
36585
|
+
_: 1
|
|
36586
|
+
})
|
|
36587
|
+
]),
|
|
36588
|
+
default: withCtx(() => [
|
|
36589
|
+
createVNode(unref(ElButton), { circle: "" }, {
|
|
36590
|
+
default: withCtx(() => [
|
|
36591
|
+
createVNode(unref(ElIcon), null, {
|
|
36592
|
+
default: withCtx(() => [
|
|
36593
|
+
createVNode(unref(QuestionFilled))
|
|
36594
|
+
]),
|
|
36595
|
+
_: 1
|
|
36596
|
+
})
|
|
36597
|
+
]),
|
|
36598
|
+
_: 1
|
|
36599
|
+
})
|
|
36600
|
+
]),
|
|
36601
|
+
_: 1
|
|
36602
|
+
})) : createCommentVNode("", true),
|
|
36603
|
+
__props.showUserMenu ? (openBlock(), createBlock(unref(ElDropdown), {
|
|
36604
|
+
key: 3,
|
|
36605
|
+
trigger: "click",
|
|
36606
|
+
placement: "bottom-end",
|
|
36607
|
+
onCommand: handleUserCommand
|
|
36608
|
+
}, {
|
|
36609
|
+
dropdown: withCtx(() => [
|
|
36610
|
+
createVNode(unref(ElDropdownMenu), null, {
|
|
36611
|
+
default: withCtx(() => [
|
|
36612
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.userMenuItems, (item, index2) => {
|
|
36613
|
+
return openBlock(), createBlock(unref(ElDropdownItem), {
|
|
36614
|
+
key: index2,
|
|
36615
|
+
command: item.value,
|
|
36616
|
+
divided: item.divided
|
|
36617
|
+
}, {
|
|
36618
|
+
default: withCtx(() => [
|
|
36619
|
+
item.icon ? (openBlock(), createBlock(unref(ElIcon), {
|
|
36620
|
+
key: 0,
|
|
36621
|
+
style: { "margin-right": "8px" }
|
|
36622
|
+
}, {
|
|
36623
|
+
default: withCtx(() => [
|
|
36624
|
+
(openBlock(), createBlock(resolveDynamicComponent(item.icon)))
|
|
36625
|
+
]),
|
|
36626
|
+
_: 2
|
|
36627
|
+
}, 1024)) : createCommentVNode("", true),
|
|
36628
|
+
createTextVNode(" " + toDisplayString(item.label), 1)
|
|
36629
|
+
]),
|
|
36630
|
+
_: 2
|
|
36631
|
+
}, 1032, ["command", "divided"]);
|
|
36632
|
+
}), 128))
|
|
36633
|
+
]),
|
|
36634
|
+
_: 1
|
|
36635
|
+
})
|
|
36636
|
+
]),
|
|
36637
|
+
default: withCtx(() => [
|
|
36638
|
+
createElementVNode("div", _hoisted_10, [
|
|
36639
|
+
createVNode(unref(ElAvatar), {
|
|
36640
|
+
size: 32,
|
|
36641
|
+
src: __props.userAvatar
|
|
36642
|
+
}, {
|
|
36643
|
+
default: withCtx(() => [
|
|
36644
|
+
createTextVNode(toDisplayString(__props.userAvatar ? "" : (__props.userName || "U").charAt(0).toUpperCase()), 1)
|
|
36645
|
+
]),
|
|
36646
|
+
_: 1
|
|
36647
|
+
}, 8, ["src"]),
|
|
36648
|
+
createElementVNode("span", _hoisted_11, toDisplayString(__props.userName || "用户名"), 1),
|
|
36649
|
+
createVNode(unref(ElIcon), { class: "diqp-nav-arrow-icon" }, {
|
|
36650
|
+
default: withCtx(() => [
|
|
36651
|
+
createVNode(unref(ArrowDown))
|
|
36652
|
+
]),
|
|
36653
|
+
_: 1
|
|
36654
|
+
})
|
|
36655
|
+
])
|
|
36656
|
+
]),
|
|
36657
|
+
_: 1
|
|
36658
|
+
})) : createCommentVNode("", true)
|
|
36659
|
+
])
|
|
36660
|
+
]);
|
|
36661
|
+
};
|
|
36662
|
+
}
|
|
36663
|
+
});
|
|
36664
|
+
function getDefaultExportFromCjs(x) {
|
|
36665
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
36666
|
+
}
|
|
36667
|
+
var zhCN = {};
|
|
36668
|
+
var hasRequiredZhCN;
|
|
36669
|
+
function requireZhCN() {
|
|
36670
|
+
if (hasRequiredZhCN) return zhCN;
|
|
36671
|
+
hasRequiredZhCN = 1;
|
|
36672
|
+
Object.defineProperty(zhCN, "__esModule", {
|
|
36673
|
+
value: true
|
|
36674
|
+
});
|
|
36675
|
+
zhCN.default = void 0;
|
|
36676
|
+
zhCN.default = {
|
|
36677
|
+
vxe: {
|
|
36678
|
+
base: {
|
|
36679
|
+
pleaseInput: "请输入",
|
|
36680
|
+
pleaseSelect: "请选择",
|
|
36681
|
+
comma: ",",
|
|
36682
|
+
fullStop: "。"
|
|
36683
|
+
},
|
|
36684
|
+
loading: {
|
|
36685
|
+
text: "加载中..."
|
|
36686
|
+
},
|
|
36687
|
+
error: {
|
|
36688
|
+
downErr: "下载失败",
|
|
36689
|
+
errLargeData: "当绑定的数据量过大时,应该请使用 {0},否则可能会出现卡顿",
|
|
36690
|
+
groupFixed: "如果使用分组表头,冻结列必须按组设置",
|
|
36691
|
+
groupMouseRange: '分组表头与 "{0}" 不能同时使用,这可能会出现错误',
|
|
36692
|
+
groupTag: '分组列头应该使用 "{0}" 而不是 "{1}",这可能会出现错误',
|
|
36693
|
+
scrollErrProp: '启用虚拟滚动后不支持该参数 "{0}"',
|
|
36694
|
+
errConflicts: '参数 "{0}" 与 "{1}" 有冲突',
|
|
36695
|
+
modelConflicts: '绑定的字段值 "{0}" 与 "{1}" 存在冲突,将会出现错误',
|
|
36696
|
+
notSupportProp: '当启用参数 "{0}" 时不支持 "{1}",应该为 "{2}",否则将会出现错误',
|
|
36697
|
+
reqSupportProp: '当使用 "{0}" 时,应该设置 "{1}",否则可能会出现错误',
|
|
36698
|
+
notConflictProp: '当使用 "{0}" 时,应该设置 "{1}",否则可能会存在功能冲突',
|
|
36699
|
+
unableInsert: "无法插入到指定位置,请检查参数是否正确",
|
|
36700
|
+
useErr: '安装 "{0}" 模块时发生错误,可能顺序不正确,依赖的模块需要在 Table 之前安装',
|
|
36701
|
+
barUnableLink: "工具栏无法关联表格",
|
|
36702
|
+
expandContent: '展开行的插槽应该是 "content",请检查是否正确',
|
|
36703
|
+
reqComp: '缺少 "{0}" 组件,请检查是否正确安装。 https://vxeui.com/#/start/useGlobal',
|
|
36704
|
+
reqModule: '缺少 "{0}" 模块',
|
|
36705
|
+
reqProp: '缺少必要的 "{0}" 参数,这可能会导致出现错误',
|
|
36706
|
+
emptyProp: '参数 "{0}" 不允许为空',
|
|
36707
|
+
errProp: '不支持的参数 "{0}",可能为 "{1}"',
|
|
36708
|
+
colRepet: 'column.{0}="{1}" 重复了,这可能会导致某些功能无法使用',
|
|
36709
|
+
notFunc: '方法 "{0}" 不存在',
|
|
36710
|
+
errFunc: '参数 "{0}" 不是一个方法',
|
|
36711
|
+
notValidators: '全局校验 "{0}" 不存在',
|
|
36712
|
+
notFormats: '全局格式化 "{0}" 不存在',
|
|
36713
|
+
notCommands: '全局指令 "{0}" 不存在',
|
|
36714
|
+
notSlot: '插槽 "{0}" 不存在',
|
|
36715
|
+
noTree: '树结构不支持 "{0}"',
|
|
36716
|
+
noGroup: '数据分组后不支持 "{0}"',
|
|
36717
|
+
notProp: '不支持的参数 "{0}"',
|
|
36718
|
+
checkProp: '当数据量过大时可能会导致复选框卡顿,建议设置参数 "{0}" 提升渲染速度',
|
|
36719
|
+
coverProp: '"{0}" 的参数 "{1}" 重复定义,这可能会出现错误',
|
|
36720
|
+
uniField: '字段名 "{0}" 重复定义,这可能会出现错误',
|
|
36721
|
+
repeatKey: '主键重复 {0}="{1}",这可能会出现错误',
|
|
36722
|
+
repeatProp: '参数重复 {0}="{1}",这可能会出现错误',
|
|
36723
|
+
delFunc: '方法 "{0}" 已废弃,请使用 "{1}"',
|
|
36724
|
+
delProp: '参数 "{0}" 已废弃,请使用 "{1}"',
|
|
36725
|
+
delEvent: '事件 "{0}" 已废弃,请使用 "{1}"',
|
|
36726
|
+
removeProp: '参数 "{0}" 已废弃,不建议使用,这可能会导致出现错误',
|
|
36727
|
+
errFormat: '全局的格式化内容应该使用 "VXETable.formats" 定义,挂载 "formatter={0}" 的方式已不建议使用',
|
|
36728
|
+
notType: '不支持的文件类型 "{0}"',
|
|
36729
|
+
notExp: "该浏览器不支持导入/导出功能",
|
|
36730
|
+
impFields: "导入失败,请检查字段名和数据格式是否正确",
|
|
36731
|
+
treeNotImp: "树表格不支持导入",
|
|
36732
|
+
treeCrossDrag: "只能拖拽第一层级",
|
|
36733
|
+
treeDragChild: "父级不能拖拽到自己的子级中",
|
|
36734
|
+
reqPlugin: '扩展插件未安装 "{1}" https://vxeui.com/other{0}/#/{1}/install',
|
|
36735
|
+
errMaxRow: "超过支持的最大数据量 {0} 行,这可能会导致出现错误",
|
|
36736
|
+
useNew: "不建议使用 {0},请使用 {1}",
|
|
36737
|
+
errorVersion: "版本不匹配,当前版本 {0},最低支持版本为 {1}"
|
|
36738
|
+
},
|
|
36739
|
+
table: {
|
|
36740
|
+
emptyText: "暂无数据",
|
|
36741
|
+
allTitle: "全选/取消",
|
|
36742
|
+
seqTitle: "序号",
|
|
36743
|
+
actionTitle: "操作",
|
|
36744
|
+
confirmFilter: "筛选",
|
|
36745
|
+
resetFilter: "重置",
|
|
36746
|
+
allFilter: "全部",
|
|
36747
|
+
sortAsc: "升序:最低到最高",
|
|
36748
|
+
sortDesc: "降序:最高到最低",
|
|
36749
|
+
filter: "对所选的列启用筛选",
|
|
36750
|
+
impSuccess: "成功导入 {0} 条记录",
|
|
36751
|
+
expLoading: "正在导出中",
|
|
36752
|
+
expSuccess: "导出成功",
|
|
36753
|
+
expError: "导出失败",
|
|
36754
|
+
expFilename: "导出_{0}",
|
|
36755
|
+
expOriginFilename: "导出_源_{0}",
|
|
36756
|
+
customTitle: "列设置",
|
|
36757
|
+
customAll: "全部",
|
|
36758
|
+
customConfirm: "确认",
|
|
36759
|
+
customClose: "关闭",
|
|
36760
|
+
customCancel: "取消",
|
|
36761
|
+
customRestore: "恢复默认",
|
|
36762
|
+
maxFixedCol: "最大冻结列的数量不能超过 {0} 个",
|
|
36763
|
+
maxGroupCol: "最大分组字段的数量不能超过 {0} 个",
|
|
36764
|
+
dragTip: "移动:{0}",
|
|
36765
|
+
resizeColTip: "宽:{0} 像素",
|
|
36766
|
+
resizeRowTip: "高:{0} 像素",
|
|
36767
|
+
rowGroupContentTotal: "{0}({1})",
|
|
36768
|
+
menuLoading: "加载中..."
|
|
36769
|
+
},
|
|
36770
|
+
grid: {
|
|
36771
|
+
selectOneRecord: "请至少选择一条记录!",
|
|
36772
|
+
deleteSelectRecord: "您确定要删除所选记录吗?",
|
|
36773
|
+
removeSelectRecord: "您确定要移除所选记录吗?",
|
|
36774
|
+
dataUnchanged: "数据未改动!",
|
|
36775
|
+
delSuccess: "成功删除所选记录!",
|
|
36776
|
+
saveSuccess: "保存成功!",
|
|
36777
|
+
operError: "发生错误,操作失败!"
|
|
36778
|
+
},
|
|
36779
|
+
select: {
|
|
36780
|
+
clear: "清除",
|
|
36781
|
+
allChecked: "全选",
|
|
36782
|
+
total: "{0} / {1}",
|
|
36783
|
+
search: "搜索",
|
|
36784
|
+
loadingText: "加载中",
|
|
36785
|
+
emptyText: "暂无数据",
|
|
36786
|
+
maxSize: "最大可选择的数量不能超过 {0} 个",
|
|
36787
|
+
overSizeErr: "已超出最大可选数量 {0} 个,超出部分将被忽略!",
|
|
36788
|
+
searchEmpty: "未匹配到数据!"
|
|
36789
|
+
},
|
|
36790
|
+
tree: {
|
|
36791
|
+
searchEmpty: "未匹配到数据!",
|
|
36792
|
+
dragTip: "移动:{0}"
|
|
36793
|
+
},
|
|
36794
|
+
treeSelect: {
|
|
36795
|
+
clearChecked: "清除",
|
|
36796
|
+
allChecked: "全选",
|
|
36797
|
+
allExpand: "全部展开",
|
|
36798
|
+
clearExpand: "全部收起",
|
|
36799
|
+
total: "已选 {0}",
|
|
36800
|
+
search: "搜索",
|
|
36801
|
+
emptyText: "暂无数据"
|
|
36802
|
+
},
|
|
36803
|
+
pager: {
|
|
36804
|
+
goto: "前往",
|
|
36805
|
+
gotoTitle: "页数",
|
|
36806
|
+
pagesize: "{0}条/页",
|
|
36807
|
+
total: "共 {0} 条记录",
|
|
36808
|
+
pageClassifier: "页",
|
|
36809
|
+
homePage: "首页",
|
|
36810
|
+
homePageTitle: "首页",
|
|
36811
|
+
prevPage: "上一页",
|
|
36812
|
+
prevPageTitle: "上一页",
|
|
36813
|
+
nextPage: "下一页",
|
|
36814
|
+
nextPageTitle: "下一页",
|
|
36815
|
+
prevJump: "向上跳页",
|
|
36816
|
+
prevJumpTitle: "向上跳页",
|
|
36817
|
+
nextJump: "向下跳页",
|
|
36818
|
+
nextJumpTitle: "向下跳页",
|
|
36819
|
+
endPage: "末页",
|
|
36820
|
+
endPageTitle: "末页"
|
|
36821
|
+
},
|
|
36822
|
+
alert: {
|
|
36823
|
+
title: "系统提示"
|
|
36824
|
+
},
|
|
36825
|
+
button: {
|
|
36826
|
+
confirm: "确认",
|
|
36827
|
+
cancel: "取消",
|
|
36828
|
+
clear: "清除"
|
|
36829
|
+
},
|
|
36830
|
+
filter: {
|
|
36831
|
+
search: "搜索"
|
|
36832
|
+
},
|
|
36833
|
+
custom: {
|
|
36834
|
+
cstmTitle: "列设置",
|
|
36835
|
+
cstmRestore: "恢复默认",
|
|
36836
|
+
cstmCancel: "取消",
|
|
36837
|
+
cstmConfirm: "确定",
|
|
36838
|
+
cstmConfirmRestore: "请确认是否恢复成默认列配置?",
|
|
36839
|
+
cstmDragTarget: "移动:{0}",
|
|
36840
|
+
setting: {
|
|
36841
|
+
colSort: "排序",
|
|
36842
|
+
sortHelpTip: "点击并拖动图标可以调整顺序",
|
|
36843
|
+
colTitle: "列标题",
|
|
36844
|
+
colResizable: "列宽(像素)",
|
|
36845
|
+
colVisible: "是否显示",
|
|
36846
|
+
colFixed: "冻结列",
|
|
36847
|
+
colFixedMax: "冻结列(最多 {0} 列)",
|
|
36848
|
+
fixedLeft: "左侧",
|
|
36849
|
+
fixedUnset: "不设置",
|
|
36850
|
+
fixedRight: "右侧"
|
|
36851
|
+
}
|
|
36852
|
+
},
|
|
36853
|
+
import: {
|
|
36854
|
+
modes: {
|
|
36855
|
+
covering: "覆盖方式(直接覆盖表格数据)",
|
|
36856
|
+
insert: "底部追加(在表格的底部追加新数据)",
|
|
36857
|
+
insertTop: "顶部追加(在表格的顶部追加新数据)",
|
|
36858
|
+
insertBottom: "底部追加(在表格的底部追加新数据)"
|
|
36859
|
+
},
|
|
36860
|
+
impTitle: "导入数据",
|
|
36861
|
+
impFile: "文件名",
|
|
36862
|
+
impSelect: "选择文件",
|
|
36863
|
+
impType: "文件类型",
|
|
36864
|
+
impOpts: "参数设置",
|
|
36865
|
+
impMode: "导入模式",
|
|
36866
|
+
impConfirm: "导入",
|
|
36867
|
+
impCancel: "取消"
|
|
36868
|
+
},
|
|
36869
|
+
export: {
|
|
36870
|
+
types: {
|
|
36871
|
+
csv: "CSV (逗号分隔)(*.csv)",
|
|
36872
|
+
html: "网页(*.html)",
|
|
36873
|
+
xml: "XML 数据(*.xml)",
|
|
36874
|
+
txt: "文本文件(制表符分隔)(*.txt)",
|
|
36875
|
+
xls: "Excel 97-2003 工作簿(*.xls)",
|
|
36876
|
+
xlsx: "Excel 工作簿(*.xlsx)",
|
|
36877
|
+
pdf: "PDF (*.pdf)"
|
|
36878
|
+
},
|
|
36879
|
+
modes: {
|
|
36880
|
+
empty: "空数据",
|
|
36881
|
+
current: "当前数据(当前页的数据)",
|
|
36882
|
+
selected: "选中数据(当前页选中的数据)",
|
|
36883
|
+
all: "全量数据(包括所有分页的数据)"
|
|
36884
|
+
},
|
|
36885
|
+
printTitle: "打印数据",
|
|
36886
|
+
expTitle: "导出数据",
|
|
36887
|
+
expName: "文件名",
|
|
36888
|
+
expNamePlaceholder: "请输入文件名",
|
|
36889
|
+
expSheetName: "标题",
|
|
36890
|
+
expSheetNamePlaceholder: "请输入标题",
|
|
36891
|
+
expType: "保存类型",
|
|
36892
|
+
expMode: "选择数据",
|
|
36893
|
+
expCurrentColumn: "全部字段",
|
|
36894
|
+
expColumn: "选择字段",
|
|
36895
|
+
expOpts: "参数设置",
|
|
36896
|
+
expOptHeader: "表头",
|
|
36897
|
+
expHeaderTitle: "是否需要表头",
|
|
36898
|
+
expOptFooter: "表尾",
|
|
36899
|
+
expFooterTitle: "是否需要表尾",
|
|
36900
|
+
expOptColgroup: "分组表头",
|
|
36901
|
+
expOptTitle: "列标题",
|
|
36902
|
+
expTitleTitle: "是否为列标题,否则显示为列的字段名",
|
|
36903
|
+
expColgroupTitle: "如果存在,则支持带有分组结构的表头",
|
|
36904
|
+
expOptMerge: "合并",
|
|
36905
|
+
expMergeTitle: "如果存在,则支持带有合并结构的单元格",
|
|
36906
|
+
expOptAllExpand: "展开树",
|
|
36907
|
+
expAllExpandTitle: "如果存在,则支持将带有层级结构的数据全部展开",
|
|
36908
|
+
expOptUseStyle: "样式",
|
|
36909
|
+
expUseStyleTitle: "如果存在,则支持带样式的单元格",
|
|
36910
|
+
expOptOriginal: "源数据",
|
|
36911
|
+
expOriginalTitle: "如果为源数据,则支持导入到表格中",
|
|
36912
|
+
expPrint: "打印",
|
|
36913
|
+
expConfirm: "导出",
|
|
36914
|
+
expCancel: "取消"
|
|
36915
|
+
},
|
|
36916
|
+
modal: {
|
|
36917
|
+
errTitle: "错误提示",
|
|
36918
|
+
zoomMin: "最小化",
|
|
36919
|
+
zoomIn: "最大化",
|
|
36920
|
+
zoomOut: "还原",
|
|
36921
|
+
close: "关闭",
|
|
36922
|
+
miniMaxSize: "最小化窗口的数量不能超过 {0} 个",
|
|
36923
|
+
footPropErr: "show-footer 仅用于启用表尾,需配合 show-confirm-button | show-cancel-button | 插槽使用"
|
|
36924
|
+
},
|
|
36925
|
+
drawer: {
|
|
36926
|
+
close: "关闭"
|
|
36927
|
+
},
|
|
36928
|
+
form: {
|
|
36929
|
+
folding: "收起",
|
|
36930
|
+
unfolding: "展开"
|
|
36931
|
+
},
|
|
36932
|
+
toolbar: {
|
|
36933
|
+
import: "导入",
|
|
36934
|
+
export: "导出",
|
|
36935
|
+
print: "打印",
|
|
36936
|
+
refresh: "刷新",
|
|
36937
|
+
zoomIn: "全屏",
|
|
36938
|
+
zoomOut: "还原",
|
|
36939
|
+
custom: "列设置",
|
|
36940
|
+
customAll: "全部",
|
|
36941
|
+
customConfirm: "确认",
|
|
36942
|
+
customRestore: "重置",
|
|
36943
|
+
fixedLeft: "冻结在左侧",
|
|
36944
|
+
fixedRight: "冻结在右侧",
|
|
36945
|
+
cancelFixed: "取消冻结列"
|
|
36946
|
+
},
|
|
36947
|
+
datePicker: {
|
|
36948
|
+
yearTitle: "{0} 年"
|
|
36949
|
+
},
|
|
36950
|
+
dateRangePicker: {
|
|
36951
|
+
pleaseRange: "请选择开始日期与结束日期"
|
|
36952
|
+
},
|
|
36953
|
+
input: {
|
|
36954
|
+
date: {
|
|
36955
|
+
m1: "01 月",
|
|
36956
|
+
m2: "02 月",
|
|
36957
|
+
m3: "03 月",
|
|
36958
|
+
m4: "04 月",
|
|
36959
|
+
m5: "05 月",
|
|
36960
|
+
m6: "06 月",
|
|
36961
|
+
m7: "07 月",
|
|
36962
|
+
m8: "08 月",
|
|
36963
|
+
m9: "09 月",
|
|
36964
|
+
m10: "10 月",
|
|
36965
|
+
m11: "11 月",
|
|
36966
|
+
m12: "12 月",
|
|
36967
|
+
quarterLabel: "{0} 年",
|
|
36968
|
+
monthLabel: "{0} 年",
|
|
36969
|
+
dayLabel: "{0} 年 {1}",
|
|
36970
|
+
labelFormat: {
|
|
36971
|
+
date: "yyyy-MM-dd",
|
|
36972
|
+
time: "HH:mm:ss",
|
|
36973
|
+
datetime: "yyyy-MM-dd HH:mm:ss",
|
|
36974
|
+
week: "yyyy 年第 WW 周",
|
|
36975
|
+
month: "yyyy-MM",
|
|
36976
|
+
quarter: "yyyy 年第 q 季度",
|
|
36977
|
+
year: "yyyy"
|
|
36978
|
+
},
|
|
36979
|
+
weeks: {
|
|
36980
|
+
w: "",
|
|
36981
|
+
w0: "周日",
|
|
36982
|
+
w1: "周一",
|
|
36983
|
+
w2: "周二",
|
|
36984
|
+
w3: "周三",
|
|
36985
|
+
w4: "周四",
|
|
36986
|
+
w5: "周五",
|
|
36987
|
+
w6: "周六"
|
|
36988
|
+
},
|
|
36989
|
+
months: {
|
|
36990
|
+
m0: "一月",
|
|
36991
|
+
m1: "二月",
|
|
36992
|
+
m2: "三月",
|
|
36993
|
+
m3: "四月",
|
|
36994
|
+
m4: "五月",
|
|
36995
|
+
m5: "六月",
|
|
36996
|
+
m6: "七月",
|
|
36997
|
+
m7: "八月",
|
|
36998
|
+
m8: "九月",
|
|
36999
|
+
m9: "十月",
|
|
37000
|
+
m10: "十一月",
|
|
37001
|
+
m11: "十二月"
|
|
37002
|
+
},
|
|
37003
|
+
quarters: {
|
|
37004
|
+
q1: "第一季度",
|
|
37005
|
+
q2: "第二季度",
|
|
37006
|
+
q3: "第三季度",
|
|
37007
|
+
q4: "第四季度"
|
|
37008
|
+
}
|
|
37009
|
+
}
|
|
37010
|
+
},
|
|
37011
|
+
numberInput: {
|
|
37012
|
+
currencySymbol: "¥"
|
|
37013
|
+
},
|
|
37014
|
+
imagePreview: {
|
|
37015
|
+
popupTitle: "预览",
|
|
37016
|
+
operBtn: {
|
|
37017
|
+
zoomOut: "缩小",
|
|
37018
|
+
zoomIn: "放大",
|
|
37019
|
+
pctFull: "等比例缩放",
|
|
37020
|
+
pct11: "显示原始尺寸",
|
|
37021
|
+
rotateLeft: "向左旋转",
|
|
37022
|
+
rotateRight: "向右旋转",
|
|
37023
|
+
print: "点击打印图片",
|
|
37024
|
+
download: "点击下载图片"
|
|
37025
|
+
}
|
|
37026
|
+
},
|
|
37027
|
+
upload: {
|
|
37028
|
+
fileBtnText: "点击或拖拽上传",
|
|
37029
|
+
imgBtnText: "点击或拖拽上传",
|
|
37030
|
+
dragPlaceholder: "请把文件拖放到这个区域即可上传",
|
|
37031
|
+
imgSizeHint: "单张{0}",
|
|
37032
|
+
imgCountHint: "最多{0}张",
|
|
37033
|
+
fileTypeHint: "支持 {0} 文件类型",
|
|
37034
|
+
fileSizeHint: "单个文件大小不超过{0}",
|
|
37035
|
+
fileCountHint: "最多可上传{0}个文件",
|
|
37036
|
+
uploadTypeErr: "文件类型不匹配!",
|
|
37037
|
+
overCountErr: "最多只能选择{0}个文件!",
|
|
37038
|
+
overCountExtraErr: "已超出最大数量{0}个,超出的{1}个文件将被忽略!",
|
|
37039
|
+
overSizeErr: "文件大小最大不能超过{0}!",
|
|
37040
|
+
manualUpload: "点击上传",
|
|
37041
|
+
reUpload: "重新上传",
|
|
37042
|
+
uploadProgress: "上传中 {0}%",
|
|
37043
|
+
uploadErr: "上传失败",
|
|
37044
|
+
uploadSuccess: "上传成功",
|
|
37045
|
+
moreBtnText: "更多({0})",
|
|
37046
|
+
viewItemTitle: "点击查看",
|
|
37047
|
+
morePopup: {
|
|
37048
|
+
readTitle: "查看列表",
|
|
37049
|
+
imageTitle: "上传图片",
|
|
37050
|
+
fileTitle: "上传文件"
|
|
37051
|
+
}
|
|
37052
|
+
},
|
|
37053
|
+
empty: {
|
|
37054
|
+
defText: "暂无数据"
|
|
37055
|
+
},
|
|
37056
|
+
colorPicker: {
|
|
37057
|
+
clear: "清除",
|
|
37058
|
+
confirm: "确认",
|
|
37059
|
+
copySuccess: "已复制到剪贴板:{0}",
|
|
37060
|
+
hex: "十六进制"
|
|
37061
|
+
},
|
|
37062
|
+
formDesign: {
|
|
37063
|
+
formName: "表单名称",
|
|
37064
|
+
defFormTitle: "未命名的表单",
|
|
37065
|
+
widgetPropTab: "控件属性",
|
|
37066
|
+
widgetFormTab: "表单属性",
|
|
37067
|
+
error: {
|
|
37068
|
+
wdFormUni: "该类型的控件在表单中只允许添加一个",
|
|
37069
|
+
wdSubUni: "该类型的控件在子表中只允许添加一个"
|
|
37070
|
+
},
|
|
37071
|
+
styleSetting: {
|
|
37072
|
+
btn: "样式设置",
|
|
37073
|
+
title: "表单的样式设置",
|
|
37074
|
+
layoutTitle: "控件布局",
|
|
37075
|
+
verticalLayout: "上下布局",
|
|
37076
|
+
horizontalLayout: "横向布局",
|
|
37077
|
+
styleTitle: "标题样式",
|
|
37078
|
+
boldTitle: "标题加粗",
|
|
37079
|
+
fontBold: "加粗",
|
|
37080
|
+
fontNormal: "常规",
|
|
37081
|
+
colonTitle: "显示冒号",
|
|
37082
|
+
colonVisible: "显示",
|
|
37083
|
+
colonHidden: "隐藏",
|
|
37084
|
+
alignTitle: "对齐方式",
|
|
37085
|
+
widthTitle: "标题宽度",
|
|
37086
|
+
alignLeft: "居左",
|
|
37087
|
+
alignRight: "居右",
|
|
37088
|
+
unitPx: "像素",
|
|
37089
|
+
unitPct: "百分比"
|
|
37090
|
+
},
|
|
37091
|
+
widget: {
|
|
37092
|
+
group: {
|
|
37093
|
+
base: "基础控件",
|
|
37094
|
+
layout: "布局控件",
|
|
37095
|
+
system: "系统控件",
|
|
37096
|
+
module: "模块控件",
|
|
37097
|
+
chart: "图表控件",
|
|
37098
|
+
advanced: "高级控件"
|
|
37099
|
+
},
|
|
37100
|
+
copyTitle: "副本_{0}",
|
|
37101
|
+
component: {
|
|
37102
|
+
input: "输入框",
|
|
37103
|
+
textarea: "文本域",
|
|
37104
|
+
select: "下拉选择",
|
|
37105
|
+
row: "一行多列",
|
|
37106
|
+
title: "标题",
|
|
37107
|
+
text: "文本",
|
|
37108
|
+
subtable: "子表",
|
|
37109
|
+
VxeSwitch: "是/否",
|
|
37110
|
+
VxeInput: "输入框",
|
|
37111
|
+
VxeNumberInput: "数字",
|
|
37112
|
+
VxeDatePicker: "日期",
|
|
37113
|
+
VxeTextarea: "文本域",
|
|
37114
|
+
VxeSelect: "下拉选择",
|
|
37115
|
+
VxeTreeSelect: "树形选择",
|
|
37116
|
+
VxeRadioGroup: "单选框",
|
|
37117
|
+
VxeCheckboxGroup: "复选框",
|
|
37118
|
+
VxeUploadFile: "文件",
|
|
37119
|
+
VxeUploadImage: "图片",
|
|
37120
|
+
VxeRate: "评分",
|
|
37121
|
+
VxeSlider: "滑块"
|
|
37122
|
+
}
|
|
37123
|
+
},
|
|
37124
|
+
widgetProp: {
|
|
37125
|
+
name: "控件名称",
|
|
37126
|
+
placeholder: "提示语",
|
|
37127
|
+
required: "必填校验",
|
|
37128
|
+
multiple: "允许多选",
|
|
37129
|
+
displaySetting: {
|
|
37130
|
+
name: "显示设置",
|
|
37131
|
+
pc: "电脑端",
|
|
37132
|
+
mobile: "手机端",
|
|
37133
|
+
visible: "显示",
|
|
37134
|
+
hidden: "隐藏"
|
|
37135
|
+
},
|
|
37136
|
+
dataSource: {
|
|
37137
|
+
name: "数据源",
|
|
37138
|
+
defValue: "选项{0}",
|
|
37139
|
+
addOption: "添加选项",
|
|
37140
|
+
batchEditOption: "批量编辑",
|
|
37141
|
+
batchEditTip: "每行对应一个选项,支持从表格、Excel、WPS 中直接复制粘贴。",
|
|
37142
|
+
batchEditSubTip: "每行对应一个选项,如果是分组,子项可以是空格或制表键开头,支持从表格、Excel、WPS 中直接复制粘贴。",
|
|
37143
|
+
buildOption: "生成选项"
|
|
37144
|
+
},
|
|
37145
|
+
rowProp: {
|
|
37146
|
+
colSize: "列数",
|
|
37147
|
+
col2: "两列",
|
|
37148
|
+
col3: "三列",
|
|
37149
|
+
col4: "四列",
|
|
37150
|
+
col6: "六列",
|
|
37151
|
+
layout: "布局"
|
|
37152
|
+
},
|
|
37153
|
+
textProp: {
|
|
37154
|
+
name: "内容",
|
|
37155
|
+
alignTitle: "对齐方式",
|
|
37156
|
+
alignLeft: "居左",
|
|
37157
|
+
alignCenter: "居中",
|
|
37158
|
+
alignRight: "居右",
|
|
37159
|
+
colorTitle: "字体颜色",
|
|
37160
|
+
sizeTitle: "字体大小",
|
|
37161
|
+
boldTitle: "字体加粗",
|
|
37162
|
+
fontNormal: "常规",
|
|
37163
|
+
fontBold: "加粗"
|
|
37164
|
+
},
|
|
37165
|
+
subtableProp: {
|
|
37166
|
+
seqTitle: "序号",
|
|
37167
|
+
showSeq: "显示序号",
|
|
37168
|
+
showCheckbox: "允许多选",
|
|
37169
|
+
errSubDrag: "子表不支持该控件,请使用其他控件",
|
|
37170
|
+
colPlace: "将控件拖拽进来"
|
|
37171
|
+
},
|
|
37172
|
+
uploadProp: {
|
|
37173
|
+
limitFileCount: "文件数量限制",
|
|
37174
|
+
limitFileSize: "文件大小限制",
|
|
37175
|
+
multiFile: "允许上传多个文件",
|
|
37176
|
+
limitImgCount: "图片数量限制",
|
|
37177
|
+
limitImgSize: "图片大小限制",
|
|
37178
|
+
multiImg: "允许上传多张图片"
|
|
37179
|
+
}
|
|
37180
|
+
}
|
|
37181
|
+
},
|
|
37182
|
+
listDesign: {
|
|
37183
|
+
fieldSettingTab: "字段设置",
|
|
37184
|
+
listSettingTab: "参数设置",
|
|
37185
|
+
searchTitle: "查询条件",
|
|
37186
|
+
listTitle: "列表字段",
|
|
37187
|
+
searchField: "查询字段",
|
|
37188
|
+
listField: "列表字段",
|
|
37189
|
+
activeBtn: {
|
|
37190
|
+
ActionButtonUpdate: "编辑",
|
|
37191
|
+
ActionButtonDelete: "删除"
|
|
37192
|
+
},
|
|
37193
|
+
search: {
|
|
37194
|
+
addBtn: "编辑",
|
|
37195
|
+
emptyText: "未配置查询条件",
|
|
37196
|
+
editPopupTitle: "编辑查询字段"
|
|
37197
|
+
},
|
|
37198
|
+
searchPopup: {
|
|
37199
|
+
colTitle: "标题",
|
|
37200
|
+
saveBtn: "保存"
|
|
37201
|
+
}
|
|
37202
|
+
},
|
|
37203
|
+
text: {
|
|
37204
|
+
copySuccess: "已复制到剪贴板",
|
|
37205
|
+
copyError: "当前环境不支持该操作"
|
|
37206
|
+
},
|
|
37207
|
+
countdown: {
|
|
37208
|
+
formats: {
|
|
37209
|
+
yyyy: "年",
|
|
37210
|
+
MM: "月",
|
|
37211
|
+
dd: "天",
|
|
37212
|
+
HH: "时",
|
|
37213
|
+
mm: "分",
|
|
37214
|
+
ss: "秒"
|
|
37215
|
+
}
|
|
37216
|
+
},
|
|
37217
|
+
gantt: {
|
|
37218
|
+
tFullFormat: {
|
|
37219
|
+
year: "{yyyy}年",
|
|
37220
|
+
quarter: "{yyyy}年第{q}季度",
|
|
37221
|
+
month: "{yyyy}年{MM}月",
|
|
37222
|
+
week: "{yyyy}年第{W}周",
|
|
37223
|
+
day: "{yyyy}年{MM}月 {E}",
|
|
37224
|
+
date: "{yyyy}年{MM}月{dd}日",
|
|
37225
|
+
hour: "{yyyy}年{MM}月{dd}日{HH}时",
|
|
37226
|
+
minute: "{yyyy}年{MM}月{dd}日{HH}时{mm}分",
|
|
37227
|
+
second: "{yyyy}年{MM}月{dd}日{HH}时{mm}分{ss}秒"
|
|
37228
|
+
},
|
|
37229
|
+
tSimpleFormat: {
|
|
37230
|
+
year: "{yyyy}年",
|
|
37231
|
+
quarter: "{q}季度",
|
|
37232
|
+
month: "{M}月",
|
|
37233
|
+
week: "{W}周",
|
|
37234
|
+
day: "{d}",
|
|
37235
|
+
date: "{d}",
|
|
37236
|
+
hour: "{HH}",
|
|
37237
|
+
minute: "{mm}",
|
|
37238
|
+
second: "{ss}"
|
|
37239
|
+
},
|
|
37240
|
+
dayss: {
|
|
37241
|
+
w0: "日",
|
|
37242
|
+
w1: "一",
|
|
37243
|
+
w2: "二",
|
|
37244
|
+
w3: "三",
|
|
37245
|
+
w4: "四",
|
|
37246
|
+
w5: "五",
|
|
37247
|
+
w6: "六"
|
|
37248
|
+
}
|
|
37249
|
+
},
|
|
37250
|
+
plugins: {
|
|
37251
|
+
extendCellArea: {
|
|
37252
|
+
area: {
|
|
37253
|
+
mergeErr: "无法对合并单元格进行该操作",
|
|
37254
|
+
multiErr: "无法对多重选择区域进行该操作",
|
|
37255
|
+
selectErr: "无法操作指定区域的单元格",
|
|
37256
|
+
extendErr: "如果延伸的区域包含被合并的单元格,所有合并的单元格需大小相同",
|
|
37257
|
+
pasteMultiErr: "无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作",
|
|
37258
|
+
cpInvalidErr: "该操作无法进行,您选择的区域中存在被禁止的列({0})"
|
|
37259
|
+
},
|
|
37260
|
+
fnr: {
|
|
37261
|
+
title: "查找和替换",
|
|
37262
|
+
findLabel: "查找",
|
|
37263
|
+
replaceLabel: "替换",
|
|
37264
|
+
findTitle: "查找内容:",
|
|
37265
|
+
replaceTitle: "替换为:",
|
|
37266
|
+
tabs: {
|
|
37267
|
+
find: "查找",
|
|
37268
|
+
replace: "替换"
|
|
37269
|
+
},
|
|
37270
|
+
filter: {
|
|
37271
|
+
re: "正则表达式",
|
|
37272
|
+
whole: "全词匹配",
|
|
37273
|
+
sensitive: "区分大小写"
|
|
37274
|
+
},
|
|
37275
|
+
btns: {
|
|
37276
|
+
findNext: "查找下一个",
|
|
37277
|
+
findAll: "查找全部",
|
|
37278
|
+
replace: "替换",
|
|
37279
|
+
replaceAll: "替换全部",
|
|
37280
|
+
cancel: "取消"
|
|
37281
|
+
},
|
|
37282
|
+
header: {
|
|
37283
|
+
seq: "#",
|
|
37284
|
+
cell: "单元格",
|
|
37285
|
+
value: "值"
|
|
37286
|
+
},
|
|
37287
|
+
body: {
|
|
37288
|
+
row: "行:{0}",
|
|
37289
|
+
col: "列:{0}"
|
|
37290
|
+
},
|
|
37291
|
+
empty: "(空值)",
|
|
37292
|
+
reError: "无效的正则表达式",
|
|
37293
|
+
recordCount: "已找到 {0} 个单元格",
|
|
37294
|
+
notCell: "找不到匹配的单元格",
|
|
37295
|
+
replaceSuccess: "成功替换 {0} 个单元格"
|
|
37296
|
+
}
|
|
37297
|
+
},
|
|
37298
|
+
extendPivotTable: {
|
|
37299
|
+
aggregation: {
|
|
37300
|
+
grouping: "分组",
|
|
37301
|
+
values: "值",
|
|
37302
|
+
groupPlaceholder: "拖至此处进行分组",
|
|
37303
|
+
valuesPlaceholder: "拖至此处进行聚合",
|
|
37304
|
+
dragExistCol: "该列已存在",
|
|
37305
|
+
sortHelpTip: "点击并拖动图标可以调整顺序"
|
|
37306
|
+
},
|
|
37307
|
+
aggFuncs: {
|
|
37308
|
+
sum: "求和",
|
|
37309
|
+
count: "计数",
|
|
37310
|
+
avg: "平均值",
|
|
37311
|
+
min: "最小值",
|
|
37312
|
+
max: "最大值",
|
|
37313
|
+
first: "首个值",
|
|
37314
|
+
last: "末尾值"
|
|
37315
|
+
}
|
|
37316
|
+
},
|
|
37317
|
+
filterComplexInput: {
|
|
37318
|
+
menus: {
|
|
37319
|
+
fixedColumn: "冻结列",
|
|
37320
|
+
fixedGroup: "冻结分组",
|
|
37321
|
+
cancelFixed: "取消冻结",
|
|
37322
|
+
fixedLeft: "冻结左侧",
|
|
37323
|
+
fixedRight: "冻结右侧"
|
|
37324
|
+
},
|
|
37325
|
+
cases: {
|
|
37326
|
+
equal: "等于",
|
|
37327
|
+
gt: "大于",
|
|
37328
|
+
lt: "小于",
|
|
37329
|
+
begin: "开头是",
|
|
37330
|
+
endin: "结尾是",
|
|
37331
|
+
include: "包含",
|
|
37332
|
+
isSensitive: "区分大小写"
|
|
37333
|
+
}
|
|
37334
|
+
},
|
|
37335
|
+
filterCombination: {
|
|
37336
|
+
menus: {
|
|
37337
|
+
sort: "排序",
|
|
37338
|
+
clearSort: "清除排序",
|
|
37339
|
+
sortAsc: "升序",
|
|
37340
|
+
sortDesc: "降序",
|
|
37341
|
+
fixedColumn: "冻结列",
|
|
37342
|
+
fixedGroup: "冻结分组",
|
|
37343
|
+
cancelFixed: "取消冻结",
|
|
37344
|
+
fixedLeft: "冻结左侧",
|
|
37345
|
+
fixedRight: "冻结右侧",
|
|
37346
|
+
clearFilter: "清除筛选",
|
|
37347
|
+
textOption: "文本筛选",
|
|
37348
|
+
numberOption: "数值筛选",
|
|
37349
|
+
dateOption: "日期筛选"
|
|
37350
|
+
},
|
|
37351
|
+
popup: {
|
|
37352
|
+
title: "自定义筛选的方式",
|
|
37353
|
+
currColumnTitle: "显示行:",
|
|
37354
|
+
and: "与",
|
|
37355
|
+
or: "或",
|
|
37356
|
+
describeHtml: "可用 ? 代表单个字符<br/>用 * 代表任意多个字符"
|
|
37357
|
+
},
|
|
37358
|
+
cases: {
|
|
37359
|
+
equal: "等于",
|
|
37360
|
+
unequal: "不等于",
|
|
37361
|
+
gt: "大于",
|
|
37362
|
+
ge: "大于或等于",
|
|
37363
|
+
lt: "小于",
|
|
37364
|
+
le: "小于或等于",
|
|
37365
|
+
begin: "开头是",
|
|
37366
|
+
notbegin: "开头不是",
|
|
37367
|
+
endin: "结尾是",
|
|
37368
|
+
notendin: "结尾不是",
|
|
37369
|
+
include: "包含",
|
|
37370
|
+
exclude: "不包含",
|
|
37371
|
+
between: "介于",
|
|
37372
|
+
isAfter: "在以下日期之后",
|
|
37373
|
+
eqAfter: "在以下日期之后或与之相同",
|
|
37374
|
+
isBefore: "在以下日期之前",
|
|
37375
|
+
eqBefore: "在以下日期之前或与之相同",
|
|
37376
|
+
top10: "前10项",
|
|
37377
|
+
aboveAverage: "高于平均值",
|
|
37378
|
+
belowAverage: "低于平均值",
|
|
37379
|
+
before: "之前",
|
|
37380
|
+
after: "之后",
|
|
37381
|
+
tomorrow: "明天",
|
|
37382
|
+
today: "今天",
|
|
37383
|
+
yesterday: "昨天",
|
|
37384
|
+
nextWeek: "下周",
|
|
37385
|
+
thisWeek: "本周",
|
|
37386
|
+
lastWeek: "上周",
|
|
37387
|
+
nextMonth: "下月",
|
|
37388
|
+
thisMonth: "本月",
|
|
37389
|
+
lastMonth: "上月",
|
|
37390
|
+
nextYear: "明年",
|
|
37391
|
+
thisYear: "今年",
|
|
37392
|
+
lastYear: "去年",
|
|
37393
|
+
yearToDate: "本年度截止到现在",
|
|
37394
|
+
custom: "自定义筛选",
|
|
37395
|
+
insensitive: "不区分大小写",
|
|
37396
|
+
isSensitive: "区分大小写"
|
|
37397
|
+
},
|
|
37398
|
+
empty: "(空白)",
|
|
37399
|
+
notData: "无匹配项"
|
|
37400
|
+
}
|
|
37401
|
+
},
|
|
37402
|
+
pro: {
|
|
37403
|
+
area: {
|
|
37404
|
+
mergeErr: "无法对合并单元格进行该操作",
|
|
37405
|
+
multiErr: "无法对多重选择区域进行该操作",
|
|
37406
|
+
extendErr: "如果延伸的区域包含被合并的单元格,所有合并的单元格需大小相同",
|
|
37407
|
+
pasteMultiErr: "无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作"
|
|
37408
|
+
},
|
|
37409
|
+
fnr: {
|
|
37410
|
+
title: "查找和替换",
|
|
37411
|
+
findLabel: "查找",
|
|
37412
|
+
replaceLabel: "替换",
|
|
37413
|
+
findTitle: "查找内容:",
|
|
37414
|
+
replaceTitle: "替换为:",
|
|
37415
|
+
tabs: {
|
|
37416
|
+
find: "查找",
|
|
37417
|
+
replace: "替换"
|
|
37418
|
+
},
|
|
37419
|
+
filter: {
|
|
37420
|
+
re: "正则表达式",
|
|
37421
|
+
whole: "全词匹配",
|
|
37422
|
+
sensitive: "区分大小写"
|
|
37423
|
+
},
|
|
37424
|
+
btns: {
|
|
37425
|
+
findNext: "查找下一个",
|
|
37426
|
+
findAll: "查找全部",
|
|
37427
|
+
replace: "替换",
|
|
37428
|
+
replaceAll: "替换全部",
|
|
37429
|
+
cancel: "取消"
|
|
37430
|
+
},
|
|
37431
|
+
header: {
|
|
37432
|
+
seq: "#",
|
|
37433
|
+
cell: "单元格",
|
|
37434
|
+
value: "值"
|
|
37435
|
+
},
|
|
37436
|
+
empty: "(空值)",
|
|
37437
|
+
reError: "无效的正则表达式",
|
|
37438
|
+
recordCount: "已找到 {0} 个单元格",
|
|
37439
|
+
notCell: "找不到匹配的单元格",
|
|
37440
|
+
replaceSuccess: "成功替换 {0} 个单元格"
|
|
37441
|
+
}
|
|
37442
|
+
},
|
|
37443
|
+
renderer: {
|
|
37444
|
+
search: "搜索",
|
|
37445
|
+
cases: {
|
|
37446
|
+
equal: "等于",
|
|
37447
|
+
unequal: "不等于",
|
|
37448
|
+
gt: "大于",
|
|
37449
|
+
ge: "大于或等于",
|
|
37450
|
+
lt: "小于",
|
|
37451
|
+
le: "小于或等于",
|
|
37452
|
+
begin: "开头是",
|
|
37453
|
+
notbegin: "开头不是",
|
|
37454
|
+
endin: "结尾是",
|
|
37455
|
+
notendin: "结尾不是",
|
|
37456
|
+
include: "包含",
|
|
37457
|
+
exclude: "不包含",
|
|
37458
|
+
between: "介于",
|
|
37459
|
+
top10: "前10项",
|
|
37460
|
+
aboveAverage: "高于平均值",
|
|
37461
|
+
belowAverage: "低于平均值",
|
|
37462
|
+
custom: "自定义筛选",
|
|
37463
|
+
insensitive: "不区分大小写",
|
|
37464
|
+
isSensitive: "区分大小写"
|
|
37465
|
+
},
|
|
37466
|
+
combination: {
|
|
37467
|
+
menus: {
|
|
37468
|
+
sort: "排序",
|
|
37469
|
+
clearSort: "清除排序",
|
|
37470
|
+
sortAsc: "升序",
|
|
37471
|
+
sortDesc: "降序",
|
|
37472
|
+
fixedColumn: "冻结列",
|
|
37473
|
+
fixedGroup: "冻结分组",
|
|
37474
|
+
cancelFixed: "取消冻结",
|
|
37475
|
+
fixedLeft: "冻结到左侧",
|
|
37476
|
+
fixedRight: "冻结到右侧",
|
|
37477
|
+
clearFilter: "清除筛选",
|
|
37478
|
+
textOption: "文本筛选",
|
|
37479
|
+
numberOption: "数值筛选",
|
|
37480
|
+
dateOption: "日期筛选"
|
|
37481
|
+
},
|
|
37482
|
+
popup: {
|
|
37483
|
+
title: "自定义筛选的方式",
|
|
37484
|
+
currColumnTitle: "显示行:",
|
|
37485
|
+
and: "与",
|
|
37486
|
+
or: "或",
|
|
37487
|
+
describeHtml: "可用 ? 代表单个字符<br/>用 * 代表任意多个字符"
|
|
37488
|
+
},
|
|
37489
|
+
empty: "(空白)",
|
|
37490
|
+
notData: "无匹配项"
|
|
37491
|
+
}
|
|
37492
|
+
}
|
|
37493
|
+
}
|
|
37494
|
+
};
|
|
37495
|
+
return zhCN;
|
|
37496
|
+
}
|
|
37497
|
+
var zhCNExports = requireZhCN();
|
|
37498
|
+
const vxeZhCN = /* @__PURE__ */ getDefaultExportFromCjs(zhCNExports);
|
|
37499
|
+
VxeUI.setI18n("zh-CN", vxeZhCN);
|
|
37500
|
+
VxeUI.setLanguage("zh-CN");
|
|
37502
37501
|
const index = {
|
|
37503
37502
|
Button: _sfc_main$d,
|
|
37504
37503
|
Header: _sfc_main$c,
|
|
@@ -37513,9 +37512,13 @@ const index = {
|
|
|
37513
37512
|
PascalCase: _sfc_main$1,
|
|
37514
37513
|
NavBar: _sfc_main,
|
|
37515
37514
|
// 版本号
|
|
37516
|
-
version: "1.0.
|
|
37515
|
+
version: "1.0.6"
|
|
37517
37516
|
};
|
|
37518
|
-
function install(app) {
|
|
37517
|
+
function install(app, options = {}) {
|
|
37518
|
+
if (options.vxeLocale && options.vxeLanguage) {
|
|
37519
|
+
VxeUI.setI18n(options.vxeLanguage, options.vxeLocale);
|
|
37520
|
+
VxeUI.setLanguage(options.vxeLanguage);
|
|
37521
|
+
}
|
|
37519
37522
|
app.component("IdpButton", _sfc_main$d);
|
|
37520
37523
|
app.component("IdpHeader", _sfc_main$c);
|
|
37521
37524
|
app.component("IdpPage", _sfc_main$b);
|
|
@@ -37529,6 +37532,10 @@ function install(app) {
|
|
|
37529
37532
|
app.component("IdpPascalCase", _sfc_main$1);
|
|
37530
37533
|
app.component("IdpNavBar", _sfc_main);
|
|
37531
37534
|
}
|
|
37535
|
+
function setupVxeUI(locale, language = "zh-CN") {
|
|
37536
|
+
VxeUI.setI18n(language, locale);
|
|
37537
|
+
VxeUI.setLanguage(language);
|
|
37538
|
+
}
|
|
37532
37539
|
export {
|
|
37533
37540
|
_sfc_main$d as Button,
|
|
37534
37541
|
_sfc_main$9 as EmailInput,
|
|
@@ -37543,5 +37550,6 @@ export {
|
|
|
37543
37550
|
_sfc_main$5 as Textarea,
|
|
37544
37551
|
_sfc_main$2 as VTable,
|
|
37545
37552
|
index as default,
|
|
37546
|
-
install
|
|
37553
|
+
install,
|
|
37554
|
+
setupVxeUI
|
|
37547
37555
|
};
|