isobit-ui 0.2.72 → 0.2.74
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/index.js +9 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* isobit-ui v0.2.
|
|
2
|
+
* isobit-ui v0.2.73
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -2115,13 +2115,14 @@ var script$d = {
|
|
|
2115
2115
|
},
|
|
2116
2116
|
render: function render(createElement) {
|
|
2117
2117
|
var me = this,
|
|
2118
|
+
columns = [],
|
|
2118
2119
|
def = me.$scopedSlots["default"];
|
|
2119
2120
|
var children = def({
|
|
2120
2121
|
row: {}
|
|
2121
2122
|
});
|
|
2122
2123
|
|
|
2123
2124
|
if (children) {
|
|
2124
|
-
me.columns
|
|
2125
|
+
//me.columns=[];
|
|
2125
2126
|
children.forEach(function (e, i) {
|
|
2126
2127
|
var column = e.data.attrs;
|
|
2127
2128
|
|
|
@@ -2141,7 +2142,10 @@ var script$d = {
|
|
|
2141
2142
|
e.children.shift();
|
|
2142
2143
|
});
|
|
2143
2144
|
}
|
|
2144
|
-
|
|
2145
|
+
|
|
2146
|
+
columns.push(column);
|
|
2147
|
+
});
|
|
2148
|
+
if (!me.columns) me.columns = columns;
|
|
2145
2149
|
} //se altera el virtual don of each row deleting v-filters
|
|
2146
2150
|
|
|
2147
2151
|
|
|
@@ -2169,7 +2173,8 @@ var script$d = {
|
|
|
2169
2173
|
};
|
|
2170
2174
|
|
|
2171
2175
|
console.log('render');
|
|
2172
|
-
var ct = compiledTemplate.render.call(this, createElement);
|
|
2176
|
+
var ct = compiledTemplate.render.call(this, createElement);
|
|
2177
|
+
console.log(ct); //Se agregan los filtros a las columnas
|
|
2173
2178
|
|
|
2174
2179
|
me.columns.forEach(function (e) {
|
|
2175
2180
|
if (e.filter) ct.children[ct.children.length - 1].children.push(e.filter);
|