初始化本地仓库

This commit is contained in:
2026-08-31 11:33:59 +08:00
commit 663f74b633
2390 changed files with 402918 additions and 0 deletions
@@ -0,0 +1,19 @@
import type { ExtractPropTypes, PropType } from 'vue';
/**
* TrProps tr props 类型定义
* @description 表格行组件,无特殊 props
*/
export const TrProps = {
/** 自定义根节点样式 */
customStyle: {
type: [String, Object] as PropType<string | Record<string, any>>,
default: () => ({})
},
/** 自定义根节点样式类 */
customClass: {
type: String as unknown as PropType<string>,
default: ''
}
};
export type TrProps = ExtractPropTypes<typeof TrProps>;
@@ -0,0 +1,39 @@
<template>
<view class="u-tr" :class="customClass" :style="$u.toStyle(customStyle)">
<slot></slot>
</view>
</template>
<script lang="ts">
export default {
name: 'u-tr',
options: {
addGlobalClass: true,
// #ifndef MP-TOUTIAO
virtualHost: true,
// #endif
styleIsolation: 'shared'
}
};
</script>
<script setup lang="ts">
import { TrProps } from './types';
import { $u } from '../../';
/**
* tr 表格行标签
* @description 表格组件一般用于展示大量结构化数据的场景(搭配<u-table>使用)
* @tutorial https://uviewpro.cn/zh/components/table.html
* @example <u-tr></u-tr>
*/
const props = defineProps(TrProps);
</script>
<style lang="scss" scoped>
@import '../../libs/css/style.components.scss';
.u-tr {
@include vue-flex;
}
</style>