@aplus-frontend/ui 0.0.1-beta.34 → 0.0.1-beta.36

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 (65) hide show
  1. package/es/src/modal/basic.vue2.mjs +10 -11
  2. package/es/src/modal/style/index.css +0 -103
  3. package/es/src/pro-form/style/index.css +0 -3
  4. package/es/src/pro-table/components/editable/editable-cell.vue.d.ts +2 -82
  5. package/es/src/theme/antd-global-overwrite/admin/alert.css +16 -0
  6. package/es/src/theme/antd-global-overwrite/admin/index.css +33 -10
  7. package/es/src/theme/antd-global-overwrite/admin/modal.css +8 -8
  8. package/es/src/theme/antd-global-overwrite/admin/steps.css +2 -2
  9. package/es/src/theme/antd-global-overwrite/admin/table.css +7 -0
  10. package/es/src/theme/antd-global-overwrite/aplus/alert.css +16 -0
  11. package/es/src/theme/antd-global-overwrite/aplus/form.css +10 -0
  12. package/es/src/theme/antd-global-overwrite/aplus/index.css +44 -10
  13. package/es/src/theme/antd-global-overwrite/aplus/modal.css +8 -8
  14. package/es/src/theme/antd-global-overwrite/aplus/steps.css +2 -2
  15. package/es/src/theme/antd-global-overwrite/aplus/table.css +8 -0
  16. package/es/src/theme/modal/index.css +0 -103
  17. package/es/src/theme/pro-form/form.css +0 -3
  18. package/es/src/work-order-modal/work-order-modal.vue.mjs +28 -26
  19. package/lib/src/modal/basic.vue2.js +1 -1
  20. package/lib/src/modal/style/index.css +0 -103
  21. package/lib/src/pro-form/style/index.css +0 -3
  22. package/lib/src/pro-table/components/editable/editable-cell.vue.d.ts +2 -82
  23. package/lib/src/theme/antd-global-overwrite/admin/alert.css +16 -0
  24. package/lib/src/theme/antd-global-overwrite/admin/index.css +33 -10
  25. package/lib/src/theme/antd-global-overwrite/admin/modal.css +8 -8
  26. package/lib/src/theme/antd-global-overwrite/admin/steps.css +2 -2
  27. package/lib/src/theme/antd-global-overwrite/admin/table.css +7 -0
  28. package/lib/src/theme/antd-global-overwrite/aplus/alert.css +16 -0
  29. package/lib/src/theme/antd-global-overwrite/aplus/form.css +10 -0
  30. package/lib/src/theme/antd-global-overwrite/aplus/index.css +44 -10
  31. package/lib/src/theme/antd-global-overwrite/aplus/modal.css +8 -8
  32. package/lib/src/theme/antd-global-overwrite/aplus/steps.css +2 -2
  33. package/lib/src/theme/antd-global-overwrite/aplus/table.css +8 -0
  34. package/lib/src/theme/modal/index.css +0 -103
  35. package/lib/src/theme/pro-form/form.css +0 -3
  36. package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
  37. package/package.json +1 -1
  38. package/es/src/ap-action/item-popconfirm/index.vue.d.ts +0 -343
  39. package/es/src/ap-field/select/index.vue.d.ts +0 -235
  40. package/es/src/ap-form/modal-form/index.vue.d.ts +0 -378
  41. package/es/src/ap-table/constants.d.ts +0 -5666
  42. package/es/src/config-provider/config-provider-props.d.ts +0 -152
  43. package/es/src/config-provider/config-provider.d.ts +0 -323
  44. package/es/src/config-provider/hooks/use-global-config.d.ts +0 -154
  45. package/es/src/config-provider/index.d.ts +0 -691
  46. package/es/src/modal/basic.vue.d.ts +0 -465
  47. package/es/src/modal/components/modal-footer.vue.d.ts +0 -457
  48. package/es/src/modal/components/modal.d.ts +0 -443
  49. package/es/src/modal/index.d.ts +0 -963
  50. package/es/src/modal/props.d.ts +0 -283
  51. package/es/src/pro-form/hooks/use-label-width.d.ts +0 -312
  52. package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +0 -343
  53. package/lib/src/ap-field/select/index.vue.d.ts +0 -235
  54. package/lib/src/ap-form/modal-form/index.vue.d.ts +0 -378
  55. package/lib/src/ap-table/constants.d.ts +0 -5666
  56. package/lib/src/config-provider/config-provider-props.d.ts +0 -152
  57. package/lib/src/config-provider/config-provider.d.ts +0 -323
  58. package/lib/src/config-provider/hooks/use-global-config.d.ts +0 -154
  59. package/lib/src/config-provider/index.d.ts +0 -691
  60. package/lib/src/modal/basic.vue.d.ts +0 -465
  61. package/lib/src/modal/components/modal-footer.vue.d.ts +0 -457
  62. package/lib/src/modal/components/modal.d.ts +0 -443
  63. package/lib/src/modal/index.d.ts +0 -963
  64. package/lib/src/modal/props.d.ts +0 -283
  65. package/lib/src/pro-form/hooks/use-label-width.d.ts +0 -312
@@ -7,7 +7,7 @@
7
7
  .ant-steps .ant-steps-item-icon {
8
8
  width: 28px;
9
9
  height: 28px;
10
- margin-top: 4px;
10
+ margin-top: 3px;
11
11
  display: flex;
12
12
  justify-content: center;
13
13
  align-items: center;
@@ -95,7 +95,7 @@
95
95
  justify-content: center;
96
96
  width: 28px;
97
97
  height: 28px;
98
- margin-top: 4px;
98
+ margin-top: 3px;
99
99
  }
