sun-biz 0.0.1-beta.6 → 0.0.1-beta.7
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 +21 -15
- package/dist/index.js +21 -15
- package/package.json +1 -1
package/dist/components/index.js
CHANGED
|
@@ -137,22 +137,28 @@ const TableColumn = (0, __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent)({
|
|
|
137
137
|
if (column.render) {
|
|
138
138
|
if (column.editable) {
|
|
139
139
|
let _slot;
|
|
140
|
-
return scope.row.editable ?
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
140
|
+
return scope.row.editable ? [
|
|
141
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.resolveComponent)("el-form-item"), {
|
|
142
|
+
style: {
|
|
143
|
+
marginBottom: '0'
|
|
144
|
+
},
|
|
145
|
+
prop: `tableData.${scope.$index}.${column.prop}`,
|
|
146
|
+
rules: column.rules ? column.rules : []
|
|
147
|
+
}, _isSlot(_slot = column.render(scope.row, scope.$index)) ? _slot : {
|
|
148
|
+
default: ()=>[
|
|
149
|
+
_slot
|
|
150
|
+
],
|
|
151
|
+
_: 1
|
|
152
|
+
}, 8, [
|
|
153
|
+
"rules"
|
|
154
|
+
])
|
|
155
|
+
] : [
|
|
156
|
+
column.render(scope.row, scope.$index)
|
|
157
|
+
];
|
|
154
158
|
}
|
|
155
|
-
return
|
|
159
|
+
return [
|
|
160
|
+
column.render(scope.row, scope.$index)
|
|
161
|
+
];
|
|
156
162
|
}
|
|
157
163
|
if (column.prop && slots[handleProp(column.prop)]) return slots[handleProp(column.prop)](scope);
|
|
158
164
|
if (column.tag) return (0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.resolveComponent)("el-tag"), {
|
package/dist/index.js
CHANGED
|
@@ -105,22 +105,28 @@ const TableColumn = (0, __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent)({
|
|
|
105
105
|
if (column.render) {
|
|
106
106
|
if (column.editable) {
|
|
107
107
|
let _slot;
|
|
108
|
-
return scope.row.editable ?
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
108
|
+
return scope.row.editable ? [
|
|
109
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.resolveComponent)("el-form-item"), {
|
|
110
|
+
style: {
|
|
111
|
+
marginBottom: '0'
|
|
112
|
+
},
|
|
113
|
+
prop: `tableData.${scope.$index}.${column.prop}`,
|
|
114
|
+
rules: column.rules ? column.rules : []
|
|
115
|
+
}, _isSlot(_slot = column.render(scope.row, scope.$index)) ? _slot : {
|
|
116
|
+
default: ()=>[
|
|
117
|
+
_slot
|
|
118
|
+
],
|
|
119
|
+
_: 1
|
|
120
|
+
}, 8, [
|
|
121
|
+
"rules"
|
|
122
|
+
])
|
|
123
|
+
] : [
|
|
124
|
+
column.render(scope.row, scope.$index)
|
|
125
|
+
];
|
|
122
126
|
}
|
|
123
|
-
return
|
|
127
|
+
return [
|
|
128
|
+
column.render(scope.row, scope.$index)
|
|
129
|
+
];
|
|
124
130
|
}
|
|
125
131
|
if (column.prop && slots[handleProp(column.prop)]) return slots[handleProp(column.prop)](scope);
|
|
126
132
|
if (column.tag) return (0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.resolveComponent)("el-tag"), {
|