xrk-components 0.4.1-beta.2 → 0.4.2-beta.1
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/lib/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref, watch, getCurrentScope, onScopeDispose, unref, getCurrentInstance, onMounted, nextTick, openBlock, createElementBlock, createElementVNode, warn, computed as computed$1, provide, inject, watchEffect, onBeforeUnmount, toRef, onUnmounted, isRef, onBeforeMount, defineComponent, mergeProps, renderSlot, useAttrs as useAttrs$1, useSlots, shallowRef, withDirectives, createCommentVNode, Fragment, normalizeClass, createBlock, withCtx, resolveDynamicComponent, withModifiers, createVNode, toDisplayString, normalizeStyle, vShow, Transition, reactive, onUpdated, cloneVNode, Text, Comment, Teleport, readonly, onDeactivated, renderList, createTextVNode, toRaw as toRaw$1, vModelCheckbox, toRefs, vModelRadio, withKeys, h as h$1, createSlots, triggerRef, resolveComponent, resolveDirective, vModelText, createApp, render } from 'vue';
|
|
1
|
+
import { ref, watch, getCurrentScope, onScopeDispose, unref, getCurrentInstance, onMounted, nextTick, openBlock, createElementBlock, createElementVNode, warn, computed as computed$1, provide, inject, watchEffect, onBeforeUnmount, toRef, onUnmounted, isRef, onBeforeMount, defineComponent, mergeProps, renderSlot, useAttrs as useAttrs$1, useSlots, shallowRef, withDirectives, createCommentVNode, Fragment, normalizeClass, createBlock, withCtx, resolveDynamicComponent, withModifiers, createVNode, toDisplayString, normalizeStyle, vShow, Transition, reactive, onUpdated, cloneVNode, Text, Comment, Teleport, readonly, onDeactivated, renderList, createTextVNode, toRaw as toRaw$1, vModelCheckbox, toRefs, vModelRadio, withKeys, h as h$1, createSlots, triggerRef, resolveComponent, resolveDirective, vModelText, createApp, normalizeProps, render } from 'vue';
|
|
2
2
|
import { check, base } from 'xrk-tools';
|
|
3
3
|
|
|
4
4
|
var provideKey = 'defaultProps';
|
|
@@ -38888,6 +38888,8 @@ var ElTableColumn$1 = defineComponent({
|
|
|
38888
38888
|
column: {},
|
|
38889
38889
|
$index: -1
|
|
38890
38890
|
});
|
|
38891
|
+
console.log(renderDefault,'renderDefault');
|
|
38892
|
+
|
|
38891
38893
|
const children = [];
|
|
38892
38894
|
if (Array.isArray(renderDefault)) {
|
|
38893
38895
|
for (const childNode of renderDefault) {
|
|
@@ -38902,6 +38904,7 @@ var ElTableColumn$1 = defineComponent({
|
|
|
38902
38904
|
}
|
|
38903
38905
|
}
|
|
38904
38906
|
}
|
|
38907
|
+
|
|
38905
38908
|
const vnode = h$1("div", children);
|
|
38906
38909
|
return vnode;
|
|
38907
38910
|
} catch (e) {
|
|
@@ -41335,6 +41338,7 @@ var script$2 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$2
|
|
|
41335
41338
|
headerAlign: { type: String, required: false },
|
|
41336
41339
|
className: { type: String, required: false },
|
|
41337
41340
|
labelClassName: { type: String, required: false },
|
|
41341
|
+
children: { type: Array, required: false },
|
|
41338
41342
|
textLineClamp: { type: Number, required: false, default: 1 },
|
|
41339
41343
|
renderHeader: { type: Function, required: false },
|
|
41340
41344
|
formatter: { type: Function, required: false },
|
|
@@ -41556,6 +41560,7 @@ var script$2 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$2
|
|
|
41556
41560
|
});
|
|
41557
41561
|
}); };
|
|
41558
41562
|
return function (_ctx, _cache) {
|
|
41563
|
+
var _component_table_column = resolveComponent("table-column", true);
|
|
41559
41564
|
return (openBlock(), createBlock(unref(ElTableColumn), {
|
|
41560
41565
|
prop: __props.prop,
|
|
41561
41566
|
type: __props.type,
|
|
@@ -41578,6 +41583,12 @@ var script$2 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$2
|
|
|
41578
41583
|
default: withCtx(function (_a) {
|
|
41579
41584
|
var row = _a.row, column = _a.column, $index = _a.$index;
|
|
41580
41585
|
return [
|
|
41586
|
+
createCommentVNode(" 数据结构+组件递归实现多表头,使用render会出现el-table-column解析顺序问题 "),
|
|
41587
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.children, function (item) {
|
|
41588
|
+
return (openBlock(), createBlock(_component_table_column, normalizeProps(mergeProps({
|
|
41589
|
+
key: item.label
|
|
41590
|
+
}, item)), null, 16 /* FULL_PROPS */));
|
|
41591
|
+
}), 128 /* KEYED_FRAGMENT */)),
|
|
41581
41592
|
(__props.render)
|
|
41582
41593
|
? (openBlock(), createBlock(unref(BaseTableColumnContentRender), {
|
|
41583
41594
|
key: 0,
|
package/lib/index.umd.js
CHANGED
|
@@ -38891,6 +38891,8 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
38891
38891
|
column: {},
|
|
38892
38892
|
$index: -1
|
|
38893
38893
|
});
|
|
38894
|
+
console.log(renderDefault,'renderDefault');
|
|
38895
|
+
|
|
38894
38896
|
const children = [];
|
|
38895
38897
|
if (Array.isArray(renderDefault)) {
|
|
38896
38898
|
for (const childNode of renderDefault) {
|
|
@@ -38905,6 +38907,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
38905
38907
|
}
|
|
38906
38908
|
}
|
|
38907
38909
|
}
|
|
38910
|
+
|
|
38908
38911
|
const vnode = vue.h("div", children);
|
|
38909
38912
|
return vnode;
|
|
38910
38913
|
} catch (e) {
|
|
@@ -41338,6 +41341,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
41338
41341
|
headerAlign: { type: String, required: false },
|
|
41339
41342
|
className: { type: String, required: false },
|
|
41340
41343
|
labelClassName: { type: String, required: false },
|
|
41344
|
+
children: { type: Array, required: false },
|
|
41341
41345
|
textLineClamp: { type: Number, required: false, default: 1 },
|
|
41342
41346
|
renderHeader: { type: Function, required: false },
|
|
41343
41347
|
formatter: { type: Function, required: false },
|
|
@@ -41559,6 +41563,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
41559
41563
|
});
|
|
41560
41564
|
}); };
|
|
41561
41565
|
return function (_ctx, _cache) {
|
|
41566
|
+
var _component_table_column = vue.resolveComponent("table-column", true);
|
|
41562
41567
|
return (vue.openBlock(), vue.createBlock(vue.unref(ElTableColumn), {
|
|
41563
41568
|
prop: __props.prop,
|
|
41564
41569
|
type: __props.type,
|
|
@@ -41581,6 +41586,12 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
41581
41586
|
default: vue.withCtx(function (_a) {
|
|
41582
41587
|
var row = _a.row, column = _a.column, $index = _a.$index;
|
|
41583
41588
|
return [
|
|
41589
|
+
vue.createCommentVNode(" 数据结构+组件递归实现多表头,使用render会出现el-table-column解析顺序问题 "),
|
|
41590
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.children, function (item) {
|
|
41591
|
+
return (vue.openBlock(), vue.createBlock(_component_table_column, vue.normalizeProps(vue.mergeProps({
|
|
41592
|
+
key: item.label
|
|
41593
|
+
}, item)), null, 16 /* FULL_PROPS */));
|
|
41594
|
+
}), 128 /* KEYED_FRAGMENT */)),
|
|
41584
41595
|
(__props.render)
|
|
41585
41596
|
? (vue.openBlock(), vue.createBlock(vue.unref(BaseTableColumnContentRender), {
|
|
41586
41597
|
key: 0,
|
|
@@ -73,6 +73,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
73
73
|
type: StringConstructor;
|
|
74
74
|
required: false;
|
|
75
75
|
};
|
|
76
|
+
children: {
|
|
77
|
+
type: ArrayConstructor;
|
|
78
|
+
required: false;
|
|
79
|
+
};
|
|
76
80
|
textLineClamp: {
|
|
77
81
|
type: NumberConstructor;
|
|
78
82
|
required: false;
|
|
@@ -215,6 +219,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
215
219
|
type: StringConstructor;
|
|
216
220
|
required: false;
|
|
217
221
|
};
|
|
222
|
+
children: {
|
|
223
|
+
type: ArrayConstructor;
|
|
224
|
+
required: false;
|
|
225
|
+
};
|
|
218
226
|
textLineClamp: {
|
|
219
227
|
type: NumberConstructor;
|
|
220
228
|
required: false;
|