@aplus-frontend/ui 0.5.4 → 0.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/src/ap-grid/index.vue.mjs +140 -131
- package/es/src/ap-grid/utils/table.d.ts +3 -2
- package/es/src/ap-grid/utils/table.mjs +37 -30
- package/es/src/ap-table/ap-table.vue2.mjs +172 -159
- package/es/src/ap-table/context.d.ts +4 -4
- package/es/src/ap-table/hooks/use-sorted-filtered.d.ts +4 -1
- package/es/src/ap-table/hooks/use-sorted-filtered.mjs +11 -9
- package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +3 -1
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +53 -49
- package/es/src/ap-table/hooks/use-table-paging.d.ts +1 -1
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +2 -2
- package/es/src/business/ap-batch-action-group/index.d.ts +4 -4
- package/es/src/config-provider/hooks/use-namespace.d.ts +5 -1
- package/es/src/locale/lang/en.mjs +5 -3
- package/es/src/locale/lang/zh-cn.mjs +5 -3
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-grid/utils/table.d.ts +3 -2
- package/lib/src/ap-grid/utils/table.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/context.d.ts +4 -4
- package/lib/src/ap-table/hooks/use-sorted-filtered.d.ts +4 -1
- package/lib/src/ap-table/hooks/use-sorted-filtered.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +3 -1
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging.d.ts +1 -1
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +2 -2
- package/lib/src/business/ap-batch-action-group/index.d.ts +4 -4
- package/lib/src/config-provider/hooks/use-namespace.d.ts +5 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/package.json +3 -3
- package/theme/antd-global-overwrite/aplus/field.css +6 -0
- package/theme/antd-global-overwrite/aplus/field.less +7 -0
- package/theme/antd-global-overwrite/aplus/index.css +6 -0
- package/theme/antd-global-overwrite/aplus/index.less +1 -0
- package/theme/ap-grid/index.css +0 -1
- package/theme/ap-grid/index.less +0 -1
- package/theme/index.css +0 -1
- package/es/src/ap-grid/hooks/use-load-vxe.mjs +0 -32
- package/lib/src/ap-grid/hooks/use-load-vxe.js +0 -1
|
@@ -2,7 +2,11 @@ import { InjectionKey, Ref, ComputedRef } from 'vue';
|
|
|
2
2
|
export declare const defaultNamespace = "aplus";
|
|
3
3
|
export declare const namespaceContextKey: InjectionKey<Ref<string | undefined>>;
|
|
4
4
|
export declare const useGetDerivedNamespace: (namespaceOverrides?: Ref<string | undefined>) => ComputedRef<string>;
|
|
5
|
-
export declare const useNamespace: (
|
|
5
|
+
export declare const useNamespace: (
|
|
6
|
+
/**
|
|
7
|
+
* 块 一般是指组件名
|
|
8
|
+
*/
|
|
9
|
+
block: string, namespaceOverrides?: Ref<string | undefined>) => {
|
|
6
10
|
namespace: ComputedRef<string>;
|
|
7
11
|
b: (blockSuffix?: string) => string;
|
|
8
12
|
e: (element?: string) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={name:"en",ap:{common:{okText:"OK",cancelText:"Cancel",resetText:"Reset",queryText:"Search",expandText:"Unfold",closeText:"Put away",inputText:"Please enter",chooseText:"Please choose",redo:"Refresh",back:"Back",more:"More",all:"All"},field:{startDateText:"Start date",endDateText:"End date",today:"Today",yesterday:"Yesterday",thisWeek:"This week",lastWeek:"Last week",thisMonth:"This month",lastMonth:"Last month",thisYear:"This year",lastYear:"Last year",lastXDays:"Last {day} days"},apForm:{search:{search:"Search",reset:"Reset"}},apTable:{pagination:{totalLeftPrefix:"Total",totalLeftSuffix:"items",totalRightPrefix:"Page",totalRightSuffix:" "},setting:{title:"Custom Table",selectAll:"Select All",unSelectAll:"Deselect All",selectAllTip:"Please select the columns to display in the table.",sizeSmall:"Small",sizeNormal:"Normal",selectCount:"Selected fields ({count})",reset:"Reset",fixToLeft:"Fixed on the left",fixToRight:"Fixed on the right",unFixed:"Not fixed",delete:"Delete"},paragraphEllipsis:{copy:"Copy",copySuccess:"Copied successfully"}},apUpload:{update:"Upload",pictureType:"Image type",videoType:"Video type",audioType:"Audio type",documentType:"Document type",allTypes:"All types",networkAnomaly:"Network abnormality",FailedToObtainOssTemporaryPermissions:"Failed to obtain temporary OSS permissions",pleasePass:"Please pass in",supportExtension:"Support extensions",uploadFile:"Upload files",fileInitializationException:"If the initial number of initialized files exceeds {maxCount}, subsequent uploaded files will be out of sync with the data",maxUploadFiles:"Upload a maximum of {maxCount} files",maxUploadPicture:"Upload a maximum of {maxCount} images",maxUploadFileSize:"The file size does not exceed {maxSize}MB",maxWarnUploadFileSize:"The file size is smaller than {maxSize}MB",maxUploadPictureSize:"The image size is smaller than {maxSize}MB",fileFormatNotSupported:"Files in this format are not supported",pictureFormatNotSupported:"Images in this format are not supported",imageParsingFailed:"Image parsing failed",clickOrDragUpload:"Click or drag the file",foldersNotSupported:"Do not support uploading folders"},apExportGroup:{exportError:"Export error",exportSelected:"Export selected",exportAll:"Export all",export:"Export Excel",exportSuccess:"The task has been submitted,please go to the download center to check the progress"},apBatchAction:{selected:"Selected",piecesOfData:"Pieces of data",empty:"Empty"},apApBatchActionGroup:{batchOperation:"Batch operation"},workOrderModal:{createTickets:"Create ticket",submit:"Confirm",cancel:"Cancel",ticketsTitle:"Ticket Title",noEmpty:"No empty",pleaseEntry:"please enter (Within 300 words)",ticketsType:"Ticket Type",ticketsDetail:"Ticket Detail",ticketsLevel:"Priority",operationSuccess:"operate successfully",fileSizeMax:"Single file size limit",fileCountMax:"Limit the number to {x} at a time",fileLabel:"File Upload"},apTableModal:{titleSuffixOne:"You can add up to {maxCount},",titleSuffixTwo:"Added",titleSuffixThree:"",messageMaxCount:"You can select up to {maxCount} data entries",clear:"Clear",selected:"Selected"},apAttachment:{downloadall:"Download All",more:"More"},apSizeInput:{length:"Length",width:"Width",height:"Height"},apExpandAlert:{expand:"Expand",collapse:"Collapse"},apAppendix:{downloadAll:"Download All",downloadFile:"Download file",appendix:"Appendix"},apGroupSearch:{defaultPlaceholder:"Please input",close:"Close",clear:"Clear",confirm:"Confirm",tokenSeparatorsPlaceholder:"A maximum of 200 entries can be entered in batches, separated by commas and newlines"},batchInputGroup:{popoverInputPlaceholder:"A maximum of 200 entries can be entered in batches, separated by newlines"},apSummary:{total:"Total"}}};exports.default=
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vxe-table/lib/locale/lang/en-US"),t={name:"en",ap:{common:{okText:"OK",cancelText:"Cancel",resetText:"Reset",queryText:"Search",expandText:"Unfold",closeText:"Put away",inputText:"Please enter",chooseText:"Please choose",redo:"Refresh",back:"Back",more:"More",all:"All"},field:{startDateText:"Start date",endDateText:"End date",today:"Today",yesterday:"Yesterday",thisWeek:"This week",lastWeek:"Last week",thisMonth:"This month",lastMonth:"Last month",thisYear:"This year",lastYear:"Last year",lastXDays:"Last {day} days"},apForm:{search:{search:"Search",reset:"Reset"}},apTable:{pagination:{totalLeftPrefix:"Total",totalLeftSuffix:"items",totalRightPrefix:"Page",totalRightSuffix:" "},setting:{title:"Custom Table",selectAll:"Select All",unSelectAll:"Deselect All",selectAllTip:"Please select the columns to display in the table.",sizeSmall:"Small",sizeNormal:"Normal",selectCount:"Selected fields ({count})",reset:"Reset",fixToLeft:"Fixed on the left",fixToRight:"Fixed on the right",unFixed:"Not fixed",delete:"Delete"},paragraphEllipsis:{copy:"Copy",copySuccess:"Copied successfully"}},apUpload:{update:"Upload",pictureType:"Image type",videoType:"Video type",audioType:"Audio type",documentType:"Document type",allTypes:"All types",networkAnomaly:"Network abnormality",FailedToObtainOssTemporaryPermissions:"Failed to obtain temporary OSS permissions",pleasePass:"Please pass in",supportExtension:"Support extensions",uploadFile:"Upload files",fileInitializationException:"If the initial number of initialized files exceeds {maxCount}, subsequent uploaded files will be out of sync with the data",maxUploadFiles:"Upload a maximum of {maxCount} files",maxUploadPicture:"Upload a maximum of {maxCount} images",maxUploadFileSize:"The file size does not exceed {maxSize}MB",maxWarnUploadFileSize:"The file size is smaller than {maxSize}MB",maxUploadPictureSize:"The image size is smaller than {maxSize}MB",fileFormatNotSupported:"Files in this format are not supported",pictureFormatNotSupported:"Images in this format are not supported",imageParsingFailed:"Image parsing failed",clickOrDragUpload:"Click or drag the file",foldersNotSupported:"Do not support uploading folders"},apExportGroup:{exportError:"Export error",exportSelected:"Export selected",exportAll:"Export all",export:"Export Excel",exportSuccess:"The task has been submitted,please go to the download center to check the progress"},apBatchAction:{selected:"Selected",piecesOfData:"Pieces of data",empty:"Empty"},apApBatchActionGroup:{batchOperation:"Batch operation"},workOrderModal:{createTickets:"Create ticket",submit:"Confirm",cancel:"Cancel",ticketsTitle:"Ticket Title",noEmpty:"No empty",pleaseEntry:"please enter (Within 300 words)",ticketsType:"Ticket Type",ticketsDetail:"Ticket Detail",ticketsLevel:"Priority",operationSuccess:"operate successfully",fileSizeMax:"Single file size limit",fileCountMax:"Limit the number to {x} at a time",fileLabel:"File Upload"},apTableModal:{titleSuffixOne:"You can add up to {maxCount},",titleSuffixTwo:"Added",titleSuffixThree:"",messageMaxCount:"You can select up to {maxCount} data entries",clear:"Clear",selected:"Selected"},apAttachment:{downloadall:"Download All",more:"More"},apSizeInput:{length:"Length",width:"Width",height:"Height"},apExpandAlert:{expand:"Expand",collapse:"Collapse"},apAppendix:{downloadAll:"Download All",downloadFile:"Download file",appendix:"Appendix"},apGroupSearch:{defaultPlaceholder:"Please input",close:"Close",clear:"Clear",confirm:"Confirm",tokenSeparatorsPlaceholder:"A maximum of 200 entries can be entered in batches, separated by commas and newlines"},batchInputGroup:{popoverInputPlaceholder:"A maximum of 200 entries can be entered in batches, separated by newlines"},apSummary:{total:"Total"},...e}};exports.default=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={name:"zh-cn",ap:{common:{okText:"确认",cancelText:"取消",resetText:"重置",queryText:"查询",expandText:"展开",closeText:"收起",inputText:"请输入",chooseText:"请选择",redo:"刷新",back:"返回",more:"更多",all:"全部"},field:{startDateText:"开始日期",endDateText:"结束日期",today:"今天",yesterday:"昨天",thisWeek:"本周",lastWeek:"上周",thisMonth:"本月",lastMonth:"上月",thisYear:"今年",lastYear:"去年",lastXDays:"近{day}天"},modal:{restore:"还原",maximize:"最大化",close:"关闭"},countdown:{normalText:"获取验证码",sendText:"{sec}秒后重新获取"},apForm:{search:{search:"查询",reset:"重置"}},apTable:{pagination:{totalLeftPrefix:"共",totalLeftSuffix:"条记录",totalRightPrefix:"第",totalRightSuffix:"页"},setting:{title:"自定义表格",selectAll:"全选",unSelectAll:"取消全选",selectAllTip:"请选择需要展示在表格的字段",sizeSmall:"紧凑",sizeNormal:"正常",selectCount:"已选字段({count})",reset:"重置",fixToLeft:"固定在左侧",fixToRight:"固定在右侧",unFixed:"不固定",delete:"删除"},paragraphEllipsis:{copy:"复制",copySuccess:"复制成功"}},apUpload:{update:"上传",pictureType:"图片类型",videoType:"视频类型",audioType:"音频类型",documentType:"文档类型",allTypes:"全部类型",networkAnomaly:"网络异常",FailedToObtainOssTemporaryPermissions:"获取oss临时权限失败",pleasePass:"请传入",supportExtension:"支持扩展名",uploadFile:"上传文件",fileInitializationException:"文件初始化个数超过{maxCount}个,后续上传的文件会与数据不同步",maxUploadFiles:"最多上传{maxCount}个文件",maxUploadPicture:"最多上传{maxCount}张图片",maxUploadFileSize:"文件大小不超过{maxSize}MB",maxWarnUploadFileSize:"文件大小小于{maxSize}MB",maxUploadPictureSize:"图片大小小于{maxSize}MB",fileFormatNotSupported:"不支持该格式的文件",pictureFormatNotSupported:"不支持该格式的图片",imageParsingFailed:"图片解析失败",clickOrDragUpload:"点击或将文件拖拽到这里上传",foldersNotSupported:"不支持上传文件夹"},apExportGroup:{exportError:"导出失败",exportSelected:"导出所选",exportAll:"导出全部",export:"导出Excel",exportSuccess:"任务已提交,前往下载中心查看进度"},apBatchAction:{selected:"已选",piecesOfData:"条数据",empty:"清空"},apApBatchActionGroup:{batchOperation:"批量操作"},workOrderModal:{createTickets:"创建工单",submit:"确定",cancel:"取消",ticketsTitle:"工单标题",noEmpty:"不可为空",pleaseEntry:"请输入(300字以内)",ticketsType:"工单类型",ticketsDetail:"工单详情",ticketsLevel:"优先级",operationSuccess:"操作成功",fileSizeMax:"单个文件大小限制",fileCountMax:"单次数量限制 {x} 个",fileLabel:"上传附件"},apTableModal:{titleSuffixOne:"最多可添加{maxCount}个,",titleSuffixTwo:"已添加",titleSuffixThree:"个",messageMaxCount:"最多选择{maxCount}条数据",clear:"清空",selected:"已选"},apAttachment:{downloadall:"下载全部",more:"更多"},apSizeInput:{length:"长",width:"宽",height:"高"},apExpandAlert:{expand:"展开",collapse:"收起"},apAppendix:{downloadAll:"下载全部",downloadFile:"下载文件",appendix:"附件"},apGroupSearch:{defaultPlaceholder:"请输入",close:"关闭",clear:"清空",confirm:"确定",tokenSeparatorsPlaceholder:"支持批量输入,可用逗号、换行符号分隔,最多输入200条"},batchInputGroup:{popoverInputPlaceholder:"支持批量输入,可用换行符分隔,最多输入200条"},apSummary:{total:"合计"}}};exports.default=
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vxe-table/lib/locale/lang/zh-CN"),t={name:"zh-cn",ap:{common:{okText:"确认",cancelText:"取消",resetText:"重置",queryText:"查询",expandText:"展开",closeText:"收起",inputText:"请输入",chooseText:"请选择",redo:"刷新",back:"返回",more:"更多",all:"全部"},field:{startDateText:"开始日期",endDateText:"结束日期",today:"今天",yesterday:"昨天",thisWeek:"本周",lastWeek:"上周",thisMonth:"本月",lastMonth:"上月",thisYear:"今年",lastYear:"去年",lastXDays:"近{day}天"},modal:{restore:"还原",maximize:"最大化",close:"关闭"},countdown:{normalText:"获取验证码",sendText:"{sec}秒后重新获取"},apForm:{search:{search:"查询",reset:"重置"}},apTable:{pagination:{totalLeftPrefix:"共",totalLeftSuffix:"条记录",totalRightPrefix:"第",totalRightSuffix:"页"},setting:{title:"自定义表格",selectAll:"全选",unSelectAll:"取消全选",selectAllTip:"请选择需要展示在表格的字段",sizeSmall:"紧凑",sizeNormal:"正常",selectCount:"已选字段({count})",reset:"重置",fixToLeft:"固定在左侧",fixToRight:"固定在右侧",unFixed:"不固定",delete:"删除"},paragraphEllipsis:{copy:"复制",copySuccess:"复制成功"}},apUpload:{update:"上传",pictureType:"图片类型",videoType:"视频类型",audioType:"音频类型",documentType:"文档类型",allTypes:"全部类型",networkAnomaly:"网络异常",FailedToObtainOssTemporaryPermissions:"获取oss临时权限失败",pleasePass:"请传入",supportExtension:"支持扩展名",uploadFile:"上传文件",fileInitializationException:"文件初始化个数超过{maxCount}个,后续上传的文件会与数据不同步",maxUploadFiles:"最多上传{maxCount}个文件",maxUploadPicture:"最多上传{maxCount}张图片",maxUploadFileSize:"文件大小不超过{maxSize}MB",maxWarnUploadFileSize:"文件大小小于{maxSize}MB",maxUploadPictureSize:"图片大小小于{maxSize}MB",fileFormatNotSupported:"不支持该格式的文件",pictureFormatNotSupported:"不支持该格式的图片",imageParsingFailed:"图片解析失败",clickOrDragUpload:"点击或将文件拖拽到这里上传",foldersNotSupported:"不支持上传文件夹"},apExportGroup:{exportError:"导出失败",exportSelected:"导出所选",exportAll:"导出全部",export:"导出Excel",exportSuccess:"任务已提交,前往下载中心查看进度"},apBatchAction:{selected:"已选",piecesOfData:"条数据",empty:"清空"},apApBatchActionGroup:{batchOperation:"批量操作"},workOrderModal:{createTickets:"创建工单",submit:"确定",cancel:"取消",ticketsTitle:"工单标题",noEmpty:"不可为空",pleaseEntry:"请输入(300字以内)",ticketsType:"工单类型",ticketsDetail:"工单详情",ticketsLevel:"优先级",operationSuccess:"操作成功",fileSizeMax:"单个文件大小限制",fileCountMax:"单次数量限制 {x} 个",fileLabel:"上传附件"},apTableModal:{titleSuffixOne:"最多可添加{maxCount}个,",titleSuffixTwo:"已添加",titleSuffixThree:"个",messageMaxCount:"最多选择{maxCount}条数据",clear:"清空",selected:"已选"},apAttachment:{downloadall:"下载全部",more:"更多"},apSizeInput:{length:"长",width:"宽",height:"高"},apExpandAlert:{expand:"展开",collapse:"收起"},apAppendix:{downloadAll:"下载全部",downloadFile:"下载文件",appendix:"附件"},apGroupSearch:{defaultPlaceholder:"请输入",close:"关闭",clear:"清空",confirm:"确定",tokenSeparatorsPlaceholder:"支持批量输入,可用逗号、换行符号分隔,最多输入200条"},batchInputGroup:{popoverInputPlaceholder:"支持批量输入,可用换行符分隔,最多输入200条"},apSummary:{total:"合计"},...e}};exports.default=t;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aplus-frontend/ui",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.6",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
"sortablejs": "^1.15.2",
|
|
66
66
|
"vue-virtual-scroller": "2.0.0-beta.8",
|
|
67
67
|
"vuedraggable": "^4.1.0",
|
|
68
|
-
"vxe-pc-ui": "
|
|
69
|
-
"vxe-table": "4.11.
|
|
68
|
+
"vxe-pc-ui": "4.4.4",
|
|
69
|
+
"vxe-table": "4.11.18",
|
|
70
70
|
"@aplus-frontend/hooks": "1.0.7",
|
|
71
71
|
"@aplus-frontend/utils": "1.0.52"
|
|
72
72
|
},
|
|
@@ -872,3 +872,9 @@ div[class$='-basic-table-form-container ap-table--sticky'] form[class$='-basic-f
|
|
|
872
872
|
[class*='-pro-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container:has(.aplus-scroll-bar) ul.ant-pagination {
|
|
873
873
|
padding-top: 8px;
|
|
874
874
|
}
|
|
875
|
+
.ant-checkbox:not(.ant-checkbox-checked) .ant-checkbox-inner {
|
|
876
|
+
border-color: #d3d7de;
|
|
877
|
+
}
|
|
878
|
+
.ant-radio:not(.ant-radio-checked) .ant-radio-inner {
|
|
879
|
+
border-color: #d3d7de;
|
|
880
|
+
}
|
package/theme/ap-grid/index.css
CHANGED
package/theme/ap-grid/index.less
CHANGED
package/theme/index.css
CHANGED
|
@@ -2210,7 +2210,6 @@ div.aplus-ap-info-layout-admin__header-shadow.aplus-ap-info-layout-admin__sticky
|
|
|
2210
2210
|
.aplus-ap-grid__table-wrapper-card {
|
|
2211
2211
|
padding: 12px 16px 16px;
|
|
2212
2212
|
background-color: #fff;
|
|
2213
|
-
overflow: hidden;
|
|
2214
2213
|
}
|
|
2215
2214
|
.aplus-ap-grid-pagination {
|
|
2216
2215
|
margin-top: 16px;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import t from "vxe-pc-ui";
|
|
2
|
-
import "vxe-table/lib/style.css";
|
|
3
|
-
import "vxe-pc-ui/lib/style.css";
|
|
4
|
-
import m from "vxe-table/lib/locale/lang/zh-CN";
|
|
5
|
-
import _ from "vxe-table/lib/locale/lang/en-US";
|
|
6
|
-
import { getCurrentInstance as s, watch as i, unref as c } from "vue";
|
|
7
|
-
import "../../config-provider/index.mjs";
|
|
8
|
-
import { useLocale as g } from "../../config-provider/hooks/use-locale.mjs";
|
|
9
|
-
t.setI18n("zh-CN", m);
|
|
10
|
-
t.setI18n("en-US", _);
|
|
11
|
-
const u = {
|
|
12
|
-
"zh-cn": "zh-CN",
|
|
13
|
-
en: "en-US"
|
|
14
|
-
}, x = () => {
|
|
15
|
-
var n;
|
|
16
|
-
const e = (n = s()) == null ? void 0 : n.appContext.app;
|
|
17
|
-
e && !e.__VXE_PC_UI_INSTALLED__ && (e.use(t), e.__VXE_PC_UI_INSTALLED__ = !0);
|
|
18
|
-
const { lang: r } = g();
|
|
19
|
-
i(
|
|
20
|
-
() => c(r),
|
|
21
|
-
(a) => {
|
|
22
|
-
const p = t.getLanguage(), o = u[a];
|
|
23
|
-
p !== o && t.setLanguage(o);
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
immediate: !0
|
|
27
|
-
}
|
|
28
|
-
);
|
|
29
|
-
};
|
|
30
|
-
export {
|
|
31
|
-
x as useLoadVxe
|
|
32
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vxe-pc-ui");require("vxe-table/lib/style.css");require("vxe-pc-ui/lib/style.css");const c=require("vxe-table/lib/locale/lang/zh-CN"),i=require("vxe-table/lib/locale/lang/en-US"),t=require("vue");require("../../config-provider/index.js");const _=require("../../config-provider/hooks/use-locale.js");e.setI18n("zh-CN",c);e.setI18n("en-US",i);const g={"zh-cn":"zh-CN",en:"en-US"},L=()=>{var r;const n=(r=t.getCurrentInstance())==null?void 0:r.appContext.app;n&&!n.__VXE_PC_UI_INSTALLED__&&(n.use(e),n.__VXE_PC_UI_INSTALLED__=!0);const{lang:s}=_.useLocale();t.watch(()=>t.unref(s),a=>{const o=e.getLanguage(),u=g[a];o!==u&&e.setLanguage(u)},{immediate:!0})};exports.useLoadVxe=L;
|