@aplus-frontend/ui 6.26.4 → 6.27.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.
Files changed (102) hide show
  1. package/es/src/ag-grid/hooks/use-columns-def.d.ts +2 -2
  2. package/es/src/ag-grid/hooks/use-columns-def.mjs +29 -29
  3. package/es/src/ag-grid/hooks/use-columns.d.ts +1 -1
  4. package/es/src/ag-grid/hooks/use-columns.mjs +8 -8
  5. package/es/src/ag-grid/hooks/use-pinned-row.d.ts +7 -0
  6. package/es/src/ag-grid/hooks/use-pinned-row.mjs +32 -0
  7. package/es/src/ag-grid/hooks/use-virtual-config.d.ts +5 -0
  8. package/es/src/ag-grid/hooks/use-virtual-config.mjs +25 -0
  9. package/es/src/ag-grid/index.vue.mjs +274 -232
  10. package/es/src/ag-grid/interface.d.ts +25 -2
  11. package/es/src/ap-field/select/index.vue.d.ts +51 -21
  12. package/es/src/ap-field/select/index.vue.mjs +51 -49
  13. package/es/src/ap-field/select/read.vue2.mjs +4 -1
  14. package/es/src/ap-field/tree-select/index.vue.d.ts +29 -21
  15. package/es/src/ap-field/tree-select/index.vue.mjs +11 -9
  16. package/es/src/ap-field/tree-select/read.vue2.mjs +7 -5
  17. package/es/src/ap-form/ap-form.vue.d.ts +20 -0
  18. package/es/src/ap-form/ap-form.vue2.mjs +11 -10
  19. package/es/src/ap-form/drawer-form/index.vue.d.ts +22 -0
  20. package/es/src/ap-form/drawer-form/index.vue.mjs +1 -0
  21. package/es/src/ap-form/hooks/use-watch.mjs +25 -28
  22. package/es/src/ap-form/interface.d.ts +1 -1
  23. package/es/src/ap-form/items/select/index.vue.d.ts +64 -28
  24. package/es/src/ap-form/items/tree-select/index.vue.d.ts +40 -28
  25. package/es/src/ap-form/modal-form/index.vue.d.ts +22 -0
  26. package/es/src/ap-form/modal-form/index.vue.mjs +31 -30
  27. package/es/src/ap-form/search-form/index.vue.d.ts +24 -2
  28. package/es/src/ap-form/search-form/index.vue.mjs +72 -68
  29. package/es/src/ap-table/constants.d.ts +52 -28
  30. package/es/src/ap-upload/apUpload.vue.d.ts +9 -0
  31. package/es/src/ap-upload/apUpload.vue.mjs +38 -34
  32. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +59 -59
  33. package/es/src/ap-upload/components/Picture.vue2.mjs +74 -74
  34. package/es/src/ap-upload/components/SingleFile.vue2.mjs +95 -95
  35. package/es/src/business/ap-value-select-card/index.vue2.mjs +120 -123
  36. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +11 -0
  37. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +11 -0
  38. package/es/src/business/hooks/usePageListAgGrid.d.ts +1 -1
  39. package/es/src/business/hooks/usePageListAgGrid.mjs +4 -4
  40. package/es/src/business/hooks/usePageListApGrid.mjs +14 -14
  41. package/es/src/config-provider/config-provider-props.d.ts +14 -1
  42. package/es/src/config-provider/config-provider.d.ts +31 -1
  43. package/es/src/config-provider/hooks/use-global-config.d.ts +14 -1
  44. package/es/src/config-provider/index.d.ts +52 -1
  45. package/es/src/utils/config-provider-preset.d.ts +11 -1
  46. package/es/src/version.d.ts +1 -1
  47. package/es/src/version.mjs +1 -1
  48. package/es/src/work-order-modal/work-order-modal.vue.d.ts +11 -0
  49. package/lib/src/ag-grid/hooks/use-columns-def.d.ts +2 -2
  50. package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
  51. package/lib/src/ag-grid/hooks/use-columns.d.ts +1 -1
  52. package/lib/src/ag-grid/hooks/use-columns.js +1 -1
  53. package/lib/src/ag-grid/hooks/use-pinned-row.d.ts +7 -0
  54. package/lib/src/ag-grid/hooks/use-pinned-row.js +1 -0
  55. package/lib/src/ag-grid/hooks/use-virtual-config.d.ts +5 -0
  56. package/lib/src/ag-grid/hooks/use-virtual-config.js +1 -0
  57. package/lib/src/ag-grid/index.vue.js +1 -1
  58. package/lib/src/ag-grid/interface.d.ts +25 -2
  59. package/lib/src/ap-field/select/index.vue.d.ts +51 -21
  60. package/lib/src/ap-field/select/index.vue.js +1 -1
  61. package/lib/src/ap-field/select/read.vue2.js +1 -1
  62. package/lib/src/ap-field/tree-select/index.vue.d.ts +29 -21
  63. package/lib/src/ap-field/tree-select/index.vue.js +1 -1
  64. package/lib/src/ap-field/tree-select/read.vue2.js +1 -1
  65. package/lib/src/ap-form/ap-form.vue.d.ts +20 -0
  66. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  67. package/lib/src/ap-form/drawer-form/index.vue.d.ts +22 -0
  68. package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
  69. package/lib/src/ap-form/hooks/use-watch.js +1 -1
  70. package/lib/src/ap-form/interface.d.ts +1 -1
  71. package/lib/src/ap-form/items/select/index.vue.d.ts +64 -28
  72. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +40 -28
  73. package/lib/src/ap-form/modal-form/index.vue.d.ts +22 -0
  74. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  75. package/lib/src/ap-form/search-form/index.vue.d.ts +24 -2
  76. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  77. package/lib/src/ap-table/constants.d.ts +52 -28
  78. package/lib/src/ap-upload/apUpload.vue.d.ts +9 -0
  79. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  80. package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
  81. package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
  82. package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
  83. package/lib/src/business/ap-value-select-card/index.vue2.js +1 -1
  84. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +11 -0
  85. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +11 -0
  86. package/lib/src/business/hooks/usePageListAgGrid.d.ts +1 -1
  87. package/lib/src/business/hooks/usePageListAgGrid.js +1 -1
  88. package/lib/src/business/hooks/usePageListApGrid.js +1 -1
  89. package/lib/src/config-provider/config-provider-props.d.ts +14 -1
  90. package/lib/src/config-provider/config-provider.d.ts +31 -1
  91. package/lib/src/config-provider/hooks/use-global-config.d.ts +14 -1
  92. package/lib/src/config-provider/index.d.ts +52 -1
  93. package/lib/src/utils/config-provider-preset.d.ts +11 -1
  94. package/lib/src/version.d.ts +1 -1
  95. package/lib/src/version.js +1 -1
  96. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +11 -0
  97. package/package.json +3 -3
  98. package/theme/ap-pro-card/index.css +5 -5
  99. package/theme/ap-pro-card/index.less +5 -5
  100. package/theme/ap-value-select-card/index.css +3 -4
  101. package/theme/ap-value-select-card/index.less +3 -4
  102. package/theme/index.css +8 -9
