@aplus-frontend/ui 0.0.1-beta.34 → 0.0.1-beta.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/src/modal/basic.vue2.mjs +10 -11
- package/es/src/modal/style/index.css +0 -103
- package/es/src/pro-form/style/index.css +0 -3
- package/es/src/pro-table/components/editable/editable-cell.vue.d.ts +2 -82
- package/es/src/theme/antd-global-overwrite/admin/alert.css +16 -0
- package/es/src/theme/antd-global-overwrite/admin/index.css +26 -3
- package/es/src/theme/antd-global-overwrite/admin/modal.css +1 -1
- package/es/src/theme/antd-global-overwrite/admin/steps.css +2 -2
- package/es/src/theme/antd-global-overwrite/admin/table.css +7 -0
- package/es/src/theme/antd-global-overwrite/aplus/alert.css +16 -0
- package/es/src/theme/antd-global-overwrite/aplus/form.css +10 -0
- package/es/src/theme/antd-global-overwrite/aplus/index.css +37 -3
- package/es/src/theme/antd-global-overwrite/aplus/modal.css +1 -1
- package/es/src/theme/antd-global-overwrite/aplus/steps.css +2 -2
- package/es/src/theme/antd-global-overwrite/aplus/table.css +8 -0
- package/es/src/theme/modal/index.css +0 -103
- package/es/src/theme/pro-form/form.css +0 -3
- package/es/src/work-order-modal/work-order-modal.vue.mjs +28 -26
- package/lib/src/modal/basic.vue2.js +1 -1
- package/lib/src/modal/style/index.css +0 -103
- package/lib/src/pro-form/style/index.css +0 -3
- package/lib/src/pro-table/components/editable/editable-cell.vue.d.ts +2 -82
- package/lib/src/theme/antd-global-overwrite/admin/alert.css +16 -0
- package/lib/src/theme/antd-global-overwrite/admin/index.css +26 -3
- package/lib/src/theme/antd-global-overwrite/admin/modal.css +1 -1
- package/lib/src/theme/antd-global-overwrite/admin/steps.css +2 -2
- package/lib/src/theme/antd-global-overwrite/admin/table.css +7 -0
- package/lib/src/theme/antd-global-overwrite/aplus/alert.css +16 -0
- package/lib/src/theme/antd-global-overwrite/aplus/form.css +10 -0
- package/lib/src/theme/antd-global-overwrite/aplus/index.css +37 -3
- package/lib/src/theme/antd-global-overwrite/aplus/modal.css +1 -1
- package/lib/src/theme/antd-global-overwrite/aplus/steps.css +2 -2
- package/lib/src/theme/antd-global-overwrite/aplus/table.css +8 -0
- package/lib/src/theme/modal/index.css +0 -103
- package/lib/src/theme/pro-form/form.css +0 -3
- package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
- package/package.json +1 -1
- package/es/src/ap-action/item-popconfirm/index.vue.d.ts +0 -343
- package/es/src/ap-field/select/index.vue.d.ts +0 -235
- package/es/src/ap-form/modal-form/index.vue.d.ts +0 -378
- package/es/src/ap-table/constants.d.ts +0 -5666
- package/es/src/config-provider/config-provider-props.d.ts +0 -152
- package/es/src/config-provider/config-provider.d.ts +0 -323
- package/es/src/config-provider/hooks/use-global-config.d.ts +0 -154
- package/es/src/config-provider/index.d.ts +0 -691
- package/es/src/modal/basic.vue.d.ts +0 -465
- package/es/src/modal/components/modal-footer.vue.d.ts +0 -457
- package/es/src/modal/components/modal.d.ts +0 -443
- package/es/src/modal/index.d.ts +0 -963
- package/es/src/modal/props.d.ts +0 -283
- package/es/src/pro-form/hooks/use-label-width.d.ts +0 -312
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +0 -343
- package/lib/src/ap-field/select/index.vue.d.ts +0 -235
- package/lib/src/ap-form/modal-form/index.vue.d.ts +0 -378
- package/lib/src/ap-table/constants.d.ts +0 -5666
- package/lib/src/config-provider/config-provider-props.d.ts +0 -152
- package/lib/src/config-provider/config-provider.d.ts +0 -323
- package/lib/src/config-provider/hooks/use-global-config.d.ts +0 -154
- package/lib/src/config-provider/index.d.ts +0 -691
- package/lib/src/modal/basic.vue.d.ts +0 -465
- package/lib/src/modal/components/modal-footer.vue.d.ts +0 -457
- package/lib/src/modal/components/modal.d.ts +0 -443
- package/lib/src/modal/index.d.ts +0 -963
- package/lib/src/modal/props.d.ts +0 -283
- package/lib/src/pro-form/hooks/use-label-width.d.ts +0 -312
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
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
|
|
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__ */
|
|
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(
|
|
61
|
-
const
|
|
62
|
-
var s,
|
|
63
|
-
const o = await ((
|
|
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:
|
|
65
|
+
locale: _.value
|
|
66
66
|
}));
|
|
67
|
-
return o == null ? void 0 : o.map((
|
|
68
|
-
},
|
|
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 =
|
|
74
|
-
console.log("params", o), await i.api(o), a.value = !1, O.success("操作成功"),
|
|
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
|
-
},
|
|
80
|
-
|
|
79
|
+
}, d = () => {
|
|
80
|
+
u.value = !1, b("modalClose");
|
|
81
81
|
};
|
|
82
|
-
return (n, o) => (
|
|
83
|
-
t(e(A),
|
|
84
|
-
open:
|
|
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
|
-
|
|
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:
|
|
92
|
+
onCancel: d
|
|
91
93
|
}), {
|
|
92
94
|
default: l(() => [
|
|
93
95
|
t(e(r), {
|
|
94
96
|
ref_key: "formRef",
|
|
95
|
-
ref:
|
|
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: () =>
|
|
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: () =>
|
|
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:
|
|
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");
|
|
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
|
-
}
|
|
@@ -1,84 +1,4 @@
|
|
|
1
|
-
import {
|
|
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:
|
|
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;
|
|
@@ -222,7 +238,7 @@ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] di
|
|
|
222
238
|
min-width: 88px;
|
|
223
239
|
}
|
|
224
240
|
.ant-modal-root .ant-modal-confirm .ant-modal-body {
|
|
225
|
-
padding:
|
|
241
|
+
padding: 32px 32px 28px !important;
|
|
226
242
|
}
|
|
227
243
|
.ant-modal-root .ant-modal-confirm .ant-modal-body .ant-modal-confirm-body > .anticon {
|
|
228
244
|
margin-inline-end: 16px;
|
|
@@ -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:
|
|
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:
|
|
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
|
+
}
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
min-width: 88px;
|
|
72
72
|
}
|
|
73
73
|
.ant-modal-root .ant-modal-confirm .ant-modal-body {
|
|
74
|
-
padding:
|
|
74
|
+
padding: 32px 32px 28px !important;
|
|
75
75
|
}
|
|
76
76
|
.ant-modal-root .ant-modal-confirm .ant-modal-body .ant-modal-confirm-body > .anticon {
|
|
77
77
|
margin-inline-end: 16px;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
.ant-steps .ant-steps-item-icon {
|
|
8
8
|
width: 28px;
|
|
9
9
|
height: 28px;
|
|
10
|
-
margin-top:
|
|
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:
|
|
95
|
+
margin-top: 3px;
|
|
96
96
|
display: flex;
|
|
97
97
|
justify-content: center;
|
|
98
98
|
align-items: center;
|
|
@@ -52,6 +52,10 @@
|
|
|
52
52
|
.ant-table-wrapper .ant-table-footer td {
|
|
53
53
|
padding: 12px 8px;
|
|
54
54
|
}
|
|
55
|
+
[class$='-basic-table'] {
|
|
56
|
+
max-width: 100%;
|
|
57
|
+
height: 100%;
|
|
58
|
+
}
|
|
55
59
|
[class$='-basic-table-form-container'] {
|
|
56
60
|
padding: 16px;
|
|
57
61
|
}
|
|
@@ -71,3 +75,6 @@
|
|
|
71
75
|
[class$='-basic-table--inset'] .ant-table-wrapper {
|
|
72
76
|
padding: 0;
|
|
73
77
|
}
|
|
78
|
+
[class$='-basic-table-row__striped'] td {
|
|
79
|
+
background-color: #fafafa;
|
|
80
|
+
}
|
|
@@ -29,3 +29,19 @@
|
|
|
29
29
|
margin-bottom: 4px;
|
|
30
30
|
font-weight: bold !important;
|
|
31
31
|
}
|
|
32
|
+
.ant-alert-warning {
|
|
33
|
+
background: rgba(255, 169, 64, 0.1);
|
|
34
|
+
border: 1px solid rgba(255, 169, 64, 0.4);
|
|
35
|
+
}
|
|
36
|
+
.ant-alert-info {
|
|
37
|
+
background: rgba(0, 112, 255, 0.1);
|
|
38
|
+
border: 1px solid rgba(0, 112, 255, 0.4);
|
|
39
|
+
}
|
|
40
|
+
.ant-alert-success {
|
|
41
|
+
background: rgba(46, 209, 163, 0.1);
|
|
42
|
+
border: 1px solid rgba(46, 209, 163, 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
|
+
}
|
|
@@ -17,6 +17,10 @@
|
|
|
17
17
|
.ant-form .ant-form-item-control .ant-radio-wrapper .ant-radio.ant-radio-checked .ant-radio-inner::after {
|
|
18
18
|
background-color: #0070ff;
|
|
19
19
|
}
|
|
20
|
+
.ant-form .ant-form-item-control .ant-select.ant-select-disabled .ant-select-selector {
|
|
21
|
+
color: #526a90;
|
|
22
|
+
background-color: #f2f6f9;
|
|
23
|
+
}
|
|
20
24
|
.ant-input::-moz-placeholder {
|
|
21
25
|
color: #abb7cc;
|
|
22
26
|
}
|
|
@@ -38,6 +42,12 @@
|
|
|
38
42
|
.ant-input-number .ant-input-number-input-wrap > input::placeholder {
|
|
39
43
|
color: #abb7cc;
|
|
40
44
|
}
|
|
45
|
+
input.ant-input[disabled] {
|
|
46
|
+
color: #526a90;
|
|
47
|
+
}
|
|
48
|
+
span.ant-input-affix-wrapper-disabled {
|
|
49
|
+
background-color: #f2f6f9;
|
|
50
|
+
}
|
|
41
51
|
div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] .ant-form-item {
|
|
42
52
|
margin-bottom: 16px;
|
|
43
53
|
/** 适配Aplus UI */
|
|
@@ -29,6 +29,22 @@
|
|
|
29
29
|
margin-bottom: 4px;
|
|
30
30
|
font-weight: bold !important;
|
|
31
31
|
}
|
|
32
|
+
.ant-alert-warning {
|
|
33
|
+
background: rgba(255, 169, 64, 0.1);
|
|
34
|
+
border: 1px solid rgba(255, 169, 64, 0.4);
|
|
35
|
+
}
|
|
36
|
+
.ant-alert-info {
|
|
37
|
+
background: rgba(0, 112, 255, 0.1);
|
|
38
|
+
border: 1px solid rgba(0, 112, 255, 0.4);
|
|
39
|
+
}
|
|
40
|
+
.ant-alert-success {
|
|
41
|
+
background: rgba(46, 209, 163, 0.1);
|
|
42
|
+
border: 1px solid rgba(46, 209, 163, 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;
|
|
@@ -86,6 +102,10 @@
|
|
|
86
102
|
.ant-form .ant-form-item-control .ant-radio-wrapper .ant-radio.ant-radio-checked .ant-radio-inner::after {
|
|
87
103
|
background-color: #0070ff;
|
|
88
104
|
}
|
|
105
|
+
.ant-form .ant-form-item-control .ant-select.ant-select-disabled .ant-select-selector {
|
|
106
|
+
color: #526a90;
|
|
107
|
+
background-color: #f2f6f9;
|
|
108
|
+
}
|
|
89
109
|
.ant-input::-moz-placeholder {
|
|
90
110
|
color: #abb7cc;
|
|
91
111
|
}
|
|
@@ -107,6 +127,12 @@
|
|
|
107
127
|
.ant-input-number .ant-input-number-input-wrap > input::placeholder {
|
|
108
128
|
color: #abb7cc;
|
|
109
129
|
}
|
|
130
|
+
input.ant-input[disabled] {
|
|
131
|
+
color: #526a90;
|
|
132
|
+
}
|
|
133
|
+
span.ant-input-affix-wrapper-disabled {
|
|
134
|
+
background-color: #f2f6f9;
|
|
135
|
+
}
|
|
110
136
|
div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] .ant-form-item {
|
|
111
137
|
margin-bottom: 16px;
|
|
112
138
|
/** 适配Aplus UI */
|
|
@@ -231,7 +257,7 @@ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] di
|
|
|
231
257
|
min-width: 88px;
|
|
232
258
|
}
|
|
233
259
|
.ant-modal-root .ant-modal-confirm .ant-modal-body {
|
|
234
|
-
padding:
|
|
260
|
+
padding: 32px 32px 28px !important;
|
|
235
261
|
}
|
|
236
262
|
.ant-modal-root .ant-modal-confirm .ant-modal-body .ant-modal-confirm-body > .anticon {
|
|
237
263
|
margin-inline-end: 16px;
|
|
@@ -365,7 +391,7 @@ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] di
|
|
|
365
391
|
.ant-steps .ant-steps-item-icon {
|
|
366
392
|
width: 28px;
|
|
367
393
|
height: 28px;
|
|
368
|
-
margin-top:
|
|
394
|
+
margin-top: 3px;
|
|
369
395
|
display: flex;
|
|
370
396
|
justify-content: center;
|
|
371
397
|
align-items: center;
|
|
@@ -453,7 +479,7 @@ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] di
|
|
|
453
479
|
justify-content: center;
|
|
454
480
|
width: 28px;
|
|
455
481
|
height: 28px;
|
|
456
|
-
margin-top:
|
|
482
|
+
margin-top: 3px;
|
|
457
483
|
}
|
|
458
484
|
.ant-steps.ant-steps-vertical.ant-steps-small .ant-steps-item .ant-steps-item-tail {
|
|
459
485
|
inset-inline-start: 13px;
|
|
@@ -503,6 +529,7 @@ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] di
|
|
|
503
529
|
font-style: normal;
|
|
504
530
|
text-align: left;
|
|
505
531
|
text-transform: none;
|
|
532
|
+
transition: unset;
|
|
506
533
|
}
|
|
507
534
|
.ant-table-wrapper .ant-table.ant-table-middle .ant-table-container .ant-table-thead tr > th {
|
|
508
535
|
padding: 12px 16px;
|
|
@@ -528,3 +555,10 @@ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] di
|
|
|
528
555
|
padding: 10.5px 16px;
|
|
529
556
|
line-height: 18px;
|
|
530
557
|
}
|
|
558
|
+
[class$='-basic-table'] {
|
|
559
|
+
max-width: 100%;
|
|
560
|
+
height: 100%;
|
|
561
|
+
}
|
|
562
|
+
[class$='-basic-table-row__striped'] td {
|
|
563
|
+
background-color: #f6f9fa;
|
|
564
|
+
}
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
min-width: 88px;
|
|
66
66
|
}
|
|
67
67
|
.ant-modal-root .ant-modal-confirm .ant-modal-body {
|
|
68
|
-
padding:
|
|
68
|
+
padding: 32px 32px 28px !important;
|
|
69
69
|
}
|
|
70
70
|
.ant-modal-root .ant-modal-confirm .ant-modal-body .ant-modal-confirm-body > .anticon {
|
|
71
71
|
margin-inline-end: 16px;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
.ant-steps .ant-steps-item-icon {
|
|
8
8
|
width: 28px;
|
|
9
9
|
height: 28px;
|
|
10
|
-
margin-top:
|
|
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:
|
|
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
|
+
}
|