100
100
  .ant-steps.ant-steps-vertical.ant-steps-small .ant-steps-item .ant-steps-item-tail {
101
101
  inset-inline-start: 13px;
@@ -42,6 +42,7 @@
42
42
  font-style: normal;
43
43
  text-align: left;
44
44
  text-transform: none;
45
+ transition: unset;
45
46
  }
46
47
  .ant-table-wrapper .ant-table.ant-table-middle .ant-table-container .ant-table-thead tr > th {
47
48
  padding: 12px 16px;
@@ -67,3 +68,10 @@
67
68
  padding: 10.5px 16px;
68
69
  line-height: 18px;
69
70
  }
71
+ [class$='-basic-table'] {
72
+ max-width: 100%;
73
+ height: 100%;
74
+ }
75
+ [class$='-basic-table-row__striped'] td {
76
+ background-color: #f6f9fa;
77
+ }
@@ -1,103 +0,0 @@
1
- .fullscreen-modal {
2
- overflow: hidden;
3
- }
4
- .fullscreen-modal .ant-modal {
5
- inset: 0 !important;
6
- width: 100% !important;
7
- max-width: 100%;
8
- height: 100%;
9
- }
10
- .fullscreen-modal .ant-modal-content {
11
- height: 100%;
12
- overflow: hidden;
13
- }
14
- .fullscreen-modal .ant-modal-footer {
15
- margin-top: 0;
16
- }
17
- .aplus-basic-modal {
18
- width: 520px;
19
- padding-bottom: 0;
20
- }
21
- .aplus-basic-modal .ant-modal-body > .aplus-scrollbar {
22
- padding: 20px;
23
- padding-bottom: 0;
24
- }
25
- .aplus-basic-modal .ant-modal-title {
26
- font-size: 16px;
27
- font-weight: bold;
28
- }
29
- .aplus-basic-modal .ant-modal-title .aplus-basic-title {
30
- cursor: move !important;
31
- padding-left: 0;
32
- }
33
- .aplus-basic-modal .ant-modal-body {
34
- padding: 0;
35
- }
36
- .aplus-basic-modal .ant-modal-body > .aplus-scrollbar > .aplus-scrollbar__bar.is-horizontal {
37
- display: none;
38
- }
39
- .aplus-basic-modal .ant-modal-large {
40
- top: 60px;
41
- }
42
- .aplus-basic-modal .ant-modal-large .ant-modal--mini {
43
- top: 16px;
44
- }
45
- .aplus-basic-modal .ant-modal-header {
46
- padding: 15px 20px;
47
- margin-bottom: 0;
48
- border-bottom: 1px solid #dee4ed;
49
- }
50
- .aplus-basic-modal .ant-modal-content {
51
- padding: 0 !important;
52
- }
53
- .aplus-basic-modal .ant-modal-footer {
54
- padding: 20px;
55
- margin-top: 0;
56
- }
57
- .aplus-basic-modal .ant-modal-footer button + button {
58
- margin-left: 10px;
59
- }
60
- .aplus-basic-modal .ant-modal-close {
61
- top: 0 !important;
62
- right: 0 !important;
63
- width: auto !important;
64
- outline: none;
65
- background: transparent !important;
66
- font-weight: normal;
67
- }
68
- .aplus-basic-modal .ant-modal-close-x {
69
- display: inline-block;
70
- width: 96px;
71
- height: 56px;
72
- line-height: 56px !important;
73
- }
74
- .aplus-basic-modal .ant-modal-confirm-body .ant-modal-confirm-content > * {
75
- color: #909399;
76
- }
77
- .aplus-basic-modal .ant-modal-confirm-confirm.error .ant-modal-confirm-body > .anticon {
78
- color: #ed6f6f;
79
- }
80
- .aplus-basic-modal .ant-modal-confirm-btns .ant-btn:last-child {
81
- margin-right: 0;
82
- }
83
- .aplus-basic-modal .ant-modal-confirm-info .ant-modal-confirm-body > .anticon {
84
- color: #efbd47;
85
- }
86
- .aplus-basic-modal .ant-modal-confirm-confirm.success .ant-modal-confirm-body > .anticon {
87
- color: #34b77c;
88
- }
89
- @media screen and (height <= 600px) {
90
- .ant-modal {
91
- top: 60px;
92
- }
93
- }
94
- @media screen and (height <= 540px) {
95
- .ant-modal {
96
- top: 30px;
97
- }
98
- }
99
- @media screen and (height <= 480px) {
100
- .ant-modal {
101
- top: 10px;
102
- }
103
- }
@@ -4,6 +4,3 @@
4
4
  .aplus-basic-form .ant-form-explain {
5
5
  font-size: 14px;
6
6
  }
7
- .aplus-basic-form--compact .ant-form-item {
8
- margin-bottom: 8px !important;
9
- }
@@ -1,9 +1,9 @@
1
- import { defineComponent as B, ref as m, openBlock as F, createElementBlock as h, createVNode as t, unref as e, mergeProps as T, withCtx as l, h as w } from "vue";
1
+ import { defineComponent as F, ref as c, openBlock as h, createElementBlock as T, createVNode as t, unref as e, mergeProps as w, h as m, withCtx as l } from "vue";
2
2
  import { message as O, Modal as A, Input as L, Textarea as N } from "ant-design-vue";
3
3
  import { ApForm as r } from "../ap-form/index.mjs";
4
4
  import "./help-message.vue.mjs";
5
5
  import "../ap-upload/index.mjs";
6
- import { DictCode as g } from "./interfaces.mjs";
6
+ import { DictCode as k } from "./interfaces.mjs";
7
7
  import "../config-provider/index.mjs";
