@aplus-frontend/ui 6.30.0 → 6.31.0
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-form/search-form/index.vue.mjs +40 -40
- package/es/src/ap-grid/utils/col.d.ts +1 -0
- package/es/src/ap-grid/utils/col.mjs +54 -49
- package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +95 -81
- package/es/src/business/ap-appendix/icons/empty-admin-icon.vue.d.ts +3 -0
- package/es/src/business/ap-appendix/icons/empty-admin-icon.vue.mjs +20 -0
- package/es/src/business/ap-appendix/icons/empty-aplus-icon.vue.d.ts +3 -0
- package/es/src/business/ap-appendix/icons/empty-aplus-icon.vue.mjs +20 -0
- package/es/src/business/ap-appendix/interface.d.ts +1 -0
- package/es/src/business/ap-view/ap-view.vue2.mjs +80 -80
- package/es/src/business/ap-view/interface.d.ts +13 -3
- package/es/src/locale/lang/en.mjs +2 -1
- package/es/src/locale/lang/zh-cn.mjs +2 -1
- package/es/src/mask/utils.d.ts +1 -1
- package/es/src/mask/utils.mjs +29 -13
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-grid/utils/col.d.ts +1 -0
- package/lib/src/ap-grid/utils/col.js +1 -1
- package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
- package/lib/src/business/ap-appendix/icons/empty-admin-icon.vue.d.ts +3 -0
- package/lib/src/business/ap-appendix/icons/empty-admin-icon.vue.js +1 -0
- package/lib/src/business/ap-appendix/icons/empty-aplus-icon.vue.d.ts +3 -0
- package/lib/src/business/ap-appendix/icons/empty-aplus-icon.vue.js +1 -0
- package/lib/src/business/ap-appendix/interface.d.ts +1 -0
- package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
- package/lib/src/business/ap-view/interface.d.ts +13 -3
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/mask/utils.d.ts +1 -1
- package/lib/src/mask/utils.js +3 -3
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +1 -1
- package/theme/antdv-override.css +0 -6
- package/theme/antdv-override.less +0 -8
- package/theme/ap-appendix/ap-appendix.css +15 -0
- package/theme/ap-appendix/ap-appendix.less +15 -0
- package/theme/ap-expand-alert/ap-expand-alert.css +0 -4
- package/theme/ap-expand-alert/ap-expand-alert.less +6 -5
- package/theme/ap-view/ap-view.css +4 -0
- package/theme/ap-view/ap-view.less +4 -0
- package/theme/index.css +19 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue");require("../../config-provider/index.js");const B=require("./icons/line-down.vue.js"),P=require("../ap-batch-action-group/index.js");require("./components/main-button-content.vue.js");require("./components/menu-list-content.vue.js");const j=require("./hooks/use-view-provide.js"),k=require("../../ap-table/context.js"),m=require("./utils/enum.js"),A=require("@aplus-frontend/utils"),G=require("../../config-provider/hooks/use-global-config.js"),U=require("../../config-provider/hooks/use-namespace.js"),z=require("../../config-provider/hooks/use-locale.js"),R=require("./components/main-button-content.vue2.js"),$=require("./components/menu-list-content.vue2.js"),H=t.defineComponent({name:"ApView",__name:"ap-view",props:{tableKey:{},saveDataSource:{},viewCacheOption:{},maxViewNum:{default:20},isDefaultSystemView:{type:Boolean,default:!1},isFirstDefaultSystemView:{type:Boolean,default:!1},manual:{type:Boolean,default:!1}},setup(g,{expose:h}){const o=g,C=G.useGlobalConfig("viewCacheOption"),{b:y}=U.useNamespace("ap-view"),{t:E}=z.useLocale(),d=t.computed(()=>({viewKey:m.SYSTEM_VIEW_KEY,viewName:E("ap.apView.systemView")})),{getSearchFormValues:D,setSearchFormValues:F,submit:q,reset:I,submitWith:N,getSearchFormSorterItems:Y,setSearchFormSorterItems:O,resetSearchFormSorterItems:T}=k.useInjectApTable(),L=t.ref(!1),V=t.ref(!1),w=t.ref("");let v=!1,_=!1;const W={dropdownType:"dropdown",content:t.createVNode(R.default,{maxViewNum:o.maxViewNum},null)},s=t.ref([d.value]),M=t.computed(()=>s.value.map(a=>({id:a.viewKey,content:t.createVNode($.default,{view:a},null)}))),n={getSearchFormValues:D,setSearchFormValues:F,submit:q,reset:I,submitWith:N,getSearchFormSorterItems:Y,setSearchFormSorterItems:O,resetSearchFormSorterItems:T,...o.saveDataSource},p={...C.value,...o.viewCacheOption},K=()=>o.isDefaultSystemView||(o.isFirstDefaultSystemView||_)&&v?m.SYSTEM_VIEW_KEY:s.value.find(i=>i.isDefault)?.viewKey??m.SYSTEM_VIEW_KEY,l=a=>{w.value=a;const i=s.value.find(e=>e.viewKey===w.value);i&&setTimeout(()=>{i.viewKey===m.SYSTEM_VIEW_KEY?v?o.manual||n?.submitWith?.():o.manual||(n?.resetSearchFormSorterItems?.(),n?.reset?.()):(n?.setSearchFormValues?.({...Object.fromEntries(Object.keys(n?.getSearchFormValues?.()??{}).map(e=>[e,void 0]))??{},...n?.getSearchFormSorterItems?.()?.reduce((e,r)=>(i.viewConfig?.searchForm?.[r.name]&&(e[r.name]=i.viewConfig?.searchForm?.[r.name]),e),{})??{}}),n?.setSearchFormSorterItems?.(i.viewConfig?.sorterItems??[]),v?o.manual||n?.submitWith?.():n?.submit?.()),v=!1})},b={getViewList:async a=>{try{const{tableKey:i}=a,e=await p?.getViewList?.({tableKey:i});return s.value=[d.value,...e??[]],l(K()),s.value}catch{return s.value=[d.value],l(m.SYSTEM_VIEW_KEY),s.value}},addView:async a=>{const{tableKey:i,viewKey:e,viewName:r,isDefault:u,viewConfig:f}=a;await p?.addView?.({tableKey:i,viewKey:e,viewName:r,isDefault:u,viewConfig:f}),u&&(s.value=s.value.map(c=>({...c,isDefault:!1}))),s.value=[...s.value,{viewKey:e,viewName:r,isDefault:u,viewConfig:f}],l(e)},changeView:async a=>{const{tableKey:i,viewKey:e,viewName:r,isDefault:u,viewConfig:f}=a;await p?.changeView?.({tableKey:i,viewKey:e,viewName:r,isDefault:u,viewConfig:f}),u&&(s.value=s.value.map(S=>({...S,isDefault:!1})));const c=s.value.find(S=>S.viewKey===e);c&&(c.viewName=r,c.isDefault=u,c.viewConfig=f),l(e)},removeView:async a=>{const{tableKey:i,viewKey:e}=a;await p?.removeView?.({tableKey:i,viewKey:e}),s.value=s.value.filter(r=>r.viewKey!==e),e===w.value&&l(K())}},x={tableKey:o.tableKey,currentViewKey:w,changeCurrentViewKey:l,popoverOpen:L,menuOpen:V,viewList:s,viewListCRUD:b,saveDataSource:n};return j.useViewProvide(x),t.watch(()=>o.tableKey,a=>{A.isValid(a)&&(v=!0,b?.getViewList?.({tableKey:a}))},{immediate:!0}),h({setFirstDefaultSystemView:a=>{_=a}}),(a,i)=>(t.openBlock(),t.createBlock(t.unref(P.ApBatchActionGroup),t.mergeProps({...a.$attrs},{open:V.value,"onUpdate:open":i[0]||(i[0]=e=>V.value=e),class:[t.unref(y)()],"button-props":W,"menu-list":M.value,"overlay-class-name":[t.unref(y)("overlay")],trigger:"click",placement:"bottom"}),{icon:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass([t.unref(y)("icon")])},[t.createVNode(B.default)],2)]),_:1},16,["open","class","menu-list","overlay-class-name"]))}});exports.default=H;
|
|
@@ -1,23 +1,31 @@
|
|
|
1
1
|
import { ApFormSearchFormPopoverSorterItem } from '../../ap-form';
|
|
2
2
|
import { Recordable } from '../../type';
|
|
3
3
|
export interface SaveDataSource {
|
|
4
|
+
/** 获取表单数据 */
|
|
4
5
|
getSearchFormValues?: (transform?: boolean) => (Partial<Recordable> & Recordable<any>) | undefined;
|
|
6
|
+
/** 设置表单数据 */
|
|
5
7
|
setSearchFormValues?: (values: Partial<Recordable>) => void;
|
|
8
|
+
/** 提交 */
|
|
6
9
|
submit?: () => void;
|
|
10
|
+
/** 表格submitWith,非表格则和submit传递一致函数即可 */
|
|
7
11
|
submitWith?: () => void;
|
|
12
|
+
/** 重置 */
|
|
8
13
|
reset?: () => void;
|
|
14
|
+
/** 获取表单排序 */
|
|
9
15
|
getSearchFormSorterItems?: () => ApFormSearchFormPopoverSorterItem[];
|
|
16
|
+
/** 设置表单排序 */
|
|
10
17
|
setSearchFormSorterItems?: (sortedItems: ApFormSearchFormPopoverSorterItem[]) => void;
|
|
18
|
+
/** 重置表单排序 */
|
|
11
19
|
resetSearchFormSorterItems?: () => void;
|
|
12
|
-
/**
|
|
13
|
-
* 是否转换搜索表单,默认为 false
|
|
14
|
-
*/
|
|
20
|
+
/** 是否转换搜索表单,默认为 false */
|
|
15
21
|
searchFormTransform?: boolean;
|
|
16
22
|
}
|
|
17
23
|
export interface ViewCacheOption {
|
|
24
|
+
/** 获取视图列表 */
|
|
18
25
|
getViewList?: (option: {
|
|
19
26
|
tableKey: string;
|
|
20
27
|
}) => Promise<ViewListModel[]>;
|
|
28
|
+
/** 添加视图 */
|
|
21
29
|
addView?: (option: {
|
|
22
30
|
tableKey: string;
|
|
23
31
|
viewName: string;
|
|
@@ -25,6 +33,7 @@ export interface ViewCacheOption {
|
|
|
25
33
|
viewConfig?: Recordable;
|
|
26
34
|
isDefault?: boolean;
|
|
27
35
|
}) => Promise<void>;
|
|
36
|
+
/** 设置视图 */
|
|
28
37
|
changeView?: (option: {
|
|
29
38
|
tableKey: string;
|
|
30
39
|
viewName: string;
|
|
@@ -32,6 +41,7 @@ export interface ViewCacheOption {
|
|
|
32
41
|
viewConfig?: Recordable;
|
|
33
42
|
isDefault?: boolean;
|
|
34
43
|
}) => Promise<void>;
|
|
44
|
+
/** 删除视图 */
|
|
35
45
|
removeView?: (option: {
|
|
36
46
|
tableKey: string;
|
|
37
47
|
viewKey: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vxe-table/es/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",moreFilter:"More Filters",sorterTitle:"Customize filter layout",sorterDesc:"Drag to sort. Top items appear first.",sorterReset:"Restore Defaults",sorterConfirmBtn:"Confirm"}},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",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"},batchInputGroup:{popoverInputPlaceholder:"A maximum of {maxNum} entries can be entered in batches, separated by newlines"},apSummary:{total:"Total"},apView:{systemView:"System view",saveView:"Save view",maxTip:"The maximum number of views that can be saved has been reached. Please delete them before saving a new view",saveNewView:"Save as new wiew",newView:"New view",setDefault:"Default",viewName:"View name",notEmpty:"Cannot be empty",cancel:"Cancel",save:"Save",default:"Default",rename:"Rename",deleteTip:"Are you sure you want to delete this view?",ok:"Ok"},apCopy:{copySuccess:"Copy success",copyError:"Copy failed"},...e}};exports.default=t;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vxe-table/es/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",moreFilter:"More Filters",sorterTitle:"Customize filter layout",sorterDesc:"Drag to sort. Top items appear first.",sorterReset:"Restore Defaults",sorterConfirmBtn:"Confirm"}},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",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",empty:"No data"},batchInputGroup:{popoverInputPlaceholder:"A maximum of {maxNum} entries can be entered in batches, separated by newlines"},apSummary:{total:"Total"},apView:{systemView:"System view",saveView:"Save view",maxTip:"The maximum number of views that can be saved has been reached. Please delete them before saving a new view",saveNewView:"Save as new wiew",newView:"New view",setDefault:"Default",viewName:"View name",notEmpty:"Cannot be empty",cancel:"Cancel",save:"Save",default:"Default",rename:"Rename",deleteTip:"Are you sure you want to delete this view?",ok:"Ok"},apCopy:{copySuccess:"Copy success",copyError:"Copy failed"},...e}};exports.default=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vxe-table/es/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:"重置",moreFilter:"更多筛选",sorterTitle:"筛选条件自定义布局",sorterDesc:"可拖动排序,越靠前的筛选项会优先展示在列表页",sorterReset:"恢复默认",sorterConfirmBtn:"确定"}},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:"导出",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:"附件"},batchInputGroup:{popoverInputPlaceholder:"支持批量输入,可用换行符分隔,最多输入{maxNum}条"},apSummary:{total:"合计"},apView:{systemView:"系统视图",saveView:"保存视图",maxTip:"视图已达保存上限,请先删除后再保存新视图",saveNewView:"保存新视图",newView:"新视图",setDefault:"设为默认",viewName:"视图名称",notEmpty:"不可为空",cancel:"取消",save:"保存",default:"默认",rename:"重命名",deleteTip:"确定删除该视图吗?",ok:"确定"},apCopy:{copySuccess:"复制成功",copyError:"复制失败"},...e}};exports.default=t;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vxe-table/es/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:"重置",moreFilter:"更多筛选",sorterTitle:"筛选条件自定义布局",sorterDesc:"可拖动排序,越靠前的筛选项会优先展示在列表页",sorterReset:"恢复默认",sorterConfirmBtn:"确定"}},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:"导出",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:"附件",empty:"暂无数据"},batchInputGroup:{popoverInputPlaceholder:"支持批量输入,可用换行符分隔,最多输入{maxNum}条"},apSummary:{total:"合计"},apView:{systemView:"系统视图",saveView:"保存视图",maxTip:"视图已达保存上限,请先删除后再保存新视图",saveNewView:"保存新视图",newView:"新视图",setDefault:"设为默认",viewName:"视图名称",notEmpty:"不可为空",cancel:"取消",save:"保存",default:"默认",rename:"重命名",deleteTip:"确定删除该视图吗?",ok:"确定"},apCopy:{copySuccess:"复制成功",copyError:"复制失败"},...e}};exports.default=t;
|
package/lib/src/mask/utils.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function lockScrollable(): () => void;
|
|
1
|
+
export declare function lockScrollable(): (() => void) | undefined;
|
|
2
2
|
export declare const getMaskZIndex: () => number;
|
package/lib/src/mask/utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function n(){const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../utils/index.js");function d(o){if(!o||o.nodeType!==Node.ELEMENT_NODE)return{x:!1,y:!1};const t=window.getComputedStyle(o),l=t.overflowX,e=t.overflowY,n=l==="scroll"||l==="auto",c=e==="scroll"||e==="auto",r=o.scrollWidth>o.clientWidth,s=o.scrollHeight>o.clientHeight;return{x:n&&r,y:c&&s}}function a(){const o=`aplus-ui-locker-${Date.now()}`,{y:t}=d(document.body);if(!t)return;const l=i.getScrollbarSize();let e=document.querySelector(`style#${o}`);return e||(e=document.createElement("style"),e.id=o,e.innerHTML=`
|
|
2
2
|
html body {
|
|
3
3
|
overflow-y: hidden;
|
|
4
|
-
width: calc(100% -
|
|
4
|
+
width: calc(100% - ${l||15}px);
|
|
5
5
|
}
|
|
6
|
-
`,document.head.appendChild(e)),()=>{e.remove()}}function
|
|
6
|
+
`,document.head.appendChild(e)),()=>{e.remove()}}function u(){let o=99;return()=>++o}const f=u();exports.getMaskZIndex=f;exports.lockScrollable=a;
|
package/lib/src/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "6.
|
|
1
|
+
declare const _default: "6.31.0";
|
|
2
2
|
export default _default;
|
package/lib/src/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="6.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="6.31.0";exports.default=e;
|
package/package.json
CHANGED
package/theme/antdv-override.css
CHANGED
|
@@ -262,9 +262,6 @@
|
|
|
262
262
|
[data-aplus-ui-mode='aplus'] .ant-input-number .ant-input-number-input-wrap > input::placeholder {
|
|
263
263
|
color: #abb7cc;
|
|
264
264
|
}
|
|
265
|
-
[data-aplus-ui-mode='aplus'] .ant-input-clear-icon {
|
|
266
|
-
line-height: 18px;
|
|
267
|
-
}
|
|
268
265
|
[data-aplus-ui-mode='aplus'] .ant-tooltip div[role='tooltip'] {
|
|
269
266
|
padding-block: 6px;
|
|
270
267
|
}
|
|
@@ -542,9 +539,6 @@
|
|
|
542
539
|
[data-aplus-ui-mode='admin'] .ant-input-number .ant-input-number-input-wrap > input::placeholder {
|
|
543
540
|
color: #bfbfbf;
|
|
544
541
|
}
|
|
545
|
-
[data-aplus-ui-mode='admin'] .ant-input-clear-icon {
|
|
546
|
-
line-height: 18px;
|
|
547
|
-
}
|
|
548
542
|
[data-aplus-ui-mode='admin'] .ant-drawer-right .ant-drawer-content-wrapper {
|
|
549
543
|
box-shadow: -8px 2px 24px 0 rgba(51, 51, 51, 0.2);
|
|
550
544
|
}
|
|
@@ -299,10 +299,6 @@
|
|
|
299
299
|
.ant-input-number .ant-input-number-input-wrap > input::placeholder {
|
|
300
300
|
color: #abb7cc;
|
|
301
301
|
}
|
|
302
|
-
|
|
303
|
-
.ant-input-clear-icon {
|
|
304
|
-
line-height: 18px;
|
|
305
|
-
}
|
|
306
302
|
// Tooltip
|
|
307
303
|
.ant-tooltip div[role='tooltip'] {
|
|
308
304
|
padding-block: 6px;
|
|
@@ -624,10 +620,6 @@
|
|
|
624
620
|
color: #bfbfbf;
|
|
625
621
|
}
|
|
626
622
|
|
|
627
|
-
.ant-input-clear-icon {
|
|
628
|
-
line-height: 18px;
|
|
629
|
-
}
|
|
630
|
-
|
|
631
623
|
// Drawer
|
|
632
624
|
.ant-drawer {
|
|
633
625
|
&-right {
|
|
@@ -115,3 +115,18 @@
|
|
|
115
115
|
.aplus-ap-appendix__file-area-content-item--loading-content:hover .ant-typography {
|
|
116
116
|
color: var(--ap-text-color-4);
|
|
117
117
|
}
|
|
118
|
+
.aplus-ap-appendix__empty {
|
|
119
|
+
display: flex;
|
|
120
|
+
align-items: center;
|
|
121
|
+
justify-content: center;
|
|
122
|
+
color: var(--ap-text-color-3);
|
|
123
|
+
font-size: 12px;
|
|
124
|
+
line-height: 18px;
|
|
125
|
+
}
|
|
126
|
+
.aplus-ap-appendix__empty-content {
|
|
127
|
+
display: flex;
|
|
128
|
+
flex-direction: column;
|
|
129
|
+
align-items: center;
|
|
130
|
+
justify-content: center;
|
|
131
|
+
gap: 8px;
|
|
132
|
+
}
|
|
@@ -74,4 +74,19 @@
|
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
+
&__empty{
|
|
78
|
+
display: flex;
|
|
79
|
+
align-items: center;
|
|
80
|
+
justify-content: center;
|
|
81
|
+
color: var(--ap-text-color-3);
|
|
82
|
+
font-size: @font-size-base;
|
|
83
|
+
line-height: @line-height-base;
|
|
84
|
+
&-content {
|
|
85
|
+
display: flex;
|
|
86
|
+
flex-direction: column;
|
|
87
|
+
align-items: center;
|
|
88
|
+
justify-content: center;
|
|
89
|
+
gap: 8px;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
77
92
|
});
|
|
@@ -26,13 +26,14 @@
|
|
|
26
26
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
// 此处颜色不写死,根据UIMode自动切换
|
|
30
|
+
// &__alertContent {
|
|
31
|
+
// color: #182948;
|
|
32
|
+
// }
|
|
32
33
|
|
|
33
|
-
//
|
|
34
|
+
// 此处颜色不写死,根据UIMode自动切换
|
|
34
35
|
&__prefix {
|
|
35
|
-
color: #182948;
|
|
36
|
+
// color: #182948;
|
|
36
37
|
display: inline-block;
|
|
37
38
|
}
|
|
38
39
|
&__text {
|
|
@@ -136,6 +136,10 @@
|
|
|
136
136
|
align-items: center;
|
|
137
137
|
color: var(--ap-text-color-3);
|
|
138
138
|
}
|
|
139
|
+
.aplus-ap-view-menu-list-content .menu-list-content-action-delete svg {
|
|
140
|
+
outline: none;
|
|
141
|
+
box-shadow: none;
|
|
142
|
+
}
|
|
139
143
|
.aplus-ap-view-menu-list-content .menu-list-content-edit {
|
|
140
144
|
display: flex;
|
|
141
145
|
align-items: center;
|
package/theme/index.css
CHANGED
|
@@ -363,9 +363,6 @@
|
|
|
363
363
|
[data-aplus-ui-mode='aplus'] .ant-input-number .ant-input-number-input-wrap > input::placeholder {
|
|
364
364
|
color: #abb7cc;
|
|
365
365
|
}
|
|
366
|
-
[data-aplus-ui-mode='aplus'] .ant-input-clear-icon {
|
|
367
|
-
line-height: 18px;
|
|
368
|
-
}
|
|
369
366
|
[data-aplus-ui-mode='aplus'] .ant-tooltip div[role='tooltip'] {
|
|
370
367
|
padding-block: 6px;
|
|
371
368
|
}
|
|
@@ -643,9 +640,6 @@
|
|
|
643
640
|
[data-aplus-ui-mode='admin'] .ant-input-number .ant-input-number-input-wrap > input::placeholder {
|
|
644
641
|
color: #bfbfbf;
|
|
645
642
|
}
|
|
646
|
-
[data-aplus-ui-mode='admin'] .ant-input-clear-icon {
|
|
647
|
-
line-height: 18px;
|
|
648
|
-
}
|
|
649
643
|
[data-aplus-ui-mode='admin'] .ant-drawer-right .ant-drawer-content-wrapper {
|
|
650
644
|
box-shadow: -8px 2px 24px 0 rgba(51, 51, 51, 0.2);
|
|
651
645
|
}
|
|
@@ -1022,11 +1016,7 @@
|
|
|
1022
1016
|
transition: all 0.3s;
|
|
1023
1017
|
transform: rotateZ(0deg);
|
|
1024
1018
|
}
|
|
1025
|
-
.aplus-ap-expand-alert__alertContent {
|
|
1026
|
-
color: #182948;
|
|
1027
|
-
}
|
|
1028
1019
|
.aplus-ap-expand-alert__prefix {
|
|
1029
|
-
color: #182948;
|
|
1030
1020
|
display: inline-block;
|
|
1031
1021
|
}
|
|
1032
1022
|
.aplus-ap-expand-alert__showItem {
|
|
@@ -3134,6 +3124,21 @@ div.aplus-ap-info-layout-admin__header-shadow.aplus-ap-info-layout-admin__sticky
|
|
|
3134
3124
|
.aplus-ap-appendix__file-area-content-item--loading-content:hover .ant-typography {
|
|
3135
3125
|
color: var(--ap-text-color-4);
|
|
3136
3126
|
}
|
|
3127
|
+
.aplus-ap-appendix__empty {
|
|
3128
|
+
display: flex;
|
|
3129
|
+
align-items: center;
|
|
3130
|
+
justify-content: center;
|
|
3131
|
+
color: var(--ap-text-color-3);
|
|
3132
|
+
font-size: 12px;
|
|
3133
|
+
line-height: 18px;
|
|
3134
|
+
}
|
|
3135
|
+
.aplus-ap-appendix__empty-content {
|
|
3136
|
+
display: flex;
|
|
3137
|
+
flex-direction: column;
|
|
3138
|
+
align-items: center;
|
|
3139
|
+
justify-content: center;
|
|
3140
|
+
gap: 8px;
|
|
3141
|
+
}
|
|
3137
3142
|
.aplus-ap-group-search__search > .ant-select-selector {
|
|
3138
3143
|
padding: 0px 10px 0 0 !important;
|
|
3139
3144
|
}
|
|
@@ -4087,6 +4092,10 @@ div.aplus-ap-info-layout-admin__header-shadow.aplus-ap-info-layout-admin__sticky
|
|
|
4087
4092
|
align-items: center;
|
|
4088
4093
|
color: var(--ap-text-color-3);
|
|
4089
4094
|
}
|
|
4095
|
+
.aplus-ap-view-menu-list-content .menu-list-content-action-delete svg {
|
|
4096
|
+
outline: none;
|
|
4097
|
+
box-shadow: none;
|
|
4098
|
+
}
|
|
4090
4099
|
.aplus-ap-view-menu-list-content .menu-list-content-edit {
|
|
4091
4100
|
display: flex;
|
|
4092
4101
|
align-items: center;
|