@aplus-frontend/ui 0.4.1 → 0.4.3

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 (128) hide show
  1. package/es/src/ap-field/date/helper.d.ts +1 -1
  2. package/es/src/ap-field/date/helper.mjs +9 -9
  3. package/es/src/ap-field/date/index.vue.mjs +33 -25
  4. package/es/src/ap-field/date-range/index.vue.mjs +44 -43
  5. package/es/src/ap-field/interface.d.ts +0 -6
  6. package/es/src/ap-field/number/index.vue.d.ts +322 -1
  7. package/es/src/ap-field/radio/index.vue.d.ts +98 -2
  8. package/es/src/ap-field/rate/index.vue.d.ts +82 -1
  9. package/es/src/ap-field/select/index.vue.d.ts +407 -1
  10. package/es/src/ap-field/select/index.vue.mjs +14 -13
  11. package/es/src/ap-field/slider/index.vue.d.ts +257 -1
  12. package/es/src/ap-field/text-area/index.vue.d.ts +267 -2
  13. package/es/src/ap-form/ap-form.vue.d.ts +636 -1
  14. package/es/src/ap-form/drawer-form/index.vue.d.ts +1454 -4
  15. package/es/src/ap-form/item/index.vue.d.ts +777 -1
  16. package/es/src/ap-form/items/number/index.vue.d.ts +783 -2
  17. package/es/src/ap-form/items/radio/index.vue.d.ts +221 -3
  18. package/es/src/ap-form/items/text/index.vue.d.ts +139 -2
  19. package/es/src/ap-form/items/text/password.vue.d.ts +148 -1
  20. package/es/src/ap-form/items/text-area/index.vue.d.ts +566 -3
  21. package/es/src/ap-form/modal-form/index.vue.d.ts +1454 -5
  22. package/es/src/ap-form/modal-form/index.vue.mjs +64 -66
  23. package/es/src/ap-form/search-form/index.vue.d.ts +1454 -3
  24. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +4 -1
  25. package/es/src/ap-list/index.vue.d.ts +1 -1
  26. package/es/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +3 -1
  27. package/es/src/ap-scroll-bar/index.d.ts +3 -1
  28. package/es/src/ap-table/ap-table.vue.d.ts +1 -1
  29. package/es/src/ap-table/ap-table.vue2.mjs +98 -97
  30. package/es/src/ap-table/constants.d.ts +2263 -13
  31. package/es/src/ap-table/context.d.ts +1 -0
  32. package/es/src/ap-table/context.mjs +11 -10
  33. package/es/src/ap-table/utils.d.ts +1180 -8
  34. package/es/src/ap-tag/ap-tag-group.vue.d.ts +3 -1
  35. package/es/src/ap-upload/apUpload.vue.d.ts +3 -1
  36. package/es/src/ap-upload/components/MultipleFile.vue.d.ts +453 -2
  37. package/es/src/ap-upload/components/Picture.vue.d.ts +3 -1
  38. package/es/src/ap-upload/components/SingleFile.vue.d.ts +3 -1
  39. package/es/src/business/ap-batch-action/ApBatchAction.vue.d.ts +8 -4
  40. package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +45 -55
  41. package/es/src/business/ap-batch-action/index.d.ts +5 -3
  42. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +1 -1
  43. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +66 -61
  44. package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -1
  45. package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +9 -8
  46. package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +3 -1
  47. package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +8 -7
  48. package/es/src/business/ap-group-search/index.d.ts +418 -4
  49. package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +413 -3
  50. package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +15 -14
  51. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +1 -1
  52. package/es/src/business/ap-table-modal/index.d.ts +22 -2
  53. package/es/src/business/ap-table-modal/interface.d.ts +2 -2
  54. package/es/src/business/ap-table-modal/table-modal.vue.d.ts +22 -2
  55. package/es/src/business/batch-input-group/index.vue.d.ts +146 -3
  56. package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +267 -2
  57. package/es/src/business/hooks/usePageListApTable.mjs +20 -18
  58. package/es/src/editable-table/form-item.vue.d.ts +1 -1
  59. package/es/src/editable-table/index.vue.d.ts +1 -1
  60. package/es/src/work-order-modal/work-order-modal.vue.d.ts +827 -2
  61. package/lib/src/ap-field/date/helper.d.ts +1 -1
  62. package/lib/src/ap-field/date/helper.js +1 -1
  63. package/lib/src/ap-field/date/index.vue.js +1 -1
  64. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  65. package/lib/src/ap-field/interface.d.ts +0 -6
  66. package/lib/src/ap-field/number/index.vue.d.ts +322 -1
  67. package/lib/src/ap-field/radio/index.vue.d.ts +98 -2
  68. package/lib/src/ap-field/rate/index.vue.d.ts +82 -1
  69. package/lib/src/ap-field/select/index.vue.d.ts +407 -1
  70. package/lib/src/ap-field/select/index.vue.js +1 -1
  71. package/lib/src/ap-field/slider/index.vue.d.ts +257 -1
  72. package/lib/src/ap-field/text-area/index.vue.d.ts +267 -2
  73. package/lib/src/ap-form/ap-form.vue.d.ts +636 -1
  74. package/lib/src/ap-form/drawer-form/index.vue.d.ts +1454 -4
  75. package/lib/src/ap-form/item/index.vue.d.ts +777 -1
  76. package/lib/src/ap-form/items/number/index.vue.d.ts +783 -2
  77. package/lib/src/ap-form/items/radio/index.vue.d.ts +221 -3
  78. package/lib/src/ap-form/items/text/index.vue.d.ts +139 -2
  79. package/lib/src/ap-form/items/text/password.vue.d.ts +148 -1
  80. package/lib/src/ap-form/items/text-area/index.vue.d.ts +566 -3
  81. package/lib/src/ap-form/modal-form/index.vue.d.ts +1454 -5
  82. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  83. package/lib/src/ap-form/search-form/index.vue.d.ts +1454 -3
  84. package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +4 -1
  85. package/lib/src/ap-list/index.vue.d.ts +1 -1
  86. package/lib/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +3 -1
  87. package/lib/src/ap-scroll-bar/index.d.ts +3 -1
  88. package/lib/src/ap-table/ap-table.vue.d.ts +1 -1
  89. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  90. package/lib/src/ap-table/constants.d.ts +2263 -13
  91. package/lib/src/ap-table/context.d.ts +1 -0
  92. package/lib/src/ap-table/context.js +1 -1
  93. package/lib/src/ap-table/utils.d.ts +1180 -8
  94. package/lib/src/ap-tag/ap-tag-group.vue.d.ts +3 -1
  95. package/lib/src/ap-upload/apUpload.vue.d.ts +3 -1
  96. package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +453 -2
  97. package/lib/src/ap-upload/components/Picture.vue.d.ts +3 -1
  98. package/lib/src/ap-upload/components/SingleFile.vue.d.ts +3 -1
  99. package/lib/src/business/ap-batch-action/ApBatchAction.vue.d.ts +8 -4
  100. package/lib/src/business/ap-batch-action/ApBatchAction.vue2.js +1 -1
  101. package/lib/src/business/ap-batch-action/index.d.ts +5 -3
  102. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +1 -1
  103. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  104. package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -1
  105. package/lib/src/business/ap-group-search/ap-group-search.vue2.js +1 -1
  106. package/lib/src/business/ap-group-search/extension-select/index.vue.d.ts +3 -1
  107. package/lib/src/business/ap-group-search/extension-select/index.vue2.js +1 -1
  108. package/lib/src/business/ap-group-search/index.d.ts +418 -4
  109. package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +413 -3
  110. package/lib/src/business/ap-group-search/popover-select/index.vue2.js +2 -2
  111. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +1 -1
  112. package/lib/src/business/ap-table-modal/index.d.ts +22 -2
  113. package/lib/src/business/ap-table-modal/interface.d.ts +2 -2
  114. package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +22 -2
  115. package/lib/src/business/batch-input-group/index.vue.d.ts +146 -3
  116. package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +267 -2
  117. package/lib/src/business/hooks/usePageListApTable.js +1 -1
  118. package/lib/src/editable-table/form-item.vue.d.ts +1 -1
  119. package/lib/src/editable-table/index.vue.d.ts +1 -1
  120. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +827 -2
  121. package/package.json +5 -5
  122. package/theme/ap-form/index.css +3 -4
  123. package/theme/ap-form/modal-form.css +3 -4
  124. package/theme/ap-form/modal-form.less +3 -4
  125. package/theme/ap-table/ap-table.css +3 -4
  126. package/theme/ap-table-modal/index.css +3 -4
  127. package/theme/editable-table/index.css +3 -4
  128. package/theme/index.css +3 -4
