import { defineComponent, ref, watchEffect, openBlock, createElementBlock, createVNode, mergeProps } from "vue";
import { f as _sfc_main$1 } from "./index2.js";
import "vant";
import "@wltech/svg";
import "dayjs";
import "qs";
import "vuedraggable";
import "vue-router";
var index_vue_vue_type_style_index_0_lang = "";
const _hoisted_1 = { class: "wl-render-textarea" };
const __default__ = {
  name: "RfTextarea"
};
const _sfc_main = /* @__PURE__ */ defineComponent({
  ...__default__,
  props: {
    modelValue: { default: "" }
  },
  emits: ["update:modelValue"],
  setup(__props, { emit }) {
    const props = __props;
    const onInputChange = (val) => {
      emit("update:modelValue", val);
    };
    const inputValue = ref("");
    watchEffect(() => {
      inputValue.value = props.modelValue;
    });
    return (_ctx, _cache) => {
      return openBlock(), createElementBlock("div", _hoisted_1, [
        createVNode(_sfc_main$1, mergeProps({
          paddingLeft: 0,
          modelValue: inputValue.value,
          "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
        }, _ctx.$attrs, {
          onOnChange: onInputChange,
          needDebounce: false
        }), null, 16, ["modelValue"])
      ]);
    };
  }
});
export { _sfc_main as default };
