UNPKG

@aplus-frontend/ui

Version:

59 lines (58 loc) 1.34 kB
import { defineComponent as n, createElementBlock as t, openBlock as r, toDisplayString as l, unref as p } from "vue"; import { formatSecond as s } from "./helper.mjs"; const m = /* @__PURE__ */ n({ name: "ApFieldSecond", __name: "read", props: { mode: {}, class: {}, style: {}, size: {}, bordered: { type: Boolean }, placeholder: {}, name: {}, id: {}, type: {}, addonBefore: {}, addonAfter: {}, prefix: {}, suffix: {}, "onUpdate:value": {}, valueModifiers: {}, status: {}, variant: {}, changeOnWheel: { type: Boolean }, changeOnBlur: { type: Boolean }, stringMode: { type: Boolean }, defaultValue: {}, value: {}, prefixCls: {}, min: {}, max: {}, step: {}, tabindex: {}, controls: { type: Boolean }, readonly: { type: Boolean }, disabled: { type: Boolean }, autofocus: { type: Boolean }, keyboard: { type: Boolean }, parser: {}, formatter: {}, precision: {}, decimalSeparator: {}, onInput: {}, onChange: {}, onPressEnter: {}, onStep: {}, onBlur: {}, onFocus: {}, emptyText: { default: "--" } }, setup(o) { const a = o; return (e, d) => (r(), t("span", null, l(e.value ? p(s)(Number(a.value)) : e.emptyText), 1)); } }); export { m as default };