@@ -7,5 +7,5 @@ export declare const formatDay: (d: Dayjs, f: string, begin?: boolean) => number
7
7
  * @param timezone
8
8
  * @returns
9
9
  */
10
- export declare function formatDayWithTimezone(timezone?: ZoneAlias): (d: Dayjs, f: string, begin?: boolean) => number | null;
10
+ export declare function formatDayWithTimezone(timezone?: ZoneAlias): (d: Dayjs, f?: string, begin?: boolean) => number | null;
11
11
  export declare const formatValue: (v: EventValue<Dayjs>) => number | null;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("@aplus-frontend/utils"),u=require("dayjs"),i=(e,o,r=!0)=>{if(!e)return null;let t=e.clone();return t=t.millisecond(0),o.indexOf("ss")===-1&&(t=t.second(r?0:59)),o.indexOf("mm")===-1&&(t=t.minute(r?0:59)),o.indexOf("HH")===-1&&(t=t.hour(r?0:23)),o.indexOf("DD")===-1&&(t=t.date(r?1:0),r||(t=t.month(t.month()+1))),o.indexOf("MM")===-1&&(t=t.month(r?0:12)),t.valueOf()};function f(e){return(o,r,t=!0)=>{const n=i(o,r,t);return e?a.getUtcTimestamp(u(n),e):n}}const m=e=>e&&e.valueOf();exports.formatDay=i;exports.formatDayWithTimezone=f;exports.formatValue=m;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@aplus-frontend/utils"),u=require("dayjs"),a=(e,o,r=!0)=>{if(!e)return null;let t=e.clone();return t=t.millisecond(0),o.indexOf("ss")===-1&&(t=t.second(r?0:59)),o.indexOf("mm")===-1&&(t=t.minute(r?0:59)),o.indexOf("HH")===-1&&(t=t.hour(r?0:23)),o.indexOf("DD")===-1&&(t=t.date(r?1:0),r||(t=t.month(t.month()+1))),o.indexOf("MM")===-1&&(t=t.month(r?0:12)),t.valueOf()};function f(e){return(o,r,t=!0)=>{const n=r?a(o,r,t):o.valueOf();return e?i.getUtcTimestamp(u(n),e):n}}const m=e=>e&&e.valueOf();exports.formatDay=a;exports.formatDayWithTimezone=f;exports.formatValue=m;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("dayjs"),S=require("@aplus-frontend/antdv"),s=require("./constant.js");require("../../hooks/index.js");const v=require("lodash-unified"),T=require("./helper.js"),_=require("@aplus-frontend/utils"),M=require("../hooks/use-default-placeholder.js"),w=require("../../hooks/useControllableValue.js"),R=e.defineComponent({name:"ApFieldDate",__name:"index",props:{mode:{default:"edit"},class:{},style:{},dropdownClassName:{},dropdownAlign:{},popupStyle:{},transitionName:{},placeholder:{},allowClear:{type:Boolean,default:!0},autofocus:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},tabindex:{},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},inputReadOnly:{type:Boolean,default:void 0},id:{},presets:{},suffixIcon:{type:[Object,String,Number,Boolean,null,Array],default:void 0},clearIcon:{type:[Object,String,Number,Boolean,null,Array],default:void 0},getPopupContainer:{},panelRender:{},inputRender:{},onOpenChange:{},onPanelChange:{},onFocus:{},onBlur:{},onMousedown:{},onMouseup:{},onMouseenter:{},onMouseleave:{},onClick:{},onContextmenu:{},onKeydown:{},role:{},name:{},autocomplete:{},direction:{},showToday:{type:Boolean,default:void 0},showTime:{type:Boolean,default:void 0},picker:{},prefixCls:{},defaultPickerValue:{},disabledDate:{},dateRender:{},monthCellRender:{},renderExtraFooter:{},onSelect:{},locale:{},size:{},bordered:{type:Boolean,default:void 0},showNow:{type:Boolean,default:void 0},disabledTime:{},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"},timezone:{}},emits:["update:value"],setup(y,{emit:h}){const o=y,B=h,{value:c,updateValue:f}=w.useControllableValue(o,B),P=M.useDefaultPlaceholder("Date",o),l=e.computed(()=>s.ApFieldDatePresetFormats.indexOf(o.format)>-1),u=e.computed(()=>l.value?s.PRESET_FORMAT_MAP[o.format]:o.format),p=e.computed(()=>{if(v.isNil(e.unref(c)))return;let t=r(e.unref(c));return o.timezone&&(t=r(_.getTimeFormatToZone(e.unref(c),o.timezone))),t}),g=e.computed(()=>e.unref(l)?o.picker??s.PRESET_FORMAT_PICK_MAP[o.format]:o.picker),k=e.computed(()=>{const t=e.unref(l)?s.PRESET_FORMAT_TIME_MAP[o.format]:{};return{...v.omit(o,["value","defaultValue","onChange","onOk","format","onUpdate:value","mode"]),placeholder:e.unref(P),...t}}),m=T.formatDayWithTimezone(o.timezone);function O(t){if(v.isNil(t)){f(null);return}const n=r(t);e.unref(l)?f(m(n,e.unref(u))):f(n.valueOf())}function C(t,n){var i;const d=r(t),a=t?e.unref(l)?m(d,e.unref(u)):d.valueOf():null;(i=o.onChange)==null||i.call(o,a,n)}function b(t){var a;const n=r(t),d=t?e.unref(l)?m(n,e.unref(u)):n.valueOf():null;(a=o.onOk)==null||a.call(o,d)}return(t,n)=>t.mode==="read"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(p.value?e.unref(r)(p.value).format(u.value):t.emptyText),1)],64)):(e.openBlock(),e.createBlock(e.unref(S.DatePicker),e.mergeProps({key:1},k.value,{value:p.value,format:u.value,picker:g.value,"onUpdate:value":O,onChange:C,onOk:b}),e.createSlots({_:2},[e.renderList(t.$slots,(d,a)=>({name:a,fn:e.withCtx(i=>[e.renderSlot(t.$slots,a,e.normalizeProps(e.guardReactiveProps(i||{})))])}))]),1040,["value","format","picker"]))}});exports.default=R;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("dayjs"),S=require("@aplus-frontend/antdv"),s=require("./constant.js");require("../../hooks/index.js");const m=require("lodash-unified"),T=require("./helper.js"),_=require("@aplus-frontend/utils"),M=require("../hooks/use-default-placeholder.js"),w=require("../../hooks/useControllableValue.js"),R=e.defineComponent({name:"ApFieldDate",__name:"index",props:{mode:{default:"edit"},class:{},style:{},dropdownClassName:{},dropdownAlign:{},popupStyle:{},transitionName:{},placeholder:{},allowClear:{type:Boolean,default:!0},autofocus:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},tabindex:{},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},inputReadOnly:{type:Boolean,default:void 0},id:{},presets:{},suffixIcon:{type:[Object,String,Number,Boolean,null,Array],default:void 0},clearIcon:{type:[Object,String,Number,Boolean,null,Array],default:void 0},getPopupContainer:{},panelRender:{},inputRender:{},onOpenChange:{},onPanelChange:{},onFocus:{},onBlur:{},onMousedown:{},onMouseup:{},onMouseenter:{},onMouseleave:{},onClick:{},onContextmenu:{},onKeydown:{},role:{},name:{},autocomplete:{},direction:{},showToday:{type:Boolean,default:void 0},showTime:{type:Boolean,default:void 0},picker:{},prefixCls:{},defaultPickerValue:{},disabledDate:{},dateRender:{},monthCellRender:{},renderExtraFooter:{},onSelect:{},locale:{},size:{},bordered:{type:Boolean,default:void 0},showNow:{type:Boolean,default:void 0},disabledTime:{},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"},timezone:{}},emits:["update:value"],setup(y,{emit:h}){const o=y,B=h,{value:c,updateValue:v}=w.useControllableValue(o,B),P=M.useDefaultPlaceholder("Date",o),a=e.computed(()=>s.ApFieldDatePresetFormats.indexOf(o.format)>-1),u=e.computed(()=>a.value?s.PRESET_FORMAT_MAP[o.format]:o.format),p=e.computed(()=>{if(m.isNil(e.unref(c)))return;let t=r(e.unref(c));return o.timezone&&(t=r(_.getTimeFormatToZone(e.unref(c),o.timezone))),t}),g=e.computed(()=>e.unref(a)?o.picker??s.PRESET_FORMAT_PICK_MAP[o.format]:o.picker),k=e.computed(()=>{const t=e.unref(a)?s.PRESET_FORMAT_TIME_MAP[o.format]:{};return{...m.omit(o,["value","defaultValue","onChange","onOk","format","onUpdate:value","mode"]),placeholder:e.unref(P),...t}}),f=T.formatDayWithTimezone(o.timezone);function C(t){if(m.isNil(t)){v(null);return}const l=r(t);v(f(l,e.unref(a)?e.unref(u):void 0))}function b(t,l){var i;const d=r(t),n=t?f(d,e.unref(a)?e.unref(u):void 0):null;(i=o.onChange)==null||i.call(o,n,l)}function O(t){var n;const l=r(t),d=t?f(l,e.unref(a)?e.unref(u):void 0):null;(n=o.onOk)==null||n.call(o,d)}return(t,l)=>t.mode==="read"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(p.value?e.unref(r)(p.value).format(u.value):t.emptyText),1)],64)):(e.openBlock(),e.createBlock(e.unref(S.DatePicker),e.mergeProps({key:1},k.value,{value:p.value,format:u.value,picker:g.value,"onUpdate:value":C,onChange:b,onOk:O}),e.createSlots({_:2},[e.renderList(t.$slots,(d,n)=>({name:n,fn:e.withCtx(i=>[e.renderSlot(t.$slots,n,e.normalizeProps(e.guardReactiveProps(i||{})))])}))]),1040,["value","format","picker"]))}});exports.default=R;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("../date/constant.js");require("../../hooks/index.js");const r=require("lodash-unified"),d=require("dayjs"),w=require("@aplus-frontend/antdv"),h=require("../date/helper.js"),N=require("@ant-design/icons-vue"),V=require("../../utils/index.js"),B=require("@aplus-frontend/utils"),q=require("../hooks/use-default-placeholder.js"),A=require("../../hooks/useControllableValue.js"),x=e.defineComponent({__name:"index",props:{mode:{default:"edit"},class:{},style:{},id:{},defaultPickerValue:{},placeholder:{},disabled:{type:[Boolean,Array],default:void 0},disabledTime:{},presets:{},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},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"},timezone:{},readModeSeparator:{}},emits:["update:value"],setup(P,{emit:T}){const t=P,O=T,S=e.useSlots(),i=e.computed(()=>g.ApFieldDatePresetFormats.indexOf(t.format)>-1),u=e.computed(()=>i.value?g.PRESET_FORMAT_MAP[t.format]:t.format),{value:p,updateValue:v}=A.useControllableValue(t,O),C=q.useDefaultPlaceholder("DateRange",t),c=h.formatDayWithTimezone(t.timezone),m=e.computed(()=>{var l,s;const n=e.unref(p);if(r.isNil(n)||!(n!=null&&n.length))return n;const a=t.timezone?B.getTimeFormatToZone(e.unref(p)[0],t.timezone):(l=e.unref(p))==null?void 0:l[0],o=t.timezone?B.getTimeFormatToZone(e.unref(p)[1],t.timezone):(s=e.unref(p))==null?void 0:s[1];return[d(a),d(o)]}),D=e.computed(()=>e.unref(i)?t.picker??g.PRESET_FORMAT_PICK_MAP[t.format]:t.picker),M=e.computed(()=>{const n=e.unref(i)?g.PRESET_FORMAT_TIME_MAP[t.format]:{};return{...V.omitUndefined(r.omit(t,["value","onUpdate:value","onChange","onOk","format","mode"])),placeholder:e.unref(C),...n}});function b(n){if(!n){v(n);return}let a=r.isString(n[0])?d(n[0]):n[0],o=r.isString(n[1])?d(n[1]):n[1];e.unref(i)?v([c(a,e.unref(u)),c(o,e.unref(u),!1)]):v([h.formatValue(a),h.formatValue(o)])}function F(n){var f;const a=r.isString(n[0])?d(n[0]):n[0],o=r.isString(n[1])?d(n[1]):n[1],l=n[0]?e.unref(i)?c(a,e.unref(u)):a.valueOf():null,s=n[1]?e.unref(i)?c(o,e.unref(u),!1):o.valueOf():null;(f=t.onOk)==null||f.call(t,[l,s])}function R(n,a){var y,k;if(r.isNil(n)){(y=t.onChange)==null||y.call(t,n,a);return}const o=r.isString(n[0])?d(n[0]):n[0],l=r.isString(n[1])?d(n[1]):n[1],s=n[0]?e.unref(i)?c(o,e.unref(u)):o.valueOf():null,f=n[1]?e.unref(i)?c(l,e.unref(u),!1):l.valueOf():null;(k=t.onChange)==null||k.call(t,[s,f],a)}const _=e.computed(()=>{var o;const n=t.readModeSeparator;if(n)return e.isVNode(n)||r.isFunction(n)?t.readModeSeparator:e.createVNode(e.Fragment,null,[t.readModeSeparator]);const a=(o=S.readModeSeparator)==null?void 0:o.call(S);return a?e.createVNode(e.Fragment,null,[a]):N.SwapRightOutlined});return(n,a)=>{var o,l;return n.mode==="read"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[m.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString((o=m.value[0])==null?void 0:o.format(u.value))+" ",1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(_.value))),e.createTextVNode(" "+e.toDisplayString((l=m.value[1])==null?void 0:l.format(u.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(w.DatePicker).RangePicker,e.mergeProps({key:1},M.value,{value:m.value,picker:D.value,format:u.value,"onUpdate:value":b,onChange:R,onOk:F}),e.createSlots({_:2},[e.renderList(e.unref(r.omit)(n.$slots,"readModeSeparator"),(s,f)=>({name:f,fn:e.withCtx(y=>[e.renderSlot(n.$slots,f,e.normalizeProps(e.guardReactiveProps(y||{})))])}))]),1040,["value","picker","format"]))}}});exports.default=x;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("../date/constant.js");require("../../hooks/index.js");const l=require("lodash-unified"),d=require("dayjs"),w=require("@aplus-frontend/antdv"),N=require("../date/helper.js"),q=require("@ant-design/icons-vue"),A=require("../../utils/index.js"),v=require("@aplus-frontend/utils"),V=require("../hooks/use-default-placeholder.js"),x=require("../../hooks/useControllableValue.js"),E=e.defineComponent({__name:"index",props:{mode:{default:"edit"},class:{},style:{},id:{},defaultPickerValue:{},placeholder:{},disabled:{type:[Boolean,Array],default:void 0},disabledTime:{},presets:{},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},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"},timezone:{},readModeSeparator:{}},emits:["update:value"],setup(P,{emit:T}){const t=P,C=T,S=e.useSlots(),i=e.computed(()=>g.ApFieldDatePresetFormats.indexOf(t.format)>-1),s=e.computed(()=>i.value?g.PRESET_FORMAT_MAP[t.format]:t.format),{value:m,updateValue:h}=x.useControllableValue(t,C),D=V.useDefaultPlaceholder("DateRange",t),c=N.formatDayWithTimezone(t.timezone),y=e.computed(()=>{var a,u;const n=e.unref(m);if(l.isNil(n)||!(n!=null&&n.length))return n;const r=t.timezone?v.getTimeFormatToZone(e.unref(m)[0],t.timezone):(a=e.unref(m))==null?void 0:a[0],o=t.timezone?v.getTimeFormatToZone(e.unref(m)[1],t.timezone):(u=e.unref(m))==null?void 0:u[1];return[d(r),d(o)]}),M=e.computed(()=>e.unref(i)?t.picker??g.PRESET_FORMAT_PICK_MAP[t.format]:t.picker),b=e.computed(()=>{const n=e.unref(i)?g.PRESET_FORMAT_TIME_MAP[t.format]:{};return{...A.omitUndefined(l.omit(t,["value","onUpdate:value","onChange","onOk","format","mode"])),placeholder:e.unref(D),...n}});function O(n){if(!n){h(n);return}let r=l.isString(n[0])?d(n[0]):n[0],o=l.isString(n[1])?d(n[1]):n[1];const a=e.unref(i)?e.unref(s):void 0;h([c(r,a),c(o,a,!1)])}function F(n){var p;const r=l.isString(n[0])?d(n[0]):n[0],o=l.isString(n[1])?d(n[1]):n[1],a=e.unref(i)?e.unref(s):void 0,u=n[0]?c(r,a):null,f=n[1]?c(o,a,!1):null;(p=t.onOk)==null||p.call(t,[u,f])}function R(n,r){var k,B;if(l.isNil(n)){(k=t.onChange)==null||k.call(t,n,r);return}const o=l.isString(n[0])?d(n[0]):n[0],a=l.isString(n[1])?d(n[1]):n[1],u=e.unref(i)?e.unref(s):void 0,f=n[0]?c(o,u):null,p=n[1]?c(a,u,!1):null;(B=t.onChange)==null||B.call(t,[f,p],r)}const _=e.computed(()=>{var o;const n=t.readModeSeparator;if(n)return e.isVNode(n)||l.isFunction(n)?t.readModeSeparator:e.createVNode(e.Fragment,null,[t.readModeSeparator]);const r=(o=S.readModeSeparator)==null?void 0:o.call(S);return r?e.createVNode(e.Fragment,null,[r]):q.SwapRightOutlined});return(n,r)=>{var o,a;return 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((o=y.value[0])==null?void 0:o.format(s.value))+" ",1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(_.value))),e.createTextVNode(" "+e.toDisplayString((a=y.value[1])==null?void 0:a.format(s.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(w.DatePicker).RangePicker,e.mergeProps({key:1},b.value,{value:y.value,picker:M.value,format:s.value,"onUpdate:value":O,onChange:R,onOk:F}),e.createSlots({_:2},[e.renderList(e.unref(l.omit)(n.$slots,"readModeSeparator"),(u,f)=>({name:f,fn:e.withCtx(p=>[e.renderSlot(n.$slots,f,e.normalizeProps(e.guardReactiveProps(p||{})))])}))]),1040,["value","picker","format"]))}}});exports.default=E;
@@ -6,7 +6,6 @@ import { RangePickerProps } from '@aplus-frontend/antdv/es/date-picker/dayjs';
6
6
  import { LiteralUnion } from '../type';
7
7
  import { InputPasswordProps } from './text/input-password-props';
8
8
  import { ZoneAlias } from '@aplus-frontend/utils';
9
- import { SelectValue } from '@aplus-frontend/antdv/es/select';
10
9
  export type FieldMode = 'read' | 'edit';
11
10
  export type BasicApFieldProps<FieldPropsType = any> = {
12
11
  mode?: FieldMode;
@@ -119,11 +118,6 @@ export type ApFieldSelectProps = BasicApFieldProps<Omit<SelectProps, 'mode' | 'v
119
118
  * 是否延迟请求选项列表
120
119
  */
121
120
  lazy?: boolean;
122
- /**
123
- * 选中之前调用,如果返回false,则不更新值,支持异步
124
- * @returns
125
- */
126
- onBeforeSelect?: (newVal: SelectValue) => boolean | Promise<boolean>;
127
121
  };
128
122
  export type ApFieldSelectExpose = {
129
123
  focus: () => void;
@@ -360,7 +360,328 @@ declare const __VLS_component: DefineComponent<ApFieldNumberProps, {
360
360
  controls: boolean;
361
361
  emptyText: string;
362
362
  thousands: boolean;
363
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
363
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
364
+ inputRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
365
+ size: {
366
+ type: PropType<ButtonSize>;
367
+ default: ButtonSize;
368
+ };
369
+ bordered: {
370
+ type: BooleanConstructor;
371
+ default: boolean;
372
+ };
373
+ placeholder: StringConstructor;
374
+ name: StringConstructor;
375
+ id: StringConstructor;
376
+ type: StringConstructor;
377
+ addonBefore: VueTypeValidableDef<any>;
378
+ addonAfter: VueTypeValidableDef<any>;
379
+ prefix: VueTypeValidableDef<any>;
380
+ suffix: VueTypeValidableDef<any>;
381
+ 'onUpdate:value': {
382
+ type: PropType<(value: ValueType) => void>;
383
+ default: (value: ValueType) => void;
384
+ };
385
+ valueModifiers: ObjectConstructor;
386
+ status: {
387
+ type: PropType<"" | "error" | "warning">;
388
+ default: "" | "error" | "warning";
389
+ };
390
+ stringMode: {
391
+ type: BooleanConstructor;
392
+ default: boolean;
393
+ };
394
+ defaultValue: {
395
+ type: PropType<ValueType>;
396
+ default: ValueType;
397
+ };
398
+ value: {
399
+ type: PropType<ValueType>;
400
+ default: ValueType;
401
+ };
402
+ prefixCls: {
403
+ type: PropType<string>;
404
+ default: string;
405
+ };
406
+ min: {
407
+ type: PropType<ValueType>;
408
+ default: ValueType;
409
+ };
410
+ max: {
411
+ type: PropType<ValueType>;
412
+ default: ValueType;
413
+ };
414
+ step: {
415
+ type: PropType<ValueType>;
416
+ default: ValueType;
417
+ };
418
+ tabindex: NumberConstructor;
419
+ controls: {
420
+ type: BooleanConstructor;
421
+ default: boolean;
422
+ };
423
+ readonly: {
424
+ type: BooleanConstructor;
425
+ default: boolean;
426
+ };
427
+ disabled: {
428
+ type: BooleanConstructor;
429
+ default: boolean;
430
+ };
431
+ autofocus: {
432
+ type: BooleanConstructor;
433
+ default: boolean;
434
+ };
435
+ keyboard: {
436
+ type: BooleanConstructor;
437
+ default: boolean;
438
+ };
439
+ parser: {
440
+ type: PropType<(displayValue: string) => ValueType>;
441
+ default: (displayValue: string) => ValueType;
442
+ };
443
+ formatter: {
444
+ type: PropType<(value: ValueType, info: {
445
+ userTyping: boolean;
446
+ input: string;
447
+ }) => string>;
448
+ default: (value: ValueType, info: {
449
+ userTyping: boolean;
450
+ input: string;
451
+ }) => string;
452
+ };
453
+ precision: NumberConstructor;
454
+ decimalSeparator: StringConstructor;
455
+ onInput: {
456
+ type: PropType<(text: string) => void>;
457
+ default: (text: string) => void;
458
+ };
459
+ onChange: {
460
+ type: PropType<(value: ValueType) => void>;
461
+ default: (value: ValueType) => void;
462
+ };
463
+ onPressEnter: {
464
+ type: PropType<KeyboardEventHandler>;
465
+ default: KeyboardEventHandler;
466
+ };
467
+ onStep: {
468
+ type: PropType<(value: ValueType, info: {
469
+ offset: ValueType;
470
+ type: "up" | "down";
471
+ }) => void>;
472
+ default: (value: ValueType, info: {
473
+ offset: ValueType;
474
+ type: "up" | "down";
475
+ }) => void;
476
+ };
477
+ onBlur: {
478
+ type: PropType<(e: FocusEvent) => void>;
479
+ default: (e: FocusEvent) => void;
480
+ };
481
+ onFocus: {
482
+ type: PropType<(e: FocusEvent) => void>;
483
+ default: (e: FocusEvent) => void;
484
+ };
485
+ }>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
486
+ size: ButtonSize;
487
+ value: ValueType;
488
+ onFocus: (e: FocusEvent) => void;
489
+ onBlur: (e: FocusEvent) => void;
490
+ onChange: (value: ValueType) => void;
491
+ onInput: (text: string) => void;
492
+ disabled: boolean;
493
+ max: ValueType;
494
+ min: ValueType;
495
+ prefixCls: string;
496
+ autofocus: boolean;
497
+ readonly: boolean;
498
+ status: "" | "error" | "warning";
499
+ defaultValue: ValueType;
500
+ 'onUpdate:value': (value: ValueType) => void;
501
+ step: ValueType;
502
+ bordered: boolean;
503
+ onPressEnter: KeyboardEventHandler;
504
+ formatter: (value: ValueType, info: {
505
+ userTyping: boolean;
506
+ input: string;
507
+ }) => string;
508
+ keyboard: boolean;
509
+ onStep: (value: ValueType, info: {
510
+ offset: ValueType;
511
+ type: "up" | "down";
512
+ }) => void;
513
+ stringMode: boolean;
514
+ controls: boolean;
515
+ parser: (displayValue: string) => ValueType;
516
+ }, true, {}, CustomSlotsType<{
517
+ addonBefore?: any;
518
+ addonAfter?: any;
519
+ prefix?: any;
520
+ suffix?: any;
521
+ default?: any;
522
+ upIcon?: any;
523
+ downIcon?: any;
524
+ }>, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
525
+ P: {};
526
+ B: {};
527
+ D: {};
528
+ C: {};
529
+ M: {};
530
+ Defaults: {};
531
+ }, Readonly< ExtractPropTypes<{
532
+ size: {
533
+ type: PropType<ButtonSize>;
534
+ default: ButtonSize;
535
+ };
536
+ bordered: {
537
+ type: BooleanConstructor;
538
+ default: boolean;
539
+ };
540
+ placeholder: StringConstructor;
541
+ name: StringConstructor;
542
+ id: StringConstructor;
543
+ type: StringConstructor;
544
+ addonBefore: VueTypeValidableDef<any>;
545
+ addonAfter: VueTypeValidableDef<any>;
546
+ prefix: VueTypeValidableDef<any>;
547
+ suffix: VueTypeValidableDef<any>;
548
+ 'onUpdate:value': {
549
+ type: PropType<(value: ValueType) => void>;
550
+ default: (value: ValueType) => void;
551
+ };
552
+ valueModifiers: ObjectConstructor;
553
+ status: {
554
+ type: PropType<"" | "error" | "warning">;
555
+ default: "" | "error" | "warning";
556
+ };
557
+ stringMode: {
558
+ type: BooleanConstructor;
559
+ default: boolean;
560
+ };
561
+ defaultValue: {
562
+ type: PropType<ValueType>;
563
+ default: ValueType;
564
+ };
565
+ value: {
566
+ type: PropType<ValueType>;
567
+ default: ValueType;
568
+ };
569
+ prefixCls: {
570
+ type: PropType<string>;
571
+ default: string;
572
+ };
573
+ min: {
574
+ type: PropType<ValueType>;
575
+ default: ValueType;
576
+ };
577
+ max: {
578
+ type: PropType<ValueType>;
579
+ default: ValueType;
580
+ };
581
+ step: {
582
+ type: PropType<ValueType>;
583
+ default: ValueType;
584
+ };
585
+ tabindex: NumberConstructor;
586
+ controls: {
587
+ type: BooleanConstructor;
588
+ default: boolean;
589
+ };
590
+ readonly: {
591
+ type: BooleanConstructor;
592
+ default: boolean;
593
+ };
594
+ disabled: {
595
+ type: BooleanConstructor;
596
+ default: boolean;
597
+ };
598
+ autofocus: {
599
+ type: BooleanConstructor;
600
+ default: boolean;
601
+ };
602
+ keyboard: {
603
+ type: BooleanConstructor;
604
+ default: boolean;
605
+ };
606
+ parser: {
607
+ type: PropType<(displayValue: string) => ValueType>;
608
+ default: (displayValue: string) => ValueType;
609
+ };
610
+ formatter: {
611
+ type: PropType<(value: ValueType, info: {
612
+ userTyping: boolean;
613
+ input: string;
614
+ }) => string>;
615
+ default: (value: ValueType, info: {
616
+ userTyping: boolean;
617
+ input: string;
618
+ }) => string;
619
+ };
620
+ precision: NumberConstructor;
621
+ decimalSeparator: StringConstructor;
622
+ onInput: {
623
+ type: PropType<(text: string) => void>;
624
+ default: (text: string) => void;
625
+ };
626
+ onChange: {
627
+ type: PropType<(value: ValueType) => void>;
628
+ default: (value: ValueType) => void;
629
+ };
630
+ onPressEnter: {
631
+ type: PropType<KeyboardEventHandler>;
632
+ default: KeyboardEventHandler;
633
+ };
634
+ onStep: {
635
+ type: PropType<(value: ValueType, info: {
636
+ offset: ValueType;
637
+ type: "up" | "down";
638
+ }) => void>;
639
+ default: (value: ValueType, info: {
640
+ offset: ValueType;
641
+ type: "up" | "down";
642
+ }) => void;
643
+ };
644
+ onBlur: {
645
+ type: PropType<(e: FocusEvent) => void>;
646
+ default: (e: FocusEvent) => void;
647
+ };
648
+ onFocus: {
649
+ type: PropType<(e: FocusEvent) => void>;
650
+ default: (e: FocusEvent) => void;
651
+ };
652
+ }>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
653
+ size: ButtonSize;
654
+ value: ValueType;
655
+ onFocus: (e: FocusEvent) => void;
656
+ onBlur: (e: FocusEvent) => void;
657
+ onChange: (value: ValueType) => void;
658
+ onInput: (text: string) => void;
659
+ disabled: boolean;
660
+ max: ValueType;
661
+ min: ValueType;
662
+ prefixCls: string;
663
+ autofocus: boolean;
664
+ readonly: boolean;
665
+ status: "" | "error" | "warning";
666
+ defaultValue: ValueType;
667
+ 'onUpdate:value': (value: ValueType) => void;
668
+ step: ValueType;
669
+ bordered: boolean;
670
+ onPressEnter: KeyboardEventHandler;
671
+ formatter: (value: ValueType, info: {
672
+ userTyping: boolean;
673
+ input: string;
674
+ }) => string;
675
+ keyboard: boolean;
676
+ onStep: (value: ValueType, info: {
677
+ offset: ValueType;
678
+ type: "up" | "down";
679
+ }) => void;
680
+ stringMode: boolean;
681
+ controls: boolean;
682
+ parser: (displayValue: string) => ValueType;
683
+ }> | null;
684
+ }, any>;
364
685
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
365
686
  export default _default;
