UNPKG

ivue-material-plus

Version:

A high quality UI components Library with Vue.js

70 lines (65 loc) 3.23 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var options_vue_vue_type_script_lang = require('./options.vue_vue_type_script_lang.js'); var vue = require('vue'); var _pluginVue_exportHelper = require('../../_virtual/_plugin-vue_export-helper.js'); const _hoisted_1 = ["value", "disabled"]; function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { const _component_ivue_option = vue.resolveComponent("ivue-option"); const _component_ivue_select = vue.resolveComponent("ivue-select"); return vue.openBlock(), vue.createElementBlock("div", { class: vue.normalizeClass(_ctx.prefixCls) }, [ vue.createCommentVNode(" \u663E\u793A\u5206\u9875 "), _ctx.showSizer ? (vue.openBlock(), vue.createElementBlock("div", { key: 0, class: vue.normalizeClass(`${_ctx.prefixCls}--sizer`) }, [ vue.createVNode(_component_ivue_select, { modelValue: _ctx.currentPageSize, "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.currentPageSize = $event), placement: _ctx.placement, transfer: _ctx.transfer, disabled: _ctx.disabled, transferClassName: `${_ctx.prefixCls}--sizer__dropdown`, onOnChange: _ctx.handleChangeSize }, { default: vue.withCtx(() => [ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.pageSizeOpts, (item, index) => { return vue.openBlock(), vue.createBlock(_component_ivue_option, { key: index, value: item }, { default: vue.withCtx(() => [ vue.createTextVNode(vue.toDisplayString(`${item} ${_ctx.pageSizeText}`), 1) ]), _: 2 }, 1032, ["value"]); }), 128)) ]), _: 1 }, 8, ["modelValue", "placement", "transfer", "disabled", "transferClassName", "onOnChange"]) ], 2)) : vue.createCommentVNode("v-if", true), vue.createCommentVNode(" \u663E\u793A\u7535\u68AF "), _ctx.showElevator ? (vue.openBlock(), vue.createElementBlock("div", { key: 1, class: vue.normalizeClass(`${_ctx.prefixCls}--elevator`) }, [ vue.createElementVNode("span", null, vue.toDisplayString(_ctx.elevatorText[0]), 1), vue.createCommentVNode(" \u8F93\u5165\u6846 "), vue.createElementVNode("input", { class: vue.normalizeClass(`${_ctx.prefixCls}--elevator__input`), type: "text", value: _ctx.currentPage, disabled: _ctx.disabled, autocomplete: "off", spellcheck: "false", onKeyup: _cache[1] || (_cache[1] = vue.withKeys((...args) => _ctx.handleChangePage && _ctx.handleChangePage(...args), ["enter"])) }, null, 42, _hoisted_1), vue.createElementVNode("span", null, vue.toDisplayString(_ctx.elevatorText[1]), 1) ], 2)) : vue.createCommentVNode("v-if", true) ], 2); } var Options = /* @__PURE__ */ _pluginVue_exportHelper["default"](options_vue_vue_type_script_lang["default"], [["render", _sfc_render], ["__file", "D:\\louise\\person\\project\\GitHub\\ivue-ui-plus\\src\\components\\ivue-page\\options.vue"]]); exports["default"] = Options; //# sourceMappingURL=options.js.map