@@ -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("../../hooks/index.js");const g=require("lodash-unified"),q=require("./use-request.js"),P=require("../../hooks/useControllableValue.js");function v(r){return typeof r=="function"||Object.prototype.toString.call(r)==="[object Object]"&&!e.isVNode(r)}const _=e.defineComponent({name:"ApFieldTreeSelect",__name:"index",props:{mode:{default:"edit"},class:{},style:{},suffixIcon:{},size:{},bordered:{type:Boolean,default:void 0},treeLine:{},replaceFields:{},placement:{},status:{},popupClassName:{},dropdownClassName:{},"onUpdate:value":{},"onUpdate:treeExpandedKeys":{},"onUpdate:searchValue":{},value:{},children:{},listHeight:{},onMouseenter:{},onMouseleave:{},tabindex:{},onClick:{},onFocus:{},onBlur:{},onChange:{},onKeydown:{},onKeyup:{},onMousedown:{},onSelect:{},open:{type:Boolean,default:void 0},animation:{},direction:{},multiple:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},prefixCls:{},getPopupContainer:{},virtual:{type:Boolean,default:!0},dropdownMatchSelectWidth:{default:!0},loading:{type:Boolean,default:void 0},defaultValue:{},showAction:{},transitionName:{},dropdownAlign:{},placeholder:{},allowClear:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},id:{},clearIcon:{},notFoundContent:{},onDeselect:{},onSearch:{},fieldNames:{},dropdownStyle:{},dropdownRender:{},switcherIcon:{},filterTreeNode:{},treeData:{},treeCheckable:{type:Boolean,default:void 0},showSearch:{type:Boolean,default:void 0},searchValue:{},onInputKeyDown:{},removeIcon:{},maxTagCount:{},maxTagTextLength:{},maxTagPlaceholder:{},tokenSeparators:{},tagRender:{},choiceTransitionName:{},optionLabelRender:{},onClear:{},onDropdownVisibleChange:{},getRawInputElement:{},showArrow:{type:Boolean,default:void 0},onPopupScroll:{},listItemHeight:{},inputValue:{},autoClearSearchValue:{type:Boolean,default:void 0},labelInValue:{type:Boolean,default:void 0},showCheckedStrategy:{},treeExpandAction:{},treeDefaultExpandAll:{type:Boolean,default:void 0},treeIcon:{},treeLoadedKeys:{},onTreeLoad:{},treeNodeFilterProp:{},treeNodeLabelProp:{},treeCheckStrictly:{type:Boolean,default:void 0},treeDataSimpleMode:{},treeExpandedKeys:{},treeDefaultExpandedKeys:{},onTreeExpand:{},dropdownPopupAlign:{},emptyText:{default:"--"},request:{},lazy:{type:Boolean},params:{},loadData:{type:Boolean}},emits:["update:value"],setup(r,{expose:S,emit:B}){const o=r,C=e.useSlots(),N=B,s=e.ref(),{value:p,updateValue:w}=P.useControllableValue(o,N),{treeData:f,loading:m,request:y}=q.useRequest(o),V=e.computed(()=>{let t;const d=e.unref(p),u=g.isArray(d)?d:[d].filter(Boolean);if(!u.length)return e.createVNode(e.Fragment,null,[o.emptyText]);const n=[],c=o.fieldNames?.label||"label",k=o.fieldNames?.value||"value";function h(a){for(const l of a){if(u.find(D=>D===l[k])&&n.push(l[c]),n.length===u.length)return;l.children?.length&&h(l.children)}}return h(e.unref(f)),n.length?n.length===1?e.createVNode("span",null,[n[0]]):e.createVNode(i.Space,{size:4},v(t=n.map((a,l)=>e.createVNode(i.Tag,{style:"margin-right: 0px",key:`${a}-${l}`},v(a)?a:{default:()=>[a]})))?t:{default:()=>[t]}):e.createVNode(e.Fragment,null,[o.emptyText])});function x(){s.value?.focus?.()}function b(){s.value?.blur?.()}function T(t){return y(t)}return S({request:y,focus:x,blur:b}),(t,d)=>t.mode==="read"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(V.value),{key:0})):(e.openBlock(),e.createBlock(e.unref(i.TreeSelect),e.mergeProps({key:1},e.unref(g.omit)(o,["onUpdate:value","value","treeData","loadData"]),{ref_key:"treeSelectRef",ref:s,value:e.unref(p),"tree-data":e.unref(f),loading:e.unref(m),"load-data":t.loadData?T:void 0,"onUpdate:value":e.unref(w)}),e.createSlots({_:2},[e.renderList(C,(u,n)=>({name:n,fn:e.withCtx(c=>[e.renderSlot(t.$slots,n,e.normalizeProps(e.guardReactiveProps(c||{})))])})),e.unref(m)?{name:"notFoundContent",fn:e.withCtx(()=>[e.createVNode(e.unref(i.Spin),{size:"small"})]),key:"0"}:void 0]),1040,["value","tree-data","loading","load-data","onUpdate:value"]))}});exports.default=_;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("@aplus-frontend/antdv");require("../../hooks/index.js");const g=require("lodash-unified"),q=require("./use-request.js"),P=require("../../hooks/useControllableValue.js");function v(r){return typeof r=="function"||Object.prototype.toString.call(r)==="[object Object]"&&!e.isVNode(r)}const _=e.defineComponent({name:"ApFieldTreeSelect",__name:"index",props:{mode:{default:"edit"},class:{},style:{},suffixIcon:{},size:{},bordered:{type:Boolean,default:void 0},treeLine:{},replaceFields:{},placement:{},status:{},popupClassName:{},dropdownClassName:{},"onUpdate:value":{},"onUpdate:treeExpandedKeys":{},"onUpdate:searchValue":{},value:{},children:{},listHeight:{},onMouseenter:{},onMouseleave:{},tabindex:{},onClick:{},onFocus:{},onBlur:{},onChange:{},onKeydown:{},onKeyup:{},onMousedown:{},onSelect:{},open:{type:Boolean,default:void 0},animation:{},direction:{},multiple:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},prefixCls:{},getPopupContainer:{},virtual:{type:Boolean,default:!0},dropdownMatchSelectWidth:{default:!0},loading:{type:Boolean,default:void 0},defaultValue:{},showAction:{},transitionName:{},dropdownAlign:{},placeholder:{},allowClear:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},id:{},clearIcon:{},notFoundContent:{},maxCount:{},onDeselect:{},prefix:{},onSearch:{},fieldNames:{},dropdownStyle:{},dropdownRender:{},switcherIcon:{},filterTreeNode:{},treeData:{},treeCheckable:{type:Boolean,default:void 0},showSearch:{type:Boolean,default:void 0},searchValue:{},onInputKeyDown:{},removeIcon:{},maxTagCount:{},maxTagTextLength:{},maxTagPlaceholder:{},tokenSeparators:{},tagRender:{},choiceTransitionName:{},optionLabelRender:{},onClear:{},onDropdownVisibleChange:{},getRawInputElement:{},onPopupScroll:{},listItemHeight:{},inputValue:{},autoClearSearchValue:{type:Boolean,default:void 0},labelInValue:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},showCheckedStrategy:{},treeExpandAction:{},treeDefaultExpandAll:{type:Boolean,default:void 0},treeIcon:{},treeLoadedKeys:{},onTreeLoad:{},treeNodeFilterProp:{},treeNodeLabelProp:{},treeCheckStrictly:{type:Boolean,default:void 0},treeDataSimpleMode:{},treeExpandedKeys:{},treeDefaultExpandedKeys:{},onTreeExpand:{},dropdownPopupAlign:{},emptyText:{default:"--"},request:{},lazy:{type:Boolean},params:{},loadData:{type:Boolean}},emits:["update:value"],setup(r,{expose:S,emit:B}){const o=r,C=e.useSlots(),N=B,s=e.ref(),{value:p,updateValue:w}=P.useControllableValue(o,N),{treeData:f,loading:m,request:y}=q.useRequest(o),x=e.computed(()=>{let t;const d=e.unref(p),u=g.isArray(d)?d:[d].filter(Boolean);if(!u.length)return e.createVNode(e.Fragment,null,[o.emptyText]);const n=[],c=o.fieldNames?.label||"label",k=o.fieldNames?.value||"value";function h(a){for(const l of a){if(u.find(D=>D===l[k])&&n.push(l[c]),n.length===u.length)return;l.children?.length&&h(l.children)}}return h(e.unref(f)),n.length?n.length===1?e.createVNode("span",null,[n[0]]):e.createVNode(i.Space,{size:4},v(t=n.map((a,l)=>e.createVNode(i.Tag,{style:"margin-right: 0px",key:`${a}-${l}`},v(a)?a:{default:()=>[a]})))?t:{default:()=>[t]}):e.createVNode(e.Fragment,null,[o.emptyText])});function V(){s.value?.focus?.()}function b(){s.value?.blur?.()}function T(t){return y(t)}return S({request:y,focus:V,blur:b}),(t,d)=>t.mode==="read"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(x.value),{key:0})):(e.openBlock(),e.createBlock(e.unref(i.TreeSelect),e.mergeProps({key:1},e.unref(g.omit)(o,["onUpdate:value","value","treeData","loadData"]),{ref_key:"treeSelectRef",ref:s,value:e.unref(p),"tree-data":e.unref(f),loading:e.unref(m),"load-data":t.loadData?T:void 0,"onUpdate:value":e.unref(w)}),e.createSlots({_:2},[e.renderList(C,(u,n)=>({name:n,fn:e.withCtx(c=>[e.renderSlot(t.$slots,n,e.normalizeProps(e.guardReactiveProps(c||{})))])})),e.unref(m)?{name:"notFoundContent",fn:e.withCtx(()=>[e.createVNode(e.unref(i.Spin),{size:"small"})]),key:"0"}:void 0]),1040,["value","tree-data","loading","load-data","onUpdate:value"]))}});exports.default=_;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("lodash-unified"),c=require("@aplus-frontend/antdv");function s(l){return typeof l=="function"||Object.prototype.toString.call(l)==="[object Object]"&&!e.isVNode(l)}const g=e.defineComponent({name:"ApFieldTreeSelectRead",__name:"read",props:{mode:{default:"edit"},class:{},style:{},suffixIcon:{},size:{},bordered:{type:Boolean},treeLine:{},replaceFields:{},placement:{},status:{},popupClassName:{},dropdownClassName:{},"onUpdate:value":{},"onUpdate:treeExpandedKeys":{},"onUpdate:searchValue":{},value:{},children:{},listHeight:{},onMouseenter:{},onMouseleave:{},tabindex:{},onClick:{},onFocus:{},onBlur:{},onChange:{},onKeydown:{},onKeyup:{},onMousedown:{},onSelect:{},open:{type:Boolean},animation:{},direction:{},multiple:{type:Boolean},disabled:{type:Boolean},prefixCls:{},getPopupContainer:{},virtual:{type:Boolean},dropdownMatchSelectWidth:{},loading:{type:Boolean},defaultValue:{},showAction:{},transitionName:{},dropdownAlign:{},placeholder:{},allowClear:{type:Boolean},autofocus:{type:Boolean},defaultOpen:{type:Boolean},id:{},clearIcon:{},notFoundContent:{},onDeselect:{},onSearch:{},fieldNames:{},dropdownStyle:{},dropdownRender:{},switcherIcon:{},filterTreeNode:{},treeData:{},treeCheckable:{type:Boolean},showSearch:{type:Boolean},searchValue:{},onInputKeyDown:{},removeIcon:{},maxTagCount:{},maxTagTextLength:{},maxTagPlaceholder:{},tokenSeparators:{},tagRender:{},choiceTransitionName:{},optionLabelRender:{},onClear:{},onDropdownVisibleChange:{},getRawInputElement:{},showArrow:{type:Boolean},onPopupScroll:{},listItemHeight:{},inputValue:{},autoClearSearchValue:{type:Boolean},labelInValue:{type:Boolean},showCheckedStrategy:{},treeExpandAction:{},treeDefaultExpandAll:{type:Boolean},treeIcon:{},treeLoadedKeys:{},onTreeLoad:{},treeNodeFilterProp:{},treeNodeLabelProp:{},treeCheckStrictly:{type:Boolean},treeDataSimpleMode:{},treeExpandedKeys:{},treeDefaultExpandedKeys:{},onTreeExpand:{},dropdownPopupAlign:{},emptyText:{default:"--"},request:{},lazy:{type:Boolean},params:{},loadData:{type:Boolean}},setup(l){const o=l,u=e.computed(()=>{let r;const d=o.value,p=f.isArray(d)?d:[d].filter(Boolean);if(!p.length)return e.createVNode(e.Fragment,null,[o.emptyText]);const t=[],y=o.fieldNames?.label||"label",h=o.fieldNames?.value||"value";function i(n){for(const a of n){if(p.find(m=>m===a[h])&&t.push(a[y]),t.length===p.length)return;a.children?.length&&i(a.children)}}return i(o.treeData),t.length?t.length===1?e.createVNode("span",null,[t[0]]):e.createVNode(c.Space,{size:4},s(r=t.map((n,a)=>e.createVNode(c.Tag,{style:"margin-right: 0px",key:`${n}-${a}`},s(n)?n:{default:()=>[n]})))?r:{default:()=>[r]}):e.createVNode(e.Fragment,null,[o.emptyText])});return(r,d)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u.value)))}});exports.default=g;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("lodash-unified"),c=require("@aplus-frontend/antdv");function s(l){return typeof l=="function"||Object.prototype.toString.call(l)==="[object Object]"&&!e.isVNode(l)}const g=e.defineComponent({name:"ApFieldTreeSelectRead",__name:"read",props:{mode:{default:"edit"},class:{},style:{},suffixIcon:{},size:{},bordered:{type:Boolean},treeLine:{},replaceFields:{},placement:{},status:{},popupClassName:{},dropdownClassName:{},"onUpdate:value":{},"onUpdate:treeExpandedKeys":{},"onUpdate:searchValue":{},value:{},children:{},listHeight:{},onMouseenter:{},onMouseleave:{},tabindex:{},onClick:{},onFocus:{},onBlur:{},onChange:{},onKeydown:{},onKeyup:{},onMousedown:{},onSelect:{},open:{type:Boolean},animation:{},direction:{},multiple:{type:Boolean},disabled:{type:Boolean},prefixCls:{},getPopupContainer:{},virtual:{type:Boolean},dropdownMatchSelectWidth:{},loading:{type:Boolean},defaultValue:{},showAction:{},transitionName:{},dropdownAlign:{},placeholder:{},allowClear:{type:Boolean},autofocus:{type:Boolean},defaultOpen:{type:Boolean},id:{},clearIcon:{},notFoundContent:{},maxCount:{},onDeselect:{},prefix:{},onSearch:{},fieldNames:{},dropdownStyle:{},dropdownRender:{},switcherIcon:{},filterTreeNode:{},treeData:{},treeCheckable:{type:Boolean},showSearch:{type:Boolean},searchValue:{},onInputKeyDown:{},removeIcon:{},maxTagCount:{},maxTagTextLength:{},maxTagPlaceholder:{},tokenSeparators:{},tagRender:{},choiceTransitionName:{},optionLabelRender:{},onClear:{},onDropdownVisibleChange:{},getRawInputElement:{},onPopupScroll:{},listItemHeight:{},inputValue:{},autoClearSearchValue:{type:Boolean},labelInValue:{type:Boolean},showArrow:{type:Boolean},showCheckedStrategy:{},treeExpandAction:{},treeDefaultExpandAll:{type:Boolean},treeIcon:{},treeLoadedKeys:{},onTreeLoad:{},treeNodeFilterProp:{},treeNodeLabelProp:{},treeCheckStrictly:{type:Boolean},treeDataSimpleMode:{},treeExpandedKeys:{},treeDefaultExpandedKeys:{},onTreeExpand:{},dropdownPopupAlign:{},emptyText:{default:"--"},request:{},lazy:{type:Boolean},params:{},loadData:{type:Boolean}},setup(l){const o=l,u=e.computed(()=>{let r;const d=o.value,p=h.isArray(d)?d:[d].filter(Boolean);if(!p.length)return e.createVNode(e.Fragment,null,[o.emptyText]);const t=[],y=o.fieldNames?.label||"label",m=o.fieldNames?.value||"value";function i(n){for(const a of n){if(p.find(f=>f===a[m])&&t.push(a[y]),t.length===p.length)return;a.children?.length&&i(a.children)}}return i(o.treeData),t.length?t.length===1?e.createVNode("span",null,[t[0]]):e.createVNode(c.Space,{size:4},s(r=t.map((n,a)=>e.createVNode(c.Tag,{style:"margin-right: 0px",key:`${n}-${a}`},s(n)?n:{default:()=>[n]})))?r:{default:()=>[r]}):e.createVNode(e.Fragment,null,[o.emptyText])});return(r,d)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u.value)))}});exports.default=g;
@@ -238,11 +238,16 @@ declare function __VLS_template(): {
238
238
  type: PropType<(name: string | number | string[] | number[], status: boolean, errors: string[]) => void>;
239
239
  default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
240
240
  };
