@aplus-frontend/ui 0.5.9 → 0.5.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/src/ap-descriptions/ap-descriptions.vue.mjs +70 -54
- package/es/src/ap-descriptions/formatter/index.d.ts +2 -1
- package/es/src/ap-descriptions/formatter/index.mjs +92 -76
- package/es/src/ap-descriptions/helper.d.ts +3 -4
- package/es/src/ap-descriptions/helper.mjs +15 -13
- package/es/src/ap-descriptions/interface.d.ts +6 -0
- package/es/src/ap-field/select/index.vue.d.ts +12 -12
- package/es/src/ap-grid/utils/col.mjs +32 -31
- package/es/src/ap-table/ap-table.vue2.mjs +49 -45
- package/es/src/ap-table/components/paragraph-ellipsis/index.vue.d.ts +1 -0
- package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +33 -33
- package/es/src/ap-table/constants.d.ts +6 -6
- package/es/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/es/src/business/ap-group-search/index.d.ts +18 -18
- package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +6 -6
- package/es/src/business/hooks/usePageListApGrid.mjs +9 -10
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
- package/es/src/work-order-modal/work-order-modal.vue.mjs +27 -27
- package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
- package/lib/src/ap-descriptions/formatter/index.d.ts +2 -1
- package/lib/src/ap-descriptions/formatter/index.js +1 -1
- package/lib/src/ap-descriptions/helper.d.ts +3 -4
- package/lib/src/ap-descriptions/helper.js +1 -1
- package/lib/src/ap-descriptions/interface.d.ts +6 -0
- package/lib/src/ap-field/select/index.vue.d.ts +12 -12
- package/lib/src/ap-grid/utils/col.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/components/paragraph-ellipsis/index.vue.d.ts +1 -0
- package/lib/src/ap-table/components/paragraph-ellipsis/index.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +6 -6
- package/lib/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/lib/src/business/ap-group-search/index.d.ts +18 -18
- package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +6 -6
- package/lib/src/business/hooks/usePageListApGrid.js +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
- package/package.json +5 -5
- package/theme/ap-descriptions/ap-descriptions.css +10 -0
- package/theme/ap-descriptions/ap-descriptions.less +13 -0
- package/theme/ap-tag/ap-tag.css +6 -6
- package/theme/ap-tag/ap-tag.less +1 -2
- package/theme/index.css +16 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../config-provider/index.js");const u=require("@aplus-frontend/antdv"),d=require("@ant-design/icons-vue"),b=require("../../../config-provider/hooks/use-namespace.js"),h=require("../../../config-provider/hooks/use-locale.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../config-provider/index.js");const u=require("@aplus-frontend/antdv"),d=require("@ant-design/icons-vue"),b=require("../../../config-provider/hooks/use-namespace.js"),h=require("../../../config-provider/hooks/use-locale.js"),w=e.defineComponent({name:"ApTableParagraphEllipsis",__name:"index",props:{copyable:{type:Boolean},content:{type:[Object,String,Number,Boolean,null,Array]},rawValue:{},ellipsis:{type:[Boolean,Object]}},setup(m){const{b:s}=b.useNamespace("ap-table-paragraph-ellipsis"),{t:p}=h.useLocale(),l=m,n=e.ref(!1),c=e.computed(()=>l.ellipsis===!0?{rows:1,tooltip:l.content,htmlTitle:""}:typeof l.ellipsis=="object"?Object.assign({rows:1,tooltip:l.content,htmlTitle:""},l.ellipsis):{});function f(){return(window.top!==window?window.top:window)??window}function y(a){var r;const t=f();if((r=t==null?void 0:t.navigator)!=null&&r.clipboard)t.navigator.clipboard.writeText(a);else if(t.document){const o=t.document.createElement("textarea");o.value=a,o.style.position="fixed",o.style.top="-1000px",t.document.body.appendChild(o),o.focus(),o.select();try{t.document.execCommand("copy")}catch(i){console.error("复制失败:",i)}t.document.body.removeChild(o)}}function v(){const a=l.rawValue||"";y(a),n.value||(n.value=!0,setTimeout(()=>{n.value=!1},2200))}return(a,t)=>{var r,o;return e.openBlock(),e.createElementBlock("div",e.mergeProps({class:[e.unref(s)()]},{...a.$attrs},{style:{"--ap-table-paragraph-ellipsis-rows":(r=c.value)==null?void 0:r.rows}}),[e.createElementVNode("div",{class:e.normalizeClass([e.unref(s)("content")])},[e.createVNode(e.unref(u.Tooltip),null,e.createSlots({default:e.withCtx(()=>{var i;return[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.h("span",{title:(i=c.value)==null?void 0:i.htmlTitle},[l.content]))))]}),_:2},[(o=c.value)!=null&&o.tooltip?{name:"title",fn:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.h("div",[c.value.tooltip]))))]),key:"0"}:void 0]),1024)],2),l.copyable?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(s)("copyable")]),onClick:v},[e.createVNode(e.unref(u.Tooltip),{title:n.value?e.unref(p)("ap.apTable.paragraphEllipsis.copySuccess"):e.unref(p)("ap.apTable.paragraphEllipsis.copy")},{default:e.withCtx(()=>[n.value?(e.openBlock(),e.createBlock(e.unref(d.CheckOutlined),{key:1})):(e.openBlock(),e.createBlock(e.unref(d.CopyOutlined),{key:0}))]),_:1},8,["title"])],2)):e.createCommentVNode("",!0)],16)}}});exports.default=w;
|
|
@@ -2649,8 +2649,8 @@ export declare const apTableRenderItemMap: {
|
|
|
2649
2649
|
popupClassName: StringConstructor;
|
|
2650
2650
|
dropdownClassName: StringConstructor;
|
|
2651
2651
|
placement: {
|
|
2652
|
-
type: PropType<"
|
|
2653
|
-
default: "
|
|
2652
|
+
type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
|
|
2653
|
+
default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
2654
2654
|
};
|
|
2655
2655
|
status: {
|
|
2656
2656
|
type: PropType<"" | "error" | "warning">;
|
|
@@ -2796,7 +2796,7 @@ export declare const apTableRenderItemMap: {
|
|
|
2796
2796
|
status: "" | "error" | "warning";
|
|
2797
2797
|
defaultValue: SelectValue;
|
|
2798
2798
|
'onUpdate:value': (val: SelectValue) => void;
|
|
2799
|
-
placement: "
|
|
2799
|
+
placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
2800
2800
|
loading: boolean;
|
|
2801
2801
|
bordered: boolean;
|
|
2802
2802
|
allowClear: boolean;
|
|
@@ -2860,8 +2860,8 @@ export declare const apTableRenderItemMap: {
|
|
|
2860
2860
|
popupClassName: StringConstructor;
|
|
2861
2861
|
dropdownClassName: StringConstructor;
|
|
2862
2862
|
placement: {
|
|
2863
|
-
type: PropType<"
|
|
2864
|
-
default: "
|
|
2863
|
+
type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
|
|
2864
|
+
default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
2865
2865
|
};
|
|
2866
2866
|
status: {
|
|
2867
2867
|
type: PropType<"" | "error" | "warning">;
|
|
@@ -3007,7 +3007,7 @@ export declare const apTableRenderItemMap: {
|
|
|
3007
3007
|
status: "" | "error" | "warning";
|
|
3008
3008
|
defaultValue: SelectValue;
|
|
3009
3009
|
'onUpdate:value': (val: SelectValue) => void;
|
|
3010
|
-
placement: "
|
|
3010
|
+
placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
3011
3011
|
loading: boolean;
|
|
3012
3012
|
bordered: boolean;
|
|
3013
3013
|
allowClear: boolean;
|
|
@@ -264,7 +264,7 @@ declare const ApBatchActionGroup: {
|
|
|
264
264
|
};
|
|
265
265
|
getPopupContainer: PropType<(triggerNode: HTMLElement) => HTMLElement>;
|
|
266
266
|
transitionName: StringConstructor;
|
|
267
|
-
placement: PropType<"top" | "bottom" | "
|
|
267
|
+
placement: PropType<"top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "topCenter" | "bottomCenter">;
|
|
268
268
|
overlayClassName: StringConstructor;
|
|
269
269
|
overlayStyle: {
|
|
270
270
|
type: PropType<CSSProperties>;
|
|
@@ -565,7 +565,7 @@ declare const ApBatchActionGroup: {
|
|
|
565
565
|
};
|
|
566
566
|
getPopupContainer: PropType<(triggerNode: HTMLElement) => HTMLElement>;
|
|
567
567
|
transitionName: StringConstructor;
|
|
568
|
-
placement: PropType<"top" | "bottom" | "
|
|
568
|
+
placement: PropType<"top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "topCenter" | "bottomCenter">;
|
|
569
569
|
overlayClassName: StringConstructor;
|
|
570
570
|
overlayStyle: {
|
|
571
571
|
type: PropType<CSSProperties>;
|
|
@@ -863,7 +863,7 @@ declare const ApBatchActionGroup: {
|
|
|
863
863
|
};
|
|
864
864
|
getPopupContainer: PropType<(triggerNode: HTMLElement) => HTMLElement>;
|
|
865
865
|
transitionName: StringConstructor;
|
|
866
|
-
placement: PropType<"top" | "bottom" | "
|
|
866
|
+
placement: PropType<"top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "topCenter" | "bottomCenter">;
|
|
867
867
|
overlayClassName: StringConstructor;
|
|
868
868
|
overlayStyle: {
|
|
869
869
|
type: PropType<CSSProperties>;
|
|
@@ -87,8 +87,8 @@ declare const ApExtensionSelect: {
|
|
|
87
87
|
popupClassName: StringConstructor;
|
|
88
88
|
dropdownClassName: StringConstructor;
|
|
89
89
|
placement: {
|
|
90
|
-
type: PropType<"
|
|
91
|
-
default: "
|
|
90
|
+
type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
|
|
91
|
+
default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
92
92
|
};
|
|
93
93
|
status: {
|
|
94
94
|
type: PropType<"" | "error" | "warning">;
|
|
@@ -269,8 +269,8 @@ declare const ApExtensionSelect: {
|
|
|
269
269
|
popupClassName: StringConstructor;
|
|
270
270
|
dropdownClassName: StringConstructor;
|
|
271
271
|
placement: {
|
|
272
|
-
type: PropType<"
|
|
273
|
-
default: "
|
|
272
|
+
type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
|
|
273
|
+
default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
274
274
|
};
|
|
275
275
|
status: {
|
|
276
276
|
type: PropType<"" | "error" | "warning">;
|
|
@@ -444,8 +444,8 @@ declare const ApExtensionSelect: {
|
|
|
444
444
|
popupClassName: StringConstructor;
|
|
445
445
|
dropdownClassName: StringConstructor;
|
|
446
446
|
placement: {
|
|
447
|
-
type: PropType<"
|
|
448
|
-
default: "
|
|
447
|
+
type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
|
|
448
|
+
default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
449
449
|
};
|
|
450
450
|
status: {
|
|
451
451
|
type: PropType<"" | "error" | "warning">;
|
|
@@ -623,8 +623,8 @@ declare const ApPopoverSelect: {
|
|
|
623
623
|
popupClassName: StringConstructor;
|
|
624
624
|
dropdownClassName: StringConstructor;
|
|
625
625
|
placement: {
|
|
626
|
-
type: PropType<"
|
|
627
|
-
default: "
|
|
626
|
+
type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
|
|
627
|
+
default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
628
628
|
};
|
|
629
629
|
status: {
|
|
630
630
|
type: PropType<"" | "error" | "warning">;
|
|
@@ -799,8 +799,8 @@ declare const ApPopoverSelect: {
|
|
|
799
799
|
popupClassName: StringConstructor;
|
|
800
800
|
dropdownClassName: StringConstructor;
|
|
801
801
|
placement: {
|
|
802
|
-
type: PropType<"
|
|
803
|
-
default: "
|
|
802
|
+
type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
|
|
803
|
+
default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
804
804
|
};
|
|
805
805
|
status: {
|
|
806
806
|
type: PropType<"" | "error" | "warning">;
|
|
@@ -946,7 +946,7 @@ declare const ApPopoverSelect: {
|
|
|
946
946
|
status: "" | "error" | "warning";
|
|
947
947
|
defaultValue: SelectValue;
|
|
948
948
|
'onUpdate:value': (val: SelectValue) => void;
|
|
949
|
-
placement: "
|
|
949
|
+
placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
950
950
|
loading: boolean;
|
|
951
951
|
bordered: boolean;
|
|
952
952
|
allowClear: boolean;
|
|
@@ -1010,8 +1010,8 @@ declare const ApPopoverSelect: {
|
|
|
1010
1010
|
popupClassName: StringConstructor;
|
|
1011
1011
|
dropdownClassName: StringConstructor;
|
|
1012
1012
|
placement: {
|
|
1013
|
-
type: PropType<"
|
|
1014
|
-
default: "
|
|
1013
|
+
type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
|
|
1014
|
+
default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
1015
1015
|
};
|
|
1016
1016
|
status: {
|
|
1017
1017
|
type: PropType<"" | "error" | "warning">;
|
|
@@ -1157,7 +1157,7 @@ declare const ApPopoverSelect: {
|
|
|
1157
1157
|
status: "" | "error" | "warning";
|
|
1158
1158
|
defaultValue: SelectValue;
|
|
1159
1159
|
'onUpdate:value': (val: SelectValue) => void;
|
|
1160
|
-
placement: "
|
|
1160
|
+
placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
1161
1161
|
loading: boolean;
|
|
1162
1162
|
bordered: boolean;
|
|
1163
1163
|
allowClear: boolean;
|
|
@@ -1209,8 +1209,8 @@ declare const ApPopoverSelect: {
|
|
|
1209
1209
|
popupClassName: StringConstructor;
|
|
1210
1210
|
dropdownClassName: StringConstructor;
|
|
1211
1211
|
placement: {
|
|
1212
|
-
type: PropType<"
|
|
1213
|
-
default: "
|
|
1212
|
+
type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
|
|
1213
|
+
default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
1214
1214
|
};
|
|
1215
1215
|
status: {
|
|
1216
1216
|
type: PropType<"" | "error" | "warning">;
|
|
@@ -1385,8 +1385,8 @@ declare const ApPopoverSelect: {
|
|
|
1385
1385
|
popupClassName: StringConstructor;
|
|
1386
1386
|
dropdownClassName: StringConstructor;
|
|
1387
1387
|
placement: {
|
|
1388
|
-
type: PropType<"
|
|
1389
|
-
default: "
|
|
1388
|
+
type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
|
|
1389
|
+
default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
1390
1390
|
};
|
|
1391
1391
|
status: {
|
|
1392
1392
|
type: PropType<"" | "error" | "warning">;
|
|
@@ -49,8 +49,8 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
49
49
|
popupClassName: StringConstructor;
|
|
50
50
|
dropdownClassName: StringConstructor;
|
|
51
51
|
placement: {
|
|
52
|
-
type: PropType<"
|
|
53
|
-
default: "
|
|
52
|
+
type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
|
|
53
|
+
default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
54
54
|
};
|
|
55
55
|
status: {
|
|
56
56
|
type: PropType<"" | "error" | "warning">;
|
|
@@ -196,7 +196,7 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
196
196
|
status: "" | "error" | "warning";
|
|
197
197
|
defaultValue: SelectValue;
|
|
198
198
|
'onUpdate:value': (val: SelectValue) => void;
|
|
199
|
-
placement: "
|
|
199
|
+
placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
200
200
|
loading: boolean;
|
|
201
201
|
bordered: boolean;
|
|
202
202
|
allowClear: boolean;
|
|
@@ -260,8 +260,8 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
260
260
|
popupClassName: StringConstructor;
|
|
261
261
|
dropdownClassName: StringConstructor;
|
|
262
262
|
placement: {
|
|
263
|
-
type: PropType<"
|
|
264
|
-
default: "
|
|
263
|
+
type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
|
|
264
|
+
default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
265
265
|
};
|
|
266
266
|
status: {
|
|
267
267
|
type: PropType<"" | "error" | "warning">;
|
|
@@ -407,7 +407,7 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
407
407
|
status: "" | "error" | "warning";
|
|
408
408
|
defaultValue: SelectValue;
|
|
409
409
|
'onUpdate:value': (val: SelectValue) => void;
|
|
410
|
-
placement: "
|
|
410
|
+
placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
411
411
|
loading: boolean;
|
|
412
412
|
bordered: boolean;
|
|
413
413
|
allowClear: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../config-provider/index.js");require("../index.js");const c=require("lodash-unified"),m=require("vue"),v=require("../../config-provider/hooks/use-global-config.js"),b=require("./useTableRefresh.js");function q(a){const o=m.ref(null),{isShowRowSelection:i=!0,clearSelectionOnRequest:d=!0,transformSearchFormValues:s,api:n,tableRefresh:f=!1,...
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../config-provider/index.js");require("../index.js");const c=require("lodash-unified"),m=require("vue"),v=require("../../config-provider/hooks/use-global-config.js"),b=require("./useTableRefresh.js");function q(a){const o=m.ref(null),{isShowRowSelection:i=!0,clearSelectionOnRequest:d=!0,transformSearchFormValues:s,api:n,tableRefresh:f=!1,...h}=a||{};let l=null;const p=v.useGlobalConfig("uiMode","aplus"),u=()=>{var e,r;(r=(e=o.value)==null?void 0:e.rowSelection)==null||r.clearAll()};b.useTableRefresh({...G(f),apTableRef:o});const S=async e=>{l=e.sort;const r=s?s(e):e;try{if(!n)throw new Error("api is not defined");const{records:t,total:g}=await n(r);return d&&u(),{data:t,total:g}}catch(t){return console.error(t),{data:[],total:0}}};return[c.merge({scroll:{x:"100%",y:"100%"},columnResizable:!0,sticky:!0,request:n?S:void 0,rowSelection:i?{fixed:"left",columnWidth:50}:void 0,ref(e){o.value=e},card:!0,bordered:p.value==="admin"},h),{reload:()=>{var e;(e=o.value)==null||e.submit()},reset:()=>{var e;(e=o.value)==null||e.reset()},getSearchFormValues:(e=!0)=>{var t;const r=((t=o.value)==null?void 0:t.getSearchFormValues(!!e))||{};return s?s(r):r},getApGridInstance:()=>o.value,getSearchFormValuesAndSorted:(e=!0)=>{var t;const r=((t=o.value)==null?void 0:t.getSearchFormValues(!!e))||{};return r.sort=l&&c.cloneDeep(l),s?s(r):r},clearSelection:u}]}function G(a){return a===!0?{}:a===!1?{refreshBefore:()=>!1}:a}exports.usePageListApGrid=q;
|
|
@@ -106,7 +106,7 @@ declare const _default: DefineComponent<WorkOrderModalProps, {}, {}, {}, {}, Com
|
|
|
106
106
|
readonly hideRequiredMark?: boolean | undefined;
|
|
107
107
|
readonly validateOnRuleChange?: boolean | undefined;
|
|
108
108
|
readonly scrollToFirstError?: boolean | Options<any> | undefined;
|
|
109
|
-
readonly onFieldsChange?: ((changedFields: FieldData[], allFields:
|
|
109
|
+
readonly onFieldsChange?: ((changedFields: FieldData[], allFields: FieldData[]) => void) | undefined;
|
|
110
110
|
readonly onFinish?: ((values: any) => void) | undefined;
|
|
111
111
|
readonly onFinishFailed?: ((errorInfo: ValidateErrorEntity<any>) => void) | undefined;
|
|
112
112
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("@aplus-frontend/antdv"),s=require("../ap-form/index.js");require("./help-message.vue.js");require("../ap-upload/index.js");const i=require("./interfaces.js");require("../config-provider/index.js");require("../hooks/index.js");const _=require("../config-provider/hooks/use-locale.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("@aplus-frontend/antdv"),s=require("../ap-form/index.js");require("./help-message.vue.js");require("../ap-upload/index.js");const i=require("./interfaces.js");require("../config-provider/index.js");require("../hooks/index.js");const _=require("../config-provider/hooks/use-locale.js"),O=require("../config-provider/hooks/use-namespace.js"),T=require("../config-provider/hooks/use-global-config.js"),F=require("../hooks/useControllableValue.js"),M=require("../ap-form/items/select/index.vue.js"),N=require("../ap-form/items/radio/index.vue.js"),B=require("../ap-upload/apUpload.vue.js"),V=require("./help-message.vue2.js"),L=e.defineComponent({__name:"work-order-modal",props:{api:{type:Function},getOssAccess:{},prefixCls:{},visible:{type:Boolean},open:{type:Boolean},confirmLoading:{type:Boolean},title:{},closable:{type:Boolean},closeIcon:{},onOk:{type:Function},onCancel:{type:Function},"onUpdate:visible":{type:Function},"onUpdate:open":{type:Function},onChange:{type:Function},afterClose:{type:Function},centered:{type:Boolean},width:{},footer:{},okText:{},okType:{},cancelText:{},icon:{},maskClosable:{type:Boolean},forceRender:{type:Boolean},okButtonProps:{},cancelButtonProps:{},destroyOnClose:{type:Boolean},wrapClassName:{},maskTransitionName:{},transitionName:{},getContainer:{type:[String,Boolean,Function]},zIndex:{},bodyStyle:{},maskStyle:{},mask:{type:Boolean},keyboard:{type:Boolean},wrapProps:{},focusTriggerAfterClose:{type:Boolean},modalRender:{type:Function},mousePosition:{}},emits:["update:open","modalClose"],setup(g,{emit:v}){const{t}=_.useLocale(),{b}=O.useNamespace("work-order-modal"),p=v,d=e.ref(),a=e.ref(!1),l=g,w=T.useGlobalConfig("api"),{lang:x}=_.useLocale(),C=e.computed(()=>i.langMap[x.value]??"zh_CN"),{value:c,updateValue:h}=F.useControllableValue(l,p,{valuePropName:"open",defaultValue:!0}),f=async r=>{var n,k;const o=await((k=(n=w.value)==null?void 0:n.select)==null?void 0:k.call(n,{dictCode:r,locale:C.value}));return o==null?void 0:o.map(y=>({label:y.itemText,value:y.itemValue}))},q=async()=>{var r;if(!a.value)try{a.value=!0;const o=await((r=d.value)==null?void 0:r.validateFields());await l.api(o),a.value=!1,u.message.success("操作成功"),m()}catch{a.value=!1;return}},m=()=>{h(!1),c.value=!1,setTimeout(()=>{console.log(c.value)},500),p("modalClose")};return(r,o)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(u.Modal),e.mergeProps(l,{width:600,centered:!0,open:e.unref(c),title:e.unref(t)("ap.workOrderModal.createTickets"),"ok-text":e.unref(t)("ap.workOrderModal.submit"),"cancel-text":e.unref(t)("ap.workOrderModal.cancel"),mask:!0,"mask-closable":!0,"wrap-class-name":e.unref(b)(),closable:!0,"confirm-loading":a.value,onOk:q,onCancel:m}),{default:e.withCtx(()=>[e.createVNode(e.unref(s.ApForm),{ref_key:"formRef",ref:d,colon:""},{default:e.withCtx(()=>[e.createVNode(e.unref(s.ApForm).FormItem,{label:e.unref(t)("ap.workOrderModal.ticketsTitle"),name:"ticketsTitle",rules:[{required:!0,message:e.unref(t)("ap.workOrderModal.noEmpty")}]},{default:e.withCtx(()=>[e.createVNode(e.unref(u.Input),{placeholder:e.unref(t)("ap.common.inputText"),maxlength:50,"show-count":!0},null,8,["placeholder"])]),_:1},8,["label","rules"]),e.createVNode(e.unref(M.default),{label:e.unref(t)("ap.workOrderModal.ticketsType"),name:"ticketsType",rules:[{required:!0,message:e.unref(t)("ap.workOrderModal.noEmpty")}],field:{placeholder:e.unref(t)("ap.common.chooseText"),request:()=>f(e.unref(i.DictCode).TicketsType)}},null,8,["label","rules","field"]),e.createVNode(e.unref(s.ApForm).FormItem,{label:e.unref(t)("ap.workOrderModal.ticketsDetail"),name:"ticketsContent",rules:[{required:!0,message:e.unref(t)("ap.workOrderModal.noEmpty")}]},{default:e.withCtx(()=>[e.createVNode(e.unref(u.Textarea),{placeholder:e.unref(t)("ap.workOrderModal.pleaseEntry"),maxlength:300,"show-count":!1},null,8,["placeholder"])]),_:1},8,["label","rules"]),e.createVNode(e.unref(N.default),{label:e.unref(t)("ap.workOrderModal.ticketsLevel"),name:"ticketsLevel",rules:[{required:!0,message:e.unref(t)("ap.workOrderModal.noEmpty")}],field:{request:()=>f(e.unref(i.DictCode).TicketsLevel)}},null,8,["label","rules","field"]),e.createVNode(e.unref(s.ApForm).FormItem,{name:"files",label:e.unref(t)("ap.workOrderModal.fileLabel")},{default:e.withCtx(()=>[e.createVNode(e.unref(B.default),{"dir-name":"WorkOrder","get-oss-access":l.getOssAccess,type:"multipleFile","need-name":{pathKey:"filePath",nameKey:"fileName"},accept:".txt,.doc,.docx,.rtf,.pdf,.jpg,.jpeg,.png,.gif,.bmp,.tiff,.tif,.mp4,.avi,.wmv,.mov,.mkv,.xls,.xlsx,.csv,.ppt,.pptx","max-count":10,"max-size":50,"sub-title":e.h(V.default)},null,8,["get-oss-access","sub-title"])]),_:1},8,["label"])]),_:1},512)]),_:1},16,["open","title","ok-text","cancel-text","wrap-class-name","confirm-loading"])]))}});exports.default=L;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aplus-frontend/ui",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.11",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -67,17 +67,17 @@
|
|
|
67
67
|
"vuedraggable": "^4.1.0",
|
|
68
68
|
"vxe-pc-ui": "4.4.4",
|
|
69
69
|
"vxe-table": "4.11.18",
|
|
70
|
-
"@aplus-frontend/
|
|
71
|
-
"@aplus-frontend/
|
|
70
|
+
"@aplus-frontend/hooks": "1.0.7",
|
|
71
|
+
"@aplus-frontend/utils": "1.0.52"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
|
-
"@aplus-frontend/antdv": "^1.0
|
|
74
|
+
"@aplus-frontend/antdv": "^1.1.0",
|
|
75
75
|
"@aplus-frontend/icon": "^1.2.1",
|
|
76
76
|
"@aplus-frontend/oss": "^1.1.2",
|
|
77
77
|
"vue": "^3.5.13"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
|
-
"@aplus-frontend/antdv": "^1.0
|
|
80
|
+
"@aplus-frontend/antdv": "^1.1.0",
|
|
81
81
|
"@aplus-frontend/icon": "^1.2.1",
|
|
82
82
|
"@aplus-frontend/oss": "^1.1.2",
|
|
83
83
|
"@types/sortablejs": "^1.15.8",
|
|
@@ -17,6 +17,16 @@
|
|
|
17
17
|
.aplus-ap-descriptions .ant-descriptions .ant-descriptions-item-label::after {
|
|
18
18
|
margin-inline: 4px 20px;
|
|
19
19
|
}
|
|
20
|
+
.aplus-ap-descriptions-item__ellipsis .ant-descriptions-item-label {
|
|
21
|
+
flex-shrink: 0;
|
|
22
|
+
}
|
|
23
|
+
.aplus-ap-descriptions-item__ellipsis .ant-descriptions-item-content {
|
|
24
|
+
flex-shrink: 1;
|
|
25
|
+
min-width: 0px;
|
|
26
|
+
}
|
|
27
|
+
.aplus-ap-descriptions-item__ellipsis .ant-descriptions-item-content .ant-typography-ellipsis {
|
|
28
|
+
max-width: 100%;
|
|
29
|
+
}
|
|
20
30
|
.aplus-ap-descriptions--item-label .ant-typography-single-line {
|
|
21
31
|
white-space: normal;
|
|
22
32
|
}
|
|
@@ -36,6 +36,19 @@
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
&-item__ellipsis {
|
|
40
|
+
.ant-descriptions-item-label {
|
|
41
|
+
flex-shrink: 0;
|
|
42
|
+
}
|
|
43
|
+
.ant-descriptions-item-content {
|
|
44
|
+
flex-shrink: 1;
|
|
45
|
+
min-width: 0px;
|
|
46
|
+
.ant-typography-ellipsis {
|
|
47
|
+
max-width: 100%;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
39
52
|
&--item-label {
|
|
40
53
|
// 解决英文单词问题
|
|
41
54
|
.ant-typography-single-line {
|
package/theme/ap-tag/ap-tag.css
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
display: inline-block;
|
|
5
5
|
max-width: 100%;
|
|
6
6
|
}
|
|
7
|
-
.aplus-tag-inner-wrapper {
|
|
7
|
+
.aplus-tag-wrapper .aplus-tag-inner-wrapper {
|
|
8
8
|
display: inline-block;
|
|
9
9
|
border-radius: 4px;
|
|
10
10
|
border: 1px solid var(--tag-main-color);
|
|
@@ -12,30 +12,30 @@
|
|
|
12
12
|
box-sizing: border-box;
|
|
13
13
|
color: var(--tag-main-color);
|
|
14
14
|
}
|
|
15
|
-
.aplus-tag-inner-wrapper--large {
|
|
15
|
+
.aplus-tag-wrapper .aplus-tag-inner-wrapper--large {
|
|
16
16
|
padding: 0 8px;
|
|
17
17
|
line-height: 26px;
|
|
18
18
|
height: 28px;
|
|
19
19
|
font-size: 14px;
|
|
20
20
|
}
|
|
21
|
-
.aplus-tag-inner-wrapper--middle {
|
|
21
|
+
.aplus-tag-wrapper .aplus-tag-inner-wrapper--middle {
|
|
22
22
|
line-height: 22px;
|
|
23
23
|
padding: 0 8px;
|
|
24
24
|
height: 24px;
|
|
25
25
|
font-size: 12px;
|
|
26
26
|
}
|
|
27
|
-
.aplus-tag-inner-wrapper--small {
|
|
27
|
+
.aplus-tag-wrapper .aplus-tag-inner-wrapper--small {
|
|
28
28
|
padding: 0 6px;
|
|
29
29
|
line-height: 19px;
|
|
30
30
|
height: 20px;
|
|
31
31
|
font-size: 12px;
|
|
32
32
|
}
|
|
33
|
-
.aplus-tag-inner-wrapper--disabled {
|
|
33
|
+
.aplus-tag-wrapper .aplus-tag-inner-wrapper--disabled {
|
|
34
34
|
border: 1px solid #DEE4ED;
|
|
35
35
|
background-color: #526a900f;
|
|
36
36
|
color: #8896b0;
|
|
37
37
|
}
|
|
38
|
-
.aplus-tag-inner-wrapper--disabled-admin {
|
|
38
|
+
.aplus-tag-wrapper .aplus-tag-inner-wrapper--disabled-admin {
|
|
39
39
|
border: 1px solid #d9d9d9;
|
|
40
40
|
background-color: #9999990f;
|
|
41
41
|
color: #999;
|
package/theme/ap-tag/ap-tag.less
CHANGED
|
@@ -8,14 +8,13 @@
|
|
|
8
8
|
max-width: 100%;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
&-inner-wrapper {
|
|
11
|
+
&-wrapper &-inner-wrapper {
|
|
12
12
|
display: inline-block;
|
|
13
13
|
border-radius: 4px;
|
|
14
14
|
border: 1px solid var(--tag-main-color);
|
|
15
15
|
background-color: var(--tag-main-color-opacity);
|
|
16
16
|
box-sizing: border-box;
|
|
17
17
|
color: var(--tag-main-color);
|
|
18
|
-
|
|
19
18
|
&--large {
|
|
20
19
|
padding: 0 8px;
|
|
21
20
|
line-height: 26px;
|
package/theme/index.css
CHANGED
|
@@ -184,6 +184,16 @@
|
|
|
184
184
|
.aplus-ap-descriptions .ant-descriptions .ant-descriptions-item-label::after {
|
|
185
185
|
margin-inline: 4px 20px;
|
|
186
186
|
}
|
|
187
|
+
.aplus-ap-descriptions-item__ellipsis .ant-descriptions-item-label {
|
|
188
|
+
flex-shrink: 0;
|
|
189
|
+
}
|
|
190
|
+
.aplus-ap-descriptions-item__ellipsis .ant-descriptions-item-content {
|
|
191
|
+
flex-shrink: 1;
|
|
192
|
+
min-width: 0px;
|
|
193
|
+
}
|
|
194
|
+
.aplus-ap-descriptions-item__ellipsis .ant-descriptions-item-content .ant-typography-ellipsis {
|
|
195
|
+
max-width: 100%;
|
|
196
|
+
}
|
|
187
197
|
.aplus-ap-descriptions--item-label .ant-typography-single-line {
|
|
188
198
|
white-space: normal;
|
|
189
199
|
}
|
|
@@ -1175,7 +1185,7 @@ div.aplus-ap-info-layout-admin__header-shadow.aplus-ap-info-layout-admin__sticky
|
|
|
1175
1185
|
display: inline-block;
|
|
1176
1186
|
max-width: 100%;
|
|
1177
1187
|
}
|
|
1178
|
-
.aplus-tag-inner-wrapper {
|
|
1188
|
+
.aplus-tag-wrapper .aplus-tag-inner-wrapper {
|
|
1179
1189
|
display: inline-block;
|
|
1180
1190
|
border-radius: 4px;
|
|
1181
1191
|
border: 1px solid var(--tag-main-color);
|
|
@@ -1183,30 +1193,30 @@ div.aplus-ap-info-layout-admin__header-shadow.aplus-ap-info-layout-admin__sticky
|
|
|
1183
1193
|
box-sizing: border-box;
|
|
1184
1194
|
color: var(--tag-main-color);
|
|
1185
1195
|
}
|
|
1186
|
-
.aplus-tag-inner-wrapper--large {
|
|
1196
|
+
.aplus-tag-wrapper .aplus-tag-inner-wrapper--large {
|
|
1187
1197
|
padding: 0 8px;
|
|
1188
1198
|
line-height: 26px;
|
|
1189
1199
|
height: 28px;
|
|
1190
1200
|
font-size: 14px;
|
|
1191
1201
|
}
|
|
1192
|
-
.aplus-tag-inner-wrapper--middle {
|
|
1202
|
+
.aplus-tag-wrapper .aplus-tag-inner-wrapper--middle {
|
|
1193
1203
|
line-height: 22px;
|
|
1194
1204
|
padding: 0 8px;
|
|
1195
1205
|
height: 24px;
|
|
1196
1206
|
font-size: 12px;
|
|
1197
1207
|
}
|
|
1198
|
-
.aplus-tag-inner-wrapper--small {
|
|
1208
|
+
.aplus-tag-wrapper .aplus-tag-inner-wrapper--small {
|
|
1199
1209
|
padding: 0 6px;
|
|
1200
1210
|
line-height: 19px;
|
|
1201
1211
|
height: 20px;
|
|
1202
1212
|
font-size: 12px;
|
|
1203
1213
|
}
|
|
1204
|
-
.aplus-tag-inner-wrapper--disabled {
|
|
1214
|
+
.aplus-tag-wrapper .aplus-tag-inner-wrapper--disabled {
|
|
1205
1215
|
border: 1px solid #DEE4ED;
|
|
1206
1216
|
background-color: #526a900f;
|
|
1207
1217
|
color: #8896b0;
|
|
1208
1218
|
}
|
|
1209
|
-
.aplus-tag-inner-wrapper--disabled-admin {
|
|
1219
|
+
.aplus-tag-wrapper .aplus-tag-inner-wrapper--disabled-admin {
|
|
1210
1220
|
border: 1px solid #d9d9d9;
|
|
1211
1221
|
background-color: #9999990f;
|
|
1212
1222
|
color: #999;
|