bkui-vue 1.0.3-beta.42 → 1.0.3-beta.43
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.cjs.js +32 -32
- package/dist/index.esm.js +3233 -3215
- package/dist/index.umd.js +33 -33
- package/lib/dialog/dialog.d.ts +11 -0
- package/lib/dialog/index.d.ts +23 -0
- package/lib/dialog/props.d.ts +5 -0
- package/lib/modal/index.d.ts +31 -0
- package/lib/modal/index.js +27 -6
- package/lib/modal/modal.d.ts +12 -0
- package/lib/modal/props.mixin.d.ts +5 -0
- package/lib/shared/index.js +4 -1
- package/lib/sideslider/index.d.ts +23 -0
- package/lib/sideslider/index.js +8 -3
- package/lib/sideslider/sideslider.d.ts +11 -0
- package/lib/table/components/table-column.d.ts +1 -1
- package/lib/table/index.d.ts +1 -1
- package/lib/table/index.js +13 -9
- package/lib/table/utils.d.ts +1 -1
- package/lib/table-column/index.d.ts +3 -3
- package/lib/table-column/index.js +9 -6
- package/package.json +1 -1
@@ -816,7 +816,7 @@ var TableColumnProp = {
|
|
816
816
|
var resolveProp = Object.assign({}, this.copyProps(props), {
|
817
817
|
field: props.prop || props.field,
|
818
818
|
render: (_props$render = props.render) !== null && _props$render !== void 0 ? _props$render : this.$slots["default"],
|
819
|
-
uniqueId: this.
|
819
|
+
uniqueId: this.getNodeCtxUid(this.$.ctx)
|
820
820
|
});
|
821
821
|
this.initColumns(resolveProp);
|
822
822
|
return false;
|
@@ -825,6 +825,9 @@ var TableColumnProp = {
|
|
825
825
|
},
|
826
826
|
setNodeUid: function setNodeUid() {
|
827
827
|
var ctx = this.$.ctx;
|
828
|
+
if (!ctx) {
|
829
|
+
return;
|
830
|
+
}
|
828
831
|
if (ctx.uniqueId && !ctx.uniqueId.val) {
|
829
832
|
ctx.uniqueId.val = esm_browser_v4();
|
830
833
|
}
|
@@ -836,9 +839,9 @@ var TableColumnProp = {
|
|
836
839
|
});
|
837
840
|
}
|
838
841
|
},
|
839
|
-
|
842
|
+
getNodeCtxUid: function getNodeCtxUid(ctx) {
|
840
843
|
var _ctx$uniqueId;
|
841
|
-
return (_ctx$uniqueId = ctx.uniqueId) === null || _ctx$uniqueId === void 0 ? void 0 : _ctx$uniqueId.val;
|
844
|
+
return ctx === null || ctx === void 0 || (_ctx$uniqueId = ctx.uniqueId) === null || _ctx$uniqueId === void 0 ? void 0 : _ctx$uniqueId.val;
|
842
845
|
},
|
843
846
|
updateColumnDefineByParent: function updateColumnDefineByParent() {
|
844
847
|
var _this = this;
|
@@ -860,7 +863,7 @@ var TableColumnProp = {
|
|
860
863
|
return getTableNode(parentVnode);
|
861
864
|
};
|
862
865
|
var getNodeUid = function getNodeUid(node) {
|
863
|
-
return _this.
|
866
|
+
return _this.getNodeCtxUid(node.ctx);
|
864
867
|
};
|
865
868
|
var tableNode = getTableNode(selfVnode);
|
866
869
|
if (!tableNode) {
|
@@ -880,7 +883,7 @@ var TableColumnProp = {
|
|
880
883
|
}, _this.copyProps(node.props), {
|
881
884
|
field: node.props.prop || node.props.field,
|
882
885
|
render: (_node$props$render = node.props.render) !== null && _node$props$render !== void 0 ? _node$props$render : (_node$children = node.children) === null || _node$children === void 0 ? void 0 : _node$children["default"],
|
883
|
-
uniqueId: getNodeUid(node
|
886
|
+
uniqueId: getNodeUid(node)
|
884
887
|
});
|
885
888
|
sortColumns.push((0,external_vue_namespaceObject.unref)(resolveProp));
|
886
889
|
index = index + 1;
|
@@ -924,7 +927,7 @@ var TableColumnProp = {
|
|
924
927
|
var resolveProp = Object.assign({}, this.copyProps(this.$props), {
|
925
928
|
field: props.prop || props.field,
|
926
929
|
render: (_props$render2 = props.render) !== null && _props$render2 !== void 0 ? _props$render2 : this.$slots["default"],
|
927
|
-
uniqueId: this.
|
930
|
+
uniqueId: this.getNodeCtxUid(this.$.ctx)
|
928
931
|
});
|
929
932
|
this.initColumns(resolveProp, true);
|
930
933
|
}
|