241
+ variant: {
242
+ type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
243
+ default: "filled" | "outlined" | "borderless" | "underlined";
244
+ };
241
245
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
242
246
  size: ButtonSize;
243
247
  onSubmit: (e: Event) => void;
244
248
  disabled: boolean;
245
249
  validateTrigger: string | string[];
250
+ variant: "filled" | "outlined" | "borderless" | "underlined";
246
251
  onFinish: (values: any) => void;
247
252
  validateMessages: ValidateMessages;
248
253
  requiredMark: "" | RequiredMark;
@@ -558,11 +563,16 @@ declare function __VLS_template(): {
558
563
  type: PropType<(name: string | number | string[] | number[], status: boolean, errors: string[]) => void>;
559
564
  default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
560
565
  };
566
+ variant: {
567
+ type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
568
+ default: "filled" | "outlined" | "borderless" | "underlined";
569
+ };
561
570
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
562
571
  size: ButtonSize;
563
572
  onSubmit: (e: Event) => void;
564
573
  disabled: boolean;
565
574
  validateTrigger: string | string[];
575
+ variant: "filled" | "outlined" | "borderless" | "underlined";
566
576
  onFinish: (values: any) => void;
567
577
  validateMessages: ValidateMessages;
568
578
  requiredMark: "" | RequiredMark;
@@ -898,11 +908,16 @@ declare const __VLS_component: DefineComponent<ApFormProps, {
898
908
  type: PropType<(name: string | number | string[] | number[], status: boolean, errors: string[]) => void>;
899
909
  default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
900
910
  };
911
+ variant: {
912
+ type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
913
+ default: "filled" | "outlined" | "borderless" | "underlined";
914
+ };
901
915
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
902
916
  size: ButtonSize;
903
917
  onSubmit: (e: Event) => void;
904
918
  disabled: boolean;
905
919
  validateTrigger: string | string[];
920
+ variant: "filled" | "outlined" | "borderless" | "underlined";
906
921
  onFinish: (values: any) => void;
907
922
  validateMessages: ValidateMessages;
908
923
  requiredMark: "" | RequiredMark;
@@ -1218,11 +1233,16 @@ declare const __VLS_component: DefineComponent<ApFormProps, {
1218
1233
  type: PropType<(name: string | number | string[] | number[], status: boolean, errors: string[]) => void>;
1219
1234
  default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
1220
1235
  };
1236
+ variant: {
1237
+ type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
1238
+ default: "filled" | "outlined" | "borderless" | "underlined";
1239
+ };
1221
1240
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
1222
1241
  size: ButtonSize;
1223
1242
  onSubmit: (e: Event) => void;
1224
1243
  disabled: boolean;
1225
1244
  validateTrigger: string | string[];
1245
+ variant: "filled" | "outlined" | "borderless" | "underlined";
1226
1246
  onFinish: (values: any) => void;
1227
1247
  validateMessages: ValidateMessages;
