@aplus-frontend/ui 0.6.1 → 0.6.2

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.
Files changed (73) hide show
  1. package/es/src/ap-grid/index.vue.mjs +140 -135
  2. package/es/src/ap-grid/utils/table.mjs +24 -21
  3. package/es/src/ap-table/utils.mjs +3 -3
  4. package/es/src/business/ap-card/ApCard.vue2.mjs +18 -18
  5. package/es/src/version.d.ts +1 -1
  6. package/es/src/version.mjs +1 -1
  7. package/lib/src/ap-grid/index.vue.js +1 -1
  8. package/lib/src/ap-grid/utils/table.js +1 -1
  9. package/lib/src/ap-table/utils.js +1 -1
  10. package/lib/src/business/ap-card/ApCard.vue2.js +1 -1
  11. package/lib/src/version.d.ts +1 -1
  12. package/lib/src/version.js +1 -1
  13. package/package.json +1 -2
  14. package/theme/antd-global-overwrite/admin/index.css +1 -288
  15. package/theme/antd-global-overwrite/admin/index.less +1 -7
  16. package/theme/antd-global-overwrite/aplus/index.css +1 -284
  17. package/theme/antd-global-overwrite/aplus/index.less +1 -7
  18. package/theme/antdv-override.css +572 -0
  19. package/theme/antdv-override.less +659 -0
  20. package/theme/ap-grid/index.css +7 -0
  21. package/theme/ap-grid/index.less +7 -0
  22. package/theme/index.css +579 -0
  23. package/theme/index.less +2 -1
  24. package/es/src/ap-grid/hooks/use-load-vxe.d.ts +0 -1
  25. package/lib/src/ap-grid/hooks/use-load-vxe.d.ts +0 -1
  26. package/theme/antd-global-overwrite/admin/alert.css +0 -37
  27. package/theme/antd-global-overwrite/admin/alert.less +0 -51
  28. package/theme/antd-global-overwrite/admin/button.css +0 -27
  29. package/theme/antd-global-overwrite/admin/button.less +0 -31
  30. package/theme/antd-global-overwrite/admin/drawer.css +0 -3
  31. package/theme/antd-global-overwrite/admin/drawer.less +0 -5
  32. package/theme/antd-global-overwrite/admin/field.css +0 -42
  33. package/theme/antd-global-overwrite/admin/field.less +0 -43
  34. package/theme/antd-global-overwrite/admin/form.css +0 -57
  35. package/theme/antd-global-overwrite/admin/form.less +0 -97
  36. package/theme/antd-global-overwrite/admin/message.css +0 -10
  37. package/theme/antd-global-overwrite/admin/message.less +0 -13
  38. package/theme/antd-global-overwrite/admin/modal.css +0 -91
  39. package/theme/antd-global-overwrite/admin/modal.less +0 -125
  40. package/theme/antd-global-overwrite/admin/pagination.css +0 -122
  41. package/theme/antd-global-overwrite/admin/pagination.less +0 -91
  42. package/theme/antd-global-overwrite/admin/steps.css +0 -127
  43. package/theme/antd-global-overwrite/admin/steps.less +0 -197
  44. package/theme/antd-global-overwrite/admin/table.css +0 -78
  45. package/theme/antd-global-overwrite/admin/table.less +0 -62
  46. package/theme/antd-global-overwrite/admin/tooltip.css +0 -3
  47. package/theme/antd-global-overwrite/admin/tooltip.less +0 -3
  48. package/theme/antd-global-overwrite/aplus/alert.css +0 -40
  49. package/theme/antd-global-overwrite/aplus/alert.less +0 -55
  50. package/theme/antd-global-overwrite/aplus/button.css +0 -27
  51. package/theme/antd-global-overwrite/aplus/button.less +0 -31
  52. package/theme/antd-global-overwrite/aplus/drawer.css +0 -3
  53. package/theme/antd-global-overwrite/aplus/drawer.less +0 -5
  54. package/theme/antd-global-overwrite/aplus/field.css +0 -42
  55. package/theme/antd-global-overwrite/aplus/field.less +0 -43
  56. package/theme/antd-global-overwrite/aplus/form.css +0 -87
  57. package/theme/antd-global-overwrite/aplus/form.less +0 -133
  58. package/theme/antd-global-overwrite/aplus/message.css +0 -10
  59. package/theme/antd-global-overwrite/aplus/message.less +0 -13
  60. package/theme/antd-global-overwrite/aplus/modal.css +0 -84
  61. package/theme/antd-global-overwrite/aplus/modal.less +0 -117
  62. package/theme/antd-global-overwrite/aplus/pagination.css +0 -147
  63. package/theme/antd-global-overwrite/aplus/pagination.less +0 -108
  64. package/theme/antd-global-overwrite/aplus/steps.css +0 -125
  65. package/theme/antd-global-overwrite/aplus/steps.less +0 -198
  66. package/theme/antd-global-overwrite/aplus/table.css +0 -78
  67. package/theme/antd-global-overwrite/aplus/table.less +0 -61
  68. package/theme/antd-global-overwrite/aplus/tooltip.css +0 -3
  69. package/theme/antd-global-overwrite/aplus/tooltip.less +0 -3
  70. package/theme/ap-table/ap-table-pagination.css +0 -12
  71. package/theme/ap-table/ap-table-pagination.less +0 -14
  72. /package/theme/{ui-mode.css → css-var.css} +0 -0
  73. /package/theme/{ui-mode.less → css-var.less} +0 -0
@@ -1,4 +1,4 @@
1
- import { defineComponent as h, useSlots as $, computed as o, createElementBlock as a, openBlock as l, normalizeStyle as B, normalizeClass as N, unref as P, createBlock as s, createCommentVNode as y, renderSlot as m, mergeProps as b, createSlots as z, withCtx as k, isVNode as v, resolveDynamicComponent as _, toDisplayString as p } from "vue";
1
+ import { defineComponent as h, useSlots as $, computed as o, createElementBlock as a, openBlock as r, normalizeStyle as B, normalizeClass as N, unref as x, createBlock as s, createCommentVNode as P, renderSlot as m, mergeProps as b, createSlots as z, withCtx as y, isVNode as k, resolveDynamicComponent as _, toDisplayString as v } from "vue";
2
2
  import "../ap-title/ApTitle.vue.mjs";
3
3
  import { omit as D } from "lodash-unified";
4
4
  import "../../config-provider/index.mjs";
