vxe-table 4.6.18 → 4.6.20
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/es/grid/src/grid.js +3 -3
- package/es/icon/style.css +1 -1
- package/es/input/src/input.js +8 -6
- package/es/locale/lang/en-US.js +214 -13
- package/es/locale/lang/es-ES.js +215 -14
- package/es/locale/lang/hu-HU.d.ts +2 -0
- package/es/locale/lang/hu-HU.js +672 -0
- package/es/locale/lang/ja-JP.js +218 -17
- package/es/locale/lang/ko-KR.d.ts +2 -0
- package/es/locale/lang/ko-KR.js +674 -0
- package/es/locale/lang/pt-BR.js +214 -13
- package/es/locale/lang/ru-RU.d.ts +2 -0
- package/es/locale/lang/ru-RU.js +674 -0
- package/es/locale/lang/uk-UA.d.ts +2 -0
- package/es/locale/lang/uk-UA.js +674 -0
- package/es/locale/lang/vi-VN.js +674 -0
- package/es/locale/lang/zh-CHT.d.ts +2 -0
- package/es/locale/lang/zh-CHT.js +674 -0
- package/es/locale/lang/zh-CN.js +211 -10
- package/es/locale/lang/zh-HK.js +2 -2
- package/es/locale/lang/zh-MO.js +2 -2
- package/es/locale/lang/zh-TC.js +2 -473
- package/es/locale/lang/zh-TW.js +2 -2
- package/es/modal/src/modal.js +6 -1
- package/es/radio/style.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/src/columnInfo.js +2 -2
- package/es/table/src/table.js +6 -4
- package/es/tools/log.js +1 -1
- package/es/v-x-e-table/index.js +1 -1
- package/es/vxe-radio/style.css +1 -1
- package/lib/grid/src/grid.js +3 -3
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +317 -52
- package/lib/index.umd.min.js +1 -1
- package/lib/input/src/input.js +14 -4
- package/lib/input/src/input.min.js +1 -1
- package/lib/locale/lang/en-US.js +214 -13
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +214 -13
- package/lib/locale/lang/es-ES.js +215 -14
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +215 -14
- package/lib/locale/lang/hu-HU.d.ts +2 -0
- package/lib/locale/lang/hu-HU.js +678 -0
- package/lib/locale/lang/hu-HU.min.js +1 -0
- package/lib/locale/lang/hu-HU.umd.js +692 -0
- package/lib/locale/lang/ja-JP.js +218 -17
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +218 -17
- package/lib/locale/lang/ko-KR.d.ts +2 -0
- package/lib/locale/lang/ko-KR.js +680 -0
- package/lib/locale/lang/ko-KR.min.js +1 -0
- package/lib/locale/lang/ko-KR.umd.js +694 -0
- package/lib/locale/lang/pt-BR.js +214 -13
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +214 -13
- package/lib/locale/lang/ru-RU.d.ts +2 -0
- package/lib/locale/lang/ru-RU.js +680 -0
- package/lib/locale/lang/ru-RU.min.js +1 -0
- package/lib/locale/lang/ru-RU.umd.js +694 -0
- package/lib/locale/lang/uk-UA.d.ts +2 -0
- package/lib/locale/lang/uk-UA.js +680 -0
- package/lib/locale/lang/uk-UA.min.js +1 -0
- package/lib/locale/lang/uk-UA.umd.js +694 -0
- package/lib/locale/lang/vi-VN.js +680 -0
- package/lib/locale/lang/vi-VN.min.js +1 -0
- package/lib/locale/lang/zh-CHT.d.ts +2 -0
- package/lib/locale/lang/zh-CHT.js +680 -0
- package/lib/locale/lang/zh-CHT.min.js +1 -0
- package/lib/locale/lang/zh-CHT.umd.js +694 -0
- package/lib/locale/lang/zh-CN.js +211 -10
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +211 -10
- package/lib/locale/lang/zh-HK.js +2 -2
- package/lib/locale/lang/zh-HK.min.js +1 -1
- package/lib/locale/lang/zh-HK.umd.js +7 -477
- package/lib/locale/lang/zh-MO.js +2 -2
- package/lib/locale/lang/zh-MO.min.js +1 -1
- package/lib/locale/lang/zh-MO.umd.js +7 -477
- package/lib/locale/lang/zh-TC.js +3 -473
- package/lib/locale/lang/zh-TC.min.js +1 -1
- package/lib/locale/lang/zh-TC.umd.js +7 -477
- package/lib/locale/lang/zh-TW.js +2 -2
- package/lib/locale/lang/zh-TW.min.js +1 -1
- package/lib/locale/lang/zh-TW.umd.js +7 -477
- package/lib/modal/src/modal.js +5 -0
- package/lib/modal/src/modal.min.js +1 -1
- package/lib/radio/style/style.css +1 -1
- package/lib/radio/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/src/columnInfo.js +2 -2
- package/lib/table/src/columnInfo.min.js +1 -1
- package/lib/table/src/table.js +6 -4
- package/lib/table/src/table.min.js +1 -1
- package/lib/tools/log.js +1 -1
- package/lib/tools/log.min.js +1 -1
- package/lib/v-x-e-table/index.js +1 -1
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/vxe-radio/style/style.css +1 -1
- package/lib/vxe-radio/style/style.min.css +1 -1
- package/package.json +4 -4
- package/packages/grid/src/grid.ts +3 -3
- package/packages/input/src/input.ts +8 -6
- package/packages/locale/lang/en-US.ts +214 -13
- package/packages/locale/lang/es-ES.ts +215 -14
- package/packages/locale/lang/hu-HU.ts +674 -0
- package/packages/locale/lang/ja-JP.ts +218 -17
- package/packages/locale/lang/ko-KR.ts +676 -0
- package/packages/locale/lang/pt-BR.ts +214 -13
- package/packages/locale/lang/ru-RU.ts +676 -0
- package/packages/locale/lang/uk-UA.ts +676 -0
- package/packages/locale/lang/vi-VN.ts +676 -0
- package/packages/locale/lang/zh-CHT.ts +676 -0
- package/packages/locale/lang/zh-CN.ts +211 -10
- package/packages/locale/lang/zh-HK.ts +2 -2
- package/packages/locale/lang/zh-MO.ts +2 -2
- package/packages/locale/lang/zh-TC.ts +2 -474
- package/packages/locale/lang/zh-TW.ts +2 -2
- package/packages/modal/src/modal.ts +6 -1
- package/packages/table/src/columnInfo.ts +2 -2
- package/packages/table/src/table.ts +6 -4
- package/styles/checkbox.scss +1 -1
- package/styles/custom.scss +1 -1
- package/styles/export.scss +1 -1
- package/styles/radio.scss +1 -1
- package/styles/variable.scss +18 -18
- package/types/v-x-e-table/formats.d.ts +5 -0
- package/types/v-x-e-table/index.d.ts +1 -1
- /package/es/icon/style/{iconfont.1720006583309.ttf → iconfont.1727934888345.ttf} +0 -0
- /package/es/icon/style/{iconfont.1720006583309.woff → iconfont.1727934888345.woff} +0 -0
- /package/es/icon/style/{iconfont.1720006583309.woff2 → iconfont.1727934888345.woff2} +0 -0
- /package/es/{iconfont.1720006583309.ttf → iconfont.1727934888345.ttf} +0 -0
- /package/es/{iconfont.1720006583309.woff → iconfont.1727934888345.woff} +0 -0
- /package/es/{iconfont.1720006583309.woff2 → iconfont.1727934888345.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1720006583309.ttf → iconfont.1727934888345.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1720006583309.woff → iconfont.1727934888345.woff} +0 -0
- /package/lib/icon/style/{iconfont.1720006583309.woff2 → iconfont.1727934888345.woff2} +0 -0
- /package/lib/{iconfont.1720006583309.ttf → iconfont.1727934888345.ttf} +0 -0
- /package/lib/{iconfont.1720006583309.woff → iconfont.1727934888345.woff} +0 -0
- /package/lib/{iconfont.1720006583309.woff2 → iconfont.1727934888345.woff2} +0 -0
|
@@ -1,493 +1,23 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
if (typeof define === "function" && define.amd) {
|
|
3
|
-
define("vxe-table-lang.zh-TW", ["exports"], factory);
|
|
3
|
+
define("vxe-table-lang.zh-TW", ["exports", "./zh-CHT"], factory);
|
|
4
4
|
} else if (typeof exports !== "undefined") {
|
|
5
|
-
factory(exports);
|
|
5
|
+
factory(exports, require("./zh-CHT"));
|
|
6
6
|
} else {
|
|
7
7
|
var mod = {
|
|
8
8
|
exports: {}
|
|
9
9
|
};
|
|
10
|
-
factory(mod.exports);
|
|
10
|
+
factory(mod.exports, global.zhCHT);
|
|
11
11
|
global.vxeTableLangZhTW = mod.exports;
|
|
12
12
|
}
|
|
13
|
-
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
|
13
|
+
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports, _zhCHT) {
|
|
14
14
|
"use strict";
|
|
15
15
|
|
|
16
16
|
Object.defineProperty(_exports, "__esModule", {
|
|
17
17
|
value: true
|
|
18
18
|
});
|
|
19
19
|
_exports.default = void 0;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
pleaseInput: '请输入',
|
|
24
|
-
pleaseSelect: '请选择'
|
|
25
|
-
},
|
|
26
|
-
loading: {
|
|
27
|
-
text: '加載中...'
|
|
28
|
-
},
|
|
29
|
-
error: {
|
|
30
|
-
groupFixed: '如果使用分組表頭,固冻结列必須按組設定',
|
|
31
|
-
groupMouseRange: '分组表頭與 "{0}" 不能同時使用,這可能會出現錯誤',
|
|
32
|
-
groupTag: '分組列頭應該使用 "{0}" 而不是 "{1}",這可能會出現錯誤',
|
|
33
|
-
scrollErrProp: '啟用虛擬滾動後不支持該參數 "{0}"',
|
|
34
|
-
errConflicts: '參數 "{0}" 與 "{1}" 有衝突',
|
|
35
|
-
unableInsert: '無法插入到指定位置,請檢查參數是否正確',
|
|
36
|
-
useErr: '安裝 "{0}" 模組時發生錯誤,可能順序不正確,依賴的模組需要在Table之前安裝',
|
|
37
|
-
barUnableLink: '工具欄無法關聯表格',
|
|
38
|
-
expandContent: '展開行的插槽應該是 “content”,請檢查是否正確',
|
|
39
|
-
reqModule: '缺少 "{0}" 模組',
|
|
40
|
-
reqProp: '缺少必要的 "{0}" 參數,可能會導致出現錯誤',
|
|
41
|
-
emptyProp: '參數 "{0}" 不允許為空',
|
|
42
|
-
errProp: '不支持的參數 "{0}",可能為 "{1}"',
|
|
43
|
-
colRepet: 'column.{0}="{1}" 重複了,這可能會導致某些功能無法使用',
|
|
44
|
-
notFunc: '方法 "{0}" 不存在',
|
|
45
|
-
errFunc: '參數 "{0}" 不是一個方法',
|
|
46
|
-
notValidators: '全局校验 "{0}" 不存在',
|
|
47
|
-
notFormats: '全局格式化 "{0}" 不存在',
|
|
48
|
-
notCommands: '全局指令 "{0}" 不存在',
|
|
49
|
-
notSlot: '插槽 "{0}" 不存在',
|
|
50
|
-
noTree: '樹狀結構不支援 {0}',
|
|
51
|
-
notProp: '不支持的參數 "{0}"',
|
|
52
|
-
checkProp: '當數據量過大時可能會導致複選框卡頓,建議設置參數 "{0}" 提升渲染速度',
|
|
53
|
-
coverProp: '"{0}" 的參數 "{1}" 重複定義,這可能會出現錯誤',
|
|
54
|
-
delFunc: '方法 "{0}" 已停用,請使用 "{1}"',
|
|
55
|
-
delProp: '參數 "{0}" 已停用,請使用 "{1}"',
|
|
56
|
-
delEvent: '事件 "{0}" 已停用,請使用 "{1}"',
|
|
57
|
-
removeProp: '參數 "{0}" 已停用,不建議使用,這可能會導致出現錯誤',
|
|
58
|
-
errFormat: '全域的格式化內容應該使用 "VXETable.formats" 定義,掛載 "formatter={0}" 的管道已不建議使用',
|
|
59
|
-
notType: '不支持的檔案類型 "{0}"',
|
|
60
|
-
notExp: '該瀏覽器不支持導入/匯出功能',
|
|
61
|
-
impFields: '導入失敗,請檢查欄位名和數據格式是否正確',
|
|
62
|
-
treeNotImp: '樹狀表格不支持導入'
|
|
63
|
-
},
|
|
64
|
-
table: {
|
|
65
|
-
emptyText: '暫無資料',
|
|
66
|
-
allTitle: '全選/取消',
|
|
67
|
-
seqTitle: '#',
|
|
68
|
-
confirmFilter: '篩選',
|
|
69
|
-
resetFilter: '重置',
|
|
70
|
-
allFilter: '全部',
|
|
71
|
-
sortAsc: '按低到高排序',
|
|
72
|
-
sortDesc: '按高到低排序',
|
|
73
|
-
filter: '對所選的列啟用篩選',
|
|
74
|
-
impSuccess: '成功導入 {0} 條記錄',
|
|
75
|
-
expLoading: '正在匯出中',
|
|
76
|
-
expSuccess: '匯出成功',
|
|
77
|
-
expOriginFilename: '匯出_{0}',
|
|
78
|
-
expSrcFilename: '匯出_從_{0}',
|
|
79
|
-
customTitle: '列設定',
|
|
80
|
-
customAll: '全部',
|
|
81
|
-
customConfirm: '確認',
|
|
82
|
-
customRestore: '重置',
|
|
83
|
-
maxFixedCol: '最大冻结列的數量不能超過 {0} 個'
|
|
84
|
-
},
|
|
85
|
-
grid: {
|
|
86
|
-
selectOneRecord: '請至少選擇一條記錄!',
|
|
87
|
-
deleteSelectRecord: '您確定要刪除所選記錄嗎?',
|
|
88
|
-
removeSelectRecord: '您確定要移除所選記錄嗎?',
|
|
89
|
-
dataUnchanged: '資料未更改! ',
|
|
90
|
-
delSuccess: '成功删除所選記錄!',
|
|
91
|
-
saveSuccess: '保存成功!',
|
|
92
|
-
operError: '發生錯誤,操作失敗!'
|
|
93
|
-
},
|
|
94
|
-
select: {
|
|
95
|
-
search: '蒐索',
|
|
96
|
-
loadingText: '加載中',
|
|
97
|
-
emptyText: '暫無資料'
|
|
98
|
-
},
|
|
99
|
-
pager: {
|
|
100
|
-
goto: '前往',
|
|
101
|
-
pagesize: '{0}項/頁',
|
|
102
|
-
total: '共 {0} 項記錄',
|
|
103
|
-
pageClassifier: '頁',
|
|
104
|
-
homePage: '首頁',
|
|
105
|
-
homePageTitle: '首頁',
|
|
106
|
-
prevPage: '上一頁',
|
|
107
|
-
prevPageTitle: '上一頁',
|
|
108
|
-
nextPage: '下一頁',
|
|
109
|
-
nextPageTitle: '下一頁',
|
|
110
|
-
prevJump: '向上跳頁',
|
|
111
|
-
prevJumpTitle: '向上跳頁',
|
|
112
|
-
nextJump: '向下跳頁',
|
|
113
|
-
nextJumpTitle: '向下跳頁',
|
|
114
|
-
endPage: '末頁',
|
|
115
|
-
endPageTitle: '末頁'
|
|
116
|
-
},
|
|
117
|
-
alert: {
|
|
118
|
-
title: '系統提示'
|
|
119
|
-
},
|
|
120
|
-
button: {
|
|
121
|
-
confirm: '確認',
|
|
122
|
-
cancel: '取消'
|
|
123
|
-
},
|
|
124
|
-
filter: {
|
|
125
|
-
search: '搜索'
|
|
126
|
-
},
|
|
127
|
-
custom: {
|
|
128
|
-
cstmTitle: '列設定',
|
|
129
|
-
cstmRestore: '恢復默認',
|
|
130
|
-
cstmCancel: '取消',
|
|
131
|
-
cstmConfirm: '確認',
|
|
132
|
-
cstmConfirmRestore: '請確認是否恢復成默認列配置?',
|
|
133
|
-
cstmDragTarget: '移動目標:{0}',
|
|
134
|
-
setting: {
|
|
135
|
-
colSort: '排序',
|
|
136
|
-
sortHelpTip: '點擊並拖動圖標可以調整列的排序',
|
|
137
|
-
colTitle: '標題',
|
|
138
|
-
colVisible: '是否顯示',
|
|
139
|
-
colFixed: '冻结列(最多 {0} 列)',
|
|
140
|
-
fixedLeft: '左側',
|
|
141
|
-
fixedUnset: '不設定',
|
|
142
|
-
fixedRight: '右側'
|
|
143
|
-
}
|
|
144
|
-
},
|
|
145
|
-
import: {
|
|
146
|
-
modes: {
|
|
147
|
-
covering: '覆盖',
|
|
148
|
-
insert: '新增'
|
|
149
|
-
},
|
|
150
|
-
impTitle: '導入數據',
|
|
151
|
-
impFile: '檔名',
|
|
152
|
-
impSelect: '選擇檔案',
|
|
153
|
-
impType: '檔案類型',
|
|
154
|
-
impOpts: '參數設置',
|
|
155
|
-
impConfirm: '導入',
|
|
156
|
-
impCancel: '取消'
|
|
157
|
-
},
|
|
158
|
-
export: {
|
|
159
|
-
types: {
|
|
160
|
-
csv: 'CSV (逗号分隔)(*.csv)',
|
|
161
|
-
html: '網頁(*.html)',
|
|
162
|
-
xml: 'XML 文件(*.xml)',
|
|
163
|
-
txt: '文本文件(制表符分隔)(*.txt)',
|
|
164
|
-
xls: 'Excel 97-2003 工作簿(*.xls)',
|
|
165
|
-
xlsx: 'Excel 工作簿(*.xlsx)',
|
|
166
|
-
pdf: 'PDF (*.pdf)'
|
|
167
|
-
},
|
|
168
|
-
modes: {
|
|
169
|
-
current: '當前數據(當前頁的數據)',
|
|
170
|
-
selected: '選中數據(當前頁選中的數據)',
|
|
171
|
-
all: '全量數據(包括所有分頁的數據)'
|
|
172
|
-
},
|
|
173
|
-
printTitle: '列印數據',
|
|
174
|
-
expTitle: '匯出數據',
|
|
175
|
-
expName: '檔名',
|
|
176
|
-
expNamePlaceholder: '請輸入檔名',
|
|
177
|
-
expSheetName: '標題',
|
|
178
|
-
expSheetNamePlaceholder: '請輸入標題',
|
|
179
|
-
expType: '保存類型',
|
|
180
|
-
expMode: '選擇數據',
|
|
181
|
-
expCurrentColumn: '全部欄位',
|
|
182
|
-
expColumn: '選擇欄位',
|
|
183
|
-
expOpts: '參數設置',
|
|
184
|
-
expOptHeader: '表頭',
|
|
185
|
-
expHeaderTitle: '是否需要表頭',
|
|
186
|
-
expOptFooter: '表尾',
|
|
187
|
-
expFooterTitle: '是否需要表尾',
|
|
188
|
-
expOptColgroup: '分组表头',
|
|
189
|
-
expColgroupTitle: '如果存在,則支持帶有分組結構的表頭',
|
|
190
|
-
expOptMerge: '合併',
|
|
191
|
-
expMergeTitle: '如果存在,則支持帶有合併結構的儲存格',
|
|
192
|
-
expOptAllExpand: '展開層級',
|
|
193
|
-
expAllExpandTitle: '如果存在,則支持將帶有樹結構的數據全部展開',
|
|
194
|
-
expOptUseStyle: '樣式',
|
|
195
|
-
expUseStyleTitle: '如果存在,則支持帶樣式的儲存格',
|
|
196
|
-
expOptOriginal: '源數據',
|
|
197
|
-
expOriginalTitle: '如果為源數據,則支持導入到表格中',
|
|
198
|
-
expPrint: '列印',
|
|
199
|
-
expConfirm: '匯出',
|
|
200
|
-
expCancel: '取消'
|
|
201
|
-
},
|
|
202
|
-
modal: {
|
|
203
|
-
zoomIn: '最大化',
|
|
204
|
-
zoomOut: '還原',
|
|
205
|
-
close: '關閉'
|
|
206
|
-
},
|
|
207
|
-
drawer: {
|
|
208
|
-
close: '關閉'
|
|
209
|
-
},
|
|
210
|
-
form: {
|
|
211
|
-
folding: '收起',
|
|
212
|
-
unfolding: '展開'
|
|
213
|
-
},
|
|
214
|
-
toolbar: {
|
|
215
|
-
import: '導入',
|
|
216
|
-
export: '匯出',
|
|
217
|
-
print: '列印',
|
|
218
|
-
refresh: '刷新',
|
|
219
|
-
zoomIn: '全螢幕',
|
|
220
|
-
zoomOut: '還原',
|
|
221
|
-
custom: '列設定',
|
|
222
|
-
customAll: '全部',
|
|
223
|
-
customConfirm: '確認',
|
|
224
|
-
customRestore: '重置',
|
|
225
|
-
fixedLeft: '冻结在左側',
|
|
226
|
-
fixedRight: '冻结在右側',
|
|
227
|
-
cancelFixed: '取消冻结列'
|
|
228
|
-
},
|
|
229
|
-
input: {
|
|
230
|
-
date: {
|
|
231
|
-
m1: '01 月',
|
|
232
|
-
m2: '02 月',
|
|
233
|
-
m3: '03 月',
|
|
234
|
-
m4: '04 月',
|
|
235
|
-
m5: '05 月',
|
|
236
|
-
m6: '06 月',
|
|
237
|
-
m7: '07 月',
|
|
238
|
-
m8: '08 月',
|
|
239
|
-
m9: '09 月',
|
|
240
|
-
m10: '10 月',
|
|
241
|
-
m11: '11 月',
|
|
242
|
-
m12: '12 月',
|
|
243
|
-
quarterLabel: '{0} 年',
|
|
244
|
-
monthLabel: '{0} 年',
|
|
245
|
-
dayLabel: '{0} 年 {1}',
|
|
246
|
-
labelFormat: {
|
|
247
|
-
date: 'yyyy-MM-dd',
|
|
248
|
-
time: 'HH:mm:ss',
|
|
249
|
-
datetime: 'yyyy-MM-dd HH:mm:ss',
|
|
250
|
-
week: 'yyyy 年第 WW 周',
|
|
251
|
-
month: 'yyyy-MM',
|
|
252
|
-
quarter: 'yyyy 年第 q 季度',
|
|
253
|
-
year: 'yyyy'
|
|
254
|
-
},
|
|
255
|
-
weeks: {
|
|
256
|
-
w: '周',
|
|
257
|
-
w0: '周日',
|
|
258
|
-
w1: '周一',
|
|
259
|
-
w2: '周二',
|
|
260
|
-
w3: '周三',
|
|
261
|
-
w4: '周四',
|
|
262
|
-
w5: '周五',
|
|
263
|
-
w6: '周六'
|
|
264
|
-
},
|
|
265
|
-
months: {
|
|
266
|
-
m0: '一月',
|
|
267
|
-
m1: '二月',
|
|
268
|
-
m2: '三月',
|
|
269
|
-
m3: '四月',
|
|
270
|
-
m4: '五月',
|
|
271
|
-
m5: '六月',
|
|
272
|
-
m6: '七月',
|
|
273
|
-
m7: '八月',
|
|
274
|
-
m8: '九月',
|
|
275
|
-
m9: '十月',
|
|
276
|
-
m10: '十一月',
|
|
277
|
-
m11: '十二月'
|
|
278
|
-
},
|
|
279
|
-
quarters: {
|
|
280
|
-
q1: '第一季度',
|
|
281
|
-
q2: '第二季度',
|
|
282
|
-
q3: '第三季度',
|
|
283
|
-
q4: '第四季度'
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
},
|
|
287
|
-
formDesign: {
|
|
288
|
-
widget: {
|
|
289
|
-
input: '輸入框',
|
|
290
|
-
textarea: '文本域',
|
|
291
|
-
select: '下拉框'
|
|
292
|
-
}
|
|
293
|
-
},
|
|
294
|
-
/**
|
|
295
|
-
* 扩展插件
|
|
296
|
-
*/
|
|
297
|
-
plugins: {
|
|
298
|
-
extendCellArea: {
|
|
299
|
-
area: {
|
|
300
|
-
mergeErr: '無法對合併儲存格進行該操作',
|
|
301
|
-
multiErr: '無法對多重選擇區域進行該操作',
|
|
302
|
-
extendErr: '如果延伸的區域包含被合併的儲存格,所有合併的儲存格需大小相同',
|
|
303
|
-
pasteMultiErr: '无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作',
|
|
304
|
-
cpInvalidErr: '該操作無法進行,您選擇的區域中存在被禁止的列({0})'
|
|
305
|
-
},
|
|
306
|
-
fnr: {
|
|
307
|
-
title: '查找和替換',
|
|
308
|
-
findLabel: '查找',
|
|
309
|
-
replaceLabel: '替換',
|
|
310
|
-
findTitle: '查找內容:',
|
|
311
|
-
replaceTitle: '替換為:',
|
|
312
|
-
tabs: {
|
|
313
|
-
find: '查找',
|
|
314
|
-
replace: '替換'
|
|
315
|
-
},
|
|
316
|
-
filter: {
|
|
317
|
-
re: '規則運算式',
|
|
318
|
-
whole: '全詞匹配',
|
|
319
|
-
sensitive: '區分大小寫'
|
|
320
|
-
},
|
|
321
|
-
btns: {
|
|
322
|
-
findNext: '查找下一個',
|
|
323
|
-
findAll: '查找全部',
|
|
324
|
-
replace: '替换',
|
|
325
|
-
replaceAll: '替换全部',
|
|
326
|
-
cancel: '取消'
|
|
327
|
-
},
|
|
328
|
-
header: {
|
|
329
|
-
seq: '#',
|
|
330
|
-
cell: '儲存格',
|
|
331
|
-
value: '值'
|
|
332
|
-
},
|
|
333
|
-
empty: '(空值)',
|
|
334
|
-
reError: '無效的規則運算式',
|
|
335
|
-
recordCount: '已找到 {0} 個儲存格',
|
|
336
|
-
notCell: '找不到匹配的儲存格',
|
|
337
|
-
replaceSuccess: '成功替換 {0} 個儲存格'
|
|
338
|
-
}
|
|
339
|
-
},
|
|
340
|
-
filterComplexInput: {
|
|
341
|
-
menus: {
|
|
342
|
-
fixedColumn: '凍結列',
|
|
343
|
-
fixedGroup: '凍結分组',
|
|
344
|
-
cancelFixed: '取消凍結',
|
|
345
|
-
fixedLeft: '凍結左侧',
|
|
346
|
-
fixedRight: '凍結右侧'
|
|
347
|
-
},
|
|
348
|
-
cases: {
|
|
349
|
-
equal: '等於',
|
|
350
|
-
gt: '大於',
|
|
351
|
-
lt: '小於',
|
|
352
|
-
begin: '開頭是',
|
|
353
|
-
endin: '結尾是',
|
|
354
|
-
include: '包含',
|
|
355
|
-
isSensitive: '區分大小寫'
|
|
356
|
-
}
|
|
357
|
-
},
|
|
358
|
-
filterCombination: {
|
|
359
|
-
menus: {
|
|
360
|
-
clearSort: '清除排序',
|
|
361
|
-
sortAsc: '昇冪',
|
|
362
|
-
sortDesc: '降序',
|
|
363
|
-
fixedColumn: '凍結列',
|
|
364
|
-
fixedGroup: '凍結分組',
|
|
365
|
-
cancelFixed: '取消凍結',
|
|
366
|
-
fixedLeft: '凍結左側',
|
|
367
|
-
fixedRight: '凍結右側',
|
|
368
|
-
clearFilter: '清除篩選',
|
|
369
|
-
textOption: '文字篩選',
|
|
370
|
-
numberOption: '數值篩選'
|
|
371
|
-
},
|
|
372
|
-
popup: {
|
|
373
|
-
title: '自定義篩選的管道',
|
|
374
|
-
currColumnTitle: '當前列:',
|
|
375
|
-
and: '與',
|
|
376
|
-
or: '或',
|
|
377
|
-
describeHtml: '用 ? 代表單個字元<br/>用 * 代表任意多個字元'
|
|
378
|
-
},
|
|
379
|
-
cases: {
|
|
380
|
-
equal: '等於',
|
|
381
|
-
unequal: '不等於',
|
|
382
|
-
gt: '大於',
|
|
383
|
-
ge: '大於或等於',
|
|
384
|
-
lt: '小於',
|
|
385
|
-
le: '小於或等於',
|
|
386
|
-
begin: '開頭是',
|
|
387
|
-
notbegin: '開頭不是',
|
|
388
|
-
endin: '結尾是',
|
|
389
|
-
notendin: '結尾不是',
|
|
390
|
-
include: '包含',
|
|
391
|
-
exclude: '不包含',
|
|
392
|
-
between: '介於',
|
|
393
|
-
custom: '自定義篩選',
|
|
394
|
-
insensitive: '不區分大小寫',
|
|
395
|
-
isSensitive: '區分大小寫'
|
|
396
|
-
},
|
|
397
|
-
empty: '(空白)',
|
|
398
|
-
notData: '無匹配項'
|
|
399
|
-
}
|
|
400
|
-
},
|
|
401
|
-
/**
|
|
402
|
-
* 以下废弃
|
|
403
|
-
* @deprecated
|
|
404
|
-
*/
|
|
405
|
-
renderer: {
|
|
406
|
-
search: '蒐索',
|
|
407
|
-
cases: {
|
|
408
|
-
equal: '等於',
|
|
409
|
-
unequal: '不等於',
|
|
410
|
-
gt: '大於',
|
|
411
|
-
ge: '大於或等於',
|
|
412
|
-
lt: '小於',
|
|
413
|
-
le: '小於或等於',
|
|
414
|
-
begin: '開頭是',
|
|
415
|
-
notbegin: '開頭不是',
|
|
416
|
-
endin: '結尾是',
|
|
417
|
-
notendin: '結尾不是',
|
|
418
|
-
include: '包含',
|
|
419
|
-
exclude: '不包含',
|
|
420
|
-
between: '介於',
|
|
421
|
-
custom: '自定義篩選',
|
|
422
|
-
insensitive: '不區分大小寫',
|
|
423
|
-
isSensitive: '區分大小寫'
|
|
424
|
-
},
|
|
425
|
-
combination: {
|
|
426
|
-
menus: {
|
|
427
|
-
clearSort: '清除排序',
|
|
428
|
-
sortAsc: '昇冪',
|
|
429
|
-
sortDesc: '降序',
|
|
430
|
-
fixedColumn: '鎖定列',
|
|
431
|
-
fixedGroup: '鎖定組',
|
|
432
|
-
cancelFixed: '取消鎖定',
|
|
433
|
-
fixedLeft: '鎖定左側',
|
|
434
|
-
fixedRight: '鎖定右側',
|
|
435
|
-
clearFilter: '清除篩選',
|
|
436
|
-
textOption: '文字篩選',
|
|
437
|
-
numberOption: '數值篩選'
|
|
438
|
-
},
|
|
439
|
-
popup: {
|
|
440
|
-
title: '自定義篩選的管道',
|
|
441
|
-
currColumnTitle: '當前列:',
|
|
442
|
-
and: '與',
|
|
443
|
-
or: '或',
|
|
444
|
-
describeHtml: '用 ? 代表單個字元<br/>用 * 代表任意多個字元'
|
|
445
|
-
},
|
|
446
|
-
empty: '(空白)',
|
|
447
|
-
notData: '無匹配項'
|
|
448
|
-
}
|
|
449
|
-
},
|
|
450
|
-
pro: {
|
|
451
|
-
area: {
|
|
452
|
-
mergeErr: '無法對合併儲存格進行該操作',
|
|
453
|
-
multiErr: '無法對多重選擇區域進行該操作',
|
|
454
|
-
extendErr: '如果延伸的區域包含被合併的儲存格,所有合併的儲存格需大小相同',
|
|
455
|
-
pasteMultiErr: '无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作'
|
|
456
|
-
},
|
|
457
|
-
fnr: {
|
|
458
|
-
title: '查找和替換',
|
|
459
|
-
findLabel: '查找',
|
|
460
|
-
replaceLabel: '替換',
|
|
461
|
-
findTitle: '查找內容:',
|
|
462
|
-
replaceTitle: '替換為:',
|
|
463
|
-
tabs: {
|
|
464
|
-
find: '查找',
|
|
465
|
-
replace: '替換'
|
|
466
|
-
},
|
|
467
|
-
filter: {
|
|
468
|
-
re: '規則運算式',
|
|
469
|
-
whole: '全詞匹配',
|
|
470
|
-
sensitive: '區分大小寫'
|
|
471
|
-
},
|
|
472
|
-
btns: {
|
|
473
|
-
findNext: '查找下一個',
|
|
474
|
-
findAll: '查找全部',
|
|
475
|
-
replace: '替换',
|
|
476
|
-
replaceAll: '替换全部',
|
|
477
|
-
cancel: '取消'
|
|
478
|
-
},
|
|
479
|
-
header: {
|
|
480
|
-
seq: '#',
|
|
481
|
-
cell: '儲存格',
|
|
482
|
-
value: '值'
|
|
483
|
-
},
|
|
484
|
-
empty: '(空值)',
|
|
485
|
-
reError: '無效的規則運算式',
|
|
486
|
-
recordCount: '已找到 {0} 個儲存格',
|
|
487
|
-
notCell: '找不到匹配的儲存格',
|
|
488
|
-
replaceSuccess: '成功替換 {0} 個儲存格'
|
|
489
|
-
}
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
};
|
|
20
|
+
_zhCHT = _interopRequireDefault(_zhCHT);
|
|
21
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
22
|
+
var _default = _exports.default = _zhCHT.default;
|
|
493
23
|
});
|
package/lib/modal/src/modal.js
CHANGED
|
@@ -1054,6 +1054,11 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
1054
1054
|
}
|
|
1055
1055
|
});
|
|
1056
1056
|
(0, _vue.onMounted)(() => {
|
|
1057
|
+
if (process.env.VUE_APP_VXE_ENV === 'development') {
|
|
1058
|
+
if (props.type === 'modal' && props.showFooter && !(props.showConfirmButton || props.showCancelButton || slots.footer)) {
|
|
1059
|
+
(0, _log.warnLog)('vxe.modal.footPropErr');
|
|
1060
|
+
}
|
|
1061
|
+
}
|
|
1057
1062
|
(0, _vue.nextTick)(() => {
|
|
1058
1063
|
if (props.storage && !props.id) {
|
|
1059
1064
|
(0, _log.errLog)('vxe.error.reqProp', ['modal.id']);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.msgQueue=exports.default=exports.allActiveModals=void 0;var _vue=require("vue"),_xeUtils=_interopRequireDefault(require("xe-utils")),_size=require("../../hooks/size"),_dom=require("../../tools/dom"),_utils=require("../../tools/utils"),_log=require("../../tools/log"),_event=require("../../tools/event"),_conf=_interopRequireDefault(require("../../v-x-e-table/src/conf")),_button=_interopRequireDefault(require("../../button/src/button")),_index=_interopRequireDefault(require("../../loading/index")),_vn=require("../../tools/vn");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const allActiveModals=exports.allActiveModals=[],msgQueue=exports.msgQueue=[];var _default=exports.default=(0,_vue.defineComponent)({name:"VxeModal",props:{modelValue:Boolean,id:String,type:{type:String,default:"modal"},loading:{type:Boolean,default:null},status:String,iconStatus:String,className:String,top:{type:[Number,String],default:()=>_conf.default.modal.top},position:[String,Object],title:String,duration:{type:[Number,String],default:()=>_conf.default.modal.duration},message:[Number,String],content:[Number,String],showCancelButton:{type:Boolean,default:null},cancelButtonText:{type:String,default:()=>_conf.default.modal.cancelButtonText},showConfirmButton:{type:Boolean,default:()=>_conf.default.modal.showConfirmButton},confirmButtonText:{type:String,default:()=>_conf.default.modal.confirmButtonText},lockView:{type:Boolean,default:()=>_conf.default.modal.lockView},lockScroll:Boolean,mask:{type:Boolean,default:()=>_conf.default.modal.mask},maskClosable:{type:Boolean,default:()=>_conf.default.modal.maskClosable},escClosable:{type:Boolean,default:()=>_conf.default.modal.escClosable},resize:Boolean,showHeader:{type:Boolean,default:()=>_conf.default.modal.showHeader},showFooter:{type:Boolean,default:()=>_conf.default.modal.showFooter},showZoom:Boolean,showClose:{type:Boolean,default:()=>_conf.default.modal.showClose},dblclickZoom:{type:Boolean,default:()=>_conf.default.modal.dblclickZoom},width:[Number,String],height:[Number,String],minWidth:{type:[Number,String],default:()=>_conf.default.modal.minWidth},minHeight:{type:[Number,String],default:()=>_conf.default.modal.minHeight},zIndex:Number,marginSize:{type:[Number,String],default:()=>_conf.default.modal.marginSize},fullscreen:Boolean,draggable:{type:Boolean,default:()=>_conf.default.modal.draggable},remember:{type:Boolean,default:()=>_conf.default.modal.remember},destroyOnClose:{type:Boolean,default:()=>_conf.default.modal.destroyOnClose},showTitleOverflow:{type:Boolean,default:()=>_conf.default.modal.showTitleOverflow},transfer:{type:Boolean,default:()=>_conf.default.modal.transfer},storage:{type:Boolean,default:()=>_conf.default.modal.storage},storageKey:{type:String,default:()=>_conf.default.modal.storageKey},animat:{type:Boolean,default:()=>_conf.default.modal.animat},size:{type:String,default:()=>_conf.default.modal.size||_conf.default.size},beforeHideMethod:{type:Function,default:()=>_conf.default.modal.beforeHideMethod},slots:Object},emits:["update:modelValue","show","hide","before-hide","close","confirm","cancel","zoom","resize","move"],setup(N,e){const{slots:v,emit:f}=e;var t=_xeUtils.default.uniqueId();const h=(0,_size.useSize)(N),k=(0,_vue.reactive)({inited:!1,visible:!1,contentVisible:!1,modalTop:0,modalZindex:0,zoomLocat:null,firstOpen:!0}),_=(0,_vue.ref)(),x=(0,_vue.ref)(),s=(0,_vue.ref)(),i=(0,_vue.ref)(),o={refElem:_},g={xID:t,props:N,context:e,reactData:k,getRefMaps:()=>o};let z={};const b=(0,_vue.computed)(()=>"message"===N.type),S=()=>{return x.value},n=()=>{var{width:e,height:t}=N,o=S();return o.style.width=""+(e?isNaN(e)?e:e+"px":""),o.style.height=""+(t?isNaN(t)?t:t+"px":""),(0,_vue.nextTick)()},u=()=>{var e=N["zIndex"],t=k["modalZindex"];e?k.modalZindex=e:t<(0,_utils.getLastZIndex)()&&(k.modalZindex=(0,_utils.nextZIndex)())},c=()=>(0,_vue.nextTick)().then(()=>{var e=N["position"],t=_xeUtils.default.toNumber(N.marginSize),o=S(),l=document.documentElement.clientWidth||document.body.clientWidth,a=document.documentElement.clientHeight||document.body.clientHeight,s="center"===e,{top:e,left:i}=_xeUtils.default.isString(e)?{top:e,left:e}:Object.assign({},e),n=s||"center"===e;let u="",r="";r=i&&!(s||"center"===i)?isNaN(i)?i:i+"px":Math.max(t,l/2-o.offsetWidth/2)+"px",u=e&&!n?isNaN(e)?e:e+"px":Math.max(t,a/2-o.offsetHeight/2)+"px",o.style.top=u,o.style.left=r}),r=()=>{(0,_vue.nextTick)(()=>{let o=0;msgQueue.forEach(e=>{var t=e.getBox();o+=_xeUtils.default.toNumber(e.props.top),e.reactData.modalTop=o,o+=t.clientHeight})})},d=()=>{-1<msgQueue.indexOf(g)&&_xeUtils.default.remove(msgQueue,e=>e===g),r()},m=e=>{const{remember:t,beforeHideMethod:o}=N;var l=k["visible"];const a=b.value,s={type:e};return l&&Promise.resolve(o?o(s):null).then(e=>{_xeUtils.default.isError(e)||(a&&d(),k.contentVisible=!1,t||(k.zoomLocat=null),_xeUtils.default.remove(allActiveModals,e=>e===g),z.dispatchEvent("before-hide",s),setTimeout(()=>{k.visible=!1,f("update:modelValue",!1),z.dispatchEvent("hide",s)},200))}).catch(e=>e),(0,_vue.nextTick)()},p=e=>{var t="close";z.dispatchEvent(t,{type:t},e),m(t)},a=e=>{var t="confirm";z.dispatchEvent(t,{type:t},e),m(t)},y=e=>{var t="cancel";z.dispatchEvent(t,{type:t},e),m(t)},w=e=>{var t=_conf.default.version,e=_xeUtils.default.toStringJSON(localStorage.getItem(e)||"");return e&&e._v===t?e:{_v:t}},T=()=>{var{id:e,remember:t,storage:o,storageKey:l}=N,a=k["zoomLocat"];e&&t&&o&&(t=S(),(o=w(l))[e]=[t.style.left,t.style.top,t.style.width,t.style.height].concat(a?[a.left,a.top,a.width,a.height]:[]).map(e=>e?_xeUtils.default.toNumber(e):"").join(","),localStorage.setItem(l,_xeUtils.default.toJSONString(o)))},B=()=>(0,_vue.nextTick)().then(()=>{var e,t,o,l;k.zoomLocat||(e=Math.max(0,_xeUtils.default.toNumber(N.marginSize)),t=S(),{visibleHeight:o,visibleWidth:l}=(0,_dom.getDomNode)(),k.zoomLocat={top:t.offsetTop,left:t.offsetLeft,width:t.offsetWidth+(t.style.width?0:1),height:t.offsetHeight+(t.style.height?0:1)},Object.assign(t.style,{top:e+"px",left:e+"px",width:l-2*e+"px",height:o-2*e+"px"}),T())}),l=()=>{const{duration:e,remember:d,showFooter:o}=N;var{inited:t,visible:l}=k,a=b.value;return t||(k.inited=!0),l||(d||n(),k.visible=!0,k.contentVisible=!1,u(),allActiveModals.push(g),setTimeout(()=>{k.contentVisible=!0,(0,_vue.nextTick)(()=>{o&&(e=s.value,t=i.value,e=e||t)&&e.focus();var e,t={type:""};f("update:modelValue",!0),z.dispatchEvent("show",t)})},10),a?(-1===msgQueue.indexOf(g)&&msgQueue.push(g),r(),-1!==e&&setTimeout(()=>m("close"),_xeUtils.default.toNumber(e))):(0,_vue.nextTick)(()=>{var e,t,o,l,a,s,i,n,u=N["fullscreen"],r=k["firstOpen"];d&&!r||c().then(()=>{setTimeout(()=>c(),20)}),r&&(k.firstOpen=!1,(()=>{var{id:e,remember:t,storage:o,storageKey:l}=N;return!!(e&&t&&o&&w(l)[e])})())?({id:r,remember:s,storage:i,storageKey:n}=N,r&&s&&i&&(s=w(n)[r])&&(i=S(),[n,r,s,e,t,o,l,a]=s.split(","),n&&(i.style.left=n+"px"),r&&(i.style.top=r+"px"),s&&(i.style.width=s+"px"),e&&(i.style.height=e+"px"),t)&&o&&(k.zoomLocat={left:t,top:o,width:l,height:a})):u&&(0,_vue.nextTick)(()=>B())})),(0,_vue.nextTick)()},O=e=>{var t=_.value;N.maskClosable&&e.target===t&&m("mask")},C=e=>{if((0,_event.hasEventKey)(e,_event.EVENT_KEYS.ESCAPE)){const t=_xeUtils.default.max(allActiveModals,e=>e.reactData.modalZindex);t&&setTimeout(()=>{t===g&&t.props.escClosable&&m("exit")},10)}},M=()=>!!k.zoomLocat,L=()=>(0,_vue.nextTick)().then(()=>{var e,t=k["zoomLocat"];t&&(e=S(),k.zoomLocat=null,Object.assign(e.style,{top:t.top+"px",left:t.left+"px",width:t.width+"px",height:t.height+"px"}),T())}),U=()=>(k.zoomLocat?L:B)().then(()=>M()),E=e=>{var t=k["zoomLocat"];const o={type:t?"revert":"max"};return U().then(()=>{z.dispatchEvent("zoom",o,e)})};const V=()=>{const t=k["modalZindex"];allActiveModals.some(e=>e.reactData.visible&&e.reactData.modalZindex>t)&&u()},D=e=>{const{remember:t,storage:o}=N;var l=k["zoomLocat"];const n=_xeUtils.default.toNumber(N.marginSize),u=S();if(!l&&0===e.button&&!(0,_dom.getEventTargetNode)(e,u,"trigger--btn").flag){e.preventDefault();const a=document.onmousemove,s=document.onmouseup,r=e.clientX-u.offsetLeft,d=e.clientY-u.offsetTop,{visibleHeight:c,visibleWidth:m}=(0,_dom.getDomNode)();document.onmousemove=e=>{e.preventDefault();var t=u.offsetWidth,o=u.offsetHeight,l=n,t=m-t-n-1,a=n,o=c-o-n-1;let s=e.clientX-r,i=e.clientY-d;(s=s>t?t:s)<l&&(s=l),(i=i>o?o:i)<a&&(i=a),u.style.left=s+"px",u.style.top=i+"px",u.className=u.className.replace(/\s?is--drag/,"")+" is--drag",f("move",{type:"move",$event:e})},document.onmouseup=()=>{document.onmousemove=a,document.onmouseup=s,t&&o&&(0,_vue.nextTick)(()=>{T()}),setTimeout(()=>{u.className=u.className.replace(/\s?is--drag/,"")},50)}}},$=e=>{e.preventDefault();const{remember:s,storage:i}=N,{visibleHeight:n,visibleWidth:u}=(0,_dom.getDomNode)(),r=_xeUtils.default.toNumber(N.marginSize);const d=e.target.getAttribute("type"),c=_xeUtils.default.toNumber(N.minWidth),m=_xeUtils.default.toNumber(N.minHeight),f=u,p=n,v=S(),t=document.onmousemove,o=document.onmouseup,h=v.clientWidth,_=v.clientHeight,x=e.clientX,g=e.clientY,b=v.offsetTop,y=v.offsetLeft,w={type:"resize"};document.onmousemove=e=>{e.preventDefault();let t,o,l,a;switch(d){case"wl":t=x-e.clientX,l=t+h,y-t>r&&l>c&&(v.style.width=`${l<f?l:f}px`,v.style.left=y-t+"px");break;case"swst":t=x-e.clientX,o=g-e.clientY,l=t+h,a=o+_,y-t>r&&l>c&&(v.style.width=`${l<f?l:f}px`,v.style.left=y-t+"px"),b-o>r&&a>m&&(v.style.height=`${a<p?a:p}px`,v.style.top=b-o+"px");break;case"swlb":t=x-e.clientX,o=e.clientY-g,l=t+h,a=o+_,y-t>r&&l>c&&(v.style.width=`${l<f?l:f}px`,v.style.left=y-t+"px"),b+a+r<n&&a>m&&(v.style.height=`${a<p?a:p}px`);break;case"st":o=g-e.clientY,a=_+o,b-o>r&&a>m&&(v.style.height=`${a<p?a:p}px`,v.style.top=b-o+"px");break;case"wr":t=e.clientX-x,l=t+h,y+l+r<u&&l>c&&(v.style.width=`${l<f?l:f}px`);break;case"sest":t=e.clientX-x,o=g-e.clientY,l=t+h,a=o+_,y+l+r<u&&l>c&&(v.style.width=`${l<f?l:f}px`),b-o>r&&a>m&&(v.style.height=`${a<p?a:p}px`,v.style.top=b-o+"px");break;case"selb":t=e.clientX-x,o=e.clientY-g,l=t+h,a=o+_,y+l+r<u&&l>c&&(v.style.width=`${l<f?l:f}px`),b+a+r<n&&a>m&&(v.style.height=`${a<p?a:p}px`);break;case"sb":o=e.clientY-g,a=o+_,b+a+r<n&&a>m&&(v.style.height=`${a<p?a:p}px`)}v.className=v.className.replace(/\s?is--drag/,"")+" is--drag",s&&i&&T(),z.dispatchEvent("resize",w,e)},document.onmouseup=()=>{k.zoomLocat=null,document.onmousemove=t,document.onmouseup=o,setTimeout(()=>{v.className=v.className.replace(/\s?is--drag/,"")},50)}},H=(z={dispatchEvent(e,t,o){f(e,Object.assign({$modal:g,$event:o},t))},open:l,close(){return m("close")},getBox:S,getPosition:()=>{if(!b.value){var e=S();if(e)return{top:e.offsetTop,left:e.offsetLeft}}return null},setPosition:(e,t)=>{var o;return b.value||(o=S(),_xeUtils.default.isNumber(e)&&(o.style.top=e+"px"),_xeUtils.default.isNumber(t)&&(o.style.left=t+"px")),(0,_vue.nextTick)()},isMaximized:M,zoom:U,maximize:B,revert:L},Object.assign(g,z),()=>{var{slots:e={},showClose:t,showZoom:o,title:l}=N,a=k["zoomLocat"],s=v.title||e.title,e=v.corner||e.corner,s=[(0,_vue.h)("div",{class:"vxe-modal--header-title"},s?(0,_vn.getSlotVNs)(s({$modal:g})):l?(0,_utils.getFuncText)(l):_conf.default.i18n("vxe.alert.title"))],l=[];return e&&l.push((0,_vue.h)("span",{class:"vxe-modal--corner-wrapper"},(0,_vn.getSlotVNs)(e({$modal:g})))),o&&l.push((0,_vue.h)("i",{class:["vxe-modal--zoom-btn","trigger--btn",a?_conf.default.icon.MODAL_ZOOM_OUT:_conf.default.icon.MODAL_ZOOM_IN],title:_conf.default.i18n("vxe.modal.zoom"+(a?"Out":"In")),onClick:E})),t&&l.push((0,_vue.h)("i",{class:["vxe-modal--close-btn","trigger--btn",_conf.default.icon.MODAL_CLOSE],title:_conf.default.i18n("vxe.modal.close"),onClick:p})),s.push((0,_vue.h)("div",{class:"vxe-modal--header-right"},l)),s}),q=()=>{var{showCancelButton:e,showConfirmButton:t,type:o}=N,l=[];return(_xeUtils.default.isBoolean(e)?e:"confirm"===o)&&l.push((0,_vue.h)(_button.default,{key:1,ref:i,content:N.cancelButtonText||_conf.default.i18n("vxe.button.cancel"),onClick:y})),(_xeUtils.default.isBoolean(t)?t:"confirm"===o||"alert"===o)&&l.push((0,_vue.h)(_button.default,{key:2,ref:s,status:"primary",content:N.confirmButtonText||_conf.default.i18n("vxe.button.confirm"),onClick:a})),l};return g.renderVN=()=>{var{className:e,type:t,animat:o,loading:l,status:a,lockScroll:s,lockView:i,mask:n,resize:u}=N,{inited:r,zoomLocat:d,modalTop:c,contentVisible:m,visible:f}=k,p=h.value;return(0,_vue.h)(_vue.Teleport,{to:"body",disabled:!N.transfer||!r},[(0,_vue.h)("div",{ref:_,class:["vxe-modal--wrapper","type--"+t,e||"",{["size--"+p]:p,["status--"+a]:a,"is--animat":o,"lock--scroll":s,"lock--view":i,"is--resize":u,"is--mask":n,"is--maximize":d,"is--visible":m,"is--active":f,"is--loading":l}],style:{zIndex:k.modalZindex,top:c?c+"px":null},onClick:O},[(0,_vue.h)("div",{ref:x,class:"vxe-modal--box",onMousedown:V},(()=>{var e,{slots:t={},showZoom:o,draggable:l}=N,a=b.value,t=v.header||t.header,s=[];return N.showHeader&&(e={},l&&(e.onMousedown=D),o&&N.dblclickZoom&&"modal"===N.type&&(e.onDblclick=E),s.push((0,_vue.h)("div",Object.assign({class:["vxe-modal--header",{"is--draggable":l,"is--ellipsis":!a&&N.showTitleOverflow}]},e),t?!k.inited||N.destroyOnClose&&!k.visible?[]:(0,_vn.getSlotVNs)(t({$modal:g})):H()))),s})().concat((()=>{var{slots:e={},status:t,message:o}=N,o=N.content||o,l=b.value,e=v.default||e.default,a=[];return t&&a.push((0,_vue.h)("div",{class:"vxe-modal--status-wrapper"},[(0,_vue.h)("i",{class:["vxe-modal--status-icon",N.iconStatus||_conf.default.icon[("MODAL_"+t).toLocaleUpperCase()]]})])),a.push((0,_vue.h)("div",{class:"vxe-modal--content"},e?!k.inited||N.destroyOnClose&&!k.visible?[]:(0,_vn.getSlotVNs)(e({$modal:g})):(0,_utils.getFuncText)(o))),l||a.push((0,_vue.h)(_index.default,{class:"vxe-modal--loading",modelValue:N.loading})),[(0,_vue.h)("div",{class:"vxe-modal--body"},a)]})(),(()=>{var{slots:e={}}=N,t=b.value,e=v.footer||e.footer,o=[];return N.showFooter&&o.push((0,_vue.h)("div",{class:"vxe-modal--footer"},e?!k.inited||N.destroyOnClose&&!k.visible?[]:(0,_vn.getSlotVNs)(e({$modal:g})):q())),!t&&N.resize&&o.push((0,_vue.h)("span",{class:"vxe-modal--resize"},["wl","wr","swst","sest","st","swlb","selb","sb"].map(e=>(0,_vue.h)("span",{class:e+"-resize",type:e,onMousedown:$})))),o})()))])])},(0,_vue.watch)(()=>N.width,n),(0,_vue.watch)(()=>N.height,n),(0,_vue.watch)(()=>N.modelValue,e=>{e?l():m("model")}),(0,_vue.onMounted)(()=>{(0,_vue.nextTick)(()=>{N.storage&&!N.id&&(0,_log.errLog)("vxe.error.reqProp",["modal.id"]),N.modelValue&&l(),n()}),N.escClosable&&_event.GlobalEvent.on(g,"keydown",C)}),(0,_vue.onUnmounted)(()=>{_event.GlobalEvent.off(g,"keydown"),d()}),g},render(){return this.renderVN()}});
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.msgQueue=exports.default=exports.allActiveModals=void 0;var _vue=require("vue"),_xeUtils=_interopRequireDefault(require("xe-utils")),_size=require("../../hooks/size"),_dom=require("../../tools/dom"),_utils=require("../../tools/utils"),_log=require("../../tools/log"),_event=require("../../tools/event"),_conf=_interopRequireDefault(require("../../v-x-e-table/src/conf")),_button=_interopRequireDefault(require("../../button/src/button")),_index=_interopRequireDefault(require("../../loading/index")),_vn=require("../../tools/vn");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const allActiveModals=exports.allActiveModals=[],msgQueue=exports.msgQueue=[];var _default=exports.default=(0,_vue.defineComponent)({name:"VxeModal",props:{modelValue:Boolean,id:String,type:{type:String,default:"modal"},loading:{type:Boolean,default:null},status:String,iconStatus:String,className:String,top:{type:[Number,String],default:()=>_conf.default.modal.top},position:[String,Object],title:String,duration:{type:[Number,String],default:()=>_conf.default.modal.duration},message:[Number,String],content:[Number,String],showCancelButton:{type:Boolean,default:null},cancelButtonText:{type:String,default:()=>_conf.default.modal.cancelButtonText},showConfirmButton:{type:Boolean,default:()=>_conf.default.modal.showConfirmButton},confirmButtonText:{type:String,default:()=>_conf.default.modal.confirmButtonText},lockView:{type:Boolean,default:()=>_conf.default.modal.lockView},lockScroll:Boolean,mask:{type:Boolean,default:()=>_conf.default.modal.mask},maskClosable:{type:Boolean,default:()=>_conf.default.modal.maskClosable},escClosable:{type:Boolean,default:()=>_conf.default.modal.escClosable},resize:Boolean,showHeader:{type:Boolean,default:()=>_conf.default.modal.showHeader},showFooter:{type:Boolean,default:()=>_conf.default.modal.showFooter},showZoom:Boolean,showClose:{type:Boolean,default:()=>_conf.default.modal.showClose},dblclickZoom:{type:Boolean,default:()=>_conf.default.modal.dblclickZoom},width:[Number,String],height:[Number,String],minWidth:{type:[Number,String],default:()=>_conf.default.modal.minWidth},minHeight:{type:[Number,String],default:()=>_conf.default.modal.minHeight},zIndex:Number,marginSize:{type:[Number,String],default:()=>_conf.default.modal.marginSize},fullscreen:Boolean,draggable:{type:Boolean,default:()=>_conf.default.modal.draggable},remember:{type:Boolean,default:()=>_conf.default.modal.remember},destroyOnClose:{type:Boolean,default:()=>_conf.default.modal.destroyOnClose},showTitleOverflow:{type:Boolean,default:()=>_conf.default.modal.showTitleOverflow},transfer:{type:Boolean,default:()=>_conf.default.modal.transfer},storage:{type:Boolean,default:()=>_conf.default.modal.storage},storageKey:{type:String,default:()=>_conf.default.modal.storageKey},animat:{type:Boolean,default:()=>_conf.default.modal.animat},size:{type:String,default:()=>_conf.default.modal.size||_conf.default.size},beforeHideMethod:{type:Function,default:()=>_conf.default.modal.beforeHideMethod},slots:Object},emits:["update:modelValue","show","hide","before-hide","close","confirm","cancel","zoom","resize","move"],setup(N,e){const{slots:v,emit:f}=e;var t=_xeUtils.default.uniqueId();const h=(0,_size.useSize)(N),k=(0,_vue.reactive)({inited:!1,visible:!1,contentVisible:!1,modalTop:0,modalZindex:0,zoomLocat:null,firstOpen:!0}),_=(0,_vue.ref)(),x=(0,_vue.ref)(),s=(0,_vue.ref)(),i=(0,_vue.ref)(),o={refElem:_},g={xID:t,props:N,context:e,reactData:k,getRefMaps:()=>o};let z={};const b=(0,_vue.computed)(()=>"message"===N.type),S=()=>{return x.value},n=()=>{var{width:e,height:t}=N,o=S();return o.style.width=""+(e?isNaN(e)?e:e+"px":""),o.style.height=""+(t?isNaN(t)?t:t+"px":""),(0,_vue.nextTick)()},u=()=>{var e=N["zIndex"],t=k["modalZindex"];e?k.modalZindex=e:t<(0,_utils.getLastZIndex)()&&(k.modalZindex=(0,_utils.nextZIndex)())},c=()=>(0,_vue.nextTick)().then(()=>{var e=N["position"],t=_xeUtils.default.toNumber(N.marginSize),o=S(),l=document.documentElement.clientWidth||document.body.clientWidth,a=document.documentElement.clientHeight||document.body.clientHeight,s="center"===e,{top:e,left:i}=_xeUtils.default.isString(e)?{top:e,left:e}:Object.assign({},e),n=s||"center"===e;let u="",r="";r=i&&!(s||"center"===i)?isNaN(i)?i:i+"px":Math.max(t,l/2-o.offsetWidth/2)+"px",u=e&&!n?isNaN(e)?e:e+"px":Math.max(t,a/2-o.offsetHeight/2)+"px",o.style.top=u,o.style.left=r}),r=()=>{(0,_vue.nextTick)(()=>{let o=0;msgQueue.forEach(e=>{var t=e.getBox();o+=_xeUtils.default.toNumber(e.props.top),e.reactData.modalTop=o,o+=t.clientHeight})})},d=()=>{-1<msgQueue.indexOf(g)&&_xeUtils.default.remove(msgQueue,e=>e===g),r()},m=e=>{const{remember:t,beforeHideMethod:o}=N;var l=k["visible"];const a=b.value,s={type:e};return l&&Promise.resolve(o?o(s):null).then(e=>{_xeUtils.default.isError(e)||(a&&d(),k.contentVisible=!1,t||(k.zoomLocat=null),_xeUtils.default.remove(allActiveModals,e=>e===g),z.dispatchEvent("before-hide",s),setTimeout(()=>{k.visible=!1,f("update:modelValue",!1),z.dispatchEvent("hide",s)},200))}).catch(e=>e),(0,_vue.nextTick)()},p=e=>{var t="close";z.dispatchEvent(t,{type:t},e),m(t)},a=e=>{var t="confirm";z.dispatchEvent(t,{type:t},e),m(t)},y=e=>{var t="cancel";z.dispatchEvent(t,{type:t},e),m(t)},w=e=>{var t=_conf.default.version,e=_xeUtils.default.toStringJSON(localStorage.getItem(e)||"");return e&&e._v===t?e:{_v:t}},T=()=>{var{id:e,remember:t,storage:o,storageKey:l}=N,a=k["zoomLocat"];e&&t&&o&&(t=S(),(o=w(l))[e]=[t.style.left,t.style.top,t.style.width,t.style.height].concat(a?[a.left,a.top,a.width,a.height]:[]).map(e=>e?_xeUtils.default.toNumber(e):"").join(","),localStorage.setItem(l,_xeUtils.default.toJSONString(o)))},B=()=>(0,_vue.nextTick)().then(()=>{var e,t,o,l;k.zoomLocat||(e=Math.max(0,_xeUtils.default.toNumber(N.marginSize)),t=S(),{visibleHeight:o,visibleWidth:l}=(0,_dom.getDomNode)(),k.zoomLocat={top:t.offsetTop,left:t.offsetLeft,width:t.offsetWidth+(t.style.width?0:1),height:t.offsetHeight+(t.style.height?0:1)},Object.assign(t.style,{top:e+"px",left:e+"px",width:l-2*e+"px",height:o-2*e+"px"}),T())}),l=()=>{const{duration:e,remember:d,showFooter:o}=N;var{inited:t,visible:l}=k,a=b.value;return t||(k.inited=!0),l||(d||n(),k.visible=!0,k.contentVisible=!1,u(),allActiveModals.push(g),setTimeout(()=>{k.contentVisible=!0,(0,_vue.nextTick)(()=>{o&&(e=s.value,t=i.value,e=e||t)&&e.focus();var e,t={type:""};f("update:modelValue",!0),z.dispatchEvent("show",t)})},10),a?(-1===msgQueue.indexOf(g)&&msgQueue.push(g),r(),-1!==e&&setTimeout(()=>m("close"),_xeUtils.default.toNumber(e))):(0,_vue.nextTick)(()=>{var e,t,o,l,a,s,i,n,u=N["fullscreen"],r=k["firstOpen"];d&&!r||c().then(()=>{setTimeout(()=>c(),20)}),r&&(k.firstOpen=!1,(()=>{var{id:e,remember:t,storage:o,storageKey:l}=N;return!!(e&&t&&o&&w(l)[e])})())?({id:r,remember:s,storage:i,storageKey:n}=N,r&&s&&i&&(s=w(n)[r])&&(i=S(),[n,r,s,e,t,o,l,a]=s.split(","),n&&(i.style.left=n+"px"),r&&(i.style.top=r+"px"),s&&(i.style.width=s+"px"),e&&(i.style.height=e+"px"),t)&&o&&(k.zoomLocat={left:t,top:o,width:l,height:a})):u&&(0,_vue.nextTick)(()=>B())})),(0,_vue.nextTick)()},O=e=>{var t=_.value;N.maskClosable&&e.target===t&&m("mask")},C=e=>{if((0,_event.hasEventKey)(e,_event.EVENT_KEYS.ESCAPE)){const t=_xeUtils.default.max(allActiveModals,e=>e.reactData.modalZindex);t&&setTimeout(()=>{t===g&&t.props.escClosable&&m("exit")},10)}},E=()=>!!k.zoomLocat,L=()=>(0,_vue.nextTick)().then(()=>{var e,t=k["zoomLocat"];t&&(e=S(),k.zoomLocat=null,Object.assign(e.style,{top:t.top+"px",left:t.left+"px",width:t.width+"px",height:t.height+"px"}),T())}),M=()=>(k.zoomLocat?L:B)().then(()=>E()),V=e=>{var t=k["zoomLocat"];const o={type:t?"revert":"max"};return M().then(()=>{z.dispatchEvent("zoom",o,e)})};const U=()=>{const t=k["modalZindex"];allActiveModals.some(e=>e.reactData.visible&&e.reactData.modalZindex>t)&&u()},D=e=>{const{remember:t,storage:o}=N;var l=k["zoomLocat"];const n=_xeUtils.default.toNumber(N.marginSize),u=S();if(!l&&0===e.button&&!(0,_dom.getEventTargetNode)(e,u,"trigger--btn").flag){e.preventDefault();const a=document.onmousemove,s=document.onmouseup,r=e.clientX-u.offsetLeft,d=e.clientY-u.offsetTop,{visibleHeight:c,visibleWidth:m}=(0,_dom.getDomNode)();document.onmousemove=e=>{e.preventDefault();var t=u.offsetWidth,o=u.offsetHeight,l=n,t=m-t-n-1,a=n,o=c-o-n-1;let s=e.clientX-r,i=e.clientY-d;(s=s>t?t:s)<l&&(s=l),(i=i>o?o:i)<a&&(i=a),u.style.left=s+"px",u.style.top=i+"px",u.className=u.className.replace(/\s?is--drag/,"")+" is--drag",f("move",{type:"move",$event:e})},document.onmouseup=()=>{document.onmousemove=a,document.onmouseup=s,t&&o&&(0,_vue.nextTick)(()=>{T()}),setTimeout(()=>{u.className=u.className.replace(/\s?is--drag/,"")},50)}}},$=e=>{e.preventDefault();const{remember:s,storage:i}=N,{visibleHeight:n,visibleWidth:u}=(0,_dom.getDomNode)(),r=_xeUtils.default.toNumber(N.marginSize);const d=e.target.getAttribute("type"),c=_xeUtils.default.toNumber(N.minWidth),m=_xeUtils.default.toNumber(N.minHeight),f=u,p=n,v=S(),t=document.onmousemove,o=document.onmouseup,h=v.clientWidth,_=v.clientHeight,x=e.clientX,g=e.clientY,b=v.offsetTop,y=v.offsetLeft,w={type:"resize"};document.onmousemove=e=>{e.preventDefault();let t,o,l,a;switch(d){case"wl":t=x-e.clientX,l=t+h,y-t>r&&l>c&&(v.style.width=`${l<f?l:f}px`,v.style.left=y-t+"px");break;case"swst":t=x-e.clientX,o=g-e.clientY,l=t+h,a=o+_,y-t>r&&l>c&&(v.style.width=`${l<f?l:f}px`,v.style.left=y-t+"px"),b-o>r&&a>m&&(v.style.height=`${a<p?a:p}px`,v.style.top=b-o+"px");break;case"swlb":t=x-e.clientX,o=e.clientY-g,l=t+h,a=o+_,y-t>r&&l>c&&(v.style.width=`${l<f?l:f}px`,v.style.left=y-t+"px"),b+a+r<n&&a>m&&(v.style.height=`${a<p?a:p}px`);break;case"st":o=g-e.clientY,a=_+o,b-o>r&&a>m&&(v.style.height=`${a<p?a:p}px`,v.style.top=b-o+"px");break;case"wr":t=e.clientX-x,l=t+h,y+l+r<u&&l>c&&(v.style.width=`${l<f?l:f}px`);break;case"sest":t=e.clientX-x,o=g-e.clientY,l=t+h,a=o+_,y+l+r<u&&l>c&&(v.style.width=`${l<f?l:f}px`),b-o>r&&a>m&&(v.style.height=`${a<p?a:p}px`,v.style.top=b-o+"px");break;case"selb":t=e.clientX-x,o=e.clientY-g,l=t+h,a=o+_,y+l+r<u&&l>c&&(v.style.width=`${l<f?l:f}px`),b+a+r<n&&a>m&&(v.style.height=`${a<p?a:p}px`);break;case"sb":o=e.clientY-g,a=o+_,b+a+r<n&&a>m&&(v.style.height=`${a<p?a:p}px`)}v.className=v.className.replace(/\s?is--drag/,"")+" is--drag",s&&i&&T(),z.dispatchEvent("resize",w,e)},document.onmouseup=()=>{k.zoomLocat=null,document.onmousemove=t,document.onmouseup=o,setTimeout(()=>{v.className=v.className.replace(/\s?is--drag/,"")},50)}},H=(z={dispatchEvent(e,t,o){f(e,Object.assign({$modal:g,$event:o},t))},open:l,close(){return m("close")},getBox:S,getPosition:()=>{if(!b.value){var e=S();if(e)return{top:e.offsetTop,left:e.offsetLeft}}return null},setPosition:(e,t)=>{var o;return b.value||(o=S(),_xeUtils.default.isNumber(e)&&(o.style.top=e+"px"),_xeUtils.default.isNumber(t)&&(o.style.left=t+"px")),(0,_vue.nextTick)()},isMaximized:E,zoom:M,maximize:B,revert:L},Object.assign(g,z),()=>{var{slots:e={},showClose:t,showZoom:o,title:l}=N,a=k["zoomLocat"],s=v.title||e.title,e=v.corner||e.corner,s=[(0,_vue.h)("div",{class:"vxe-modal--header-title"},s?(0,_vn.getSlotVNs)(s({$modal:g})):l?(0,_utils.getFuncText)(l):_conf.default.i18n("vxe.alert.title"))],l=[];return e&&l.push((0,_vue.h)("span",{class:"vxe-modal--corner-wrapper"},(0,_vn.getSlotVNs)(e({$modal:g})))),o&&l.push((0,_vue.h)("i",{class:["vxe-modal--zoom-btn","trigger--btn",a?_conf.default.icon.MODAL_ZOOM_OUT:_conf.default.icon.MODAL_ZOOM_IN],title:_conf.default.i18n("vxe.modal.zoom"+(a?"Out":"In")),onClick:V})),t&&l.push((0,_vue.h)("i",{class:["vxe-modal--close-btn","trigger--btn",_conf.default.icon.MODAL_CLOSE],title:_conf.default.i18n("vxe.modal.close"),onClick:p})),s.push((0,_vue.h)("div",{class:"vxe-modal--header-right"},l)),s}),q=()=>{var{showCancelButton:e,showConfirmButton:t,type:o}=N,l=[];return(_xeUtils.default.isBoolean(e)?e:"confirm"===o)&&l.push((0,_vue.h)(_button.default,{key:1,ref:i,content:N.cancelButtonText||_conf.default.i18n("vxe.button.cancel"),onClick:y})),(_xeUtils.default.isBoolean(t)?t:"confirm"===o||"alert"===o)&&l.push((0,_vue.h)(_button.default,{key:2,ref:s,status:"primary",content:N.confirmButtonText||_conf.default.i18n("vxe.button.confirm"),onClick:a})),l};return g.renderVN=()=>{var{className:e,type:t,animat:o,loading:l,status:a,lockScroll:s,lockView:i,mask:n,resize:u}=N,{inited:r,zoomLocat:d,modalTop:c,contentVisible:m,visible:f}=k,p=h.value;return(0,_vue.h)(_vue.Teleport,{to:"body",disabled:!N.transfer||!r},[(0,_vue.h)("div",{ref:_,class:["vxe-modal--wrapper","type--"+t,e||"",{["size--"+p]:p,["status--"+a]:a,"is--animat":o,"lock--scroll":s,"lock--view":i,"is--resize":u,"is--mask":n,"is--maximize":d,"is--visible":m,"is--active":f,"is--loading":l}],style:{zIndex:k.modalZindex,top:c?c+"px":null},onClick:O},[(0,_vue.h)("div",{ref:x,class:"vxe-modal--box",onMousedown:U},(()=>{var e,{slots:t={},showZoom:o,draggable:l}=N,a=b.value,t=v.header||t.header,s=[];return N.showHeader&&(e={},l&&(e.onMousedown=D),o&&N.dblclickZoom&&"modal"===N.type&&(e.onDblclick=V),s.push((0,_vue.h)("div",Object.assign({class:["vxe-modal--header",{"is--draggable":l,"is--ellipsis":!a&&N.showTitleOverflow}]},e),t?!k.inited||N.destroyOnClose&&!k.visible?[]:(0,_vn.getSlotVNs)(t({$modal:g})):H()))),s})().concat((()=>{var{slots:e={},status:t,message:o}=N,o=N.content||o,l=b.value,e=v.default||e.default,a=[];return t&&a.push((0,_vue.h)("div",{class:"vxe-modal--status-wrapper"},[(0,_vue.h)("i",{class:["vxe-modal--status-icon",N.iconStatus||_conf.default.icon[("MODAL_"+t).toLocaleUpperCase()]]})])),a.push((0,_vue.h)("div",{class:"vxe-modal--content"},e?!k.inited||N.destroyOnClose&&!k.visible?[]:(0,_vn.getSlotVNs)(e({$modal:g})):(0,_utils.getFuncText)(o))),l||a.push((0,_vue.h)(_index.default,{class:"vxe-modal--loading",modelValue:N.loading})),[(0,_vue.h)("div",{class:"vxe-modal--body"},a)]})(),(()=>{var{slots:e={}}=N,t=b.value,e=v.footer||e.footer,o=[];return N.showFooter&&o.push((0,_vue.h)("div",{class:"vxe-modal--footer"},e?!k.inited||N.destroyOnClose&&!k.visible?[]:(0,_vn.getSlotVNs)(e({$modal:g})):q())),!t&&N.resize&&o.push((0,_vue.h)("span",{class:"vxe-modal--resize"},["wl","wr","swst","sest","st","swlb","selb","sb"].map(e=>(0,_vue.h)("span",{class:e+"-resize",type:e,onMousedown:$})))),o})()))])])},(0,_vue.watch)(()=>N.width,n),(0,_vue.watch)(()=>N.height,n),(0,_vue.watch)(()=>N.modelValue,e=>{e?l():m("model")}),(0,_vue.onMounted)(()=>{"development"===process.env.VUE_APP_VXE_ENV&&"modal"===N.type&&N.showFooter&&!(N.showConfirmButton||N.showCancelButton||v.footer)&&(0,_log.warnLog)("vxe.modal.footPropErr"),(0,_vue.nextTick)(()=>{N.storage&&!N.id&&(0,_log.errLog)("vxe.error.reqProp",["modal.id"]),N.modelValue&&l(),n()}),N.escClosable&&_event.GlobalEvent.on(g,"keydown",C)}),(0,_vue.onUnmounted)(()=>{_event.GlobalEvent.off(g,"keydown"),d()}),g},render(){return this.renderVN()}});
|
|
@@ -200,11 +200,11 @@
|
|
|
200
200
|
|
|
201
201
|
/*radio*/
|
|
202
202
|
.vxe-radio {
|
|
203
|
-
cursor: pointer;
|
|
204
203
|
display: inline-block;
|
|
205
204
|
vertical-align: middle;
|
|
206
205
|
white-space: nowrap;
|
|
207
206
|
line-height: 1;
|
|
207
|
+
cursor: pointer;
|
|
208
208
|
}
|
|
209
209
|
.vxe-radio .vxe-radio--icon {
|
|
210
210
|
font-size: 1.4em;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[class*=vxe-],[class*=vxe-] :after,[class*=vxe-] :before,[class*=vxe-]:after,[class*=vxe-]:before{box-sizing:border-box}.vxe-radio .vxe-radio--label,.vxe-radio-button .vxe-radio--label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[class*=vxe-]{font-variant:tabular-nums;font-feature-settings:"tnum"}.vxe-primary-color{color:var(--vxe-primary-color)}.vxe-success-color{color:var(--vxe-success-color)}.vxe-info-color{color:var(--vxe-info-color)}.vxe-warning-color{color:var(--vxe-warning-color)}.vxe-danger-color{color:var(--vxe-danger-color)}.vxe-perfect-color{color:var(--vxe-table-header-background-color)}.vxe-row:after{content:"";display:block;clear:both;height:0;overflow:hidden;visibility:hidden}.vxe-row>.vxe-col--1{float:left;width:4.16667%}.vxe-row>.vxe-col--2{float:left;width:8.33333%}.vxe-row>.vxe-col--3{float:left;width:12.5%}.vxe-row>.vxe-col--4{float:left;width:16.66667%}.vxe-row>.vxe-col--5{float:left;width:20.83333%}.vxe-row>.vxe-col--6{float:left;width:25%}.vxe-row>.vxe-col--7{float:left;width:29.16667%}.vxe-row>.vxe-col--8{float:left;width:33.33333%}.vxe-row>.vxe-col--9{float:left;width:37.5%}.vxe-row>.vxe-col--10{float:left;width:41.66667%}.vxe-row>.vxe-col--11{float:left;width:45.83333%}.vxe-row>.vxe-col--12{float:left;width:50%}.vxe-row>.vxe-col--13{float:left;width:54.16667%}.vxe-row>.vxe-col--14{float:left;width:58.33333%}.vxe-row>.vxe-col--15{float:left;width:62.5%}.vxe-row>.vxe-col--16{float:left;width:66.66667%}.vxe-row>.vxe-col--17{float:left;width:70.83333%}.vxe-row>.vxe-col--18{float:left;width:75%}.vxe-row>.vxe-col--19{float:left;width:79.16667%}.vxe-row>.vxe-col--20{float:left;width:83.33333%}.vxe-row>.vxe-col--21{float:left;width:87.5%}.vxe-row>.vxe-col--22{float:left;width:91.66667%}.vxe-row>.vxe-col--23{float:left;width:95.83333%}.vxe-row>.vxe-col--24{float:left;width:100%}.is--animat .vxe-filter--btn:after,.is--animat .vxe-filter--btn:before,.is--animat .vxe-sort--asc-btn:after,.is--animat .vxe-sort--asc-btn:before,.is--animat .vxe-sort--desc-btn:after,.is--animat .vxe-sort--desc-btn:before{transition:border .1s ease-in-out}.is--animat .vxe-input--wrapper .vxe-input{transition:border .1s ease-in-out}.is--animat .vxe-table--expand-btn,.is--animat .vxe-tree--node-btn{transition:transform .1s ease-in-out}.is--animat .vxe-checkbox>input:checked+span,.is--animat .vxe-radio>input:checked+span{transition:background-color .1s ease-in-out}.vxe-radio-group{display:inline-block;vertical-align:middle;line-height:1;font-size:0}.vxe-radio-group+.vxe-radio-group{margin-left:10px}.vxe-radio{
|
|
1
|
+
[class*=vxe-],[class*=vxe-] :after,[class*=vxe-] :before,[class*=vxe-]:after,[class*=vxe-]:before{box-sizing:border-box}.vxe-radio .vxe-radio--label,.vxe-radio-button .vxe-radio--label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[class*=vxe-]{font-variant:tabular-nums;font-feature-settings:"tnum"}.vxe-primary-color{color:var(--vxe-primary-color)}.vxe-success-color{color:var(--vxe-success-color)}.vxe-info-color{color:var(--vxe-info-color)}.vxe-warning-color{color:var(--vxe-warning-color)}.vxe-danger-color{color:var(--vxe-danger-color)}.vxe-perfect-color{color:var(--vxe-table-header-background-color)}.vxe-row:after{content:"";display:block;clear:both;height:0;overflow:hidden;visibility:hidden}.vxe-row>.vxe-col--1{float:left;width:4.16667%}.vxe-row>.vxe-col--2{float:left;width:8.33333%}.vxe-row>.vxe-col--3{float:left;width:12.5%}.vxe-row>.vxe-col--4{float:left;width:16.66667%}.vxe-row>.vxe-col--5{float:left;width:20.83333%}.vxe-row>.vxe-col--6{float:left;width:25%}.vxe-row>.vxe-col--7{float:left;width:29.16667%}.vxe-row>.vxe-col--8{float:left;width:33.33333%}.vxe-row>.vxe-col--9{float:left;width:37.5%}.vxe-row>.vxe-col--10{float:left;width:41.66667%}.vxe-row>.vxe-col--11{float:left;width:45.83333%}.vxe-row>.vxe-col--12{float:left;width:50%}.vxe-row>.vxe-col--13{float:left;width:54.16667%}.vxe-row>.vxe-col--14{float:left;width:58.33333%}.vxe-row>.vxe-col--15{float:left;width:62.5%}.vxe-row>.vxe-col--16{float:left;width:66.66667%}.vxe-row>.vxe-col--17{float:left;width:70.83333%}.vxe-row>.vxe-col--18{float:left;width:75%}.vxe-row>.vxe-col--19{float:left;width:79.16667%}.vxe-row>.vxe-col--20{float:left;width:83.33333%}.vxe-row>.vxe-col--21{float:left;width:87.5%}.vxe-row>.vxe-col--22{float:left;width:91.66667%}.vxe-row>.vxe-col--23{float:left;width:95.83333%}.vxe-row>.vxe-col--24{float:left;width:100%}.is--animat .vxe-filter--btn:after,.is--animat .vxe-filter--btn:before,.is--animat .vxe-sort--asc-btn:after,.is--animat .vxe-sort--asc-btn:before,.is--animat .vxe-sort--desc-btn:after,.is--animat .vxe-sort--desc-btn:before{transition:border .1s ease-in-out}.is--animat .vxe-input--wrapper .vxe-input{transition:border .1s ease-in-out}.is--animat .vxe-table--expand-btn,.is--animat .vxe-tree--node-btn{transition:transform .1s ease-in-out}.is--animat .vxe-checkbox>input:checked+span,.is--animat .vxe-radio>input:checked+span{transition:background-color .1s ease-in-out}.vxe-radio-group{display:inline-block;vertical-align:middle;line-height:1;font-size:0}.vxe-radio-group+.vxe-radio-group{margin-left:10px}.vxe-radio{display:inline-block;vertical-align:middle;white-space:nowrap;line-height:1;cursor:pointer}.vxe-radio .vxe-radio--icon{font-size:1.4em}.vxe-radio .vxe-radio--icon{color:var(--vxe-input-border-color);vertical-align:middle;font-weight:700;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vxe-radio.is--checked{color:var(--vxe-primary-color)}.vxe-radio.is--checked .vxe-radio--icon{color:var(--vxe-primary-color)}.vxe-radio:not(.is--disabled){cursor:pointer}.vxe-radio:not(.is--disabled):hover .vxe-radio--icon{color:var(--vxe-primary-color)}.vxe-radio.is--disabled{color:var(--vxe-font-disabled-color);cursor:not-allowed}.vxe-radio.is--disabled .vxe-radio--icon{color:var(--vxe-input-disabled-color)}.vxe-radio .vxe-radio--label{padding-left:.5em;vertical-align:middle}.vxe-radio>input[type=radio]{position:absolute;width:0;height:0;border:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.vxe-radio .vxe-radio--label{vertical-align:middle;display:inline-block;max-width:50em}.vxe-radio:not(.is--disabled)>input:focus+.vxe-radio--icon{color:var(--vxe-primary-color)}.vxe-radio:not(.vxe-radio-button)+.vxe-radio{margin-left:10px}.vxe-radio-button .vxe-radio--label{background-color:var(--vxe-radio-button-default-background-color)}.vxe-radio-button:first-child .vxe-radio--label{border-left:1px solid var(--vxe-input-border-color);border-radius:var(--vxe-border-radius) 0 0 var(--vxe-border-radius)}.vxe-radio-button:last-child .vxe-radio--label{border-radius:0 var(--vxe-border-radius) var(--vxe-border-radius) 0}.vxe-radio-button>input:checked+.vxe-radio--label{color:#fff;background-color:var(--vxe-primary-color);border-color:var(--vxe-primary-color)}.vxe-radio-button .vxe-radio--label{padding:0 1em;line-height:calc(var(--vxe-button-height-default) - 2px);display:inline-block;border-style:solid;border-color:var(--vxe-input-border-color);border-width:1px 1px 1px 0;max-width:50em}.vxe-radio-button.is--disabled{cursor:not-allowed}.vxe-radio-button.is--disabled>input:not(:checked)+.vxe-radio--label{color:var(--vxe-input-disabled-color)}.vxe-radio-button.is--disabled>input:checked+.vxe-radio--label{border-color:var(--vxe-primary-lighten-color);background-color:var(--vxe-primary-lighten-color)}.vxe-radio-button:not(.is--disabled)>input:focus+.vxe-radio--label{border-color:var(--vxe-primary-color);box-shadow:0 0 .2em 0 var(--vxe-primary-color)}.vxe-radio-button:not(.is--disabled):hover>input:not(:checked)+.vxe-radio--label{color:var(--vxe-primary-color)}.vxe-radio-button.size--medium .vxe-radio--label{line-height:calc(var(--vxe-button-height-medium) - 2px)}.vxe-radio-button.size--small .vxe-radio--label{line-height:calc(var(--vxe-button-height-small) - 2px)}.vxe-radio-button.size--mini .vxe-radio--label{line-height:calc(var(--vxe-button-height-mini) - 2px)}.vxe-radio{font-size:var(--vxe-font-size)}.vxe-radio.size--medium{font-size:var(--vxe-font-size-medium)}.vxe-radio.size--small{font-size:var(--vxe-font-size-small)}.vxe-radio.size--mini{font-size:var(--vxe-font-size-mini)}
|