1228
1248
  requiredMark: "" | RequiredMark;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("vue"),J=require("@aplus-frontend/antdv"),Q=require("./context.js"),l=require("lodash-unified"),X=require("@vueuse/core"),Y=require("./constant.js"),p=require("../utils/index.js"),Z=require("./utils/set.js"),T=require("./utils/params.js"),z=require("./provider/context.js"),_=require("./utils/get.js"),ee=i.defineComponent({name:"ApForm",__name:"ap-form",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},onFieldsChange:{},onFinish:{},onFinishFailed:{},onValidate:{},initialValues:{},onValuesChange:{},syncToUrl:{type:[Boolean,Function],default:!1},syncToUrlPriority:{type:Boolean}},setup(O,{expose:j}){const s=O;function v(e,t,r=!0,n){if(l.isArray(e)){let o=a;for(let f=0;f<e.length-1;f++)e[f]in o||(o[e[f]]={}),o=o[e[f]];n?n(o,e[e.length-1]):o[e[e.length-1]]=t}else n?n(a,e):a[e]=t;let c=l.isArray(e)?e[0]:e;if(r){const o={[c]:a[c]};m.triggerFormChange(s.name,o),s.onValuesChange?.(o,a,e)}V()}const u=i.ref(),P=X.useUrlSearchParams(p.getRouteType()),m=z.useInjectFormProvider(),C=i.ref(s.syncToUrl?T.genParams(s.syncToUrl,P,"get"):{});let g=l.cloneDeep(U()),h={};const a=i.reactive(U());let F=[];function U(){const e=s.initialValues||{};return s.syncToUrlPriority?{...e,...i.unref(C)}:{...i.unref(C),...e}}function w(e){const t=y(e,h);m.triggerFormFinish(s.name,e),s.syncToUrl&&T.setToParams(P,T.genParams(s.syncToUrl,t,"set")),s.onFinish?.(t)}const B=async()=>{u.value?.resetFields(),await i.nextTick(()=>{Object.keys(a).forEach(e=>delete a[e]),Object.assign(a,g),V(),s.syncToUrl&&T.setToParams(P,T.genParams(s.syncToUrl,y(g,h),"set"))})},x=e=>{u.value?.clearValidate(e)},E=(e,t)=>u.value?.validateFields(e,t),S=async(e,t)=>{const r=await u.value?.validateFields(e,t);return y(r,h)},M=e=>e===!0?i.toRaw(a):u.value?.getFieldsValue(e),D=e=>{const t=M(e);return y(t,h)},N=(e,t)=>u.value?.validate(e,t),W=(e,t={})=>{u.value?.scrollToField(e,t)},$=e=>{Object.assign(a,e),V()},I=(e,t,r=!0,n)=>{v(e,t,r,n),V()};function q(e,t){return t||e(i.toRaw(a)),F.push(e),()=>{F=F.filter(r=>r!==e)}}function k(e,t){if(l.isArray(e)){let r=g;for(let n=0;n<e.length-1;n++)p.isDef(r[e[n]])||(r[e[n]]={}),r=r[e[n]];r[e[e.length-1]]=t}else g[e]=t}function K(e,t){if(!p.isDef(e)||!p.isDef(t))return;const r=_.getModelValue(g,t);if(l.isEqual(r,e))return;const n=_.getModelValue(i.unref(C),t);p.isDef(n)&&s.syncToUrlPriority||(v(t,e,!1),k(t,e))}function L(e,t){t&&(h=Z.default(h,[e].flat(1),t,!0))}function b({initialValue:e,name:t,transform:r}){K(e,t),L(t,r)}function A(){return g}function G(e){if(e!==Y.INTERNAL_FORM_INSTANCE_MARK){console.warn("getInternalInstance should only used at internal");return}return{registerField:b,registerWatch:q,setFieldValue:I,getInitialValues:A}}function V(){if(F.length){const e=i.toRaw(a);F.forEach(t=>{t(e)})}}function y(e,t){if(e==null)return;let r=l.isArray(e)?[]:{};return Object.keys(e).forEach(n=>{const c=e[n],o=t?.[n],f=l.isFunction(o)?o:o?.transformer,H=l.isFunction(o)?!0:o?.flat;if(l.isFunction(f)){const d=f(c);H?l.isArray(d)&&l.isArray(r)?r=[...r,...d]:l.isPlainObject(d)&&l.isPlainObject(r)?r={...r,...d}:r[n]=d:r[n]=d}else if(l.isPlainObject(c)||l.isArray(c)){const d=y(c,o);r[n]=d}else r[n]=c}),r}const R={resetFields:B,clearValidate:x,validateFields:E,getFieldsValue:M,validate:N,scrollToField:W,setFieldsValue:$,setFieldValue:I,registerWatch:q,validateFieldsReturnTransformed:S,getFieldsValueTransformed:D,getInternalInstance:G};return i.watch(()=>s.name,e=>{e&&(m.registerForm(e,R),i.onWatcherCleanup(()=>{m.unregisterForm(s.name)}))},{immediate:!0}),Q.useProvideForm({model:i.computed(()=>a),updateModel:v,internalInstance:{registerWatch:q,registerField:b,setFieldValue:I,getInitialValues:A}}),j(R),(e,t)=>(i.openBlock(),i.createBlock(i.unref(J.Form),i.mergeProps({ref_key:"formRef",ref:u},i.unref(l.omit)(s,["initialValues","onValuesChange","onFinish","syncToUrl","syncToUrlPriority"]),{model:a,"data-form-name":e.name,onFinish:w}),{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3},16,["model","data-form-name"]))}});exports.default=ee;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("vue"),J=require("@aplus-frontend/antdv"),Q=require("./context.js"),l=require("lodash-unified"),X=require("@vueuse/core"),Y=require("./constant.js"),p=require("../utils/index.js"),Z=require("./utils/set.js"),T=require("./utils/params.js"),z=require("./provider/context.js"),_=require("./utils/get.js"),ee=i.defineComponent({name:"ApForm",__name:"ap-form",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},onFieldsChange:{},onFinish:{},onFinishFailed:{},onValidate:{},variant:{},initialValues:{},onValuesChange:{},syncToUrl:{type:[Boolean,Function],default:!1},syncToUrlPriority:{type:Boolean}},setup(O,{expose:j}){const s=O;function v(e,t,r=!0,n){if(l.isArray(e)){let o=a;for(let f=0;f<e.length-1;f++)e[f]in o||(o[e[f]]={}),o=o[e[f]];n?n(o,e[e.length-1]):o[e[e.length-1]]=t}else n?n(a,e):a[e]=t;let c=l.isArray(e)?e[0]:e;if(r){const o={[c]:a[c]};m.triggerFormChange(s.name,o),s.onValuesChange?.(o,a,e)}V()}const u=i.ref(),P=X.useUrlSearchParams(p.getRouteType()),m=z.useInjectFormProvider(),C=i.ref(s.syncToUrl?T.genParams(s.syncToUrl,P,"get"):{});let g=l.cloneDeep(U()),h={};const a=i.reactive(U());let F=[];function U(){const e=s.initialValues||{};return s.syncToUrlPriority?{...e,...i.unref(C)}:{...i.unref(C),...e}}function w(e){const t=y(e,h);m.triggerFormFinish(s.name,e),s.syncToUrl&&T.setToParams(P,T.genParams(s.syncToUrl,t,"set")),s.onFinish?.(t)}const B=async()=>{u.value?.resetFields(),await i.nextTick(()=>{Object.keys(a).forEach(e=>delete a[e]),Object.assign(a,g),V(),s.syncToUrl&&T.setToParams(P,T.genParams(s.syncToUrl,y(g,h),"set"))})},x=e=>{u.value?.clearValidate(e)},E=(e,t)=>u.value?.validateFields(e,t),S=async(e,t)=>{const r=await u.value?.validateFields(e,t);return y(r,h)},M=e=>e===!0?i.toRaw(a):u.value?.getFieldsValue(e),D=e=>{const t=M(e);return y(t,h)},N=(e,t)=>u.value?.validate(e,t),W=(e,t={})=>{u.value?.scrollToField(e,t)},$=e=>{Object.assign(a,e),V()},I=(e,t,r=!0,n)=>{v(e,t,r,n),V()};function q(e){return e(i.toRaw(a)),F.push(e),()=>{F=F.filter(t=>t!==e)}}function k(e,t){if(l.isArray(e)){let r=g;for(let n=0;n<e.length-1;n++)p.isDef(r[e[n]])||(r[e[n]]={}),r=r[e[n]];r[e[e.length-1]]=t}else g[e]=t}function K(e,t){if(!p.isDef(e)||!p.isDef(t))return;const r=_.getModelValue(g,t);if(l.isEqual(r,e))return;const n=_.getModelValue(i.unref(C),t);p.isDef(n)&&s.syncToUrlPriority||(v(t,e,!1),k(t,e))}function L(e,t){t&&(h=Z.default(h,[e].flat(1),t,!0))}function b({initialValue:e,name:t,transform:r}){K(e,t),L(t,r)}function A(){return g}function G(e){if(e!==Y.INTERNAL_FORM_INSTANCE_MARK){console.warn("getInternalInstance should only used at internal");return}return{registerField:b,registerWatch:q,setFieldValue:I,getInitialValues:A}}function V(){if(F.length){const e=i.toRaw(a);F.forEach(t=>{t(e)})}}function y(e,t){if(e==null)return;let r=l.isArray(e)?[]:{};return Object.keys(e).forEach(n=>{const c=e[n],o=t?.[n],f=l.isFunction(o)?o:o?.transformer,H=l.isFunction(o)?!0:o?.flat;if(l.isFunction(f)){const d=f(c);H?l.isArray(d)&&l.isArray(r)?r=[...r,...d]:l.isPlainObject(d)&&l.isPlainObject(r)?r={...r,...d}:r[n]=d:r[n]=d}else if(l.isPlainObject(c)||l.isArray(c)){const d=y(c,o);r[n]=d}else r[n]=c}),r}const R={resetFields:B,clearValidate:x,validateFields:E,getFieldsValue:M,validate:N,scrollToField:W,setFieldsValue:$,setFieldValue:I,registerWatch:q,validateFieldsReturnTransformed:S,getFieldsValueTransformed:D,getInternalInstance:G};return i.watch(()=>s.name,e=>{e&&(m.registerForm(e,R),i.onWatcherCleanup(()=>{m.unregisterForm(s.name)}))},{immediate:!0}),Q.useProvideForm({model:i.computed(()=>a),updateModel:v,internalInstance:{registerWatch:q,registerField:b,setFieldValue:I,getInitialValues:A}}),j(R),(e,t)=>(i.openBlock(),i.createBlock(i.unref(J.Form),i.mergeProps({ref_key:"formRef",ref:u},i.unref(l.omit)(s,["initialValues","onValuesChange","onFinish","syncToUrl","syncToUrlPriority"]),{model:a,"data-form-name":e.name,onFinish:w}),{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3},16,["model","data-form-name"]))}});exports.default=ee;
