1
This commit is contained in:
33
uni_modules/uni-table/changelog.md
Normal file
33
uni_modules/uni-table/changelog.md
Normal file
@@ -0,0 +1,33 @@
|
||||
## 1.2.8(2024-10-15)
|
||||
- 修复 运行到抖音小程序上出现的问题
|
||||
## 1.2.7(2024-10-15)
|
||||
- 修复 微信小程序中的getSystemInfo警告
|
||||
## 1.2.4(2023-12-19)
|
||||
- 修复 uni-tr只有一列时minWidth计算错误,列变化实时计算更新
|
||||
## 1.2.3(2023-03-28)
|
||||
- 修复 在vue3模式下可能会出现错误的问题
|
||||
## 1.2.2(2022-11-29)
|
||||
- 优化 主题样式
|
||||
## 1.2.1(2022-06-06)
|
||||
- 修复 微信小程序存在无使用组件的问题
|
||||
## 1.2.0(2021-11-19)
|
||||
- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
|
||||
- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-table](https://uniapp.dcloud.io/component/uniui/uni-table)
|
||||
## 1.1.0(2021-07-30)
|
||||
- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834)
|
||||
## 1.0.7(2021-07-08)
|
||||
- 新增 uni-th 支持 date 日期筛选范围
|
||||
## 1.0.6(2021-07-05)
|
||||
- 新增 uni-th 支持 range 筛选范围
|
||||
## 1.0.5(2021-06-28)
|
||||
- 新增 uni-th 筛选功能
|
||||
## 1.0.4(2021-05-12)
|
||||
- 新增 示例地址
|
||||
- 修复 示例项目缺少组件的Bug
|
||||
## 1.0.3(2021-04-16)
|
||||
- 新增 sortable 属性,是否开启单列排序
|
||||
- 优化 表格多选逻辑
|
||||
## 1.0.2(2021-03-22)
|
||||
- uni-tr 添加 disabled 属性,用于 type=selection 时,设置某行是否可由全选按钮控制
|
||||
## 1.0.1(2021-02-05)
|
||||
- 调整为uni_modules目录规范
|
||||
460
uni_modules/uni-table/components/uni-table/uni-table.vue
Normal file
460
uni_modules/uni-table/components/uni-table/uni-table.vue
Normal file
File diff suppressed because it is too large
Load Diff
34
uni_modules/uni-table/components/uni-tbody/uni-tbody.vue
Normal file
34
uni_modules/uni-table/components/uni-tbody/uni-tbody.vue
Normal file
@@ -0,0 +1,34 @@
|
||||
<template>
|
||||
<!-- #ifdef H5 -->
|
||||
<tbody>
|
||||
<slot></slot>
|
||||
</tbody>
|
||||
<!-- #endif -->
|
||||
<!-- #ifndef H5 -->
|
||||
<view><slot></slot></view>
|
||||
<!-- #endif -->
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'uniBody',
|
||||
options: {
|
||||
// #ifdef MP-TOUTIAO
|
||||
virtualHost: false,
|
||||
// #endif
|
||||
// #ifndef MP-TOUTIAO
|
||||
virtualHost: true
|
||||
// #endif
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
created() {},
|
||||
methods: {}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
95
uni_modules/uni-table/components/uni-td/uni-td.vue
Normal file
95
uni_modules/uni-table/components/uni-td/uni-td.vue
Normal file
@@ -0,0 +1,95 @@
|
||||
<template>
|
||||
<!-- #ifdef H5 -->
|
||||
<td class="uni-table-td" :rowspan="rowspan" :colspan="colspan" :class="{'table--border':border}" :style="{width:width + 'px','text-align':align}">
|
||||
<slot></slot>
|
||||
</td>
|
||||
<!-- #endif -->
|
||||
<!-- #ifndef H5 -->
|
||||
<!-- :class="{'table--border':border}" -->
|
||||
<view class="uni-table-td" :class="{'table--border':border}" :style="{width:width + 'px','text-align':align}">
|
||||
<slot></slot>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
/**
|
||||
* Td 单元格
|
||||
* @description 表格中的标准单元格组件
|
||||
* @tutorial https://ext.dcloud.net.cn/plugin?id=3270
|
||||
* @property {Number} align = [left|center|right] 单元格对齐方式
|
||||
*/
|
||||
export default {
|
||||
name: 'uniTd',
|
||||
options: {
|
||||
// #ifdef MP-TOUTIAO
|
||||
virtualHost: false,
|
||||
// #endif
|
||||
// #ifndef MP-TOUTIAO
|
||||
virtualHost: true
|
||||
// #endif
|
||||
},
|
||||
props: {
|
||||
width: {
|
||||
type: [String, Number],
|
||||
default: ''
|
||||
},
|
||||
align: {
|
||||
type: String,
|
||||
default: 'left'
|
||||
},
|
||||
rowspan: {
|
||||
type: [Number,String],
|
||||
default: 1
|
||||
},
|
||||
colspan: {
|
||||
type: [Number,String],
|
||||
default: 1
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
border: false
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.root = this.getTable()
|
||||
this.border = this.root.border
|
||||
},
|
||||
methods: {
|
||||
/**
|
||||
* 获取父元素实例
|
||||
*/
|
||||
getTable() {
|
||||
let parent = this.$parent;
|
||||
let parentName = parent.$options.name;
|
||||
while (parentName !== 'uniTable') {
|
||||
parent = parent.$parent;
|
||||
if (!parent) return false;
|
||||
parentName = parent.$options.name;
|
||||
}
|
||||
return parent;
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
$border-color:#EBEEF5;
|
||||
|
||||
.uni-table-td {
|
||||
display: table-cell;
|
||||
padding: 8px 10px;
|
||||
font-size: 14px;
|
||||
border-bottom: 1px $border-color solid;
|
||||
font-weight: 400;
|
||||
color: #606266;
|
||||
line-height: 23px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.table--border {
|
||||
border-right: 1px $border-color solid;
|
||||
}
|
||||
</style>
|
||||
511
uni_modules/uni-table/components/uni-th/filter-dropdown.vue
Normal file
511
uni_modules/uni-table/components/uni-th/filter-dropdown.vue
Normal file
File diff suppressed because it is too large
Load Diff
295
uni_modules/uni-table/components/uni-th/uni-th.vue
Normal file
295
uni_modules/uni-table/components/uni-th/uni-th.vue
Normal file
File diff suppressed because it is too large
Load Diff
137
uni_modules/uni-table/components/uni-thead/uni-thead.vue
Normal file
137
uni_modules/uni-table/components/uni-thead/uni-thead.vue
Normal file
File diff suppressed because it is too large
Load Diff
179
uni_modules/uni-table/components/uni-tr/table-checkbox.vue
Normal file
179
uni_modules/uni-table/components/uni-tr/table-checkbox.vue
Normal file
File diff suppressed because it is too large
Load Diff
184
uni_modules/uni-table/components/uni-tr/uni-tr.vue
Normal file
184
uni_modules/uni-table/components/uni-tr/uni-tr.vue
Normal file
File diff suppressed because it is too large
Load Diff
9
uni_modules/uni-table/i18n/en.json
Normal file
9
uni_modules/uni-table/i18n/en.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"filter-dropdown.reset": "Reset",
|
||||
"filter-dropdown.search": "Search",
|
||||
"filter-dropdown.submit": "Submit",
|
||||
"filter-dropdown.filter": "Filter",
|
||||
"filter-dropdown.gt": "Greater or equal to",
|
||||
"filter-dropdown.lt": "Less than or equal to",
|
||||
"filter-dropdown.date": "Date"
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user