@aplus-frontend/ui 6.35.2 → 6.36.0
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-field/date/index.vue.mjs +6 -5
- package/es/src/ap-field/date/read.vue2.mjs +8 -7
- package/es/src/ap-field/date-range/index.vue.mjs +20 -17
- package/es/src/ap-field/date-range/read.vue2.mjs +3 -2
- package/es/src/ap-field/index.d.ts +3 -3
- package/es/src/ap-field/text/index.vue.d.ts +1 -1
- package/es/src/ap-field/text/password.vue.d.ts +1 -1
- package/es/src/ap-field/text/read-password.vue.d.ts +1 -1
- package/es/src/ap-field/text/read.vue.d.ts +1 -1
- package/es/src/ap-field/text-area/index.vue.d.ts +1 -1
- package/es/src/ap-field/text-area/read.vue.d.ts +1 -1
- package/es/src/ap-form/ap-form.vue.d.ts +1 -1
- package/es/src/ap-form/drawer-form/index.vue.d.ts +20 -20
- package/es/src/ap-form/interface.d.ts +12 -1
- package/es/src/ap-form/item/index.vue.d.ts +34 -34
- package/es/src/ap-form/items/checkbox/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/date/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/date-range/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/number/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/radio/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/select/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/switch/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/text/index.vue.d.ts +8 -8
- package/es/src/ap-form/items/text/password.vue.d.ts +8 -8
- package/es/src/ap-form/items/text-area/index.vue.d.ts +6 -6
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +2 -2
- package/es/src/ap-form/modal-form/index.vue.d.ts +30 -21
- package/es/src/ap-form/render/item.vue.d.ts +2 -2
- package/es/src/ap-form/search-form/hooks/use-count-per-row.d.ts +13 -2
- package/es/src/ap-form/search-form/hooks/use-count-per-row.mjs +32 -22
- package/es/src/ap-form/search-form/index.vue.d.ts +298 -20
- package/es/src/ap-form/search-form/index.vue.mjs +94 -88
- package/es/src/ap-modal/utils/createModal.mjs +38 -35
- package/es/src/ap-pro-card/components/card/index.vue.d.ts +1 -1
- package/es/src/ap-table/constants.d.ts +77 -77
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +132 -109
- package/es/src/business/ap-attachment/ApAttachment.d.ts +9 -0
- package/es/src/business/ap-attachment/ApAttachment.mjs +48 -47
- package/es/src/business/ap-attachment/constans.d.ts +4 -0
- package/es/src/business/ap-attachment/constans.mjs +4 -0
- package/es/src/business/ap-attachment/index.d.ts +15 -0
- package/es/src/business/ap-attachment/interface.d.ts +1 -0
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +15 -13
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +10 -10
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +10 -10
- package/es/src/business/batch-input-group/form-item.vue.d.ts +2 -2
- package/es/src/business/batch-input-group/index.vue.d.ts +4 -4
- package/es/src/config-provider/config-provider-props.d.ts +5 -1
- package/es/src/config-provider/config-provider.d.ts +10 -1
- package/es/src/config-provider/hooks/use-global-config.d.ts +5 -1
- package/es/src/config-provider/index.d.ts +16 -1
- package/es/src/utils/config-provider-preset.d.ts +3 -1
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +10 -10
- package/es/src/work-order-modal/work-order-modal.vue.mjs +6 -4
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date/read.vue2.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/read.vue2.js +1 -1
- package/lib/src/ap-field/index.d.ts +3 -3
- package/lib/src/ap-field/text/index.vue.d.ts +1 -1
- package/lib/src/ap-field/text/password.vue.d.ts +1 -1
- package/lib/src/ap-field/text/read-password.vue.d.ts +1 -1
- package/lib/src/ap-field/text/read.vue.d.ts +1 -1
- package/lib/src/ap-field/text-area/index.vue.d.ts +1 -1
- package/lib/src/ap-field/text-area/read.vue.d.ts +1 -1
- package/lib/src/ap-form/ap-form.vue.d.ts +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +20 -20
- package/lib/src/ap-form/interface.d.ts +12 -1
- package/lib/src/ap-form/item/index.vue.d.ts +34 -34
- package/lib/src/ap-form/items/checkbox/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/date/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/number/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/radio/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/select/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/switch/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/text/index.vue.d.ts +8 -8
- package/lib/src/ap-form/items/text/password.vue.d.ts +8 -8
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +6 -6
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +2 -2
- package/lib/src/ap-form/modal-form/index.vue.d.ts +30 -21
- package/lib/src/ap-form/render/item.vue.d.ts +2 -2
- package/lib/src/ap-form/search-form/hooks/use-count-per-row.d.ts +13 -2
- package/lib/src/ap-form/search-form/hooks/use-count-per-row.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +298 -20
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-modal/utils/createModal.js +1 -1
- package/lib/src/ap-pro-card/components/card/index.vue.d.ts +1 -1
- package/lib/src/ap-table/constants.d.ts +77 -77
- package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
- package/lib/src/business/ap-attachment/ApAttachment.d.ts +9 -0
- package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
- package/lib/src/business/ap-attachment/constans.d.ts +4 -0
- package/lib/src/business/ap-attachment/constans.js +1 -1
- package/lib/src/business/ap-attachment/index.d.ts +15 -0
- package/lib/src/business/ap-attachment/interface.d.ts +1 -0
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +10 -10
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +10 -10
- package/lib/src/business/batch-input-group/form-item.vue.d.ts +2 -2
- package/lib/src/business/batch-input-group/index.vue.d.ts +4 -4
- package/lib/src/config-provider/config-provider-props.d.ts +5 -1
- package/lib/src/config-provider/config-provider.d.ts +10 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +5 -1
- package/lib/src/config-provider/index.d.ts +16 -1
- package/lib/src/utils/config-provider-preset.d.ts +3 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +10 -10
- package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
- package/package.json +3 -3
- package/theme/ap-attachment/ap-attachment.css +8 -4
- package/theme/ap-attachment/ap-attachment.less +8 -4
- package/theme/ap-upload/index.css +6 -0
- package/theme/ap-upload/multiple-file.css +6 -0
- package/theme/ap-upload/multiple-file.less +7 -0
- package/theme/index.css +14 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("../date/constant.js");require("../../hooks/index.js");const r=require("lodash-unified"),i=require("dayjs"),g=require("@aplus-frontend/antdv"),V=require("../date/helper.js"),q=require("@ant-design/icons-vue"),E=require("../../utils/index.js"),k=require("@aplus-frontend/utils"),z=require("../hooks/use-default-placeholder.js"),I=require("../hooks/use-default-presets.js"),U=require("../hooks/use-date-timezone.js"),j=require("../../hooks/useControllableValue.js"),H=e.defineComponent({name:"ApFieldDateRange",__name:"index",props:{mode:{default:"edit"},class:{},style:{},id:{},defaultPickerValue:{},placeholder:{},disabled:{type:[Boolean,Array],default:void 0},disabledTime:{},ranges:{},separator:{type:[Object,String,Number,Boolean,null,Array],default:void 0},allowEmpty:{},onCalendarChange:{},onFocus:{},onBlur:{},onMousedown:{},onMouseup:{},onMouseenter:{},onMouseleave:{},onClick:{},direction:{},autocomplete:{},activePickerIndex:{},dateRender:{},panelRender:{},dropdownClassName:{},dropdownAlign:{},popupStyle:{},transitionName:{},allowClear:{type:Boolean,default:!0},autofocus:{type:Boolean,default:void 0},tabindex:{},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},inputReadOnly:{type:Boolean,default:void 0},suffixIcon:{type:[Object,String,Number,Boolean,null,Array],default:void 0},clearIcon:{type:[Object,String,Number,Boolean,null,Array],default:void 0},getPopupContainer:{},inputRender:{},onOpenChange:{},onContextmenu:{},onKeydown:{},role:{},name:{},picker:{},prefixCls:{},disabledDate:{},monthCellRender:{},locale:{},size:{},bordered:{type:Boolean,default:void 0},variant:{},showTime:{type:Boolean,default:void 0},showNow:{type:Boolean,default:void 0},order:{type:Boolean,default:void 0},defaultOpenValue:{},showHour:{type:Boolean,default:void 0},showMinute:{type:Boolean,default:void 0},showSecond:{type:Boolean,default:void 0},use12Hours:{type:Boolean,default:void 0},hourStep:{},minuteStep:{},secondStep:{},hideDisabledOptions:{type:Boolean,default:void 0},disabledHours:{},disabledMinutes:{},disabledSeconds:{},valueFormat:{},emptyText:{default:"--"},value:{},defaultValue:{},onChange:{},onOk:{},format:{default:"Y-D"},shownFormat:{},timezone:{},readModeSeparator:{},presets:{type:[Array,Boolean]}},emits:["update:value"],setup(S,{emit:B}){const t=S,C=B,T=e.useSlots(),s=e.computed(()=>m.ApFieldDatePresetFormats.indexOf(t.format)>-1),f=e.computed(()=>s.value?m.PRESET_FORMAT_MAP[t.format]:t.format),{value:p,updateValue:
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("../date/constant.js");require("../../hooks/index.js");const r=require("lodash-unified"),i=require("dayjs"),g=require("@aplus-frontend/antdv"),V=require("../date/helper.js"),q=require("@ant-design/icons-vue"),E=require("../../utils/index.js"),k=require("@aplus-frontend/utils"),z=require("../hooks/use-default-placeholder.js"),I=require("../hooks/use-default-presets.js"),U=require("../hooks/use-date-timezone.js"),j=require("../../hooks/useControllableValue.js"),H=e.defineComponent({name:"ApFieldDateRange",__name:"index",props:{mode:{default:"edit"},class:{},style:{},id:{},defaultPickerValue:{},placeholder:{},disabled:{type:[Boolean,Array],default:void 0},disabledTime:{},ranges:{},separator:{type:[Object,String,Number,Boolean,null,Array],default:void 0},allowEmpty:{},onCalendarChange:{},onFocus:{},onBlur:{},onMousedown:{},onMouseup:{},onMouseenter:{},onMouseleave:{},onClick:{},direction:{},autocomplete:{},activePickerIndex:{},dateRender:{},panelRender:{},dropdownClassName:{},dropdownAlign:{},popupStyle:{},transitionName:{},allowClear:{type:Boolean,default:!0},autofocus:{type:Boolean,default:void 0},tabindex:{},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},inputReadOnly:{type:Boolean,default:void 0},suffixIcon:{type:[Object,String,Number,Boolean,null,Array],default:void 0},clearIcon:{type:[Object,String,Number,Boolean,null,Array],default:void 0},getPopupContainer:{},inputRender:{},onOpenChange:{},onContextmenu:{},onKeydown:{},role:{},name:{},picker:{},prefixCls:{},disabledDate:{},showWeek:{type:Boolean},monthCellRender:{},locale:{},size:{},bordered:{type:Boolean,default:void 0},variant:{},showTime:{type:Boolean,default:void 0},showNow:{type:Boolean,default:void 0},order:{type:Boolean,default:void 0},defaultOpenValue:{},showHour:{type:Boolean,default:void 0},showMinute:{type:Boolean,default:void 0},showSecond:{type:Boolean,default:void 0},use12Hours:{type:Boolean,default:void 0},hourStep:{},minuteStep:{},secondStep:{},hideDisabledOptions:{type:Boolean,default:void 0},disabledHours:{},disabledMinutes:{},disabledSeconds:{},valueFormat:{},emptyText:{default:"--"},value:{},defaultValue:{},onChange:{},onOk:{},format:{default:"Y-D"},shownFormat:{},timezone:{},readModeSeparator:{},presets:{type:[Array,Boolean]}},emits:["update:value"],setup(S,{emit:B}){const t=S,C=B,T=e.useSlots(),s=e.computed(()=>m.ApFieldDatePresetFormats.indexOf(t.format)>-1),f=e.computed(()=>s.value?m.PRESET_FORMAT_MAP[t.format]:t.format),{value:p,updateValue:v}=j.useControllableValue(t,C),D=e.computed(()=>t.shownFormat?t.shownFormat:s.value?m.PRESET_FORMAT_MAP[t.format]:t.format),P=z.useDefaultPlaceholder("DateRange",t),{currentTimezone:u}=U.useDateTimezone(t),{presets:w,changeCurrentDate:F}=I.useDefaultPresets({...t,timezone:u}),d=(n,a,o=!0)=>V.formatDayWithTimezone(u.value)(n,a,o),y=e.computed(()=>{const n=e.unref(p);if(r.isNil(n)||!n?.length)return n;const a=u.value?k.getTimeFormatToZone(e.unref(p)[0],u.value):e.unref(p)?.[0],o=t.timezone?k.getTimeFormatToZone(e.unref(p)[1],u.value):e.unref(p)?.[1];return[i(a),i(o)]}),M=e.computed(()=>e.unref(s)?t.picker??m.PRESET_FORMAT_PICK_MAP[t.format]:t.picker),O=e.computed(()=>{const n=e.unref(s)?m.PRESET_FORMAT_TIME_MAP[t.format]:{};return{...E.omitUndefined(r.omit(t,["value","onUpdate:value","onChange","onOk","format","mode","presets"])),placeholder:e.unref(P),presets:e.unref(w),...n}});function b(n){if(!n){v(n);return}let a=r.isString(n[0])?i(n[0]):n[0],o=r.isString(n[1])?i(n[1]):n[1];const l=e.unref(s)?e.unref(f):void 0;v([d(a,l),d(o,l,!1)])}function A(n){const a=r.isString(n[0])?i(n[0]):n[0],o=r.isString(n[1])?i(n[1]):n[1],l=e.unref(s)?e.unref(f):void 0,c=n[0]?d(a,l):null,h=n[1]?d(o,l,!1):null;t.onOk?.([c,h])}function R(n){n&&F(),t.onOpenChange?.(n)}function _(n,a){if(r.isNil(n)){t.onChange?.(n,a);return}const o=r.isString(n[0])?i(n[0]):n[0],l=r.isString(n[1])?i(n[1]):n[1],c=e.unref(s)?e.unref(f):void 0,h=n[0]?d(o,c):null,x=n[1]?d(l,c,!1):null;t.onChange?.([h,x],a)}const N=e.computed(()=>{const n=t.readModeSeparator;if(n)return e.isVNode(n)||r.isFunction(n)?t.readModeSeparator:e.createVNode(e.Fragment,null,[t.readModeSeparator]);const a=T.readModeSeparator?.();return a?e.createVNode(e.Fragment,null,[a]):q.SwapRightOutlined});return(n,a)=>n.mode==="read"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[y.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(y.value[0]?.format(f.value))+" ",1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N.value))),e.createTextVNode(" "+e.toDisplayString(y.value[1]?.format(f.value)),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(n.emptyText),1)],64))],64)):(e.openBlock(),e.createBlock(e.unref(g.InputGroup),{key:1,compact:"",style:e.normalizeStyle({display:Array.isArray(t.timezone)&&t.timezone.length?"flex":"block"})},{default:e.withCtx(()=>[Array.isArray(t.timezone)&&t.timezone.length?(e.openBlock(),e.createBlock(e.unref(g.Select),{key:0,value:e.unref(u),"onUpdate:value":a[0]||(a[0]=o=>e.isRef(u)?u.value=o:null),"default-active-first-option":"","dropdown-match-select-width":!1},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.timezone,o=>(e.openBlock(),e.createBlock(e.unref(g.SelectOption),{key:o?.value,value:o?.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o?.label??o?.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"])):e.createCommentVNode("",!0),e.createVNode(e.unref(g.DatePicker).RangePicker,e.mergeProps(O.value,{value:y.value,picker:M.value,format:D.value,"onUpdate:value":b,onChange:_,onOk:A,onOpenChange:R}),e.createSlots({_:2},[e.renderList(e.unref(r.omit)(n.$slots,"readModeSeparator"),(o,l)=>({name:l,fn:e.withCtx(c=>[e.renderSlot(n.$slots,l,e.normalizeProps(e.guardReactiveProps(c||{})))])}))]),1040,["value","picker","format"])]),_:3},8,["style"]))}});exports.default=H;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("lodash-unified"),y=require("../hooks/use-date-timezone.js"),u=require("@aplus-frontend/utils"),s=require("dayjs"),i=require("../date/constant.js"),B=e.defineComponent({name:"ApFieldDateRangeRead",__name:"read",props:{mode:{},class:{},style:{},id:{},defaultPickerValue:{},placeholder:{},disabled:{type:[Boolean,Array]},disabledTime:{},ranges:{},separator:{type:[Object,String,Number,Boolean,null,Array]},allowEmpty:{},onCalendarChange:{},onFocus:{},onBlur:{},onMousedown:{},onMouseup:{},onMouseenter:{},onMouseleave:{},onClick:{},direction:{},autocomplete:{},activePickerIndex:{},dateRender:{},panelRender:{},dropdownClassName:{},dropdownAlign:{},popupStyle:{},transitionName:{},allowClear:{type:Boolean},autofocus:{type:Boolean},tabindex:{},open:{type:Boolean},defaultOpen:{type:Boolean},inputReadOnly:{type:Boolean},suffixIcon:{type:[Object,String,Number,Boolean,null,Array]},clearIcon:{type:[Object,String,Number,Boolean,null,Array]},getPopupContainer:{},inputRender:{},onOpenChange:{},onContextmenu:{},onKeydown:{},role:{},name:{},picker:{},prefixCls:{},disabledDate:{},monthCellRender:{},locale:{},size:{},bordered:{type:Boolean},variant:{},showTime:{type:Boolean},showNow:{type:Boolean},order:{type:Boolean},defaultOpenValue:{},showHour:{type:Boolean},showMinute:{type:Boolean},showSecond:{type:Boolean},use12Hours:{type:Boolean},hourStep:{},minuteStep:{},secondStep:{},hideDisabledOptions:{type:Boolean},disabledHours:{},disabledMinutes:{},disabledSeconds:{},valueFormat:{},emptyText:{default:"--"},value:{},defaultValue:{},onChange:{},onOk:{},format:{default:"Y-D"},shownFormat:{},timezone:{},readModeSeparator:{},presets:{type:[Array,Boolean]}},setup(d){const o=d,{currentTimezone:a}=y.useDateTimezone(o),n=e.computed(()=>{const t=o.value;if(m.isNil(t)||!t?.length)return t;const l=a.value?u.getTimeFormatToZone(o.value[0],a.value):o.value?.[0],c=o.timezone?u.getTimeFormatToZone(o.value[1],a.value):o.value?.[1];return[s(l),s(c)]}),p=e.computed(()=>i.ApFieldDatePresetFormats.indexOf(o.format)>-1),r=e.computed(()=>p.value?i.PRESET_FORMAT_MAP[o.format]:o.format);return(t,l)=>n.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(n.value[0]?.format(r.value))+" ",1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.readModeSeparator))),e.createTextVNode(" "+e.toDisplayString(n.value[1]?.format(r.value)),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(t.emptyText),1)],64))}});exports.default=B;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("lodash-unified"),y=require("../hooks/use-date-timezone.js"),u=require("@aplus-frontend/utils"),s=require("dayjs"),i=require("../date/constant.js"),B=e.defineComponent({name:"ApFieldDateRangeRead",__name:"read",props:{mode:{},class:{},style:{},id:{},defaultPickerValue:{},placeholder:{},disabled:{type:[Boolean,Array]},disabledTime:{},ranges:{},separator:{type:[Object,String,Number,Boolean,null,Array]},allowEmpty:{},onCalendarChange:{},onFocus:{},onBlur:{},onMousedown:{},onMouseup:{},onMouseenter:{},onMouseleave:{},onClick:{},direction:{},autocomplete:{},activePickerIndex:{},dateRender:{},panelRender:{},dropdownClassName:{},dropdownAlign:{},popupStyle:{},transitionName:{},allowClear:{type:Boolean},autofocus:{type:Boolean},tabindex:{},open:{type:Boolean},defaultOpen:{type:Boolean},inputReadOnly:{type:Boolean},suffixIcon:{type:[Object,String,Number,Boolean,null,Array]},clearIcon:{type:[Object,String,Number,Boolean,null,Array]},getPopupContainer:{},inputRender:{},onOpenChange:{},onContextmenu:{},onKeydown:{},role:{},name:{},picker:{},prefixCls:{},disabledDate:{},showWeek:{type:Boolean},monthCellRender:{},locale:{},size:{},bordered:{type:Boolean},variant:{},showTime:{type:Boolean},showNow:{type:Boolean},order:{type:Boolean},defaultOpenValue:{},showHour:{type:Boolean},showMinute:{type:Boolean},showSecond:{type:Boolean},use12Hours:{type:Boolean},hourStep:{},minuteStep:{},secondStep:{},hideDisabledOptions:{type:Boolean},disabledHours:{},disabledMinutes:{},disabledSeconds:{},valueFormat:{},emptyText:{default:"--"},value:{},defaultValue:{},onChange:{},onOk:{},format:{default:"Y-D"},shownFormat:{},timezone:{},readModeSeparator:{},presets:{type:[Array,Boolean]}},setup(d){const o=d,{currentTimezone:a}=y.useDateTimezone(o),n=e.computed(()=>{const t=o.value;if(m.isNil(t)||!t?.length)return t;const l=a.value?u.getTimeFormatToZone(o.value[0],a.value):o.value?.[0],c=o.timezone?u.getTimeFormatToZone(o.value[1],a.value):o.value?.[1];return[s(l),s(c)]}),p=e.computed(()=>i.ApFieldDatePresetFormats.indexOf(o.format)>-1),r=e.computed(()=>p.value?i.PRESET_FORMAT_MAP[o.format]:o.format);return(t,l)=>n.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(n.value[0]?.format(r.value))+" ",1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.readModeSeparator))),e.createTextVNode(" "+e.toDisplayString(n.value[1]?.format(r.value)),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(t.emptyText),1)],64))}});exports.default=B;
|
|
@@ -33,7 +33,7 @@ export type FieldType = {
|
|
|
33
33
|
};
|
|
34
34
|
export declare const ApFieldRead: {
|
|
35
35
|
readonly Text: DefineComponent<ApFieldTextProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApFieldTextProps> & Readonly<{}>, {
|
|
36
|
-
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "
|
|
36
|
+
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
|
|
37
37
|
mode: FieldMode;
|
|
38
38
|
disabled: boolean;
|
|
39
39
|
bordered: boolean;
|
|
@@ -42,7 +42,7 @@ export declare const ApFieldRead: {
|
|
|
42
42
|
allowClear: boolean;
|
|
43
43
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
44
44
|
readonly TextArea: DefineComponent<ApFieldTextAreaProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApFieldTextAreaProps> & Readonly<{}>, {
|
|
45
|
-
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "
|
|
45
|
+
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
|
|
46
46
|
mode: FieldMode;
|
|
47
47
|
disabled: boolean;
|
|
48
48
|
bordered: boolean;
|
|
@@ -113,7 +113,7 @@ export declare const ApFieldRead: {
|
|
|
113
113
|
emptyText: string;
|
|
114
114
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
115
115
|
readonly Password: DefineComponent<ApFieldTextPasswordProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApFieldTextPasswordProps> & Readonly<{}>, {
|
|
116
|
-
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "
|
|
116
|
+
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
|
|
117
117
|
mode: FieldMode;
|
|
118
118
|
visible: boolean;
|
|
119
119
|
disabled: boolean;
|
|
@@ -27,7 +27,7 @@ declare const __VLS_component: DefineComponent<ApFieldTextProps, {
|
|
|
27
27
|
}, string, PublicProps, Readonly<ApFieldTextProps> & Readonly<{
|
|
28
28
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
29
29
|
}>, {
|
|
30
|
-
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "
|
|
30
|
+
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
|
|
31
31
|
mode: FieldMode;
|
|
32
32
|
disabled: boolean;
|
|
33
33
|
bordered: boolean;
|
|
@@ -26,7 +26,7 @@ declare const __VLS_component: DefineComponent<ApFieldTextPasswordProps, {
|
|
|
26
26
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
27
27
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
28
28
|
}>, {
|
|
29
|
-
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "
|
|
29
|
+
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
|
|
30
30
|
mode: FieldMode;
|
|
31
31
|
visible: boolean;
|
|
32
32
|
disabled: boolean;
|
|
@@ -2,7 +2,7 @@ import { ApFieldTextPasswordProps } from '../interface';
|
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
import { FieldMode } from '..';
|
|
4
4
|
declare const _default: DefineComponent<ApFieldTextPasswordProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFieldTextPasswordProps> & Readonly<{}>, {
|
|
5
|
-
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "
|
|
5
|
+
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
|
|
6
6
|
mode: FieldMode;
|
|
7
7
|
visible: boolean;
|
|
8
8
|
disabled: boolean;
|
|
@@ -2,7 +2,7 @@ import { ApFieldTextProps } from '../interface';
|
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
import { FieldMode } from '..';
|
|
4
4
|
declare const _default: DefineComponent<ApFieldTextProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFieldTextProps> & Readonly<{}>, {
|
|
5
|
-
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "
|
|
5
|
+
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
|
|
6
6
|
mode: FieldMode;
|
|
7
7
|
disabled: boolean;
|
|
8
8
|
bordered: boolean;
|
|
@@ -17,7 +17,7 @@ declare const _default: DefineComponent<ApFieldTextAreaProps, {
|
|
|
17
17
|
}, string, PublicProps, Readonly<ApFieldTextAreaProps> & Readonly<{
|
|
18
18
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
19
19
|
}>, {
|
|
20
|
-
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "
|
|
20
|
+
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
|
|
21
21
|
mode: FieldMode;
|
|
22
22
|
disabled: boolean;
|
|
23
23
|
bordered: boolean;
|
|
@@ -2,7 +2,7 @@ import { ApFieldTextAreaProps } from '../interface';
|
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
import { FieldMode } from '..';
|
|
4
4
|
declare const _default: DefineComponent<ApFieldTextAreaProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFieldTextAreaProps> & Readonly<{}>, {
|
|
5
|
-
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "
|
|
5
|
+
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
|
|
6
6
|
mode: FieldMode;
|
|
7
7
|
disabled: boolean;
|
|
8
8
|
bordered: boolean;
|
|
@@ -680,9 +680,9 @@ declare const __VLS_component: DefineComponent<ApFormProps, {
|
|
|
680
680
|
layout: string;
|
|
681
681
|
colon: boolean;
|
|
682
682
|
labelAlign: FormLabelAlign;
|
|
683
|
-
validateTrigger: string | string[];
|
|
684
683
|
hideRequiredMark: boolean;
|
|
685
684
|
validateOnRuleChange: boolean;
|
|
685
|
+
validateTrigger: string | string[];
|
|
686
686
|
syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
|
|
687
687
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
688
688
|
formRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
@@ -2,8 +2,8 @@ import { ApFormDrawerFormProps, CustomizeResizeType } from '../interface';
|
|
|
2
2
|
import { VNode, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, CSSProperties } from 'vue';
|
|
3
3
|
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
|
|
4
4
|
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
5
|
-
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
6
5
|
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
6
|
+
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
7
7
|
import { Options } from '../../../node_modules/scroll-into-view-if-needed';
|
|
8
8
|
import { Recordable } from '../../type';
|
|
9
9
|
import { VueTypeDef, VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
@@ -31,7 +31,6 @@ declare function __VLS_template(): {
|
|
|
31
31
|
readonly onSubmit?: ((e: Event) => void) | undefined;
|
|
32
32
|
readonly layout?: string | undefined;
|
|
33
33
|
readonly disabled?: boolean | undefined;
|
|
34
|
-
readonly prefixCls?: string | undefined;
|
|
35
34
|
readonly labelCol?: (Partial< ExtractPropTypes<{
|
|
36
35
|
span: (StringConstructor | NumberConstructor)[];
|
|
37
36
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -100,17 +99,18 @@ declare function __VLS_template(): {
|
|
|
100
99
|
}>> & HTMLAttributes) | undefined;
|
|
101
100
|
readonly colon?: boolean | undefined;
|
|
102
101
|
readonly labelAlign?: FormLabelAlign | undefined;
|
|
103
|
-
readonly name?: string | undefined;
|
|
104
|
-
readonly rules?: {
|
|
105
|
-
[k: string]: RuleObject | RuleObject[];
|
|
106
|
-
} | undefined;
|
|
107
|
-
readonly validateTrigger?: string | string[] | undefined;
|
|
108
102
|
readonly labelWrap?: boolean | undefined;
|
|
103
|
+
readonly prefixCls?: string | undefined;
|
|
109
104
|
readonly requiredMark?: "" | RequiredMark | undefined;
|
|
110
105
|
readonly hideRequiredMark?: boolean | undefined;
|
|
106
|
+
readonly rules?: {
|
|
107
|
+
[k: string]: RuleObject | RuleObject[];
|
|
108
|
+
} | undefined;
|
|
111
109
|
readonly validateMessages?: ValidateMessages | undefined;
|
|
112
110
|
readonly validateOnRuleChange?: boolean | undefined;
|
|
113
111
|
readonly scrollToFirstError?: boolean | Options<any> | undefined;
|
|
112
|
+
readonly name?: string | undefined;
|
|
113
|
+
readonly validateTrigger?: string | string[] | undefined;
|
|
114
114
|
readonly onFieldsChange?: ((changedFields: FieldData[], allFields: FieldData[]) => void) | undefined;
|
|
115
115
|
readonly onFinish?: ((values: any) => void) | undefined;
|
|
116
116
|
readonly onFinishFailed?: ((errorInfo: ValidateErrorEntity<any>) => void) | undefined;
|
|
@@ -797,9 +797,9 @@ declare function __VLS_template(): {
|
|
|
797
797
|
layout: string;
|
|
798
798
|
colon: boolean;
|
|
799
799
|
labelAlign: FormLabelAlign;
|
|
800
|
-
validateTrigger: string | string[];
|
|
801
800
|
hideRequiredMark: boolean;
|
|
802
801
|
validateOnRuleChange: boolean;
|
|
802
|
+
validateTrigger: string | string[];
|
|
803
803
|
syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
|
|
804
804
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
805
805
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -825,11 +825,11 @@ declare function __VLS_template(): {
|
|
|
825
825
|
layout: string;
|
|
826
826
|
colon: boolean;
|
|
827
827
|
labelAlign: FormLabelAlign;
|
|
828
|
-
validateTrigger: string | string[];
|
|
829
828
|
hideRequiredMark: boolean;
|
|
830
829
|
validateOnRuleChange: boolean;
|
|
830
|
+
validateTrigger: string | string[];
|
|
831
831
|
syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
|
|
832
|
-
}> & Omit<Readonly< ApFormProps> & Readonly<{}>, "validate" | "registerWatch" | "setFieldsValue" | "setFieldValue" | "resetFields" | "clearValidate" | "validateFields" | "getFieldsValue" | "scrollToField" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | ("layout" | "colon" | "labelAlign" | "
|
|
832
|
+
}> & Omit<Readonly< ApFormProps> & Readonly<{}>, "validate" | "registerWatch" | "setFieldsValue" | "setFieldValue" | "resetFields" | "clearValidate" | "validateFields" | "getFieldsValue" | "scrollToField" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | ("layout" | "colon" | "labelAlign" | "hideRequiredMark" | "validateOnRuleChange" | "validateTrigger" | "syncToUrl")> & ShallowUnwrapRef<{
|
|
833
833
|
setFieldsValue: (fields: Partial<any>) => void;
|
|
834
834
|
setFieldValue: (name: NamePath, value: any, triggerChange?: boolean, optimizeFn?: UpdateModelOptimizeFn) => void;
|
|
835
835
|
resetFields: () => Promise<void>;
|
|
@@ -874,9 +874,9 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
|
|
|
874
874
|
open: boolean;
|
|
875
875
|
colon: boolean;
|
|
876
876
|
labelAlign: FormLabelAlign;
|
|
877
|
-
validateTrigger: string | string[];
|
|
878
877
|
hideRequiredMark: boolean;
|
|
879
878
|
validateOnRuleChange: boolean;
|
|
879
|
+
validateTrigger: string | string[];
|
|
880
880
|
submitter: false | ApFormSubmitterConfig;
|
|
881
881
|
showCancel: boolean;
|
|
882
882
|
drawerProps: Omit<Partial< ExtractPropTypes<{
|
|
@@ -990,7 +990,6 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
|
|
|
990
990
|
readonly onSubmit?: ((e: Event) => void) | undefined;
|
|
991
991
|
readonly layout?: string | undefined;
|
|
992
992
|
readonly disabled?: boolean | undefined;
|
|
993
|
-
readonly prefixCls?: string | undefined;
|
|
994
993
|
readonly labelCol?: (Partial< ExtractPropTypes<{
|
|
995
994
|
span: (StringConstructor | NumberConstructor)[];
|
|
996
995
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -1059,17 +1058,18 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
|
|
|
1059
1058
|
}>> & HTMLAttributes) | undefined;
|
|
1060
1059
|
readonly colon?: boolean | undefined;
|
|
1061
1060
|
readonly labelAlign?: FormLabelAlign | undefined;
|
|
1062
|
-
readonly name?: string | undefined;
|
|
1063
|
-
readonly rules?: {
|
|
1064
|
-
[k: string]: RuleObject | RuleObject[];
|
|
1065
|
-
} | undefined;
|
|
1066
|
-
readonly validateTrigger?: string | string[] | undefined;
|
|
1067
1061
|
readonly labelWrap?: boolean | undefined;
|
|
1062
|
+
readonly prefixCls?: string | undefined;
|
|
1068
1063
|
readonly requiredMark?: "" | RequiredMark | undefined;
|
|
1069
1064
|
readonly hideRequiredMark?: boolean | undefined;
|
|
1065
|
+
readonly rules?: {
|
|
1066
|
+
[k: string]: RuleObject | RuleObject[];
|
|
1067
|
+
} | undefined;
|
|
1070
1068
|
readonly validateMessages?: ValidateMessages | undefined;
|
|
1071
1069
|
readonly validateOnRuleChange?: boolean | undefined;
|
|
1072
1070
|
readonly scrollToFirstError?: boolean | Options<any> | undefined;
|
|
1071
|
+
readonly name?: string | undefined;
|
|
1072
|
+
readonly validateTrigger?: string | string[] | undefined;
|
|
1073
1073
|
readonly onFieldsChange?: ((changedFields: FieldData[], allFields: FieldData[]) => void) | undefined;
|
|
1074
1074
|
readonly onFinish?: ((values: any) => void) | undefined;
|
|
1075
1075
|
readonly onFinishFailed?: ((errorInfo: ValidateErrorEntity<any>) => void) | undefined;
|
|
@@ -1756,9 +1756,9 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
|
|
|
1756
1756
|
layout: string;
|
|
1757
1757
|
colon: boolean;
|
|
1758
1758
|
labelAlign: FormLabelAlign;
|
|
1759
|
-
validateTrigger: string | string[];
|
|
1760
1759
|
hideRequiredMark: boolean;
|
|
1761
1760
|
validateOnRuleChange: boolean;
|
|
1761
|
+
validateTrigger: string | string[];
|
|
1762
1762
|
syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
|
|
1763
1763
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
1764
1764
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -1784,11 +1784,11 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
|
|
|
1784
1784
|
layout: string;
|
|
1785
1785
|
colon: boolean;
|
|
1786
1786
|
labelAlign: FormLabelAlign;
|
|
1787
|
-
validateTrigger: string | string[];
|
|
1788
1787
|
hideRequiredMark: boolean;
|
|
1789
1788
|
validateOnRuleChange: boolean;
|
|
1789
|
+
validateTrigger: string | string[];
|
|
1790
1790
|
syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
|
|
1791
|
-
}> & Omit<Readonly< ApFormProps> & Readonly<{}>, "validate" | "registerWatch" | "setFieldsValue" | "setFieldValue" | "resetFields" | "clearValidate" | "validateFields" | "getFieldsValue" | "scrollToField" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | ("layout" | "colon" | "labelAlign" | "
|
|
1791
|
+
}> & Omit<Readonly< ApFormProps> & Readonly<{}>, "validate" | "registerWatch" | "setFieldsValue" | "setFieldValue" | "resetFields" | "clearValidate" | "validateFields" | "getFieldsValue" | "scrollToField" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | ("layout" | "colon" | "labelAlign" | "hideRequiredMark" | "validateOnRuleChange" | "validateTrigger" | "syncToUrl")> & ShallowUnwrapRef<{
|
|
1792
1792
|
setFieldsValue: (fields: Partial<any>) => void;
|
|
1793
1793
|
setFieldValue: (name: NamePath, value: any, triggerChange?: boolean, optimizeFn?: UpdateModelOptimizeFn) => void;
|
|
1794
1794
|
resetFields: () => Promise<void>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ButtonProps, ColProps, DrawerProps, FormItemProps, FormProps, ModalProps, RowProps } from '@aplus-frontend/antdv';
|
|
2
2
|
import { FormItemExpose } from '@aplus-frontend/antdv/es/form/FormItem';
|
|
3
3
|
import { InternalNamePath, NamePath, ValidateOptions } from '@aplus-frontend/antdv/es/form/interface';
|
|
4
|
-
import { Recordable } from '../type';
|
|
4
|
+
import { LiteralUnion, Recordable } from '../type';
|
|
5
5
|
import { VNode } from 'vue';
|
|
6
|
+
import { BreakPointType } from './search-form/hooks/use-count-per-row';
|
|
6
7
|
export type { ApFormChangeInfo, ApFormFinishInfo } from './provider/interface';
|
|
7
8
|
export type ApFormColProps = Omit<ColProps, 'prefixCls'>;
|
|
8
9
|
export type ApFormItemTransformFn = (value: any) => any;
|
|
@@ -147,6 +148,10 @@ export type ApFormItemExpose = FormItemExpose & {
|
|
|
147
148
|
*/
|
|
148
149
|
getFieldValue: (shouldFormat?: boolean) => any;
|
|
149
150
|
};
|
|
151
|
+
export type SearchFormResizeConfig = {
|
|
152
|
+
target?: LiteralUnion<'document' | 'form', string>;
|
|
153
|
+
breakPoint?: BreakPointType;
|
|
154
|
+
};
|
|
150
155
|
export type ApFormListProps = {
|
|
151
156
|
name: FormItemProps['name'];
|
|
152
157
|
/**
|
|
@@ -178,8 +183,14 @@ export type ApFormSearchFormProps = ApFormProps & {
|
|
|
178
183
|
sortable?: boolean;
|
|
179
184
|
/**
|
|
180
185
|
* 尺寸监听目标元素(用于响应式)
|
|
186
|
+
* @deprecated use `resize` instead.
|
|
181
187
|
*/
|
|
182
188
|
resizeTarget?: HTMLElement | null;
|
|
189
|
+
/**
|
|
190
|
+
* 尺寸变化配置项
|
|
191
|
+
* @since 6.35.3
|
|
192
|
+
*/
|
|
193
|
+
resize?: SearchFormResizeConfig;
|
|
183
194
|
/**
|
|
184
195
|
* 查询按钮loading延迟(默认300ms)
|
|
185
196
|
*/
|
|
@@ -29,9 +29,6 @@ declare function __VLS_template(): {
|
|
|
29
29
|
readonly label?: any;
|
|
30
30
|
readonly help?: any;
|
|
31
31
|
readonly tooltip?: string | undefined;
|
|
32
|
-
readonly prefixCls?: string | undefined;
|
|
33
|
-
readonly htmlFor?: string | undefined;
|
|
34
|
-
readonly extra?: any;
|
|
35
32
|
readonly labelCol?: (Partial< ExtractPropTypes<{
|
|
36
33
|
span: (StringConstructor | NumberConstructor)[];
|
|
37
34
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -100,15 +97,18 @@ declare function __VLS_template(): {
|
|
|
100
97
|
}>> & HTMLAttributes) | undefined;
|
|
101
98
|
readonly colon?: boolean | undefined;
|
|
102
99
|
readonly labelAlign?: FormLabelAlign | undefined;
|
|
103
|
-
readonly
|
|
104
|
-
readonly name?: string | number | (string | number)[] | undefined;
|
|
100
|
+
readonly prefixCls?: string | undefined;
|
|
105
101
|
readonly rules?: RuleObject | RuleObject[] | undefined;
|
|
102
|
+
readonly name?: string | number | (string | number)[] | undefined;
|
|
103
|
+
readonly validateTrigger?: string | string[] | undefined;
|
|
106
104
|
readonly required?: boolean | undefined;
|
|
105
|
+
readonly htmlFor?: string | undefined;
|
|
106
|
+
readonly extra?: any;
|
|
107
|
+
readonly prop?: string | number | (string | number)[] | undefined;
|
|
107
108
|
readonly validateFirst?: boolean | undefined;
|
|
108
109
|
readonly validateStatus?: string | undefined;
|
|
109
|
-
readonly validateTrigger?: string | string[] | undefined;
|
|
110
110
|
readonly messageVariables?: Record<string, string> | undefined;
|
|
111
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "hidden" | "
|
|
111
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "hidden" | "colon" | "required" | "hasFeedback" | "autoLink" | "validateFirst" | "noStyle">;
|
|
112
112
|
$attrs: {
|
|
113
113
|
[x: string]: unknown;
|
|
114
114
|
};
|
|
@@ -397,7 +397,7 @@ declare function __VLS_template(): {
|
|
|
397
397
|
hidden: BooleanConstructor;
|
|
398
398
|
noStyle: BooleanConstructor;
|
|
399
399
|
tooltip: StringConstructor;
|
|
400
|
-
}>> & Readonly<{}>, "hidden" | "
|
|
400
|
+
}>> & Readonly<{}>, "hidden" | "colon" | "required" | "hasFeedback" | "autoLink" | "validateFirst" | "noStyle"> & ShallowUnwrapRef<() => any> & {} & ComponentCustomProperties & {} & {
|
|
401
401
|
$: ComponentInternalInstance;
|
|
402
402
|
$data: {};
|
|
403
403
|
$props: Partial<{
|
|
@@ -416,9 +416,6 @@ declare function __VLS_template(): {
|
|
|
416
416
|
readonly label?: any;
|
|
417
417
|
readonly help?: any;
|
|
418
418
|
readonly tooltip?: string | undefined;
|
|
419
|
-
readonly prefixCls?: string | undefined;
|
|
420
|
-
readonly htmlFor?: string | undefined;
|
|
421
|
-
readonly extra?: any;
|
|
422
419
|
readonly labelCol?: (Partial< ExtractPropTypes<{
|
|
423
420
|
span: (StringConstructor | NumberConstructor)[];
|
|
424
421
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -487,15 +484,18 @@ declare function __VLS_template(): {
|
|
|
487
484
|
}>> & HTMLAttributes) | undefined;
|
|
488
485
|
readonly colon?: boolean | undefined;
|
|
489
486
|
readonly labelAlign?: FormLabelAlign | undefined;
|
|
490
|
-
readonly
|
|
491
|
-
readonly name?: string | number | (string | number)[] | undefined;
|
|
487
|
+
readonly prefixCls?: string | undefined;
|
|
492
488
|
readonly rules?: RuleObject | RuleObject[] | undefined;
|
|
489
|
+
readonly name?: string | number | (string | number)[] | undefined;
|
|
490
|
+
readonly validateTrigger?: string | string[] | undefined;
|
|
493
491
|
readonly required?: boolean | undefined;
|
|
492
|
+
readonly htmlFor?: string | undefined;
|
|
493
|
+
readonly extra?: any;
|
|
494
|
+
readonly prop?: string | number | (string | number)[] | undefined;
|
|
494
495
|
readonly validateFirst?: boolean | undefined;
|
|
495
496
|
readonly validateStatus?: string | undefined;
|
|
496
|
-
readonly validateTrigger?: string | string[] | undefined;
|
|
497
497
|
readonly messageVariables?: Record<string, string> | undefined;
|
|
498
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "hidden" | "
|
|
498
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "hidden" | "colon" | "required" | "hasFeedback" | "autoLink" | "validateFirst" | "noStyle">;
|
|
499
499
|
$attrs: {
|
|
500
500
|
[x: string]: unknown;
|
|
501
501
|
};
|
|
@@ -784,7 +784,7 @@ declare function __VLS_template(): {
|
|
|
784
784
|
hidden: BooleanConstructor;
|
|
785
785
|
noStyle: BooleanConstructor;
|
|
786
786
|
tooltip: StringConstructor;
|
|
787
|
-
}>> & Readonly<{}>, "hidden" | "
|
|
787
|
+
}>> & Readonly<{}>, "hidden" | "colon" | "required" | "hasFeedback" | "autoLink" | "validateFirst" | "noStyle"> & ShallowUnwrapRef<() => any>) | null;
|
|
788
788
|
};
|
|
789
789
|
rootEl: any;
|
|
790
790
|
};
|
|
@@ -796,10 +796,10 @@ declare const __VLS_component: DefineComponent<ApFormItemProps, {
|
|
|
796
796
|
resetField: () => void;
|
|
797
797
|
getFieldValue: (shouldFormat?: boolean) => any;
|
|
798
798
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemProps> & Readonly<{}>, {
|
|
799
|
-
hasFeedback: boolean;
|
|
800
799
|
colon: boolean;
|
|
801
|
-
autoLink: boolean;
|
|
802
800
|
required: boolean;
|
|
801
|
+
hasFeedback: boolean;
|
|
802
|
+
autoLink: boolean;
|
|
803
803
|
validateFirst: boolean;
|
|
804
804
|
bordered: boolean;
|
|
805
805
|
valuePropName: string;
|
|
@@ -823,9 +823,6 @@ declare const __VLS_component: DefineComponent<ApFormItemProps, {
|
|
|
823
823
|
readonly label?: any;
|
|
824
824
|
readonly help?: any;
|
|
825
825
|
readonly tooltip?: string | undefined;
|
|
826
|
-
readonly prefixCls?: string | undefined;
|
|
827
|
-
readonly htmlFor?: string | undefined;
|
|
828
|
-
readonly extra?: any;
|
|
829
826
|
readonly labelCol?: (Partial< ExtractPropTypes<{
|
|
830
827
|
span: (StringConstructor | NumberConstructor)[];
|
|
831
828
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -894,15 +891,18 @@ declare const __VLS_component: DefineComponent<ApFormItemProps, {
|
|
|
894
891
|
}>> & HTMLAttributes) | undefined;
|
|
895
892
|
readonly colon?: boolean | undefined;
|
|
896
893
|
readonly labelAlign?: FormLabelAlign | undefined;
|
|
897
|
-
readonly
|
|
898
|
-
readonly name?: string | number | (string | number)[] | undefined;
|
|
894
|
+
readonly prefixCls?: string | undefined;
|
|
899
895
|
readonly rules?: RuleObject | RuleObject[] | undefined;
|
|
896
|
+
readonly name?: string | number | (string | number)[] | undefined;
|
|
897
|
+
readonly validateTrigger?: string | string[] | undefined;
|
|
900
898
|
readonly required?: boolean | undefined;
|
|
899
|
+
readonly htmlFor?: string | undefined;
|
|
900
|
+
readonly extra?: any;
|
|
901
|
+
readonly prop?: string | number | (string | number)[] | undefined;
|
|
901
902
|
readonly validateFirst?: boolean | undefined;
|
|
902
903
|
readonly validateStatus?: string | undefined;
|
|
903
|
-
readonly validateTrigger?: string | string[] | undefined;
|
|
904
904
|
readonly messageVariables?: Record<string, string> | undefined;
|
|
905
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "hidden" | "
|
|
905
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "hidden" | "colon" | "required" | "hasFeedback" | "autoLink" | "validateFirst" | "noStyle">;
|
|
906
906
|
$attrs: {
|
|
907
907
|
[x: string]: unknown;
|
|
908
908
|
};
|
|
@@ -1191,7 +1191,7 @@ declare const __VLS_component: DefineComponent<ApFormItemProps, {
|
|
|
1191
1191
|
hidden: BooleanConstructor;
|
|
1192
1192
|
noStyle: BooleanConstructor;
|
|
1193
1193
|
tooltip: StringConstructor;
|
|
1194
|
-
}>> & Readonly<{}>, "hidden" | "
|
|
1194
|
+
}>> & Readonly<{}>, "hidden" | "colon" | "required" | "hasFeedback" | "autoLink" | "validateFirst" | "noStyle"> & ShallowUnwrapRef<() => any> & {} & ComponentCustomProperties & {} & {
|
|
1195
1195
|
$: ComponentInternalInstance;
|
|
1196
1196
|
$data: {};
|
|
1197
1197
|
$props: Partial<{
|
|
@@ -1210,9 +1210,6 @@ declare const __VLS_component: DefineComponent<ApFormItemProps, {
|
|
|
1210
1210
|
readonly label?: any;
|
|
1211
1211
|
readonly help?: any;
|
|
1212
1212
|
readonly tooltip?: string | undefined;
|
|
1213
|
-
readonly prefixCls?: string | undefined;
|
|
1214
|
-
readonly htmlFor?: string | undefined;
|
|
1215
|
-
readonly extra?: any;
|
|
1216
1213
|
readonly labelCol?: (Partial< ExtractPropTypes<{
|
|
1217
1214
|
span: (StringConstructor | NumberConstructor)[];
|
|
1218
1215
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -1281,15 +1278,18 @@ declare const __VLS_component: DefineComponent<ApFormItemProps, {
|
|
|
1281
1278
|
}>> & HTMLAttributes) | undefined;
|
|
1282
1279
|
readonly colon?: boolean | undefined;
|
|
1283
1280
|
readonly labelAlign?: FormLabelAlign | undefined;
|
|
1284
|
-
readonly
|
|
1285
|
-
readonly name?: string | number | (string | number)[] | undefined;
|
|
1281
|
+
readonly prefixCls?: string | undefined;
|
|
1286
1282
|
readonly rules?: RuleObject | RuleObject[] | undefined;
|
|
1283
|
+
readonly name?: string | number | (string | number)[] | undefined;
|
|
1284
|
+
readonly validateTrigger?: string | string[] | undefined;
|
|
1287
1285
|
readonly required?: boolean | undefined;
|
|
1286
|
+
readonly htmlFor?: string | undefined;
|
|
1287
|
+
readonly extra?: any;
|
|
1288
|
+
readonly prop?: string | number | (string | number)[] | undefined;
|
|
1288
1289
|
readonly validateFirst?: boolean | undefined;
|
|
1289
1290
|
readonly validateStatus?: string | undefined;
|
|
1290
|
-
readonly validateTrigger?: string | string[] | undefined;
|
|
1291
1291
|
readonly messageVariables?: Record<string, string> | undefined;
|
|
1292
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "hidden" | "
|
|
1292
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "hidden" | "colon" | "required" | "hasFeedback" | "autoLink" | "validateFirst" | "noStyle">;
|
|
1293
1293
|
$attrs: {
|
|
1294
1294
|
[x: string]: unknown;
|
|
1295
1295
|
};
|
|
@@ -1578,7 +1578,7 @@ declare const __VLS_component: DefineComponent<ApFormItemProps, {
|
|
|
1578
1578
|
hidden: BooleanConstructor;
|
|
1579
1579
|
noStyle: BooleanConstructor;
|
|
1580
1580
|
tooltip: StringConstructor;
|
|
1581
|
-
}>> & Readonly<{}>, "hidden" | "
|
|
1581
|
+
}>> & Readonly<{}>, "hidden" | "colon" | "required" | "hasFeedback" | "autoLink" | "validateFirst" | "noStyle"> & ShallowUnwrapRef<() => any>) | null;
|
|
1582
1582
|
}, any>;
|
|
1583
1583
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
1584
1584
|
export default _default;
|
|
@@ -12,10 +12,10 @@ declare function __VLS_template(): {
|
|
|
12
12
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
13
|
declare const __VLS_component: DefineComponent<ApFormItemCheckboxProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemCheckboxProps> & Readonly<{}>, {
|
|
14
14
|
disabled: boolean;
|
|
15
|
-
hasFeedback: boolean;
|
|
16
15
|
colon: boolean;
|
|
17
|
-
autoLink: boolean;
|
|
18
16
|
required: boolean;
|
|
17
|
+
hasFeedback: boolean;
|
|
18
|
+
autoLink: boolean;
|
|
19
19
|
validateFirst: boolean;
|
|
20
20
|
field: Omit< ApFieldCheckboxProps, "value" | "onUpdate:value">;
|
|
21
21
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
@@ -35,10 +35,10 @@ declare function __VLS_template(): {
|
|
|
35
35
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
36
36
|
declare const __VLS_component: DefineComponent<ApFormItemDateProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemDateProps> & Readonly<{}>, {
|
|
37
37
|
disabled: boolean;
|
|
38
|
-
hasFeedback: boolean;
|
|
39
38
|
colon: boolean;
|
|
40
|
-
autoLink: boolean;
|
|
41
39
|
required: boolean;
|
|
40
|
+
hasFeedback: boolean;
|
|
41
|
+
autoLink: boolean;
|
|
42
42
|
validateFirst: boolean;
|
|
43
43
|
field: Omit< ApFieldDateProps, "value" | "onUpdate:value">;
|
|
44
44
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
@@ -33,10 +33,10 @@ declare function __VLS_template(): {
|
|
|
33
33
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
34
34
|
declare const __VLS_component: DefineComponent<ApFormItemDateRangeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemDateRangeProps> & Readonly<{}>, {
|
|
35
35
|
disabled: boolean;
|
|
36
|
-
hasFeedback: boolean;
|
|
37
36
|
colon: boolean;
|
|
38
|
-
autoLink: boolean;
|
|
39
37
|
required: boolean;
|
|
38
|
+
hasFeedback: boolean;
|
|
39
|
+
autoLink: boolean;
|
|
40
40
|
validateFirst: boolean;
|
|
41
41
|
field: Omit< ApFieldDateRangeProps, "value" | "onUpdate:value">;
|
|
42
42
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
@@ -514,10 +514,10 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
|
|
|
514
514
|
blur: () => void;
|
|
515
515
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemNumberProps> & Readonly<{}>, {
|
|
516
516
|
disabled: boolean;
|
|
517
|
-
hasFeedback: boolean;
|
|
518
517
|
colon: boolean;
|
|
519
|
-
autoLink: boolean;
|
|
520
518
|
required: boolean;
|
|
519
|
+
hasFeedback: boolean;
|
|
520
|
+
autoLink: boolean;
|
|
521
521
|
validateFirst: boolean;
|
|
522
522
|
field: Omit< ApFieldNumberProps, "value" | "onUpdate:value">;
|
|
523
523
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
@@ -146,10 +146,10 @@ declare const __VLS_component: DefineComponent<ApFormItemRadioProps, {
|
|
|
146
146
|
blur: () => void;
|
|
147
147
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemRadioProps> & Readonly<{}>, {
|
|
148
148
|
disabled: boolean;
|
|
149
|
-
hasFeedback: boolean;
|
|
150
149
|
colon: boolean;
|
|
151
|
-
autoLink: boolean;
|
|
152
150
|
required: boolean;
|
|
151
|
+
hasFeedback: boolean;
|
|
152
|
+
autoLink: boolean;
|
|
153
153
|
validateFirst: boolean;
|
|
154
154
|
field: Omit< ApFieldRadioProps, "value" | "onUpdate:value">;
|
|
155
155
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
@@ -684,10 +684,10 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
|
|
|
684
684
|
request: () => void;
|
|
685
685
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemSelectProps> & Readonly<{}>, {
|
|
686
686
|
disabled: boolean;
|
|
687
|
-
hasFeedback: boolean;
|
|
688
687
|
colon: boolean;
|
|
689
|
-
autoLink: boolean;
|
|
690
688
|
required: boolean;
|
|
689
|
+
hasFeedback: boolean;
|
|
690
|
+
autoLink: boolean;
|
|
691
691
|
validateFirst: boolean;
|
|
692
692
|
field: Omit< ApFieldSelectProps, "value" | "onUpdate:value">;
|
|
693
693
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
@@ -19,10 +19,10 @@ declare function __VLS_template(): {
|
|
|
19
19
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
20
|
declare const __VLS_component: DefineComponent<ApFormItemSwitchProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemSwitchProps> & Readonly<{}>, {
|
|
21
21
|
disabled: boolean;
|
|
22
|
-
hasFeedback: boolean;
|
|
23
22
|
colon: boolean;
|
|
24
|
-
autoLink: boolean;
|
|
25
23
|
required: boolean;
|
|
24
|
+
hasFeedback: boolean;
|
|
25
|
+
autoLink: boolean;
|
|
26
26
|
validateFirst: boolean;
|
|
27
27
|
valuePropName: string;
|
|
28
28
|
field: Omit< ApFieldSwitchProps, "checked" | "onUpdate:checked">;
|