@@ -115,6 +115,7 @@ declare function __VLS_template(): {
115
115
  readonly onFinish?: ((values: any) => void) | undefined;
116
116
  readonly onFinishFailed?: ((errorInfo: ValidateErrorEntity<any>) => void) | undefined;
117
117
  readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
118
+ readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
118
119
  readonly initialValues?: Recordable | undefined;
119
120
  readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
120
121
  readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
@@ -349,11 +350,16 @@ declare function __VLS_template(): {
349
350
  type: PropType<(name: string | number | string[] | number[], status: boolean, errors: string[]) => void>;
350
351
  default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
351
352
  };
353
+ variant: {
354
+ type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
355
+ default: "filled" | "outlined" | "borderless" | "underlined";
356
+ };
352
357
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
353
358
  size: ButtonSize;
354
359
  onSubmit: (e: Event) => void;
355
360
  disabled: boolean;
356
361
  validateTrigger: string | string[];
362
+ variant: "filled" | "outlined" | "borderless" | "underlined";
357
363
  onFinish: (values: any) => void;
358
364
  validateMessages: ValidateMessages;
359
365
  requiredMark: "" | RequiredMark;
@@ -669,11 +675,16 @@ declare function __VLS_template(): {
669
675
  type: PropType<(name: string | number | string[] | number[], status: boolean, errors: string[]) => void>;
670
676
  default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
671
677
  };
678
+ variant: {
679
+ type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
680
+ default: "filled" | "outlined" | "borderless" | "underlined";
681
+ };
672
682
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
673
683
  size: ButtonSize;
674
684
  onSubmit: (e: Event) => void;
675
685
  disabled: boolean;
676
686
  validateTrigger: string | string[];
687
+ variant: "filled" | "outlined" | "borderless" | "underlined";
677
688
  onFinish: (values: any) => void;
678
689
  validateMessages: ValidateMessages;
679
690
  requiredMark: "" | RequiredMark;
@@ -1063,6 +1074,7 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
1063
1074
  readonly onFinish?: ((values: any) => void) | undefined;
1064
1075
  readonly onFinishFailed?: ((errorInfo: ValidateErrorEntity<any>) => void) | undefined;
1065
1076
  readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
1077
+ readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
1066
1078
  readonly initialValues?: Recordable | undefined;
1067
1079
  readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
1068
1080
  readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
@@ -1297,11 +1309,16 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
1297
1309
  type: PropType<(name: string | number | string[] | number[], status: boolean, errors: string[]) => void>;
1298
1310
  default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
1299
1311
  };
1312
+ variant: {
1313
+ type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
1314
+ default: "filled" | "outlined" | "borderless" | "underlined";
1315
+ };
1300
1316
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
1301
1317
  size: ButtonSize;
1302
1318
  onSubmit: (e: Event) => void;
1303
1319
  disabled: boolean;
1304
1320
  validateTrigger: string | string[];
1321
+ variant: "filled" | "outlined" | "borderless" | "underlined";
1305
1322
  onFinish: (values: any) => void;
1306
1323
  validateMessages: ValidateMessages;
1307
1324
  requiredMark: "" | RequiredMark;
@@ -1617,11 +1634,16 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
1617
1634
  type: PropType<(name: string | number | string[] | number[], status: boolean, errors: string[]) => void>;
1618
1635
  default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
1619
1636
  };
1637
+ variant: {
1638
+ type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
1639
+ default: "filled" | "outlined" | "borderless" | "underlined";
1640
+ };
1620
1641
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
1621
1642
  size: ButtonSize;
1622
1643
  onSubmit: (e: Event) => void;
1623
1644
  disabled: boolean;
1624
1645
  validateTrigger: string | string[];
1646
+ variant: "filled" | "outlined" | "borderless" | "underlined";
1625
1647
  onFinish: (values: any) => void;
1626
1648
  validateMessages: ValidateMessages;
