UNPKG

tdesign-mobile-vue

Version:
78 lines (74 loc) 2.45 kB
/** * tdesign v1.9.3 * (c) 2025 TDesign Group * @license MIT */ import { defineComponent, computed, provide, createVNode } from 'vue'; import '../shared/index.js'; import props from './row-props.js'; import config from '../config.js'; import { rowInjectionKey } from './constants.js'; import { useTNodeJSX } from '../hooks/tnode.js'; import { usePrefixClass } from '../hooks/useClass.js'; import { convertUnit } from '../shared/util.js'; import '../shared/functions.js'; import '../shared/component.js'; import '../shared/render.js'; import '@babel/runtime/helpers/typeof'; import 'lodash-es'; import '../shared/dom.js'; import '../shared/render-tnode.js'; import '../shared/useCountDown/index.js'; import '@babel/runtime/helpers/asyncToGenerator'; import '@babel/runtime/regenerator'; import '@vueuse/core'; import '../shared/useCountDown/utils.js'; import '../shared/useTouch/index.js'; import '../shared/useScrollParent/index.js'; import '../shared/useTest/index.js'; import '@babel/runtime/helpers/defineProperty'; import '../shared/useClickAway/index.js'; import '@babel/runtime/helpers/toConsumableArray'; import '../shared/hover.js'; import '@babel/runtime/helpers/slicedToArray'; import '../config-provider/useConfig.js'; import '../config-provider/context.js'; import '../_common/js/global-config/mobile/default-config.js'; import '../_common/js/global-config/mobile/locale/zh_CN.js'; import '../_chunks/dep-fe4ae270.js'; import '../_chunks/dep-a8acd638.js'; import 'dayjs'; import '../_chunks/dep-2200259b.js'; import '../config-provider/type.js'; import '../hooks/render-tnode.js'; import '../_common/js/utils/general.js'; var prefix = config.prefix; var _Row = defineComponent({ name: "".concat(prefix, "-row"), props: props, setup: function setup(props2) { var renderTNodeJSX = useTNodeJSX(); var rowClass = usePrefixClass("row"); var style = computed(function () { var styles = {}; if (!props2.gutter) { return styles; } var gutterVal = convertUnit(-props2.gutter / 2); styles.marginRight = gutterVal; styles.marginLeft = gutterVal; return styles; }); provide(rowInjectionKey, { gutter: props2.gutter || 0 }); return function () { return createVNode("div", { "class": rowClass.value, "style": style.value }, [renderTNodeJSX("default")]); }; } }); export { _Row as default }; //# sourceMappingURL=row.js.map