UNPKG

birdpaper-ui

Version:

一个通用的 vue3 UI组件库。A common vue3 UI component library.

50 lines (49 loc) 2.04 kB
import _sfc_main from "./datePicker.vue2.js"; import { resolveComponent, openBlock, createBlock, withCtx, createVNode, normalizeClass } from "vue"; import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js"; function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { const _component_IconCalendarLine = resolveComponent("IconCalendarLine"); const _component_bp_input = resolveComponent("bp-input"); const _component_picker_panel = resolveComponent("picker-panel"); const _component_bp_trigger = resolveComponent("bp-trigger"); return openBlock(), createBlock(_component_bp_trigger, { popupVisible: _ctx.showPopup, "onUpdate:popupVisible": _cache[1] || (_cache[1] = ($event) => _ctx.showPopup = $event), transition: "fade-dropdown", hideTrigger: _ctx.hideTrigger, disabled: _ctx.disabled, "popup-offset": 10, position: "left-bottom", "update-at-scroll": "" }, { content: withCtx(() => [ createVNode(_component_picker_panel) ]), default: withCtx(() => [ createVNode(_component_bp_input, { ref: "inputRef", modelValue: _ctx.global_value, "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.global_value = $event), class: normalizeClass(_ctx.name), placeholder: _ctx.placeholder, disabled: _ctx.disabled, readonly: _ctx.readonly, "is-danger": _ctx.isDanger, clearable: _ctx.clearable, size: _ctx.size, onInput: _ctx.onInput, onBlur: _ctx.onBlur }, { perfix: withCtx(() => [ createVNode(_component_IconCalendarLine, { style: { "position": "relative", "top": "1px" } }) ]), _: 1 }, 8, ["modelValue", "class", "placeholder", "disabled", "readonly", "is-danger", "clearable", "size", "onInput", "onBlur"]) ]), _: 1 }, 8, ["popupVisible", "hideTrigger", "disabled"]); } const _datePicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]); export { _datePicker as default };