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.
@@ -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.getNodeUid(this.$.ctx)
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
- getNodeUid: function getNodeUid(ctx) {
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.getNodeUid(node.ctx);
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.ctx)
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.getNodeUid(this.$.ctx)
930
+ uniqueId: this.getNodeCtxUid(this.$.ctx)
928
931
  });
929
932
  this.initColumns(resolveProp, true);
930
933
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "1.0.3-beta.42",
3
+ "version": "1.0.3-beta.43",
4
4
  "workspaces": {
5
5
  "packages": [
6
6
  "packages/!(**.bak)*",