From 9bdb95c9e34cef640534e5e5a1e2225a80442000 Mon Sep 17 00:00:00 2001
From: HelenHuang <LinHuang@pollex.com.tw>
Date: 星期四, 09 六月 2022 15:48:15 +0800
Subject: [PATCH] TODO#139894 [ footer -最下方說明與保經代合作 ] 文案修改

---
 PAMapp/node_modules/element-ui/lib/table.js |  219 +++++++++++++++++++++++++++++++++---------------------
 1 files changed, 134 insertions(+), 85 deletions(-)

diff --git a/PAMapp/node_modules/element-ui/lib/table.js b/PAMapp/node_modules/element-ui/lib/table.js
index 0853c8e..68ebea9 100644
--- a/PAMapp/node_modules/element-ui/lib/table.js
+++ b/PAMapp/node_modules/element-ui/lib/table.js
@@ -2285,7 +2285,6 @@
 
     var noData = !(this.store.states.data && this.store.states.data.length);
     this.viewportHeight = this.scrollX ? tableHeight - (noData ? 0 : this.gutterWidth) : tableHeight;
-
     this.updateScrollY();
     this.notifyObservers('scrollable');
   };
@@ -2506,10 +2505,90 @@
     }
   }
 });
+// CONCATENATED MODULE: ./packages/table/src/table-row.js
+var table_row_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+/* harmony default export */ var table_row = ({
+  name: 'ElTableRow',
+  props: ['columns', 'row', 'index', 'isSelected', 'isExpanded', 'store', 'context', 'firstDefaultColumnIndex', 'treeRowData', 'treeIndent', 'columnsHidden', 'getSpan', 'getColspanRealWidth', 'getCellStyle', 'getCellClass', 'handleCellMouseLeave', 'handleCellMouseEnter', 'fixed'],
+  render: function render() {
+    var _this = this;
+
+    var h = arguments[0];
+    var columns = this.columns,
+        row = this.row,
+        $index = this.index,
+        store = this.store,
+        context = this.context,
+        firstDefaultColumnIndex = this.firstDefaultColumnIndex,
+        treeRowData = this.treeRowData,
+        treeIndent = this.treeIndent,
+        _columnsHidden = this.columnsHidden,
+        columnsHidden = _columnsHidden === undefined ? [] : _columnsHidden,
+        isSelected = this.isSelected,
+        isExpanded = this.isExpanded;
+
+
+    return h('tr', [columns.map(function (column, cellIndex) {
+      var _getSpan = _this.getSpan(row, column, $index, cellIndex),
+          rowspan = _getSpan.rowspan,
+          colspan = _getSpan.colspan;
+
+      if (!rowspan || !colspan) {
+        return null;
+      }
+      var columnData = table_row_extends({}, column);
+      columnData.realWidth = _this.getColspanRealWidth(columns, colspan, cellIndex);
+      var data = {
+        store: store,
+        isSelected: isSelected,
+        isExpanded: isExpanded,
+        _self: context,
+        column: columnData,
+        row: row,
+        $index: $index
+      };
+      if (cellIndex === firstDefaultColumnIndex && treeRowData) {
+        data.treeNode = {
+          indent: treeRowData.level * treeIndent,
+          level: treeRowData.level
+        };
+        if (typeof treeRowData.expanded === 'boolean') {
+          data.treeNode.expanded = treeRowData.expanded;
+          // 銵冽����蝸
+          if ('loading' in treeRowData) {
+            data.treeNode.loading = treeRowData.loading;
+          }
+          if ('noLazyChildren' in treeRowData) {
+            data.treeNode.noLazyChildren = treeRowData.noLazyChildren;
+          }
+        }
+      }
+      return h(
+        'td',
+        {
+          style: _this.getCellStyle($index, cellIndex, row, column),
+          'class': _this.getCellClass($index, cellIndex, row, column),
+          attrs: { rowspan: rowspan,
+            colspan: colspan
+          },
+          on: {
+            'mouseenter': function mouseenter($event) {
+              return _this.handleCellMouseEnter($event, row);
+            },
+            'mouseleave': _this.handleCellMouseLeave
+          }
+        },
+        [column.renderCell.call(_this._renderProxy, _this.$createElement, data, columnsHidden[cellIndex])]
+      );
+    })]);
+  }
+});
 // CONCATENATED MODULE: ./packages/table/src/table-body.js
 var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
 
 var table_body_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
 
 
 
