tdesign-mobile-vue
Version:
tdesign-mobile-vue
83 lines (79 loc) • 2.65 kB
JavaScript
/**
* tdesign v1.8.3
* (c) 2025 TDesign Group
* @license MIT
*/
import { defineComponent, computed, provide, createVNode } from 'vue';
import '../shared/index.mjs';
import props from './row-props.mjs';
import config from '../config.mjs';
import { rowInjectionKey } from './constants.mjs';
import { useTNodeJSX } from '../hooks/tnode.mjs';
import { usePrefixClass } from '../hooks/useClass.mjs';
import { convertUnit } from '../shared/util.mjs';
import '../shared/functions.mjs';
import '../shared/component.mjs';
import '../shared/constants.mjs';
import '../shared/render.mjs';
import '../_chunks/dep-00e3917b.mjs';
import 'lodash-es';
import '../shared/dom.mjs';
import '../shared/render-tnode.mjs';
import '../shared/useToggle/index.mjs';
import '../shared/useCountDown/index.mjs';
import '../_chunks/dep-ef105161.mjs';
import '../_chunks/dep-d41205ed.mjs';
import '@vueuse/core';
import '../shared/useCountDown/utils.mjs';
import '../shared/useChildSlots/index.mjs';
import '../_chunks/dep-58437abb.mjs';
import '../_chunks/dep-e4a72ad9.mjs';
import '../shared/useTouch/index.mjs';
import '../shared/useScrollParent/index.mjs';
import '../shared/useExpose/index.mjs';
import '../shared/useTest/index.mjs';
import '../_chunks/dep-d139aa8e.mjs';
import '../shared/useClickAway/index.mjs';
import '../shared/useGesture/index.mjs';
import '../_chunks/dep-1c25ba43.mjs';
import '@use-gesture/vanilla';
import '../shared/hover.mjs';
import '../hooks/render-tnode.mjs';
import '../config-provider/useConfig.mjs';
import '../config-provider/context.mjs';
import '../_common/js/global-config/mobile/default-config.mjs';
import '../_common/js/global-config/mobile/locale/zh_CN.mjs';
import '../_chunks/dep-3bde6b35.mjs';
import '../_chunks/dep-eea1f1ad.mjs';
import '../_chunks/dep-b3bd9676.mjs';
import '../config-provider/type.mjs';
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.mjs.map