@aplus-frontend/ui 0.5.0-beta.1 → 0.5.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-action/item-popconfirm/index.vue.d.ts +13 -0
- package/es/src/ap-form/hooks/use-watch.d.ts +4 -1
- package/es/src/ap-form/hooks/use-watch.mjs +31 -29
- package/es/src/ap-form/index.mjs +1 -1
- package/es/src/ap-form/search-form/index.vue.mjs +14 -15
- package/es/src/ap-grid/constants.d.ts +4 -4
- package/es/src/ap-grid/constants.mjs +8 -8
- package/es/src/ap-grid/index.vue.mjs +228 -188
- package/es/src/ap-grid/interface.d.ts +0 -1
- package/es/src/ap-grid/utils/table.mjs +12 -12
- package/es/src/ap-modal/enums/modalMessage.d.ts +6 -0
- package/es/src/ap-modal/enums/modalMessage.mjs +4 -0
- package/es/src/ap-modal/index.d.ts +2 -1
- package/es/src/ap-modal/index.mjs +2 -0
- package/es/src/ap-modal/interface.d.ts +126 -1
- package/es/src/ap-modal/utils/createModalStream.d.ts +2 -0
- package/es/src/ap-modal/utils/createModalStream.mjs +99 -0
- package/es/src/ap-modal/utils/index.d.ts +1 -0
- package/es/src/ap-modal/utils/index.mjs +4 -2
- package/es/src/ap-table/components/dynamic-component/index.vue2.mjs +4 -7
- package/es/src/ap-table/utils.d.ts +1 -4
- package/es/src/ap-table/utils.mjs +43 -41
- package/es/src/business/ap-attachment/ApAttachment.mjs +13 -13
- package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +13 -13
- package/es/src/business/ap-ladder/ApLadder.vue.d.ts +13 -0
- package/es/src/business/ap-ladder/index.d.ts +39 -0
- package/es/src/business/ap-summary/ap-summary.vue2.mjs +36 -38
- package/es/src/business/ap-table-modal/index.d.ts +3 -3
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +1 -1
- package/es/src/config-provider/config-provider.mjs +23 -23
- package/es/src/utils/config-provider-preset.d.ts +41 -0
- package/es/src/utils/config-provider-preset.mjs +24 -15
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +13 -0
- package/lib/src/ap-form/hooks/use-watch.d.ts +4 -1
- package/lib/src/ap-form/hooks/use-watch.js +1 -1
- package/lib/src/ap-form/index.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-grid/constants.d.ts +4 -4
- package/lib/src/ap-grid/constants.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-grid/interface.d.ts +0 -1
- package/lib/src/ap-grid/utils/table.js +1 -1
- package/lib/src/ap-modal/enums/modalMessage.d.ts +6 -0
- package/lib/src/ap-modal/enums/modalMessage.js +1 -0
- package/lib/src/ap-modal/index.d.ts +2 -1
- package/lib/src/ap-modal/index.js +1 -1
- package/lib/src/ap-modal/interface.d.ts +126 -1
- package/lib/src/ap-modal/utils/createModalStream.d.ts +2 -0
- package/lib/src/ap-modal/utils/createModalStream.js +1 -0
- package/lib/src/ap-modal/utils/index.d.ts +1 -0
- package/lib/src/ap-modal/utils/index.js +1 -1
- package/lib/src/ap-table/components/dynamic-component/index.vue2.js +1 -1
- package/lib/src/ap-table/utils.d.ts +1 -4
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
- package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue2.js +1 -1
- package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +13 -0
- package/lib/src/business/ap-ladder/index.d.ts +39 -0
- package/lib/src/business/ap-summary/ap-summary.vue2.js +1 -1
- package/lib/src/business/ap-table-modal/index.d.ts +3 -3
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +1 -1
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/utils/config-provider-preset.d.ts +41 -0
- package/lib/src/utils/config-provider-preset.js +1 -1
- package/package.json +6 -6
- package/theme/ap-grid/index.css +32 -0
- package/theme/ap-grid/index.less +42 -0
- package/theme/index.css +32 -0
|
@@ -1,16 +1,141 @@
|
|
|
1
|
-
import { ModalProps } from '@aplus-frontend/antdv';
|
|
1
|
+
import { ModalProps, ModalFuncProps } from '@aplus-frontend/antdv';
|
|
2
|
+
import { ModalFunc } from '@aplus-frontend/antdv/lib/modal/confirm';
|
|
2
3
|
export type CreateModalFuncProps<ContentRecord = any> = Omit<ModalProps, 'open' | 'onUpdate:open' | 'destroyOnClose' | 'onCancel' | 'onOk' | 'getContainer' | 'icon'> & Partial<{
|
|
4
|
+
/**
|
|
5
|
+
* 点击取消回调
|
|
6
|
+
* @param params content组件内使用defineExpose导出的对象
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
3
9
|
onCancel: (params: ContentRecord) => any | Promise<any>;
|
|
10
|
+
/**
|
|
11
|
+
* 点击确定回调
|
|
12
|
+
* @param params content组件内使用defineExpose导出的对象
|
|
13
|
+
* @returns
|
|
14
|
+
*/
|
|
4
15
|
onOk: (params: ContentRecord) => any | Promise<any>;
|
|
16
|
+
/**
|
|
17
|
+
* 指定弹框挂载的 HTML 节点
|
|
18
|
+
*/
|
|
5
19
|
getContainer: HTMLElement;
|
|
20
|
+
/**
|
|
21
|
+
* 内容
|
|
22
|
+
*/
|
|
6
23
|
content: any;
|
|
24
|
+
/**
|
|
25
|
+
* 关闭时是否销毁弹框
|
|
26
|
+
*/
|
|
7
27
|
destroyOnClose: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* 自适应高度
|
|
30
|
+
*/
|
|
8
31
|
wrapperOffset: boolean | number;
|
|
9
32
|
}>;
|
|
10
33
|
export type CreateModalFuncReturn = {
|
|
34
|
+
/**
|
|
35
|
+
* 销毁弹框
|
|
36
|
+
* @returns
|
|
37
|
+
*/
|
|
11
38
|
destroy: () => void;
|
|
39
|
+
/**
|
|
40
|
+
* 更新弹框 props 属性
|
|
41
|
+
* @param newConfig
|
|
42
|
+
* @returns
|
|
43
|
+
*/
|
|
12
44
|
update: (newConfig: CreateModalFuncProps) => void;
|
|
45
|
+
/**
|
|
46
|
+
* 打开弹框
|
|
47
|
+
* @returns
|
|
48
|
+
*/
|
|
13
49
|
open: () => void;
|
|
50
|
+
/**
|
|
51
|
+
* 关闭弹框,不销毁
|
|
52
|
+
* @returns
|
|
53
|
+
*/
|
|
14
54
|
close: () => void;
|
|
15
55
|
};
|
|
16
56
|
export type CreateModalFunc = (props: CreateModalFuncProps) => CreateModalFuncReturn;
|
|
57
|
+
export type ModalStreamNextFunc<ModalType extends ModalStreamTypeKey = ModalStreamTypeKey> = (option: {
|
|
58
|
+
/**
|
|
59
|
+
* 下一步弹框的id
|
|
60
|
+
*/
|
|
61
|
+
modalId?: string;
|
|
62
|
+
/**
|
|
63
|
+
* 下一步弹框传递的参数
|
|
64
|
+
*/
|
|
65
|
+
params?: any;
|
|
66
|
+
/**
|
|
67
|
+
* 本次弹框关闭前的回调,createModal默认关闭弹框,其他弹框类型默认销毁弹框,调用弹框实例的open方法可以不关闭弹框
|
|
68
|
+
*/
|
|
69
|
+
handleCurrentModal?: (
|
|
70
|
+
/**
|
|
71
|
+
* 本次弹框的实例方法
|
|
72
|
+
*/
|
|
73
|
+
modalExample: ModalStreamTypeExample[ModalType]) => any | Promise<any>;
|
|
74
|
+
}) => any | Promise<any>;
|
|
75
|
+
export type ModalStreamType = {
|
|
76
|
+
createModal: CreateModalStream<'createModal'>;
|
|
77
|
+
info: ModalFuncStream<'info'>;
|
|
78
|
+
success: ModalFuncStream<'success'>;
|
|
79
|
+
error: ModalFuncStream<'error'>;
|
|
80
|
+
warning: ModalFuncStream<'warning'>;
|
|
81
|
+
confirm: ModalFuncStream<'confirm'>;
|
|
82
|
+
};
|
|
83
|
+
export type ModalStreamFuncReturn = ReturnType<ModalFunc> & {
|
|
84
|
+
open: () => void;
|
|
85
|
+
};
|
|
86
|
+
export type ModalStreamTypeExample = {
|
|
87
|
+
createModal: CreateModalFuncReturn;
|
|
88
|
+
info: ModalStreamFuncReturn;
|
|
89
|
+
success: ModalStreamFuncReturn;
|
|
90
|
+
error: ModalStreamFuncReturn;
|
|
91
|
+
warning: ModalStreamFuncReturn;
|
|
92
|
+
confirm: ModalStreamFuncReturn;
|
|
93
|
+
};
|
|
94
|
+
export type ModalFuncStream<ModalType extends ModalStreamTypeKey = ModalStreamTypeKey> = Omit<ModalFuncProps, 'onOk' | 'onCancel'> & {
|
|
95
|
+
/**
|
|
96
|
+
* 点击确定回调
|
|
97
|
+
* @param next 下一步
|
|
98
|
+
* @returns
|
|
99
|
+
*/
|
|
100
|
+
onOk?: (next: ModalStreamNextFunc<ModalType>) => any | Promise<any>;
|
|
101
|
+
/**
|
|
102
|
+
* 点击取消回调
|
|
103
|
+
* @param next 下一步
|
|
104
|
+
* @returns
|
|
105
|
+
*/
|
|
106
|
+
onCancel?: (next: ModalStreamNextFunc<ModalType>) => any | Promise<any>;
|
|
107
|
+
};
|
|
108
|
+
export type CreateModalStream<ModalType extends ModalStreamTypeKey = ModalStreamTypeKey> = Omit<CreateModalFuncProps, 'destroyOnClose' | 'onOk' | 'onCancel'> & {
|
|
109
|
+
/**
|
|
110
|
+
* 点击确定回调
|
|
111
|
+
* * @param params content组件内使用defineExpose导出的对象
|
|
112
|
+
* @param next 下一步
|
|
113
|
+
* @returns
|
|
114
|
+
*/
|
|
115
|
+
onOk?: (params: any, next: ModalStreamNextFunc<ModalType>) => any | Promise<any>;
|
|
116
|
+
/**
|
|
117
|
+
* 点击取消回调
|
|
118
|
+
* * @param params content组件内使用defineExpose导出的对象
|
|
119
|
+
* @param next 下一步
|
|
120
|
+
* @returns
|
|
121
|
+
*/
|
|
122
|
+
onCancel?: (params: any, next: ModalStreamNextFunc<ModalType>) => any | Promise<any>;
|
|
123
|
+
};
|
|
124
|
+
export type ModalStreamTypeKey = keyof ModalStreamType;
|
|
125
|
+
export type CreateModalStreamProps<ModalType extends ModalStreamTypeKey = ModalStreamTypeKey> = ModalType extends ModalStreamTypeKey ? {
|
|
126
|
+
/**
|
|
127
|
+
* 弹框id
|
|
128
|
+
*/
|
|
129
|
+
modalId: string;
|
|
130
|
+
/**
|
|
131
|
+
* 弹框类型
|
|
132
|
+
*/
|
|
133
|
+
modalType?: ModalType;
|
|
134
|
+
/**
|
|
135
|
+
* 弹框属性
|
|
136
|
+
* @param params 上一步弹框传递的参数
|
|
137
|
+
* @returns
|
|
138
|
+
*/
|
|
139
|
+
props: (params: any) => Promise<ModalStreamType[ModalType]>;
|
|
140
|
+
} : never;
|
|
141
|
+
export type CreateModalStreamFunc<ModalType extends ModalStreamTypeKey = ModalStreamTypeKey> = (streamList: CreateModalStreamProps<ModalType>[], firstModalId?: string) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("@aplus-frontend/utils"),z=require("./createModal.js"),P=require("@aplus-frontend/antdv"),m=require("../enums/modalMessage.js"),j=(N,M)=>{var k;const I=M??(Array.isArray(N)?(k=N[0])==null?void 0:k.modalId:void 0),w=new Map;let y,S,l=1e3;const C=async({modalId:i,params:f,handleCurrentModal:t})=>{y=f;const d=N.find(s=>s.modalId===i);let n=!1;if(S){const s=w.get(S),o={...s,destroy:()=>{var a;(a=s==null?void 0:s.destroy)==null||a.call(s),w.delete(S)},open:()=>{n=!0}};await(t==null?void 0:t(o))}return d&&setTimeout(()=>{T(d)}),n},g=()=>{var i;for(const[f,t]of w)(i=t==null?void 0:t.destroy)==null||i.call(t)},T=async i=>{var q,D,_,A;const{modalId:f,modalType:t="createModal",props:d}=i;S=f;const n=w.get(f),s=await(d==null?void 0:d(y));l=Math.max((s==null?void 0:s.zIndex)??0,l),l+=1;let o,a=!1;if(t==="createModal"){const e=s,u=async r=>(a=!0,await C(r));o={...e,destroyOnClose:!1,zIndex:l,onOk:async r=>{var E;const c=await((E=e==null?void 0:e.onOk)==null?void 0:E.call(e,r,u));if(a||g(),c)throw new Error(m.ModalMessage.NOT_NEED_CLOSE)},onCancel:async r=>{var E;const c=await((E=e==null?void 0:e.onCancel)==null?void 0:E.call(e,r,u));if(a||g(),c)throw new Error(m.ModalMessage.NOT_NEED_CLOSE)}}}else{const e=s,u=async r=>(a=!0,await C(r));o={...e,zIndex:l,onOk:async()=>{var c;const r=await((c=e==null?void 0:e.onOk)==null?void 0:c.call(e,u));if(a||g(),r)throw new Error(m.ModalMessage.NOT_NEED_CLOSE)},onCancel:async()=>{var c;const r=await((c=e==null?void 0:e.onCancel)==null?void 0:c.call(e,u));if(a||g(),r)throw new Error(m.ModalMessage.NOT_NEED_CLOSE)}}}if(n){n==null||n.update(o),(q=n==null?void 0:n.open)==null||q.call(n);return}else if(t==="createModal"){const e=z.createModal(o);(D=e==null?void 0:e.open)==null||D.call(e),w.set(f,e)}else(A=(_=P.Modal)==null?void 0:_[t])==null||A.call(_,o)},O=N.find(i=>b.isValid(I)&&i.modalId===I);O!==void 0&&T(O)};exports.createModalStream=j;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./createModal.js");exports.createModal=e.createModal;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./createModal.js"),a=require("./createModalStream.js");exports.createModal=e.createModal;exports.createModalStream=a.createModalStream;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=e.defineComponent({name:"ApTableDynamicComponent",inheritAttrs:!1,__name:"index",props:{customRender:{type:Function}},setup(o){return(n,r)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.customRender(n.$attrs))))}});exports.default=t;
|
|
@@ -1010,10 +1010,7 @@ export declare function getSearchFormItemRenderNode(item: any, extraRenderMap?:
|
|
|
1010
1010
|
};
|
|
1011
1011
|
parser: {
|
|
1012
1012
|
type: PropType<(displayValue: string) => ValueType>;
|
|
1013
|
-
default: (displayValue: string) =>
|
|
1014
|
-
* 通常情况下,表格渲染是不需要请求网络数据的,因此这里删掉request,
|
|
1015
|
-
* 如果需要做映射,可以在外部发起一次网络请求,然后使用valueEnum设置匹配枚举。
|
|
1016
|
-
*/).ValueType;
|
|
1013
|
+
default: (displayValue: string) => ValueType;
|
|
1017
1014
|
};
|
|
1018
1015
|
formatter: {
|
|
1019
1016
|
type: PropType<(value: ValueType, info: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("lodash-unified"),p=require("./constants.js"),g=require("@fruits-chain/utils");require("../ap-form/index.js");const h=require("@aplus-frontend/antdv"),j=require("@ant-design/icons-vue");require("./components/dynamic-component/index.vue.js");const f=require("./components/dynamic-component/index.vue2.js"),O=require("../ap-form/item/index.vue.js");function E(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!l.isVNode(e)}const m=(e,t,n)=>{let o={};return u.isObject(e)?Object.keys(e).forEach(i=>{u.isObject(e[i])?o[i]=m(e[i],t[i],n):o[i]=n(e[i],t)}):o=n(e,t),o},N=(e,t)=>{switch(e){case"dayjs":return t.valueOf();case"dayjsRange":return t.map(n=>n.valueOf());case"dayjsDayRange":{const[n,o]=t;return[n.startOf("day").valueOf(),o.endOf("day").valueOf()]}case"multiple":case"multipleNumber":return u.isArray(t)?t:[t];case"boolean":return t;case"object":return t;default:return t}};function C(e){return u.isArray(e)?e.join("."):e}function F(e){const t=Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase();return t==="string"&&typeof e=="object"?"object":e===null?"null":e===void 0?"undefined":t}const y=e=>F(e)==="map"?e:new Map(Object.entries(e||{})),a=e=>{const t=[],n=y(e);return n.forEach((o,i)=>{const r=n.get(i)||n.get(`${i}`);if(r){if(typeof r=="object"&&(r!=null&&r.text)){t.push({text:r==null?void 0:r.text,value:i,label:r==null?void 0:r.text,disabled:r.disabled});return}t.push({text:r,label:r,value:i})}}),t},_=e=>u.isUndefined(e)||e<0?0:e;function T(e,t){return!e||!u.isFunction(e)?e:e(t)}function v(e){let t=e.valueType||"text";return e.valueEnum&&(t="status"),t}function S(e,t,n,o){var s;const i=p.apTableRenderItemMap[e];if(i)return l.createVNode(i,l.mergeProps(t,{mode:"read"}),null);const r=o==null?void 0:o[e];return((s=r==null?void 0:r.render)==null?void 0:s.call(r,t.value,n,t))||t.value}function V(e,t){if(e.customRenderFormItem){let r=function(s){const c=s.item.customRenderFormItem(s.item);return l.cloneVNode(c,{...s.item.fieldProps,span:s.item.span,...c.props||{},hidden:s.hidden,class:s.class})};return{Comp:f.default,render:r}}const n=p.apTableFormItemMap[e.valueType];if(n)return{Comp:n};const o=t==null?void 0:t[e.valueType];function i(r){var c;const s=(c=o==null?void 0:o.renderFormItem)==null?void 0:c.call(o,r.item.fieldProps.field);return s?l.createVNode(O.default,l.mergeProps(r.item.fieldProps,{hidden:r.hidden,class:r.class,span:e.span}),E(s)?s:{default:()=>[s]}):null}return{Comp:f.default,render:i}}function q(e,t){const n=T(e.fieldProps,t),o=(n==null?void 0:n.field)||n||{},i=e.valueType==="switch",r=e.valueType==="index",s=i?{checked:t.value}:{value:r?t.index+1:t.value};return e.valueEnum&&(o.valueEnum=e.valueEnum),{...u.omit(o,["request"]),...s}}function P(e){const t={...e};return u.isBoolean(e.filters)&&e.filters&&e.valueEnum&&(t.filters=a(e.valueEnum)),t}function I(e,t){var o;const n=t||{};return e.valueEnum&&!((o=n.field)!=null&&o.options)&&(n.field={...n.field,options:a(e.valueEnum)}),n}function A(e){if(!g.isType("Object")(e))return e;try{return JSON.stringify(e)}catch{return e}}function x(e,t,n,o){const i=n==null?void 0:n({title:e.title,column:e}),r=(i==null?void 0:i.filter(b=>b.type!==Symbol.for("v-cmt")))||[];if(i&&r.length>0)return i;const c=u.isString(e.title)?l.createVNode("span",{class:t,title:e.title},[e.title]):e.title,d=e.tooltip?u.isFunction(e.tooltip)?e.tooltip(e):l.createVNode(l.Fragment,null,[e.tooltip]):null;return d?l.createVNode("span",{style:{display:"inline-flex",alignItems:"center",maxWidth:"100%"}},[c,l.createVNode(h.Tooltip,{title:d,placement:"bottom"},{default:()=>[l.createVNode(j.QuestionCircleOutlined,{style:{padding:"4px",color:o,verticalAlign:"middle"}},null)]})]):c}function R(e,t){const n=[];function o(i){var r;for(const s of i)(r=s.children)!=null&&r.length?o(s.children):n.push(t(s))}return o(e),n}function w(e,t){if(u.isArray(e)&&u.isArray(t))return u.isEqual(u.sortBy(e),u.sortBy(t));if(u.isPlainObject(e)&&u.isPlainObject(t)){const n=o=>u.every(o,i=>i==null)||u.isEmpty(o);if(n(e)&&n(t))return!0}}function U(e){if(e!==!1)return e}exports.apColumnToColumn=P;exports.dataIndexToStr=C;exports.falseToUndefined=U;exports.formatParamsValueType=m;exports.getColumnOrder=_;exports.getFieldProps=T;exports.getSearchFormItemRenderNode=V;exports.getTableCellRenderNode=S;exports.getTableRenderProps=q;exports.getTableRenderType=v;exports.getTableTitle=x;exports.isEqualCustom=w;exports.objectToMap=y;exports.objectToString=A;exports.parseFieldValue=N;exports.recursionApColumns=R;exports.updateFormProps=I;exports.valueEnumToArray=a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("@aplus-frontend/antdv");require("../../config-provider/index.js");const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("@aplus-frontend/antdv");require("../../config-provider/index.js");const k=require("./constans.js"),f=require("../../ap-download/utils/getFileInfo.js"),G=require("../../ap-download/hooks/index.js"),F=require("lodash-unified"),g=require("@ant-design/icons-vue"),U=require("../../config-provider/hooks/use-namespace.js"),v=require("../../config-provider/hooks/use-global-config.js"),j=require("../../config-provider/hooks/use-locale.js"),z=e.defineComponent({name:"ApAttachment",props:k.ApAttachmentProps(),setup(t){const{b:w,e:l}=U.useNamespace("ap-attachment"),y=v.useGlobalConfig("uiMode"),b=v.useGlobalConfig("apUpload"),N=v.useGlobalConfig("downloadCenterTriggerConfig"),{lang:O,t:r}=j.useLocale(),o=e.ref(!1),c=e.ref(""),d=e.useSlots(),q=e.computed(()=>O.value==="zh-cn"?"zh_CN":"en_US"),u=e.computed(()=>t.attachmentList.length===1),h=e.computed(()=>t.needName?t.attachmentList.length>0&&t.needName&&t.needName.nameKey?t.attachmentList[0][t.needName.nameKey]:"":t.attachmentList.length>0?t.attachmentList[0].fileName:""),T=e.computed(()=>u.value?h.value:r("ap.apAttachment.downloadall")),L=e.computed(()=>t.color?t.color:y.value==="aplus"?"#0070FF":"#1890FF"),x=e.computed(()=>({width:u.value?"auto":"266px"})),V=e.computed(()=>({"--download-main-color":L.value,"--download-main-color-opacity":f.getHexWithOpacity(L.value,.6)})),I=e.computed(()=>{var a;return t.getOssAccess||((a=b.value)==null?void 0:a.getOssAccess)}),P=e.computed(()=>{const a=d.default?d.default()[0]:null;return a?e.cloneVNode(a,{style:{"font-size":"16px"}}):null}),m=F.debounce(async(a,i)=>{var n,C;if(!t.disabled){o.value=!0,i&&(c.value=i);try{const s=F.isArray(e.toRaw(a))?e.toRaw(a):[e.toRaw(a)];if((n=N.value)!=null&&n.trigger){const _=f.getFileInfo(t.needName,s).map(A=>({objectName:A.path,fileName:A.fileName}));(C=N.value)==null||C.trigger(_)}else await(await G.useOssInit(I.value,e.unref(q))).downloadFile(f.getFileInfo(t.needName,s))}catch(s){console.error(s)}finally{o.value=!1,c.value=""}}},500),S=a=>a&&a.length>0?e.createVNode("ul",{class:[l("file-list")],style:V.value},[a.map((i,n)=>e.createVNode("li",{key:n,class:[l("file-item")],onClick:()=>m(i,n+1)},[o.value&&c.value===n+1?e.createVNode("span",{class:[l("spin")]},[e.createVNode(g.LoadingOutlined,{spin:!0},null)]):null,i.fileName])),e.createVNode("li",{class:[l("down-load-all")],onClick:()=>m(t.attachmentList,"all")},[o.value&&c.value==="all"?e.createVNode("span",{class:[l("spin")]},[e.createVNode(g.LoadingOutlined,{spin:!0},null)]):null,r("ap.apAttachment.downloadall")])]):null;return()=>{var a;return((a=t.attachmentList)==null?void 0:a.length)>0&&e.createVNode("div",{class:[w()],style:[x.value,V.value]},[e.createVNode(p.Tooltip,{title:T.value,placement:t.textToolTipPlacement,color:t.toolTipBgColor},{default:()=>[e.createVNode("div",{class:[l("content")],onClick:()=>m(u.value?t.attachmentList[0]:t.attachmentList,"global")},[o.value&&c.value==="global"?e.createVNode("div",{class:[l("spin")]},[e.createVNode(g.LoadingOutlined,{spin:!0},null)]):null,d.default?e.createVNode("div",{class:[l("text-render")]},[P.value,e.createTextVNode(" ")]):null,e.createVNode("div",{class:[l("text-inner")]},[h.value])])]}),e.createVNode(p.Popover,{content:S(t.attachmentList),placement:t.fileMorePopoverPlacement,color:"#fff"},{default:()=>[!u.value&&e.createVNode("div",{class:[l("more")]},[r("ap.apAttachment.more")])]})])}}});exports.default=z;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("@ant-design/icons-vue"),s=require("@aplus-frontend/antdv"),f={style:{display:"flex","align-items":"center"}},p=e.defineComponent({__name:"MenuItemGroup",props:{selectedRows:{},buttonProps:{},menuList:{}},setup(a){const r=a,c=e.ref({});async function t(
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("@ant-design/icons-vue"),s=require("@aplus-frontend/antdv"),f={style:{display:"flex","align-items":"center"}},p=e.defineComponent({__name:"MenuItemGroup",props:{selectedRows:{},buttonProps:{},menuList:{}},setup(a){const r=a,c=e.ref({});async function t(o,u){var l;const n=(o==null?void 0:o.id)||u;c.value[n]=!0;try{await((l=o==null?void 0:o.onClick)==null?void 0:l.call(o,{selectedRows:r==null?void 0:r.selectedRows}))}finally{c.value[n]=void 0}}return(o,u)=>(e.openBlock(),e.createBlock(e.unref(s.Menu),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.menuList,(n,l)=>(e.openBlock(),e.createBlock(e.unref(s.MenuItem),e.mergeProps({key:(n==null?void 0:n.id)||l,ref_for:!0},{...n,onClick:()=>t(n,l),disabled:c.value[(n==null?void 0:n.id)||l]??(n==null?void 0:n.disabled)??!1}),{default:e.withCtx(()=>[e.createElementVNode("div",f,[e.withDirectives(e.createVNode(e.unref(d.LoadingOutlined),{style:{"margin-right":"10px"}},null,512),[[e.vShow,c.value[(n==null?void 0:n.id)||l]]]),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.h(e.Fragment,[n==null?void 0:n.content]))))])]),_:2},1040))),128))]),_:1}))}});exports.default=p;
|
|
@@ -81,6 +81,19 @@ declare const __VLS_component: DefineComponent<ApLadderProps, {}, {}, {}, {}, Co
|
|
|
81
81
|
'onUpdate:visible': PropType<(vis: boolean) => void>;
|
|
82
82
|
onOpenChange: PropType<(vis: boolean) => void>;
|
|
83
83
|
'onUpdate:open': PropType<(vis: boolean) => void>;
|
|
84
|
+
mask: {
|
|
85
|
+
type: BooleanConstructor;
|
|
86
|
+
default: boolean;
|
|
87
|
+
};
|
|
88
|
+
maskStyle: {
|
|
89
|
+
type: PropType<CSSProperties>;
|
|
90
|
+
default: CSSProperties;
|
|
91
|
+
};
|
|
92
|
+
maskTransitionName: StringConstructor;
|
|
93
|
+
maskClosable: {
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
default: boolean;
|
|
96
|
+
};
|
|
84
97
|
}>>, "title" | "placement" | "color" | "mouseEnterDelay" | "trigger" | "getPopupContainer" | "align" | "overlayStyle" | "overlayInnerStyle" | "overlayClassName" | "mouseLeaveDelay" | "arrowPointAtCenter" | "arrow" | "autoAdjustOverflow" | "destroyTooltipOnHide">>;
|
|
85
98
|
major: string;
|
|
86
99
|
minor: string;
|
|
@@ -73,6 +73,19 @@ declare const ApLadder: {
|
|
|
73
73
|
'onUpdate:visible': PropType<(vis: boolean) => void>;
|
|
74
74
|
onOpenChange: PropType<(vis: boolean) => void>;
|
|
75
75
|
'onUpdate:open': PropType<(vis: boolean) => void>;
|
|
76
|
+
mask: {
|
|
77
|
+
type: BooleanConstructor;
|
|
78
|
+
default: boolean;
|
|
79
|
+
};
|
|
80
|
+
maskStyle: {
|
|
81
|
+
type: PropType<CSSProperties>;
|
|
82
|
+
default: CSSProperties;
|
|
83
|
+
};
|
|
84
|
+
maskTransitionName: StringConstructor;
|
|
85
|
+
maskClosable: {
|
|
86
|
+
type: BooleanConstructor;
|
|
87
|
+
default: boolean;
|
|
88
|
+
};
|
|
76
89
|
}>>, "title" | "placement" | "color" | "mouseEnterDelay" | "trigger" | "getPopupContainer" | "align" | "overlayStyle" | "overlayInnerStyle" | "overlayClassName" | "mouseLeaveDelay" | "arrowPointAtCenter" | "arrow" | "autoAdjustOverflow" | "destroyTooltipOnHide">>;
|
|
77
90
|
major: string;
|
|
78
91
|
minor: string;
|
|
@@ -162,6 +175,19 @@ declare const ApLadder: {
|
|
|
162
175
|
'onUpdate:visible': PropType<(vis: boolean) => void>;
|
|
163
176
|
onOpenChange: PropType<(vis: boolean) => void>;
|
|
164
177
|
'onUpdate:open': PropType<(vis: boolean) => void>;
|
|
178
|
+
mask: {
|
|
179
|
+
type: BooleanConstructor;
|
|
180
|
+
default: boolean;
|
|
181
|
+
};
|
|
182
|
+
maskStyle: {
|
|
183
|
+
type: PropType<CSSProperties>;
|
|
184
|
+
default: CSSProperties;
|
|
185
|
+
};
|
|
186
|
+
maskTransitionName: StringConstructor;
|
|
187
|
+
maskClosable: {
|
|
188
|
+
type: BooleanConstructor;
|
|
189
|
+
default: boolean;
|
|
190
|
+
};
|
|
165
191
|
}>>, "title" | "placement" | "color" | "mouseEnterDelay" | "trigger" | "getPopupContainer" | "align" | "overlayStyle" | "overlayInnerStyle" | "overlayClassName" | "mouseLeaveDelay" | "arrowPointAtCenter" | "arrow" | "autoAdjustOverflow" | "destroyTooltipOnHide">>;
|
|
166
192
|
major: string;
|
|
167
193
|
minor: string;
|
|
@@ -245,6 +271,19 @@ declare const ApLadder: {
|
|
|
245
271
|
'onUpdate:visible': PropType<(vis: boolean) => void>;
|
|
246
272
|
onOpenChange: PropType<(vis: boolean) => void>;
|
|
247
273
|
'onUpdate:open': PropType<(vis: boolean) => void>;
|
|
274
|
+
mask: {
|
|
275
|
+
type: BooleanConstructor;
|
|
276
|
+
default: boolean;
|
|
277
|
+
};
|
|
278
|
+
maskStyle: {
|
|
279
|
+
type: PropType<CSSProperties>;
|
|
280
|
+
default: CSSProperties;
|
|
281
|
+
};
|
|
282
|
+
maskTransitionName: StringConstructor;
|
|
283
|
+
maskClosable: {
|
|
284
|
+
type: BooleanConstructor;
|
|
285
|
+
default: boolean;
|
|
286
|
+
};
|
|
248
287
|
}>>, "title" | "placement" | "color" | "mouseEnterDelay" | "trigger" | "getPopupContainer" | "align" | "overlayStyle" | "overlayInnerStyle" | "overlayClassName" | "mouseLeaveDelay" | "arrowPointAtCenter" | "arrow" | "autoAdjustOverflow" | "destroyTooltipOnHide">>;
|
|
249
288
|
major: string;
|
|
250
289
|
minor: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("lodash-unified"),d=require("@aplus-frontend/antdv"),l=require("./utils.js");require("../../config-provider/index.js");const i=require("@aplus-frontend/utils"),_=require("../../config-provider/hooks/use-locale.js"),B=require("../../config-provider/hooks/use-namespace.js"),b=e.defineComponent({name:"ApSummary",__name:"ap-summary",props:{data:{},columns:{},summaryTitle:{},hasSelect:{type:Boolean,default:!0},size:{default:"middle"}},setup(p){const s=p,{t:y}=_.useLocale(),f=e.computed(()=>s.summaryTitle??y("ap.apSummary.total")),x=n=>n===0,k=(n,o)=>{var r;if(!i.isNumeric(n)||o.valueType!=="number")return n;const a=(r=o.fieldProps)==null?void 0:r.field,t=(a==null?void 0:a.precision)||0;return(u.isNil(a==null?void 0:a.thousands)?!0:a==null?void 0:a.thousands)?i.toThousand(n,t):i.toFixed(n,t)},g=e.computed(()=>{let n=[];s.hasSelect&&n.push({key:"select",rowSpan:1,align:"left",value:""});const a=l.flattenColumns(s.columns).map((t,m)=>{let r;const T=u.get(s.data,l.formatDataIndex(t.dataIndex||t.key));if(x(m))r=f.value;else if(T&&(t.customRender||t.renderText)){const C=u.get(s.data,l.formatDataIndex(t.dataIndex||t.key)),c=t.customRender||t.renderText;r=c==null?void 0:c({value:C,record:s.data,text:void 0,index:0,renderIndex:0,column:{}})}else r=k(u.get(s.data,l.formatDataIndex(t.dataIndex||t.key)),t);return{key:t.key,rowSpan:1,align:t.align,value:e.createVNode(e.Fragment,null,[r])}});return n.concat(a)}),{b:h,e:v,em:S}=B.useNamespace("ap-summary");return(n,o)=>(e.openBlock(),e.createBlock(e.unref(d.TableSummaryRow),{class:e.normalizeClass(e.unref(h)())},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(a,t)=>(e.openBlock(),e.createBlock(e.unref(d.TableSummaryCell),{key:a.key,class:e.normalizeClass(`${s.size==="small"?e.unref(S)("item","small"):e.unref(v)("item")}`),index:t,style:e.normalizeStyle({textAlign:a.align})},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.value)))]),_:2},1032,["class","index","style"]))),128))]),_:1},8,["class"]))}});exports.default=b;
|
|
@@ -49,10 +49,10 @@ declare const ApTableModal: {
|
|
|
49
49
|
records: any[];
|
|
50
50
|
total: number;
|
|
51
51
|
}>;
|
|
52
|
+
maskClosable: boolean;
|
|
52
53
|
confirmLoading: boolean;
|
|
53
54
|
closable: boolean;
|
|
54
55
|
centered: boolean;
|
|
55
|
-
maskClosable: boolean;
|
|
56
56
|
forceRender: boolean;
|
|
57
57
|
destroyOnClose: boolean;
|
|
58
58
|
getContainer: string | false | HTMLElement | (() => HTMLElement);
|
|
@@ -135,10 +135,10 @@ declare const ApTableModal: {
|
|
|
135
135
|
records: any[];
|
|
136
136
|
total: number;
|
|
137
137
|
}>;
|
|
138
|
+
maskClosable: boolean;
|
|
138
139
|
confirmLoading: boolean;
|
|
139
140
|
closable: boolean;
|
|
140
141
|
centered: boolean;
|
|
141
|
-
maskClosable: boolean;
|
|
142
142
|
forceRender: boolean;
|
|
143
143
|
destroyOnClose: boolean;
|
|
144
144
|
getContainer: string | false | HTMLElement | (() => HTMLElement);
|
|
@@ -191,10 +191,10 @@ declare const ApTableModal: {
|
|
|
191
191
|
records: any[];
|
|
192
192
|
total: number;
|
|
193
193
|
}>;
|
|
194
|
+
maskClosable: boolean;
|
|
194
195
|
confirmLoading: boolean;
|
|
195
196
|
closable: boolean;
|
|
196
197
|
centered: boolean;
|
|
197
|
-
maskClosable: boolean;
|
|
198
198
|
forceRender: boolean;
|
|
199
199
|
destroyOnClose: boolean;
|
|
200
200
|
getContainer: string | false | HTMLElement | (() => HTMLElement);
|
|
@@ -44,10 +44,10 @@ declare const _default: DefineComponent<__VLS_Props, {
|
|
|
44
44
|
records: any[];
|
|
45
45
|
total: number;
|
|
46
46
|
}>;
|
|
47
|
+
maskClosable: boolean;
|
|
47
48
|
confirmLoading: boolean;
|
|
48
49
|
closable: boolean;
|
|
49
50
|
centered: boolean;
|
|
50
|
-
maskClosable: boolean;
|
|
51
51
|
forceRender: boolean;
|
|
52
52
|
destroyOnClose: boolean;
|
|
53
53
|
getContainer: string | false | HTMLElement | (() => HTMLElement);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),P=require("@aplus-frontend/antdv"),a=require("./hooks/use-global-config.js"),b=require("./config-provider-props.js"),l=require("../utils/config-provider-preset.js"),o=require("./css-var.js"),d=require("./constants.js");function V(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!r.isVNode(e)}const t=r.ref({}),M=r.defineComponent({name:"AplusConfigProvider",props:b.configProviderProps(),setup(e,{slots:f}){const u=a.useGlobalConfig("namespace"),c=a.useGlobalConfig("uiMode"),g=r.computed(()=>e.namespace?e.namespace:r.unref(u)?r.unref(u):d.DEFAULT_NAMESPACE),s=r.computed(()=>e.uiMode?e.uiMode:r.unref(c)?r.unref(c):d.DEFAULT_UIMODE),C=r.computed(()=>({namespace:r.unref(g),aplusLocale:e.aplusLocale,api:e.api,uiMode:r.unref(s),apUpload:e.apUpload,apDescriptions:e.apDescriptions,valueTypeMap:e.valueTypeMap,downloadCenterTriggerConfig:e.downloadCenterTriggerConfig,exportField:e.exportField,scrollYDomName:e.scrollYDomName})),i=a.provideGlobalConfig(C);return r.watch(()=>e,n=>{t.value=l.mergeAntdProviderConfigWithCache(l.mergeAntdProvideConfig(n),t.value)},{deep:!0,immediate:!0}),typeof window<"u"&&r.watch(()=>[r.unref(s),e.cssVar],([n,m])=>{const v=o.generateCssVar(m),p={...n==="aplus"?o.aplusCssVar:o.adminCssVar,...v};o.setCSSVariables(p)},{immediate:!0}),()=>{let n;return r.createVNode(P.ConfigProvider,t.value,V(n=r.renderSlot(f,"default",{config:i==null?void 0:i.value}))?n:{default:()=>[n]})}}});exports.ConfigProvider=M;exports.globalConfigCached=t;
|
|
@@ -76,3 +76,44 @@ export declare function mergeAntdProvideConfig(config: ConfigProviderProps): {
|
|
|
76
76
|
componentDisabled?: boolean | undefined;
|
|
77
77
|
virtual?: boolean | undefined;
|
|
78
78
|
};
|
|
79
|
+
export declare function mergeAntdProviderConfigWithCache(newConfig: ConfigProviderProps, cachedConfig: ConfigProviderProps): {
|
|
80
|
+
input?: {
|
|
81
|
+
autocomplete?: string;
|
|
82
|
+
} | undefined;
|
|
83
|
+
select?: {
|
|
84
|
+
showSearch?: boolean;
|
|
85
|
+
} | undefined;
|
|
86
|
+
form?: {
|
|
87
|
+
validateMessages?: ValidateMessages;
|
|
88
|
+
requiredMark?: RequiredMark;
|
|
89
|
+
colon?: boolean;
|
|
90
|
+
} | undefined;
|
|
91
|
+
space?: {
|
|
92
|
+
size?: ButtonSize | number;
|
|
93
|
+
} | undefined;
|
|
94
|
+
direction?: "ltr" | "rtl" | undefined;
|
|
95
|
+
pagination?: {
|
|
96
|
+
showSizeChanger?: boolean;
|
|
97
|
+
} | undefined;
|
|
98
|
+
csp?: CSPConfig | undefined;
|
|
99
|
+
locale?: Locale | undefined;
|
|
100
|
+
pageHeader?: {
|
|
101
|
+
ghost?: boolean;
|
|
102
|
+
} | undefined;
|
|
103
|
+
dropdownMatchSelectWidth?: number | boolean | undefined;
|
|
104
|
+
theme?: ThemeConfig | undefined;
|
|
105
|
+
wave?: {
|
|
106
|
+
disabled?: boolean;
|
|
107
|
+
} | undefined;
|
|
108
|
+
iconPrefixCls?: string | undefined;
|
|
109
|
+
getTargetContainer?: (() => HTMLElement | Window) | undefined;
|
|
110
|
+
getPopupContainer?: ((triggerNode?: HTMLElement) => HTMLElement) | undefined;
|
|
111
|
+
prefixCls?: string | undefined;
|
|
112
|
+
getPrefixCls?: ((suffixCls?: string, customizePrefixCls?: string) => string) | undefined;
|
|
113
|
+
renderEmpty?: __DTS_DEFAULT_0__ | undefined;
|
|
114
|
+
transformCellText?: ((tableProps: TransformCellTextProps) => any) | undefined;
|
|
115
|
+
autoInsertSpaceInButton?: boolean | undefined;
|
|
116
|
+
componentSize?: ButtonSize;
|
|
117
|
+
componentDisabled?: boolean | undefined;
|
|
118
|
+
virtual?: boolean | undefined;
|
|
119
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("lodash-unified");function i(e,n){var t,r;return e!=null&&e.parentElement?e.parentElement.classList.contains(n)?(t=e.parentElement)!=null&&t.parentElement?(r=e.parentElement.parentElement.className)==null?void 0:r.includes("basic-table"):!1:i(e.parentElement,n):!1}const u=e=>i(e,"ant-form")&&(e==null?void 0:e.parentNode)||(document==null?void 0:document.body),f=({text:e})=>{const n=t=>t==null||t==="";return Array.isArray(e)?n(e[0])?"--":e[0]:n(e)?"--":e},c=!1,s={getPopupContainer:u,transformCellText:f,autoInsertSpaceInButton:c};function l(e){const n={...e},t=Object.keys(s);for(const r of t)a.isUndefined(n[r])&&(n[r]=s[r]);return n}function d(e,n){const t={...n},r=Object.keys(e);for(const o of r)a.isUndefined(e[o])||(t[o]=e[o]);return t}exports.antdConfigProviderPresets=s;exports.autoInsertSpaceInButton=c;exports.getPopupContainer=u;exports.mergeAntdProvideConfig=l;exports.mergeAntdProviderConfigWithCache=d;exports.transformCellText=f;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aplus-frontend/ui",
|
|
3
|
-
"version": "0.5.0
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -65,19 +65,19 @@
|
|
|
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": "^4.3.
|
|
69
|
-
"vxe-table": "4.
|
|
68
|
+
"vxe-pc-ui": "^4.3.98",
|
|
69
|
+
"vxe-table": "4.11.14",
|
|
70
70
|
"@aplus-frontend/hooks": "1.0.7",
|
|
71
|
-
"@aplus-frontend/utils": "1.0.
|
|
71
|
+
"@aplus-frontend/utils": "1.0.52"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
|
-
"@aplus-frontend/antdv": "^1.0.
|
|
74
|
+
"@aplus-frontend/antdv": "^1.0.13",
|
|
75
75
|
"@aplus-frontend/icon": "^1.2.1",
|
|
76
76
|
"@aplus-frontend/oss": "^1.1.2",
|
|
77
77
|
"vue": "^3.5.13"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
|
-
"@aplus-frontend/antdv": "^1.0.
|
|
80
|
+
"@aplus-frontend/antdv": "^1.0.13",
|
|
81
81
|
"@aplus-frontend/icon": "^1.2.1",
|
|
82
82
|
"@aplus-frontend/oss": "^1.1.2",
|
|
83
83
|
"@types/sortablejs": "^1.15.8",
|
package/theme/ap-grid/index.css
CHANGED
|
@@ -249,6 +249,37 @@
|
|
|
249
249
|
font-size: 14px;
|
|
250
250
|
display: inline-flex;
|
|
251
251
|
}
|
|
252
|
+
.aplus-ap-grid-adaptive {
|
|
253
|
+
height: 100%;
|
|
254
|
+
display: flex;
|
|
255
|
+
}
|
|
256
|
+
.aplus-ap-grid-adaptive .aplus-ap-grid-vxe-wrapper {
|
|
257
|
+
min-height: 0;
|
|
258
|
+
flex: 1;
|
|
259
|
+
}
|
|
260
|
+
.aplus-ap-grid .aplus-ap-grid-pagination-wrapper ul.ant-pagination {
|
|
261
|
+
margin: 16px 0px 0px;
|
|
262
|
+
}
|
|
263
|
+
.aplus-ap-grid-sticky .aplus-ap-grid-pagination-wrapper {
|
|
264
|
+
background-color: #fff;
|
|
265
|
+
z-index: 10;
|
|
266
|
+
position: sticky;
|
|
267
|
+
bottom: 0;
|
|
268
|
+
padding-bottom: 16px;
|
|
269
|
+
}
|
|
270
|
+
.aplus-ap-grid-sticky:has(.aplus-scroll-bar) .aplus-ap-grid-pagination-wrapper {
|
|
271
|
+
bottom: 0;
|
|
272
|
+
}
|
|
273
|
+
.aplus-ap-grid-sticky:has(.aplus-scroll-bar) .aplus-ap-grid-pagination-wrapper ul.ant-pagination {
|
|
274
|
+
margin-top: 0;
|
|
275
|
+
padding-top: 8px;
|
|
276
|
+
}
|
|
277
|
+
.aplus-ap-grid-sticky:has(.aplus-scroll-bar) .vxe-table--scroll-x-wrapper {
|
|
278
|
+
opacity: 0;
|
|
279
|
+
}
|
|
280
|
+
.aplus-ap-grid-sticky:has(.aplus-scroll-bar) .vxe-table .vxe-table--scroll-x-virtual {
|
|
281
|
+
height: 0px !important;
|
|
282
|
+
}
|
|
252
283
|
.aplus-ap-grid-wrapper {
|
|
253
284
|
padding: 16px;
|
|
254
285
|
background-color: #fff;
|
|
@@ -262,6 +293,7 @@
|
|
|
262
293
|
.aplus-ap-grid__table-wrapper {
|
|
263
294
|
flex: 1;
|
|
264
295
|
max-height: 100%;
|
|
296
|
+
width: 100%;
|
|
265
297
|
display: flex;
|
|
266
298
|
flex-direction: column;
|
|
267
299
|
}
|
package/theme/ap-grid/index.less
CHANGED
|
@@ -5,7 +5,48 @@
|
|
|
5
5
|
@import '../ap-action/item.less';
|
|
6
6
|
@import '../ap-action/item-dropdown.less';
|
|
7
7
|
|
|
8
|
+
@vxe: ~'@{ns}-ap-grid-vxe-wrapper';
|
|
9
|
+
@pg: ~'@{ns}-ap-grid-pagination-wrapper';
|
|
10
|
+
@sb: ~'@{ns}-scroll-bar';
|
|
11
|
+
|
|
8
12
|
.b(ap-grid, {
|
|
13
|
+
&-adaptive {
|
|
14
|
+
height: 100%;
|
|
15
|
+
display: flex;
|
|
16
|
+
.@{vxe} {
|
|
17
|
+
min-height: 0;
|
|
18
|
+
flex: 1;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
.@{pg} {
|
|
22
|
+
ul.ant-pagination {
|
|
23
|
+
margin: 16px 0px 0px;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
&-sticky {
|
|
27
|
+
.@{pg} {
|
|
28
|
+
background-color: #fff;
|
|
29
|
+
z-index: 10;
|
|
30
|
+
position: sticky;
|
|
31
|
+
bottom: 0;
|
|
32
|
+
padding-bottom: 16px;
|
|
33
|
+
}
|
|
34
|
+
&:has(.@{sb}) {
|
|
35
|
+
.@{pg} {
|
|
36
|
+
bottom: 0;
|
|
37
|
+
ul.ant-pagination {
|
|
38
|
+
margin-top: 0;
|
|
39
|
+
padding-top: 8px;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
.vxe-table--scroll-x-wrapper {
|
|
43
|
+
opacity: 0;
|
|
44
|
+
}
|
|
45
|
+
.vxe-table .vxe-table--scroll-x-virtual {
|
|
46
|
+
height: 0px !important;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
9
50
|
&-wrapper {
|
|
10
51
|
padding: 16px;
|
|
11
52
|
background-color: #fff;
|
|
@@ -19,6 +60,7 @@
|
|
|
19
60
|
&__table-wrapper {
|
|
20
61
|
flex: 1;
|
|
21
62
|
max-height: 100%;
|
|
63
|
+
width: 100%;
|
|
22
64
|
display: flex;
|
|
23
65
|
flex-direction: column;
|
|
24
66
|
}
|
package/theme/index.css
CHANGED
|
@@ -2159,6 +2159,37 @@ div.aplus-ap-info-layout-admin__header-shadow.aplus-ap-info-layout-admin__sticky
|
|
|
2159
2159
|
width: 100vw;
|
|
2160
2160
|
height: 100vh;
|
|
2161
2161
|
}
|
|
2162
|
+
.aplus-ap-grid-adaptive {
|
|
2163
|
+
height: 100%;
|
|
2164
|
+
display: flex;
|
|
2165
|
+
}
|
|
2166
|
+
.aplus-ap-grid-adaptive .aplus-ap-grid-vxe-wrapper {
|
|
2167
|
+
min-height: 0;
|
|
2168
|
+
flex: 1;
|
|
2169
|
+
}
|
|
2170
|
+
.aplus-ap-grid .aplus-ap-grid-pagination-wrapper ul.ant-pagination {
|
|
2171
|
+
margin: 16px 0px 0px;
|
|
2172
|
+
}
|
|
2173
|
+
.aplus-ap-grid-sticky .aplus-ap-grid-pagination-wrapper {
|
|
2174
|
+
background-color: #fff;
|
|
2175
|
+
z-index: 10;
|
|
2176
|
+
position: sticky;
|
|
2177
|
+
bottom: 0;
|
|
2178
|
+
padding-bottom: 16px;
|
|
2179
|
+
}
|
|
2180
|
+
.aplus-ap-grid-sticky:has(.aplus-scroll-bar) .aplus-ap-grid-pagination-wrapper {
|
|
2181
|
+
bottom: 0;
|
|
2182
|
+
}
|
|
2183
|
+
.aplus-ap-grid-sticky:has(.aplus-scroll-bar) .aplus-ap-grid-pagination-wrapper ul.ant-pagination {
|
|
2184
|
+
margin-top: 0;
|
|
2185
|
+
padding-top: 8px;
|
|
2186
|
+
}
|
|
2187
|
+
.aplus-ap-grid-sticky:has(.aplus-scroll-bar) .vxe-table--scroll-x-wrapper {
|
|
2188
|
+
opacity: 0;
|
|
2189
|
+
}
|
|
2190
|
+
.aplus-ap-grid-sticky:has(.aplus-scroll-bar) .vxe-table .vxe-table--scroll-x-virtual {
|
|
2191
|
+
height: 0px !important;
|
|
2192
|
+
}
|
|
2162
2193
|
.aplus-ap-grid-wrapper {
|
|
2163
2194
|
padding: 16px;
|
|
2164
2195
|
background-color: #fff;
|
|
@@ -2172,6 +2203,7 @@ div.aplus-ap-info-layout-admin__header-shadow.aplus-ap-info-layout-admin__sticky
|
|
|
2172
2203
|
.aplus-ap-grid__table-wrapper {
|
|
2173
2204
|
flex: 1;
|
|
2174
2205
|
max-height: 100%;
|
|
2206
|
+
width: 100%;
|
|
2175
2207
|
display: flex;
|
|
2176
2208
|
flex-direction: column;
|
|
2177
2209
|
}
|