@@ -2527,7 +2606,8 @@
 
   components: {
     ElCheckbox: checkbox_default.a,
-    ElTooltip: tooltip_default.a
+    ElTooltip: tooltip_default.a,
+    TableRow: table_row
   },
 
   props: {
@@ -2593,6 +2673,13 @@
       });
     }
   }), {
+    columnsHidden: function columnsHidden() {
+      var _this2 = this;
+
+      return this.columns.map(function (column, index) {
+        return _this2.isColumnHidden(index);
+      });
+    },
     firstDefaultColumnIndex: function firstDefaultColumnIndex() {
       return Object(util_["arrayFindIndex"])(this.columns, function (_ref2) {
         var type = _ref2.type;
@@ -2605,7 +2692,7 @@
     // don't trigger getter of currentRow in getCellClass. see https://jsfiddle.net/oe2b4hqt/
     // update DOM manually. see https://github.com/ElemeFE/element/pull/13954/files#diff-9b450c00d0a9dec0ffad5a3176972e40
     'store.states.hoverRow': function storeStatesHoverRow(newVal, oldVal) {
-      var _this2 = this;
+      var _this3 = this;
 
       if (!this.store.states.isComplex || this.$isServer) return;
       var raf = window.requestAnimationFrame;
@@ -2615,7 +2702,7 @@
         };
       }
       raf(function () {
-        var rows = _this2.$el.querySelectorAll('.el-table__row');
+        var rows = _this3.$el.querySelectorAll('.el-table__row');
         var oldRow = rows[oldVal];
         var newRow = rows[newVal];
         if (oldRow) {
@@ -2838,16 +2925,13 @@
       table.$emit('row-' + name, row, column, event);
     },
     rowRender: function rowRender(row, $index, treeRowData) {
-      var _this3 = this;
+      var _this4 = this;
 
       var h = this.$createElement;
       var treeIndent = this.treeIndent,
           columns = this.columns,
           firstDefaultColumnIndex = this.firstDefaultColumnIndex;
 
-      var columnsHidden = columns.map(function (column, index) {
-        return _this3.isColumnHidden(index);
-      });
       var rowClasses = this.getRowClass(row, $index);
       var display = true;
       if (treeRowData) {
@@ -2859,83 +2943,49 @@
       var displayStyle = display ? null : {
         display: 'none'
       };
-      return h(
-        'tr',
-        {
-          style: [displayStyle, this.getRowStyle(row, $index)],
-          'class': rowClasses,
-          key: this.getKeyOfRow(row, $index),
-          on: {
-            'dblclick': function dblclick($event) {
-              return _this3.handleDoubleClick($event, row);
-            },
-            'click': function click($event) {
-              return _this3.handleClick($event, row);
-            },
-            'contextmenu': function contextmenu($event) {
-              return _this3.handleContextMenu($event, row);
-            },
-            'mouseenter': function mouseenter(_) {
-              return _this3.handleMouseEnter($index);
-            },
-            'mouseleave': this.handleMouseLeave
-          }
+      return h(table_row, {
+        style: [displayStyle, this.getRowStyle(row, $index)],
+        'class': rowClasses,
+        key: this.getKeyOfRow(row, $index),
+        nativeOn: {
+          'dblclick': function dblclick($event) {
+            return _this4.handleDoubleClick($event, row);
+          },
+          'click': function click($event) {
+            return _this4.handleClick($event, row);
+          },
+          'contextmenu': function contextmenu($event) {
+            return _this4.handleContextMenu($event, row);
+          },
+          'mouseenter': function mouseenter(_) {
+            return _this4.handleMouseEnter($index);
+          },
+          'mouseleave': this.handleMouseLeave
         },
-        [columns.map(function (column, cellIndex) {
-          var _getSpan = _this3.getSpan(row, column, $index, cellIndex),
-              rowspan = _getSpan.rowspan,
-              colspan = _getSpan.colspan;
-
-          if (!rowspan || !colspan) {
-            return null;
-          }
-          var columnData = table_body_extends({}, column);
-          columnData.realWidth = _this3.getColspanRealWidth(columns, colspan, cellIndex);
-          var data = {
-            store: _this3.store,
-            _self: _this3.context || _this3.table.$vnode.context,
-            column: columnData,
-            row: row,
-            $index: $index
-          };
-          if (cellIndex === firstDefaultColumnIndex && treeRowData) {
-            data.treeNode = {
-              indent: treeRowData.level * treeIndent,
-              level: treeRowData.level
-            };
-            if (typeof treeRowData.expanded === 'boolean') {
-              data.treeNode.expanded = treeRowData.expanded;
-              // 銵冽����蝸
-              if ('loading' in treeRowData) {
-                data.treeNode.loading = treeRowData.loading;
-              }
-              if ('noLazyChildren' in treeRowData) {
-                data.treeNode.noLazyChildren = treeRowData.noLazyChildren;
-              }
-            }
-          }
-          return h(
-            'td',
-            {
-              style: _this3.getCellStyle($index, cellIndex, row, column),
-              'class': _this3.getCellClass($index, cellIndex, row, column),
-              attrs: { rowspan: rowspan,
-                colspan: colspan
-              },
-              on: {
-                'mouseenter': function mouseenter($event) {
-                  return _this3.handleCellMouseEnter($event, row);
-                },
-                'mouseleave': _this3.handleCellMouseLeave
-              }
-            },
-            [column.renderCell.call(_this3._renderProxy, _this3.$createElement, data, columnsHidden[cellIndex])]
-          );
-        })]
-      );
+        attrs: {
+          columns: columns,
+          row: row,
+          index: $index,
+          store: this.store,
+          context: this.context || this.table.$vnode.context,
+          firstDefaultColumnIndex: firstDefaultColumnIndex,
+          treeRowData: treeRowData,
+          treeIndent: treeIndent,
+          columnsHidden: this.columnsHidden,
+          getSpan: this.getSpan,
+          getColspanRealWidth: this.getColspanRealWidth,
+          getCellStyle: this.getCellStyle,
+          getCellClass: this.getCellClass,
+          handleCellMouseEnter: this.handleCellMouseEnter,
+          handleCellMouseLeave: this.handleCellMouseLeave,
+          isSelected: this.store.isSelected(row),
+          isExpanded: this.store.states.expandRows.indexOf(row) > -1,
+          fixed: this.fixed
+        }
+      });
     },
     wrappedRowRender: function wrappedRowRender(row, $index) {
-      var _this4 = this;
+      var _this5 = this;
 
       var h = this.$createElement;
 
@@ -3021,7 +3071,7 @@
                 }
               }
               i++;
-              tmp.push(_this4.rowRender(node, $index + i, innerTreeRowData));
+              tmp.push(_this5.rowRender(node, $index + i, innerTreeRowData));
               if (cur) {
                 var _nodes = lazyTreeNodeMap[childKey] || node[childrenColumnName];
                 traverse(_nodes, cur);
@@ -3787,8 +3837,7 @@
 
       return classes.join(' ');
     },
-    toggleAllSelection: function toggleAllSelection(event) {
-      event.stopPropagation();
+    toggleAllSelection: function toggleAllSelection() {
       this.store.commit('toggleAllSelection');
     },
     handleFilterClick: function handleFilterClick(event, column) {

--
Gitblit v1.8.0