UNPKG

cione-comp-lib

Version:

`$ yarn add cione-comp-lib` 或者 `$ npm i cione-comp-lib -S`

37 lines (36 loc) 1.22 kB
import { ref, onMounted, openBlock, createElementBlock, normalizeClass, createElementVNode, withModifiers, toDisplayString, renderSlot } from "vue"; import style0 from "./SettingsGroup.vue_used_vue_type_style_index_0_lang.module.mjs"; import _export_sfc from "../../../_virtual/plugin-vue_export-helper.mjs"; const _sfc_main = { name: "SettingsGroup", props: { label: { type: String, required: true } }, setup() { const details = ref(null); onMounted(() => details.value.open = true); return { details }; } }; function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { return openBlock(), createElementBlock("details", { ref: "details", class: normalizeClass(_ctx.$style.details) }, [ createElementVNode("summary", { onContextmenu: _cache[0] || (_cache[0] = withModifiers(() => { }, ["prevent"])) }, toDisplayString($props.label), 33), createElementVNode("div", null, [ renderSlot(_ctx.$slots, "default") ]) ], 2); } const cssModules = { "$style": style0 }; var SettingsGroup = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__cssModules", cssModules]]); export { SettingsGroup as default };