UNPKG

tdesign-vue-next

Version:
54 lines (50 loc) 1.83 kB
/** * tdesign v1.19.2 * (c) 2026 tdesign * @license MIT */ import { defineComponent, computed, createVNode } from 'vue'; import _defineProperty from '@babel/runtime/helpers/defineProperty'; import 'lodash-es'; import '@babel/runtime/helpers/toConsumableArray'; import '@babel/runtime/helpers/typeof'; import '../../_chunks/dep-c68ea098.js'; import { u as useTNodeJSX } from '../../_chunks/dep-7bdccf65.js'; import { u as usePrefixClass } from '../../_chunks/dep-e8dd47a9.js'; import '@babel/runtime/helpers/slicedToArray'; import '../../_chunks/dep-91fc762d.js'; import '../../_chunks/dep-f0f392fb.js'; import '../../_chunks/dep-d518fdfb.js'; import '../../_chunks/dep-8d4d971b.js'; import '../../config-provider/hooks/useConfig.js'; import '../../config-provider/utils/context.js'; import '../../_chunks/dep-509ddbe3.js'; import 'dayjs'; import '@babel/runtime/helpers/createClass'; import '@babel/runtime/helpers/classCallCheck'; var TImageViewerIcon = defineComponent({ name: "TImageModalIcon", props: { disabled: Boolean, onClick: Function, label: String, icon: Function }, setup: function setup(props) { var classPrefix = usePrefixClass(); var renderTNodeJSX = useTNodeJSX(); var wrapClass = computed(function () { return ["".concat(classPrefix.value, "-image-viewer__modal-icon"), _defineProperty({}, "".concat(classPrefix.value, "-is-disabled"), props.disabled)]; }); return function () { return createVNode("div", { "class": wrapClass.value, "onClick": props.onClick }, [renderTNodeJSX("icon"), props.label && createVNode("span", { "class": "".concat(classPrefix.value, "-image-viewer__modal-icon-label") }, [props.label])]); }; } }); export { TImageViewerIcon as default }; //# sourceMappingURL=ImageModalIcon.js.map