-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
38 lines (32 loc) · 999 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import { resolveComponent, openBlock, createBlock } from 'vue';
var script = {
emits: ["input"],
props: {
value: { type: String, required: true, default: null },
},
setup: function (props, _a) {
var emit = _a.emit;
var handleInput = function (value) {
emit("input", value);
};
return { handleInput: handleInput };
},
};
function render(_ctx, _cache, $props, $setup, $data, $options) {
const _component_v_input = resolveComponent("v-input");
return (openBlock(), createBlock(_component_v_input, {
"model-value": $props.value,
"onUpdate:modelValue": $setup.handleInput
}, null, 8 /* PROPS */, ["model-value", "onUpdate:modelValue"]))
}
script.render = render;
script.__file = "src/Input.vue";
var index = {
id: "custom-input",
name: "Custom Input",
description: "Custom input with Vue 3 + Typescript + Sass",
icon: "box",
component: script,
types: ["string"],
};
export default index;