1627
1649
  requiredMark: "" | RequiredMark;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("@aplus-frontend/antdv");require("../ap-form.vue.js");require("../../hooks/index.js");const L=require("../../utils/slot.js");require("../../config-provider/index.js");const b=require("lodash-unified"),U=require("../../utils/index.js"),j=require("../../hooks/useControllableValue.js"),E=require("../../config-provider/hooks/use-locale.js"),D=require("../../config-provider/hooks/use-namespace.js"),I=require("../ap-form.vue2.js");function W(l){return typeof l=="function"||Object.prototype.toString.call(l)==="[object Object]"&&!e.isVNode(l)}const A=e.defineComponent({name:"ApFormDrawerForm",__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},onFieldsChange:{},onFinishFailed:{},onValidate:{},initialValues:{},onValuesChange:{},syncToUrl:{type:[Boolean,Function]},syncToUrlPriority:{type:Boolean},open:{type:Boolean,default:void 0},"onUpdate:open":{},drawerProps:{default:()=>({})},title:{},width:{default:378},onFinish:{},submitter:{type:[Boolean,Object],default:()=>({resetButtonProps:!1})},showCancel:{type:Boolean,default:!0},submitTimeout:{},resize:{type:[Object,Boolean],default:!1}},emits:["update:open"],setup(l,{expose:k,emit:x}){const n=l,p=e.useSlots(),R=x,i=e.ref(),d=e.ref(),r=e.ref(!1),{value:g,updateValue:c}=j.useControllableValue(n,R,{valuePropName:"open",defaultValue:!1}),a=e.computed(()=>{const t={onResize:()=>{},minWidth:300,maxWidth:window.innerWidth*.8,resizeOnOpen:!0};return b.isBoolean(n.resize)?n.resize?t:{}:{minWidth:n.resize?.minWidth??t.minWidth,maxWidth:n.resize?.maxWidth??t.maxWidth,onResize:n.resize?.onResize??t.onResize,resizeOnOpen:b.isUndefined(n.resize?.resizeOnOpen)?t.onResize:n.resize.resizeOnOpen}}),u=e.ref(y()),{t:v}=E.useLocale(),{e:N,em:F}=D.useNamespace("ap-form-drawer-form"),O=e.computed(()=>[N("resize-bar"),{[F("resize-bar","min-disabled")]:e.unref(u)===e.unref(a).minWidth},{[F("resize-bar","max-disabled")]:e.unref(u)===e.unref(a).maxWidth}]);e.watch(()=>i.value,t=>{t&&d.value&&(t.setFieldsValue?.(d.value),d.value=void 0)}),e.watch(()=>e.unref(g),t=>{t&&e.unref(a)?.resizeOnOpen&&(u.value=y())});function y(){const t=e.unref(a)?.minWidth;return!t||t&&t<n.width?n.width:t}const V=L.getSingleVNode(p.trigger),w=V?e.cloneVNode(V,{onClick:()=>{c(!0)}}):null,P=e.computed(()=>{const t=[];if(n.submitter===!1)return null;if(n.showCancel){let o;t.push(e.createVNode(s.Button,{onClick:B,disabled:r.value},W(o=v("ap.common.cancelText"))?o:{default:()=>[o]}))}return n.submitter?.resetButtonProps!==!1&&t.push(e.createVNode(s.Button,e.mergeProps(n.submitter?.resetButtonProps||{},{key:"submit",disabled:r.value,onClick:q}),{default:()=>[n.submitter?.resetText||v("ap.common.resetText")]})),n.submitter?.submitButtonProps!==!1&&t.push(e.createVNode(s.Button,e.mergeProps({type:"primary",key:"submit"},n.submitter?.submitButtonProps||{},{loading:r.value,onClick:S}),{default:()=>[n.submitter?.submitText||v("ap.common.okText")]})),e.createVNode(s.Flex,{justify:"flex-end"},{default:()=>[p.submitter?p.submitter(t):e.createVNode(s.Space,null,W(t)?t:{default:()=>[t]})]})});function _(){a.value?.onResize?.(),document.addEventListener("mousemove",C),document.addEventListener("mouseup",z)}function C(t){const o=e.unref(a),f=(document.body.offsetWidth||1e3)-(t.clientX-document.body.offsetLeft),m=o?.minWidth??(n.width||800),T=o?.maxWidth??window.innerWidth*.8;let h=f;f<m&&(h=m),f>T&&(h=T),u.value=h}function z(){document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",z)}function q(){n.submitter!==!1&&(i.value?.resetFields(),n.submitter?.onReset?.())}async function S(){if(n.submitter!==!1)try{const t=await i.value?.validateFieldsReturnTransformed();n.submitter?.onSubmit?.(),r.value=!0;const o=n.onFinish?.(U.convertReactiveToRaw(t));if(n.submitTimeout&&o instanceof Promise){const m=setTimeout(()=>r.value=!1,n.submitTimeout);o.finally(()=>{clearTimeout(m),r.value=!1})}await o&&c(!1)}finally{r.value=!1}}function B(){e.unref(r)||c(!1)}function M(t){!t&&e.unref(r)||c(t)}return k({resetFields:async()=>{i.value?.resetFields()},clearValidate:t=>{i.value?.clearValidate(t)},validateFields:(t,o)=>i.value?.validateFields(t,o),getFieldsValue:t=>i.value?.getFieldsValue(t),validate:(t,o)=>i.value?.validate(t,o),scrollToField:(t,o={})=>{i.value?.scrollToField(t,o)},setFieldValue:(t,o)=>{i.value?.setFieldValue?.(t,o)},setFieldsValue:t=>{if(!i.value){d.value=t;return}i.value?.setFieldsValue?.(t)},getInternalInstance:t=>i.value?.getInternalInstance(t),getFieldsValueTransformed:t=>i.value?.getFieldsValueTransformed(t),validateFieldsReturnTransformed:t=>i.value?.validateFieldsReturnTransformed(t)}),(t,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(s.Drawer),e.mergeProps(t.drawerProps,{open:e.unref(g),width:u.value,"onUpdate:open":M,onCancel:B}),{title:e.withCtx(()=>[e.renderSlot(t.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(n.title),1)])]),footer:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(P.value)))]),default:e.withCtx(()=>[e.createVNode(I.default,e.mergeProps({ref_key:"formRef",ref:i},e.unref(b.omit)(n,["drawerProps","open","onUpdate:open","title","width","onFinish","submitter"])),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16),t.resize?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(O.value),onMousedown:e.withModifiers(_,["stop","prevent"])},null,34)):e.createCommentVNode("",!0)]),_:3},16,["open","width"]),e.unref(w)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(w)),{key:0})):e.createCommentVNode("",!0)],64))}});exports.default=A;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("@aplus-frontend/antdv");require("../ap-form.vue.js");require("../../hooks/index.js");const L=require("../../utils/slot.js");require("../../config-provider/index.js");const b=require("lodash-unified"),U=require("../../utils/index.js"),j=require("../../hooks/useControllableValue.js"),E=require("../../config-provider/hooks/use-locale.js"),D=require("../../config-provider/hooks/use-namespace.js"),I=require("../ap-form.vue2.js");function W(l){return typeof l=="function"||Object.prototype.toString.call(l)==="[object Object]"&&!e.isVNode(l)}const A=e.defineComponent({name:"ApFormDrawerForm",__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},onFieldsChange:{},onFinishFailed:{},onValidate:{},variant:{},initialValues:{},onValuesChange:{},syncToUrl:{type:[Boolean,Function]},syncToUrlPriority:{type:Boolean},open:{type:Boolean,default:void 0},"onUpdate:open":{},drawerProps:{default:()=>({})},title:{},width:{default:378},onFinish:{},submitter:{type:[Boolean,Object],default:()=>({resetButtonProps:!1})},showCancel:{type:Boolean,default:!0},submitTimeout:{},resize:{type:[Object,Boolean],default:!1}},emits:["update:open"],setup(l,{expose:k,emit:x}){const n=l,p=e.useSlots(),R=x,i=e.ref(),d=e.ref(),r=e.ref(!1),{value:g,updateValue:c}=j.useControllableValue(n,R,{valuePropName:"open",defaultValue:!1}),a=e.computed(()=>{const t={onResize:()=>{},minWidth:300,maxWidth:window.innerWidth*.8,resizeOnOpen:!0};return b.isBoolean(n.resize)?n.resize?t:{}:{minWidth:n.resize?.minWidth??t.minWidth,maxWidth:n.resize?.maxWidth??t.maxWidth,onResize:n.resize?.onResize??t.onResize,resizeOnOpen:b.isUndefined(n.resize?.resizeOnOpen)?t.onResize:n.resize.resizeOnOpen}}),u=e.ref(y()),{t:v}=E.useLocale(),{e:N,em:F}=D.useNamespace("ap-form-drawer-form"),O=e.computed(()=>[N("resize-bar"),{[F("resize-bar","min-disabled")]:e.unref(u)===e.unref(a).minWidth},{[F("resize-bar","max-disabled")]:e.unref(u)===e.unref(a).maxWidth}]);e.watch(()=>i.value,t=>{t&&d.value&&(t.setFieldsValue?.(d.value),d.value=void 0)}),e.watch(()=>e.unref(g),t=>{t&&e.unref(a)?.resizeOnOpen&&(u.value=y())});function y(){const t=e.unref(a)?.minWidth;return!t||t&&t<n.width?n.width:t}const V=L.getSingleVNode(p.trigger),w=V?e.cloneVNode(V,{onClick:()=>{c(!0)}}):null,P=e.computed(()=>{const t=[];if(n.submitter===!1)return null;if(n.showCancel){let o;t.push(e.createVNode(s.Button,{onClick:B,disabled:r.value},W(o=v("ap.common.cancelText"))?o:{default:()=>[o]}))}return n.submitter?.resetButtonProps!==!1&&t.push(e.createVNode(s.Button,e.mergeProps(n.submitter?.resetButtonProps||{},{key:"submit",disabled:r.value,onClick:q}),{default:()=>[n.submitter?.resetText||v("ap.common.resetText")]})),n.submitter?.submitButtonProps!==!1&&t.push(e.createVNode(s.Button,e.mergeProps({type:"primary",key:"submit"},n.submitter?.submitButtonProps||{},{loading:r.value,onClick:S}),{default:()=>[n.submitter?.submitText||v("ap.common.okText")]})),e.createVNode(s.Flex,{justify:"flex-end"},{default:()=>[p.submitter?p.submitter(t):e.createVNode(s.Space,null,W(t)?t:{default:()=>[t]})]})});function _(){a.value?.onResize?.(),document.addEventListener("mousemove",C),document.addEventListener("mouseup",z)}function C(t){const o=e.unref(a),f=(document.body.offsetWidth||1e3)-(t.clientX-document.body.offsetLeft),m=o?.minWidth??(n.width||800),T=o?.maxWidth??window.innerWidth*.8;let h=f;f<m&&(h=m),f>T&&(h=T),u.value=h}function z(){document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",z)}function q(){n.submitter!==!1&&(i.value?.resetFields(),n.submitter?.onReset?.())}async function S(){if(n.submitter!==!1)try{const t=await i.value?.validateFieldsReturnTransformed();n.submitter?.onSubmit?.(),r.value=!0;const o=n.onFinish?.(U.convertReactiveToRaw(t));if(n.submitTimeout&&o instanceof Promise){const m=setTimeout(()=>r.value=!1,n.submitTimeout);o.finally(()=>{clearTimeout(m),r.value=!1})}await o&&c(!1)}finally{r.value=!1}}function B(){e.unref(r)||c(!1)}function M(t){!t&&e.unref(r)||c(t)}return k({resetFields:async()=>{i.value?.resetFields()},clearValidate:t=>{i.value?.clearValidate(t)},validateFields:(t,o)=>i.value?.validateFields(t,o),getFieldsValue:t=>i.value?.getFieldsValue(t),validate:(t,o)=>i.value?.validate(t,o),scrollToField:(t,o={})=>{i.value?.scrollToField(t,o)},setFieldValue:(t,o)=>{i.value?.setFieldValue?.(t,o)},setFieldsValue:t=>{if(!i.value){d.value=t;return}i.value?.setFieldsValue?.(t)},getInternalInstance:t=>i.value?.getInternalInstance(t),getFieldsValueTransformed:t=>i.value?.getFieldsValueTransformed(t),validateFieldsReturnTransformed:t=>i.value?.validateFieldsReturnTransformed(t)}),(t,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(s.Drawer),e.mergeProps(t.drawerProps,{open:e.unref(g),width:u.value,"onUpdate:open":M,onCancel:B}),{title:e.withCtx(()=>[e.renderSlot(t.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(n.title),1)])]),footer:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(P.value)))]),default:e.withCtx(()=>[e.createVNode(I.default,e.mergeProps({ref_key:"formRef",ref:i},e.unref(b.omit)(n,["drawerProps","open","onUpdate:open","title","width","onFinish","submitter"])),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16),t.resize?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(O.value),onMousedown:e.withModifiers(_,["stop","prevent"])},null,34)):e.createCommentVNode("",!0)]),_:3},16,["open","width"]),e.unref(w)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(w)),{key:0})):e.createCommentVNode("",!0)],64))}});exports.default=A;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const I=require("../context.js"),e=require("vue"),N=require("../constant.js"),g=require("../utils/get.js");function i(n){try{return JSON.stringify(n)}catch{return Math.random()}}function v(n,u,V){const{internalInstance:S,model:h}=I.useInjectForm(),o=V?.initialValue||u?.initialValue||void 0,l=e.ref(o);let a=i(o),s=!0;const M=u&&"value"in u?u:void 0;return e.watchEffect(c=>{const t=M?.value?.getInternalInstance(N.INTERNAL_FORM_INSTANCE_MARK)||S;if(!t){s=!1;return}const r=t.registerWatch(w=>{const f=g.getModelValue(w,e.unref(n)),d=i(f);d!==a&&(l.value=f,a=d)},s);c(r)}),e.watch(()=>e.unref(n),c=>{const t=g.getModelValue(e.unref(h),c),r=i(t);r!==a&&(l.value=t,a=r)}),l}exports.default=v;exports.useWatch=v;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const M=require("../context.js"),e=require("vue"),w=require("../constant.js"),d=require("../utils/get.js");function i(t){try{return JSON.stringify(t)}catch{return Math.random()}}function g(t,n,V){const{internalInstance:S,model:h}=M.useInjectForm(),o=V?.initialValue||n?.initialValue||void 0,l=e.ref(o);let u=i(o);const s=e.computed(()=>(n&&"value"in n?n:void 0)?.value?.getInternalInstance(w.INTERNAL_FORM_INSTANCE_MARK)||S);return e.watchEffect(a=>{if(!s.value)return;const r=s.value.registerWatch(c=>{const f=d.getModelValue(c,e.unref(t)),v=i(f);v!==u&&(l.value=f,u=v)});a(r)}),e.watch(()=>e.unref(t),a=>{const r=d.getModelValue(e.unref(h),a),c=i(r);c!==u&&(l.value=r,u=c)}),l}exports.default=g;exports.useWatch=g;
