ivue-material-plus
Version:
A high quality UI components Library with Vue.js
117 lines (114 loc) • 4.95 kB
JavaScript
import _sfc_main from './index.vue_vue_type_script_lang.mjs';
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createCommentVNode, createVNode, withCtx, createTextVNode, createBlock, createElementVNode, withModifiers } from 'vue';
import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
const _hoisted_1 = ["disabled", "autofocus", "readonly", "name", "placeholder", "value", "id"];
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
const _component_ivue_icon = resolveComponent("ivue-icon");
const _component_ivue_button = resolveComponent("ivue-button");
return openBlock(), createElementBlock("div", {
class: normalizeClass(_ctx.wrapperClasses)
}, [
createCommentVNode(" \u4E0A\u4E0B\u6309\u94AE "),
!_ctx.controlsOutside ? (openBlock(), createElementBlock("div", {
key: 0,
class: normalizeClass(`${_ctx.prefixCls}-internal--wrapper`)
}, [
createCommentVNode(" \u4E0A\u6309\u94AE "),
createVNode(_component_ivue_button, {
class: normalizeClass(_ctx.internalUpClasses),
depressed: "",
disabled: _ctx.inputDisabled || _ctx.data.upDisabled,
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.handleUp())
}, {
default: withCtx(() => [
createVNode(_component_ivue_icon, null, {
default: withCtx(() => [
createTextVNode("expand_less")
]),
_: 1
})
]),
_: 1
}, 8, ["class", "disabled"]),
createCommentVNode(" \u4E0B\u6309\u94AE "),
createVNode(_component_ivue_button, {
class: normalizeClass(_ctx.internalDownClasses),
depressed: "",
disabled: _ctx.inputDisabled || _ctx.data.downDisabled,
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.handleDown())
}, {
default: withCtx(() => [
createVNode(_component_ivue_icon, null, {
default: withCtx(() => [
createTextVNode("expand_more")
]),
_: 1
})
]),
_: 1
}, 8, ["class", "disabled"])
], 2)) : createCommentVNode("v-if", true),
createCommentVNode(" \u5916\u90E8\u51CF\u5C11\u6309\u94AE "),
_ctx.controlsOutside ? (openBlock(), createBlock(_component_ivue_button, {
key: 1,
class: normalizeClass(_ctx.outsideDownClasses),
depressed: "",
disabled: _ctx.inputDisabled || _ctx.data.downDisabled,
onClick: _cache[2] || (_cache[2] = ($event) => _ctx.handleDown())
}, {
default: withCtx(() => [
createVNode(_component_ivue_icon, null, {
default: withCtx(() => [
createTextVNode("remove")
]),
_: 1
})
]),
_: 1
}, 8, ["class", "disabled"])) : createCommentVNode("v-if", true),
createCommentVNode(" \u5916\u90E8\u589E\u52A0\u6309\u94AE "),
_ctx.controlsOutside ? (openBlock(), createBlock(_component_ivue_button, {
key: 2,
class: normalizeClass(_ctx.outsideUpClasses),
depressed: "",
onClick: _cache[3] || (_cache[3] = ($event) => _ctx.handleUp()),
disabled: _ctx.inputDisabled || _ctx.data.upDisabled
}, {
default: withCtx(() => [
createVNode(_component_ivue_icon, null, {
default: withCtx(() => [
createTextVNode("add")
]),
_: 1
})
]),
_: 1
}, 8, ["class", "disabled"])) : createCommentVNode("v-if", true),
createCommentVNode(" \u5DE6\u53F3\u6309\u94AE "),
createCommentVNode(" \u8F93\u5165\u6846 "),
createElementVNode("div", {
class: normalizeClass(`${_ctx.prefixCls}-input--wrapper`)
}, [
createElementVNode("input", {
class: normalizeClass(`${_ctx.prefixCls}-input`),
autocomplete: "off",
spellcheck: "false",
disabled: _ctx.inputDisabled,
autofocus: _ctx.autofocus,
readonly: _ctx.readonly || !_ctx.editable,
name: _ctx.name,
placeholder: _ctx.placeholder,
value: _ctx.formatterValue,
id: _ctx.inputId,
onFocus: _cache[4] || (_cache[4] = (...args) => _ctx.focus && _ctx.focus(...args)),
onBlur: _cache[5] || (_cache[5] = (...args) => _ctx.blur && _ctx.blur(...args)),
onChange: _cache[6] || (_cache[6] = (...args) => _ctx.handleChange && _ctx.handleChange(...args)),
onInput: _cache[7] || (_cache[7] = (...args) => _ctx.handleChange && _ctx.handleChange(...args)),
onKeydown: _cache[8] || (_cache[8] = withModifiers((...args) => _ctx.handleKeyDown && _ctx.handleKeyDown(...args), ["stop"]))
}, null, 42, _hoisted_1)
], 2)
], 2);
}
var InputNumber = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\louise\\person\\project\\GitHub\\ivue-ui-plus\\src\\components\\ivue-input-number\\index.vue"]]);
export { InputNumber as default };
//# sourceMappingURL=index2.mjs.map