366
687
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,6 +1,11 @@
1
1
  import { ApFieldRadioProps } from '../interface';
2
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, GlobalComponents, GlobalDirectives } from 'vue';
3
3
  import { FieldMode } from '..';
4
+ import { VueTypeValidableDef } from '../../../node_modules/vue-types';
5
+ import { RadioGroupChildOption } from '@aplus-frontend/antdv/es/radio/Group';
6
+ import { RadioGroupButtonStyle, RadioGroupOptionType } from '@aplus-frontend/antdv/es/radio/interface';
7
+ import { RadioChangeEvent } from '@aplus-frontend/antdv';
8
+ import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
4
9
  declare function focus(): void;
5
10
  declare function blur(): void;
6
11
  declare const _default: DefineComponent<ApFieldRadioProps, {
@@ -15,5 +20,96 @@ declare const _default: DefineComponent<ApFieldRadioProps, {
15
20
  vertical: boolean;
16
21
  disabled: boolean;
17
22
  emptyText: string;
18
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
23
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
24
+ radioGroupRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
25
+ prefixCls: StringConstructor;
26
+ value: VueTypeValidableDef<any>;
27
+ size: {
28
+ type: PropType<"default" | "small" | "large">;
29
+ default: "default" | "small" | "large";
30
+ };
31
+ options: {
32
+ type: PropType<(string | number | RadioGroupChildOption)[]>;
33
+ default: (string | number | RadioGroupChildOption)[];
34
+ };
35
+ disabled: {
36
+ type: BooleanConstructor;
37
+ default: boolean;
38
+ };
39
+ name: StringConstructor;
40
+ buttonStyle: {
41
+ type: PropType<RadioGroupButtonStyle>;
42
+ default: RadioGroupButtonStyle;
43
+ };
44
+ id: StringConstructor;
45
+ optionType: {
46
+ type: PropType<RadioGroupOptionType>;
47
+ default: RadioGroupOptionType;
48
+ };
49
+ onChange: {
50
+ type: PropType<(e: RadioChangeEvent) => void>;
51
+ default: (e: RadioChangeEvent) => void;
52
+ };
53
+ 'onUpdate:value': {
54
+ type: PropType<(val: any) => void>;
55
+ default: (val: any) => void;
56
+ };
57
+ }>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
58
+ size: "default" | "small" | "large";
59
+ onChange: (e: RadioChangeEvent) => void;
60
+ disabled: boolean;
61
+ 'onUpdate:value': (val: any) => void;
62
+ options: (string | number | RadioGroupChildOption)[];
63
+ buttonStyle: RadioGroupButtonStyle;
64
+ optionType: RadioGroupOptionType;
65
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
66
+ P: {};
67
+ B: {};
68
+ D: {};
69
+ C: {};
70
+ M: {};
71
+ Defaults: {};
72
+ }, Readonly< ExtractPropTypes<{
73
+ prefixCls: StringConstructor;
74
+ value: VueTypeValidableDef<any>;
75
+ size: {
76
+ type: PropType<"default" | "small" | "large">;
77
+ default: "default" | "small" | "large";
78
+ };
79
+ options: {
80
+ type: PropType<(string | number | RadioGroupChildOption)[]>;
81
+ default: (string | number | RadioGroupChildOption)[];
82
+ };
83
+ disabled: {
84
+ type: BooleanConstructor;
85
+ default: boolean;
86
+ };
87
+ name: StringConstructor;
88
+ buttonStyle: {
89
+ type: PropType<RadioGroupButtonStyle>;
90
+ default: RadioGroupButtonStyle;
91
+ };
92
+ id: StringConstructor;
93
+ optionType: {
94
+ type: PropType<RadioGroupOptionType>;
95
+ default: RadioGroupOptionType;
96
+ };
97
+ onChange: {
98
+ type: PropType<(e: RadioChangeEvent) => void>;
99
+ default: (e: RadioChangeEvent) => void;
100
+ };
101
+ 'onUpdate:value': {
102
+ type: PropType<(val: any) => void>;
103
+ default: (val: any) => void;
104
+ };
105
+ }>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
106
+ size: "default" | "small" | "large";
107
+ onChange: (e: RadioChangeEvent) => void;
108
+ disabled: boolean;
109
+ 'onUpdate:value': (val: any) => void;
110
+ options: (string | number | RadioGroupChildOption)[];
111
+ buttonStyle: RadioGroupButtonStyle;
112
+ optionType: RadioGroupOptionType;
113
+ }> | null;
114
+ }, any>;
19
115
  export default _default;
