From c9c263dc43ad90f95f24a036cee9e6b47afb596c Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期六, 21 十二月 2024 18:44:20 +0800
Subject: [PATCH] 新建盐城德森项目
---
uni_modules/uni-table/components/uni-td/uni-td.vue | 180 ++++++++++++++++++++++++++++++------------------------------
1 files changed, 90 insertions(+), 90 deletions(-)
diff --git a/uni_modules/uni-table/components/uni-td/uni-td.vue b/uni_modules/uni-table/components/uni-td/uni-td.vue
index 9ce93e9..484f80b 100644
--- a/uni_modules/uni-table/components/uni-td/uni-td.vue
+++ b/uni_modules/uni-table/components/uni-td/uni-td.vue
@@ -1,90 +1,90 @@
-<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: {
- virtualHost: true
- },
- 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>
+<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: {
+ virtualHost: true
+ },
+ 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>
--
Gitblit v1.9.1