@aplus-frontend/ui 0.2.10 → 0.2.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-form/ap-form.vue.d.ts +4 -0
- package/es/src/ap-form/ap-form.vue2.mjs +131 -108
- package/es/src/ap-form/drawer-form/index.vue.d.ts +27 -2
- package/es/src/ap-form/drawer-form/index.vue.mjs +43 -37
- package/es/src/ap-form/interface.d.ts +8 -0
- package/es/src/ap-form/modal-form/index.vue.d.ts +27 -2
- package/es/src/ap-form/modal-form/index.vue.mjs +26 -20
- package/es/src/ap-form/search-form/index.vue.d.ts +27 -2
- package/es/src/ap-form/search-form/index.vue.mjs +37 -31
- package/es/src/ap-form/utils/params.d.ts +17 -0
- package/es/src/ap-form/utils/params.mjs +19 -0
- package/es/src/ap-table/interface.d.ts +1 -0
- package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -1
- package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +80 -70
- package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +6 -2
- package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +44 -34
- package/es/src/business/ap-group-search/extension-select/style/css.d.ts +0 -0
- package/es/src/business/ap-group-search/extension-select/style/css.js +1 -0
- package/es/src/business/ap-group-search/extension-select/style/index.d.ts +0 -0
- package/es/src/business/ap-group-search/extension-select/style/index.js +1 -0
- package/es/src/business/ap-group-search/images/icon-line-select.vue.mjs +9 -9
- package/es/src/business/ap-group-search/index.d.ts +28 -0
- package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +6 -2
- package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +50 -50
- package/es/src/business/ap-group-search/popover-select/style/css.js +1 -1
- package/es/src/business/ap-group-search/popover-select/style/index.js +1 -1
- package/es/src/business/ap-summary/ap-summary.vue2.mjs +58 -38
- package/es/src/locale/lang/en.mjs +1 -1
- package/es/src/locale/lang/zh-cn.mjs +1 -1
- package/es/src/path-map.mjs +2 -1
- package/es/src/utils/index.d.ts +12 -0
- package/es/src/utils/index.mjs +27 -18
- package/lib/src/ap-form/ap-form.vue.d.ts +4 -0
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +27 -2
- package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
- package/lib/src/ap-form/interface.d.ts +8 -0
- package/lib/src/ap-form/modal-form/index.vue.d.ts +27 -2
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +27 -2
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-form/utils/params.d.ts +17 -0
- package/lib/src/ap-form/utils/params.js +1 -0
- package/lib/src/ap-table/interface.d.ts +1 -0
- package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -1
- package/lib/src/business/ap-group-search/ap-group-search.vue2.js +1 -1
- package/lib/src/business/ap-group-search/extension-select/index.vue.d.ts +6 -2
- package/lib/src/business/ap-group-search/extension-select/index.vue2.js +1 -1
- package/lib/src/business/ap-group-search/extension-select/style/css.d.ts +0 -0
- package/lib/src/business/ap-group-search/extension-select/style/css.js +1 -0
- package/lib/src/business/ap-group-search/extension-select/style/index.d.ts +0 -0
- package/lib/src/business/ap-group-search/extension-select/style/index.js +1 -0
- package/lib/src/business/ap-group-search/images/icon-line-select.vue.js +1 -1
- package/lib/src/business/ap-group-search/index.d.ts +28 -0
- package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +6 -2
- package/lib/src/business/ap-group-search/popover-select/index.vue2.js +2 -2
- package/lib/src/business/ap-group-search/popover-select/style/css.js +1 -1
- package/lib/src/business/ap-group-search/popover-select/style/index.js +1 -1
- package/lib/src/business/ap-summary/ap-summary.vue2.js +1 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/path-map.js +1 -1
- package/lib/src/utils/index.d.ts +12 -0
- package/lib/src/utils/index.js +1 -1
- package/package.json +4 -4
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ApFormModalFormProps } from '../interface';
|
|
2
2
|
import { VNode, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, PublicProps, CSSProperties } from 'vue';
|
|
3
3
|
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
|
|
4
|
+
import { Recordable } from '../../type';
|
|
4
5
|
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
5
6
|
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
6
7
|
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
7
8
|
import { Options } from '../../../node_modules/scroll-into-view-if-needed';
|
|
8
|
-
import { Recordable } from '../../type';
|
|
9
9
|
import { WatchFunc, RegistedFieldType, ApFormInternalInstance, ApFormSubmitterConfig } from '..';
|
|
10
10
|
import { VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
11
11
|
import { LegacyButtonType, ButtonHTMLType } from '@aplus-frontend/antdv/es/button/buttonTypes';
|
|
@@ -31,6 +31,7 @@ declare function __VLS_template(): {
|
|
|
31
31
|
validateTrigger: string | string[];
|
|
32
32
|
hideRequiredMark: boolean;
|
|
33
33
|
validateOnRuleChange: boolean;
|
|
34
|
+
syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
|
|
34
35
|
}> & Omit<{
|
|
35
36
|
readonly layout: string;
|
|
36
37
|
readonly colon: boolean;
|
|
@@ -38,6 +39,7 @@ declare function __VLS_template(): {
|
|
|
38
39
|
readonly validateTrigger: string | string[];
|
|
39
40
|
readonly hideRequiredMark: boolean;
|
|
40
41
|
readonly validateOnRuleChange: boolean;
|
|
42
|
+
readonly syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
|
|
41
43
|
readonly size?: "small" | "large" | "middle" | undefined;
|
|
42
44
|
readonly onSubmit?: ((e: Event) => void) | undefined;
|
|
43
45
|
readonly disabled?: boolean | undefined;
|
|
@@ -122,6 +124,7 @@ declare function __VLS_template(): {
|
|
|
122
124
|
readonly onFinishFailed?: ((errorInfo: ValidateErrorEntity<any>) => void) | undefined;
|
|
123
125
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
124
126
|
readonly initialValues?: Recordable | undefined;
|
|
127
|
+
readonly syncToUrlPriority?: boolean | undefined;
|
|
125
128
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
126
129
|
size: {
|
|
127
130
|
type: PropType<"small" | "large" | "middle">;
|
|
@@ -267,7 +270,14 @@ declare function __VLS_template(): {
|
|
|
267
270
|
initialValues: {
|
|
268
271
|
type: PropType<Recordable>;
|
|
269
272
|
};
|
|
270
|
-
|
|
273
|
+
syncToUrl: {
|
|
274
|
+
type: PropType<boolean | ((values: Recordable, type: "get" | "set") => Recordable)>;
|
|
275
|
+
default: boolean;
|
|
276
|
+
};
|
|
277
|
+
syncToUrlPriority: {
|
|
278
|
+
type: PropType<boolean>;
|
|
279
|
+
};
|
|
280
|
+
}>>, "layout" | "colon" | "labelAlign" | "validateTrigger" | "hideRequiredMark" | "validateOnRuleChange" | "syncToUrl">;
|
|
271
281
|
$attrs: {
|
|
272
282
|
[x: string]: unknown;
|
|
273
283
|
};
|
|
@@ -426,6 +436,13 @@ declare function __VLS_template(): {
|
|
|
426
436
|
initialValues: {
|
|
427
437
|
type: PropType<Recordable>;
|
|
428
438
|
};
|
|
439
|
+
syncToUrl: {
|
|
440
|
+
type: PropType<boolean | ((values: Recordable, type: "get" | "set") => Recordable)>;
|
|
441
|
+
default: boolean;
|
|
442
|
+
};
|
|
443
|
+
syncToUrlPriority: {
|
|
444
|
+
type: PropType<boolean>;
|
|
445
|
+
};
|
|
429
446
|
}>>, {
|
|
430
447
|
resetFields: () => Promise<void>;
|
|
431
448
|
clearValidate: (name?: NamePath | NamePath[]) => void;
|
|
@@ -455,6 +472,7 @@ declare function __VLS_template(): {
|
|
|
455
472
|
validateTrigger: string | string[];
|
|
456
473
|
hideRequiredMark: boolean;
|
|
457
474
|
validateOnRuleChange: boolean;
|
|
475
|
+
syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
|
|
458
476
|
}, {}, string, {}> & {
|
|
459
477
|
beforeCreate?: (() => void) | (() => void)[];
|
|
460
478
|
created?: (() => void) | (() => void)[];
|
|
@@ -620,6 +638,13 @@ declare function __VLS_template(): {
|
|
|
620
638
|
initialValues: {
|
|
621
639
|
type: PropType<Recordable>;
|
|
622
640
|
};
|
|
641
|
+
syncToUrl: {
|
|
642
|
+
type: PropType<boolean | ((values: Recordable, type: "get" | "set") => Recordable)>;
|
|
643
|
+
default: boolean;
|
|
644
|
+
};
|
|
645
|
+
syncToUrlPriority: {
|
|
646
|
+
type: PropType<boolean>;
|
|
647
|
+
};
|
|
623
648
|
}>>, "validate" | "setFieldValue" | "setFieldsValue" | "resetFields" | "clearValidate" | "validateFields" | "getFieldsValue" | "scrollToField" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | "registerWatch"> & ShallowUnwrapRef<{
|
|
624
649
|
resetFields: () => Promise<void>;
|
|
625
650
|
clearValidate: (name?: NamePath | NamePath[]) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("@aplus-frontend/antdv");require("../ap-form.vue.js");require("../../hooks/index.js");const S=require("../../utils/slot.js");require("../../config-provider/index.js");const M=require("lodash-unified"),R=require("../../utils/index.js"),j=require("../../hooks/useControllableValue.js"),O=require("../../config-provider/hooks/use-locale.js"),U=require("../../config-provider/hooks/use-global-config.js"),z=require("../../config-provider/hooks/use-namespace.js"),D=require("../ap-form.vue2.js");function F(d){return typeof d=="function"||Object.prototype.toString.call(d)==="[object Object]"&&!e.isVNode(d)}const E=e.defineComponent({__name:"index",props:{layout:{default:"horizontal"},labelCol:{},wrapperCol:{},colon:{type:Boolean,default:!0},labelAlign:{default:"right"},labelWrap:{type:Boolean},prefixCls:{},requiredMark:{},hideRequiredMark:{type:Boolean,default:!1},rules:{},validateMessages:{},validateOnRuleChange:{type:Boolean,default:!0},scrollToFirstError:{},onSubmit:{},name:{},validateTrigger:{default:"change"},size:{},disabled:{type:Boolean},onValuesChange:{},onFieldsChange:{},onFinishFailed:{},onValidate:{},initialValues:{},open:{type:Boolean,default:void 0},"onUpdate:open":{},modalProps:{default:()=>({})},title:{},width:{default:800},onFinish:{},submitter:{type:[Boolean,Object],default:()=>({resetButtonProps:!1})},showCancel:{type:Boolean,default:!0},submitTimeout:{}},emits:["update:open"],setup(d,{expose:C,emit:B}){const o=d,p=e.useSlots(),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("@aplus-frontend/antdv");require("../ap-form.vue.js");require("../../hooks/index.js");const S=require("../../utils/slot.js");require("../../config-provider/index.js");const M=require("lodash-unified"),R=require("../../utils/index.js"),j=require("../../hooks/useControllableValue.js"),O=require("../../config-provider/hooks/use-locale.js"),U=require("../../config-provider/hooks/use-global-config.js"),z=require("../../config-provider/hooks/use-namespace.js"),D=require("../ap-form.vue2.js");function F(d){return typeof d=="function"||Object.prototype.toString.call(d)==="[object Object]"&&!e.isVNode(d)}const E=e.defineComponent({__name:"index",props:{layout:{default:"horizontal"},labelCol:{},wrapperCol:{},colon:{type:Boolean,default:!0},labelAlign:{default:"right"},labelWrap:{type:Boolean},prefixCls:{},requiredMark:{},hideRequiredMark:{type:Boolean,default:!1},rules:{},validateMessages:{},validateOnRuleChange:{type:Boolean,default:!0},scrollToFirstError:{},onSubmit:{},name:{},validateTrigger:{default:"change"},size:{},disabled:{type:Boolean},onValuesChange:{},onFieldsChange:{},onFinishFailed:{},onValidate:{},initialValues:{},syncToUrl:{type:[Boolean,Function]},syncToUrlPriority:{type:Boolean},open:{type:Boolean,default:void 0},"onUpdate:open":{},modalProps:{default:()=>({})},title:{},width:{default:800},onFinish:{},submitter:{type:[Boolean,Object],default:()=>({resetButtonProps:!1})},showCancel:{type:Boolean,default:!0},submitTimeout:{}},emits:["update:open"],setup(d,{expose:C,emit:B}){const o=d,p=e.useSlots(),T=B,n=e.ref(),c=e.ref(),r=e.ref(!1),{value:k,updateValue:f}=j.useControllableValue(o,T,{valuePropName:"open",defaultValue:!1}),{t:v}=O.useLocale(),b=U.useGlobalConfig("uiMode","aplus"),{b:N,e:g}=z.useNamespace("ap-form-modal-form");e.watch(()=>n.value,t=>{var l;t&&c.value&&((l=t.setFieldsValue)==null||l.call(t,c.value),c.value=void 0)});const y=S.getSingleVNode(p.trigger),h=y?e.cloneVNode(y,{onClick:()=>{f(!0)}}):null,P=e.computed(()=>{var l,a,u,m;const t=[];if(o.submitter===!1)return null;if(o.showCancel){let s;t.push(e.createVNode(i.Button,{onClick:V,disabled:r.value},F(s=v("ap.common.cancelText"))?s:{default:()=>[s]}))}return((l=o.submitter)==null?void 0:l.resetButtonProps)!==!1&&t.push(e.createVNode(i.Button,e.mergeProps(((a=o.submitter)==null?void 0:a.resetButtonProps)||{},{key:"submit",disabled:r.value,onClick:_}),{default:()=>{var s;return[((s=o.submitter)==null?void 0:s.resetText)||v("ap.common.resetText")]}})),((u=o.submitter)==null?void 0:u.submitButtonProps)!==!1&&t.push(e.createVNode(i.Button,e.mergeProps({type:"primary",key:"submit"},((m=o.submitter)==null?void 0:m.submitButtonProps)||{},{loading:r.value,onClick:q}),{default:()=>{var s;return[((s=o.submitter)==null?void 0:s.submitText)||v("ap.common.okText")]}})),e.createVNode(i.Flex,{justify:"flex-end",class:g(e.unref(b)==="admin"?"footer-admin":"footer")},{default:()=>[p.submitter?p.submitter(t):e.createVNode(i.Space,null,F(t)?t:{default:()=>[t]})]})});function _(){var t,l,a;o.submitter!==!1&&((t=n.value)==null||t.resetFields(),(a=(l=o.submitter)==null?void 0:l.onReset)==null||a.call(l))}async function q(){var t,l,a,u;if(o.submitter!==!1)try{const m=await((t=n.value)==null?void 0:t.validateFields());(a=(l=o.submitter)==null?void 0:l.onSubmit)==null||a.call(l),r.value=!0;const s=(u=o.onFinish)==null?void 0:u.call(o,R.convertReactiveToRaw(m));if(o.submitTimeout&&s instanceof Promise){const x=setTimeout(()=>r.value=!1,o.submitTimeout);s.finally(()=>{clearTimeout(x),r.value=!1})}await s&&f(!1)}finally{r.value=!1}}function V(){e.unref(r)||f(!1)}function w(t){!t&&e.unref(r)||f(t)}return C({resetFields:()=>{var t;(t=n.value)==null||t.resetFields()},clearValidate:t=>{var l;(l=n.value)==null||l.clearValidate(t)},validateFields:(t,l)=>{var a;return(a=n.value)==null?void 0:a.validateFields(t,l)},getFieldsValue:t=>{var l;return(l=n.value)==null?void 0:l.getFieldsValue(t)},validate:(t,l)=>{var a;return(a=n.value)==null?void 0:a.validate(t,l)},scrollToField:(t,l={})=>{var a;(a=n.value)==null||a.scrollToField(t,l)},setFieldValue:(t,l)=>{var a,u;(u=(a=n.value)==null?void 0:a.setFieldValue)==null||u.call(a,t,l)},setFieldsValue:t=>{var l,a;if(!n.value){c.value=t;return}(a=(l=n.value)==null?void 0:l.setFieldsValue)==null||a.call(l,t)},getInternalInstance:t=>{var l;return(l=n.value)==null?void 0:l.getInternalInstance(t)}}),(t,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(i.Modal),e.mergeProps(t.modalProps,{open:e.unref(k),"onUpdate:open":w,onCancel:V,footer:null,width:t.width,class:e.unref(N)(),"body-style":{padding:e.unref(b)==="admin"?"0px !important":"20px !important"}}),{title:e.withCtx(()=>[e.renderSlot(t.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(g)(e.unref(b)==="admin"?"content-admin":"content"))},[e.createVNode(D.default,e.mergeProps({ref_key:"formRef",ref:n},e.unref(M.omit)(o,["modalProps","open","onUpdate:open","title","width","onFinish","submitter"])),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16)],2),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(P.value)))]),_:3},16,["open","width","class","body-style"]),e.unref(h)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(h)),{key:0})):e.createCommentVNode("",!0)],64))}});exports.default=E;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ApFormExpose, ApFormSearchFormProps } from '../interface';
|
|
2
2
|
import { ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, ComputedRef, PublicProps } from 'vue';
|
|
3
3
|
import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
|
|
4
|
+
import { Recordable } from '../../type';
|
|
4
5
|
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
5
6
|
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
6
7
|
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
7
8
|
import { Options } from '../../../node_modules/scroll-into-view-if-needed';
|
|
8
|
-
import { Recordable } from '../../type';
|
|
9
9
|
import { WatchFunc, RegistedFieldType } from '..';
|
|
10
10
|
declare function __VLS_template(): {
|
|
11
11
|
slots: Readonly<{
|
|
@@ -26,6 +26,7 @@ declare function __VLS_template(): {
|
|
|
26
26
|
validateTrigger: string | string[];
|
|
27
27
|
hideRequiredMark: boolean;
|
|
28
28
|
validateOnRuleChange: boolean;
|
|
29
|
+
syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
|
|
29
30
|
}> & Omit<{
|
|
30
31
|
readonly layout: string;
|
|
31
32
|
readonly colon: boolean;
|
|
@@ -33,6 +34,7 @@ declare function __VLS_template(): {
|
|
|
33
34
|
readonly validateTrigger: string | string[];
|
|
34
35
|
readonly hideRequiredMark: boolean;
|
|
35
36
|
readonly validateOnRuleChange: boolean;
|
|
37
|
+
readonly syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
|
|
36
38
|
readonly size?: "small" | "large" | "middle" | undefined;
|
|
37
39
|
readonly onSubmit?: ((e: Event) => void) | undefined;
|
|
38
40
|
readonly disabled?: boolean | undefined;
|
|
@@ -117,6 +119,7 @@ declare function __VLS_template(): {
|
|
|
117
119
|
readonly onFinishFailed?: ((errorInfo: ValidateErrorEntity<any>) => void) | undefined;
|
|
118
120
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
119
121
|
readonly initialValues?: Recordable | undefined;
|
|
122
|
+
readonly syncToUrlPriority?: boolean | undefined;
|
|
120
123
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
121
124
|
size: {
|
|
122
125
|
type: PropType<"small" | "large" | "middle">;
|
|
@@ -262,7 +265,14 @@ declare function __VLS_template(): {
|
|
|
262
265
|
initialValues: {
|
|
263
266
|
type: PropType<Recordable>;
|
|
264
267
|
};
|
|
265
|
-
|
|
268
|
+
syncToUrl: {
|
|
269
|
+
type: PropType<boolean | ((values: Recordable, type: "get" | "set") => Recordable)>;
|
|
270
|
+
default: boolean;
|
|
271
|
+
};
|
|
272
|
+
syncToUrlPriority: {
|
|
273
|
+
type: PropType<boolean>;
|
|
274
|
+
};
|
|
275
|
+
}>>, "layout" | "colon" | "labelAlign" | "validateTrigger" | "hideRequiredMark" | "validateOnRuleChange" | "syncToUrl">;
|
|
266
276
|
$attrs: {
|
|
267
277
|
[x: string]: unknown;
|
|
268
278
|
};
|
|
@@ -421,6 +431,13 @@ declare function __VLS_template(): {
|
|
|
421
431
|
initialValues: {
|
|
422
432
|
type: PropType<Recordable>;
|
|
423
433
|
};
|
|
434
|
+
syncToUrl: {
|
|
435
|
+
type: PropType<boolean | ((values: Recordable, type: "get" | "set") => Recordable)>;
|
|
436
|
+
default: boolean;
|
|
437
|
+
};
|
|
438
|
+
syncToUrlPriority: {
|
|
439
|
+
type: PropType<boolean>;
|
|
440
|
+
};
|
|
424
441
|
}>>, {
|
|
425
442
|
resetFields: () => Promise<void>;
|
|
426
443
|
clearValidate: (name?: NamePath | NamePath[]) => void;
|
|
@@ -450,6 +467,7 @@ declare function __VLS_template(): {
|
|
|
450
467
|
validateTrigger: string | string[];
|
|
451
468
|
hideRequiredMark: boolean;
|
|
452
469
|
validateOnRuleChange: boolean;
|
|
470
|
+
syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
|
|
453
471
|
}, {}, string, {}> & {
|
|
454
472
|
beforeCreate?: (() => void) | (() => void)[];
|
|
455
473
|
created?: (() => void) | (() => void)[];
|
|
@@ -615,6 +633,13 @@ declare function __VLS_template(): {
|
|
|
615
633
|
initialValues: {
|
|
616
634
|
type: PropType<Recordable>;
|
|
617
635
|
};
|
|
636
|
+
syncToUrl: {
|
|
637
|
+
type: PropType<boolean | ((values: Recordable, type: "get" | "set") => Recordable)>;
|
|
638
|
+
default: boolean;
|
|
639
|
+
};
|
|
640
|
+
syncToUrlPriority: {
|
|
641
|
+
type: PropType<boolean>;
|
|
642
|
+
};
|
|
618
643
|
}>>, "validate" | "setFieldValue" | "setFieldsValue" | "resetFields" | "clearValidate" | "validateFields" | "getFieldsValue" | "scrollToField" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | "registerWatch"> & ShallowUnwrapRef<{
|
|
619
644
|
resetFields: () => Promise<void>;
|
|
620
645
|
clearValidate: (name?: NamePath | NamePath[]) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("@aplus-frontend/antdv");require("../ap-form.vue.js");require("../item/index.vue2.js");require("../../hooks/index.js");const b=require("../item-group/helper.js"),J=require("@ant-design/icons-vue");require("../../config-provider/index.js");const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("@aplus-frontend/antdv");require("../ap-form.vue.js");require("../item/index.vue2.js");require("../../hooks/index.js");const b=require("../item-group/helper.js"),J=require("@ant-design/icons-vue");require("../../config-provider/index.js");const _=require("lodash-unified"),w=require("../../utils/index.js"),K=require("./utils.js"),Q=require("../../hooks/useControllableValue.js"),X=require("../../config-provider/hooks/use-namespace.js"),Y=require("../../config-provider/hooks/use-global-config.js"),Z=require("../../config-provider/hooks/use-locale.js"),A=require("../item/index.vue.js"),ee=require("../ap-form.vue2.js");function te(m){return typeof m=="function"||Object.prototype.toString.call(m)==="[object Object]"&&!e.isVNode(m)}const s=24,ne=e.defineComponent({name:"ApFormSearchForm",__name:"index",props:{layout:{default:"horizontal"},labelCol:{},wrapperCol:{},colon:{type:Boolean,default:!0},labelAlign:{default:"right"},labelWrap:{type:Boolean},prefixCls:{},requiredMark:{},hideRequiredMark:{type:Boolean,default:!1},rules:{},validateMessages:{},validateOnRuleChange:{type:Boolean,default:!0},scrollToFirstError:{},onSubmit:{},name:{},validateTrigger:{default:"change"},size:{},disabled:{type:Boolean},onValuesChange:{},onFieldsChange:{},onFinish:{},onFinishFailed:{},onValidate:{},initialValues:{},syncToUrl:{type:[Boolean,Function]},syncToUrlPriority:{type:Boolean},collapse:{type:Boolean,default:void 0},defaultCollapse:{type:Boolean,default:!1},"onUpdate:collapse":{},searchText:{},resetText:{},onReset:{},customReset:{type:Boolean,default:!1},extraInAction:{type:Boolean,default:!1},forceExpand:{type:Boolean,default:!1},countPerRow:{default:4},submitLoading:{type:Boolean}},emits:["update:collapse"],setup(m,{expose:q,emit:E}){var v;const u=e.useSlots(),o=m,I=E,{value:c,updateValue:P}=Q.useControllableValue(o,I,{valuePropName:"collapse",defaultValuePropName:"defaultCollapse"}),{b:T}=X.useNamespace("ap-form-search-form"),O=Y.useGlobalConfig("uiMode"),{t:g}=Z.useLocale(),x=e.ref();function D(){P(!e.unref(c))}function M(){var t,n;(n=(t=x.value)==null?void 0:t.validateFields())==null||n.then(o.onSubmit)}function j(){var t,n,a;o.customReset||(n=(t=x.value)==null?void 0:t.resetFields)==null||n.call(t),(a=o.onReset)==null||a.call(o)}let B=[];const y=e.shallowRef(b.genRealChildren(u.default())),d=e.shallowRef((v=u.extra)==null?void 0:v.call(u)),N=e.computed(()=>Math.floor(s/o.countPerRow));e.watch(()=>u.default(),t=>{B=y.value,y.value=K.diffFormItem(B,b.genRealChildren(t))}),e.watch(()=>{var t;return(t=u.extra)==null?void 0:t.call(u)},t=>{d.value=t});const L=t=>w.isDef(t)?(_.isArray(t)?t:[t]).join(""):Date.now(),C=e.computed(()=>{const t=y.value,n=[],a=[],l=e.unref(N);let p=0;t.forEach(i=>{const f=i.props;(_.isBoolean(f.hidden)?!!f.hidden:w.isDef(f.hidden))?n.push(i):(p+=f.span||l,a.push(i))});const F=s-(p+l)%s,W=p%s<l,$=F<l?s:F,R=s-l*(e.unref(d)&&!o.extraInAction?2:1),z=!o.forceExpand&&p>R;let S=0,V=0;const G=a.map((i,f)=>{const h=i.props,k=h.span||l;if(S+=k,!o.forceExpand&&e.unref(c)&&S>R){n.push(e.cloneVNode(i,{class:"ant-form-item-hidden",hidden:!0}));return}return V+=k,{node:i,span:h.span||l,key:`ApFormSearchFormItem-${f}-${L(h.name)}-${h._signal}`}}).filter(Boolean),H=s-V-l;return{hideNode:e.createVNode(e.Fragment,null,[n]),nodes:G,defaultExtraSpan:$,actualExtraSpan:H,showCollapse:z,lastRowOnlyIncludeActionAndExtra:W}}),U=e.computed(()=>{let t;const n=e.unref(C),a=e.createVNode(r.Col,{span:e.unref(N),key:"actionWrapper"},{default:()=>[e.createVNode(A.default,null,{default:()=>[e.createVNode(r.Flex,{justify:!e.unref(c)&&n.lastRowOnlyIncludeActionAndExtra&&!(e.unref(d)&&o.extraInAction)?"flex-end":"space-between"},{default:()=>[e.createVNode(r.Space,null,{default:()=>[e.createVNode(r.Button,{type:"primary",onClick:M,loading:o.submitLoading,htmlType:"submit"},{default:()=>[o.searchText||g("ap.apForm.search.search")]}),e.createVNode(r.Button,{onClick:j},{default:()=>[o.resetText||g("ap.apForm.search.reset")]}),n.showCollapse?e.createVNode(r.Button,{onClick:D,icon:e.createVNode(J.DoubleRightOutlined,{style:O.value==="aplus"?"color:#B8C3D1":"color:#BFBFBF",rotate:e.unref(c)?90:-90},null)},null):null]}),o.extraInAction?e.unref(d):null]})]})]}),l=!o.extraInAction&&e.unref(d)?e.createVNode(r.Col,{span:e.unref(c)?n.actualExtraSpan:n.defaultExtraSpan,key:"extraNode"},{default:()=>[e.createVNode(A.default,null,{default:()=>[e.createVNode(r.Flex,{justify:!e.unref(c)&&(n.defaultExtraSpan===s||n.lastRowOnlyIncludeActionAndExtra)?"start":"flex-end"},te(t=e.unref(d))?t:{default:()=>[t]})]})]}):null,p=e.createVNode(r.Col,{span:n.defaultExtraSpan},null);return!e.unref(c)&&n.lastRowOnlyIncludeActionAndExtra?e.createVNode(e.Fragment,null,[l||p,a]):e.createVNode(e.Fragment,null,[a,l])});return q({apForm:e.computed(()=>e.unref(x))}),(t,n)=>(e.openBlock(),e.createBlock(ee.default,e.mergeProps({class:e.unref(T)(),ref_key:"apForm",ref:x},e.unref(_.omit)(o,["collapse","defaultCollapse","onUpdate:collapse","searchText","resetText","onSubmit","onReset","extraInAction","forceExpand","countPerRow"])),{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(C.value.hideNode))),e.createVNode(e.unref(r.Row),{gutter:16},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value.nodes,a=>(e.openBlock(),e.createBlock(e.unref(r.Col),{key:a.key,span:a.span},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.node)))]),_:2},1032,["span"]))),128)),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(U.value)))]),_:1})]),_:1},16,["class"]))}});exports.default=ne;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Recordable } from '../../type';
|
|
2
|
+
import { ApFormProps } from '../interface';
|
|
3
|
+
import { UrlParams } from '@vueuse/core';
|
|
4
|
+
/**
|
|
5
|
+
* 获取查询参数
|
|
6
|
+
* @param syncToUrl
|
|
7
|
+
* @param params
|
|
8
|
+
* @param type
|
|
9
|
+
* @returns
|
|
10
|
+
*/
|
|
11
|
+
export declare function genParams(syncToUrl: ApFormProps['syncToUrl'], params: Recordable, type: 'get' | 'set'): any;
|
|
12
|
+
/**
|
|
13
|
+
* 设置表单数据到url查询参数(覆盖模式)
|
|
14
|
+
* @param ins
|
|
15
|
+
* @param params
|
|
16
|
+
*/
|
|
17
|
+
export declare function setToParams(ins: UrlParams, params: Recordable): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../utils/index.js");function c(e,t,n){return e===!0?t:r.runFunction(e,t,n)}function u(e){const t=Object.keys(e);for(const n of t)e[n]=null}function s(e,t){u(e);const n=Object.keys(t);for(const o of n)t[o]!=null&&(e[o]=t[o])}exports.genParams=c;exports.setToParams=s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("@aplus-frontend/antdv"),k=require("./images/icon-down.vue.js");require("./extension-select/index.vue.js");const x=require("../../hooks/useControllableValue.js");require("../../config-provider/index.js");const M=require("../../config-provider/hooks/use-locale.js"),N=require("../../config-provider/hooks/use-global-config.js"),q=require("../../config-provider/hooks/use-namespace.js"),I=require("./extension-select/index.vue2.js"),i="GROUP_SEARCH_ALL",L=e.defineComponent({__name:"ap-group-search",props:{value:{},defaultValue:{},notFoundContent:{},suffixIcon:{},itemIcon:{},size:{},mode:{},bordered:{type:Boolean},transitionName:{},choiceTransitionName:{},popupClassName:{},dropdownClassName:{},placement:{},status:{},"onUpdate:value":{},children:{},listHeight:{},onMouseenter:{},onMouseleave:{},tabindex:{},onClick:{},onFocus:{},onBlur:{},onChange:{},onKeydown:{},onKeyup:{},onMousedown:{},onSelect:{},open:{type:Boolean},animation:{},direction:{},disabled:{type:Boolean},prefixCls:{},id:{},autofocus:{type:Boolean},getPopupContainer:{},virtual:{type:Boolean},dropdownMatchSelectWidth:{default:!1},options:{},showAction:{},onDeselect:{},loading:{type:Boolean},placeholder:{},clearIcon:{},allowClear:{type:Boolean},onSearch:{},fieldNames:{},dropdownStyle:{},dropdownRender:{},dropdownAlign:{},showSearch:{type:Boolean},searchValue:{},onInputKeyDown:{},removeIcon:{},maxTagCount:{},maxTagTextLength:{},maxTagPlaceholder:{},tokenSeparators:{},tagRender:{},optionLabelRender:{},onClear:{},defaultOpen:{type:Boolean},onDropdownVisibleChange:{},showArrow:{type:Boolean},onPopupScroll:{},menuItemSelectedIcon:{},listItemHeight:{},inputValue:{},autoClearSearchValue:{type:Boolean},filterOption:{},filterSort:{},optionFilterProp:{},optionLabelProp:{},defaultActiveFirstOption:{type:Boolean},labelInValue:{type:Boolean},hasAll:{type:Boolean,default:!0},style:{}},emits:["update:value"],setup(v,{emit:g}){const{t:p}=M.useLocale(),d=N.useGlobalConfig("uiMode","aplus"),f=e.ref(),a=v,C=e.computed(()=>({width:"auto",...a.style})),S=g,{value:n,updateValue:c}=x.useControllableValue(a,S),_=o=>{let t=o;o===i?t=a.options.map(l=>l.value):t=toString.call(t)==="[object Array]"?o:[o],c({...n.value,key:t})},w=e.computed(()=>{let o=[];return a.hasAll&&(o=[{value:i,label:p("ap.apGroupSearch.all")}]),[...o,...a.options]}),b=e.computed(()=>{var u,s;const o=(u=n==null?void 0:n.value)==null?void 0:u.key,t=toString.call(o)==="[object Array]"?o:[o],l=p("ap.apGroupSearch.defaultPlaceholder");return!t||t.length===1?l:((s=a.options)==null?void 0:s.filter(r=>t.includes(r.value)).map(r=>r.label).join("/"))||l});e.onMounted(()=>{e.watch(()=>{var o;return[a.hasAll,(o=e.unref(n))==null?void 0:o.key]},()=>{var o,t;a.hasAll&&!((o=e.unref(n))!=null&&o.key)&&c({...e.unref(n),key:(t=a.options)==null?void 0:t.map(l=>l.value)})},{immediate:!0})});const B=e.computed(()=>{var t,l;const o=(t=e.unref(n))==null?void 0:t.key;if(o)return toString.call(o)==="[object Array]"?(o==null?void 0:o.length)===((l=a.options)==null?void 0:l.length)?i:o==null?void 0:o[0]:o}),h=o=>{var t;o!==((t=e.unref(n))==null?void 0:t.value)&&c({...n.value,value:o})},{b:A,e:m,em:V}=q.useNamespace("ap-group-search");return(o,t)=>{const l=e.resolveComponent("Divider");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(A)()),ref_key:"containerRef",ref:f},[e.createVNode(e.unref(y.Flex),null,{default:e.withCtx(()=>{var u,s;return[e.createVNode(e.unref(y.Select),{value:B.value,style:e.normalizeStyle(C.value),class:e.normalizeClass(`${o.$attrs.class} ${e.unref(d)==="admin"?e.unref(V)("search","admin"):e.unref(m)("search")}`),options:w.value,bordered:!1,dropdownMatchSelectWidth:a.dropdownMatchSelectWidth,onChange:_},{suffixIcon:e.withCtx(()=>[e.createVNode(k.default)]),_:1},8,["value","style","class","options","dropdownMatchSelectWidth"]),e.unref(d)==="aplus"?(e.openBlock(),e.createBlock(l,{key:0,class:e.normalizeClass(e.unref(m)("divider")),type:"vertical",style:{}},null,8,["class"])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"search",{value:(u=e.unref(n))==null?void 0:u.value,change:h,key:(s=e.unref(n))==null?void 0:s.key},()=>{var r;return[e.createVNode(I.default,{style:{width:"100%"},maxTagCount:"responsive",value:(r=e.unref(n))==null?void 0:r.value,onChange:h,placeholder:b.value,"__parent-ref":f.value},null,8,["value","placeholder","__parent-ref"])]})]}),_:3})],2)}}});exports.default=L;
|
|
@@ -172,7 +172,9 @@ declare const _default: DefineComponent<__VLS_TypePropsToOption<Omit<Partial< Ex
|
|
|
172
172
|
type: BooleanConstructor;
|
|
173
173
|
default: any;
|
|
174
174
|
};
|
|
175
|
-
}>>, "mode" | "suffixIcon"
|
|
175
|
+
}>>, "mode" | "suffixIcon"> & {
|
|
176
|
+
__parentRef?: HTMLElement;
|
|
177
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
176
178
|
change: (value: SelectValue) => void;
|
|
177
179
|
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption<Omit<Partial< ExtractPropTypes<{
|
|
178
180
|
value: {
|
|
@@ -340,7 +342,9 @@ declare const _default: DefineComponent<__VLS_TypePropsToOption<Omit<Partial< Ex
|
|
|
340
342
|
type: BooleanConstructor;
|
|
341
343
|
default: any;
|
|
342
344
|
};
|
|
343
|
-
}>>, "mode" | "suffixIcon"
|
|
345
|
+
}>>, "mode" | "suffixIcon"> & {
|
|
346
|
+
__parentRef?: HTMLElement;
|
|
347
|
+
}>>> & {
|
|
344
348
|
onChange?: ((value: SelectValue) => any) | undefined;
|
|
345
349
|
}, {}, {}>;
|
|
346
350
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("@aplus-frontend/antdv");require("../popover-select/index.vue.js");require("../../../config-provider/index.js");const g=require("../../../config-provider/hooks/use-global-config.js"),C=require("../../../config-provider/hooks/use-namespace.js"),y=require("../popover-select/index.vue2.js"),_=e.defineComponent({__name:"index",props:{value:{},defaultValue:{},notFoundContent:{},itemIcon:{},size:{},bordered:{type:Boolean},transitionName:{},choiceTransitionName:{},popupClassName:{},dropdownClassName:{},placement:{},status:{},"onUpdate:value":{},children:{},listHeight:{},onMouseenter:{},onMouseleave:{},tabindex:{},onClick:{},onFocus:{},onBlur:{},onChange:{},onKeydown:{},onKeyup:{},onMousedown:{},onSelect:{},open:{type:Boolean},animation:{},direction:{},disabled:{type:Boolean},prefixCls:{},id:{},autofocus:{type:Boolean},getPopupContainer:{},virtual:{type:Boolean},dropdownMatchSelectWidth:{},options:{},showAction:{},onDeselect:{},loading:{type:Boolean},placeholder:{},clearIcon:{},allowClear:{type:Boolean},onSearch:{},fieldNames:{},dropdownStyle:{},dropdownRender:{},dropdownAlign:{},showSearch:{type:Boolean},searchValue:{},onInputKeyDown:{},removeIcon:{},maxTagCount:{},maxTagTextLength:{},maxTagPlaceholder:{},tokenSeparators:{},tagRender:{},optionLabelRender:{},onClear:{},defaultOpen:{type:Boolean},onDropdownVisibleChange:{},showArrow:{type:Boolean},onPopupScroll:{},menuItemSelectedIcon:{},listItemHeight:{},inputValue:{},autoClearSearchValue:{type:Boolean},filterOption:{},filterSort:{},optionFilterProp:{},optionLabelProp:{},defaultActiveFirstOption:{type:Boolean},labelInValue:{type:Boolean},__parentRef:{}},emits:["change"],setup(s,{emit:i}){const p=g.useGlobalConfig("uiMode","aplus"),n=s,l=e.ref(),t=e.ref(),a=e.ref(!1),c=e.computed(()=>n.__parentRef||l.value),d=i,f=o=>{o&&(a.value=!1)};e.watch(()=>n.value,()=>{t.value=n.value},{immediate:!0});const r=o=>{t.value=o,d("change",o)},{b:m}=C.useNamespace("ap-extension-select");return(o,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:l},[e.createVNode(e.unref(v.Select),{class:e.normalizeClass(e.unref(m)()),value:t.value,style:e.normalizeStyle(o.$attrs.style),bordered:e.unref(p)==="admin",mode:"tags",showArrow:!0,"not-found-content":!0,open:a.value,onDropdownVisibleChange:u[0]||(u[0]=h=>a.value=h),onChange:r,maxTagCount:n.maxTagCount,placeholder:n.placeholder},{suffixIcon:e.withCtx(()=>[e.createVNode(y.default,{value:t.value,onSubmit:r,onOpenChange:f,"__parent-ref":c.value},null,8,["value","__parent-ref"])]),_:1},8,["class","value","style","bordered","open","maxTagCount","placeholder"])],512))}});exports.default=_;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@aplus-frontend/ui-theme/src/ap-group-search/ap-extension-select.css';
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@aplus-frontend/ui-theme/src/ap-group-search/ap-extension-select.less';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const Q=require("vue"),e=require("../../../../_virtual/_plugin-vue_export-helper.js"),l={},t={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",fill:"none",version:"1.1",width:"16",height:"16",viewBox:"0 0 16 16"},
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const Q=require("vue"),e=require("../../../../_virtual/_plugin-vue_export-helper.js"),l={},t={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",fill:"none",version:"1.1",width:"16",height:"16",viewBox:"0 0 16 16"},o=Q.createElementVNode("g",null,[Q.createElementVNode("g",null,[Q.createElementVNode("path",{d:"M3,4.5L13,4.5Q13.0492,4.5,13.0975,4.509607Q13.1458,4.519215,13.1913,4.53806Q13.2368,4.556906,13.2778,4.584265Q13.3187,4.611625,13.3536,4.646447Q13.3884,4.681269,13.4157,4.722215Q13.4431,4.763161,13.4619,4.808658Q13.4808,4.854155,13.4904,4.9024549Q13.5,4.9507543,13.5,5Q13.5,5.0492457,13.4904,5.0975451Q13.4808,5.145845,13.4619,5.191342Q13.4431,5.236839,13.4157,5.277785Q13.3884,5.318731,13.3536,5.353553Q13.3187,5.388375,13.2778,5.415735Q13.2368,5.443094,13.1913,5.46194Q13.1458,5.480785,13.0975,5.490393Q13.0492,5.5,13,5.5L3,5.5Q2.9507543,5.5,2.9024549,5.490393Q2.854155,5.480785,2.808658,5.46194Q2.763161,5.443094,2.722215,5.415735Q2.681269,5.388375,2.646447,5.353553Q2.611625,5.318731,2.584265,5.277785Q2.556906,5.236839,2.5380599999999998,5.191342Q2.519215,5.145845,2.509607,5.0975451Q2.5,5.0492457,2.5,5Q2.5,4.9507543,2.509607,4.9024549Q2.519215,4.854155,2.5380599999999998,4.808658Q2.556906,4.763161,2.584265,4.722215Q2.611625,4.681269,2.646447,4.646447Q2.681269,4.611625,2.722215,4.584265Q2.763161,4.556906,2.808658,4.53806Q2.854155,4.519215,2.9024549,4.509607Q2.9507543,4.5,3,4.5Z","fill-rule":"evenodd",fill:"currentcolor","fill-opacity":"1"})]),Q.createElementVNode("g",null,[Q.createElementVNode("path",{d:"M3,7.5L13,7.5Q13.0492,7.5,13.0975,7.509607Q13.1458,7.519215,13.1913,7.53806Q13.2368,7.556906,13.2778,7.584265Q13.3187,7.611625,13.3536,7.646447Q13.3884,7.681269,13.4157,7.722215Q13.4431,7.763161,13.4619,7.808658Q13.4808,7.854155,13.4904,7.9024549Q13.5,7.9507543,13.5,8Q13.5,8.0492457,13.4904,8.0975451Q13.4808,8.145845,13.4619,8.191342Q13.4431,8.236839,13.4157,8.277785Q13.3884,8.318731,13.3536,8.353553Q13.3187,8.388375,13.2778,8.415735Q13.2368,8.443094,13.1913,8.46194Q13.1458,8.480785000000001,13.0975,8.490393Q13.0492,8.5,13,8.5L3,8.5Q2.9507543,8.5,2.9024549,8.490393Q2.854155,8.480785000000001,2.808658,8.46194Q2.763161,8.443094,2.722215,8.415735Q2.681269,8.388375,2.646447,8.353553Q2.611625,8.318731,2.584265,8.277785Q2.556906,8.236839,2.5380599999999998,8.191342Q2.519215,8.145845,2.509607,8.0975451Q2.5,8.0492457,2.5,8Q2.5,7.9507543,2.509607,7.9024549Q2.519215,7.854155,2.5380599999999998,7.808658Q2.556906,7.763161,2.584265,7.722215Q2.611625,7.681269,2.646447,7.646447Q2.681269,7.611625,2.722215,7.584265Q2.763161,7.556906,2.808658,7.53806Q2.854155,7.519215,2.9024549,7.509607Q2.9507543,7.5,3,7.5Z","fill-rule":"evenodd",fill:"currentcolor","fill-opacity":"1"})]),Q.createElementVNode("g",null,[Q.createElementVNode("path",{d:"M3,10.5L8,10.5Q8.04925,10.5,8.09755,10.509607Q8.14584,10.519214999999999,8.19134,10.53806Q8.23684,10.556906,8.27778,10.584265Q8.31873,10.611625,8.35355,10.646447Q8.38837,10.681269,8.41573,10.722215Q8.44309,10.763161,8.46194,10.808658Q8.48078,10.854155,8.49039,10.9024549Q8.5,10.9507543,8.5,11Q8.5,11.0492457,8.49039,11.0975451Q8.48078,11.145845,8.46194,11.191342Q8.44309,11.236839,8.41573,11.277785Q8.38837,11.318731,8.35355,11.353553Q8.31873,11.388375,8.27778,11.415735Q8.23684,11.443094,8.19134,11.46194Q8.14584,11.480785000000001,8.09755,11.490393Q8.04925,11.5,8,11.5L3,11.5Q2.9507543,11.5,2.9024549,11.490393Q2.854155,11.480785000000001,2.808658,11.46194Q2.763161,11.443094,2.722215,11.415735Q2.681269,11.388375,2.646447,11.353553Q2.611625,11.318731,2.584265,11.277785Q2.556906,11.236839,2.5380599999999998,11.191342Q2.519215,11.145845,2.509607,11.0975451Q2.5,11.0492457,2.5,11Q2.5,10.9507543,2.509607,10.9024549Q2.519215,10.854155,2.5380599999999998,10.808658Q2.556906,10.763161,2.584265,10.722215Q2.611625,10.681269,2.646447,10.646447Q2.681269,10.611625,2.722215,10.584265Q2.763161,10.556906,2.808658,10.53806Q2.854155,10.519214999999999,2.9024549,10.509607Q2.9507543,10.5,3,10.5Z","fill-rule":"evenodd",fill:"currentcolor","fill-opacity":"1"})])],-1),n=[o];function r(i,d){return Q.openBlock(),Q.createElementBlock("svg",t,n)}const c=e.default(l,[["render",r]]);exports.default=c;
|
|
@@ -1224,6 +1224,9 @@ declare const ApExtensionSelect: {
|
|
|
1224
1224
|
labelInValue: {
|
|
1225
1225
|
type: PropType<boolean>;
|
|
1226
1226
|
};
|
|
1227
|
+
__parentRef: {
|
|
1228
|
+
type: PropType<HTMLElement>;
|
|
1229
|
+
};
|
|
1227
1230
|
}>> & {
|
|
1228
1231
|
onChange?: ((value: SelectValue) => any) | undefined;
|
|
1229
1232
|
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
@@ -1448,6 +1451,9 @@ declare const ApExtensionSelect: {
|
|
|
1448
1451
|
labelInValue: {
|
|
1449
1452
|
type: PropType<boolean>;
|
|
1450
1453
|
};
|
|
1454
|
+
__parentRef: {
|
|
1455
|
+
type: PropType<HTMLElement>;
|
|
1456
|
+
};
|
|
1451
1457
|
}>> & {
|
|
1452
1458
|
onChange?: ((value: SelectValue) => any) | undefined;
|
|
1453
1459
|
}, {}, true, {}, {}, {
|
|
@@ -1677,6 +1683,9 @@ declare const ApExtensionSelect: {
|
|
|
1677
1683
|
labelInValue: {
|
|
1678
1684
|
type: PropType<boolean>;
|
|
1679
1685
|
};
|
|
1686
|
+
__parentRef: {
|
|
1687
|
+
type: PropType<HTMLElement>;
|
|
1688
|
+
};
|
|
1680
1689
|
}>> & {
|
|
1681
1690
|
onChange?: ((value: SelectValue) => any) | undefined;
|
|
1682
1691
|
}, {}, {}, {}, {}, {}>;
|
|
@@ -1903,6 +1912,9 @@ declare const ApExtensionSelect: {
|
|
|
1903
1912
|
labelInValue: {
|
|
1904
1913
|
type: PropType<boolean>;
|
|
1905
1914
|
};
|
|
1915
|
+
__parentRef: {
|
|
1916
|
+
type: PropType<HTMLElement>;
|
|
1917
|
+
};
|
|
1906
1918
|
}>> & {
|
|
1907
1919
|
onChange?: ((value: SelectValue) => any) | undefined;
|
|
1908
1920
|
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
@@ -2133,6 +2145,10 @@ declare const ApPopoverSelect: {
|
|
|
2133
2145
|
labelInValue: {
|
|
2134
2146
|
type: PropType<boolean>;
|
|
2135
2147
|
};
|
|
2148
|
+
__parentRef: {
|
|
2149
|
+
type: PropType<HTMLElement>;
|
|
2150
|
+
required: true;
|
|
2151
|
+
};
|
|
2136
2152
|
}>> & {
|
|
2137
2153
|
onSubmit?: ((value: SelectValue) => any) | undefined;
|
|
2138
2154
|
"onOpen-change"?: ((value: boolean) => any) | undefined;
|
|
@@ -2359,6 +2375,10 @@ declare const ApPopoverSelect: {
|
|
|
2359
2375
|
labelInValue: {
|
|
2360
2376
|
type: PropType<boolean>;
|
|
2361
2377
|
};
|
|
2378
|
+
__parentRef: {
|
|
2379
|
+
type: PropType<HTMLElement>;
|
|
2380
|
+
required: true;
|
|
2381
|
+
};
|
|
2362
2382
|
}>> & {
|
|
2363
2383
|
onSubmit?: ((value: SelectValue) => any) | undefined;
|
|
2364
2384
|
"onOpen-change"?: ((value: boolean) => any) | undefined;
|
|
@@ -2589,6 +2609,10 @@ declare const ApPopoverSelect: {
|
|
|
2589
2609
|
labelInValue: {
|
|
2590
2610
|
type: PropType<boolean>;
|
|
2591
2611
|
};
|
|
2612
|
+
__parentRef: {
|
|
2613
|
+
type: PropType<HTMLElement>;
|
|
2614
|
+
required: true;
|
|
2615
|
+
};
|
|
2592
2616
|
}>> & {
|
|
2593
2617
|
onSubmit?: ((value: SelectValue) => any) | undefined;
|
|
2594
2618
|
"onOpen-change"?: ((value: boolean) => any) | undefined;
|
|
@@ -2816,6 +2840,10 @@ declare const ApPopoverSelect: {
|
|
|
2816
2840
|
labelInValue: {
|
|
2817
2841
|
type: PropType<boolean>;
|
|
2818
2842
|
};
|
|
2843
|
+
__parentRef: {
|
|
2844
|
+
type: PropType<HTMLElement>;
|
|
2845
|
+
required: true;
|
|
2846
|
+
};
|
|
2819
2847
|
}>> & {
|
|
2820
2848
|
onSubmit?: ((value: SelectValue) => any) | undefined;
|
|
2821
2849
|
"onOpen-change"?: ((value: boolean) => any) | undefined;
|
|
@@ -172,7 +172,9 @@ declare const _default: DefineComponent<__VLS_TypePropsToOption<Omit<Partial< Ex
|
|
|
172
172
|
type: BooleanConstructor;
|
|
173
173
|
default: any;
|
|
174
174
|
};
|
|
175
|
-
}>>, "mode" | "suffixIcon"
|
|
175
|
+
}>>, "mode" | "suffixIcon"> & {
|
|
176
|
+
__parentRef: HTMLElement;
|
|
177
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
176
178
|
submit: (value: SelectValue) => void;
|
|
177
179
|
"open-change": (value: boolean) => void;
|
|
178
180
|
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption<Omit<Partial< ExtractPropTypes<{
|
|
@@ -341,7 +343,9 @@ declare const _default: DefineComponent<__VLS_TypePropsToOption<Omit<Partial< Ex
|
|
|
341
343
|
type: BooleanConstructor;
|
|
342
344
|
default: any;
|
|
343
345
|
};
|
|
344
|
-
}>>, "mode" | "suffixIcon"
|
|
346
|
+
}>>, "mode" | "suffixIcon"> & {
|
|
347
|
+
__parentRef: HTMLElement;
|
|
348
|
+
}>>> & {
|
|
345
349
|
onSubmit?: ((value: SelectValue) => any) | undefined;
|
|
346
350
|
"onOpen-change"?: ((value: boolean) => any) | undefined;
|
|
347
351
|
}, {}, {}>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
2
|
-
`,"\r"],open:!1,ref_key:"selectRef",ref:
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("@aplus-frontend/antdv");require("../../../config-provider/index.js");const V=require("../images/icon-line-select.vue.js"),B=require("@aplus-frontend/utils"),b=require("../../../config-provider/hooks/use-locale.js"),x=require("../../../config-provider/hooks/use-global-config.js"),_=require("../../../config-provider/hooks/use-namespace.js"),k=e.defineComponent({__name:"index",props:{value:{},defaultValue:{},notFoundContent:{},itemIcon:{},size:{},bordered:{type:Boolean},transitionName:{},choiceTransitionName:{},popupClassName:{},dropdownClassName:{},placement:{},status:{},"onUpdate:value":{},children:{},listHeight:{},onMouseenter:{},onMouseleave:{},tabindex:{},onClick:{},onFocus:{},onBlur:{},onChange:{},onKeydown:{},onKeyup:{},onMousedown:{},onSelect:{},open:{type:Boolean},animation:{},direction:{},disabled:{type:Boolean},prefixCls:{},id:{},autofocus:{type:Boolean},getPopupContainer:{},virtual:{type:Boolean},dropdownMatchSelectWidth:{},options:{},showAction:{},onDeselect:{},loading:{type:Boolean},placeholder:{},clearIcon:{},allowClear:{type:Boolean},onSearch:{},fieldNames:{},dropdownStyle:{},dropdownRender:{},dropdownAlign:{},showSearch:{type:Boolean},searchValue:{},onInputKeyDown:{},removeIcon:{},maxTagCount:{},maxTagTextLength:{},maxTagPlaceholder:{},tokenSeparators:{},tagRender:{},optionLabelRender:{},onClear:{},defaultOpen:{type:Boolean},onDropdownVisibleChange:{},showArrow:{type:Boolean},onPopupScroll:{},menuItemSelectedIcon:{},listItemHeight:{},inputValue:{},autoClearSearchValue:{type:Boolean},filterOption:{},filterSort:{},optionFilterProp:{},optionLabelProp:{},defaultActiveFirstOption:{type:Boolean},labelInValue:{type:Boolean},__parentRef:{}},emits:["submit","open-change"],setup(f,{emit:m}){const{t:r}=b.useLocale(),u=x.useGlobalConfig("uiMode","aplus"),l=f,p=m,n=e.ref([]),s=e.ref(!1),c=e.ref();e.watchEffect(()=>{n.value=l.value});const h=o=>l.__parentRef||o,C=o=>{s.value=o,p("open-change",o)},i=()=>{s.value=!1},g=()=>{n.value=[]},v=o=>{n.value=o},y=async()=>{var o;(o=c.value)==null||o.blur(),i(),await B.wait(150),p("submit",n.value)},{b:S,e:w,em:a}=_.useNamespace("ap-popover-select");return(o,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(S)())},[e.createVNode(e.unref(t.Popover),{overlayClassName:e.unref(w)("popover"),"get-popup-container":h,trigger:"click",open:s.value,placement:"bottomLeft",onOpenChange:C},{content:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("div",{class:e.normalizeClass(e.unref(a)("popover","content"))},[e.createVNode(e.unref(t.Select),e.mergeProps({...l},{mode:"tags",bordered:!1,value:n.value,onChange:d[0]||(d[0]=N=>v(N)),placeholder:e.unref(r)("ap.apGroupSearch.tokenSeparatorsPlaceholder"),tokenSeparators:[",",`
|
|
2
|
+
`,"\r"],"max-tag-count":200,open:!1,ref_key:"selectRef",ref:c}),null,16,["value","placeholder"])],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(u)==="aplus"?e.unref(a)("popover","footer"):e.unref(a)("popover","footer--admin"))},[e.createVNode(e.unref(t.Button),{size:"small",onClick:i},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("ap.apGroupSearch.close")),1)]),_:1}),e.createVNode(e.unref(t.Space),null,{default:e.withCtx(()=>[e.createVNode(e.unref(t.Button),{size:"small",onClick:g},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("ap.apGroupSearch.clear")),1)]),_:1}),e.createVNode(e.unref(t.Button),{size:"small",type:"primary",onClick:y},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("ap.apGroupSearch.confirm")),1)]),_:1})]),_:1})],2)])]),default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(e.unref(u)==="aplus"?e.unref(a)("popover","trigger"):e.unref(a)("popover","trigger--admin"))},[e.createVNode(V.default)],2)]),_:1},8,["overlayClassName","open"])],2))}});exports.default=k;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import '@aplus-frontend/ui-theme/src/ap-group-search/ap-
|
|
1
|
+
import '@aplus-frontend/ui-theme/src/ap-group-search/ap-popover-select.css';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import '@aplus-frontend/ui-theme/src/ap-group-search/ap-
|
|
1
|
+
import '@aplus-frontend/ui-theme/src/ap-group-search/ap-popover-select.less';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("lodash-unified"),p=require("@aplus-frontend/antdv"),o=require("./utils.js");require("../../config-provider/index.js");const i=require("@aplus-frontend/utils"),_=require("../../config-provider/hooks/use-namespace.js"),v=e.defineComponent({name:"ApSummary",__name:"ap-summary",props:{data:{},columns:{},summaryTitle:{default:"合计"},hasSelect:{type:Boolean,default:!0},size:{default:"middle"}},setup(f){const s=f,y=n=>n===0,x=(n,u)=>{var r;if(!n||!i.isNumeric(n)||u.valueType!=="number")return n;const a=(r=u.fieldProps)==null?void 0:r.field,t=(a==null?void 0:a.precision)||0;return(l.isNil(a==null?void 0:a.thousands)?!0:a==null?void 0:a.thousands)?i.toThousand(n,t):i.toFixed(n,t)},k=e.computed(()=>{let n=[];s.hasSelect&&n.push({key:"select",rowSpan:1,align:"left",value:""});const a=o.flattenColumns(s.columns).map((t,m)=>{let r;const S=l.get(s.data,o.formatDataIndex(t.dataIndex||t.key));if(y(m))r=s.summaryTitle;else if(S&&(t.customRender||t.renderText)){const d=l.get(s.data,o.formatDataIndex(t.dataIndex||t.key)),T=o.formatDataIndex(t.dataIndex||t.key),c=t.customRender||t.renderText;r=c==null?void 0:c({value:d,record:{[T]:d},text:void 0,index:0,renderIndex:0,column:{}})}else r=x(l.get(s.data,o.formatDataIndex(t.dataIndex||t.key)),t);return{key:t.key,rowSpan:1,align:t.align,value:r}});return n.concat(a)}),{b:h,e:g,em:C}=_.useNamespace("ap-summary");return(n,u)=>(e.openBlock(),e.createBlock(e.unref(p.TableSummaryRow),{class:e.normalizeClass(e.unref(h)())},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,(a,t)=>(e.openBlock(),e.createBlock(e.unref(p.TableSummaryCell),{class:e.normalizeClass(`${s.size==="small"?e.unref(C)("item","small"):e.unref(g)("item")}`),key:a.key,index:t,style:e.normalizeStyle({textAlign:a.align})},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.value)))]),_:2},1032,["class","index","style"]))),128))]),_:1},8,["class"]))}});exports.default=v;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={name:"en",ap:{common:{okText:"OK",cancelText:"Cancel",resetText:"Reset",queryText:"Search",expandText:"Unfold",closeText:"Put away",inputText:"Please enter",chooseText:"Please choose",redo:"Refresh",back:"Back",more:"More"},field:{startDateText:"Start date",endDateText:"End date"},apForm:{search:{search:"Search",reset:"Reset"}},apTable:{pagination:{totalLeftPrefix:"Total",totalLeftSuffix:"items",totalRightPrefix:"Page",totalRightSuffix:""},setting:{title:"Custom Table",selectAll:"Select All",unSelectAll:"Deselect All",selectAllTip:"Please select the columns to display in the table.",sizeSmall:"Small",sizeNormal:"Normal",selectCount:"Selected fields ({count})",reset:"Reset",fixToLeft:"Fixed on the left",fixToRight:"Fixed on the right",unFixed:"Not fixed",delete:"Delete"}},apUpload:{update:"Upload",pictureType:"Image type",videoType:"Video type",audioType:"Audio type",documentType:"Document type",allTypes:"All types",networkAnomaly:"Network abnormality",FailedToObtainOssTemporaryPermissions:"Failed to obtain temporary OSS permissions",pleasePass:"Please pass in",supportExtension:"Support extensions",uploadFile:"Upload files",fileInitializationException:"If the initial number of initialized files exceeds {maxCount}, subsequent uploaded files will be out of sync with the data",maxUploadFiles:"Upload a maximum of {maxCount} files",maxUploadPicture:"Upload a maximum of {maxCount} images",maxUploadFileSize:"The file size does not exceed {maxSize}MB",maxWarnUploadFileSize:"The file size is smaller than {maxSize}MB",maxUploadPictureSize:"The image size is smaller than {maxSize}MB",fileFormatNotSupported:"Files in this format are not supported",pictureFormatNotSupported:"Images in this format are not supported",imageParsingFailed:"Image parsing failed",clickOrDragUpload:"Click or drag the file",foldersNotSupported:"Do not support uploading folders"},apExportGroup:{exportError:"Export error",exportSelected:"Export selected",exportAll:"Export all",export:"Export"},apBatchAction:{selected:"Selected",piecesOfData:"Pieces of data",empty:"Empty"},apApBatchActionGroup:{batchOperation:"Batch operation"},workOrderModal:{createTickets:"Create ticket",submit:"Confirm",cancel:"Cancel",ticketsTitle:"Ticket Title",noEmpty:"No empty",pleaseEntry:"please enter",ticketsType:"Ticket Type",ticketsDetail:"Ticket Detail",ticketsLevel:"Priority",operationSuccess:"operate successfully",fileSizeMax:"Single file size limit",fileCountMax:"Limit the number to {x} at a time"},apTableModal:{titleSuffixOne:"You can add up to {maxCount},",titleSuffixTwo:"Added",titleSuffixThree:"",messageMaxCount:"You can select up to {maxCount} data entries",clear:"Clear",selected:"Selected"},apAttachment:{downloadall:"Download All",more:"More"},apExpandAlert:{expand:"Expand",collapse:"Collapse"},apAppendix:{downloadAll:"Download All",downloadFile:"Download file",appendix:"Appendix"},apGroupSearch:{defaultPlaceholder:"Please input",all:"All",close:"Close",clear:"Clear",confirm:"Confirm",tokenSeparatorsPlaceholder:"
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={name:"en",ap:{common:{okText:"OK",cancelText:"Cancel",resetText:"Reset",queryText:"Search",expandText:"Unfold",closeText:"Put away",inputText:"Please enter",chooseText:"Please choose",redo:"Refresh",back:"Back",more:"More"},field:{startDateText:"Start date",endDateText:"End date"},apForm:{search:{search:"Search",reset:"Reset"}},apTable:{pagination:{totalLeftPrefix:"Total",totalLeftSuffix:"items",totalRightPrefix:"Page",totalRightSuffix:""},setting:{title:"Custom Table",selectAll:"Select All",unSelectAll:"Deselect All",selectAllTip:"Please select the columns to display in the table.",sizeSmall:"Small",sizeNormal:"Normal",selectCount:"Selected fields ({count})",reset:"Reset",fixToLeft:"Fixed on the left",fixToRight:"Fixed on the right",unFixed:"Not fixed",delete:"Delete"}},apUpload:{update:"Upload",pictureType:"Image type",videoType:"Video type",audioType:"Audio type",documentType:"Document type",allTypes:"All types",networkAnomaly:"Network abnormality",FailedToObtainOssTemporaryPermissions:"Failed to obtain temporary OSS permissions",pleasePass:"Please pass in",supportExtension:"Support extensions",uploadFile:"Upload files",fileInitializationException:"If the initial number of initialized files exceeds {maxCount}, subsequent uploaded files will be out of sync with the data",maxUploadFiles:"Upload a maximum of {maxCount} files",maxUploadPicture:"Upload a maximum of {maxCount} images",maxUploadFileSize:"The file size does not exceed {maxSize}MB",maxWarnUploadFileSize:"The file size is smaller than {maxSize}MB",maxUploadPictureSize:"The image size is smaller than {maxSize}MB",fileFormatNotSupported:"Files in this format are not supported",pictureFormatNotSupported:"Images in this format are not supported",imageParsingFailed:"Image parsing failed",clickOrDragUpload:"Click or drag the file",foldersNotSupported:"Do not support uploading folders"},apExportGroup:{exportError:"Export error",exportSelected:"Export selected",exportAll:"Export all",export:"Export"},apBatchAction:{selected:"Selected",piecesOfData:"Pieces of data",empty:"Empty"},apApBatchActionGroup:{batchOperation:"Batch operation"},workOrderModal:{createTickets:"Create ticket",submit:"Confirm",cancel:"Cancel",ticketsTitle:"Ticket Title",noEmpty:"No empty",pleaseEntry:"please enter",ticketsType:"Ticket Type",ticketsDetail:"Ticket Detail",ticketsLevel:"Priority",operationSuccess:"operate successfully",fileSizeMax:"Single file size limit",fileCountMax:"Limit the number to {x} at a time"},apTableModal:{titleSuffixOne:"You can add up to {maxCount},",titleSuffixTwo:"Added",titleSuffixThree:"",messageMaxCount:"You can select up to {maxCount} data entries",clear:"Clear",selected:"Selected"},apAttachment:{downloadall:"Download All",more:"More"},apExpandAlert:{expand:"Expand",collapse:"Collapse"},apAppendix:{downloadAll:"Download All",downloadFile:"Download file",appendix:"Appendix"},apGroupSearch:{defaultPlaceholder:"Please input",all:"All",close:"Close",clear:"Clear",confirm:"Confirm",tokenSeparatorsPlaceholder:"A maximum of 200 entries can be entered in batches, separated by commas and newlines"}}};exports.default=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={name:"zh-cn",ap:{common:{okText:"确认",cancelText:"取消",resetText:"重置",queryText:"查询",expandText:"展开",closeText:"收起",inputText:"请输入",chooseText:"请选择",redo:"刷新",back:"返回",more:"更多"},field:{startDateText:"开始日期",endDateText:"结束日期"},modal:{restore:"还原",maximize:"最大化",close:"关闭"},countdown:{normalText:"获取验证码",sendText:"{sec}秒后重新获取"},apForm:{search:{search:"查询",reset:"重置"}},apTable:{pagination:{totalLeftPrefix:"共",totalLeftSuffix:"条记录",totalRightPrefix:"第",totalRightSuffix:"页"},setting:{title:"自定义表格",selectAll:"全选",unSelectAll:"取消全选",selectAllTip:"请选择需要展示在表格的字段",sizeSmall:"紧凑",sizeNormal:"正常",selectCount:"已选字段({count})",reset:"重置",fixToLeft:"固定在左侧",fixToRight:"固定在右侧",unFixed:"不固定",delete:"删除"}},apUpload:{update:"上传",pictureType:"图片类型",videoType:"视频类型",audioType:"音频类型",documentType:"文档类型",allTypes:"全部类型",networkAnomaly:"网络异常",FailedToObtainOssTemporaryPermissions:"获取oss临时权限失败",pleasePass:"请传入",supportExtension:"支持扩展名",uploadFile:"上传文件",fileInitializationException:"文件初始化个数超过{maxCount}个,后续上传的文件会与数据不同步",maxUploadFiles:"最多上传{maxCount}个文件",maxUploadPicture:"最多上传{maxCount}张图片",maxUploadFileSize:"文件大小不超过{maxSize}MB",maxWarnUploadFileSize:"文件大小小于{maxSize}MB",maxUploadPictureSize:"图片大小小于{maxSize}MB",fileFormatNotSupported:"不支持该格式的文件",pictureFormatNotSupported:"不支持该格式的图片",imageParsingFailed:"图片解析失败",clickOrDragUpload:"点击或将文件拖拽到这里上传",foldersNotSupported:"不支持上传文件夹"},apExportGroup:{exportError:"导出失败",exportSelected:"导出所选",exportAll:"导出全部",export:"导出"},apBatchAction:{selected:"已选",piecesOfData:"条数据",empty:"清空"},apApBatchActionGroup:{batchOperation:"批量操作"},workOrderModal:{createTickets:"创建工单",submit:"确定",cancel:"取消",ticketsTitle:"工单标题",noEmpty:"不可为空",pleaseEntry:"请输入",ticketsType:"工单类型",ticketsDetail:"工单详情",ticketsLevel:"优先级",operationSuccess:"操作成功",fileSizeMax:"单个文件大小限制",fileCountMax:"单次数量限制 {x} 个"},apTableModal:{titleSuffixOne:"最多可添加{maxCount}个,",titleSuffixTwo:"已添加",titleSuffixThree:"个",messageMaxCount:"最多选择{maxCount}条数据",clear:"清空",selected:"已选"},apAttachment:{downloadall:"下载全部",more:"更多"},apExpandAlert:{expand:"展开",collapse:"收起"},apAppendix:{downloadAll:"下载全部",downloadFile:"下载文件",appendix:"附件"},apGroupSearch:{defaultPlaceholder:"请输入",all:"全部",close:"关闭",clear:"清空",confirm:"确定",tokenSeparatorsPlaceholder:"
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={name:"zh-cn",ap:{common:{okText:"确认",cancelText:"取消",resetText:"重置",queryText:"查询",expandText:"展开",closeText:"收起",inputText:"请输入",chooseText:"请选择",redo:"刷新",back:"返回",more:"更多"},field:{startDateText:"开始日期",endDateText:"结束日期"},modal:{restore:"还原",maximize:"最大化",close:"关闭"},countdown:{normalText:"获取验证码",sendText:"{sec}秒后重新获取"},apForm:{search:{search:"查询",reset:"重置"}},apTable:{pagination:{totalLeftPrefix:"共",totalLeftSuffix:"条记录",totalRightPrefix:"第",totalRightSuffix:"页"},setting:{title:"自定义表格",selectAll:"全选",unSelectAll:"取消全选",selectAllTip:"请选择需要展示在表格的字段",sizeSmall:"紧凑",sizeNormal:"正常",selectCount:"已选字段({count})",reset:"重置",fixToLeft:"固定在左侧",fixToRight:"固定在右侧",unFixed:"不固定",delete:"删除"}},apUpload:{update:"上传",pictureType:"图片类型",videoType:"视频类型",audioType:"音频类型",documentType:"文档类型",allTypes:"全部类型",networkAnomaly:"网络异常",FailedToObtainOssTemporaryPermissions:"获取oss临时权限失败",pleasePass:"请传入",supportExtension:"支持扩展名",uploadFile:"上传文件",fileInitializationException:"文件初始化个数超过{maxCount}个,后续上传的文件会与数据不同步",maxUploadFiles:"最多上传{maxCount}个文件",maxUploadPicture:"最多上传{maxCount}张图片",maxUploadFileSize:"文件大小不超过{maxSize}MB",maxWarnUploadFileSize:"文件大小小于{maxSize}MB",maxUploadPictureSize:"图片大小小于{maxSize}MB",fileFormatNotSupported:"不支持该格式的文件",pictureFormatNotSupported:"不支持该格式的图片",imageParsingFailed:"图片解析失败",clickOrDragUpload:"点击或将文件拖拽到这里上传",foldersNotSupported:"不支持上传文件夹"},apExportGroup:{exportError:"导出失败",exportSelected:"导出所选",exportAll:"导出全部",export:"导出"},apBatchAction:{selected:"已选",piecesOfData:"条数据",empty:"清空"},apApBatchActionGroup:{batchOperation:"批量操作"},workOrderModal:{createTickets:"创建工单",submit:"确定",cancel:"取消",ticketsTitle:"工单标题",noEmpty:"不可为空",pleaseEntry:"请输入",ticketsType:"工单类型",ticketsDetail:"工单详情",ticketsLevel:"优先级",operationSuccess:"操作成功",fileSizeMax:"单个文件大小限制",fileCountMax:"单次数量限制 {x} 个"},apTableModal:{titleSuffixOne:"最多可添加{maxCount}个,",titleSuffixTwo:"已添加",titleSuffixThree:"个",messageMaxCount:"最多选择{maxCount}条数据",clear:"清空",selected:"已选"},apAttachment:{downloadall:"下载全部",more:"更多"},apExpandAlert:{expand:"展开",collapse:"收起"},apAppendix:{downloadAll:"下载全部",downloadFile:"下载文件",appendix:"附件"},apGroupSearch:{defaultPlaceholder:"请输入",all:"全部",close:"关闭",clear:"清空",confirm:"确定",tokenSeparatorsPlaceholder:"支持批量输入,可用逗号、换行符号分隔,最多输入200条"}}};exports.default=e;
|