UNPKG

element-plus

Version:
46 lines (38 loc) 1.02 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var vue = require('vue'); var script = vue.defineComponent({ name: "ElCheckTag", props: { checked: Boolean }, emits: ["change"], setup(props, { emit }) { const onChange = () => { emit("change", !props.checked); }; return { onChange }; } }); function render(_ctx, _cache, $props, $setup, $data, $options) { return vue.openBlock(), vue.createElementBlock("span", { class: vue.normalizeClass({ "el-check-tag": true, "is-checked": _ctx.checked }), onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onChange && _ctx.onChange(...args)) }, [ vue.renderSlot(_ctx.$slots, "default") ], 2); } script.render = render; script.__file = "packages/components/check-tag/src/index.vue"; script.install = (app) => { app.component(script.name, script); }; const _CheckTag = script; const ElCheckTag = _CheckTag; exports.ElCheckTag = ElCheckTag; exports.default = _CheckTag;