8
8
  import "./style/index.css";
9
9
  import { useGlobalConfig as q } from "../config-provider/hooks/use-global-config.mjs";
@@ -12,7 +12,7 @@ import P from "../ap-form/items/select/index.vue.mjs";
12
12
  import R from "../ap-form/items/radio/index.vue.mjs";
13
13
  import S from "../ap-upload/apUpload.vue.mjs";
14
14
  import $ from "./help-message.vue2.mjs";
15
- const Y = /* @__PURE__ */ B({
15
+ const Y = /* @__PURE__ */ F({
16
16
  __name: "work-order-modal",
17
17
  props: {
18
18
  api: { type: Function },
@@ -57,42 +57,44 @@ const Y = /* @__PURE__ */ B({
57
57
  mousePosition: {}
58
58
  },
59
59
  emits: ["modalClose"],
60
- setup(k, { emit: v }) {
61
- const c = m(), a = m(!1), p = m(!0), i = k, x = q("api"), { lang: C } = I(), _ = v, u = async (n) => {
62
- var s, d;
63
- const o = await ((d = (s = x.value) == null ? void 0 : s.select) == null ? void 0 : d.call(s, {
60
+ setup(x, { emit: v }) {
61
+ const p = c(), a = c(!1), u = c(!0), i = x, C = q("api"), { lang: _ } = I(), b = v, f = async (n) => {
62
+ var s, y;
63
+ const o = await ((y = (s = C.value) == null ? void 0 : s.select) == null ? void 0 : y.call(s, {
64
64
  dictCode: n,
65
- locale: C.value
65
+ locale: _.value
66
66
  }));
67
- return o == null ? void 0 : o.map((y) => ({ label: y.itemText, value: y.itemValue }));
68
- }, b = async () => {
67
+ return o == null ? void 0 : o.map((g) => ({ label: g.itemText, value: g.itemValue }));
68
+ }, B = async () => {
69
69
  var n;
70
70
  if (!a.value)
71
71
  try {
72
72
  a.value = !0;
73
- const o = await ((n = c.value) == null ? void 0 : n.validateFields());
74
- console.log("params", o), await i.api(o), a.value = !1, O.success("操作成功"), f();
73
+ const o = await ((n = p.value) == null ? void 0 : n.validateFields());
74
+ console.log("params", o), await i.api(o), a.value = !1, O.success("操作成功"), d();
75
75
  } catch {
76
76
  a.value = !1;
77
77
  return;
78
78
  }
79
- }, f = () => {
80
- p.value = !1, _("modalClose");
79
+ }, d = () => {
80
+ u.value = !1, b("modalClose");
81
81
  };
82
- return (n, o) => (F(), h("div", null, [
83
- t(e(A), T(i, {
84
- open: p.value,
82
+ return (n, o) => (h(), T("div", null, [
83
+ t(e(A), w(i, {
84
+ open: u.value,
85
85
  title: "创建工单",
86
- "ok-text": "确认",
87
- "cancel-text": "取消",
88
- onOk: b,
86
+ "ok-text": m("span", {}, ["确认"]),
87
+ "cancel-text": m("span", {}, ["取消"]),
88
+ mask: !0,
89
+ "mask-closable": !0,
90
+ onOk: B,
89
91
  confirmLoading: a.value,
90
- onCancel: f
92
+ onCancel: d
91
93
  }), {
92
94
  default: l(() => [
93
95
  t(e(r), {
94
96
  ref_key: "formRef",
95
- ref: c
97
+ ref: p
96
98
  }, {
97
99
  default: l(() => [
98
100
  t(e(r).FormItem, {
@@ -113,7 +115,7 @@ const Y = /* @__PURE__ */ B({
113
115
  name: "ticketsType",
114
116
  rules: [{ required: !0, message: "不可为空" }],
115
117
  field: {
116
- request: () => u(e(g).TicketsType)
118
+ request: () => f(e(k).TicketsType)
117
119
  }
118
120
  }, null, 8, ["field"]),
119
121
  t(e(r).FormItem, {
@@ -134,7 +136,7 @@ const Y = /* @__PURE__ */ B({
134
136
  name: "ticketsLevel",
135
137
  rules: [{ required: !0, message: "不可为空" }],
136
138
  field: {
137
- request: () => u(e(g).TicketsLevel)
139
+ request: () => f(e(k).TicketsLevel)
138
140
  }
139
141
  }, null, 8, ["field"]),
140
142
  t(e(r).FormItem, { name: "files" }, {
@@ -150,7 +152,7 @@ const Y = /* @__PURE__ */ B({
150
152
  accept: ".txt,.doc,.docx,.rtf,.pdf,.jpg,.jpeg,.png,.gif,.bmp,.tiff,.tif,.mp4,.avi,.wmv,.mov,.mkv,.xls,.xlsx,.csv,.ppt,.pptx",
151
153
  maxCount: 10,
152
154
  maxSize: 50,
153
- subTitle: w($)
155
+ subTitle: m($)
154
156
  }, null, 8, ["getOssAccess", "subTitle"])
155
157
  ]),
156
158
  _: 1
@@ -160,7 +162,7 @@ const Y = /* @__PURE__ */ B({
160
162
  }, 512)
161
163
  ]),
162
164
  _: 1
163
- }, 16, ["open", "confirmLoading"])
165
+ }, 16, ["open", "ok-text", "cancel-text", "confirmLoading"])
164
166
  ]));
165
167
  }
166
168
  });
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),$=require("./components/modal.js");require("./components/modal-wrapper.vue.js");require("./components/modal-close.vue.js");require("./components/modal-footer.vue.js");require("./components/modal-header.vue.js");const W=require("./props.js"),T=require("./hooks/use-moda-full-screen.js"),p=require("lodash-unified"),B=require("@aplus-frontend/utils"),V=require("@fruits-chain/utils");require("../config-provider/index.js");require("./style/index.css");const I=require("../config-provider/hooks/use-namespace.js"),j=require("./components/modal-wrapper.vue2.js"),E=require("./components/modal-close.vue2.js"),L=require("./components/modal-header.vue2.js"),x=require("./components/modal-footer.vue2.js"),z=e.defineComponent({name:"BasicModal",inheritAttrs:!1,__name:"basic",props:W.basicProps,emits:["open-change","height-change","cancel","ok","register","update:open","fullscreen"],setup(q,{emit:w}){const n=q,a=w,k=e.useAttrs(),r=e.ref(!1),d=e.ref(null),s=e.ref(null),{b:P,bm:S}=I.useNamespace("basic-modal"),v=e.ref(0),g={setModalProps:M,emitOpen:void 0,redoModalHeight:()=>{e.nextTick(()=>{e.unref(s)&&e.unref(s).setModalHeight()})}},c=e.getCurrentInstance();c&&a("register",g,c.uid);const f=e.computed(()=>({...n,...e.unref(d)})),{handleFullScreen:H,getWrapClassName:_,fullScreenRef:u}=T.useFullScreen({modalWrapperRef:s,extHeightRef:v,wrapClassName:e.toRef(f.value,"wrapClassName")}),o=e.computed(()=>({...{...e.unref(f),open:e.unref(r),okButtonProps:void 0,cancelButtonProps:void 0,title:void 0},wrapClassName:e.unref(_)})),C=e.computed(()=>{const t={...k,...e.unref(f),open:e.unref(r)};return t.wrapClassName=`${(t==null?void 0:t.wrapClassName)||""} ${e.unref(_)}vben-basic-modal-wrap`,e.unref(u)?p.omit(t,["height","title"]):p.omit(t,"title")}),b=e.computed(()=>{if(!e.unref(u))return e.unref(o).height});e.watchEffect(()=>{r.value=!!n.open,u.value=!!n.defaultFullscreen}),e.watch(()=>e.unref(r),t=>{a("open-change",t),a("update:open",t),c&&g.emitOpen&&g.emitOpen(t,c.uid),e.nextTick(()=>{n.scrollTop&&t&&e.unref(s)&&e.unref(s).scrollTop()})},{immediate:!1});async function h(t){var m,l;if(t==null||t.stopPropagation(),!((l=(m=t.target)==null?void 0:m.classList)!=null&&l.contains(S("close","custom")))){if(n.closeFunc&&V.isFunction(n.closeFunc)){const i=await n.closeFunc();r.value=!i;return}r.value=!1,a("cancel",t)}}function M(t){d.value=B.deepMerge(e.unref(d)||{},t),Reflect.has(t,"open")&&(r.value=!!t.open),Reflect.has(t,"defaultFullscreen")&&(u.value=!!t.defaultFullscreen)}function y(t){a("ok",t)}function N(t){a("height-change",t)}function O(t){v.value=t}function R(t){n.canFullscreen&&(t.stopPropagation(),F(t))}function F(t){H(t),a("fullscreen")}return(t,m)=>(e.openBlock(),e.createBlock(e.unref($.default),e.mergeProps(C.value,{onCancel:h,class:e.unref(P)()}),e.createSlots({default:e.withCtx(()=>[e.createVNode(j.default,e.mergeProps({useWrapper:o.value.useWrapper,footerOffset:t.wrapperFooterOffset,fullScreen:e.unref(u),ref_key:"modalWrapperRef",ref:s,loading:o.value.loading,"loading-tip":o.value.loadingTip,minHeight:o.value.minHeight,height:b.value,open:r.value,modalFooterHeight:t.footer!==void 0&&!t.footer?0:void 0},e.unref(p.omit)(o.value.wrapperProps,"open","height","modalFooterHeight"),{onExtHeight:O,onHeightChange:N}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16,["useWrapper","footerOffset","fullScreen","loading","loading-tip","minHeight","height","open","modalFooterHeight"])]),_:2},[t.$slots.closeIcon?void 0:{name:"closeIcon",fn:e.withCtx(()=>[e.createVNode(E.default,{canFullscreen:o.value.canFullscreen,fullScreen:e.unref(u),onCancel:h,onFullscreen:F},null,8,["canFullscreen","fullScreen"])]),key:"0"},t.$slots.title?void 0:{name:"title",fn:e.withCtx(()=>[e.createVNode(L.default,{helpMessage:o.value.helpMessage,title:f.value.title,onDblclick:R},null,8,["helpMessage","title"])]),key:"1"},t.$slots.footer?void 0:{name:"footer",fn:e.withCtx(()=>[e.createVNode(x.default,e.mergeProps(C.value,{onOk:y,onCancel:h}),e.createSlots({_:2},[e.renderList(Object.keys(t.$slots),l=>({name:l,fn:e.withCtx(i=>[e.renderSlot(t.$slots,l,e.normalizeProps(e.guardReactiveProps(i||{})))])}))]),1040)]),key:"2"},e.renderList(Object.keys(e.unref(p.omit)(t.$slots,"default")),l=>({name:l,fn:e.withCtx(i=>[e.renderSlot(t.$slots,l,e.normalizeProps(e.guardReactiveProps(i||{})))])}))]),1040,["class"]))}});exports.default=z;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),$=require("./components/modal.js");require("./components/modal-wrapper.vue.js");require("./components/modal-close.vue.js");require("./components/modal-footer.vue.js");require("./components/modal-header.vue.js");const W=require("./props.js"),T=require("./hooks/use-moda-full-screen.js"),p=require("lodash-unified"),B=require("@aplus-frontend/utils"),V=require("@fruits-chain/utils");require("../config-provider/index.js");const I=require("../config-provider/hooks/use-namespace.js"),j=require("./components/modal-wrapper.vue2.js"),E=require("./components/modal-close.vue2.js"),L=require("./components/modal-header.vue2.js"),x=require("./components/modal-footer.vue2.js"),z=e.defineComponent({name:"BasicModal",inheritAttrs:!1,__name:"basic",props:W.basicProps,emits:["open-change","height-change","cancel","ok","register","update:open","fullscreen"],setup(w,{emit:k}){const n=w,a=k,q=e.useAttrs(),r=e.ref(!1),d=e.ref(null),s=e.ref(null),{b:P,bm:S}=I.useNamespace("basic-modal"),v=e.ref(0),g={setModalProps:M,emitOpen:void 0,redoModalHeight:()=>{e.nextTick(()=>{e.unref(s)&&e.unref(s).setModalHeight()})}},c=e.getCurrentInstance();c&&a("register",g,c.uid);const f=e.computed(()=>({...n,...e.unref(d)})),{handleFullScreen:H,getWrapClassName:_,fullScreenRef:u}=T.useFullScreen({modalWrapperRef:s,extHeightRef:v,wrapClassName:e.toRef(f.value,"wrapClassName")}),o=e.computed(()=>({...{...e.unref(f),open:e.unref(r),okButtonProps:void 0,cancelButtonProps:void 0,title:void 0},wrapClassName:e.unref(_)})),C=e.computed(()=>{const t={...q,...e.unref(f),open:e.unref(r)};return t.wrapClassName=`${(t==null?void 0:t.wrapClassName)||""} ${e.unref(_)}vben-basic-modal-wrap`,e.unref(u)?p.omit(t,["height","title"]):p.omit(t,"title")}),b=e.computed(()=>{if(!e.unref(u))return e.unref(o).height});e.watchEffect(()=>{r.value=!!n.open,u.value=!!n.defaultFullscreen}),e.watch(()=>e.unref(r),t=>{a("open-change",t),a("update:open",t),c&&g.emitOpen&&g.emitOpen(t,c.uid),e.nextTick(()=>{n.scrollTop&&t&&e.unref(s)&&e.unref(s).scrollTop()})},{immediate:!1});async function h(t){var m,l;if(t==null||t.stopPropagation(),!((l=(m=t.target)==null?void 0:m.classList)!=null&&l.contains(S("close","custom")))){if(n.closeFunc&&V.isFunction(n.closeFunc)){const i=await n.closeFunc();r.value=!i;return}r.value=!1,a("cancel",t)}}function M(t){d.value=B.deepMerge(e.unref(d)||{},t),Reflect.has(t,"open")&&(r.value=!!t.open),Reflect.has(t,"defaultFullscreen")&&(u.value=!!t.defaultFullscreen)}function y(t){a("ok",t)}function N(t){a("height-change",t)}function O(t){v.value=t}function R(t){n.canFullscreen&&(t.stopPropagation(),F(t))}function F(t){H(t),a("fullscreen")}return(t,m)=>(e.openBlock(),e.createBlock(e.unref($.default),e.mergeProps(C.value,{onCancel:h,class:e.unref(P)()}),e.createSlots({default:e.withCtx(()=>[e.createVNode(j.default,e.mergeProps({useWrapper:o.value.useWrapper,footerOffset:t.wrapperFooterOffset,fullScreen:e.unref(u),ref_key:"modalWrapperRef",ref:s,loading:o.value.loading,"loading-tip":o.value.loadingTip,minHeight:o.value.minHeight,height:b.value,open:r.value,modalFooterHeight:t.footer!==void 0&&!t.footer?0:void 0},e.unref(p.omit)(o.value.wrapperProps,"open","height","modalFooterHeight"),{onExtHeight:O,onHeightChange:N}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16,["useWrapper","footerOffset","fullScreen","loading","loading-tip","minHeight","height","open","modalFooterHeight"])]),_:2},[t.$slots.closeIcon?void 0:{name:"closeIcon",fn:e.withCtx(()=>[e.createVNode(E.default,{canFullscreen:o.value.canFullscreen,fullScreen:e.unref(u),onCancel:h,onFullscreen:F},null,8,["canFullscreen","fullScreen"])]),key:"0"},t.$slots.title?void 0:{name:"title",fn:e.withCtx(()=>[e.createVNode(L.default,{helpMessage:o.value.helpMessage,title:f.value.title,onDblclick:R},null,8,["helpMessage","title"])]),key:"1"},t.$slots.footer?void 0:{name:"footer",fn:e.withCtx(()=>[e.createVNode(x.default,e.mergeProps(C.value,{onOk:y,onCancel:h}),e.createSlots({_:2},[e.renderList(Object.keys(t.$slots),l=>({name:l,fn:e.withCtx(i=>[e.renderSlot(t.$slots,l,e.normalizeProps(e.guardReactiveProps(i||{})))])}))]),1040)]),key:"2"},e.renderList(Object.keys(e.unref(p.omit)(t.$slots,"default")),l=>({name:l,fn:e.withCtx(i=>[e.renderSlot(t.$slots,l,e.normalizeProps(e.guardReactiveProps(i||{})))])}))]),1040,["class"]))}});exports.default=z;
@@ -1,103 +0,0 @@
1
- .fullscreen-modal {
2
- overflow: hidden;
3
- }
4
- .fullscreen-modal .ant-modal {
5
- inset: 0 !important;
6
- width: 100% !important;
7
- max-width: 100%;
8
- height: 100%;
9
- }
10
- .fullscreen-modal .ant-modal-content {
11
- height: 100%;
12
- overflow: hidden;
13
- }
14
- .fullscreen-modal .ant-modal-footer {
15
- margin-top: 0;
16
- }
17
- .aplus-basic-modal {
18
- width: 520px;
19
- padding-bottom: 0;
20
- }
21
- .aplus-basic-modal .ant-modal-body > .aplus-scrollbar {
22
- padding: 20px;
23
- padding-bottom: 0;
24
- }
25
- .aplus-basic-modal .ant-modal-title {
26
- font-size: 16px;
27
- font-weight: bold;
28
- }
29
- .aplus-basic-modal .ant-modal-title .aplus-basic-title {
30
- cursor: move !important;
31
- padding-left: 0;
32
- }
33
- .aplus-basic-modal .ant-modal-body {
34
- padding: 0;
35
- }
36
- .aplus-basic-modal .ant-modal-body > .aplus-scrollbar > .aplus-scrollbar__bar.is-horizontal {
37
- display: none;
38
- }
39
- .aplus-basic-modal .ant-modal-large {
40
- top: 60px;
41
- }
42
- .aplus-basic-modal .ant-modal-large .ant-modal--mini {
43
- top: 16px;
44
- }
45
- .aplus-basic-modal .ant-modal-header {
46
- padding: 15px 20px;
47
- margin-bottom: 0;
48
- border-bottom: 1px solid #dee4ed;
49
- }
50
- .aplus-basic-modal .ant-modal-content {
51
- padding: 0 !important;
52
- }
53
- .aplus-basic-modal .ant-modal-footer {
54
- padding: 20px;
55
- margin-top: 0;
56
- }
57
- .aplus-basic-modal .ant-modal-footer button + button {
58
- margin-left: 10px;
59
- }
60
- .aplus-basic-modal .ant-modal-close {
61
- top: 0 !important;
62
- right: 0 !important;
63
- width: auto !important;
64
- outline: none;
65
- background: transparent !important;
66
- font-weight: normal;
67
- }
68
- .aplus-basic-modal .ant-modal-close-x {
69
- display: inline-block;
70
- width: 96px;
71
- height: 56px;
72
- line-height: 56px !important;
73
- }
74
- .aplus-basic-modal .ant-modal-confirm-body .ant-modal-confirm-content > * {
75
- color: #909399;
76
- }
77
- .aplus-basic-modal .ant-modal-confirm-confirm.error .ant-modal-confirm-body > .anticon {
78
- color: #ed6f6f;
79
- }
80
- .aplus-basic-modal .ant-modal-confirm-btns .ant-btn:last-child {
81
- margin-right: 0;
82
- }
83
- .aplus-basic-modal .ant-modal-confirm-info .ant-modal-confirm-body > .anticon {
84
- color: #efbd47;
85
- }
86
- .aplus-basic-modal .ant-modal-confirm-confirm.success .ant-modal-confirm-body > .anticon {
87
- color: #34b77c;
88
- }
89
- @media screen and (height <= 600px) {
90
- .ant-modal {
91
- top: 60px;
92
- }
93
- }
94
- @media screen and (height <= 540px) {
95
- .ant-modal {
96
- top: 30px;
97
- }
98
- }
99
- @media screen and (height <= 480px) {
100
- .ant-modal {
101
- top: 10px;
102
- }
103
- }
@@ -4,6 +4,3 @@
4
4
  .aplus-basic-form .ant-form-explain {
5
5
  font-size: 14px;
6
6
  }
7
- .aplus-basic-form--compact .ant-form-item {
8
- margin-bottom: 8px !important;
9
- }
@@ -1,84 +1,4 @@
1
- import { CSSProperties, PropType, DefineComponent, Ref, ComputedRef, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
2
- import { BasicColumn } from '../../types/table';
3
- import { Recordable } from '../../../type';
4
- import { ComponentType } from '../../component-map';
1
+ import { DefineSetupFnComponent, PublicProps } from 'vue';
5
2
 
6
- declare const _default: DefineComponent<{
7
- value: {
8
- type: PropType<string | number | boolean | Record<string, any>>;
9
- default: string;
10
- };
11
- record: {
12
- type: any;
13
- };
14
- column: {
15
- type: PropType<BasicColumn>;
16
- default: () => {};
17
- };
18
- index: {
19
- type: NumberConstructor;
20
- required: true;
21
- };
22
- }, {
23
- isEdit: Ref<boolean>;
24
- ns: {
25
- namespace: ComputedRef<string>;
26
- b: (blockSuffix?: string) => string;
27
- e: (element?: string | undefined) => string;
28
- m: (modifier?: string | undefined) => string;
29
- be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
30
- em: (element?: string | undefined, modifier?: string | undefined) => string;
31
- bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
32
- bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
33
- is: {
34
- (name: string, state: boolean | undefined): string;
35
- (name: string): string;
36
- };
37
- cssVar: (object: Record<string, string>) => Record<string, string>;
38
- cssVarName: (name: string) => string;
39
- cssVarBlock: (object: Record<string, string>) => Record<string, string>;
40
- cssVarBlockName: (name: string) => string;
41
- };
42
- handleEdit: (e: Event) => void;
43
- currentValueRef: Ref<any>;
44
- handleSubmit: (needEmit?: boolean, valid?: boolean) => Promise<false | undefined>;
45
- handleChange: (e: any) => Promise<void>;
46
- handleCancel: () => void;
47
- elRef: Ref<any>;
48
- getComponent: ComputedRef<ComponentType>;
49
- getRule: ComputedRef<boolean | ((text: string, record: Recordable<any>) => Promise<string>) | undefined>;
50
- onClickOutside: () => void;
51
- ruleMessage: Ref<string>;
52
- getRuleVisible: ComputedRef<boolean | "">;
53
- getComponentProps: ComputedRef<any>;
54
- handleOptionsChange: (options: any) => void;
55
- getWrapperStyle: ComputedRef<CSSProperties>;
56
- getWrapperClass: ComputedRef<string>;
57
- getRowEditable: ComputedRef<boolean>;
58
- getValues: ComputedRef<any>;
59
- handleEnter: () => Promise<void>;
60
- handleSubmitClick: () => void;
61
- spinning: Ref<boolean>;
62
- getDisable: ComputedRef<boolean>;
63
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
64
- value: {
65
- type: PropType<string | number | boolean | Record<string, any>>;
66
- default: string;
67
- };
68
- record: {
69
- type: any;
70
- };
71
- column: {
72
- type: PropType<BasicColumn>;
73
- default: () => {};
74
- };
75
- index: {
76
- type: NumberConstructor;
77
- required: true;
78
- };
79
- }>>, {
80
- value: string | number | boolean | Record<string, any>;
81
- column: BasicColumn;
82
- record: any;
83
- }, {}>;
3
+ declare const _default: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
84
4
  export default _default;
@@ -29,3 +29,19 @@
29
29
  margin-bottom: 4px;
30
30
  font-weight: bold !important;
31
31
  }
32
+ .ant-alert-warning {
33
+ background: rgba(250, 173, 20, 0.1);
34
+ border: 1px solid rgba(250, 173, 20, 0.4);
35
+ }
36
+ .ant-alert-info {
37
+ background: rgba(24, 144, 255, 0.1);
38
+ border: 1px solid rgba(24, 144, 255, 0.4);
39
+ }
40
+ .ant-alert-success {
41
+ background: rgba(52, 183, 124, 0.1);
42
+ border: 1px solid rgba(52, 183, 124, 0.4);
43
+ }
44
+ .ant-alert-error {
45
+ background: rgba(255, 77, 79, 0.1);
46
+ border: 1px solid rgba(255, 77, 79, 0.4);
47
+ }
@@ -29,6 +29,22 @@
29
29
  margin-bottom: 4px;
30
30
  font-weight: bold !important;
31
31
  }
32
+ .ant-alert-warning {
33
+ background: rgba(250, 173, 20, 0.1);
34
+ border: 1px solid rgba(250, 173, 20, 0.4);
35
+ }
36
+ .ant-alert-info {
37
+ background: rgba(24, 144, 255, 0.1);
38
+ border: 1px solid rgba(24, 144, 255, 0.4);
39
+ }
40
+ .ant-alert-success {
41
+ background: rgba(52, 183, 124, 0.1);
42
+ border: 1px solid rgba(52, 183, 124, 0.4);
43
+ }
44
+ .ant-alert-error {
45
+ background: rgba(255, 77, 79, 0.1);
46
+ border: 1px solid rgba(255, 77, 79, 0.4);
47
+ }
32
48
  .ant-btn {
33
49
  min-width: 88px;
34
50
  box-shadow: none;
@@ -221,20 +237,20 @@ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] di
221
237
  .ant-modal-root .ant-modal .ant-modal-content .ant-modal-footer button {
222
238
  min-width: 88px;
223
239
  }
224
- .ant-modal-root .ant-modal-confirm .ant-modal-body {
225
- padding: 28px 32px !important;
240
+ .ant-modal-root .ant-modal-confirm .ant-modal-content .ant-modal-body {
241
+ padding: 32px 32px 28px !important;
226
242
  }
227
- .ant-modal-root .ant-modal-confirm .ant-modal-body .ant-modal-confirm-body > .anticon {
243
+ .ant-modal-root .ant-modal-confirm .ant-modal-content .ant-modal-body .ant-modal-confirm-body > .anticon {
228
244
  margin-inline-end: 16px;
229
245
  font-size: 24px;
230
246
  }
231
- .ant-modal-root .ant-modal-confirm .ant-modal-body .ant-modal-confirm-body .ant-modal-confirm-title {
247
+ .ant-modal-root .ant-modal-confirm .ant-modal-content .ant-modal-body .ant-modal-confirm-body .ant-modal-confirm-title {
232
248
  color: #333333;
233
249
  font-weight: normal;
234
250
  font-size: 16px;
235
251
  line-height: 24px;
236
252
  }
237
- .ant-modal-root .ant-modal-confirm .ant-modal-body .ant-modal-confirm-body .ant-modal-confirm-content {
253
+ .ant-modal-root .ant-modal-confirm .ant-modal-content .ant-modal-body .ant-modal-confirm-body .ant-modal-confirm-content {
238
254
  max-width: calc(100% - 40px);
239
255
  color: #999999;
240
256
  font-weight: normal;
@@ -243,14 +259,14 @@ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] di
243
259
  margin-block-start: 8px;
244
260
  margin-inline-start: 40px;
245
261
  }
246
- .ant-modal-root .ant-modal-confirm .ant-modal-body .ant-modal-confirm-body .ant-modal-confirm-content > * {
262
+ .ant-modal-root .ant-modal-confirm .ant-modal-content .ant-modal-body .ant-modal-confirm-body .ant-modal-confirm-content > * {
247
263
  color: #999999;
248
264
  }
249
- .ant-modal-root .ant-modal-confirm .ant-modal-body .ant-modal-confirm-btns {
265
+ .ant-modal-root .ant-modal-confirm .ant-modal-content .ant-modal-body .ant-modal-confirm-btns {
250
266
  margin-top: 0;
251
267
  padding-top: 24px;
252
268
  }
253
- .ant-modal-root .ant-modal-confirm .ant-modal-body .ant-modal-confirm-btns button {
269
+ .ant-modal-root .ant-modal-confirm .ant-modal-content .ant-modal-body .ant-modal-confirm-btns button {
254
270
  min-width: 88px;
255
271
  }
256
272
  .ant-modal-confirm-success .ant-modal-confirm-body > .anticon {
@@ -343,7 +359,7 @@ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] di
343
359
  .ant-steps .ant-steps-item-icon {
344
360
  width: 28px;
345
361
  height: 28px;
346
- margin-top: 4px;
362
+ margin-top: 3px;
347
363
  display: flex;
348
364
  justify-content: center;
349
365
  align-items: center;
@@ -428,7 +444,7 @@ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] di
428
444
  .ant-steps.ant-steps-vertical .ant-steps-item-icon {
429
445
  width: 28px;
430
446
  height: 28px;
431
- margin-top: 4px;
447
+ margin-top: 3px;
432
448
  display: flex;
433
449
  justify-content: center;
434
450
  align-items: center;
@@ -491,6 +507,10 @@ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] di
491
507
  .ant-table-wrapper .ant-table-footer td {
492
508
  padding: 12px 8px;
493
509
  }
510
+ [class$='-basic-table'] {
511
+ max-width: 100%;
512
+ height: 100%;
513
+ }
494
514
  [class$='-basic-table-form-container'] {
495
515
  padding: 16px;
496
516
  }
@@ -510,3 +530,6 @@ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] di
510
530
  [class$='-basic-table--inset'] .ant-table-wrapper {
511
531
  padding: 0;
512
532
  }
533
+ [class$='-basic-table-row__striped'] td {
534
+ background-color: #fafafa;
535
+ }
@@ -70,20 +70,20 @@
70
70
  .ant-modal-root .ant-modal .ant-modal-content .ant-modal-footer button {
71
71
  min-width: 88px;
72
72
  }
73
- .ant-modal-root .ant-modal-confirm .ant-modal-body {
74
- padding: 28px 32px !important;
73
+ .ant-modal-root .ant-modal-confirm .ant-modal-content .ant-modal-body {
74
+ padding: 32px 32px 28px !important;
75
75
  }
76
- .ant-modal-root .ant-modal-confirm .ant-modal-body .ant-modal-confirm-body > .anticon {
76
+ .ant-modal-root .ant-modal-confirm .ant-modal-content .ant-modal-body .ant-modal-confirm-body > .anticon {
77
77
  margin-inline-end: 16px;
78
78
  font-size: 24px;
79
79
  }
80
- .ant-modal-root .ant-modal-confirm .ant-modal-body .ant-modal-confirm-body .ant-modal-confirm-title {
80
+ .ant-modal-root .ant-modal-confirm .ant-modal-content .ant-modal-body .ant-modal-confirm-body .ant-modal-confirm-title {
81
81
  color: #333333;
82
82
  font-weight: normal;
83
83
  font-size: 16px;
84
84
  line-height: 24px;
85
85
  }
86
- .ant-modal-root .ant-modal-confirm .ant-modal-body .ant-modal-confirm-body .ant-modal-confirm-content {
86
+ .ant-modal-root .ant-modal-confirm .ant-modal-content .ant-modal-body .ant-modal-confirm-body .ant-modal-confirm-content {
87
87
  max-width: calc(100% - 40px);
88
88
  color: #999999;
89
89
  font-weight: normal;
@@ -92,14 +92,14 @@
92
92
  margin-block-start: 8px;
93
93
  margin-inline-start: 40px;
94
94
  }
95
- .ant-modal-root .ant-modal-confirm .ant-modal-body .ant-modal-confirm-body .ant-modal-confirm-content > * {
95
+ .ant-modal-root .ant-modal-confirm .ant-modal-content .ant-modal-body .ant-modal-confirm-body .ant-modal-confirm-content > * {
96
96
  color: #999999;
97
97
  }
98
- .ant-modal-root .ant-modal-confirm .ant-modal-body .ant-modal-confirm-btns {
98
+ .ant-modal-root .ant-modal-confirm .ant-modal-content .ant-modal-body .ant-modal-confirm-btns {
99
99
  margin-top: 0;
100
100
  padding-top: 24px;
101
101
  }
102
- .ant-modal-root .ant-modal-confirm .ant-modal-body .ant-modal-confirm-btns button {
102
+ .ant-modal-root .ant-modal-confirm .ant-modal-content .ant-modal-body .ant-modal-confirm-btns button {
103
103
  min-width: 88px;
104
104
  }
105
105
  .ant-modal-confirm-success .ant-modal-confirm-body > .anticon {
@@ -7,7 +7,7 @@
7
7
  .ant-steps .ant-steps-item-icon {
8
8
  width: 28px;
9
9
  height: 28px;
10
- margin-top: 4px;
10
+ margin-top: 3px;
11
11
  display: flex;
12
12
  justify-content: center;
13
13
  align-items: center;
@@ -92,7 +92,7 @@
92
92
  .ant-steps.ant-steps-vertical .ant-steps-item-icon {
93
93
  width: 28px;
94
94
  height: 28px;
95
- margin-top: 4px;
95
+ margin-top: 3px;
96
96
  display: flex;
97
97
  justify-content: center;
98
98
  align-items: center;