@@ -13,46 +13,46 @@ const w = { key: 2 }, A = { key: 2 }, I = /* @__PURE__ */ h({
13
13
  setup(S) {
14
14
  const e = S, t = $(), { b: c } = V("ap-card"), g = o(
15
15
  () => D((e == null ? void 0 : e.titleProps) || {}, ["prefix", "suffix"])
16
- ), u = o(() => {
16
+ ), p = o(() => {
17
17
  var i;
18
18
  return (i = Object.keys((e == null ? void 0 : e.titleProps) || {})) == null ? void 0 : i.length;
19
- }), C = o(() => e.padding ?? (u.value ? "12px 14px 14px" : "12px 14px"));
19
+ }), C = o(() => e.padding ?? "12px 16px");
20
20
  return (i, E) => {
21
- var d, x;
22
- return l(), a("div", {
23
- class: N([P(c)()]),
21
+ var u, d;
22
+ return r(), a("div", {
23
+ class: N([x(c)()]),
24
24
  style: B({
25
25
  padding: C.value
26
26
  })
27
27
  }, [
28
- u.value || t != null && t.titlePrefix || t != null && t.titleSuffix ? (l(), s(j, b({
28
+ p.value || t != null && t.titlePrefix || t != null && t.titleSuffix ? (r(), s(j, b({
29
29
  key: 0,
30
- class: [`${P(c)()}-title`]
30
+ class: [`${x(c)()}-title`]
31
31
  }, {
32
32
  ...g.value
33
33
  }), z({ _: 2 }, [
34
- (d = e == null ? void 0 : e.titleProps) != null && d.suffix ? {
34
+ (u = e == null ? void 0 : e.titleProps) != null && u.suffix ? {
35
35
  name: "suffix",
36
- fn: k(() => {
37
- var r, f, n;
36
+ fn: y(() => {
37
+ var f, l, n;
38
38
  return [
39
- t != null && t.titleSuffix ? m(i.$slots, "titleSuffix", { key: 0 }) : v((r = e == null ? void 0 : e.titleProps) == null ? void 0 : r.suffix) ? (l(), s(_((f = e == null ? void 0 : e.titleProps) == null ? void 0 : f.suffix), { key: 1 })) : (l(), a("div", w, p((n = e == null ? void 0 : e.titleProps) == null ? void 0 : n.suffix), 1))
39
+ t != null && t.titleSuffix ? m(i.$slots, "titleSuffix", { key: 0 }) : k((f = e == null ? void 0 : e.titleProps) == null ? void 0 : f.suffix) ? (r(), s(_((l = e == null ? void 0 : e.titleProps) == null ? void 0 : l.suffix), { key: 1 })) : (r(), a("div", w, v((n = e == null ? void 0 : e.titleProps) == null ? void 0 : n.suffix), 1))
40
40
  ];
41
41
  }),
42
42
  key: "0"
43
43
  } : void 0,
44
- (x = e == null ? void 0 : e.titleProps) != null && x.prefix ? {
44
+ (d = e == null ? void 0 : e.titleProps) != null && d.prefix ? {
45
45
  name: "prefix",
46
- fn: k(() => {
47
- var r, f, n;
46
+ fn: y(() => {
47
+ var f, l, n;
48
48
  return [
49
- t != null && t.titlePrefix ? m(i.$slots, "titlePrefix", { key: 0 }) : y("", !0),
50
- v((r = e == null ? void 0 : e.titleProps) == null ? void 0 : r.prefix) ? (l(), s(_((f = e == null ? void 0 : e.titleProps) == null ? void 0 : f.prefix), { key: 1 })) : (l(), a("div", A, p((n = e == null ? void 0 : e.titleProps) == null ? void 0 : n.prefix), 1))
49
+ t != null && t.titlePrefix ? m(i.$slots, "titlePrefix", { key: 0 }) : P("", !0),
50
+ k((f = e == null ? void 0 : e.titleProps) == null ? void 0 : f.prefix) ? (r(), s(_((l = e == null ? void 0 : e.titleProps) == null ? void 0 : l.prefix), { key: 1 })) : (r(), a("div", A, v((n = e == null ? void 0 : e.titleProps) == null ? void 0 : n.prefix), 1))
51
51
  ];
52
52
  }),
53
53
  key: "1"
54
54
  } : void 0
55
- ]), 1040, ["class"])) : y("", !0),
55
+ ]), 1040, ["class"])) : P("", !0),
56
56
  m(i.$slots, "default")
57
57
  ], 6);
58
58
  };
@@ -1,2 +1,2 @@
1
- declare const _default: "0.6.1";
1
+ declare const _default: "0.6.2";
2
2
  export default _default;
@@ -1,4 +1,4 @@
1
- const e = "0.6.1";
1
+ const e = "0.6.2";
2
2
  export {
3
3
  e as default
4
4
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),k=require("vxe-table");require("vxe-table/es/style.css");require("vxe-pc-ui/es/style.css");const K=require("vxe-pc-ui"),i=require("lodash-unified"),ye=require("../ap-form/index.js");require("../config-provider/index.js");const we=require("../ap-table/constants.js"),p=require("../ap-table/utils.js"),Se=require("../ap-table/hooks/use-table-paging-ng.js"),B=require("@aplus-frontend/antdv"),be=require("./hooks/use-inner-params.js"),F=require("./utils/table.js"),Re=require("./hooks/use-row-selection.js"),xe=require("../ap-table/context.js"),E=require("./constants.js"),ke=require("./hooks/use-render-columns.js"),Be=require("@aplus-frontend/antdv/es/theme/internal");require("../scroll-bar/index.js");const Fe=require("../utils/index.js"),Ee=require("../utils/slot.js"),Ne=require("./hooks/use-table-style.js"),Pe=require("../config-provider/hooks/use-namespace.js"),Ie=require("../config-provider/hooks/use-global-config.js"),qe=require("../config-provider/hooks/use-locale.js"),Te=require("../scroll-bar/index.vue.js"),Ve=e.defineComponent({name:"ApGrid",__name:"index",props:{dropdownPrefixCls:{},bordered:{type:Boolean,default:!1},locale:{},onChange:{},onResizeColumn:{},getPopupContainer:{},scroll:{},sortDirections:{default:()=>["ascend","descend"]},showSorterTooltip:{type:[Boolean,Object],default:!1},prefixCls:{},tableLayout:{},title:{},id:{},showHeader:{type:Boolean,default:!0},components:{},customRow:{},customHeaderRow:{},direction:{},expandFixed:{type:[String,Boolean],default:!1},expandColumnWidth:{},expandedRowKeys:{},defaultExpandedRowKeys:{},expandedRowRender:{},expandRowByClick:{type:Boolean,default:!1},expandIcon:{},onExpand:{},onExpandedRowsChange:{},defaultExpandAllRows:{type:Boolean,default:!1},indentSize:{default:15},expandIconColumnIndex:{},showExpandColumn:{type:Boolean,default:!0},expandedRowClassName:{},childrenColumnName:{default:"children"},rowExpandable:{},sticky:{type:[Boolean,Object],default:!1},transformCellText:{},rowClassName:{},stripe:{type:Boolean},headerRowClassName:{},footerRowClassName:{},cellClassName:{},headerCellClassName:{},footerCellClassName:{},rowStyle:{},headerRowStyle:{},footerRowStyle:{},cellStyle:{},headerCellStyle:{},footerCellStyle:{},height:{},minHeight:{},maxHeight:{},mergeCells:{},mergeFooterItems:{},cellConfig:{},loading:{type:Boolean,default:void 0},loadingConfig:{},headerCellConfig:{},footerCellConfig:{},round:{type:Boolean,default:void 0},columns:{},rowSelection:{type:Boolean},card:{type:Boolean,default:!1},params:{},request:{},defaultData:{},dataSource:{},onLoadingChange:{},onShownColumnsChange:{},searchForm:{type:[Boolean,Object],default:void 0},beforeSearchSubmit:{},pagination:{type:[Boolean,Object],default:void 0},searchFormWrapperStyle:{},tableWrapperStyle:{},wrapperStyle:{},manual:{type:Boolean,default:void 0},size:{default:"mini"},adaptive:{type:Boolean,default:!1},columnResizable:{type:[Boolean,Object],default:!1},rowKey:{default:"key"},footer:{},virtual:{type:[Boolean,Object],default:void 0},expandable:{},value:{},rowHighlightable:{type:[Boolean,Function],default:!1}},setup(D,{expose:O}){var L;const m=e.useSlots(),o=D,h=(L=e.getCurrentInstance())==null?void 0:L.appContext.app;h&&!h.__VXE_PC_UI_INSTALLED__&&(h.use(K.VxeUI),h.__VXE_PC_UI_INSTALLED__=!0);const{e:y,b:u,be:$}=Pe.useNamespace("ap-grid"),U=Ie.useGlobalConfig("valueTypeMap"),s=e.ref([]),N=e.ref([]),l=e.ref(),v=e.ref(o.size),M=Ne.useTableStyle(),[,j]=Be.useToken(),{t:W}=qe.useLocale();K.VxeUI.setConfig({i18n:(t,r)=>W(`ap.${t}`,r)});const{renderConfig:H,updateSignal:G}=ke.useRenderColumns(s);let P=0;const X=e.computed(()=>{if(l.value)return l.value.$el.querySelector(".vxe-table--header-inner-wrapper")}),I=e.computed(()=>{var t,r,a;return P++,((a=(r=(t=o.columns)==null?void 0:t.filter(n=>!n.hideInSearch&&n.dataIndex&&(n.valueType||n.customRenderFormItem)&&!we.noRenderAsFormItemValueList.includes(n.valueType)))==null?void 0:r.sort((n,c)=>{let C=p.getColumnOrder(n.order);return p.getColumnOrder(c.order)-C}))==null?void 0:a.map(n=>{const c=p.updateFormProps(n,p.getFieldProps(n.fieldProps,{})),C={...n,fieldProps:{label:n.title,name:n.dataIndex,bordered:!0,...c||{},_signal:P},renderNode:void 0};return C.renderNode=p.getSearchFormItemRenderNode(C,e.unref(U)),C}))||[]}),J=e.computed(()=>{var r;return Fe.isDef(o.manual)?o.manual:Ee.getValidVNodeList(((r=m.searchFormExtra)==null?void 0:r.call(m))||[]).some(a=>{var n;return((n=a.type)==null?void 0:n.name)==="ApView"})}),Q=e.computed(()=>[u(),o.card?null:u("wrapper"),o.adaptive?u("adaptive"):null,o.sticky?u("sticky"):null].filter(Boolean)),q=e.computed(()=>p.recursionApColumns(e.unref(s),t=>{if(t.sorter===!0)return t.key||t.dataIndex}).filter(Boolean)),T=e.computed(()=>p.recursionApColumns(e.unref(s),t=>{if(t.filters&&!t.onFilter)return t.key||t.dataIndex}).filter(Boolean)),{formRef:w,submit:S,reset:b,refresh:Y,data:d,tableProps:V,setDataSource:Z,handleTableChangeOptional:ee,getPaging:te,setPaging:re}=Se.useTablePaging({async request(t){var a;if(!f.value.preserveSelectedRowKeys&&i.isUndefined(o.dataSource)&&x(),!i.isUndefined(o.dataSource)){const n=t.pageSize*(t.current-1);return{data:(o.pagination===!1?o.dataSource:o.dataSource.slice(n,n+t.pageSize))||[],total:o.dataSource.length||0}}const r=await((a=o.request)==null?void 0:a.call(o,t));return{data:(r==null?void 0:r.data)||[],total:(r==null?void 0:r.total)||0}},namespace:"ap-grid",filterFields:T,sortFields:q,params:e.toRef(o,"params"),defaultData:o.defaultData,manual:e.unref(J),formatParams:o.beforeSearchSubmit,pagination:o.pagination,onClickReset:he,onAfterRequest:A}),{sortChangeEvent:oe,filterChangeEvent:ae,paginationChangeEvent:ne}=be.useInnerParams(ee);xe.useProvideApTable({columns:e.computed(()=>s.value),columnsBackup:e.computed(()=>N.value),size:e.computed(()=>E.sizeMap[v.value]),updateColumns(t){var r;s.value=t,(r=o.onShownColumnsChange)==null||r.call(o,t)},updateSize(t){v.value=E.sizeReverseMap[t]},renderConfig:e.computed(()=>({className:$("table-header","title"),color:j.value.colorTextTertiary})),dataSource:e.computed(()=>e.unref(d).records),getSearchFormValues:_,setSearchFormValues:z,submit:S,reset:b});const le=e.computed(()=>s.value.some(t=>t.fixed==="left"||t.fixed===!0)?"left":void 0),se=e.computed(()=>i.isUndefined(o.loading)?d.loading:o.loading),ue=e.computed(()=>i.isUndefined(o.dataSource)?d.records:o.dataSource),{selectedRows:R,rowSelection:f,...g}=Re.default({...o.rowSelection===!0?{}:o.rowSelection,dataSource:ue,rowKey:o.rowKey}),ce=({checked:t,row:r})=>{const a=l.value;if(a&&a){const n=[...a.getCheckboxReserveRecords(),...a.getCheckboxRecords()];g.selectChange(r,t,n)}},ie=({checked:t})=>{const r=l.value;r&&g.selectAllChange(t,[...r.getCheckboxReserveRecords(),...r.getCheckboxRecords()])},de=()=>{const t=l.value;t&&g.selectRangeChange(t.getCheckboxRecords(),[...t.getCheckboxReserveRecords(),...t.getCheckboxRecords()])},fe=()=>{const t=l.value;t&&(R.value=[t.getRadioRecord()])},pe=({row:t})=>{const r=o.rowHighlightable;i.isFunction(r)&&r(t)};function me(){var t;return((t=o.columns)==null?void 0:t.filter(r=>!r.hideInTable))||[]}function z(t){var r,a,n;(n=(a=(r=w.value)==null?void 0:r.apForm)==null?void 0:a.setFieldsValue)==null||n.call(a,t)}function _(t=!1){var a,n,c;const r=t?"getFieldsValueTransformed":"getFieldsValue";return(c=(n=(a=w.value)==null?void 0:a.apForm)==null?void 0:n[r])==null?void 0:c.call(n,!0)}function x(){g.clearAll();const t=l.value;t&&(f.value.type==="radio"?(t.clearRadioRow(),t.clearRadioReserve()):(t.clearCheckboxRow(),t.clearCheckboxReserve()))}function ge(t){i.isFunction(o.rowKey)||(g.selectMultiByKeys(t),A())}function Ce(t){const r=l.value;if(!r)return;const a=String(t[o.rowKey]),n=r.getRowById(a);r.setCurrentRow(n)}function he(){const t=l.value;t&&(t.clearSort(),t.clearFilter())}function A(){e.nextTick(()=>{var t,r;f.value.type==="radio"?(t=l.value)==null||t.setRadioRowKey(f.value.selectedRowKeys[0]):(r=l.value)==null||r.setCheckboxRowKey(f.value.selectedRowKeys,!0)})}async function ve(t,r){var n;const a=d.records[t];if(a)return(n=l.value)==null?void 0:n.scrollToRow(a,r)}return e.watch(()=>[o.columnResizable,o.columns],()=>{var r;const t=me();s.value=t,(r=o.onShownColumnsChange)==null||r.call(o,t),N.value=t},{deep:!0,immediate:!0}),e.watch(()=>o.dataSource,t=>{Z(t)},{immediate:!0,deep:!0}),e.watch(()=>e.unref(d).loading,t=>{var r;(r=o.onLoadingChange)==null||r.call(o,t)}),e.watch(()=>o.size,t=>{v.value=t}),O({submit:S,reset:b,refresh:Y,setSearchFormValues:z,getSearchFormValues:_,getShowColumns:()=>e.unref(s),rowSelection:{selectedRows:e.computed(()=>R.value),setSelectedRowKeys:ge,clearAll:x},scrollToRow:ve,getDataSource:()=>e.unref(d.records),setCurrentRow:Ce,getPaging:te,setPaging:re}),(t,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(Q.value),style:e.normalizeStyle(t.wrapperStyle)},[e.unref(i.isUndefined)(t.dataSource)&&t.searchForm!==!1&&I.value.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.card?e.unref(y)("search-wrapper"):null),style:e.normalizeStyle(t.searchFormWrapperStyle)},[e.createVNode(e.unref(ye.ApForm).SearchForm,e.mergeProps(t.searchForm||{},{ref_key:"formRef",ref:w,"custom-reset":"","submit-loading":e.unref(V).loading,onSubmit:e.unref(S),onReset:e.unref(b)}),e.createSlots({default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I.value,a=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.renderNode.Comp),e.mergeProps({key:a.dataIndex,item:a,ref_for:!0},a.fieldProps||{},{span:a.span,"custom-render":a.renderNode.render}),null,16,["item","span","custom-render"]))),128))]),_:2},[m.searchFormExtra?{name:"extra",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"searchFormExtra")]),key:"0"}:void 0]),1040,["submit-loading","onSubmit","onReset"])],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass([e.unref(y)("table-wrapper"),t.card?e.unref(y)("table-wrapper-card"):null]),style:e.normalizeStyle(t.tableWrapperStyle)},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(u)("header-wrapper"))},[e.renderSlot(t.$slots,"title",{selectedRows:e.unref(R),selectedRowKeys:e.unref(f).selectedRowKeys,shownColumns:s.value,clearAll:x})],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(u)("vxe-wrapper"))},[(e.openBlock(),e.createBlock(e.unref(k.VxeTable),e.mergeProps(e.unref(F.toVxeProps)(o),{ref_key:"tableRef",ref:l,key:e.unref(G),data:e.unref(d).records,"sort-config":{remote:q.value.length>0,trigger:"cell"},"filter-config":{remote:T.value.length>0},loading:se.value,style:e.unref(M),size:v.value,onSortChange:e.unref(oe),onFilterChange:e.unref(ae),onCheckboxChange:ce,onCheckboxRangeChange:de,onCheckboxAll:ie,onRadioChange:fe,onCurrentChange:pe}),e.createSlots({empty:e.withCtx(()=>[e.createVNode(e.unref(B.Empty),{image:e.unref(B.Empty).PRESENTED_IMAGE_SIMPLE},null,8,["image"])]),default:e.withCtx(()=>[o.expandable&&s.value.length?(e.openBlock(),e.createBlock(e.unref(k.VxeColumn),e.mergeProps({key:0},e.unref(F.getRowExpandProps)(t.expandable),{fixed:le.value}),{content:e.withCtx(a=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.expandable.renderContent(a))))]),_:1},16,["fixed"])):e.createCommentVNode("",!0),o.rowSelection&&s.value.length?(e.openBlock(),e.createBlock(e.unref(k.VxeColumn),e.mergeProps({key:1},e.unref(F.getRowSelectionProps)(e.unref(f),s.value),{field:e.unref(E.ROW_SELECTION_FIELD)}),null,16,["field"])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(H),a=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a),{key:a.props.colId}))),128))]),_:2},[e.renderList(e.unref(i.omit)(m,["searchFormExtra"]),(a,n)=>({name:n,fn:e.withCtx(c=>[e.renderSlot(t.$slots,n,e.normalizeProps(e.guardReactiveProps(c||{})))])}))]),1040,["data","sort-config","filter-config","loading","style","size","onSortChange","onFilterChange"]))],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(u)("pagination-wrapper"))},[t.sticky?(e.openBlock(),e.createBlock(e.unref(Te.default),{key:0,direction:"horizontal","scroll-container":X.value,"extra-size":-4.2,"bar-color":"var(--ap-scrollbar-thumb-color-base)","track-color":"var(--ap-table-header-bg, #f2f6f9)"},null,8,["scroll-container"])):e.createCommentVNode("",!0),t.pagination!==!1?(e.openBlock(),e.createBlock(e.unref(B.Pagination),e.mergeProps({key:1,class:e.unref(u)("pagination")},e.unref(V).pagination,{onChange:e.unref(ne)}),null,16,["class","onChange"])):e.createCommentVNode("",!0)],2)],6)],6))}});exports.default=Ve;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("vxe-table");require("vxe-table/es/style.css");const i=require("lodash-unified"),ve=require("../ap-form/index.js");require("../config-provider/index.js");const ye=require("../ap-table/constants.js"),p=require("../ap-table/utils.js"),we=require("../ap-table/hooks/use-table-paging-ng.js"),S=require("@aplus-frontend/antdv"),Se=require("./hooks/use-inner-params.js"),F=require("./utils/table.js"),be=require("./hooks/use-row-selection.js"),Re=require("../ap-table/context.js"),E=require("./constants.js"),xe=require("./hooks/use-render-columns.js"),ke=require("@aplus-frontend/antdv/es/theme/internal");require("../scroll-bar/index.js");const Be=require("../utils/index.js"),Fe=require("../utils/slot.js"),Ee=require("./hooks/use-table-style.js"),Ne=require("../config-provider/hooks/use-namespace.js"),Pe=require("../config-provider/hooks/use-global-config.js"),Ie=require("../config-provider/hooks/use-locale.js"),Ve=require("../scroll-bar/index.vue.js"),qe=e.defineComponent({name:"ApGrid",__name:"index",props:{dropdownPrefixCls:{},bordered:{type:Boolean,default:!1},locale:{},onChange:{},onResizeColumn:{},getPopupContainer:{},scroll:{},sortDirections:{default:()=>["ascend","descend"]},showSorterTooltip:{type:[Boolean,Object],default:!1},prefixCls:{},tableLayout:{},title:{},id:{},showHeader:{type:Boolean,default:!0},components:{},customRow:{},customHeaderRow:{},direction:{},expandFixed:{type:[String,Boolean],default:!1},expandColumnWidth:{},expandedRowKeys:{},defaultExpandedRowKeys:{},expandedRowRender:{},expandRowByClick:{type:Boolean,default:!1},expandIcon:{},onExpand:{},onExpandedRowsChange:{},defaultExpandAllRows:{type:Boolean,default:!1},indentSize:{default:15},expandIconColumnIndex:{},showExpandColumn:{type:Boolean,default:!0},expandedRowClassName:{},childrenColumnName:{default:"children"},rowExpandable:{},sticky:{type:[Boolean,Object],default:!1},transformCellText:{},rowClassName:{},stripe:{type:Boolean},headerRowClassName:{},footerRowClassName:{},cellClassName:{},headerCellClassName:{},footerCellClassName:{},rowStyle:{},headerRowStyle:{},footerRowStyle:{},cellStyle:{},headerCellStyle:{},footerCellStyle:{},height:{},minHeight:{},maxHeight:{},mergeCells:{},mergeFooterItems:{},cellConfig:{},loading:{type:Boolean,default:void 0},loadingConfig:{},headerCellConfig:{},footerCellConfig:{},round:{type:Boolean,default:void 0},columns:{},rowSelection:{type:Boolean},card:{type:Boolean,default:!1},params:{},request:{},defaultData:{},dataSource:{},onLoadingChange:{},onShownColumnsChange:{},searchForm:{type:[Boolean,Object],default:void 0},beforeSearchSubmit:{},pagination:{type:[Boolean,Object],default:void 0},searchFormWrapperStyle:{},tableWrapperStyle:{},wrapperStyle:{},manual:{type:Boolean,default:void 0},size:{default:"mini"},adaptive:{type:Boolean,default:!1},columnResizable:{type:[Boolean,Object],default:!1},rowKey:{default:"key"},footer:{},virtual:{type:[Boolean,Object],default:void 0},expandable:{},value:{},rowHighlightable:{type:[Boolean,Function],default:!1}},setup(K,{expose:D}){var L;const m=e.useSlots(),o=K,v=(L=e.getCurrentInstance())==null?void 0:L.appContext.app;v&&!v.__VXE_PC_UI_INSTALLED__&&(v.use(h.VxeUI),v.__VXE_PC_UI_INSTALLED__=!0);const{e:y,b:u,be:O}=Ne.useNamespace("ap-grid"),$=Pe.useGlobalConfig("valueTypeMap"),s=e.ref([]),N=e.ref([]),l=e.ref(),w=e.ref(o.size),U=Ee.useTableStyle(),[,M]=ke.useToken(),{t:j}=Ie.useLocale();h.VxeUI.setConfig({i18n:(t,r)=>j(`ap.${t}`,r)});const{renderConfig:W,updateSignal:H}=xe.useRenderColumns(s);let P=0;const G=e.computed(()=>{if(l.value)return l.value.$el.querySelector(".vxe-table--header-inner-wrapper")}),I=e.computed(()=>{var t,r,a;return P++,((a=(r=(t=o.columns)==null?void 0:t.filter(n=>!n.hideInSearch&&n.dataIndex&&(n.valueType||n.customRenderFormItem)&&!ye.noRenderAsFormItemValueList.includes(n.valueType)))==null?void 0:r.sort((n,c)=>{let C=p.getColumnOrder(n.order);return p.getColumnOrder(c.order)-C}))==null?void 0:a.map(n=>{const c=p.updateFormProps(n,p.getFieldProps(n.fieldProps,{})),C={...n,fieldProps:{label:n.title,name:n.dataIndex,bordered:!0,...c||{},_signal:P},renderNode:void 0};return C.renderNode=p.getSearchFormItemRenderNode(C,e.unref($)),C}))||[]}),X=e.computed(()=>{var r;return Be.isDef(o.manual)?o.manual:Fe.getValidVNodeList(((r=m.searchFormExtra)==null?void 0:r.call(m))||[]).some(a=>{var n;return((n=a.type)==null?void 0:n.name)==="ApView"})}),J=e.computed(()=>[u(),o.card?null:u("wrapper"),o.adaptive?u("adaptive"):null,o.sticky?u("sticky"):null].filter(Boolean)),V=e.computed(()=>p.recursionApColumns(e.unref(s),t=>{if(t.sorter===!0)return t.key||t.dataIndex}).filter(Boolean)),q=e.computed(()=>p.recursionApColumns(e.unref(s),t=>{if(t.filters&&!t.onFilter)return t.key||t.dataIndex}).filter(Boolean)),{formRef:b,submit:R,reset:x,refresh:Q,data:d,tableProps:z,setDataSource:Y,handleTableChangeOptional:Z,getPaging:ee,setPaging:te}=we.useTablePaging({async request(t){var a;if(!f.value.preserveSelectedRowKeys&&i.isUndefined(o.dataSource)&&B(),!i.isUndefined(o.dataSource)){const n=t.pageSize*(t.current-1);return{data:(o.pagination===!1?o.dataSource:o.dataSource.slice(n,n+t.pageSize))||[],total:o.dataSource.length||0}}const r=await((a=o.request)==null?void 0:a.call(o,t));return{data:(r==null?void 0:r.data)||[],total:(r==null?void 0:r.total)||0}},namespace:"ap-grid",filterFields:q,sortFields:V,params:e.toRef(o,"params"),defaultData:o.defaultData,manual:e.unref(X),formatParams:o.beforeSearchSubmit,pagination:o.pagination,onClickReset:Ce,onAfterRequest:A}),{sortChangeEvent:re,filterChangeEvent:oe,paginationChangeEvent:ae}=Se.useInnerParams(Z);Re.useProvideApTable({columns:e.computed(()=>s.value),columnsBackup:e.computed(()=>N.value),size:e.computed(()=>E.sizeMap[w.value]),updateColumns(t){var r;s.value=t,(r=o.onShownColumnsChange)==null||r.call(o,t)},updateSize(t){w.value=E.sizeReverseMap[t]},renderConfig:e.computed(()=>({className:O("table-header","title"),color:M.value.colorTextTertiary})),dataSource:e.computed(()=>e.unref(d).records),getSearchFormValues:_,setSearchFormValues:T,submit:R,reset:x});const ne=e.computed(()=>s.value.some(t=>t.fixed==="left"||t.fixed===!0)?"left":void 0),le=e.computed(()=>i.isUndefined(o.loading)?d.loading:o.loading),se=e.computed(()=>i.isUndefined(o.dataSource)?d.records:o.dataSource),{selectedRows:k,rowSelection:f,...g}=be.default({...o.rowSelection===!0?{}:o.rowSelection,dataSource:se,rowKey:o.rowKey}),ue=({checked:t,row:r})=>{const a=l.value;if(a&&a){const n=[...a.getCheckboxReserveRecords(),...a.getCheckboxRecords()];g.selectChange(r,t,n)}},ce=({checked:t})=>{const r=l.value;r&&g.selectAllChange(t,[...r.getCheckboxReserveRecords(),...r.getCheckboxRecords()])},ie=()=>{const t=l.value;t&&g.selectRangeChange(t.getCheckboxRecords(),[...t.getCheckboxReserveRecords(),...t.getCheckboxRecords()])},de=()=>{const t=l.value;t&&(k.value=[t.getRadioRecord()])},fe=({row:t})=>{const r=o.rowHighlightable;i.isFunction(r)&&r(t)};function pe(){var t;return((t=o.columns)==null?void 0:t.filter(r=>!r.hideInTable))||[]}function T(t){var r,a,n;(n=(a=(r=b.value)==null?void 0:r.apForm)==null?void 0:a.setFieldsValue)==null||n.call(a,t)}function _(t=!1){var a,n,c;const r=t?"getFieldsValueTransformed":"getFieldsValue";return(c=(n=(a=b.value)==null?void 0:a.apForm)==null?void 0:n[r])==null?void 0:c.call(n,!0)}function B(){g.clearAll();const t=l.value;t&&(f.value.type==="radio"?(t.clearRadioRow(),t.clearRadioReserve()):(t.clearCheckboxRow(),t.clearCheckboxReserve()))}function me(t){i.isFunction(o.rowKey)||(g.selectMultiByKeys(t),A())}function ge(t){const r=l.value;if(!r)return;const a=String(t[o.rowKey]),n=r.getRowById(a);r.setCurrentRow(n)}function Ce(){const t=l.value;t&&(t.clearSort(),t.clearFilter())}function A(){e.nextTick(()=>{var t,r;f.value.type==="radio"?(t=l.value)==null||t.setRadioRowKey(f.value.selectedRowKeys[0]):(r=l.value)==null||r.setCheckboxRowKey(f.value.selectedRowKeys,!0)})}async function he(t,r){var n;const a=d.records[t];if(a)return(n=l.value)==null?void 0:n.scrollToRow(a,r)}return e.watch(()=>[o.columnResizable,o.columns],()=>{var r;const t=pe();s.value=t,(r=o.onShownColumnsChange)==null||r.call(o,t),N.value=t},{deep:!0,immediate:!0}),e.watch(()=>o.dataSource,t=>{Y(t)},{immediate:!0,deep:!0}),e.watch(()=>e.unref(d).loading,t=>{var r;(r=o.onLoadingChange)==null||r.call(o,t)}),e.watch(()=>o.size,t=>{w.value=t}),D({submit:R,reset:x,refresh:Q,setSearchFormValues:T,getSearchFormValues:_,getShowColumns:()=>e.unref(s),rowSelection:{selectedRows:e.computed(()=>k.value),setSelectedRowKeys:me,clearAll:B},scrollToRow:he,getDataSource:()=>e.unref(d.records),setCurrentRow:ge,getPaging:ee,setPaging:te}),(t,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(J.value),style:e.normalizeStyle(t.wrapperStyle)},[e.unref(i.isUndefined)(t.dataSource)&&t.searchForm!==!1&&I.value.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.card?e.unref(y)("search-wrapper"):null),style:e.normalizeStyle(t.searchFormWrapperStyle)},[e.createVNode(e.unref(ve.ApForm).SearchForm,e.mergeProps(t.searchForm||{},{ref_key:"formRef",ref:b,"custom-reset":"","submit-loading":e.unref(z).loading,onSubmit:e.unref(R),onReset:e.unref(x)}),e.createSlots({default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I.value,a=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.renderNode.Comp),e.mergeProps({key:a.dataIndex,item:a,ref_for:!0},a.fieldProps||{},{span:a.span,"custom-render":a.renderNode.render}),null,16,["item","span","custom-render"]))),128))]),_:2},[m.searchFormExtra?{name:"extra",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"searchFormExtra")]),key:"0"}:void 0]),1040,["submit-loading","onSubmit","onReset"])],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass([e.unref(y)("table-wrapper"),t.card?e.unref(y)("table-wrapper-card"):null]),style:e.normalizeStyle(t.tableWrapperStyle)},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(u)("header-wrapper"))},[e.renderSlot(t.$slots,"title",{selectedRows:e.unref(k),selectedRowKeys:e.unref(f).selectedRowKeys,shownColumns:s.value,clearAll:B})],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(u)("vxe-wrapper"))},[(e.openBlock(),e.createBlock(e.unref(h.VxeTable),e.mergeProps(e.unref(F.toVxeProps)(o),{ref_key:"tableRef",ref:l,key:e.unref(H),data:e.unref(d).records,"sort-config":{remote:V.value.length>0,trigger:"cell"},"filter-config":{remote:q.value.length>0},loading:le.value,style:e.unref(U),size:w.value,onSortChange:e.unref(re),onFilterChange:e.unref(oe),onCheckboxChange:ue,onCheckboxRangeChange:ie,onCheckboxAll:ce,onRadioChange:de,onCurrentChange:fe}),e.createSlots({empty:e.withCtx(()=>[e.createVNode(e.unref(S.Empty),{image:e.unref(S.Empty).PRESENTED_IMAGE_SIMPLE},null,8,["image"])]),loading:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(y)("table-loading-wrapper"))},[e.createVNode(e.unref(S.Spin))],2)]),default:e.withCtx(()=>[o.expandable&&s.value.length?(e.openBlock(),e.createBlock(e.unref(h.VxeColumn),e.mergeProps({key:0},e.unref(F.getRowExpandProps)(t.expandable),{fixed:ne.value}),{content:e.withCtx(a=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.expandable.renderContent(a))))]),_:1},16,["fixed"])):e.createCommentVNode("",!0),o.rowSelection&&s.value.length?(e.openBlock(),e.createBlock(e.unref(h.VxeColumn),e.mergeProps({key:1},e.unref(F.getRowSelectionProps)(e.unref(f),s.value),{field:e.unref(E.ROW_SELECTION_FIELD)}),null,16,["field"])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(W),a=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a),{key:a.props.colId}))),128))]),_:2},[e.renderList(e.unref(i.omit)(m,["searchFormExtra"]),(a,n)=>({name:n,fn:e.withCtx(c=>[e.renderSlot(t.$slots,n,e.normalizeProps(e.guardReactiveProps(c||{})))])}))]),1040,["data","sort-config","filter-config","loading","style","size","onSortChange","onFilterChange"]))],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(u)("pagination-wrapper"))},[t.sticky?(e.openBlock(),e.createBlock(e.unref(Ve.default),{key:0,direction:"horizontal","scroll-container":G.value,"extra-size":-4.2,"bar-color":"var(--ap-scrollbar-thumb-color-base)","track-color":"var(--ap-table-header-bg, #f2f6f9)"},null,8,["scroll-container"])):e.createCommentVNode("",!0),t.pagination!==!1?(e.openBlock(),e.createBlock(e.unref(S.Pagination),e.mergeProps({key:1,class:e.unref(u)("pagination")},e.unref(z).pagination,{onChange:e.unref(ae)}),null,16,["class","onChange"])):e.createCommentVNode("",!0)],2)],6)],6))}});exports.default=qe;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("lodash-unified"),c=require("../../utils/index.js"),h=20,w=50,b=e=>e.some(t=>!!t.html);function m(e){var r;const t={...s.omit(e,["columns","request","searchForm","dataSource","rowKey","value","round"])};if(t.rowConfig={isHover:!0,keyField:e.rowKey,isCurrent:!!e.rowHighlightable},t.columnConfig={},b(e.columns||[])&&(t.rowConfig.useKey=!0,t.columnConfig.useKey=!0),e.adaptive&&(t.autoResize=!0,t.height="100%"),e.columnResizable&&(t.columnConfig.resizable=!0),e.rowSelection){const o=e.rowSelection===!0?{}:e.rowSelection;o.type==="radio"?t.radioConfig={highlight:!0,checkMethod({row:n}){return o.disabled?!o.disabled(n):!0},visibleMethod({row:n}){return o.shown?o.shown(n):!0},checkRowKey:(r=o.defaultSelectedRowKeys)==null?void 0:r[0],reserve:s.isUndefined(o.preserveSelectedRowKeys)?!0:o.preserveSelectedRowKeys}:t.checkboxConfig={highlight:!0,checkMethod({row:n}){return o.disabled?!o.disabled(n):!0},visibleMethod({row:n}){return o.shown?o.shown(n):!0},reserve:s.isUndefined(o.preserveSelectedRowKeys)?!0:o.preserveSelectedRowKeys,range:o.range||!1}}return t.border=e.bordered===!1?"inner":!0,e.expandable&&(t.expandConfig=s.omit(e.expandable,["renderContent","width","title"])),e.footer&&(t.showFooter=!0,s.isFunction(e.footer)?t.footerMethod=e.footer:t.footerData=e.footer),e.virtual===!1?(t.virtualXConfig={enabled:!1},t.virtualYConfig={enabled:!1}):(l(t,"X",e.virtual),l(t,"Y",e.virtual)),t.round=c.isDef(e.round)?e.round:!e.card,t}function l(e,t,i){const r=t==="X",o=r?"x":"y",n=r?"virtualXConfig":"virtualYConfig",d=i==null?void 0:i[o],a=d!==!1,u=r?h:w,f=s.isNumber(d)&&d>=0?d:u;e[n]={enabled:a,gt:f,oSize:(i==null?void 0:i.oSize)||0}}function C(e){return e===!0?"left":e}function g(e,t){const i=e===!0||!e.type?"checkbox":e.type,r=e===!0?60:e.columnWidth||60;let o=e===!0?void 0:C(e.fixed);return o||(o===!1?o=void 0:o=t.some(n=>n.fixed==="left"||n.fixed===!0)?"left":void 0),{type:i,width:r,fixed:o}}function y(e){const t=(e==null?void 0:e.width)||"auto";return{type:"expand",title:e==null?void 0:e.title,width:t}}exports.getRowExpandProps=y;exports.getRowSelectionProps=g;exports.toVxeProps=m;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("lodash-unified"),c=require("../../utils/index.js"),h=20,C=50,g=e=>e.some(t=>!!t.html);function w(e){var r;const t={...l.omit(e,["columns","request","searchForm","dataSource","rowKey","value","round"])};if(t.rowConfig={isHover:!0,keyField:e.rowKey,isCurrent:!!e.rowHighlightable},t.columnConfig={},g(e.columns||[])&&(t.rowConfig.useKey=!0,t.columnConfig.useKey=!0),e.adaptive&&(t.autoResize=!0,t.height="100%"),e.columnResizable&&(t.columnConfig.resizable=!0),e.rowSelection){const o=e.rowSelection===!0?{}:e.rowSelection;o.type==="radio"?t.radioConfig={highlight:!0,checkMethod({row:i}){return o.disabled?!o.disabled(i):!0},visibleMethod({row:i}){return o.shown?o.shown(i):!0},checkRowKey:(r=o.defaultSelectedRowKeys)==null?void 0:r[0],reserve:l.isUndefined(o.preserveSelectedRowKeys)?!0:o.preserveSelectedRowKeys}:t.checkboxConfig={highlight:!0,checkMethod({row:i}){return o.disabled?!o.disabled(i):!0},visibleMethod({row:i}){return o.shown?o.shown(i):!0},reserve:l.isUndefined(o.preserveSelectedRowKeys)?!0:o.preserveSelectedRowKeys,range:o.range||!1}}return t.border=e.bordered===!1?"inner":!0,e.expandable&&(t.expandConfig=l.omit(e.expandable,["renderContent","width","title"])),e.footer&&(t.showFooter=!0,l.isFunction(e.footer)?t.footerMethod=e.footer:t.footerData=e.footer),e.virtual===!1?(t.virtualXConfig={enabled:!1},t.virtualYConfig={enabled:!1}):(u(t,"X",e.virtual),u(t,"Y",e.virtual)),t.round=c.isDef(e.round)?e.round:!e.card,e.virtual!==!1&&(t.headerCellConfig={height:36,...t.headerCellConfig||{}}),t}function u(e,t,n){const r=t==="X",o=r?"x":"y",i=r?"virtualXConfig":"virtualYConfig",d=n==null?void 0:n[o],a=d!==!1,s=r?h:C,f=l.isNumber(d)&&d>=0?d:s;e[i]={enabled:a,gt:f,oSize:(n==null?void 0:n.oSize)||0}}function b(e){return e===!0?"left":e}function m(e,t){const n=e===!0||!e.type?"checkbox":e.type,r=e===!0?60:e.columnWidth||60;let o=e===!0?void 0:b(e.fixed);return o||(o===!1?o=void 0:o=t.some(i=>i.fixed==="left"||i.fixed===!0)?"left":void 0),{type:n,width:r,fixed:o}}function y(e){const t=(e==null?void 0:e.width)||"auto";return{type:"expand",title:e==null?void 0:e.title,width:t}}exports.getRowExpandProps=y;exports.getRowSelectionProps=m;exports.toVxeProps=w;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("lodash-unified"),m=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 p=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 y=(e,t,n)=>{let o={};return u.isObject(e)?Object.keys(e).forEach(s=>{u.isObject(e[s])?o[s]=y(e[s],t[s],n):o[s]=n(e[s],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 v(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 T=e=>v(e)==="map"?e:new Map(Object.entries(e||{})),d=e=>{const t=[],n=T(e);return n.forEach((o,s)=>{const r=n.get(s)||n.get(`${s}`);if(r){if(typeof r=="object"&&(r!=null&&r.text)){t.push({text:r==null?void 0:r.text,value:s,label:r==null?void 0:r.text,disabled:r.disabled});return}t.push({text:r,label:r,value:s})}}),t},F=e=>u.isUndefined(e)||e<0?0:e;function b(e,t){return!e||!u.isFunction(e)?e:e(t)}function _(e){let t=e.valueType||"text";return e.valueEnum&&(t="status"),t}function S(e,t,n,o){var i;const s=m.apTableRenderItemMap[e];if(s)return l.createVNode(s,l.mergeProps(t,{mode:"read"}),null);const r=o==null?void 0:o[e];return((i=r==null?void 0:r.render)==null?void 0:i.call(r,t.value,n,t))||t.value}function V(e,t){if(e.customRenderFormItem){let r=function(i){const a=i.item.customRenderFormItem(i.item);return l.cloneVNode(a,{...i.item.fieldProps,span:i.item.span,...a.props||{},hidden:i.hidden,class:i.class})};return{Comp:p.default,render:r}}const n=m.apTableFormItemMap[e.valueType];if(n)return{Comp:n};const o=t==null?void 0:t[e.valueType];function s(r){var a;const i=(a=o==null?void 0:o.renderFormItem)==null?void 0:a.call(o,r.item.fieldProps.field);return i?l.createVNode(O.default,l.mergeProps(r.item.fieldProps,{hidden:r.hidden,class:r.class,span:e.span}),E(i)?i:{default:()=>[i]}):null}return{Comp:p.default,render:s}}function q(e,t){const n=b(e.fieldProps,t),o=(n==null?void 0:n.field)||n||{},s=e.valueType==="switch",r=e.valueType==="index",i=s?{checked:t.value}:{value:r?t.index+1:t.value};return e.valueEnum&&(o.valueEnum=e.valueEnum),{...u.omit(o,["request"]),...i}}function P(e){const t={...e};return u.isBoolean(e.filters)&&e.filters&&e.valueEnum&&(t.filters=d(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:d(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 s=n==null?void 0:n({title:e.title,column:e}),r=(s==null?void 0:s.filter(c=>c.type!==Symbol.for("v-cmt")))||[];if(s&&r.length>0)return s;const a=u.isString(e.title)?l.createVNode("span",{class:t,title:e.title},[e.title]):e.title,f=e.tooltip?u.isFunction(e.tooltip)?e.tooltip(e):l.createVNode(l.Fragment,null,[e.tooltip]):null;return f?l.createVNode("span",{style:{display:"inline-flex",alignItems:"center",maxWidth:"100%"}},[a,l.createVNode(h.Tooltip,{title:f,placement:"bottom",getPopupContainer:c=>c.closest(".ant-table")||c.closest(".ant-modal")||c.closest(".vxe-table")||document.body},{default:()=>[l.createVNode(j.QuestionCircleOutlined,{style:{padding:"4px",color:o,verticalAlign:"middle"}},null)]})]):a}function R(e,t){const n=[];function o(s){var r;for(const i of s)(r=i.children)!=null&&r.length?o(i.children):n.push(t(i))}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,s=>s==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=y;exports.getColumnOrder=F;exports.getFieldProps=b;exports.getSearchFormItemRenderNode=V;exports.getTableCellRenderNode=S;exports.getTableRenderProps=q;exports.getTableRenderType=_;exports.getTableTitle=x;exports.isEqualCustom=w;exports.objectToMap=T;exports.objectToString=A;exports.parseFieldValue=N;exports.recursionApColumns=R;exports.updateFormProps=I;exports.valueEnumToArray=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("lodash-unified"),m=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 p=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 y=(e,t,n)=>{let o={};return u.isObject(e)?Object.keys(e).forEach(s=>{u.isObject(e[s])?o[s]=y(e[s],t[s],n):o[s]=n(e[s],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 v(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 T=e=>v(e)==="map"?e:new Map(Object.entries(e||{})),d=e=>{const t=[],n=T(e);return n.forEach((o,s)=>{const r=n.get(s)||n.get(`${s}`);if(r){if(typeof r=="object"&&(r!=null&&r.text)){t.push({text:r==null?void 0:r.text,value:s,label:r==null?void 0:r.text,disabled:r.disabled});return}t.push({text:r,label:r,value:s})}}),t},F=e=>u.isUndefined(e)||e<0?0:e;function b(e,t){return!e||!u.isFunction(e)?e:e(t)}function _(e){let t=e.valueType||"text";return e.valueEnum&&(t="status"),t}function S(e,t,n,o){var i;const s=m.apTableRenderItemMap[e];if(s)return l.createVNode(s,l.mergeProps(t,{mode:"read"}),null);const r=o==null?void 0:o[e];return((i=r==null?void 0:r.render)==null?void 0:i.call(r,t.value,n,t))||t.value}function V(e,t){if(e.customRenderFormItem){let r=function(i){const a=i.item.customRenderFormItem(i.item);return l.cloneVNode(a,{...i.item.fieldProps,span:i.item.span,...a.props||{},hidden:i.hidden,class:i.class})};return{Comp:p.default,render:r}}const n=m.apTableFormItemMap[e.valueType];if(n)return{Comp:n};const o=t==null?void 0:t[e.valueType];function s(r){var a;const i=(a=o==null?void 0:o.renderFormItem)==null?void 0:a.call(o,r.item.fieldProps.field);return i?l.createVNode(O.default,l.mergeProps(r.item.fieldProps,{hidden:r.hidden,class:r.class,span:e.span}),E(i)?i:{default:()=>[i]}):null}return{Comp:p.default,render:s}}function q(e,t){const n=b(e.fieldProps,t),o=(n==null?void 0:n.field)||n||{},s=e.valueType==="switch",r=e.valueType==="index",i=s?{checked:t.value}:{value:r?t.index+1:t.value};return e.valueEnum&&(o.valueEnum=e.valueEnum),{...u.omit(o,["request"]),...i}}function P(e){const t={...e};return u.isBoolean(e.filters)&&e.filters&&e.valueEnum&&(t.filters=d(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:d(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 s=n==null?void 0:n({title:e.title,column:e}),r=(s==null?void 0:s.filter(c=>c.type!==Symbol.for("v-cmt")))||[];if(s&&r.length>0)return s;const a=u.isString(e.title)?l.createVNode("span",{class:t,title:e.title},[e.title]):e.title,f=e.tooltip?u.isFunction(e.tooltip)?e.tooltip(e):l.createVNode(l.Fragment,null,[e.tooltip]):null;return f?l.createVNode("span",{style:{display:"inline-flex",alignItems:"center",maxWidth:"100%"}},[a,l.createVNode(h.Tooltip,{title:f,placement:"bottom",getPopupContainer:c=>c.closest(".ant-table")||c.closest(".ant-modal")||c.closest(".vxe-table")||document.body},{default:()=>[l.createVNode(j.QuestionCircleOutlined,{style:{paddingInline:"4px",color:o,verticalAlign:"middle"}},null)]})]):a}function R(e,t){const n=[];function o(s){var r;for(const i of s)(r=i.children)!=null&&r.length?o(i.children):n.push(t(i))}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,s=>s==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=y;exports.getColumnOrder=F;exports.getFieldProps=b;exports.getSearchFormItemRenderNode=V;exports.getTableCellRenderNode=S;exports.getTableRenderProps=q;exports.getTableRenderType=_;exports.getTableTitle=x;exports.isEqualCustom=w;exports.objectToMap=T;exports.objectToString=A;exports.parseFieldValue=N;exports.recursionApColumns=R;exports.updateFormProps=I;exports.valueEnumToArray=d;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../ap-title/ApTitle.vue.js");const x=require("lodash-unified");require("../../config-provider/index.js");const k=require("../../config-provider/hooks/use-namespace.js"),y=require("../ap-title/ApTitle.vue2.js"),P={key:2},p={key:2},_=e.defineComponent({__name:"ApCard",props:{titleProps:{},padding:{}},setup(f){const t=f,i=e.useSlots(),{b:c}=k.useNamespace("ap-card"),d=e.computed(()=>x.omit((t==null?void 0:t.titleProps)||{},["prefix","suffix"])),u=e.computed(()=>{var l;return(l=Object.keys((t==null?void 0:t.titleProps)||{}))==null?void 0:l.length}),m=e.computed(()=>t.padding??(u.value?"12px 14px 14px":"12px 14px"));return(l,v)=>{var a,s;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(c)()]),style:e.normalizeStyle({padding:m.value})},[u.value||i!=null&&i.titlePrefix||i!=null&&i.titleSuffix?(e.openBlock(),e.createBlock(y.default,e.mergeProps({key:0,class:[`${e.unref(c)()}-title`]},{...d.value}),e.createSlots({_:2},[(a=t==null?void 0:t.titleProps)!=null&&a.suffix?{name:"suffix",fn:e.withCtx(()=>{var n,o,r;return[i!=null&&i.titleSuffix?e.renderSlot(l.$slots,"titleSuffix",{key:0}):e.isVNode((n=t==null?void 0:t.titleProps)==null?void 0:n.suffix)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent((o=t==null?void 0:t.titleProps)==null?void 0:o.suffix),{key:1})):(e.openBlock(),e.createElementBlock("div",P,e.toDisplayString((r=t==null?void 0:t.titleProps)==null?void 0:r.suffix),1))]}),key:"0"}:void 0,(s=t==null?void 0:t.titleProps)!=null&&s.prefix?{name:"prefix",fn:e.withCtx(()=>{var n,o,r;return[i!=null&&i.titlePrefix?e.renderSlot(l.$slots,"titlePrefix",{key:0}):e.createCommentVNode("",!0),e.isVNode((n=t==null?void 0:t.titleProps)==null?void 0:n.prefix)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent((o=t==null?void 0:t.titleProps)==null?void 0:o.prefix),{key:1})):(e.openBlock(),e.createElementBlock("div",p,e.toDisplayString((r=t==null?void 0:t.titleProps)==null?void 0:r.prefix),1))]}),key:"1"}:void 0]),1040,["class"])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"default")],6)}}});exports.default=_;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../ap-title/ApTitle.vue.js");const k=require("lodash-unified");require("../../config-provider/index.js");const x=require("../../config-provider/hooks/use-namespace.js"),y=require("../ap-title/ApTitle.vue2.js"),P={key:2},_={key:2},v=e.defineComponent({__name:"ApCard",props:{titleProps:{},padding:{}},setup(s){const t=s,i=e.useSlots(),{b:c}=x.useNamespace("ap-card"),f=e.computed(()=>k.omit((t==null?void 0:t.titleProps)||{},["prefix","suffix"])),d=e.computed(()=>{var l;return(l=Object.keys((t==null?void 0:t.titleProps)||{}))==null?void 0:l.length}),m=e.computed(()=>t.padding??"12px 16px");return(l,p)=>{var u,a;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(c)()]),style:e.normalizeStyle({padding:m.value})},[d.value||i!=null&&i.titlePrefix||i!=null&&i.titleSuffix?(e.openBlock(),e.createBlock(y.default,e.mergeProps({key:0,class:[`${e.unref(c)()}-title`]},{...f.value}),e.createSlots({_:2},[(u=t==null?void 0:t.titleProps)!=null&&u.suffix?{name:"suffix",fn:e.withCtx(()=>{var n,o,r;return[i!=null&&i.titleSuffix?e.renderSlot(l.$slots,"titleSuffix",{key:0}):e.isVNode((n=t==null?void 0:t.titleProps)==null?void 0:n.suffix)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent((o=t==null?void 0:t.titleProps)==null?void 0:o.suffix),{key:1})):(e.openBlock(),e.createElementBlock("div",P,e.toDisplayString((r=t==null?void 0:t.titleProps)==null?void 0:r.suffix),1))]}),key:"0"}:void 0,(a=t==null?void 0:t.titleProps)!=null&&a.prefix?{name:"prefix",fn:e.withCtx(()=>{var n,o,r;return[i!=null&&i.titlePrefix?e.renderSlot(l.$slots,"titlePrefix",{key:0}):e.createCommentVNode("",!0),e.isVNode((n=t==null?void 0:t.titleProps)==null?void 0:n.prefix)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent((o=t==null?void 0:t.titleProps)==null?void 0:o.prefix),{key:1})):(e.openBlock(),e.createElementBlock("div",_,e.toDisplayString((r=t==null?void 0:t.titleProps)==null?void 0:r.prefix),1))]}),key:"1"}:void 0]),1040,["class"])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"default")],6)}}});exports.default=v;
@@ -1,2 +1,2 @@
1
- declare const _default: "0.6.1";
1
+ declare const _default: "0.6.2";
2
2
  export default _default;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="0.6.1";exports.default=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="0.6.2";exports.default=e;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aplus-frontend/ui",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "main": "./lib/index.js",
5
5
  "type": "module",
6
6
  "files": [
@@ -74,7 +74,6 @@
74
74
  "@aplus-frontend/icon": "^1.2.6",
75
75
  "@aplus-frontend/oss": "^1.1.2",
76
76
  "vue": "^3.5.13",
77
- "vxe-pc-ui": "4.5.0",
78
77
  "vxe-table": "4.11.29"
79
78
  },
80
79
  "devDependencies": {
@@ -1,288 +1 @@
1
- .ant-alert .ant-alert-close-icon {
2
- line-height: 18px;
3
- }
4
- .ant-alert .ant-alert-icon {
5
- font-size: 16px;
6
- margin-inline-end: 8px;
7
- }
8
- .ant-alert .ant-alert-message {
9
- color: #333333;
10
- font-weight: normal !important;
11
- font-size: 12px;
12
- line-height: 18px;
13
- }
14
- .ant-alert .ant-alert-message .href {
15
- color: #1890ff;
16
- cursor: pointer;
17
- }
18
- .ant-alert.ant-alert-with-description .ant-alert-message {
19
- margin-bottom: 4px;
20
- font-weight: bold !important;
21
- }
22
- .ant-alert.ant-alert-warning {
23
- background: rgba(250, 173, 20, 0.1);
24
- border: 1px solid rgba(250, 173, 20, 0.4);
25
- }
26
- .ant-alert.ant-alert-info {
27
- background: rgba(24, 144, 255, 0.1);
28
- border: 1px solid rgba(24, 144, 255, 0.4);
29
- }
30
- .ant-alert.ant-alert-success {
31
- background: rgba(52, 183, 124, 0.1);
32
- border: 1px solid rgba(52, 183, 124, 0.4);
33
- }
34
- .ant-alert.ant-alert-error {
35
- background: rgba(255, 77, 79, 0.1);
36
- border: 1px solid rgba(255, 77, 79, 0.4);
37
- }
38
- .ant-btn {
39
- box-shadow: none;
40
- }
41
- .ant-btn.ant-btn-primary[disabled],
42
- .ant-btn.ant-btn-primary[disabled]:hover {
43
- color: #ffffff;
44
- background: #d6f1e5;
45
- border-color: #d6f1e5;
46
- }
47
- .ant-btn.ant-btn-dangerous.ant-btn-dangerous[disabled],
48
- .ant-btn.ant-btn-dangerous.ant-btn-dangerous[disabled]:hover {
49
- color: #ffffff !important;
50
- background: #ffdbdc !important;
51
- border-color: #ffdbdc !important;
52
- }
53
- .ant-btn.ant-btn-default[disabled],
54
- .ant-btn.ant-btn-default[disabled]:hover {
55
- color: #bfbfbf !important;
56
- background: #fafafa !important;
57
- border-color: #d9d9d9 !important;
58
- }
59
- .ant-btn.ant-btn-link[disabled],
60
- .ant-btn.ant-btn-link[disabled]:hover,
61
- .ant-btn.ant-btn-text[disabled],
62
- .ant-btn.ant-btn-text[disabled]:hover {
63
- color: rgba(24, 144, 255, 0.2) !important;
64
- }
65
- .ant-message div.ant-message-notice-content {
66
- padding: 10px 16px;
67
- font-size: 14px;
68
- line-height: 22px;
69
- box-shadow: 0 3px 6px 0 rgba(44, 54, 69, 0.102);
70
- }
71
- .ant-message .ant-message-notice .anticon {
72
- margin-bottom: 1px;
73
- margin-inline-end: 9px;
74
- }
75
- .ant-modal-root .ant-modal .ant-modal-close {
76
- top: 14px;
77
- inset-inline-end: 18px;
78
- color: #666666;
79
- }
80
- .ant-modal-root .ant-modal .ant-modal-close:hover {
81
- background-color: transparent;
82
- }
83
- .ant-modal-root .ant-modal .ant-modal-close-x {
84
- line-height: 0;
85
- }
86
- .ant-modal-root .ant-modal .ant-modal-content {
87
- padding: 0;
88
- }
89
- .ant-modal-root .ant-modal .ant-modal-content .ant-modal-header {
90
- margin-bottom: 0;
91
- padding: 12px 20px;
92
- border-bottom: 1px solid #E9E9E9;
93
- }
94
- .ant-modal-root .ant-modal .ant-modal-content .ant-modal-body {
95
- padding: 16px 20px;
96
- }
97
- .ant-modal-root .ant-modal .ant-modal-content .ant-modal-body > .scrollbar {
98
- padding: 0;
99
- }
100
- .ant-modal-root .ant-modal .ant-modal-content .ant-modal-body .scrollbar__wrap {
101
- margin-bottom: 0 !important;
102
- }
103
- .ant-modal-root .ant-modal .ant-modal-content .ant-modal-body:has([class*='ap-modal-body-wrapper']) {
104
- padding: 20px 0 !important;
105
- }
106
- .ant-modal-root .ant-modal .ant-modal-content .ant-modal-body:has([class*='ap-modal-body-wrapper']) [class*='ap-modal-body-wrapper'] {
107
- padding: 0 20px;
108
- overflow: hidden auto;
109
- }
110
- .ant-modal-root .ant-modal .ant-modal-content .ant-modal-footer {
111
- margin-top: 0;
112
- padding: 0 20px 12px;
113
- border-top: none;
114
- }
115
- .ant-modal-root .ant-modal .ant-modal-content .ant-modal-footer button {
116
- min-width: 72px;
117
- }
118
- .ant-modal-root .ant-modal .ant-modal-content .ant-modal-footer .ant-btn + .ant-btn:not(.ant-dropdown-trigger) {
119
- margin-inline-start: 8px;
120
- }
121
- .ant-modal-root .ant-modal-confirm .ant-modal-content .ant-modal-body {
122
- padding: 20px 24px;
123
- }
124
- .ant-modal-root .ant-modal-confirm .ant-modal-content .ant-modal-body .ant-modal-confirm-body > .anticon {
125
- margin-inline-end: 10px;
126
- font-size: 22px;
127
- }
128
- .ant-modal-root .ant-modal-confirm .ant-modal-content .ant-modal-body .ant-modal-confirm-body .ant-modal-confirm-title {
129
- color: #333333;
130
- font-weight: normal;
131
- }
132
- .ant-modal-root .ant-modal-confirm .ant-modal-content .ant-modal-body .ant-modal-confirm-body .ant-modal-confirm-content {
133
- max-width: calc(100% - 40px);
134
- color: #999999;
135
- font-weight: normal;
136
- line-height: 200%;
137
- margin-block-start: 4px;
138
- margin-inline-start: 34px;
139
- }
140
- .ant-modal-root .ant-modal-confirm .ant-modal-content .ant-modal-body .ant-modal-confirm-body .ant-modal-confirm-content > * {
141
- color: #999999;
142
- }
143
- .ant-modal-root .ant-modal-confirm .ant-modal-content .ant-modal-body .ant-modal-confirm-btns {
144
- margin-top: 0;
145
- padding-top: 16px;
146
- }
147
- .ant-modal-root .ant-modal-confirm .ant-modal-content .ant-modal-body .ant-modal-confirm-btns button {
148
- min-width: 72px;
149
- }
150
- .ant-modal-root .ant-modal-confirm .ant-modal-content .ant-modal-body .ant-modal-confirm-btns .ant-btn + .ant-btn:not(.ant-dropdown-trigger) {
151
- margin-inline-start: 8px;
152
- }
153
- .ant-modal-confirm-success .ant-modal-confirm-body > .anticon {
154
- color: #06c687;
155
- }
156
- .ant-modal-confirm-info .ant-modal-confirm-body > .anticon {
157
- color: #1890ff;
158
- }
159
- .ant-modal-confirm-warning .ant-modal-confirm-body > .anticon,
160
- .ant-modal-confirm-confirm .ant-modal-confirm-body > .anticon {
161
- color: #faad14;
162
- }
163
- .ant-modal-confirm-error .ant-modal-confirm-body > .anticon {
164
- color: #ff4d4f;
165
- }
166
- [class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper:has(ul.ant-pagination),
167
- [class*='-ap-table'].ap-table--sticky .ant-table-wrapper:has(ul.ant-pagination) {
168
- padding-bottom: 0;
169
- }
170
- [class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container,
171
- [class*='-ap-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container,
172
- [class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper,
173
- [class*='-ap-table'].ap-table--sticky .ant-table-wrapper,
174
- [class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container,
175
- [class*='-ap-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container {
176
- overflow: visible;
177
- }
178
- [class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container .ant-table,
179
- [class*='-ap-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container .ant-table,
180
- [class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-table,
181
- [class*='-ap-table'].ap-table--sticky .ant-table-wrapper .ant-table,
182
- [class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container .ant-table,
183
- [class*='-ap-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container .ant-table {
184
- overflow: visible;
185
- }
186
- [class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container .ant-table .ant-table-container,
187
- [class*='-ap-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container .ant-table .ant-table-container,
188
- [class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-table .ant-table-container,
189
- [class*='-ap-table'].ap-table--sticky .ant-table-wrapper .ant-table .ant-table-container,
190
- [class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container .ant-table .ant-table-container,
191
- [class*='-ap-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container .ant-table .ant-table-container {
192
- overflow: visible;
193
- }
194
- [class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container .ant-table .ant-table-container .ant-table-header,
195
- [class*='-ap-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container .ant-table .ant-table-container .ant-table-header,
196
- [class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-table .ant-table-container .ant-table-header,
197
- [class*='-ap-table'].ap-table--sticky .ant-table-wrapper .ant-table .ant-table-container .ant-table-header,
198
- [class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container .ant-table .ant-table-container .ant-table-header,
199
- [class*='-ap-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container .ant-table .ant-table-container .ant-table-header {
200
- position: sticky;
201
- top: 0;
202
- z-index: 90;
203
- border-top: 4px solid #ffffff;
204
- }
205
- [class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container .aplus-scroll-bar,
206
- [class*='-ap-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container .aplus-scroll-bar,
207
- [class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper .aplus-scroll-bar,
208
- [class*='-ap-table'].ap-table--sticky .ant-table-wrapper .aplus-scroll-bar,
209
- [class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container .aplus-scroll-bar,
210
- [class*='-ap-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container .aplus-scroll-bar {
211
- position: sticky;
212
- bottom: -1px;
213
- z-index: 90;
214
- }
215
- [class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container:has(ul.ant-pagination) .aplus-scroll-bar,
216
- [class*='-ap-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container:has(ul.ant-pagination) .aplus-scroll-bar,
217
- [class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper:has(ul.ant-pagination) .aplus-scroll-bar,
218
- [class*='-ap-table'].ap-table--sticky .ant-table-wrapper:has(ul.ant-pagination) .aplus-scroll-bar,
219
- [class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container:has(ul.ant-pagination) .aplus-scroll-bar,
220
- [class*='-ap-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container:has(ul.ant-pagination) .aplus-scroll-bar {
221
- bottom: 44px;
222
- }
223
- [class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container ul.ant-pagination,
224
- [class*='-ap-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container ul.ant-pagination,
225
- [class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper ul.ant-pagination,
226
- [class*='-ap-table'].ap-table--sticky .ant-table-wrapper ul.ant-pagination,
227
- [class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container ul.ant-pagination,
228
- [class*='-ap-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container ul.ant-pagination {
229
- position: sticky;
230
- bottom: 0;
231
- z-index: 90;
232
- margin: 0;
233
- padding: 8px 0;
234
- background-color: #ffffff;
235
- }
236
- [class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container:has(.aplus-scroll-bar) ul.ant-pagination,
237
- [class*='-ap-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container:has(.aplus-scroll-bar) ul.ant-pagination,
238
- [class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper:has(.aplus-scroll-bar) ul.ant-pagination,
239
- [class*='-ap-table'].ap-table--sticky .ant-table-wrapper:has(.aplus-scroll-bar) ul.ant-pagination,
240
- [class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container:has(.aplus-scroll-bar) ul.ant-pagination,
241
- [class*='-ap-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container:has(.aplus-scroll-bar) ul.ant-pagination {
242
- padding-top: 4px;
243
- }
244
- .ant-tooltip div[role='tooltip'] {
245
- padding-block: 6px;
246
- }
247
- .ant-checkbox:not(.ant-checkbox-checked) .ant-checkbox-inner {
248
- border-color: #d9d9d9;
249
- }
250
- .ant-radio:not(.ant-radio-checked) .ant-radio-inner {
251
- border-color: #d9d9d9;
252
- }
253
- .ant-input::-moz-placeholder {
254
- color: #bfbfbf;
255
- }
256
- .ant-input::placeholder {
257
- color: #bfbfbf;
258
- }
259
- .ant-select .ant-select-selection-placeholder {
260
- color: #bfbfbf;
261
- }
262
- .ant-picker .ant-picker-input > input::-moz-placeholder {
263
- color: #bfbfbf;
264
- }
265
- .ant-picker .ant-picker-input > input::placeholder {
266
- color: #bfbfbf;
267
- }
268
- .ant-input-number .ant-input-number-input-wrap > input::-moz-placeholder {
269
- color: #bfbfbf;
270
- }
271
- .ant-input-number .ant-input-number-input-wrap > input::placeholder {
272
- color: #bfbfbf;
273
- }
274
- input[disabled].ant-input {
275
- color: var(--ap-text-color-1);
276
- }
277
- textarea[disabled].ant-input {
278
- color: var(--ap-text-color-1);
279
- }
280
- .ant-picker.ant-picker-disabled .ant-picker-input > input[disabled] {
281
- color: var(--ap-text-color-1);
282
- }
283
- .ant-select-disabled .ant-select-selection-item {
284
- color: var(--ap-text-color-1) !important;
285
- }
286
- .ant-input-clear-icon {
287
- line-height: 18px;
288
- }
1
+ /* intentionally left blank */
@@ -1,7 +1 @@
1
- @import './alert.less'; // 警告提示
2
- @import './button.less'; // 按钮
3
- @import './message.less'; // 全局提示
4
- @import './modal.less'; // 弹框
5
- @import './table.less'; // 表格
6
- @import './tooltip.less'; // 文字提示
7
- @import './field.less'; // 表单项
1
+ /* intentionally left blank */