sun-biz 0.0.1-beta.5 → 0.0.1-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/index.js +22 -21
- package/dist/index.js +22 -21
- package/package.json +1 -1
package/dist/components/index.js
CHANGED
|
@@ -130,28 +130,29 @@ const TableColumn = (0, __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent)({
|
|
|
130
130
|
showOverflowTooltip: column.showOverflowTooltip ?? 'operation' !== column.prop
|
|
131
131
|
}), {
|
|
132
132
|
default: (scope)=>{
|
|
133
|
-
let _slot2;
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
133
|
+
let _slot2; // if (column._children)
|
|
134
|
+
// return column._children.map((child) =>
|
|
135
|
+
// RenderTableColumn(child),
|
|
136
|
+
// );
|
|
137
|
+
if (column.render) {
|
|
138
|
+
if (column.editable) {
|
|
139
|
+
let _slot;
|
|
140
|
+
return scope.row.editable ? (0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.resolveComponent)("el-form-item"), {
|
|
141
|
+
style: {
|
|
142
|
+
marginBottom: '0'
|
|
143
|
+
},
|
|
144
|
+
prop: `tableData.${scope.$index}.${column.prop}`,
|
|
145
|
+
rules: column.rules ? column.rules : []
|
|
146
|
+
}, _isSlot(_slot = column.render(scope.row, scope.$index)) ? _slot : {
|
|
147
|
+
default: ()=>[
|
|
148
|
+
_slot
|
|
149
|
+
],
|
|
150
|
+
_: 1
|
|
151
|
+
}, 8, [
|
|
152
|
+
"rules"
|
|
153
|
+
]) : column.render(scope.row, scope.$index);
|
|
154
154
|
}
|
|
155
|
+
return column.render(scope.row, scope.$index);
|
|
155
156
|
}
|
|
156
157
|
if (column.prop && slots[handleProp(column.prop)]) return slots[handleProp(column.prop)](scope);
|
|
157
158
|
if (column.tag) return (0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.resolveComponent)("el-tag"), {
|
package/dist/index.js
CHANGED
|
@@ -98,28 +98,29 @@ const TableColumn = (0, __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent)({
|
|
|
98
98
|
showOverflowTooltip: column.showOverflowTooltip ?? 'operation' !== column.prop
|
|
99
99
|
}), {
|
|
100
100
|
default: (scope)=>{
|
|
101
|
-
let _slot2;
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
101
|
+
let _slot2; // if (column._children)
|
|
102
|
+
// return column._children.map((child) =>
|
|
103
|
+
// RenderTableColumn(child),
|
|
104
|
+
// );
|
|
105
|
+
if (column.render) {
|
|
106
|
+
if (column.editable) {
|
|
107
|
+
let _slot;
|
|
108
|
+
return scope.row.editable ? (0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.resolveComponent)("el-form-item"), {
|
|
109
|
+
style: {
|
|
110
|
+
marginBottom: '0'
|
|
111
|
+
},
|
|
112
|
+
prop: `tableData.${scope.$index}.${column.prop}`,
|
|
113
|
+
rules: column.rules ? column.rules : []
|
|
114
|
+
}, _isSlot(_slot = column.render(scope.row, scope.$index)) ? _slot : {
|
|
115
|
+
default: ()=>[
|
|
116
|
+
_slot
|
|
117
|
+
],
|
|
118
|
+
_: 1
|
|
119
|
+
}, 8, [
|
|
120
|
+
"rules"
|
|
121
|
+
]) : column.render(scope.row, scope.$index);
|
|
122
122
|
}
|
|
123
|
+
return column.render(scope.row, scope.$index);
|
|
123
124
|
}
|
|
124
125
|
if (column.prop && slots[handleProp(column.prop)]) return slots[handleProp(column.prop)](scope);
|
|
125
126
|
if (column.tag) return (0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.resolveComponent)("el-tag"), {
|