vxe-table 3.5.8 → 3.5.9-beta.10
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 +1 -1
- package/lib/edit/src/mixin.js +18 -14
- package/lib/edit/src/mixin.min.js +1 -1
- package/lib/export/src/mixin.js +1 -1
- package/lib/export/src/mixin.min.js +1 -1
- package/lib/filter/src/mixin.js +8 -5
- package/lib/filter/src/mixin.min.js +1 -1
- package/lib/filter/src/panel.js +7 -2
- package/lib/filter/src/panel.min.js +1 -1
- package/lib/form/src/form-config-item.js +2 -1
- package/lib/form/src/form-config-item.min.js +1 -1
- package/lib/form/src/form-item.js +3 -1
- package/lib/form/src/form-item.min.js +1 -1
- package/lib/form/src/form.js +12 -7
- package/lib/form/src/form.min.js +1 -1
- package/lib/form/src/render.js +1 -0
- package/lib/form/src/render.min.js +1 -1
- package/lib/form/style/style.css +2 -1
- package/lib/form/style/style.min.css +1 -1
- package/lib/grid/src/grid.js +14 -8
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.css +1 -1
- package/lib/index.umd.js +804 -496
- package/lib/index.umd.min.js +1 -1
- package/lib/input/src/input.js +20 -15
- package/lib/input/src/input.min.js +1 -1
- package/lib/list/src/list.js +12 -7
- package/lib/list/src/list.min.js +1 -1
- package/lib/loading/index.js +19 -0
- package/lib/loading/index.min.js +1 -0
- package/lib/loading/src/loading.js +36 -0
- package/lib/loading/src/loading.min.js +1 -0
- package/lib/locale/lang/en-US.js +5 -0
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +5 -0
- package/lib/locale/lang/ja-JP.js +5 -0
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +5 -0
- package/lib/locale/lang/zh-CN.js +5 -0
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +5 -0
- package/lib/locale/lang/zh-HK.min.js +1 -1
- package/lib/locale/lang/zh-HK.umd.js +5 -0
- package/lib/locale/lang/zh-MO.min.js +1 -1
- package/lib/locale/lang/zh-MO.umd.js +5 -0
- package/lib/locale/lang/zh-TC.js +5 -0
- package/lib/locale/lang/zh-TC.min.js +1 -1
- package/lib/locale/lang/zh-TC.umd.js +5 -0
- package/lib/locale/lang/zh-TW.min.js +1 -1
- package/lib/locale/lang/zh-TW.umd.js +5 -0
- package/lib/modal/src/modal.js +28 -12
- package/lib/modal/src/modal.min.js +1 -1
- package/lib/modal/style/style.css +1 -1
- package/lib/modal/style/style.min.css +1 -1
- package/lib/select/src/select.js +213 -33
- package/lib/select/src/select.min.js +1 -1
- package/lib/select/style/style.css +17 -72
- package/lib/select/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/src/body.js +6 -3
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/cell.js +3 -3
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/columnInfo.js +1 -1
- package/lib/table/src/columnInfo.min.js +1 -1
- package/lib/table/src/methods.js +84 -62
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +12 -8
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/style/style.css +0 -68
- package/lib/table/style/style.min.css +1 -1
- package/lib/toolbar/style/style.css +13 -10
- package/lib/toolbar/style/style.min.css +1 -1
- package/lib/tools/log.js +1 -1
- package/lib/tools/log.min.js +1 -1
- package/lib/tools/utils.js +2 -2
- package/lib/tools/utils.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/v-x-e-table/src/conf.js +6 -2
- package/lib/v-x-e-table/src/conf.min.js +1 -1
- package/lib/v-x-e-table/src/store.js +10 -5
- package/lib/v-x-e-table/src/store.min.js +1 -1
- package/lib/v-x-e-table/style/style.css +590 -0
- package/lib/v-x-e-table/style/style.min.css +1 -0
- package/package.json +1 -1
- package/packages/edit/src/mixin.js +17 -13
- package/packages/export/src/mixin.js +2 -2
- package/packages/filter/src/mixin.js +5 -5
- package/packages/filter/src/panel.js +13 -6
- package/packages/form/src/form-config-item.js +17 -9
- package/packages/form/src/form-item.js +16 -8
- package/packages/form/src/form.js +10 -9
- package/packages/form/src/render.js +1 -1
- package/packages/grid/src/grid.js +9 -7
- package/packages/input/src/input.js +17 -13
- package/packages/list/src/list.js +10 -9
- package/packages/loading/index.js +9 -0
- package/packages/loading/src/loading.js +31 -0
- package/packages/locale/lang/en-US.js +5 -0
- package/packages/locale/lang/ja-JP.js +5 -0
- package/packages/locale/lang/zh-CN.js +5 -0
- package/packages/locale/lang/zh-TC.js +5 -0
- package/packages/modal/src/modal.js +23 -14
- package/packages/select/src/select.js +139 -16
- package/packages/table/src/body.js +39 -24
- package/packages/table/src/cell.js +3 -3
- package/packages/table/src/columnInfo.js +1 -1
- package/packages/table/src/methods.js +68 -57
- package/packages/table/src/table.js +10 -9
- package/packages/tools/utils.js +2 -2
- package/packages/v-x-e-table/src/conf.js +6 -2
- package/packages/v-x-e-table/src/store.js +8 -4
- package/styles/form.scss +1 -0
- package/styles/{base/loading.scss → loading.scss} +17 -4
- package/styles/modal.scss +1 -1
- package/styles/modules.scss +1 -0
- package/styles/select.scss +24 -6
- package/styles/table.scss +0 -1
- package/styles/toolbar.scss +9 -5
- package/styles/v-x-e-table.scss +2 -0
- package/styles/variable.scss +0 -4
- package/types/form-item.d.ts +11 -8
- package/types/form.d.ts +5 -2
- package/types/table.d.ts +5 -0
- package/types/v-x-e-table/renderer.d.ts +15 -2
|
@@ -19,6 +19,9 @@
|
|
|
19
19
|
_exports.default = void 0;
|
|
20
20
|
var _default = {
|
|
21
21
|
vxe: {
|
|
22
|
+
loading: {
|
|
23
|
+
text: 'Loading'
|
|
24
|
+
},
|
|
22
25
|
error: {
|
|
23
26
|
groupFixed: 'グループのヘッダを使用すると、固定列はグループで設定しなければなりません',
|
|
24
27
|
groupMouseRange: 'グループ化ヘッダーと「{0}」は同時に使用できません。これによりエラーが発生する可能性があります',
|
|
@@ -165,6 +168,8 @@
|
|
|
165
168
|
operError: 'エラーが発生しました。操作が失敗しました'
|
|
166
169
|
},
|
|
167
170
|
select: {
|
|
171
|
+
search: 'Search',
|
|
172
|
+
loadingText: 'Loading',
|
|
168
173
|
emptyText: 'データがありません'
|
|
169
174
|
},
|
|
170
175
|
pager: {
|
package/lib/locale/lang/zh-CN.js
CHANGED
|
@@ -6,6 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _default = {
|
|
8
8
|
vxe: {
|
|
9
|
+
loading: {
|
|
10
|
+
text: '加载中'
|
|
11
|
+
},
|
|
9
12
|
error: {
|
|
10
13
|
groupFixed: '如果使用分组表头,固定列必须按组设置',
|
|
11
14
|
groupMouseRange: '分组表头与 "{0}" 不能同时使用,这可能会出现错误',
|
|
@@ -152,6 +155,8 @@ var _default = {
|
|
|
152
155
|
operError: '发生错误,操作失败!'
|
|
153
156
|
},
|
|
154
157
|
select: {
|
|
158
|
+
search: '搜索',
|
|
159
|
+
loadingText: '加载中',
|
|
155
160
|
emptyText: '暂无数据'
|
|
156
161
|
},
|
|
157
162
|
pager: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"function"==typeof define&&define.amd?define("vxe-table-lang.zh-CN",["exports"],t):"undefined"!=typeof exports?t(exports):(t(t={}),e.vxeTableLangZhCN=t)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={vxe:{error:{groupFixed:"如果使用分组表头,固定列必须按组设置",groupMouseRange:'分组表头与 "{0}" 不能同时使用,这可能会出现错误',groupTag:'分组列头应该使用 "{0}" 而不是 "{1}",这可能会出现错误',scrollErrProp:'启用虚拟滚动后不支持该参数 "{0}"',scrollXNotGroup:'横向虚拟滚动不支持分组表头,需要设置 "scroll-x.enabled=false" 参数,否则可能会导致出现错误',errConflicts:'参数 "{0}" 与 "{1}" 有冲突',unableInsert:"无法插入到指定位置,请检查参数是否正确",useErr:'安装 "{0}" 模块时发生错误,可能顺序不正确,依赖的模块需要在 Table 之前安装',barUnableLink:"工具栏无法关联表格",expandContent:'展开行的插槽应该是 "content",请检查是否正确',reqModule:'缺少 "{0}" 模块',reqProp:'缺少必要的 "{0}" 参数,这可能会导致出现错误',emptyProp:'参数 "{0}" 不允许为空',errProp:'不支持的参数 "{0}",可能为 "{1}"',colRepet:'column.{0}="{1}" 重复了,这可能会导致某些功能无法使用',notFunc:'方法 "{0}" 不存在',notSlot:'插槽 "{0}" 不存在',noTree:'树结构不支持 "{0}"',notProp:'不支持的参数 "{0}"',coverProp:'"{0}" 的参数 "{1}" 被覆盖,这可能会出现错误',delFunc:'方法 "{0}" 已废弃,请使用 "{1}"',delProp:'参数 "{0}" 已废弃,请使用 "{1}"',delEvent:'事件 "{0}" 已废弃,请使用 "{1}"',removeProp:'参数 "{0}" 已废弃,不建议使用,这可能会导致出现错误',errFormat:'全局的格式化内容应该使用 "VXETable.formats" 定义,挂载 "formatter={0}" 的方式已不建议使用',notType:'不支持的文件类型 "{0}"',notExp:"该浏览器不支持导入/导出功能",impFields:"导入失败,请检查字段名和数据格式是否正确",treeNotImp:"树表格不支持导入"},renderer:{search:"搜索",cases:{equal:"等于",unequal:"不等于",gt:"大于",ge:"大于或等于",lt:"小于",le:"小于或等于",begin:"开头是",notbegin:"开头不是",endin:"结尾是",notendin:"结尾不是",include:"包含",exclude:"不包含",between:"介于",custom:"自定义筛选",insensitive:"不区分大小写",isSensitive:"区分大小写"},combination:{menus:{sortAsc:"升序",sortDesc:"降序",fixedColumn:"锁定列",fixedGroup:"锁定组",cancelFixed:"取消锁定",fixedLeft:"锁定左侧",fixedRight:"锁定右侧",clearFilter:"清除筛选",textOption:"文本筛选",numberOption:"数值筛选"},popup:{title:"自定义筛选的方式",currColumnTitle:"当前列:",and:"与",or:"或",describeHtml:"可用 ? 代表单个字符<br/>用 * 代表任意多个字符"},empty:"(空白)",notData:"无匹配项"}},pro:{area:{mergeErr:"无法对合并单元格进行该操作",multiErr:"无法对多重选择区域进行该操作",extendErr:"如果延伸的区域包含被合并的单元格,所有合并的单元格需大小相同",pasteMultiErr:"无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作"},fnr:{title:"查找和替换",findLabel:"查找",replaceLabel:"替换",findTitle:"查找内容:",replaceTitle:"替换为:",tabs:{find:"查找",replace:"替换"},filter:{re:"正则表达式",whole:"全词匹配",sensitive:"区分大小写"},btns:{findNext:"查找下一个",findAll:"查找全部",replace:"替换",replaceAll:"替换全部",cancel:"取消"},header:{seq:"#",cell:"单元格",value:"值"},empty:"(空值)",reError:"无效的正则表达式",recordCount:"已找到 {0} 个单元格",notCell:"找不到匹配的单元格",replaceSuccess:"成功替换 {0} 个单元格"}},table:{emptyText:"暂无数据",allTitle:"全选/取消",seqTitle:"#",confirmFilter:"筛选",resetFilter:"重置",allFilter:"全部",sortAsc:"升序:最低到最高",sortDesc:"降序:最高到最低",filter:"对所选的列启用筛选",impSuccess:"成功导入 {0} 条记录",expLoading:"正在导出中",expSuccess:"导出成功",expFilename:"导出_{0}",expOriginFilename:"导出_源_{0}",customTitle:"列设置",customAll:"全部",customConfirm:"确认",customRestore:"还原"},grid:{selectOneRecord:"请至少选择一条记录!",deleteSelectRecord:"您确定要删除所选记录吗?",removeSelectRecord:"您确定要移除所选记录吗?",dataUnchanged:"数据未改动!",delSuccess:"成功删除所选记录!",saveSuccess:"保存成功!",operError:"发生错误,操作失败!"},select:{emptyText:"暂无数据"},pager:{goto:"前往",pagesize:"{0}条/页",total:"共 {0} 条记录",pageClassifier:"页",prevPage:"上一页",nextPage:"下一页",prevJump:"向上跳页",nextJump:"向下跳页"},alert:{title:"消息提示"},button:{confirm:"确认",cancel:"取消"},import:{modes:{covering:"覆盖",insert:"新增"},impTitle:"导入数据",impFile:"文件名",impSelect:"选择文件",impType:"文件类型",impOpts:"参数设置",impConfirm:"导入",impCancel:"取消"},export:{types:{csv:"CSV (逗号分隔)(*.csv)",html:"网页(*.html)",xml:"XML 数据(*.xml)",txt:"文本文件(制表符分隔)(*.txt)",xls:"Excel 97-2003 工作簿(*.xls)",xlsx:"Excel 工作簿(*.xlsx)",pdf:"PDF (*.pdf)"},modes:{current:"当前数据(当前页的数据)",selected:"选中数据(当前页选中的数据)",all:"全量数据(包括所有分页的数据)"},printTitle:"打印数据",expTitle:"导出数据",expName:"文件名",expNamePlaceholder:"请输入文件名",expSheetName:"标题",expSheetNamePlaceholder:"请输入标题",expType:"保存类型",expMode:"选择数据",expCurrentColumn:"全部字段",expColumn:"选择字段",expOpts:"参数设置",expOptHeader:"表头",expHeaderTitle:"是否需要表头",expOptFooter:"表尾",expFooterTitle:"是否需要表尾",expOptColgroup:"分组表头",expColgroupTitle:"如果存在,则支持带有分组结构的表头",expOptMerge:"合并",expMergeTitle:"如果存在,则支持带有合并结构的单元格",expOptAllExpand:"展开层级",expAllExpandTitle:"如果存在,则支持将带有层级结构的数据全部展开",expOptUseStyle:"样式",expUseStyleTitle:"如果存在,则支持带样式的单元格",expOptOriginal:"源数据",expOriginalTitle:"如果为源数据,则支持导入到表格中",expPrint:"打印",expConfirm:"导出",expCancel:"取消"},modal:{zoomIn:"最大化",zoomOut:"还原",close:"关闭"},form:{folding:"收起",unfolding:"展开"},toolbar:{import:"导入",export:"导出",print:"打印",refresh:"刷新",zoomIn:"全屏",zoomOut:"还原",custom:"列设置",customAll:"全部",customConfirm:"确认",customRestore:"还原"},input:{date:{m1:"01 月",m2:"02 月",m3:"03 月",m4:"04 月",m5:"05 月",m6:"06 月",m7:"07 月",m8:"08 月",m9:"09 月",m10:"10 月",m11:"11 月",m12:"12 月",quarterLabel:"{0} 年",monthLabel:"{0} 年",dayLabel:"{0} 年 {1}",labelFormat:{date:"yyyy-MM-dd",time:"HH:mm:ss",datetime:"yyyy-MM-dd HH:mm:ss",week:"yyyy 年第 WW 周",month:"yyyy-MM",quarter:"yyyy 年第 q 季度",year:"yyyy"},weeks:{w:"周",w0:"周日",w1:"周一",w2:"周二",w3:"周三",w4:"周四",w5:"周五",w6:"周六"},months:{m0:"一月",m1:"二月",m2:"三月",m3:"四月",m4:"五月",m5:"六月",m6:"七月",m7:"八月",m8:"九月",m9:"十月",m10:"十一月",m11:"十二月"},quarters:{q1:"第一季度",q2:"第二季度",q3:"第三季度",q4:"第四季度"}}}}}});
|
|
1
|
+
!function(e,t){"function"==typeof define&&define.amd?define("vxe-table-lang.zh-CN",["exports"],t):"undefined"!=typeof exports?t(exports):(t(t={}),e.vxeTableLangZhCN=t)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={vxe:{loading:{text:"加载中"},error:{groupFixed:"如果使用分组表头,固定列必须按组设置",groupMouseRange:'分组表头与 "{0}" 不能同时使用,这可能会出现错误',groupTag:'分组列头应该使用 "{0}" 而不是 "{1}",这可能会出现错误',scrollErrProp:'启用虚拟滚动后不支持该参数 "{0}"',scrollXNotGroup:'横向虚拟滚动不支持分组表头,需要设置 "scroll-x.enabled=false" 参数,否则可能会导致出现错误',errConflicts:'参数 "{0}" 与 "{1}" 有冲突',unableInsert:"无法插入到指定位置,请检查参数是否正确",useErr:'安装 "{0}" 模块时发生错误,可能顺序不正确,依赖的模块需要在 Table 之前安装',barUnableLink:"工具栏无法关联表格",expandContent:'展开行的插槽应该是 "content",请检查是否正确',reqModule:'缺少 "{0}" 模块',reqProp:'缺少必要的 "{0}" 参数,这可能会导致出现错误',emptyProp:'参数 "{0}" 不允许为空',errProp:'不支持的参数 "{0}",可能为 "{1}"',colRepet:'column.{0}="{1}" 重复了,这可能会导致某些功能无法使用',notFunc:'方法 "{0}" 不存在',notSlot:'插槽 "{0}" 不存在',noTree:'树结构不支持 "{0}"',notProp:'不支持的参数 "{0}"',coverProp:'"{0}" 的参数 "{1}" 被覆盖,这可能会出现错误',delFunc:'方法 "{0}" 已废弃,请使用 "{1}"',delProp:'参数 "{0}" 已废弃,请使用 "{1}"',delEvent:'事件 "{0}" 已废弃,请使用 "{1}"',removeProp:'参数 "{0}" 已废弃,不建议使用,这可能会导致出现错误',errFormat:'全局的格式化内容应该使用 "VXETable.formats" 定义,挂载 "formatter={0}" 的方式已不建议使用',notType:'不支持的文件类型 "{0}"',notExp:"该浏览器不支持导入/导出功能",impFields:"导入失败,请检查字段名和数据格式是否正确",treeNotImp:"树表格不支持导入"},renderer:{search:"搜索",cases:{equal:"等于",unequal:"不等于",gt:"大于",ge:"大于或等于",lt:"小于",le:"小于或等于",begin:"开头是",notbegin:"开头不是",endin:"结尾是",notendin:"结尾不是",include:"包含",exclude:"不包含",between:"介于",custom:"自定义筛选",insensitive:"不区分大小写",isSensitive:"区分大小写"},combination:{menus:{sortAsc:"升序",sortDesc:"降序",fixedColumn:"锁定列",fixedGroup:"锁定组",cancelFixed:"取消锁定",fixedLeft:"锁定左侧",fixedRight:"锁定右侧",clearFilter:"清除筛选",textOption:"文本筛选",numberOption:"数值筛选"},popup:{title:"自定义筛选的方式",currColumnTitle:"当前列:",and:"与",or:"或",describeHtml:"可用 ? 代表单个字符<br/>用 * 代表任意多个字符"},empty:"(空白)",notData:"无匹配项"}},pro:{area:{mergeErr:"无法对合并单元格进行该操作",multiErr:"无法对多重选择区域进行该操作",extendErr:"如果延伸的区域包含被合并的单元格,所有合并的单元格需大小相同",pasteMultiErr:"无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作"},fnr:{title:"查找和替换",findLabel:"查找",replaceLabel:"替换",findTitle:"查找内容:",replaceTitle:"替换为:",tabs:{find:"查找",replace:"替换"},filter:{re:"正则表达式",whole:"全词匹配",sensitive:"区分大小写"},btns:{findNext:"查找下一个",findAll:"查找全部",replace:"替换",replaceAll:"替换全部",cancel:"取消"},header:{seq:"#",cell:"单元格",value:"值"},empty:"(空值)",reError:"无效的正则表达式",recordCount:"已找到 {0} 个单元格",notCell:"找不到匹配的单元格",replaceSuccess:"成功替换 {0} 个单元格"}},table:{emptyText:"暂无数据",allTitle:"全选/取消",seqTitle:"#",confirmFilter:"筛选",resetFilter:"重置",allFilter:"全部",sortAsc:"升序:最低到最高",sortDesc:"降序:最高到最低",filter:"对所选的列启用筛选",impSuccess:"成功导入 {0} 条记录",expLoading:"正在导出中",expSuccess:"导出成功",expFilename:"导出_{0}",expOriginFilename:"导出_源_{0}",customTitle:"列设置",customAll:"全部",customConfirm:"确认",customRestore:"还原"},grid:{selectOneRecord:"请至少选择一条记录!",deleteSelectRecord:"您确定要删除所选记录吗?",removeSelectRecord:"您确定要移除所选记录吗?",dataUnchanged:"数据未改动!",delSuccess:"成功删除所选记录!",saveSuccess:"保存成功!",operError:"发生错误,操作失败!"},select:{search:"搜索",loadingText:"加载中",emptyText:"暂无数据"},pager:{goto:"前往",pagesize:"{0}条/页",total:"共 {0} 条记录",pageClassifier:"页",prevPage:"上一页",nextPage:"下一页",prevJump:"向上跳页",nextJump:"向下跳页"},alert:{title:"消息提示"},button:{confirm:"确认",cancel:"取消"},import:{modes:{covering:"覆盖",insert:"新增"},impTitle:"导入数据",impFile:"文件名",impSelect:"选择文件",impType:"文件类型",impOpts:"参数设置",impConfirm:"导入",impCancel:"取消"},export:{types:{csv:"CSV (逗号分隔)(*.csv)",html:"网页(*.html)",xml:"XML 数据(*.xml)",txt:"文本文件(制表符分隔)(*.txt)",xls:"Excel 97-2003 工作簿(*.xls)",xlsx:"Excel 工作簿(*.xlsx)",pdf:"PDF (*.pdf)"},modes:{current:"当前数据(当前页的数据)",selected:"选中数据(当前页选中的数据)",all:"全量数据(包括所有分页的数据)"},printTitle:"打印数据",expTitle:"导出数据",expName:"文件名",expNamePlaceholder:"请输入文件名",expSheetName:"标题",expSheetNamePlaceholder:"请输入标题",expType:"保存类型",expMode:"选择数据",expCurrentColumn:"全部字段",expColumn:"选择字段",expOpts:"参数设置",expOptHeader:"表头",expHeaderTitle:"是否需要表头",expOptFooter:"表尾",expFooterTitle:"是否需要表尾",expOptColgroup:"分组表头",expColgroupTitle:"如果存在,则支持带有分组结构的表头",expOptMerge:"合并",expMergeTitle:"如果存在,则支持带有合并结构的单元格",expOptAllExpand:"展开层级",expAllExpandTitle:"如果存在,则支持将带有层级结构的数据全部展开",expOptUseStyle:"样式",expUseStyleTitle:"如果存在,则支持带样式的单元格",expOptOriginal:"源数据",expOriginalTitle:"如果为源数据,则支持导入到表格中",expPrint:"打印",expConfirm:"导出",expCancel:"取消"},modal:{zoomIn:"最大化",zoomOut:"还原",close:"关闭"},form:{folding:"收起",unfolding:"展开"},toolbar:{import:"导入",export:"导出",print:"打印",refresh:"刷新",zoomIn:"全屏",zoomOut:"还原",custom:"列设置",customAll:"全部",customConfirm:"确认",customRestore:"还原"},input:{date:{m1:"01 月",m2:"02 月",m3:"03 月",m4:"04 月",m5:"05 月",m6:"06 月",m7:"07 月",m8:"08 月",m9:"09 月",m10:"10 月",m11:"11 月",m12:"12 月",quarterLabel:"{0} 年",monthLabel:"{0} 年",dayLabel:"{0} 年 {1}",labelFormat:{date:"yyyy-MM-dd",time:"HH:mm:ss",datetime:"yyyy-MM-dd HH:mm:ss",week:"yyyy 年第 WW 周",month:"yyyy-MM",quarter:"yyyy 年第 q 季度",year:"yyyy"},weeks:{w:"周",w0:"周日",w1:"周一",w2:"周二",w3:"周三",w4:"周四",w5:"周五",w6:"周六"},months:{m0:"一月",m1:"二月",m2:"三月",m3:"四月",m4:"五月",m5:"六月",m6:"七月",m7:"八月",m8:"九月",m9:"十月",m10:"十一月",m11:"十二月"},quarters:{q1:"第一季度",q2:"第二季度",q3:"第三季度",q4:"第四季度"}}}}}});
|
|
@@ -19,6 +19,9 @@
|
|
|
19
19
|
_exports.default = void 0;
|
|
20
20
|
var _default = {
|
|
21
21
|
vxe: {
|
|
22
|
+
loading: {
|
|
23
|
+
text: '加载中'
|
|
24
|
+
},
|
|
22
25
|
error: {
|
|
23
26
|
groupFixed: '如果使用分组表头,固定列必须按组设置',
|
|
24
27
|
groupMouseRange: '分组表头与 "{0}" 不能同时使用,这可能会出现错误',
|
|
@@ -165,6 +168,8 @@
|
|
|
165
168
|
operError: '发生错误,操作失败!'
|
|
166
169
|
},
|
|
167
170
|
select: {
|
|
171
|
+
search: '搜索',
|
|
172
|
+
loadingText: '加载中',
|
|
168
173
|
emptyText: '暂无数据'
|
|
169
174
|
},
|
|
170
175
|
pager: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"function"==typeof define&&define.amd?define("vxe-table-lang.zh-HK",["exports"],t):"undefined"!=typeof exports?t(exports):(t(t={}),e.vxeTableLangZhHK=t)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={vxe:{error:{groupFixed:"如果使用分組表頭,固定列必須按組設定",groupMouseRange:'分组表頭與 "{0}" 不能同時使用,這可能會出現錯誤',groupTag:'分組列頭應該使用 "{0}" 而不是 "{1}",這可能會出現錯誤',scrollErrProp:'啟用虛擬滾動後不支持該參數 "{0}"',scrollXNotGroup:'橫向虛擬滾動不支持分組表頭,需要設定 "scroll-x.enabled=false" 參數,否則可能會導致出現錯誤',errConflicts:'參數 "{0}" 與 "{1}" 有衝突',unableInsert:"無法插入到指定位置,請檢查參數是否正確",useErr:'安裝 "{0}" 模組時發生錯誤,可能順序不正確,依賴的模組需要在Table之前安裝',barUnableLink:"工具欄無法關聯表格",expandContent:"展開行的插槽應該是 “content”,請檢查是否正確",reqModule:'缺少 "{0}" 模組',reqProp:'缺少必要的 "{0}" 參數,可能會導致出現錯誤',emptyProp:'參數 "{0}" 不允許為空',errProp:'不支持的參數 "{0}",可能為 "{1}"',colRepet:'column.{0}="{1}" 重複了,這可能會導致某些功能無法使用',notFunc:'方法 "{0}" 不存在',notSlot:'插槽 "{0}" 不存在',noTree:"樹狀結構不支援 {0}",notProp:'不支持的參數 "{0}"',coverProp:'"{0}" 的參數 "{1}" 被覆蓋,這可能會出現錯誤',delFunc:'方法 "{0}" 已停用,請使用 "{1}"',delProp:'參數 "{0}" 已停用,請使用 "{1}"',delEvent:'事件 "{0}" 已停用,請使用 "{1}"',removeProp:'參數 "{0}" 已停用,不建議使用,這可能會導致出現錯誤',errFormat:'全域的格式化內容應該使用 "VXETable.formats" 定義,掛載 "formatter={0}" 的管道已不建議使用',notType:'不支持的檔案類型 "{0}"',notExp:"該瀏覽器不支持導入/匯出功能",impFields:"導入失敗,請檢查欄位名和數據格式是否正確",treeNotImp:"樹狀表格不支持導入"},renderer:{search:"蒐索",cases:{equal:"等於",unequal:"不等於",gt:"大於",ge:"大於或等於",lt:"小於",le:"小於或等於",begin:"開頭是",notbegin:"開頭不是",endin:"結尾是",notendin:"結尾不是",include:"包含",exclude:"不包含",between:"介於",custom:"自定義篩選",insensitive:"不區分大小寫",isSensitive:"區分大小寫"},combination:{menus:{sortAsc:"昇冪",sortDesc:"降序",fixedColumn:"鎖定列",fixedGroup:"鎖定組",cancelFixed:"取消鎖定",fixedLeft:"鎖定左側",fixedRight:"鎖定右側",clearFilter:"清除篩選",textOption:"文字篩選",numberOption:"數值篩選"},popup:{title:"自定義篩選的管道",currColumnTitle:"當前列:",and:"與",or:"或",describeHtml:"用 ? 代表單個字元<br/>用 * 代表任意多個字元"},empty:"(空白)",notData:"無匹配項"}},pro:{area:{mergeErr:"無法對合併儲存格進行該操作",multiErr:"無法對多重選擇區域進行該操作",extendErr:"如果延伸的區域包含被合併的儲存格,所有合併的儲存格需大小相同",pasteMultiErr:"无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作"},fnr:{title:"查找和替換",findLabel:"查找",replaceLabel:"替換",findTitle:"查找內容:",replaceTitle:"替換為:",tabs:{find:"查找",replace:"替換"},filter:{re:"規則運算式",whole:"全詞匹配",sensitive:"區分大小寫"},btns:{findNext:"查找下一個",findAll:"查找全部",replace:"替换",replaceAll:"替换全部",cancel:"取消"},header:{seq:"#",cell:"儲存格",value:"值"},empty:"(空值)",reError:"無效的規則運算式",recordCount:"已找到 {0} 個儲存格",notCell:"找不到匹配的儲存格",replaceSuccess:"成功替換 {0} 個儲存格"}},table:{emptyText:"暫無資料",allTitle:"全選/取消",seqTitle:"#",confirmFilter:"篩選",resetFilter:"重置",allFilter:"全部",sortAsc:"按低到高排序",sortDesc:"按高到低排序",filter:"對所選的列啟用篩選",impSuccess:"成功導入 {0} 條記錄",expLoading:"正在匯出中",expSuccess:"匯出成功",expOriginFilename:"匯出_{0}",expSrcFilename:"匯出_從_{0}",customTitle:"列設定",customAll:"全部",customConfirm:"確認",customRestore:"還原"},grid:{selectOneRecord:"請至少選擇一條記錄!",deleteSelectRecord:"您確定要刪除所選記錄嗎?",removeSelectRecord:"您確定要移除所選記錄嗎?",dataUnchanged:"資料未更改! ",delSuccess:"成功删除所選記錄!",saveSuccess:"保存成功!",operError:"發生錯誤,操作失敗!"},select:{emptyText:"暫無資料"},pager:{goto:"前往",pagesize:"{0}項/頁",total:"共 {0} 項記錄",pageClassifier:"頁",prevPage:"上一頁",nextPage:"下一頁",prevJump:"向上跳頁",nextJump:"向下跳頁"},alert:{title:"訊息提示"},button:{confirm:"確認",cancel:"取消"},import:{modes:{covering:"覆盖",insert:"新增"},impTitle:"導入數據",impFile:"檔名",impSelect:"選擇檔案",impType:"檔案類型",impOpts:"參數設置",impConfirm:"導入",impCancel:"取消"},export:{types:{csv:"CSV (逗号分隔)(*.csv)",html:"網頁(*.html)",xml:"XML 文件(*.xml)",txt:"文本文件(制表符分隔)(*.txt)",xls:"Excel 97-2003 工作簿(*.xls)",xlsx:"Excel 工作簿(*.xlsx)",pdf:"PDF (*.pdf)"},modes:{current:"當前數據(當前頁的數據)",selected:"選中數據(當前頁選中的數據)",all:"全量數據(包括所有分頁的數據)"},printTitle:"列印數據",expTitle:"匯出數據",expName:"檔名",expNamePlaceholder:"請輸入檔名",expSheetName:"標題",expSheetNamePlaceholder:"請輸入標題",expType:"保存類型",expMode:"選擇數據",expCurrentColumn:"全部欄位",expColumn:"選擇欄位",expOpts:"參數設置",expOptHeader:"表頭",expHeaderTitle:"是否需要表頭",expOptFooter:"表尾",expFooterTitle:"是否需要表尾",expOptColgroup:"分组表头",expColgroupTitle:"如果存在,則支持帶有分組結構的表頭",expOptMerge:"合併",expMergeTitle:"如果存在,則支持帶有合併結構的儲存格",expOptAllExpand:"展開層級",expAllExpandTitle:"如果存在,則支持將帶有樹結構的數據全部展開",expOptUseStyle:"樣式",expUseStyleTitle:"如果存在,則支持帶樣式的儲存格",expOptOriginal:"源數據",expOriginalTitle:"如果為源數據,則支持導入到表格中",expPrint:"列印",expConfirm:"匯出",expCancel:"取消"},modal:{zoomIn:"最大化",zoomOut:"還原",close:"關閉"},form:{folding:"收起",unfolding:"展開"},toolbar:{import:"導入",export:"匯出",print:"列印",refresh:"刷新",zoomIn:"全螢幕",zoomOut:"還原",custom:"列設定",customAll:"全部",customConfirm:"確認",customRestore:"還原"},input:{date:{m1:"01 月",m2:"02 月",m3:"03 月",m4:"04 月",m5:"05 月",m6:"06 月",m7:"07 月",m8:"08 月",m9:"09 月",m10:"10 月",m11:"11 月",m12:"12 月",quarterLabel:"{0} 年",monthLabel:"{0} 年",dayLabel:"{0} 年 {1}",labelFormat:{date:"yyyy-MM-dd",time:"HH:mm:ss",datetime:"yyyy-MM-dd HH:mm:ss",week:"yyyy 年第 WW 周",month:"yyyy-MM",quarter:"yyyy 年第 q 季度",year:"yyyy"},weeks:{w:"周",w0:"周日",w1:"周一",w2:"周二",w3:"周三",w4:"周四",w5:"周五",w6:"周六"},months:{m0:"一月",m1:"二月",m2:"三月",m3:"四月",m4:"五月",m5:"六月",m6:"七月",m7:"八月",m8:"九月",m9:"十月",m10:"十一月",m11:"十二月"},quarters:{q1:"第一季度",q2:"第二季度",q3:"第三季度",q4:"第四季度"}}}}}});
|
|
1
|
+
!function(e,t){"function"==typeof define&&define.amd?define("vxe-table-lang.zh-HK",["exports"],t):"undefined"!=typeof exports?t(exports):(t(t={}),e.vxeTableLangZhHK=t)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={vxe:{loading:{text:"加載中"},error:{groupFixed:"如果使用分組表頭,固定列必須按組設定",groupMouseRange:'分组表頭與 "{0}" 不能同時使用,這可能會出現錯誤',groupTag:'分組列頭應該使用 "{0}" 而不是 "{1}",這可能會出現錯誤',scrollErrProp:'啟用虛擬滾動後不支持該參數 "{0}"',scrollXNotGroup:'橫向虛擬滾動不支持分組表頭,需要設定 "scroll-x.enabled=false" 參數,否則可能會導致出現錯誤',errConflicts:'參數 "{0}" 與 "{1}" 有衝突',unableInsert:"無法插入到指定位置,請檢查參數是否正確",useErr:'安裝 "{0}" 模組時發生錯誤,可能順序不正確,依賴的模組需要在Table之前安裝',barUnableLink:"工具欄無法關聯表格",expandContent:"展開行的插槽應該是 “content”,請檢查是否正確",reqModule:'缺少 "{0}" 模組',reqProp:'缺少必要的 "{0}" 參數,可能會導致出現錯誤',emptyProp:'參數 "{0}" 不允許為空',errProp:'不支持的參數 "{0}",可能為 "{1}"',colRepet:'column.{0}="{1}" 重複了,這可能會導致某些功能無法使用',notFunc:'方法 "{0}" 不存在',notSlot:'插槽 "{0}" 不存在',noTree:"樹狀結構不支援 {0}",notProp:'不支持的參數 "{0}"',coverProp:'"{0}" 的參數 "{1}" 被覆蓋,這可能會出現錯誤',delFunc:'方法 "{0}" 已停用,請使用 "{1}"',delProp:'參數 "{0}" 已停用,請使用 "{1}"',delEvent:'事件 "{0}" 已停用,請使用 "{1}"',removeProp:'參數 "{0}" 已停用,不建議使用,這可能會導致出現錯誤',errFormat:'全域的格式化內容應該使用 "VXETable.formats" 定義,掛載 "formatter={0}" 的管道已不建議使用',notType:'不支持的檔案類型 "{0}"',notExp:"該瀏覽器不支持導入/匯出功能",impFields:"導入失敗,請檢查欄位名和數據格式是否正確",treeNotImp:"樹狀表格不支持導入"},renderer:{search:"蒐索",cases:{equal:"等於",unequal:"不等於",gt:"大於",ge:"大於或等於",lt:"小於",le:"小於或等於",begin:"開頭是",notbegin:"開頭不是",endin:"結尾是",notendin:"結尾不是",include:"包含",exclude:"不包含",between:"介於",custom:"自定義篩選",insensitive:"不區分大小寫",isSensitive:"區分大小寫"},combination:{menus:{sortAsc:"昇冪",sortDesc:"降序",fixedColumn:"鎖定列",fixedGroup:"鎖定組",cancelFixed:"取消鎖定",fixedLeft:"鎖定左側",fixedRight:"鎖定右側",clearFilter:"清除篩選",textOption:"文字篩選",numberOption:"數值篩選"},popup:{title:"自定義篩選的管道",currColumnTitle:"當前列:",and:"與",or:"或",describeHtml:"用 ? 代表單個字元<br/>用 * 代表任意多個字元"},empty:"(空白)",notData:"無匹配項"}},pro:{area:{mergeErr:"無法對合併儲存格進行該操作",multiErr:"無法對多重選擇區域進行該操作",extendErr:"如果延伸的區域包含被合併的儲存格,所有合併的儲存格需大小相同",pasteMultiErr:"无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作"},fnr:{title:"查找和替換",findLabel:"查找",replaceLabel:"替換",findTitle:"查找內容:",replaceTitle:"替換為:",tabs:{find:"查找",replace:"替換"},filter:{re:"規則運算式",whole:"全詞匹配",sensitive:"區分大小寫"},btns:{findNext:"查找下一個",findAll:"查找全部",replace:"替换",replaceAll:"替换全部",cancel:"取消"},header:{seq:"#",cell:"儲存格",value:"值"},empty:"(空值)",reError:"無效的規則運算式",recordCount:"已找到 {0} 個儲存格",notCell:"找不到匹配的儲存格",replaceSuccess:"成功替換 {0} 個儲存格"}},table:{emptyText:"暫無資料",allTitle:"全選/取消",seqTitle:"#",confirmFilter:"篩選",resetFilter:"重置",allFilter:"全部",sortAsc:"按低到高排序",sortDesc:"按高到低排序",filter:"對所選的列啟用篩選",impSuccess:"成功導入 {0} 條記錄",expLoading:"正在匯出中",expSuccess:"匯出成功",expOriginFilename:"匯出_{0}",expSrcFilename:"匯出_從_{0}",customTitle:"列設定",customAll:"全部",customConfirm:"確認",customRestore:"還原"},grid:{selectOneRecord:"請至少選擇一條記錄!",deleteSelectRecord:"您確定要刪除所選記錄嗎?",removeSelectRecord:"您確定要移除所選記錄嗎?",dataUnchanged:"資料未更改! ",delSuccess:"成功删除所選記錄!",saveSuccess:"保存成功!",operError:"發生錯誤,操作失敗!"},select:{search:"蒐索",loadingText:"加載中",emptyText:"暫無資料"},pager:{goto:"前往",pagesize:"{0}項/頁",total:"共 {0} 項記錄",pageClassifier:"頁",prevPage:"上一頁",nextPage:"下一頁",prevJump:"向上跳頁",nextJump:"向下跳頁"},alert:{title:"訊息提示"},button:{confirm:"確認",cancel:"取消"},import:{modes:{covering:"覆盖",insert:"新增"},impTitle:"導入數據",impFile:"檔名",impSelect:"選擇檔案",impType:"檔案類型",impOpts:"參數設置",impConfirm:"導入",impCancel:"取消"},export:{types:{csv:"CSV (逗号分隔)(*.csv)",html:"網頁(*.html)",xml:"XML 文件(*.xml)",txt:"文本文件(制表符分隔)(*.txt)",xls:"Excel 97-2003 工作簿(*.xls)",xlsx:"Excel 工作簿(*.xlsx)",pdf:"PDF (*.pdf)"},modes:{current:"當前數據(當前頁的數據)",selected:"選中數據(當前頁選中的數據)",all:"全量數據(包括所有分頁的數據)"},printTitle:"列印數據",expTitle:"匯出數據",expName:"檔名",expNamePlaceholder:"請輸入檔名",expSheetName:"標題",expSheetNamePlaceholder:"請輸入標題",expType:"保存類型",expMode:"選擇數據",expCurrentColumn:"全部欄位",expColumn:"選擇欄位",expOpts:"參數設置",expOptHeader:"表頭",expHeaderTitle:"是否需要表頭",expOptFooter:"表尾",expFooterTitle:"是否需要表尾",expOptColgroup:"分组表头",expColgroupTitle:"如果存在,則支持帶有分組結構的表頭",expOptMerge:"合併",expMergeTitle:"如果存在,則支持帶有合併結構的儲存格",expOptAllExpand:"展開層級",expAllExpandTitle:"如果存在,則支持將帶有樹結構的數據全部展開",expOptUseStyle:"樣式",expUseStyleTitle:"如果存在,則支持帶樣式的儲存格",expOptOriginal:"源數據",expOriginalTitle:"如果為源數據,則支持導入到表格中",expPrint:"列印",expConfirm:"匯出",expCancel:"取消"},modal:{zoomIn:"最大化",zoomOut:"還原",close:"關閉"},form:{folding:"收起",unfolding:"展開"},toolbar:{import:"導入",export:"匯出",print:"列印",refresh:"刷新",zoomIn:"全螢幕",zoomOut:"還原",custom:"列設定",customAll:"全部",customConfirm:"確認",customRestore:"還原"},input:{date:{m1:"01 月",m2:"02 月",m3:"03 月",m4:"04 月",m5:"05 月",m6:"06 月",m7:"07 月",m8:"08 月",m9:"09 月",m10:"10 月",m11:"11 月",m12:"12 月",quarterLabel:"{0} 年",monthLabel:"{0} 年",dayLabel:"{0} 年 {1}",labelFormat:{date:"yyyy-MM-dd",time:"HH:mm:ss",datetime:"yyyy-MM-dd HH:mm:ss",week:"yyyy 年第 WW 周",month:"yyyy-MM",quarter:"yyyy 年第 q 季度",year:"yyyy"},weeks:{w:"周",w0:"周日",w1:"周一",w2:"周二",w3:"周三",w4:"周四",w5:"周五",w6:"周六"},months:{m0:"一月",m1:"二月",m2:"三月",m3:"四月",m4:"五月",m5:"六月",m6:"七月",m7:"八月",m8:"九月",m9:"十月",m10:"十一月",m11:"十二月"},quarters:{q1:"第一季度",q2:"第二季度",q3:"第三季度",q4:"第四季度"}}}}}});
|
|
@@ -19,6 +19,9 @@
|
|
|
19
19
|
_exports.default = void 0;
|
|
20
20
|
var _default = {
|
|
21
21
|
vxe: {
|
|
22
|
+
loading: {
|
|
23
|
+
text: '加載中'
|
|
24
|
+
},
|
|
22
25
|
error: {
|
|
23
26
|
groupFixed: '如果使用分組表頭,固定列必須按組設定',
|
|
24
27
|
groupMouseRange: '分组表頭與 "{0}" 不能同時使用,這可能會出現錯誤',
|
|
@@ -165,6 +168,8 @@
|
|
|
165
168
|
operError: '發生錯誤,操作失敗!'
|
|
166
169
|
},
|
|
167
170
|
select: {
|
|
171
|
+
search: '蒐索',
|
|
172
|
+
loadingText: '加載中',
|
|
168
173
|
emptyText: '暫無資料'
|
|
169
174
|
},
|
|
170
175
|
pager: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"function"==typeof define&&define.amd?define("vxe-table-lang.zh-MO",["exports"],t):"undefined"!=typeof exports?t(exports):(t(t={}),e.vxeTableLangZhMO=t)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={vxe:{error:{groupFixed:"如果使用分組表頭,固定列必須按組設定",groupMouseRange:'分组表頭與 "{0}" 不能同時使用,這可能會出現錯誤',groupTag:'分組列頭應該使用 "{0}" 而不是 "{1}",這可能會出現錯誤',scrollErrProp:'啟用虛擬滾動後不支持該參數 "{0}"',scrollXNotGroup:'橫向虛擬滾動不支持分組表頭,需要設定 "scroll-x.enabled=false" 參數,否則可能會導致出現錯誤',errConflicts:'參數 "{0}" 與 "{1}" 有衝突',unableInsert:"無法插入到指定位置,請檢查參數是否正確",useErr:'安裝 "{0}" 模組時發生錯誤,可能順序不正確,依賴的模組需要在Table之前安裝',barUnableLink:"工具欄無法關聯表格",expandContent:"展開行的插槽應該是 “content”,請檢查是否正確",reqModule:'缺少 "{0}" 模組',reqProp:'缺少必要的 "{0}" 參數,可能會導致出現錯誤',emptyProp:'參數 "{0}" 不允許為空',errProp:'不支持的參數 "{0}",可能為 "{1}"',colRepet:'column.{0}="{1}" 重複了,這可能會導致某些功能無法使用',notFunc:'方法 "{0}" 不存在',notSlot:'插槽 "{0}" 不存在',noTree:"樹狀結構不支援 {0}",notProp:'不支持的參數 "{0}"',coverProp:'"{0}" 的參數 "{1}" 被覆蓋,這可能會出現錯誤',delFunc:'方法 "{0}" 已停用,請使用 "{1}"',delProp:'參數 "{0}" 已停用,請使用 "{1}"',delEvent:'事件 "{0}" 已停用,請使用 "{1}"',removeProp:'參數 "{0}" 已停用,不建議使用,這可能會導致出現錯誤',errFormat:'全域的格式化內容應該使用 "VXETable.formats" 定義,掛載 "formatter={0}" 的管道已不建議使用',notType:'不支持的檔案類型 "{0}"',notExp:"該瀏覽器不支持導入/匯出功能",impFields:"導入失敗,請檢查欄位名和數據格式是否正確",treeNotImp:"樹狀表格不支持導入"},renderer:{search:"蒐索",cases:{equal:"等於",unequal:"不等於",gt:"大於",ge:"大於或等於",lt:"小於",le:"小於或等於",begin:"開頭是",notbegin:"開頭不是",endin:"結尾是",notendin:"結尾不是",include:"包含",exclude:"不包含",between:"介於",custom:"自定義篩選",insensitive:"不區分大小寫",isSensitive:"區分大小寫"},combination:{menus:{sortAsc:"昇冪",sortDesc:"降序",fixedColumn:"鎖定列",fixedGroup:"鎖定組",cancelFixed:"取消鎖定",fixedLeft:"鎖定左側",fixedRight:"鎖定右側",clearFilter:"清除篩選",textOption:"文字篩選",numberOption:"數值篩選"},popup:{title:"自定義篩選的管道",currColumnTitle:"當前列:",and:"與",or:"或",describeHtml:"用 ? 代表單個字元<br/>用 * 代表任意多個字元"},empty:"(空白)",notData:"無匹配項"}},pro:{area:{mergeErr:"無法對合併儲存格進行該操作",multiErr:"無法對多重選擇區域進行該操作",extendErr:"如果延伸的區域包含被合併的儲存格,所有合併的儲存格需大小相同",pasteMultiErr:"无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作"},fnr:{title:"查找和替換",findLabel:"查找",replaceLabel:"替換",findTitle:"查找內容:",replaceTitle:"替換為:",tabs:{find:"查找",replace:"替換"},filter:{re:"規則運算式",whole:"全詞匹配",sensitive:"區分大小寫"},btns:{findNext:"查找下一個",findAll:"查找全部",replace:"替换",replaceAll:"替换全部",cancel:"取消"},header:{seq:"#",cell:"儲存格",value:"值"},empty:"(空值)",reError:"無效的規則運算式",recordCount:"已找到 {0} 個儲存格",notCell:"找不到匹配的儲存格",replaceSuccess:"成功替換 {0} 個儲存格"}},table:{emptyText:"暫無資料",allTitle:"全選/取消",seqTitle:"#",confirmFilter:"篩選",resetFilter:"重置",allFilter:"全部",sortAsc:"按低到高排序",sortDesc:"按高到低排序",filter:"對所選的列啟用篩選",impSuccess:"成功導入 {0} 條記錄",expLoading:"正在匯出中",expSuccess:"匯出成功",expOriginFilename:"匯出_{0}",expSrcFilename:"匯出_從_{0}",customTitle:"列設定",customAll:"全部",customConfirm:"確認",customRestore:"還原"},grid:{selectOneRecord:"請至少選擇一條記錄!",deleteSelectRecord:"您確定要刪除所選記錄嗎?",removeSelectRecord:"您確定要移除所選記錄嗎?",dataUnchanged:"資料未更改! ",delSuccess:"成功删除所選記錄!",saveSuccess:"保存成功!",operError:"發生錯誤,操作失敗!"},select:{emptyText:"暫無資料"},pager:{goto:"前往",pagesize:"{0}項/頁",total:"共 {0} 項記錄",pageClassifier:"頁",prevPage:"上一頁",nextPage:"下一頁",prevJump:"向上跳頁",nextJump:"向下跳頁"},alert:{title:"訊息提示"},button:{confirm:"確認",cancel:"取消"},import:{modes:{covering:"覆盖",insert:"新增"},impTitle:"導入數據",impFile:"檔名",impSelect:"選擇檔案",impType:"檔案類型",impOpts:"參數設置",impConfirm:"導入",impCancel:"取消"},export:{types:{csv:"CSV (逗号分隔)(*.csv)",html:"網頁(*.html)",xml:"XML 文件(*.xml)",txt:"文本文件(制表符分隔)(*.txt)",xls:"Excel 97-2003 工作簿(*.xls)",xlsx:"Excel 工作簿(*.xlsx)",pdf:"PDF (*.pdf)"},modes:{current:"當前數據(當前頁的數據)",selected:"選中數據(當前頁選中的數據)",all:"全量數據(包括所有分頁的數據)"},printTitle:"列印數據",expTitle:"匯出數據",expName:"檔名",expNamePlaceholder:"請輸入檔名",expSheetName:"標題",expSheetNamePlaceholder:"請輸入標題",expType:"保存類型",expMode:"選擇數據",expCurrentColumn:"全部欄位",expColumn:"選擇欄位",expOpts:"參數設置",expOptHeader:"表頭",expHeaderTitle:"是否需要表頭",expOptFooter:"表尾",expFooterTitle:"是否需要表尾",expOptColgroup:"分组表头",expColgroupTitle:"如果存在,則支持帶有分組結構的表頭",expOptMerge:"合併",expMergeTitle:"如果存在,則支持帶有合併結構的儲存格",expOptAllExpand:"展開層級",expAllExpandTitle:"如果存在,則支持將帶有樹結構的數據全部展開",expOptUseStyle:"樣式",expUseStyleTitle:"如果存在,則支持帶樣式的儲存格",expOptOriginal:"源數據",expOriginalTitle:"如果為源數據,則支持導入到表格中",expPrint:"列印",expConfirm:"匯出",expCancel:"取消"},modal:{zoomIn:"最大化",zoomOut:"還原",close:"關閉"},form:{folding:"收起",unfolding:"展開"},toolbar:{import:"導入",export:"匯出",print:"列印",refresh:"刷新",zoomIn:"全螢幕",zoomOut:"還原",custom:"列設定",customAll:"全部",customConfirm:"確認",customRestore:"還原"},input:{date:{m1:"01 月",m2:"02 月",m3:"03 月",m4:"04 月",m5:"05 月",m6:"06 月",m7:"07 月",m8:"08 月",m9:"09 月",m10:"10 月",m11:"11 月",m12:"12 月",quarterLabel:"{0} 年",monthLabel:"{0} 年",dayLabel:"{0} 年 {1}",labelFormat:{date:"yyyy-MM-dd",time:"HH:mm:ss",datetime:"yyyy-MM-dd HH:mm:ss",week:"yyyy 年第 WW 周",month:"yyyy-MM",quarter:"yyyy 年第 q 季度",year:"yyyy"},weeks:{w:"周",w0:"周日",w1:"周一",w2:"周二",w3:"周三",w4:"周四",w5:"周五",w6:"周六"},months:{m0:"一月",m1:"二月",m2:"三月",m3:"四月",m4:"五月",m5:"六月",m6:"七月",m7:"八月",m8:"九月",m9:"十月",m10:"十一月",m11:"十二月"},quarters:{q1:"第一季度",q2:"第二季度",q3:"第三季度",q4:"第四季度"}}}}}});
|
|
1
|
+
!function(e,t){"function"==typeof define&&define.amd?define("vxe-table-lang.zh-MO",["exports"],t):"undefined"!=typeof exports?t(exports):(t(t={}),e.vxeTableLangZhMO=t)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={vxe:{loading:{text:"加載中"},error:{groupFixed:"如果使用分組表頭,固定列必須按組設定",groupMouseRange:'分组表頭與 "{0}" 不能同時使用,這可能會出現錯誤',groupTag:'分組列頭應該使用 "{0}" 而不是 "{1}",這可能會出現錯誤',scrollErrProp:'啟用虛擬滾動後不支持該參數 "{0}"',scrollXNotGroup:'橫向虛擬滾動不支持分組表頭,需要設定 "scroll-x.enabled=false" 參數,否則可能會導致出現錯誤',errConflicts:'參數 "{0}" 與 "{1}" 有衝突',unableInsert:"無法插入到指定位置,請檢查參數是否正確",useErr:'安裝 "{0}" 模組時發生錯誤,可能順序不正確,依賴的模組需要在Table之前安裝',barUnableLink:"工具欄無法關聯表格",expandContent:"展開行的插槽應該是 “content”,請檢查是否正確",reqModule:'缺少 "{0}" 模組',reqProp:'缺少必要的 "{0}" 參數,可能會導致出現錯誤',emptyProp:'參數 "{0}" 不允許為空',errProp:'不支持的參數 "{0}",可能為 "{1}"',colRepet:'column.{0}="{1}" 重複了,這可能會導致某些功能無法使用',notFunc:'方法 "{0}" 不存在',notSlot:'插槽 "{0}" 不存在',noTree:"樹狀結構不支援 {0}",notProp:'不支持的參數 "{0}"',coverProp:'"{0}" 的參數 "{1}" 被覆蓋,這可能會出現錯誤',delFunc:'方法 "{0}" 已停用,請使用 "{1}"',delProp:'參數 "{0}" 已停用,請使用 "{1}"',delEvent:'事件 "{0}" 已停用,請使用 "{1}"',removeProp:'參數 "{0}" 已停用,不建議使用,這可能會導致出現錯誤',errFormat:'全域的格式化內容應該使用 "VXETable.formats" 定義,掛載 "formatter={0}" 的管道已不建議使用',notType:'不支持的檔案類型 "{0}"',notExp:"該瀏覽器不支持導入/匯出功能",impFields:"導入失敗,請檢查欄位名和數據格式是否正確",treeNotImp:"樹狀表格不支持導入"},renderer:{search:"蒐索",cases:{equal:"等於",unequal:"不等於",gt:"大於",ge:"大於或等於",lt:"小於",le:"小於或等於",begin:"開頭是",notbegin:"開頭不是",endin:"結尾是",notendin:"結尾不是",include:"包含",exclude:"不包含",between:"介於",custom:"自定義篩選",insensitive:"不區分大小寫",isSensitive:"區分大小寫"},combination:{menus:{sortAsc:"昇冪",sortDesc:"降序",fixedColumn:"鎖定列",fixedGroup:"鎖定組",cancelFixed:"取消鎖定",fixedLeft:"鎖定左側",fixedRight:"鎖定右側",clearFilter:"清除篩選",textOption:"文字篩選",numberOption:"數值篩選"},popup:{title:"自定義篩選的管道",currColumnTitle:"當前列:",and:"與",or:"或",describeHtml:"用 ? 代表單個字元<br/>用 * 代表任意多個字元"},empty:"(空白)",notData:"無匹配項"}},pro:{area:{mergeErr:"無法對合併儲存格進行該操作",multiErr:"無法對多重選擇區域進行該操作",extendErr:"如果延伸的區域包含被合併的儲存格,所有合併的儲存格需大小相同",pasteMultiErr:"无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作"},fnr:{title:"查找和替換",findLabel:"查找",replaceLabel:"替換",findTitle:"查找內容:",replaceTitle:"替換為:",tabs:{find:"查找",replace:"替換"},filter:{re:"規則運算式",whole:"全詞匹配",sensitive:"區分大小寫"},btns:{findNext:"查找下一個",findAll:"查找全部",replace:"替换",replaceAll:"替换全部",cancel:"取消"},header:{seq:"#",cell:"儲存格",value:"值"},empty:"(空值)",reError:"無效的規則運算式",recordCount:"已找到 {0} 個儲存格",notCell:"找不到匹配的儲存格",replaceSuccess:"成功替換 {0} 個儲存格"}},table:{emptyText:"暫無資料",allTitle:"全選/取消",seqTitle:"#",confirmFilter:"篩選",resetFilter:"重置",allFilter:"全部",sortAsc:"按低到高排序",sortDesc:"按高到低排序",filter:"對所選的列啟用篩選",impSuccess:"成功導入 {0} 條記錄",expLoading:"正在匯出中",expSuccess:"匯出成功",expOriginFilename:"匯出_{0}",expSrcFilename:"匯出_從_{0}",customTitle:"列設定",customAll:"全部",customConfirm:"確認",customRestore:"還原"},grid:{selectOneRecord:"請至少選擇一條記錄!",deleteSelectRecord:"您確定要刪除所選記錄嗎?",removeSelectRecord:"您確定要移除所選記錄嗎?",dataUnchanged:"資料未更改! ",delSuccess:"成功删除所選記錄!",saveSuccess:"保存成功!",operError:"發生錯誤,操作失敗!"},select:{search:"蒐索",loadingText:"加載中",emptyText:"暫無資料"},pager:{goto:"前往",pagesize:"{0}項/頁",total:"共 {0} 項記錄",pageClassifier:"頁",prevPage:"上一頁",nextPage:"下一頁",prevJump:"向上跳頁",nextJump:"向下跳頁"},alert:{title:"訊息提示"},button:{confirm:"確認",cancel:"取消"},import:{modes:{covering:"覆盖",insert:"新增"},impTitle:"導入數據",impFile:"檔名",impSelect:"選擇檔案",impType:"檔案類型",impOpts:"參數設置",impConfirm:"導入",impCancel:"取消"},export:{types:{csv:"CSV (逗号分隔)(*.csv)",html:"網頁(*.html)",xml:"XML 文件(*.xml)",txt:"文本文件(制表符分隔)(*.txt)",xls:"Excel 97-2003 工作簿(*.xls)",xlsx:"Excel 工作簿(*.xlsx)",pdf:"PDF (*.pdf)"},modes:{current:"當前數據(當前頁的數據)",selected:"選中數據(當前頁選中的數據)",all:"全量數據(包括所有分頁的數據)"},printTitle:"列印數據",expTitle:"匯出數據",expName:"檔名",expNamePlaceholder:"請輸入檔名",expSheetName:"標題",expSheetNamePlaceholder:"請輸入標題",expType:"保存類型",expMode:"選擇數據",expCurrentColumn:"全部欄位",expColumn:"選擇欄位",expOpts:"參數設置",expOptHeader:"表頭",expHeaderTitle:"是否需要表頭",expOptFooter:"表尾",expFooterTitle:"是否需要表尾",expOptColgroup:"分组表头",expColgroupTitle:"如果存在,則支持帶有分組結構的表頭",expOptMerge:"合併",expMergeTitle:"如果存在,則支持帶有合併結構的儲存格",expOptAllExpand:"展開層級",expAllExpandTitle:"如果存在,則支持將帶有樹結構的數據全部展開",expOptUseStyle:"樣式",expUseStyleTitle:"如果存在,則支持帶樣式的儲存格",expOptOriginal:"源數據",expOriginalTitle:"如果為源數據,則支持導入到表格中",expPrint:"列印",expConfirm:"匯出",expCancel:"取消"},modal:{zoomIn:"最大化",zoomOut:"還原",close:"關閉"},form:{folding:"收起",unfolding:"展開"},toolbar:{import:"導入",export:"匯出",print:"列印",refresh:"刷新",zoomIn:"全螢幕",zoomOut:"還原",custom:"列設定",customAll:"全部",customConfirm:"確認",customRestore:"還原"},input:{date:{m1:"01 月",m2:"02 月",m3:"03 月",m4:"04 月",m5:"05 月",m6:"06 月",m7:"07 月",m8:"08 月",m9:"09 月",m10:"10 月",m11:"11 月",m12:"12 月",quarterLabel:"{0} 年",monthLabel:"{0} 年",dayLabel:"{0} 年 {1}",labelFormat:{date:"yyyy-MM-dd",time:"HH:mm:ss",datetime:"yyyy-MM-dd HH:mm:ss",week:"yyyy 年第 WW 周",month:"yyyy-MM",quarter:"yyyy 年第 q 季度",year:"yyyy"},weeks:{w:"周",w0:"周日",w1:"周一",w2:"周二",w3:"周三",w4:"周四",w5:"周五",w6:"周六"},months:{m0:"一月",m1:"二月",m2:"三月",m3:"四月",m4:"五月",m5:"六月",m6:"七月",m7:"八月",m8:"九月",m9:"十月",m10:"十一月",m11:"十二月"},quarters:{q1:"第一季度",q2:"第二季度",q3:"第三季度",q4:"第四季度"}}}}}});
|
|
@@ -19,6 +19,9 @@
|
|
|
19
19
|
_exports.default = void 0;
|
|
20
20
|
var _default = {
|
|
21
21
|
vxe: {
|
|
22
|
+
loading: {
|
|
23
|
+
text: '加載中'
|
|
24
|
+
},
|
|
22
25
|
error: {
|
|
23
26
|
groupFixed: '如果使用分組表頭,固定列必須按組設定',
|
|
24
27
|
groupMouseRange: '分组表頭與 "{0}" 不能同時使用,這可能會出現錯誤',
|
|
@@ -165,6 +168,8 @@
|
|
|
165
168
|
operError: '發生錯誤,操作失敗!'
|
|
166
169
|
},
|
|
167
170
|
select: {
|
|
171
|
+
search: '蒐索',
|
|
172
|
+
loadingText: '加載中',
|
|
168
173
|
emptyText: '暫無資料'
|
|
169
174
|
},
|
|
170
175
|
pager: {
|
package/lib/locale/lang/zh-TC.js
CHANGED
|
@@ -6,6 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _default = {
|
|
8
8
|
vxe: {
|
|
9
|
+
loading: {
|
|
10
|
+
text: '加載中'
|
|
11
|
+
},
|
|
9
12
|
error: {
|
|
10
13
|
groupFixed: '如果使用分組表頭,固定列必須按組設定',
|
|
11
14
|
groupMouseRange: '分组表頭與 "{0}" 不能同時使用,這可能會出現錯誤',
|
|
@@ -152,6 +155,8 @@ var _default = {
|
|
|
152
155
|
operError: '發生錯誤,操作失敗!'
|
|
153
156
|
},
|
|
154
157
|
select: {
|
|
158
|
+
search: '蒐索',
|
|
159
|
+
loadingText: '加載中',
|
|
155
160
|
emptyText: '暫無資料'
|
|
156
161
|
},
|
|
157
162
|
pager: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"function"==typeof define&&define.amd?define("vxe-table-lang.zh-TC",["exports"],t):"undefined"!=typeof exports?t(exports):(t(t={}),e.vxeTableLangZhTC=t)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={vxe:{error:{groupFixed:"如果使用分組表頭,固定列必須按組設定",groupMouseRange:'分组表頭與 "{0}" 不能同時使用,這可能會出現錯誤',groupTag:'分組列頭應該使用 "{0}" 而不是 "{1}",這可能會出現錯誤',scrollErrProp:'啟用虛擬滾動後不支持該參數 "{0}"',scrollXNotGroup:'橫向虛擬滾動不支持分組表頭,需要設定 "scroll-x.enabled=false" 參數,否則可能會導致出現錯誤',errConflicts:'參數 "{0}" 與 "{1}" 有衝突',unableInsert:"無法插入到指定位置,請檢查參數是否正確",useErr:'安裝 "{0}" 模組時發生錯誤,可能順序不正確,依賴的模組需要在Table之前安裝',barUnableLink:"工具欄無法關聯表格",expandContent:"展開行的插槽應該是 “content”,請檢查是否正確",reqModule:'缺少 "{0}" 模組',reqProp:'缺少必要的 "{0}" 參數,可能會導致出現錯誤',emptyProp:'參數 "{0}" 不允許為空',errProp:'不支持的參數 "{0}",可能為 "{1}"',colRepet:'column.{0}="{1}" 重複了,這可能會導致某些功能無法使用',notFunc:'方法 "{0}" 不存在',notSlot:'插槽 "{0}" 不存在',noTree:"樹狀結構不支援 {0}",notProp:'不支持的參數 "{0}"',coverProp:'"{0}" 的參數 "{1}" 被覆蓋,這可能會出現錯誤',delFunc:'方法 "{0}" 已停用,請使用 "{1}"',delProp:'參數 "{0}" 已停用,請使用 "{1}"',delEvent:'事件 "{0}" 已停用,請使用 "{1}"',removeProp:'參數 "{0}" 已停用,不建議使用,這可能會導致出現錯誤',errFormat:'全域的格式化內容應該使用 "VXETable.formats" 定義,掛載 "formatter={0}" 的管道已不建議使用',notType:'不支持的檔案類型 "{0}"',notExp:"該瀏覽器不支持導入/匯出功能",impFields:"導入失敗,請檢查欄位名和數據格式是否正確",treeNotImp:"樹狀表格不支持導入"},renderer:{search:"蒐索",cases:{equal:"等於",unequal:"不等於",gt:"大於",ge:"大於或等於",lt:"小於",le:"小於或等於",begin:"開頭是",notbegin:"開頭不是",endin:"結尾是",notendin:"結尾不是",include:"包含",exclude:"不包含",between:"介於",custom:"自定義篩選",insensitive:"不區分大小寫",isSensitive:"區分大小寫"},combination:{menus:{sortAsc:"昇冪",sortDesc:"降序",fixedColumn:"鎖定列",fixedGroup:"鎖定組",cancelFixed:"取消鎖定",fixedLeft:"鎖定左側",fixedRight:"鎖定右側",clearFilter:"清除篩選",textOption:"文字篩選",numberOption:"數值篩選"},popup:{title:"自定義篩選的管道",currColumnTitle:"當前列:",and:"與",or:"或",describeHtml:"用 ? 代表單個字元<br/>用 * 代表任意多個字元"},empty:"(空白)",notData:"無匹配項"}},pro:{area:{mergeErr:"無法對合併儲存格進行該操作",multiErr:"無法對多重選擇區域進行該操作",extendErr:"如果延伸的區域包含被合併的儲存格,所有合併的儲存格需大小相同",pasteMultiErr:"无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作"},fnr:{title:"查找和替換",findLabel:"查找",replaceLabel:"替換",findTitle:"查找內容:",replaceTitle:"替換為:",tabs:{find:"查找",replace:"替換"},filter:{re:"規則運算式",whole:"全詞匹配",sensitive:"區分大小寫"},btns:{findNext:"查找下一個",findAll:"查找全部",replace:"替换",replaceAll:"替换全部",cancel:"取消"},header:{seq:"#",cell:"儲存格",value:"值"},empty:"(空值)",reError:"無效的規則運算式",recordCount:"已找到 {0} 個儲存格",notCell:"找不到匹配的儲存格",replaceSuccess:"成功替換 {0} 個儲存格"}},table:{emptyText:"暫無資料",allTitle:"全選/取消",seqTitle:"#",confirmFilter:"篩選",resetFilter:"重置",allFilter:"全部",sortAsc:"按低到高排序",sortDesc:"按高到低排序",filter:"對所選的列啟用篩選",impSuccess:"成功導入 {0} 條記錄",expLoading:"正在匯出中",expSuccess:"匯出成功",expOriginFilename:"匯出_{0}",expSrcFilename:"匯出_從_{0}",customTitle:"列設定",customAll:"全部",customConfirm:"確認",customRestore:"還原"},grid:{selectOneRecord:"請至少選擇一條記錄!",deleteSelectRecord:"您確定要刪除所選記錄嗎?",removeSelectRecord:"您確定要移除所選記錄嗎?",dataUnchanged:"資料未更改! ",delSuccess:"成功删除所選記錄!",saveSuccess:"保存成功!",operError:"發生錯誤,操作失敗!"},select:{emptyText:"暫無資料"},pager:{goto:"前往",pagesize:"{0}項/頁",total:"共 {0} 項記錄",pageClassifier:"頁",prevPage:"上一頁",nextPage:"下一頁",prevJump:"向上跳頁",nextJump:"向下跳頁"},alert:{title:"訊息提示"},button:{confirm:"確認",cancel:"取消"},import:{modes:{covering:"覆盖",insert:"新增"},impTitle:"導入數據",impFile:"檔名",impSelect:"選擇檔案",impType:"檔案類型",impOpts:"參數設置",impConfirm:"導入",impCancel:"取消"},export:{types:{csv:"CSV (逗号分隔)(*.csv)",html:"網頁(*.html)",xml:"XML 文件(*.xml)",txt:"文本文件(制表符分隔)(*.txt)",xls:"Excel 97-2003 工作簿(*.xls)",xlsx:"Excel 工作簿(*.xlsx)",pdf:"PDF (*.pdf)"},modes:{current:"當前數據(當前頁的數據)",selected:"選中數據(當前頁選中的數據)",all:"全量數據(包括所有分頁的數據)"},printTitle:"列印數據",expTitle:"匯出數據",expName:"檔名",expNamePlaceholder:"請輸入檔名",expSheetName:"標題",expSheetNamePlaceholder:"請輸入標題",expType:"保存類型",expMode:"選擇數據",expCurrentColumn:"全部欄位",expColumn:"選擇欄位",expOpts:"參數設置",expOptHeader:"表頭",expHeaderTitle:"是否需要表頭",expOptFooter:"表尾",expFooterTitle:"是否需要表尾",expOptColgroup:"分组表头",expColgroupTitle:"如果存在,則支持帶有分組結構的表頭",expOptMerge:"合併",expMergeTitle:"如果存在,則支持帶有合併結構的儲存格",expOptAllExpand:"展開層級",expAllExpandTitle:"如果存在,則支持將帶有樹結構的數據全部展開",expOptUseStyle:"樣式",expUseStyleTitle:"如果存在,則支持帶樣式的儲存格",expOptOriginal:"源數據",expOriginalTitle:"如果為源數據,則支持導入到表格中",expPrint:"列印",expConfirm:"匯出",expCancel:"取消"},modal:{zoomIn:"最大化",zoomOut:"還原",close:"關閉"},form:{folding:"收起",unfolding:"展開"},toolbar:{import:"導入",export:"匯出",print:"列印",refresh:"刷新",zoomIn:"全螢幕",zoomOut:"還原",custom:"列設定",customAll:"全部",customConfirm:"確認",customRestore:"還原"},input:{date:{m1:"01 月",m2:"02 月",m3:"03 月",m4:"04 月",m5:"05 月",m6:"06 月",m7:"07 月",m8:"08 月",m9:"09 月",m10:"10 月",m11:"11 月",m12:"12 月",quarterLabel:"{0} 年",monthLabel:"{0} 年",dayLabel:"{0} 年 {1}",labelFormat:{date:"yyyy-MM-dd",time:"HH:mm:ss",datetime:"yyyy-MM-dd HH:mm:ss",week:"yyyy 年第 WW 周",month:"yyyy-MM",quarter:"yyyy 年第 q 季度",year:"yyyy"},weeks:{w:"周",w0:"周日",w1:"周一",w2:"周二",w3:"周三",w4:"周四",w5:"周五",w6:"周六"},months:{m0:"一月",m1:"二月",m2:"三月",m3:"四月",m4:"五月",m5:"六月",m6:"七月",m7:"八月",m8:"九月",m9:"十月",m10:"十一月",m11:"十二月"},quarters:{q1:"第一季度",q2:"第二季度",q3:"第三季度",q4:"第四季度"}}}}}});
|
|
1
|
+
!function(e,t){"function"==typeof define&&define.amd?define("vxe-table-lang.zh-TC",["exports"],t):"undefined"!=typeof exports?t(exports):(t(t={}),e.vxeTableLangZhTC=t)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={vxe:{loading:{text:"加載中"},error:{groupFixed:"如果使用分組表頭,固定列必須按組設定",groupMouseRange:'分组表頭與 "{0}" 不能同時使用,這可能會出現錯誤',groupTag:'分組列頭應該使用 "{0}" 而不是 "{1}",這可能會出現錯誤',scrollErrProp:'啟用虛擬滾動後不支持該參數 "{0}"',scrollXNotGroup:'橫向虛擬滾動不支持分組表頭,需要設定 "scroll-x.enabled=false" 參數,否則可能會導致出現錯誤',errConflicts:'參數 "{0}" 與 "{1}" 有衝突',unableInsert:"無法插入到指定位置,請檢查參數是否正確",useErr:'安裝 "{0}" 模組時發生錯誤,可能順序不正確,依賴的模組需要在Table之前安裝',barUnableLink:"工具欄無法關聯表格",expandContent:"展開行的插槽應該是 “content”,請檢查是否正確",reqModule:'缺少 "{0}" 模組',reqProp:'缺少必要的 "{0}" 參數,可能會導致出現錯誤',emptyProp:'參數 "{0}" 不允許為空',errProp:'不支持的參數 "{0}",可能為 "{1}"',colRepet:'column.{0}="{1}" 重複了,這可能會導致某些功能無法使用',notFunc:'方法 "{0}" 不存在',notSlot:'插槽 "{0}" 不存在',noTree:"樹狀結構不支援 {0}",notProp:'不支持的參數 "{0}"',coverProp:'"{0}" 的參數 "{1}" 被覆蓋,這可能會出現錯誤',delFunc:'方法 "{0}" 已停用,請使用 "{1}"',delProp:'參數 "{0}" 已停用,請使用 "{1}"',delEvent:'事件 "{0}" 已停用,請使用 "{1}"',removeProp:'參數 "{0}" 已停用,不建議使用,這可能會導致出現錯誤',errFormat:'全域的格式化內容應該使用 "VXETable.formats" 定義,掛載 "formatter={0}" 的管道已不建議使用',notType:'不支持的檔案類型 "{0}"',notExp:"該瀏覽器不支持導入/匯出功能",impFields:"導入失敗,請檢查欄位名和數據格式是否正確",treeNotImp:"樹狀表格不支持導入"},renderer:{search:"蒐索",cases:{equal:"等於",unequal:"不等於",gt:"大於",ge:"大於或等於",lt:"小於",le:"小於或等於",begin:"開頭是",notbegin:"開頭不是",endin:"結尾是",notendin:"結尾不是",include:"包含",exclude:"不包含",between:"介於",custom:"自定義篩選",insensitive:"不區分大小寫",isSensitive:"區分大小寫"},combination:{menus:{sortAsc:"昇冪",sortDesc:"降序",fixedColumn:"鎖定列",fixedGroup:"鎖定組",cancelFixed:"取消鎖定",fixedLeft:"鎖定左側",fixedRight:"鎖定右側",clearFilter:"清除篩選",textOption:"文字篩選",numberOption:"數值篩選"},popup:{title:"自定義篩選的管道",currColumnTitle:"當前列:",and:"與",or:"或",describeHtml:"用 ? 代表單個字元<br/>用 * 代表任意多個字元"},empty:"(空白)",notData:"無匹配項"}},pro:{area:{mergeErr:"無法對合併儲存格進行該操作",multiErr:"無法對多重選擇區域進行該操作",extendErr:"如果延伸的區域包含被合併的儲存格,所有合併的儲存格需大小相同",pasteMultiErr:"无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作"},fnr:{title:"查找和替換",findLabel:"查找",replaceLabel:"替換",findTitle:"查找內容:",replaceTitle:"替換為:",tabs:{find:"查找",replace:"替換"},filter:{re:"規則運算式",whole:"全詞匹配",sensitive:"區分大小寫"},btns:{findNext:"查找下一個",findAll:"查找全部",replace:"替换",replaceAll:"替换全部",cancel:"取消"},header:{seq:"#",cell:"儲存格",value:"值"},empty:"(空值)",reError:"無效的規則運算式",recordCount:"已找到 {0} 個儲存格",notCell:"找不到匹配的儲存格",replaceSuccess:"成功替換 {0} 個儲存格"}},table:{emptyText:"暫無資料",allTitle:"全選/取消",seqTitle:"#",confirmFilter:"篩選",resetFilter:"重置",allFilter:"全部",sortAsc:"按低到高排序",sortDesc:"按高到低排序",filter:"對所選的列啟用篩選",impSuccess:"成功導入 {0} 條記錄",expLoading:"正在匯出中",expSuccess:"匯出成功",expOriginFilename:"匯出_{0}",expSrcFilename:"匯出_從_{0}",customTitle:"列設定",customAll:"全部",customConfirm:"確認",customRestore:"還原"},grid:{selectOneRecord:"請至少選擇一條記錄!",deleteSelectRecord:"您確定要刪除所選記錄嗎?",removeSelectRecord:"您確定要移除所選記錄嗎?",dataUnchanged:"資料未更改! ",delSuccess:"成功删除所選記錄!",saveSuccess:"保存成功!",operError:"發生錯誤,操作失敗!"},select:{search:"蒐索",loadingText:"加載中",emptyText:"暫無資料"},pager:{goto:"前往",pagesize:"{0}項/頁",total:"共 {0} 項記錄",pageClassifier:"頁",prevPage:"上一頁",nextPage:"下一頁",prevJump:"向上跳頁",nextJump:"向下跳頁"},alert:{title:"訊息提示"},button:{confirm:"確認",cancel:"取消"},import:{modes:{covering:"覆盖",insert:"新增"},impTitle:"導入數據",impFile:"檔名",impSelect:"選擇檔案",impType:"檔案類型",impOpts:"參數設置",impConfirm:"導入",impCancel:"取消"},export:{types:{csv:"CSV (逗号分隔)(*.csv)",html:"網頁(*.html)",xml:"XML 文件(*.xml)",txt:"文本文件(制表符分隔)(*.txt)",xls:"Excel 97-2003 工作簿(*.xls)",xlsx:"Excel 工作簿(*.xlsx)",pdf:"PDF (*.pdf)"},modes:{current:"當前數據(當前頁的數據)",selected:"選中數據(當前頁選中的數據)",all:"全量數據(包括所有分頁的數據)"},printTitle:"列印數據",expTitle:"匯出數據",expName:"檔名",expNamePlaceholder:"請輸入檔名",expSheetName:"標題",expSheetNamePlaceholder:"請輸入標題",expType:"保存類型",expMode:"選擇數據",expCurrentColumn:"全部欄位",expColumn:"選擇欄位",expOpts:"參數設置",expOptHeader:"表頭",expHeaderTitle:"是否需要表頭",expOptFooter:"表尾",expFooterTitle:"是否需要表尾",expOptColgroup:"分组表头",expColgroupTitle:"如果存在,則支持帶有分組結構的表頭",expOptMerge:"合併",expMergeTitle:"如果存在,則支持帶有合併結構的儲存格",expOptAllExpand:"展開層級",expAllExpandTitle:"如果存在,則支持將帶有樹結構的數據全部展開",expOptUseStyle:"樣式",expUseStyleTitle:"如果存在,則支持帶樣式的儲存格",expOptOriginal:"源數據",expOriginalTitle:"如果為源數據,則支持導入到表格中",expPrint:"列印",expConfirm:"匯出",expCancel:"取消"},modal:{zoomIn:"最大化",zoomOut:"還原",close:"關閉"},form:{folding:"收起",unfolding:"展開"},toolbar:{import:"導入",export:"匯出",print:"列印",refresh:"刷新",zoomIn:"全螢幕",zoomOut:"還原",custom:"列設定",customAll:"全部",customConfirm:"確認",customRestore:"還原"},input:{date:{m1:"01 月",m2:"02 月",m3:"03 月",m4:"04 月",m5:"05 月",m6:"06 月",m7:"07 月",m8:"08 月",m9:"09 月",m10:"10 月",m11:"11 月",m12:"12 月",quarterLabel:"{0} 年",monthLabel:"{0} 年",dayLabel:"{0} 年 {1}",labelFormat:{date:"yyyy-MM-dd",time:"HH:mm:ss",datetime:"yyyy-MM-dd HH:mm:ss",week:"yyyy 年第 WW 周",month:"yyyy-MM",quarter:"yyyy 年第 q 季度",year:"yyyy"},weeks:{w:"周",w0:"周日",w1:"周一",w2:"周二",w3:"周三",w4:"周四",w5:"周五",w6:"周六"},months:{m0:"一月",m1:"二月",m2:"三月",m3:"四月",m4:"五月",m5:"六月",m6:"七月",m7:"八月",m8:"九月",m9:"十月",m10:"十一月",m11:"十二月"},quarters:{q1:"第一季度",q2:"第二季度",q3:"第三季度",q4:"第四季度"}}}}}});
|
|
@@ -19,6 +19,9 @@
|
|
|
19
19
|
_exports.default = void 0;
|
|
20
20
|
var _default = {
|
|
21
21
|
vxe: {
|
|
22
|
+
loading: {
|
|
23
|
+
text: '加載中'
|
|
24
|
+
},
|
|
22
25
|
error: {
|
|
23
26
|
groupFixed: '如果使用分組表頭,固定列必須按組設定',
|
|
24
27
|
groupMouseRange: '分组表頭與 "{0}" 不能同時使用,這可能會出現錯誤',
|
|
@@ -165,6 +168,8 @@
|
|
|
165
168
|
operError: '發生錯誤,操作失敗!'
|
|
166
169
|
},
|
|
167
170
|
select: {
|
|
171
|
+
search: '蒐索',
|
|
172
|
+
loadingText: '加載中',
|
|
168
173
|
emptyText: '暫無資料'
|
|
169
174
|
},
|
|
170
175
|
pager: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"function"==typeof define&&define.amd?define("vxe-table-lang.zh-TW",["exports"],t):"undefined"!=typeof exports?t(exports):(t(t={}),e.vxeTableLangZhTW=t)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={vxe:{error:{groupFixed:"如果使用分組表頭,固定列必須按組設定",groupMouseRange:'分组表頭與 "{0}" 不能同時使用,這可能會出現錯誤',groupTag:'分組列頭應該使用 "{0}" 而不是 "{1}",這可能會出現錯誤',scrollErrProp:'啟用虛擬滾動後不支持該參數 "{0}"',scrollXNotGroup:'橫向虛擬滾動不支持分組表頭,需要設定 "scroll-x.enabled=false" 參數,否則可能會導致出現錯誤',errConflicts:'參數 "{0}" 與 "{1}" 有衝突',unableInsert:"無法插入到指定位置,請檢查參數是否正確",useErr:'安裝 "{0}" 模組時發生錯誤,可能順序不正確,依賴的模組需要在Table之前安裝',barUnableLink:"工具欄無法關聯表格",expandContent:"展開行的插槽應該是 “content”,請檢查是否正確",reqModule:'缺少 "{0}" 模組',reqProp:'缺少必要的 "{0}" 參數,可能會導致出現錯誤',emptyProp:'參數 "{0}" 不允許為空',errProp:'不支持的參數 "{0}",可能為 "{1}"',colRepet:'column.{0}="{1}" 重複了,這可能會導致某些功能無法使用',notFunc:'方法 "{0}" 不存在',notSlot:'插槽 "{0}" 不存在',noTree:"樹狀結構不支援 {0}",notProp:'不支持的參數 "{0}"',coverProp:'"{0}" 的參數 "{1}" 被覆蓋,這可能會出現錯誤',delFunc:'方法 "{0}" 已停用,請使用 "{1}"',delProp:'參數 "{0}" 已停用,請使用 "{1}"',delEvent:'事件 "{0}" 已停用,請使用 "{1}"',removeProp:'參數 "{0}" 已停用,不建議使用,這可能會導致出現錯誤',errFormat:'全域的格式化內容應該使用 "VXETable.formats" 定義,掛載 "formatter={0}" 的管道已不建議使用',notType:'不支持的檔案類型 "{0}"',notExp:"該瀏覽器不支持導入/匯出功能",impFields:"導入失敗,請檢查欄位名和數據格式是否正確",treeNotImp:"樹狀表格不支持導入"},renderer:{search:"蒐索",cases:{equal:"等於",unequal:"不等於",gt:"大於",ge:"大於或等於",lt:"小於",le:"小於或等於",begin:"開頭是",notbegin:"開頭不是",endin:"結尾是",notendin:"結尾不是",include:"包含",exclude:"不包含",between:"介於",custom:"自定義篩選",insensitive:"不區分大小寫",isSensitive:"區分大小寫"},combination:{menus:{sortAsc:"昇冪",sortDesc:"降序",fixedColumn:"鎖定列",fixedGroup:"鎖定組",cancelFixed:"取消鎖定",fixedLeft:"鎖定左側",fixedRight:"鎖定右側",clearFilter:"清除篩選",textOption:"文字篩選",numberOption:"數值篩選"},popup:{title:"自定義篩選的管道",currColumnTitle:"當前列:",and:"與",or:"或",describeHtml:"用 ? 代表單個字元<br/>用 * 代表任意多個字元"},empty:"(空白)",notData:"無匹配項"}},pro:{area:{mergeErr:"無法對合併儲存格進行該操作",multiErr:"無法對多重選擇區域進行該操作",extendErr:"如果延伸的區域包含被合併的儲存格,所有合併的儲存格需大小相同",pasteMultiErr:"无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作"},fnr:{title:"查找和替換",findLabel:"查找",replaceLabel:"替換",findTitle:"查找內容:",replaceTitle:"替換為:",tabs:{find:"查找",replace:"替換"},filter:{re:"規則運算式",whole:"全詞匹配",sensitive:"區分大小寫"},btns:{findNext:"查找下一個",findAll:"查找全部",replace:"替换",replaceAll:"替换全部",cancel:"取消"},header:{seq:"#",cell:"儲存格",value:"值"},empty:"(空值)",reError:"無效的規則運算式",recordCount:"已找到 {0} 個儲存格",notCell:"找不到匹配的儲存格",replaceSuccess:"成功替換 {0} 個儲存格"}},table:{emptyText:"暫無資料",allTitle:"全選/取消",seqTitle:"#",confirmFilter:"篩選",resetFilter:"重置",allFilter:"全部",sortAsc:"按低到高排序",sortDesc:"按高到低排序",filter:"對所選的列啟用篩選",impSuccess:"成功導入 {0} 條記錄",expLoading:"正在匯出中",expSuccess:"匯出成功",expOriginFilename:"匯出_{0}",expSrcFilename:"匯出_從_{0}",customTitle:"列設定",customAll:"全部",customConfirm:"確認",customRestore:"還原"},grid:{selectOneRecord:"請至少選擇一條記錄!",deleteSelectRecord:"您確定要刪除所選記錄嗎?",removeSelectRecord:"您確定要移除所選記錄嗎?",dataUnchanged:"資料未更改! ",delSuccess:"成功删除所選記錄!",saveSuccess:"保存成功!",operError:"發生錯誤,操作失敗!"},select:{emptyText:"暫無資料"},pager:{goto:"前往",pagesize:"{0}項/頁",total:"共 {0} 項記錄",pageClassifier:"頁",prevPage:"上一頁",nextPage:"下一頁",prevJump:"向上跳頁",nextJump:"向下跳頁"},alert:{title:"訊息提示"},button:{confirm:"確認",cancel:"取消"},import:{modes:{covering:"覆盖",insert:"新增"},impTitle:"導入數據",impFile:"檔名",impSelect:"選擇檔案",impType:"檔案類型",impOpts:"參數設置",impConfirm:"導入",impCancel:"取消"},export:{types:{csv:"CSV (逗号分隔)(*.csv)",html:"網頁(*.html)",xml:"XML 文件(*.xml)",txt:"文本文件(制表符分隔)(*.txt)",xls:"Excel 97-2003 工作簿(*.xls)",xlsx:"Excel 工作簿(*.xlsx)",pdf:"PDF (*.pdf)"},modes:{current:"當前數據(當前頁的數據)",selected:"選中數據(當前頁選中的數據)",all:"全量數據(包括所有分頁的數據)"},printTitle:"列印數據",expTitle:"匯出數據",expName:"檔名",expNamePlaceholder:"請輸入檔名",expSheetName:"標題",expSheetNamePlaceholder:"請輸入標題",expType:"保存類型",expMode:"選擇數據",expCurrentColumn:"全部欄位",expColumn:"選擇欄位",expOpts:"參數設置",expOptHeader:"表頭",expHeaderTitle:"是否需要表頭",expOptFooter:"表尾",expFooterTitle:"是否需要表尾",expOptColgroup:"分组表头",expColgroupTitle:"如果存在,則支持帶有分組結構的表頭",expOptMerge:"合併",expMergeTitle:"如果存在,則支持帶有合併結構的儲存格",expOptAllExpand:"展開層級",expAllExpandTitle:"如果存在,則支持將帶有樹結構的數據全部展開",expOptUseStyle:"樣式",expUseStyleTitle:"如果存在,則支持帶樣式的儲存格",expOptOriginal:"源數據",expOriginalTitle:"如果為源數據,則支持導入到表格中",expPrint:"列印",expConfirm:"匯出",expCancel:"取消"},modal:{zoomIn:"最大化",zoomOut:"還原",close:"關閉"},form:{folding:"收起",unfolding:"展開"},toolbar:{import:"導入",export:"匯出",print:"列印",refresh:"刷新",zoomIn:"全螢幕",zoomOut:"還原",custom:"列設定",customAll:"全部",customConfirm:"確認",customRestore:"還原"},input:{date:{m1:"01 月",m2:"02 月",m3:"03 月",m4:"04 月",m5:"05 月",m6:"06 月",m7:"07 月",m8:"08 月",m9:"09 月",m10:"10 月",m11:"11 月",m12:"12 月",quarterLabel:"{0} 年",monthLabel:"{0} 年",dayLabel:"{0} 年 {1}",labelFormat:{date:"yyyy-MM-dd",time:"HH:mm:ss",datetime:"yyyy-MM-dd HH:mm:ss",week:"yyyy 年第 WW 周",month:"yyyy-MM",quarter:"yyyy 年第 q 季度",year:"yyyy"},weeks:{w:"周",w0:"周日",w1:"周一",w2:"周二",w3:"周三",w4:"周四",w5:"周五",w6:"周六"},months:{m0:"一月",m1:"二月",m2:"三月",m3:"四月",m4:"五月",m5:"六月",m6:"七月",m7:"八月",m8:"九月",m9:"十月",m10:"十一月",m11:"十二月"},quarters:{q1:"第一季度",q2:"第二季度",q3:"第三季度",q4:"第四季度"}}}}}});
|
|
1
|
+
!function(e,t){"function"==typeof define&&define.amd?define("vxe-table-lang.zh-TW",["exports"],t):"undefined"!=typeof exports?t(exports):(t(t={}),e.vxeTableLangZhTW=t)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={vxe:{loading:{text:"加載中"},error:{groupFixed:"如果使用分組表頭,固定列必須按組設定",groupMouseRange:'分组表頭與 "{0}" 不能同時使用,這可能會出現錯誤',groupTag:'分組列頭應該使用 "{0}" 而不是 "{1}",這可能會出現錯誤',scrollErrProp:'啟用虛擬滾動後不支持該參數 "{0}"',scrollXNotGroup:'橫向虛擬滾動不支持分組表頭,需要設定 "scroll-x.enabled=false" 參數,否則可能會導致出現錯誤',errConflicts:'參數 "{0}" 與 "{1}" 有衝突',unableInsert:"無法插入到指定位置,請檢查參數是否正確",useErr:'安裝 "{0}" 模組時發生錯誤,可能順序不正確,依賴的模組需要在Table之前安裝',barUnableLink:"工具欄無法關聯表格",expandContent:"展開行的插槽應該是 “content”,請檢查是否正確",reqModule:'缺少 "{0}" 模組',reqProp:'缺少必要的 "{0}" 參數,可能會導致出現錯誤',emptyProp:'參數 "{0}" 不允許為空',errProp:'不支持的參數 "{0}",可能為 "{1}"',colRepet:'column.{0}="{1}" 重複了,這可能會導致某些功能無法使用',notFunc:'方法 "{0}" 不存在',notSlot:'插槽 "{0}" 不存在',noTree:"樹狀結構不支援 {0}",notProp:'不支持的參數 "{0}"',coverProp:'"{0}" 的參數 "{1}" 被覆蓋,這可能會出現錯誤',delFunc:'方法 "{0}" 已停用,請使用 "{1}"',delProp:'參數 "{0}" 已停用,請使用 "{1}"',delEvent:'事件 "{0}" 已停用,請使用 "{1}"',removeProp:'參數 "{0}" 已停用,不建議使用,這可能會導致出現錯誤',errFormat:'全域的格式化內容應該使用 "VXETable.formats" 定義,掛載 "formatter={0}" 的管道已不建議使用',notType:'不支持的檔案類型 "{0}"',notExp:"該瀏覽器不支持導入/匯出功能",impFields:"導入失敗,請檢查欄位名和數據格式是否正確",treeNotImp:"樹狀表格不支持導入"},renderer:{search:"蒐索",cases:{equal:"等於",unequal:"不等於",gt:"大於",ge:"大於或等於",lt:"小於",le:"小於或等於",begin:"開頭是",notbegin:"開頭不是",endin:"結尾是",notendin:"結尾不是",include:"包含",exclude:"不包含",between:"介於",custom:"自定義篩選",insensitive:"不區分大小寫",isSensitive:"區分大小寫"},combination:{menus:{sortAsc:"昇冪",sortDesc:"降序",fixedColumn:"鎖定列",fixedGroup:"鎖定組",cancelFixed:"取消鎖定",fixedLeft:"鎖定左側",fixedRight:"鎖定右側",clearFilter:"清除篩選",textOption:"文字篩選",numberOption:"數值篩選"},popup:{title:"自定義篩選的管道",currColumnTitle:"當前列:",and:"與",or:"或",describeHtml:"用 ? 代表單個字元<br/>用 * 代表任意多個字元"},empty:"(空白)",notData:"無匹配項"}},pro:{area:{mergeErr:"無法對合併儲存格進行該操作",multiErr:"無法對多重選擇區域進行該操作",extendErr:"如果延伸的區域包含被合併的儲存格,所有合併的儲存格需大小相同",pasteMultiErr:"无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作"},fnr:{title:"查找和替換",findLabel:"查找",replaceLabel:"替換",findTitle:"查找內容:",replaceTitle:"替換為:",tabs:{find:"查找",replace:"替換"},filter:{re:"規則運算式",whole:"全詞匹配",sensitive:"區分大小寫"},btns:{findNext:"查找下一個",findAll:"查找全部",replace:"替换",replaceAll:"替换全部",cancel:"取消"},header:{seq:"#",cell:"儲存格",value:"值"},empty:"(空值)",reError:"無效的規則運算式",recordCount:"已找到 {0} 個儲存格",notCell:"找不到匹配的儲存格",replaceSuccess:"成功替換 {0} 個儲存格"}},table:{emptyText:"暫無資料",allTitle:"全選/取消",seqTitle:"#",confirmFilter:"篩選",resetFilter:"重置",allFilter:"全部",sortAsc:"按低到高排序",sortDesc:"按高到低排序",filter:"對所選的列啟用篩選",impSuccess:"成功導入 {0} 條記錄",expLoading:"正在匯出中",expSuccess:"匯出成功",expOriginFilename:"匯出_{0}",expSrcFilename:"匯出_從_{0}",customTitle:"列設定",customAll:"全部",customConfirm:"確認",customRestore:"還原"},grid:{selectOneRecord:"請至少選擇一條記錄!",deleteSelectRecord:"您確定要刪除所選記錄嗎?",removeSelectRecord:"您確定要移除所選記錄嗎?",dataUnchanged:"資料未更改! ",delSuccess:"成功删除所選記錄!",saveSuccess:"保存成功!",operError:"發生錯誤,操作失敗!"},select:{search:"蒐索",loadingText:"加載中",emptyText:"暫無資料"},pager:{goto:"前往",pagesize:"{0}項/頁",total:"共 {0} 項記錄",pageClassifier:"頁",prevPage:"上一頁",nextPage:"下一頁",prevJump:"向上跳頁",nextJump:"向下跳頁"},alert:{title:"訊息提示"},button:{confirm:"確認",cancel:"取消"},import:{modes:{covering:"覆盖",insert:"新增"},impTitle:"導入數據",impFile:"檔名",impSelect:"選擇檔案",impType:"檔案類型",impOpts:"參數設置",impConfirm:"導入",impCancel:"取消"},export:{types:{csv:"CSV (逗号分隔)(*.csv)",html:"網頁(*.html)",xml:"XML 文件(*.xml)",txt:"文本文件(制表符分隔)(*.txt)",xls:"Excel 97-2003 工作簿(*.xls)",xlsx:"Excel 工作簿(*.xlsx)",pdf:"PDF (*.pdf)"},modes:{current:"當前數據(當前頁的數據)",selected:"選中數據(當前頁選中的數據)",all:"全量數據(包括所有分頁的數據)"},printTitle:"列印數據",expTitle:"匯出數據",expName:"檔名",expNamePlaceholder:"請輸入檔名",expSheetName:"標題",expSheetNamePlaceholder:"請輸入標題",expType:"保存類型",expMode:"選擇數據",expCurrentColumn:"全部欄位",expColumn:"選擇欄位",expOpts:"參數設置",expOptHeader:"表頭",expHeaderTitle:"是否需要表頭",expOptFooter:"表尾",expFooterTitle:"是否需要表尾",expOptColgroup:"分组表头",expColgroupTitle:"如果存在,則支持帶有分組結構的表頭",expOptMerge:"合併",expMergeTitle:"如果存在,則支持帶有合併結構的儲存格",expOptAllExpand:"展開層級",expAllExpandTitle:"如果存在,則支持將帶有樹結構的數據全部展開",expOptUseStyle:"樣式",expUseStyleTitle:"如果存在,則支持帶樣式的儲存格",expOptOriginal:"源數據",expOriginalTitle:"如果為源數據,則支持導入到表格中",expPrint:"列印",expConfirm:"匯出",expCancel:"取消"},modal:{zoomIn:"最大化",zoomOut:"還原",close:"關閉"},form:{folding:"收起",unfolding:"展開"},toolbar:{import:"導入",export:"匯出",print:"列印",refresh:"刷新",zoomIn:"全螢幕",zoomOut:"還原",custom:"列設定",customAll:"全部",customConfirm:"確認",customRestore:"還原"},input:{date:{m1:"01 月",m2:"02 月",m3:"03 月",m4:"04 月",m5:"05 月",m6:"06 月",m7:"07 月",m8:"08 月",m9:"09 月",m10:"10 月",m11:"11 月",m12:"12 月",quarterLabel:"{0} 年",monthLabel:"{0} 年",dayLabel:"{0} 年 {1}",labelFormat:{date:"yyyy-MM-dd",time:"HH:mm:ss",datetime:"yyyy-MM-dd HH:mm:ss",week:"yyyy 年第 WW 周",month:"yyyy-MM",quarter:"yyyy 年第 q 季度",year:"yyyy"},weeks:{w:"周",w0:"周日",w1:"周一",w2:"周二",w3:"周三",w4:"周四",w5:"周五",w6:"周六"},months:{m0:"一月",m1:"二月",m2:"三月",m3:"四月",m4:"五月",m5:"六月",m6:"七月",m7:"八月",m8:"九月",m9:"十月",m10:"十一月",m11:"十二月"},quarters:{q1:"第一季度",q2:"第二季度",q3:"第三季度",q4:"第四季度"}}}}}});
|
|
@@ -19,6 +19,9 @@
|
|
|
19
19
|
_exports.default = void 0;
|
|
20
20
|
var _default = {
|
|
21
21
|
vxe: {
|
|
22
|
+
loading: {
|
|
23
|
+
text: '加載中'
|
|
24
|
+
},
|
|
22
25
|
error: {
|
|
23
26
|
groupFixed: '如果使用分組表頭,固定列必須按組設定',
|
|
24
27
|
groupMouseRange: '分组表頭與 "{0}" 不能同時使用,這可能會出現錯誤',
|
|
@@ -165,6 +168,8 @@
|
|
|
165
168
|
operError: '發生錯誤,操作失敗!'
|
|
166
169
|
},
|
|
167
170
|
select: {
|
|
171
|
+
search: '蒐索',
|
|
172
|
+
loadingText: '加載中',
|
|
168
173
|
emptyText: '暫無資料'
|
|
169
174
|
},
|
|
170
175
|
pager: {
|
package/lib/modal/src/modal.js
CHANGED
|
@@ -21,6 +21,8 @@ var _event = require("../../tools/event");
|
|
|
21
21
|
|
|
22
22
|
var _log = require("../../tools/log");
|
|
23
23
|
|
|
24
|
+
var _index = _interopRequireDefault(require("../../loading/index"));
|
|
25
|
+
|
|
24
26
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
25
27
|
|
|
26
28
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -243,7 +245,7 @@ var _default2 = {
|
|
|
243
245
|
modalTop: 0,
|
|
244
246
|
modalZindex: 0,
|
|
245
247
|
zoomLocat: null,
|
|
246
|
-
firstOpen:
|
|
248
|
+
firstOpen: true
|
|
247
249
|
};
|
|
248
250
|
},
|
|
249
251
|
computed: {
|
|
@@ -374,7 +376,7 @@ var _default2 = {
|
|
|
374
376
|
ref: 'modalBox'
|
|
375
377
|
}, [this.showHeader ? h('div', {
|
|
376
378
|
class: ['vxe-modal--header', {
|
|
377
|
-
'is--
|
|
379
|
+
'is--draggable': draggable,
|
|
378
380
|
'is--ellipsis': !isMsg && showTitleOverflow
|
|
379
381
|
}],
|
|
380
382
|
on: headerOns
|
|
@@ -410,13 +412,16 @@ var _default2 = {
|
|
|
410
412
|
class: 'vxe-modal--content'
|
|
411
413
|
}, defaultSlot ? !inited || destroyOnClose && !visible ? [] : defaultSlot.call(this, {
|
|
412
414
|
$modal: this
|
|
413
|
-
}, h) : (0, _utils.getFuncText)(content)),
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
class: 'vxe-loading
|
|
419
|
-
|
|
415
|
+
}, h) : (0, _utils.getFuncText)(content)),
|
|
416
|
+
/**
|
|
417
|
+
* 加载中
|
|
418
|
+
*/
|
|
419
|
+
!isMsg ? h(_index.default, {
|
|
420
|
+
class: 'vxe-modal--loading',
|
|
421
|
+
props: {
|
|
422
|
+
loading: loading
|
|
423
|
+
}
|
|
424
|
+
}) : null]), showFooter ? h('div', {
|
|
420
425
|
class: 'vxe-modal--footer'
|
|
421
426
|
}, footerSlot ? !inited || destroyOnClose && !visible ? [] : footerSlot.call(this, {
|
|
422
427
|
$modal: this
|
|
@@ -597,7 +602,7 @@ var _default2 = {
|
|
|
597
602
|
var firstOpen = _this2.firstOpen,
|
|
598
603
|
fullscreen = _this2.fullscreen;
|
|
599
604
|
|
|
600
|
-
if (!remember ||
|
|
605
|
+
if (!remember || firstOpen) {
|
|
601
606
|
_this2.updatePosition().then(function () {
|
|
602
607
|
setTimeout(function () {
|
|
603
608
|
return _this2.updatePosition();
|
|
@@ -605,8 +610,8 @@ var _default2 = {
|
|
|
605
610
|
});
|
|
606
611
|
}
|
|
607
612
|
|
|
608
|
-
if (
|
|
609
|
-
_this2.firstOpen =
|
|
613
|
+
if (firstOpen) {
|
|
614
|
+
_this2.firstOpen = false;
|
|
610
615
|
|
|
611
616
|
if (_this2.hasPosStorage()) {
|
|
612
617
|
_this2.restorePosStorage();
|
|
@@ -615,6 +620,12 @@ var _default2 = {
|
|
|
615
620
|
return _this2.maximize();
|
|
616
621
|
});
|
|
617
622
|
}
|
|
623
|
+
} else {
|
|
624
|
+
if (fullscreen) {
|
|
625
|
+
_this2.$nextTick(function () {
|
|
626
|
+
return _this2.maximize();
|
|
627
|
+
});
|
|
628
|
+
}
|
|
618
629
|
}
|
|
619
630
|
});
|
|
620
631
|
}
|
|
@@ -930,6 +941,7 @@ var _default2 = {
|
|
|
930
941
|
|
|
931
942
|
modalBoxElem.style.left = "".concat(left, "px");
|
|
932
943
|
modalBoxElem.style.top = "".concat(top, "px");
|
|
944
|
+
modalBoxElem.className = modalBoxElem.className.replace(/\s?is--drag/, '') + ' is--drag';
|
|
933
945
|
};
|
|
934
946
|
|
|
935
947
|
document.onmouseup = function () {
|
|
@@ -941,6 +953,10 @@ var _default2 = {
|
|
|
941
953
|
_this11.savePosStorage();
|
|
942
954
|
});
|
|
943
955
|
}
|
|
956
|
+
|
|
957
|
+
setTimeout(function () {
|
|
958
|
+
modalBoxElem.className = modalBoxElem.className.replace(/\s?is--drag/, '');
|
|
959
|
+
}, 50);
|
|
944
960
|
};
|
|
945
961
|
}
|
|
946
962
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.msgQueue=exports.default=exports.allActivedModals=void 0;var _conf=_interopRequireDefault(require("../../v-x-e-table/src/conf")),_size=_interopRequireDefault(require("../../mixins/size")),_xeUtils=_interopRequireDefault(require("xe-utils")),_utils=_interopRequireWildcard(require("../../tools/utils")),_dom=_interopRequireDefault(require("../../tools/dom")),_event=require("../../tools/event"),_log=require("../../tools/log");function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,o=new WeakMap;return(_getRequireWildcardCache=function(t){return t?o:e})(t)}function _interopRequireWildcard(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==_typeof(t)&&"function"!=typeof t)return{default:t};e=_getRequireWildcardCache(e);if(e&&e.has(t))return e.get(t);var o,i,n={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(o in t)"default"!==o&&Object.prototype.hasOwnProperty.call(t,o)&&((i=s?Object.getOwnPropertyDescriptor(t,o):null)&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=t[o]);return n.default=t,e&&e.set(t,n),n}function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(o="Object"===o&&t.constructor?t.constructor.name:o)||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,i=new Array(e);o<e;o++)i[o]=t[o];return i}function _iterableToArrayLimit(t,e){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var i,n,s=[],l=!0,a=!1;try{for(o=o.call(t);!(l=(i=o.next()).done)&&(s.push(i.value),!e||s.length!==e);l=!0);}catch(t){a=!0,n=t}finally{try{l||null==o.return||o.return()}finally{if(a)throw n}}return s}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _defineProperty(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}var allActivedModals=[];exports.allActivedModals=allActivedModals;var msgQueue=[];exports.msgQueue=msgQueue;var _default2={name:"VxeModal",mixins:[_size.default],props:{value:Boolean,id:String,type:{type:String,default:"modal"},loading:{type:Boolean,default:null},status:String,iconStatus:String,className:String,top:{type:[Number,String],default:function(){return _conf.default.modal.top}},position:[String,Object],title:String,duration:{type:[Number,String],default:function(){return _conf.default.modal.duration}},message:[String,Function],content:[String,Function],cancelButtonText:{type:String,default:function(){return _conf.default.modal.cancelButtonText}},confirmButtonText:{type:String,default:function(){return _conf.default.modal.confirmButtonText}},lockView:{type:Boolean,default:function(){return _conf.default.modal.lockView}},lockScroll:Boolean,mask:{type:Boolean,default:function(){return _conf.default.modal.mask}},maskClosable:{type:Boolean,default:function(){return _conf.default.modal.maskClosable}},escClosable:{type:Boolean,default:function(){return _conf.default.modal.escClosable}},resize:{type:Boolean,default:function(){return _conf.default.modal.resize}},showHeader:{type:Boolean,default:function(){return _conf.default.modal.showHeader}},showFooter:{type:Boolean,default:function(){return _conf.default.modal.showFooter}},showZoom:{type:Boolean,default:null},showClose:{type:Boolean,default:function(){return _conf.default.modal.showClose}},dblclickZoom:{type:Boolean,default:function(){return _conf.default.modal.dblclickZoom}},width:[Number,String],height:[Number,String],minWidth:{type:[Number,String],default:function(){return _conf.default.modal.minWidth}},minHeight:{type:[Number,String],default:function(){return _conf.default.modal.minHeight}},zIndex:Number,marginSize:{type:[Number,String],default:function(){return _conf.default.modal.marginSize}},fullscreen:Boolean,draggable:{type:Boolean,default:function(){return _conf.default.modal.draggable}},remember:{type:Boolean,default:function(){return _conf.default.modal.remember}},destroyOnClose:{type:Boolean,default:function(){return _conf.default.modal.destroyOnClose}},showTitleOverflow:{type:Boolean,default:function(){return _conf.default.modal.showTitleOverflow}},transfer:{type:Boolean,default:function(){return _conf.default.modal.transfer}},storage:{type:Boolean,default:function(){return _conf.default.modal.storage}},storageKey:{type:String,default:function(){return _conf.default.modal.storageKey}},animat:{type:Boolean,default:function(){return _conf.default.modal.animat}},size:{type:String,default:function(){return _conf.default.modal.size||_conf.default.size}},beforeHideMethod:{type:Function,default:function(){return _conf.default.modal.beforeHideMethod}},slots:Object,events:Object},data:function(){return{inited:!1,visible:!1,contentVisible:!1,modalTop:0,modalZindex:0,zoomLocat:null,firstOpen:!1}},computed:{isMsg:function(){return"message"===this.type}},watch:{width:function(){this.recalculate()},height:function(){this.recalculate()},value:function(t){this[t?"open":"close"]("model")}},created:function(){this.storage&&!this.id&&(0,_log.errLog)("vxe.error.reqProp",["modal.id"])},mounted:function(){var t=this.$listeners,e=this.events,o=void 0===e?{}:e;this.value&&this.open(),this.recalculate(),this.escClosable&&_event.GlobalEvent.on(this,"keydown",this.handleGlobalKeydownEvent);e="inserted",e={type:e,$modal:this,$event:{type:e}};t.inserted?this.$emit("inserted",e):o.inserted&&o.inserted.call(this,e)},beforeDestroy:function(){var t=this.$el;_event.GlobalEvent.off(this,"keydown"),this.removeMsgQueue(),t.parentNode===document.body&&t.parentNode.removeChild(t)},render:function(e){var o=this,t=this._e,i=this.$scopedSlots,n=this.slots,s=void 0===n?{}:n,l=this.inited,a=this.vSize,r=this.className,c=this.type,u=this.resize,d=this.showClose,f=this.showZoom,h=this.animat,m=this.draggable,p=this.loading,v=this.status,g=this.iconStatus,y=this.showFooter,x=this.zoomLocat,b=this.modalTop,_=this.dblclickZoom,w=this.contentVisible,S=this.visible,z=this.title,k=this.lockScroll,$=this.lockView,M=this.mask,T=this.isMsg,B=this.showTitleOverflow,O=this.destroyOnClose,N=this.content||this.message,P=i.default||s.default,L=i.footer||s.footer,n=i.header||s.header,i=i.title||s.title,s={};return m&&(s.mousedown=this.mousedownEvent),f&&_&&"modal"===c&&(s.dblclick=this.toggleZoomEvent),e("div",{class:["vxe-modal--wrapper","type--".concat(c),r||"",(_defineProperty(r={},"size--".concat(a),a),_defineProperty(r,"status--".concat(v),v),_defineProperty(r,"is--animat",h),_defineProperty(r,"lock--scroll",k),_defineProperty(r,"lock--view",$),_defineProperty(r,"is--resize",u),_defineProperty(r,"is--mask",M),_defineProperty(r,"is--maximize",x),_defineProperty(r,"is--visible",w),_defineProperty(r,"is--active",S),_defineProperty(r,"is--loading",p),r)],style:{zIndex:this.modalZindex,top:b?"".concat(b,"px"):null},on:{click:this.selfClickEvent}},[e("div",{class:"vxe-modal--box",on:{mousedown:this.boxMousedownEvent},ref:"modalBox"},[this.showHeader?e("div",{class:["vxe-modal--header",{"is--drag":m,"is--ellipsis":!T&&B}],on:s},n?!l||O&&!S?[]:n.call(this,{$modal:this},e):[i?i.call(this,{$modal:this},e):e("span",{class:"vxe-modal--title"},z?(0,_utils.getFuncText)(z):_conf.default.i18n("vxe.alert.title")),f?e("i",{class:["vxe-modal--zoom-btn","trigger--btn",x?_conf.default.icon.MODAL_ZOOM_OUT:_conf.default.icon.MODAL_ZOOM_IN],attrs:{title:_conf.default.i18n("vxe.modal.zoom".concat(x?"Out":"In"))},on:{click:this.toggleZoomEvent}}):t(),d?e("i",{class:["vxe-modal--close-btn","trigger--btn",_conf.default.icon.MODAL_CLOSE],attrs:{title:_conf.default.i18n("vxe.modal.close")},on:{click:this.closeEvent}}):t()]):null,e("div",{class:"vxe-modal--body"},[v?e("div",{class:"vxe-modal--status-wrapper"},[e("i",{class:["vxe-modal--status-icon",g||_conf.default.icon["MODAL_".concat(v).toLocaleUpperCase()]]})]):null,e("div",{class:"vxe-modal--content"},P?!l||O&&!S?[]:P.call(this,{$modal:this},e):(0,_utils.getFuncText)(N)),T?null:e("div",{class:["vxe-loading",{"is--visible":p}]},[e("div",{class:"vxe-loading--spinner"})])]),y?e("div",{class:"vxe-modal--footer"},L?!l||O&&!S?[]:L.call(this,{$modal:this},e):["confirm"===c?e("vxe-button",{ref:"cancelBtn",on:{click:this.cancelEvent}},this.cancelButtonText||_conf.default.i18n("vxe.button.cancel")):null,e("vxe-button",{ref:"confirmBtn",props:{status:"primary"},on:{click:this.confirmEvent}},this.confirmButtonText||_conf.default.i18n("vxe.button.confirm"))]):null,!T&&u?e("span",{class:"vxe-modal--resize"},["wl","wr","swst","sest","st","swlb","selb","sb"].map(function(t){return e("span",{class:"".concat(t,"-resize"),attrs:{type:t},on:{mousedown:o.dragEvent}})})):null])])},methods:{recalculate:function(){var t=this.width,e=this.height,o=this.getBox();return o.style.width=t?isNaN(t)?t:"".concat(t,"px"):null,o.style.height=e?isNaN(e)?e:"".concat(e,"px"):null,this.$nextTick()},selfClickEvent:function(t){this.maskClosable&&t.target===this.$el&&this.close("mask")},updateZindex:function(){var t=this.zIndex,e=this.modalZindex;t?this.modalZindex=t:e<_utils.default.getLastZIndex()&&(this.modalZindex=_utils.default.nextZIndex())},closeEvent:function(t){var e=this.events,o=void 0===e?{}:e,e="close",t={type:e,$modal:this,$event:t};o[e]?o[e].call(this,t):this.$emit(e,t),this.close(e)},confirmEvent:function(t){var e=this.events,o=void 0===e?{}:e,e="confirm",t={type:e,$modal:this,$event:t};o[e]?o[e].call(this,t):this.$emit(e,t),this.close(e)},cancelEvent:function(t){var e=this.events,o=void 0===e?{}:e,e="cancel",t={type:e,$modal:this,$event:t};o[e]?o[e].call(this,t):this.$emit(e,t),this.close(e)},open:function(){var o=this,e=this.$refs,t=this.events,i=void 0===t?{}:t,n=this.inited,s=this.duration,l=this.visible,t=this.isMsg,a=this.remember,r=this.showFooter;n||(this.inited=!0,this.transfer&&document.body.appendChild(this.$el)),l||(a||this.recalculate(),this.visible=!0,this.contentVisible=!1,this.updateZindex(),allActivedModals.push(this),setTimeout(function(){o.contentVisible=!0,o.$nextTick(function(){!r||(t=e.confirmBtn||e.cancelBtn)&&t.focus();var t={type:"",$modal:o};i.show?i.show.call(o,t):(o.$emit("input",!0),o.$emit("show",t))})},10),t?(this.addMsgQueue(),-1!==s&&setTimeout(function(){return o.close("close")},_xeUtils.default.toNumber(s))):this.$nextTick(function(){var t=o.firstOpen,e=o.fullscreen;a&&t||o.updatePosition().then(function(){setTimeout(function(){return o.updatePosition()},20)}),t||(o.firstOpen=!0,o.hasPosStorage()?o.restorePosStorage():e&&o.$nextTick(function(){return o.maximize()}))}))},addMsgQueue:function(){-1===msgQueue.indexOf(this)&&msgQueue.push(this),this.updateStyle()},removeMsgQueue:function(){var e=this;-1<msgQueue.indexOf(this)&&_xeUtils.default.remove(msgQueue,function(t){return t===e}),this.updateStyle()},updateStyle:function(){this.$nextTick(function(){var e=0;msgQueue.forEach(function(t){e+=_xeUtils.default.toNumber(t.top),t.modalTop=e,e+=t.$refs.modalBox.clientHeight})})},updatePosition:function(){var u=this;return this.$nextTick().then(function(){var t=u.marginSize,e=u.position,o=u.getBox(),i=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,s="center"===e,l=s?{top:e,left:e}:Object.assign({},e),a=l.top,r=l.left,c=s||"center"===a,e="",l="",l=r&&!(s||"center"===r)?isNaN(r)?r:"".concat(r,"px"):"".concat(Math.max(t,i/2-o.offsetWidth/2),"px"),e=a&&!c?isNaN(a)?a:"".concat(a,"px"):"".concat(Math.max(t,n/2-o.offsetHeight/2),"px");o.style.top=e,o.style.left=l})},close:function(t){var e=this,o=this.events,i=void 0===o?{}:o,n=this.remember,s=this.visible,l=this.isMsg,o=this.beforeHideMethod,a={type:t,$modal:this};s&&Promise.resolve(o?o(a):null).then(function(t){_xeUtils.default.isError(t)||(l&&e.removeMsgQueue(),e.contentVisible=!1,n||(e.zoomLocat=null),_xeUtils.default.remove(allActivedModals,function(t){return t===e}),e.$emit("before-hide",a),setTimeout(function(){e.visible=!1,i.hide?i.hide.call(e,a):(e.$emit("input",!1),e.$emit("hide",a))},200))}).catch(function(t){return t})},handleGlobalKeydownEvent:function(t){var e,o=this;27===t.keyCode&&((e=_xeUtils.default.max(allActivedModals,function(t){return t.modalZindex}))&&setTimeout(function(){e===o&&e.escClosable&&o.close("exit")},10))},getBox:function(){return this.$refs.modalBox},isMaximized:function(){return!!this.zoomLocat},maximize:function(){var n=this;return this.$nextTick().then(function(){var t,e,o,i;n.zoomLocat||(t=Math.max(0,n.marginSize),e=n.getBox(),o=(i=_dom.default.getDomNode()).visibleHeight,i=i.visibleWidth,n.zoomLocat={top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth+(e.style.width?0:1),height:e.offsetHeight+(e.style.height?0:1)},Object.assign(e.style,{top:"".concat(t,"px"),left:"".concat(t,"px"),width:"".concat(i-2*t,"px"),height:"".concat(o-2*t,"px")}),n.savePosStorage())})},revert:function(){var o=this;return this.$nextTick().then(function(){var t,e=o.zoomLocat;e&&(t=o.getBox(),o.zoomLocat=null,Object.assign(t.style,{top:"".concat(e.top,"px"),left:"".concat(e.left,"px"),width:"".concat(e.width,"px"),height:"".concat(e.height,"px")}),o.savePosStorage())})},zoom:function(){var t=this;return this[this.zoomLocat?"revert":"maximize"]().then(function(){return t.isMaximized()})},toggleZoomEvent:function(t){var e=this,o=this.$listeners,i=this.zoomLocat,n=this.events,s=void 0===n?{}:n,l={type:i?"revert":"max",$modal:this,$event:t};return this.zoom().then(function(){o.zoom?e.$emit("zoom",l):s.zoom&&s.zoom.call(e,l)})},getPosition:function(){if(!this.isMsg){var t=this.getBox();if(t)return{top:t.offsetTop,left:t.offsetLeft}}return null},setPosition:function(t,e){var o;return this.isMsg||(o=this.getBox(),_xeUtils.default.isNumber(t)&&(o.style.top="".concat(t,"px")),_xeUtils.default.isNumber(e)&&(o.style.left="".concat(e,"px"))),this.$nextTick()},boxMousedownEvent:function(){var e=this.modalZindex;allActivedModals.some(function(t){return t.visible&&t.modalZindex>e})&&this.updateZindex()},mousedownEvent:function(t){var e,o,n,s,l,a,i=this,r=this.remember,c=this.storage,u=this.marginSize,d=this.zoomLocat,f=this.getBox();d||0!==t.button||_dom.default.getEventTargetNode(t,f,"trigger--btn").flag||(t.preventDefault(),e=document.onmousemove,o=document.onmouseup,n=t.clientX-f.offsetLeft,s=t.clientY-f.offsetTop,t=_dom.default.getDomNode(),l=t.visibleHeight,a=t.visibleWidth,document.onmousemove=function(t){t.preventDefault();var e=f.offsetWidth,o=f.offsetHeight,i=a-e-u-1,e=l-o-u-1,o=t.clientX-n,t=t.clientY-s;(t=e<t?e:t)<u&&(t=u),f.style.left="".concat(o=(o=i<o?i:o)<u?u:o,"px"),f.style.top="".concat(t,"px")},document.onmouseup=function(){document.onmousemove=e,document.onmouseup=o,r&&c&&i.$nextTick(function(){i.savePosStorage()})})},dragEvent:function(t){var s=this;t.preventDefault();var l=this.$listeners,a=this.marginSize,e=this.events,r=void 0===e?{}:e,c=this.remember,u=this.storage,e=_dom.default.getDomNode(),d=e.visibleHeight,f=e.visibleWidth,h=t.target.getAttribute("type"),m=_xeUtils.default.toNumber(this.minWidth),p=_xeUtils.default.toNumber(this.minHeight),v=f,g=d,y=this.getBox(),o=document.onmousemove,i=document.onmouseup,x=y.clientWidth,b=y.clientHeight,_=t.clientX,w=t.clientY,S=y.offsetTop,z=y.offsetLeft,k={type:"resize",$modal:this};document.onmousemove=function(t){var e,o,i,n;switch(t.preventDefault(),h){case"wl":i=(e=_-t.clientX)+x,a<z-e&&m<i&&(y.style.width="".concat(i<v?i:v,"px"),y.style.left="".concat(z-e,"px"));break;case"swst":e=_-t.clientX,o=w-t.clientY,i=e+x,n=o+b,a<z-e&&m<i&&(y.style.width="".concat(i<v?i:v,"px"),y.style.left="".concat(z-e,"px")),a<S-o&&p<n&&(y.style.height="".concat(n<g?n:g,"px"),y.style.top="".concat(S-o,"px"));break;case"swlb":e=_-t.clientX,o=t.clientY-w,i=e+x,n=o+b,a<z-e&&m<i&&(y.style.width="".concat(i<v?i:v,"px"),y.style.left="".concat(z-e,"px")),S+n+a<d&&p<n&&(y.style.height="".concat(n<g?n:g,"px"));break;case"st":o=w-t.clientY,n=b+o,a<S-o&&p<n&&(y.style.height="".concat(n<g?n:g,"px"),y.style.top="".concat(S-o,"px"));break;case"wr":e=t.clientX-_,z+(i=e+x)+a<f&&m<i&&(y.style.width="".concat(i<v?i:v,"px"));break;case"sest":e=t.clientX-_,n=(o=w-t.clientY)+b,z+(i=e+x)+a<f&&m<i&&(y.style.width="".concat(i<v?i:v,"px")),a<S-o&&p<n&&(y.style.height="".concat(n<g?n:g,"px"),y.style.top="".concat(S-o,"px"));break;case"selb":e=t.clientX-_,n=(o=t.clientY-w)+b,z+(i=e+x)+a<f&&m<i&&(y.style.width="".concat(i<v?i:v,"px")),S+n+a<d&&p<n&&(y.style.height="".concat(n<g?n:g,"px"));break;case"sb":o=t.clientY-w,S+(n=o+b)+a<d&&p<n&&(y.style.height="".concat(n<g?n:g,"px"))}y.className=y.className.replace(/\s?is--drag/,"")+" is--drag",c&&u&&s.savePosStorage(),l.zoom?s.$emit("zoom",k):r.zoom&&r.zoom.call(s,k)},document.onmouseup=function(){s.zoomLocat=null,document.onmousemove=o,document.onmouseup=i,setTimeout(function(){y.className=y.className.replace(/\s?is--drag/,"")},50)}},getStorageMap:function(t){var e=_conf.default.version,t=_xeUtils.default.toStringJSON(localStorage.getItem(t));return t&&t._v===e?t:{_v:e}},hasPosStorage:function(){var t=this.id,e=this.remember,o=this.storage,i=this.storageKey;return!!(e&&o&&this.getStorageMap(i)[t])},restorePosStorage:function(){var t,e,o,i,n,s=this.id,l=this.remember,a=this.storage,r=this.storageKey;l&&a&&((i=this.getStorageMap(r)[s])&&(t=this.getBox(),e=(n=_slicedToArray(i.split(","),8))[0],o=n[1],l=n[2],a=n[3],r=n[4],s=n[5],i=n[6],n=n[7],e&&(t.style.left="".concat(e,"px")),o&&(t.style.top="".concat(o,"px")),l&&(t.style.width="".concat(l,"px")),a&&(t.style.height="".concat(a,"px")),r&&s&&(this.zoomLocat={left:r,top:s,width:i,height:n})))},savePosStorage:function(){var t=this.id,e=this.remember,o=this.storage,i=this.storageKey,n=this.zoomLocat;e&&o&&(e=this.getBox(),(o=this.getStorageMap(i))[t]=[e.style.left,e.style.top,e.style.width,e.style.height].concat(n?[n.left,n.top,n.width,n.height]:[]).map(function(t){return t?_xeUtils.default.toNumber(t):""}).join(","),localStorage.setItem(i,_xeUtils.default.toJSONString(o)))}}};exports.default=_default2;
|
|
1
|
+
"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.msgQueue=exports.default=exports.allActivedModals=void 0;var _conf=_interopRequireDefault(require("../../v-x-e-table/src/conf")),_size=_interopRequireDefault(require("../../mixins/size")),_xeUtils=_interopRequireDefault(require("xe-utils")),_utils=_interopRequireWildcard(require("../../tools/utils")),_dom=_interopRequireDefault(require("../../tools/dom")),_event=require("../../tools/event"),_log=require("../../tools/log"),_index=_interopRequireDefault(require("../../loading/index"));function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,o=new WeakMap;return(_getRequireWildcardCache=function(t){return t?o:e})(t)}function _interopRequireWildcard(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==_typeof(t)&&"function"!=typeof t)return{default:t};e=_getRequireWildcardCache(e);if(e&&e.has(t))return e.get(t);var o,i,n={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(o in t)"default"!==o&&Object.prototype.hasOwnProperty.call(t,o)&&((i=s?Object.getOwnPropertyDescriptor(t,o):null)&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=t[o]);return n.default=t,e&&e.set(t,n),n}function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(o="Object"===o&&t.constructor?t.constructor.name:o)||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,i=new Array(e);o<e;o++)i[o]=t[o];return i}function _iterableToArrayLimit(t,e){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var i,n,s=[],a=!0,l=!1;try{for(o=o.call(t);!(a=(i=o.next()).done)&&(s.push(i.value),!e||s.length!==e);a=!0);}catch(t){l=!0,n=t}finally{try{a||null==o.return||o.return()}finally{if(l)throw n}}return s}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _defineProperty(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}var allActivedModals=[];exports.allActivedModals=allActivedModals;var msgQueue=[];exports.msgQueue=msgQueue;var _default2={name:"VxeModal",mixins:[_size.default],props:{value:Boolean,id:String,type:{type:String,default:"modal"},loading:{type:Boolean,default:null},status:String,iconStatus:String,className:String,top:{type:[Number,String],default:function(){return _conf.default.modal.top}},position:[String,Object],title:String,duration:{type:[Number,String],default:function(){return _conf.default.modal.duration}},message:[String,Function],content:[String,Function],cancelButtonText:{type:String,default:function(){return _conf.default.modal.cancelButtonText}},confirmButtonText:{type:String,default:function(){return _conf.default.modal.confirmButtonText}},lockView:{type:Boolean,default:function(){return _conf.default.modal.lockView}},lockScroll:Boolean,mask:{type:Boolean,default:function(){return _conf.default.modal.mask}},maskClosable:{type:Boolean,default:function(){return _conf.default.modal.maskClosable}},escClosable:{type:Boolean,default:function(){return _conf.default.modal.escClosable}},resize:{type:Boolean,default:function(){return _conf.default.modal.resize}},showHeader:{type:Boolean,default:function(){return _conf.default.modal.showHeader}},showFooter:{type:Boolean,default:function(){return _conf.default.modal.showFooter}},showZoom:{type:Boolean,default:null},showClose:{type:Boolean,default:function(){return _conf.default.modal.showClose}},dblclickZoom:{type:Boolean,default:function(){return _conf.default.modal.dblclickZoom}},width:[Number,String],height:[Number,String],minWidth:{type:[Number,String],default:function(){return _conf.default.modal.minWidth}},minHeight:{type:[Number,String],default:function(){return _conf.default.modal.minHeight}},zIndex:Number,marginSize:{type:[Number,String],default:function(){return _conf.default.modal.marginSize}},fullscreen:Boolean,draggable:{type:Boolean,default:function(){return _conf.default.modal.draggable}},remember:{type:Boolean,default:function(){return _conf.default.modal.remember}},destroyOnClose:{type:Boolean,default:function(){return _conf.default.modal.destroyOnClose}},showTitleOverflow:{type:Boolean,default:function(){return _conf.default.modal.showTitleOverflow}},transfer:{type:Boolean,default:function(){return _conf.default.modal.transfer}},storage:{type:Boolean,default:function(){return _conf.default.modal.storage}},storageKey:{type:String,default:function(){return _conf.default.modal.storageKey}},animat:{type:Boolean,default:function(){return _conf.default.modal.animat}},size:{type:String,default:function(){return _conf.default.modal.size||_conf.default.size}},beforeHideMethod:{type:Function,default:function(){return _conf.default.modal.beforeHideMethod}},slots:Object,events:Object},data:function(){return{inited:!1,visible:!1,contentVisible:!1,modalTop:0,modalZindex:0,zoomLocat:null,firstOpen:!0}},computed:{isMsg:function(){return"message"===this.type}},watch:{width:function(){this.recalculate()},height:function(){this.recalculate()},value:function(t){this[t?"open":"close"]("model")}},created:function(){this.storage&&!this.id&&(0,_log.errLog)("vxe.error.reqProp",["modal.id"])},mounted:function(){var t=this.$listeners,e=this.events,o=void 0===e?{}:e;this.value&&this.open(),this.recalculate(),this.escClosable&&_event.GlobalEvent.on(this,"keydown",this.handleGlobalKeydownEvent);e="inserted",e={type:e,$modal:this,$event:{type:e}};t.inserted?this.$emit("inserted",e):o.inserted&&o.inserted.call(this,e)},beforeDestroy:function(){var t=this.$el;_event.GlobalEvent.off(this,"keydown"),this.removeMsgQueue(),t.parentNode===document.body&&t.parentNode.removeChild(t)},render:function(e){var o=this,t=this._e,i=this.$scopedSlots,n=this.slots,s=void 0===n?{}:n,a=this.inited,l=this.vSize,r=this.className,c=this.type,u=this.resize,d=this.showClose,f=this.showZoom,h=this.animat,m=this.draggable,p=this.loading,g=this.status,v=this.iconStatus,y=this.showFooter,x=this.zoomLocat,b=this.modalTop,_=this.dblclickZoom,w=this.contentVisible,S=this.visible,z=this.title,k=this.lockScroll,$=this.lockView,T=this.mask,M=this.isMsg,B=this.showTitleOverflow,N=this.destroyOnClose,O=this.content||this.message,P=i.default||s.default,L=i.footer||s.footer,n=i.header||s.header,i=i.title||s.title,s={};return m&&(s.mousedown=this.mousedownEvent),f&&_&&"modal"===c&&(s.dblclick=this.toggleZoomEvent),e("div",{class:["vxe-modal--wrapper","type--".concat(c),r||"",(_defineProperty(r={},"size--".concat(l),l),_defineProperty(r,"status--".concat(g),g),_defineProperty(r,"is--animat",h),_defineProperty(r,"lock--scroll",k),_defineProperty(r,"lock--view",$),_defineProperty(r,"is--resize",u),_defineProperty(r,"is--mask",T),_defineProperty(r,"is--maximize",x),_defineProperty(r,"is--visible",w),_defineProperty(r,"is--active",S),_defineProperty(r,"is--loading",p),r)],style:{zIndex:this.modalZindex,top:b?"".concat(b,"px"):null},on:{click:this.selfClickEvent}},[e("div",{class:"vxe-modal--box",on:{mousedown:this.boxMousedownEvent},ref:"modalBox"},[this.showHeader?e("div",{class:["vxe-modal--header",{"is--draggable":m,"is--ellipsis":!M&&B}],on:s},n?!a||N&&!S?[]:n.call(this,{$modal:this},e):[i?i.call(this,{$modal:this},e):e("span",{class:"vxe-modal--title"},z?(0,_utils.getFuncText)(z):_conf.default.i18n("vxe.alert.title")),f?e("i",{class:["vxe-modal--zoom-btn","trigger--btn",x?_conf.default.icon.MODAL_ZOOM_OUT:_conf.default.icon.MODAL_ZOOM_IN],attrs:{title:_conf.default.i18n("vxe.modal.zoom".concat(x?"Out":"In"))},on:{click:this.toggleZoomEvent}}):t(),d?e("i",{class:["vxe-modal--close-btn","trigger--btn",_conf.default.icon.MODAL_CLOSE],attrs:{title:_conf.default.i18n("vxe.modal.close")},on:{click:this.closeEvent}}):t()]):null,e("div",{class:"vxe-modal--body"},[g?e("div",{class:"vxe-modal--status-wrapper"},[e("i",{class:["vxe-modal--status-icon",v||_conf.default.icon["MODAL_".concat(g).toLocaleUpperCase()]]})]):null,e("div",{class:"vxe-modal--content"},P?!a||N&&!S?[]:P.call(this,{$modal:this},e):(0,_utils.getFuncText)(O)),M?null:e(_index.default,{class:"vxe-modal--loading",props:{loading:p}})]),y?e("div",{class:"vxe-modal--footer"},L?!a||N&&!S?[]:L.call(this,{$modal:this},e):["confirm"===c?e("vxe-button",{ref:"cancelBtn",on:{click:this.cancelEvent}},this.cancelButtonText||_conf.default.i18n("vxe.button.cancel")):null,e("vxe-button",{ref:"confirmBtn",props:{status:"primary"},on:{click:this.confirmEvent}},this.confirmButtonText||_conf.default.i18n("vxe.button.confirm"))]):null,!M&&u?e("span",{class:"vxe-modal--resize"},["wl","wr","swst","sest","st","swlb","selb","sb"].map(function(t){return e("span",{class:"".concat(t,"-resize"),attrs:{type:t},on:{mousedown:o.dragEvent}})})):null])])},methods:{recalculate:function(){var t=this.width,e=this.height,o=this.getBox();return o.style.width=t?isNaN(t)?t:"".concat(t,"px"):null,o.style.height=e?isNaN(e)?e:"".concat(e,"px"):null,this.$nextTick()},selfClickEvent:function(t){this.maskClosable&&t.target===this.$el&&this.close("mask")},updateZindex:function(){var t=this.zIndex,e=this.modalZindex;t?this.modalZindex=t:e<_utils.default.getLastZIndex()&&(this.modalZindex=_utils.default.nextZIndex())},closeEvent:function(t){var e=this.events,o=void 0===e?{}:e,e="close",t={type:e,$modal:this,$event:t};o[e]?o[e].call(this,t):this.$emit(e,t),this.close(e)},confirmEvent:function(t){var e=this.events,o=void 0===e?{}:e,e="confirm",t={type:e,$modal:this,$event:t};o[e]?o[e].call(this,t):this.$emit(e,t),this.close(e)},cancelEvent:function(t){var e=this.events,o=void 0===e?{}:e,e="cancel",t={type:e,$modal:this,$event:t};o[e]?o[e].call(this,t):this.$emit(e,t),this.close(e)},open:function(){var o=this,e=this.$refs,t=this.events,i=void 0===t?{}:t,n=this.inited,s=this.duration,a=this.visible,t=this.isMsg,l=this.remember,r=this.showFooter;n||(this.inited=!0,this.transfer&&document.body.appendChild(this.$el)),a||(l||this.recalculate(),this.visible=!0,this.contentVisible=!1,this.updateZindex(),allActivedModals.push(this),setTimeout(function(){o.contentVisible=!0,o.$nextTick(function(){!r||(t=e.confirmBtn||e.cancelBtn)&&t.focus();var t={type:"",$modal:o};i.show?i.show.call(o,t):(o.$emit("input",!0),o.$emit("show",t))})},10),t?(this.addMsgQueue(),-1!==s&&setTimeout(function(){return o.close("close")},_xeUtils.default.toNumber(s))):this.$nextTick(function(){var t=o.firstOpen,e=o.fullscreen;l&&!t||o.updatePosition().then(function(){setTimeout(function(){return o.updatePosition()},20)}),t?(o.firstOpen=!1,o.hasPosStorage()?o.restorePosStorage():e&&o.$nextTick(function(){return o.maximize()})):e&&o.$nextTick(function(){return o.maximize()})}))},addMsgQueue:function(){-1===msgQueue.indexOf(this)&&msgQueue.push(this),this.updateStyle()},removeMsgQueue:function(){var e=this;-1<msgQueue.indexOf(this)&&_xeUtils.default.remove(msgQueue,function(t){return t===e}),this.updateStyle()},updateStyle:function(){this.$nextTick(function(){var e=0;msgQueue.forEach(function(t){e+=_xeUtils.default.toNumber(t.top),t.modalTop=e,e+=t.$refs.modalBox.clientHeight})})},updatePosition:function(){var u=this;return this.$nextTick().then(function(){var t=u.marginSize,e=u.position,o=u.getBox(),i=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,s="center"===e,a=s?{top:e,left:e}:Object.assign({},e),l=a.top,r=a.left,c=s||"center"===l,e="",a="",a=r&&!(s||"center"===r)?isNaN(r)?r:"".concat(r,"px"):"".concat(Math.max(t,i/2-o.offsetWidth/2),"px"),e=l&&!c?isNaN(l)?l:"".concat(l,"px"):"".concat(Math.max(t,n/2-o.offsetHeight/2),"px");o.style.top=e,o.style.left=a})},close:function(t){var e=this,o=this.events,i=void 0===o?{}:o,n=this.remember,s=this.visible,a=this.isMsg,o=this.beforeHideMethod,l={type:t,$modal:this};s&&Promise.resolve(o?o(l):null).then(function(t){_xeUtils.default.isError(t)||(a&&e.removeMsgQueue(),e.contentVisible=!1,n||(e.zoomLocat=null),_xeUtils.default.remove(allActivedModals,function(t){return t===e}),e.$emit("before-hide",l),setTimeout(function(){e.visible=!1,i.hide?i.hide.call(e,l):(e.$emit("input",!1),e.$emit("hide",l))},200))}).catch(function(t){return t})},handleGlobalKeydownEvent:function(t){var e,o=this;27===t.keyCode&&((e=_xeUtils.default.max(allActivedModals,function(t){return t.modalZindex}))&&setTimeout(function(){e===o&&e.escClosable&&o.close("exit")},10))},getBox:function(){return this.$refs.modalBox},isMaximized:function(){return!!this.zoomLocat},maximize:function(){var n=this;return this.$nextTick().then(function(){var t,e,o,i;n.zoomLocat||(t=Math.max(0,n.marginSize),e=n.getBox(),o=(i=_dom.default.getDomNode()).visibleHeight,i=i.visibleWidth,n.zoomLocat={top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth+(e.style.width?0:1),height:e.offsetHeight+(e.style.height?0:1)},Object.assign(e.style,{top:"".concat(t,"px"),left:"".concat(t,"px"),width:"".concat(i-2*t,"px"),height:"".concat(o-2*t,"px")}),n.savePosStorage())})},revert:function(){var o=this;return this.$nextTick().then(function(){var t,e=o.zoomLocat;e&&(t=o.getBox(),o.zoomLocat=null,Object.assign(t.style,{top:"".concat(e.top,"px"),left:"".concat(e.left,"px"),width:"".concat(e.width,"px"),height:"".concat(e.height,"px")}),o.savePosStorage())})},zoom:function(){var t=this;return this[this.zoomLocat?"revert":"maximize"]().then(function(){return t.isMaximized()})},toggleZoomEvent:function(t){var e=this,o=this.$listeners,i=this.zoomLocat,n=this.events,s=void 0===n?{}:n,a={type:i?"revert":"max",$modal:this,$event:t};return this.zoom().then(function(){o.zoom?e.$emit("zoom",a):s.zoom&&s.zoom.call(e,a)})},getPosition:function(){if(!this.isMsg){var t=this.getBox();if(t)return{top:t.offsetTop,left:t.offsetLeft}}return null},setPosition:function(t,e){var o;return this.isMsg||(o=this.getBox(),_xeUtils.default.isNumber(t)&&(o.style.top="".concat(t,"px")),_xeUtils.default.isNumber(e)&&(o.style.left="".concat(e,"px"))),this.$nextTick()},boxMousedownEvent:function(){var e=this.modalZindex;allActivedModals.some(function(t){return t.visible&&t.modalZindex>e})&&this.updateZindex()},mousedownEvent:function(t){var e,o,n,s,a,l,i=this,r=this.remember,c=this.storage,u=this.marginSize,d=this.zoomLocat,f=this.getBox();d||0!==t.button||_dom.default.getEventTargetNode(t,f,"trigger--btn").flag||(t.preventDefault(),e=document.onmousemove,o=document.onmouseup,n=t.clientX-f.offsetLeft,s=t.clientY-f.offsetTop,t=_dom.default.getDomNode(),a=t.visibleHeight,l=t.visibleWidth,document.onmousemove=function(t){t.preventDefault();var e=f.offsetWidth,o=f.offsetHeight,i=l-e-u-1,e=a-o-u-1,o=t.clientX-n,t=t.clientY-s;(t=e<t?e:t)<u&&(t=u),f.style.left="".concat(o=(o=i<o?i:o)<u?u:o,"px"),f.style.top="".concat(t,"px"),f.className=f.className.replace(/\s?is--drag/,"")+" is--drag"},document.onmouseup=function(){document.onmousemove=e,document.onmouseup=o,r&&c&&i.$nextTick(function(){i.savePosStorage()}),setTimeout(function(){f.className=f.className.replace(/\s?is--drag/,"")},50)})},dragEvent:function(t){var s=this;t.preventDefault();var a=this.$listeners,l=this.marginSize,e=this.events,r=void 0===e?{}:e,c=this.remember,u=this.storage,e=_dom.default.getDomNode(),d=e.visibleHeight,f=e.visibleWidth,h=t.target.getAttribute("type"),m=_xeUtils.default.toNumber(this.minWidth),p=_xeUtils.default.toNumber(this.minHeight),g=f,v=d,y=this.getBox(),o=document.onmousemove,i=document.onmouseup,x=y.clientWidth,b=y.clientHeight,_=t.clientX,w=t.clientY,S=y.offsetTop,z=y.offsetLeft,k={type:"resize",$modal:this};document.onmousemove=function(t){var e,o,i,n;switch(t.preventDefault(),h){case"wl":i=(e=_-t.clientX)+x,l<z-e&&m<i&&(y.style.width="".concat(i<g?i:g,"px"),y.style.left="".concat(z-e,"px"));break;case"swst":e=_-t.clientX,o=w-t.clientY,i=e+x,n=o+b,l<z-e&&m<i&&(y.style.width="".concat(i<g?i:g,"px"),y.style.left="".concat(z-e,"px")),l<S-o&&p<n&&(y.style.height="".concat(n<v?n:v,"px"),y.style.top="".concat(S-o,"px"));break;case"swlb":e=_-t.clientX,o=t.clientY-w,i=e+x,n=o+b,l<z-e&&m<i&&(y.style.width="".concat(i<g?i:g,"px"),y.style.left="".concat(z-e,"px")),S+n+l<d&&p<n&&(y.style.height="".concat(n<v?n:v,"px"));break;case"st":o=w-t.clientY,n=b+o,l<S-o&&p<n&&(y.style.height="".concat(n<v?n:v,"px"),y.style.top="".concat(S-o,"px"));break;case"wr":e=t.clientX-_,z+(i=e+x)+l<f&&m<i&&(y.style.width="".concat(i<g?i:g,"px"));break;case"sest":e=t.clientX-_,n=(o=w-t.clientY)+b,z+(i=e+x)+l<f&&m<i&&(y.style.width="".concat(i<g?i:g,"px")),l<S-o&&p<n&&(y.style.height="".concat(n<v?n:v,"px"),y.style.top="".concat(S-o,"px"));break;case"selb":e=t.clientX-_,n=(o=t.clientY-w)+b,z+(i=e+x)+l<f&&m<i&&(y.style.width="".concat(i<g?i:g,"px")),S+n+l<d&&p<n&&(y.style.height="".concat(n<v?n:v,"px"));break;case"sb":o=t.clientY-w,S+(n=o+b)+l<d&&p<n&&(y.style.height="".concat(n<v?n:v,"px"))}y.className=y.className.replace(/\s?is--drag/,"")+" is--drag",c&&u&&s.savePosStorage(),a.zoom?s.$emit("zoom",k):r.zoom&&r.zoom.call(s,k)},document.onmouseup=function(){s.zoomLocat=null,document.onmousemove=o,document.onmouseup=i,setTimeout(function(){y.className=y.className.replace(/\s?is--drag/,"")},50)}},getStorageMap:function(t){var e=_conf.default.version,t=_xeUtils.default.toStringJSON(localStorage.getItem(t));return t&&t._v===e?t:{_v:e}},hasPosStorage:function(){var t=this.id,e=this.remember,o=this.storage,i=this.storageKey;return!!(e&&o&&this.getStorageMap(i)[t])},restorePosStorage:function(){var t,e,o,i,n,s=this.id,a=this.remember,l=this.storage,r=this.storageKey;a&&l&&((i=this.getStorageMap(r)[s])&&(t=this.getBox(),e=(n=_slicedToArray(i.split(","),8))[0],o=n[1],a=n[2],l=n[3],r=n[4],s=n[5],i=n[6],n=n[7],e&&(t.style.left="".concat(e,"px")),o&&(t.style.top="".concat(o,"px")),a&&(t.style.width="".concat(a,"px")),l&&(t.style.height="".concat(l,"px")),r&&s&&(this.zoomLocat={left:r,top:s,width:i,height:n})))},savePosStorage:function(){var t=this.id,e=this.remember,o=this.storage,i=this.storageKey,n=this.zoomLocat;e&&o&&(e=this.getBox(),(o=this.getStorageMap(i))[t]=[e.style.left,e.style.top,e.style.width,e.style.height].concat(n?[n.left,n.top,n.width,n.height]:[]).map(function(t){return t?_xeUtils.default.toNumber(t):""}).join(","),localStorage.setItem(i,_xeUtils.default.toJSONString(o)))}}};exports.default=_default2;
|