@@ -114,7 +114,88 @@ declare const __VLS_component: DefineComponent<ApFieldRateProps, {
114
114
  allowClear: boolean;
115
115
  allowHalf: boolean;
116
116
  character: any;
117
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
117
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
118
+ rateRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
119
+ prefixCls: StringConstructor;
120
+ count: NumberConstructor;
121
+ value: NumberConstructor;
122
+ allowHalf: {
123
+ type: BooleanConstructor;
124
+ default: any;
125
+ };
126
+ allowClear: {
127
+ type: BooleanConstructor;
128
+ default: any;
129
+ };
130
+ tooltips: PropType<string[]>;
131
+ disabled: {
132
+ type: BooleanConstructor;
133
+ default: any;
134
+ };
135
+ character: VueTypeValidableDef<any>;
136
+ autofocus: {
137
+ type: BooleanConstructor;
138
+ default: any;
139
+ };
140
+ tabindex: VueTypeDef<string | number>;
141
+ direction: PropType<Direction>;
142
+ id: StringConstructor;
143
+ onChange: PropType<(value: number) => void>;
144
+ onHoverChange: PropType<(value: number) => void>;
145
+ 'onUpdate:value': PropType<(value: number) => void>;
146
+ onFocus: PropType<FocusEventHandler>;
147
+ onBlur: PropType<FocusEventHandler>;
148
+ onKeydown: PropType<KeyboardEventHandler>;
149
+ }>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
150
+ disabled: boolean;
151
+ autofocus: boolean;
152
+ allowClear: boolean;
153
+ allowHalf: boolean;
154
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
155
+ P: {};
156
+ B: {};
157
+ D: {};
158
+ C: {};
159
+ M: {};
160
+ Defaults: {};
161
+ }, Readonly< ExtractPropTypes<{
162
+ prefixCls: StringConstructor;
163
+ count: NumberConstructor;
164
+ value: NumberConstructor;
165
+ allowHalf: {
166
+ type: BooleanConstructor;
167
+ default: any;
168
+ };
169
+ allowClear: {
170
+ type: BooleanConstructor;
171
+ default: any;
172
+ };
173
+ tooltips: PropType<string[]>;
174
+ disabled: {
175
+ type: BooleanConstructor;
176
+ default: any;
177
+ };
178
+ character: VueTypeValidableDef<any>;
179
+ autofocus: {
180
+ type: BooleanConstructor;
181
+ default: any;
182
+ };
183
+ tabindex: VueTypeDef<string | number>;
184
+ direction: PropType<Direction>;
185
+ id: StringConstructor;
186
+ onChange: PropType<(value: number) => void>;
187
+ onHoverChange: PropType<(value: number) => void>;
188
+ 'onUpdate:value': PropType<(value: number) => void>;
189
+ onFocus: PropType<FocusEventHandler>;
190
+ onBlur: PropType<FocusEventHandler>;
191
+ onKeydown: PropType<KeyboardEventHandler>;
192
+ }>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
193
+ disabled: boolean;
194
+ autofocus: boolean;
195
+ allowClear: boolean;
196
+ allowHalf: boolean;
197
+ }> | null;
198
+ }, any>;
118
199
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
119
200
  export default _default;
120
201
  type __VLS_WithTemplateSlots<T, S> = T & {