@@ -114,7 +114,7 @@ export type ApFormInternalInstance = {
114
114
  * @param inner
115
115
  * @returns
116
116
  */
117
- registerWatch: (callback: WatchFunc, inner: boolean) => () => void;
117
+ registerWatch: (callback: WatchFunc, inner?: boolean) => () => void;
118
118
  /**
119
119
  * 注册表单项
120
120
  * @param field
@@ -67,6 +67,7 @@ declare function __VLS_template(): {
67
67
  readonly animation?: string | undefined;
68
68
  readonly children?: VueNode[] | undefined;
69
69
  readonly prefixCls?: string | undefined;
70
+ readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
70
71
  readonly loading?: boolean | undefined;
71
72
  readonly transitionName?: string | undefined;
72
73
  readonly autofocus?: boolean | undefined;
@@ -78,6 +79,7 @@ declare function __VLS_template(): {
78
79
  readonly id?: string | undefined;
79
80
  readonly placeholder?: any;
80
81
  readonly status?: "" | "error" | "warning" | undefined;
82
+ readonly prefix?: any;
81
83
  readonly clearIcon?: any;
82
84
  readonly allowClear?: boolean | undefined;
83
85
  readonly options?: DefaultOptionType[] | undefined;
@@ -88,6 +90,8 @@ declare function __VLS_template(): {
88
90
  readonly suffixIcon?: any;
89
91
  readonly notFoundContent?: any;
90
92
  readonly itemIcon?: any;
93
+ readonly showArrow?: boolean | undefined;
94
+ readonly maxCount?: number | undefined;
91
95
  readonly choiceTransitionName?: "" | undefined;
92
96
  readonly popupClassName?: string | undefined;
93
97
  readonly listHeight?: number | undefined;
@@ -108,7 +112,6 @@ declare function __VLS_template(): {
108
112
  readonly optionLabelRender?: ((option: Record<string, any>) => any) | undefined;
109
113
  readonly onClear?: (() => void) | undefined;
110
114
  readonly onDropdownVisibleChange?: ((open: boolean) => void) | undefined;
111
- readonly showArrow?: boolean | undefined;
112
115
  readonly onPopupScroll?: ((e: UIEvent) => void) | undefined;
113
116
  readonly menuItemSelectedIcon?: any;
114
117
  readonly listItemHeight?: number | undefined;
@@ -163,6 +166,15 @@ declare function __VLS_template(): {
163
166
  type: BooleanConstructor;
164
167
  default: boolean;
165
168
  };
169
+ showArrow: {
170
+ type: BooleanConstructor;
171
+ default: boolean;
172
+ };
173
+ variant: {
174
+ type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
175
+ default: "filled" | "outlined" | "borderless" | "underlined";
176
+ };
177
+ maxCount: NumberConstructor;
166
178
  transitionName: StringConstructor;
167
179
  choiceTransitionName: {
168
180
  type: PropType<"">;
@@ -245,6 +257,7 @@ declare function __VLS_template(): {
245
257
  clearIcon: VueTypeValidableDef<any>;
246
258
  options: PropType< DefaultOptionType[]>;
247
259
  onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
260
+ prefix: VueTypeValidableDef<any>;
248
261
  onSearch: PropType<(value: string) => void>;
249
262
  fieldNames: PropType<FieldNames>;
250
263
  dropdownStyle: {
@@ -278,10 +291,6 @@ declare function __VLS_template(): {
278
291
  onDropdownVisibleChange: {
279
292
  type: PropType<(open: boolean) => void>;
280
293
  };
281
- showArrow: {
282
- type: BooleanConstructor;
283
- default: any;
284
- };
285
294
  onPopupScroll: PropType<(e: UIEvent) => void>;
286
295
  menuItemSelectedIcon: VueTypeValidableDef<any>;
287
296
  listItemHeight: NumberConstructor;
@@ -315,6 +324,7 @@ declare function __VLS_template(): {
315
324
  virtual: boolean;
316
325
  dropdownMatchSelectWidth: number | boolean;
317
326
  loading: boolean;
327
+ variant: "filled" | "outlined" | "borderless" | "underlined";
318
328
  bordered: boolean;
319
329
  defaultValue: SelectValue;
320
330
  status: "" | "error" | "warning";
@@ -325,11 +335,11 @@ declare function __VLS_template(): {
325
335
  placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
326
336
  showSearch: boolean;
327
337
  choiceTransitionName: "";
328
- showArrow: boolean;
329
338
  autoClearSearchValue: boolean;
330
339
  filterOption: boolean | FilterFunc<DefaultOptionType>;
331
340
  defaultActiveFirstOption: boolean;
332
341
  labelInValue: boolean;
342
+ showArrow: boolean;
333
343
  }, true, {}, CustomSlotsType<{
334
344
  notFoundContent: any;
335
345
  suffixIcon: any;
@@ -343,6 +353,7 @@ declare function __VLS_template(): {
343
353
  maxTagPlaceholder: any;
344
354
  optionLabel: any;
345
355
  default: any;
356
+ prefix: any;
346
357
  }>, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
347
358
  P: {};
348
359
  B: {};
@@ -374,6 +385,15 @@ declare function __VLS_template(): {
374
385
  type: BooleanConstructor;
375
386
  default: boolean;
376
387
  };
388
+ showArrow: {
389
+ type: BooleanConstructor;
390
+ default: boolean;
391
+ };
392
+ variant: {
393
+ type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
394
+ default: "filled" | "outlined" | "borderless" | "underlined";
395
+ };
396
+ maxCount: NumberConstructor;
377
397
  transitionName: StringConstructor;
378
398
  choiceTransitionName: {
379
399
  type: PropType<"">;
@@ -456,6 +476,7 @@ declare function __VLS_template(): {
456
476
  clearIcon: VueTypeValidableDef<any>;
457
477
  options: PropType< DefaultOptionType[]>;
458
478
  onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
479
+ prefix: VueTypeValidableDef<any>;
459
480
  onSearch: PropType<(value: string) => void>;
460
481
  fieldNames: PropType<FieldNames>;
461
482
  dropdownStyle: {
@@ -489,10 +510,6 @@ declare function __VLS_template(): {
489
510
  onDropdownVisibleChange: {
490
511
  type: PropType<(open: boolean) => void>;
491
512
  };
492
- showArrow: {
493
- type: BooleanConstructor;
494
- default: any;
495
- };
496
513
  onPopupScroll: PropType<(e: UIEvent) => void>;
497
514
  menuItemSelectedIcon: VueTypeValidableDef<any>;
498
515
  listItemHeight: NumberConstructor;
@@ -526,6 +543,7 @@ declare function __VLS_template(): {
526
543
  virtual: boolean;
527
544
  dropdownMatchSelectWidth: number | boolean;
528
545
  loading: boolean;
546
+ variant: "filled" | "outlined" | "borderless" | "underlined";
529
547
  bordered: boolean;
530
548
  defaultValue: SelectValue;
531
549
  status: "" | "error" | "warning";
@@ -536,11 +554,11 @@ declare function __VLS_template(): {
536
554
  placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
537
555
  showSearch: boolean;
538
556
  choiceTransitionName: "";
539
- showArrow: boolean;
540
557
  autoClearSearchValue: boolean;
541
558
  filterOption: boolean | FilterFunc<DefaultOptionType>;
542
559
  defaultActiveFirstOption: boolean;
543
560
  labelInValue: boolean;
561
+ showArrow: boolean;
544
562
  }> | null;
545
563
  };
546
564
  $slots: Readonly<{
@@ -571,8 +589,8 @@ declare function __VLS_template(): {
571
589
  lazy: boolean;
572
590
  allowClear: boolean;
573
591
  defaultOpen: boolean;
574
- showSearch: boolean;
575
592
  showArrow: boolean;
593
+ showSearch: boolean;
576
594
  autoClearSearchValue: boolean;
577
595
  defaultActiveFirstOption: boolean;
578
596
  labelInValue: boolean;
@@ -612,8 +630,8 @@ declare function __VLS_template(): {
612
630
  lazy: boolean;
613
631
  allowClear: boolean;
614
632
  defaultOpen: boolean;
615
- showSearch: boolean;
616
633
  showArrow: boolean;
634
+ showSearch: boolean;
617
635
  autoClearSearchValue: boolean;
618
636
  defaultActiveFirstOption: boolean;
619
637
  labelInValue: boolean;
@@ -623,7 +641,7 @@ declare function __VLS_template(): {
623
641
  searchDelay: number;
624
642
  }> & Omit<Readonly< ApFieldSelectProps> & Readonly<{
625
643
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
626
- }>, "blur" | "focus" | "request" | ("mode" | "open" | "multiple" | "disabled" | "loading" | "autofocus" | "bordered" | "virtual" | "lazy" | "allowClear" | "defaultOpen" | "showSearch" | "showArrow" | "autoClearSearchValue" | "defaultActiveFirstOption" | "labelInValue" | "emptyText" | "searchMode" | "refetchOnFocus" | "searchDelay")> & ShallowUnwrapRef<{
644
+ }>, "blur" | "focus" | "request" | ("mode" | "open" | "multiple" | "disabled" | "loading" | "autofocus" | "bordered" | "virtual" | "lazy" | "allowClear" | "defaultOpen" | "showArrow" | "showSearch" | "autoClearSearchValue" | "defaultActiveFirstOption" | "labelInValue" | "emptyText" | "searchMode" | "refetchOnFocus" | "searchDelay")> & ShallowUnwrapRef<{
627
645
  focus: () => void;
628
646
  blur: () => void;
629
647
  request: (clear?: boolean) => Promise<void>;
@@ -698,6 +716,7 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
698
716
  readonly animation?: string | undefined;
699
717
  readonly children?: VueNode[] | undefined;
700
718
  readonly prefixCls?: string | undefined;
719
+ readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
701
720
  readonly loading?: boolean | undefined;
702
721
  readonly transitionName?: string | undefined;
703
722
  readonly autofocus?: boolean | undefined;
@@ -709,6 +728,7 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
709
728
  readonly id?: string | undefined;
710
729
  readonly placeholder?: any;
711
730
  readonly status?: "" | "error" | "warning" | undefined;
731
+ readonly prefix?: any;
712
732
  readonly clearIcon?: any;
713
733
  readonly allowClear?: boolean | undefined;
714
734
  readonly options?: DefaultOptionType[] | undefined;
@@ -719,6 +739,8 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
719
739
  readonly suffixIcon?: any;
720
740
  readonly notFoundContent?: any;
721
741
  readonly itemIcon?: any;
742
+ readonly showArrow?: boolean | undefined;
743
+ readonly maxCount?: number | undefined;
722
744
  readonly choiceTransitionName?: "" | undefined;
723
745
  readonly popupClassName?: string | undefined;
724
746
  readonly listHeight?: number | undefined;
@@ -739,7 +761,6 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
739
761
  readonly optionLabelRender?: ((option: Record<string, any>) => any) | undefined;
740
762
  readonly onClear?: (() => void) | undefined;
741
763
  readonly onDropdownVisibleChange?: ((open: boolean) => void) | undefined;
742
- readonly showArrow?: boolean | undefined;
743
764
  readonly onPopupScroll?: ((e: UIEvent) => void) | undefined;
744
765
  readonly menuItemSelectedIcon?: any;
745
766
  readonly listItemHeight?: number | undefined;
@@ -794,6 +815,15 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
794
815
  type: BooleanConstructor;
795
816
  default: boolean;
796
817
  };
818
+ showArrow: {
819
+ type: BooleanConstructor;
820
+ default: boolean;
821
+ };
822
+ variant: {
823
+ type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
824
+ default: "filled" | "outlined" | "borderless" | "underlined";
825
+ };
826
+ maxCount: NumberConstructor;
797
827
  transitionName: StringConstructor;
798
828
  choiceTransitionName: {
799
829
  type: PropType<"">;
@@ -876,6 +906,7 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
876
906
  clearIcon: VueTypeValidableDef<any>;
877
907
  options: PropType< DefaultOptionType[]>;
878
908
  onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
909
+ prefix: VueTypeValidableDef<any>;
879
910
  onSearch: PropType<(value: string) => void>;
880
911
  fieldNames: PropType<FieldNames>;
881
912
  dropdownStyle: {
@@ -909,10 +940,6 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
909
940
  onDropdownVisibleChange: {
910
941
  type: PropType<(open: boolean) => void>;
911
942
  };
912
- showArrow: {
913
- type: BooleanConstructor;
914
- default: any;
915
- };
916
943
  onPopupScroll: PropType<(e: UIEvent) => void>;
917
944
  menuItemSelectedIcon: VueTypeValidableDef<any>;
918
945
  listItemHeight: NumberConstructor;
@@ -946,6 +973,7 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
946
973
  virtual: boolean;
947
974
  dropdownMatchSelectWidth: number | boolean;
948
975
  loading: boolean;
976
+ variant: "filled" | "outlined" | "borderless" | "underlined";
949
977
  bordered: boolean;
950
978
  defaultValue: SelectValue;
951
979
  status: "" | "error" | "warning";
@@ -956,11 +984,11 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
956
984
  placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
957
985
  showSearch: boolean;
958
986
  choiceTransitionName: "";
959
- showArrow: boolean;
960
987
  autoClearSearchValue: boolean;
961
988
  filterOption: boolean | FilterFunc<DefaultOptionType>;
962
989
  defaultActiveFirstOption: boolean;
963
990
  labelInValue: boolean;
991
+ showArrow: boolean;
964
992
  }, true, {}, CustomSlotsType<{
965
993
  notFoundContent: any;
966
994
  suffixIcon: any;
@@ -974,6 +1002,7 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
974
1002
  maxTagPlaceholder: any;
975
1003
  optionLabel: any;
976
1004
  default: any;
1005
+ prefix: any;
977
1006
  }>, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
978
1007
  P: {};
979
1008
  B: {};
@@ -1005,6 +1034,15 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
1005
1034
  type: BooleanConstructor;
1006
1035
  default: boolean;
1007
1036
  };
1037
+ showArrow: {
1038
+ type: BooleanConstructor;
1039
+ default: boolean;
1040
+ };
1041
+ variant: {
1042
+ type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
1043
+ default: "filled" | "outlined" | "borderless" | "underlined";
1044
+ };
1045
+ maxCount: NumberConstructor;
1008
1046
  transitionName: StringConstructor;
1009
1047
  choiceTransitionName: {
1010
1048
  type: PropType<"">;
@@ -1087,6 +1125,7 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
1087
1125
  clearIcon: VueTypeValidableDef<any>;
1088
1126
  options: PropType< DefaultOptionType[]>;
1089
1127
  onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
1128
+ prefix: VueTypeValidableDef<any>;
1090
1129
  onSearch: PropType<(value: string) => void>;
1091
1130
  fieldNames: PropType<FieldNames>;
1092
1131
  dropdownStyle: {
@@ -1120,10 +1159,6 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
1120
1159
  onDropdownVisibleChange: {
1121
1160
  type: PropType<(open: boolean) => void>;
1122
1161
  };
1123
- showArrow: {
1124
- type: BooleanConstructor;
1125
- default: any;
1126
- };
1127
1162
  onPopupScroll: PropType<(e: UIEvent) => void>;
1128
1163
  menuItemSelectedIcon: VueTypeValidableDef<any>;
1129
1164
  listItemHeight: NumberConstructor;
@@ -1157,6 +1192,7 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
1157
1192
  virtual: boolean;
1158
1193
  dropdownMatchSelectWidth: number | boolean;
1159
1194
  loading: boolean;
1195
+ variant: "filled" | "outlined" | "borderless" | "underlined";
1160
1196
  bordered: boolean;
1161
1197
  defaultValue: SelectValue;
1162
1198
  status: "" | "error" | "warning";
@@ -1167,11 +1203,11 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
1167
1203
  placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
1168
1204
  showSearch: boolean;
1169
1205
  choiceTransitionName: "";
1170
- showArrow: boolean;
1171
1206
  autoClearSearchValue: boolean;
1172
1207
  filterOption: boolean | FilterFunc<DefaultOptionType>;
1173
1208
  defaultActiveFirstOption: boolean;
1174
1209
  labelInValue: boolean;
1210
+ showArrow: boolean;
1175
1211
  }> | null;
1176
1212
  };
1177
1213
  $slots: Readonly<{
@@ -1202,8 +1238,8 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
1202
1238
  lazy: boolean;
1203
1239
  allowClear: boolean;
1204
1240
  defaultOpen: boolean;
1205
- showSearch: boolean;
1206
1241
  showArrow: boolean;
1242
+ showSearch: boolean;
1207
1243
  autoClearSearchValue: boolean;
1208
1244
  defaultActiveFirstOption: boolean;
1209
1245
  labelInValue: boolean;
@@ -1243,8 +1279,8 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
1243
1279
  lazy: boolean;
1244
1280
  allowClear: boolean;
1245
1281
  defaultOpen: boolean;
1246
- showSearch: boolean;
1247
1282
  showArrow: boolean;
1283
+ showSearch: boolean;
1248
1284
  autoClearSearchValue: boolean;
1249
1285
  defaultActiveFirstOption: boolean;
1250
1286
  labelInValue: boolean;
@@ -1254,7 +1290,7 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
1254
1290
  searchDelay: number;
1255
1291
  }> & Omit<Readonly< ApFieldSelectProps> & Readonly<{
1256
1292
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
1257
- }>, "blur" | "focus" | "request" | ("mode" | "open" | "multiple" | "disabled" | "loading" | "autofocus" | "bordered" | "virtual" | "lazy" | "allowClear" | "defaultOpen" | "showSearch" | "showArrow" | "autoClearSearchValue" | "defaultActiveFirstOption" | "labelInValue" | "emptyText" | "searchMode" | "refetchOnFocus" | "searchDelay")> & ShallowUnwrapRef<{
1293
+ }>, "blur" | "focus" | "request" | ("mode" | "open" | "multiple" | "disabled" | "loading" | "autofocus" | "bordered" | "virtual" | "lazy" | "allowClear" | "defaultOpen" | "showArrow" | "showSearch" | "autoClearSearchValue" | "defaultActiveFirstOption" | "labelInValue" | "emptyText" | "searchMode" | "refetchOnFocus" | "searchDelay")> & ShallowUnwrapRef<{
1258
1294
  focus: () => void;
1259
1295
  blur: () => void;
1260
1296
  request: (clear?: boolean) => Promise<void>;