Files
appco_dist/.output/server/chunks/build/BasicTextArea-DXPo10n9.mjs
T
2025-08-09 21:39:49 +03:30

52 lines
1.5 KiB
JavaScript

import { defineComponent, computed, mergeProps, useSSRContext } from 'vue';
import { ssrRenderComponent } from 'vue/server-renderer';
import { a as __nuxt_component_0$1 } from './index-CdFOXozc.mjs';
const _sfc_main = /* @__PURE__ */ defineComponent({
__name: "BasicTextArea",
__ssrInlineRender: true,
props: {
title: {},
value: {},
showCount: { type: Boolean },
maxlength: {},
placeHolder: {},
rows: {}
},
emits: ["update:value"],
setup(__props, { emit: __emit }) {
const props = __props;
const emit = __emit;
const localValue = computed({
get() {
return props.value;
},
set(value) {
emit("update:value", value);
}
});
return (_ctx, _push, _parent, _attrs) => {
const _component_a_textarea = __nuxt_component_0$1;
_push(ssrRenderComponent(_component_a_textarea, mergeProps({
value: localValue.value,
"onUpdate:value": ($event) => localValue.value = $event,
class: "",
type: props.type,
maxlength: _ctx.maxlength,
"show-count": props.showCount,
rows: _ctx.rows,
placeHolder: props.placeHolder
}, _attrs), null, _parent));
};
}
});
const _sfc_setup = _sfc_main.setup;
_sfc_main.setup = (props, ctx) => {
const ssrContext = useSSRContext();
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/BasicPacks/BasicTextArea.vue");
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};
export { _sfc_main as _ };
//# sourceMappingURL=BasicTextArea-DXPo10n9.mjs.map