ant-design-x-vue-next
Version:
Ant Design X for Vue — community continuation aligned with @ant-design/x
2 lines (1 loc) • 618 B
JavaScript
;Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");function r(t,o,n){return typeof t=="function"?t(o,n):t}function p(t,o,n){const f=e.computed(()=>r(t(),o(),n())),i=e.computed(()=>!!f.value),l={step:1,interval:50,suffix:null,effect:"typing",keepPrefix:!0},u=e.computed(()=>{const c=f.value;return{...l,...typeof c=="object"&&c?c:{}}});return[i,e.computed(()=>u.value.step),e.computed(()=>u.value.interval),e.computed(()=>u.value.suffix),e.computed(()=>u.value.effect||"typing"),e.computed(()=>u.value.keepPrefix!==!1)]}exports.default=p;