@juzhenfe/page-model 3.11.0 → 3.11.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/dist/index.es.js CHANGED
@@ -4877,22 +4877,26 @@ const _sfc_main$v = defineComponent({
4877
4877
  });
4878
4878
  var index_vue_vue_type_style_index_0_lang$7 = "";
4879
4879
  const _hoisted_1$b = { class: "el-table__header-cell" };
4880
- const _hoisted_2$6 = ["data-index", "editable", "cell-key"];
4881
- const _hoisted_3$4 = {
4880
+ const _hoisted_2$6 = {
4881
+ key: 0,
4882
+ style: { "color": "red" }
4883
+ };
4884
+ const _hoisted_3$4 = ["data-index", "editable", "cell-key"];
4885
+ const _hoisted_4$4 = {
4882
4886
  key: 0,
4883
4887
  class: "el-table-cell_editable"
4884
4888
  };
4885
- const _hoisted_4$4 = { class: "el-table-cell_editable-inputer" };
4886
- const _hoisted_5$3 = {
4889
+ const _hoisted_5$3 = { class: "el-table-cell_editable-inputer" };
4890
+ const _hoisted_6$2 = {
4887
4891
  key: 0,
4888
4892
  class: "el-table-cell_loading"
4889
4893
  };
4890
- const _hoisted_6$2 = {
4894
+ const _hoisted_7$2 = {
4891
4895
  key: 1,
4892
4896
  class: "empty-edit"
4893
4897
  };
4894
- const _hoisted_7$2 = { key: 0 };
4895
- const _hoisted_8 = ["onClick"];
4898
+ const _hoisted_8 = { key: 0 };
4899
+ const _hoisted_9 = ["onClick"];
4896
4900
  const __default__$i = {
4897
4901
  name: "TableColumn"
4898
4902
  };
@@ -4997,8 +5001,9 @@ const _sfc_main$u = defineComponent({
4997
5001
  }, column.props), {
4998
5002
  header: withCtx(($header) => [
4999
5003
  createElementVNode("div", _hoisted_1$b, [
5004
+ column.required ? (openBlock(), createElementBlock("span", _hoisted_2$6, "*")) : createCommentVNode("", true),
5000
5005
  column.helpText || column.icon ? (openBlock(), createBlock(_component_el_icon, {
5001
- key: 0,
5006
+ key: 1,
5002
5007
  title: column.helpText
5003
5008
  }, {
5004
5009
  default: withCtx(() => [
@@ -5031,9 +5036,9 @@ const _sfc_main$u = defineComponent({
5031
5036
  columnEl.columnKey,
5032
5037
  row[tableManager.value.rowKey]
5033
5038
  )
5034
- ) ? (openBlock(), createElementBlock("div", _hoisted_3$4, [
5039
+ ) ? (openBlock(), createElementBlock("div", _hoisted_4$4, [
5035
5040
  column.editData ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
5036
- createElementVNode("div", _hoisted_4$4, [
5041
+ createElementVNode("div", _hoisted_5$3, [
5037
5042
  createVNode(_sfc_main$z, {
5038
5043
  modelValue: row[column.editData.prop || column.prop],
5039
5044
  renderFn: column.editData.renderFn,
@@ -5060,7 +5065,7 @@ const _sfc_main$u = defineComponent({
5060
5065
  columnEl.columnKey,
5061
5066
  row[tableManager.value.rowKey]
5062
5067
  ) + "-loading"
5063
- ) ? (openBlock(), createElementBlock("div", _hoisted_5$3, [
5068
+ ) ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
5064
5069
  createVNode(_component_el_icon, { class: "is-loading" }, {
5065
5070
  default: withCtx(() => [
5066
5071
  createVNode(unref(loading))
@@ -5068,7 +5073,7 @@ const _sfc_main$u = defineComponent({
5068
5073
  _: 1
5069
5074
  })
5070
5075
  ])) : createCommentVNode("", true)
5071
- ], 64)) : (openBlock(), createElementBlock("div", _hoisted_6$2, "\u8BE5\u5217\u672A\u8BBE\u7F6E\u7F16\u8F91\u7EC4\u4EF6"))
5076
+ ], 64)) : (openBlock(), createElementBlock("div", _hoisted_7$2, "\u8BE5\u5217\u672A\u8BBE\u7F6E\u7F16\u8F91\u7EC4\u4EF6"))
5072
5077
  ])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
5073
5078
  column.renderFn && $index !== -1 ? (openBlock(), createBlock(_sfc_main$v, {
5074
5079
  key: 0,
@@ -5078,7 +5083,7 @@ const _sfc_main$u = defineComponent({
5078
5083
  row,
5079
5084
  index: $index
5080
5085
  }, null, 8, ["render-fn", "context", "row", "index"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
5081
- column.prop ? (openBlock(), createElementBlock("span", _hoisted_7$2, toDisplayString(row[column.prop]), 1)) : createCommentVNode("", true)
5086
+ column.prop ? (openBlock(), createElementBlock("span", _hoisted_8, toDisplayString(row[column.prop]), 1)) : createCommentVNode("", true)
5082
5087
  ], 64)),
5083
5088
  column.editData ? (openBlock(), createElementBlock("span", {
5084
5089
  key: 2,
@@ -5091,9 +5096,9 @@ const _sfc_main$u = defineComponent({
5091
5096
  ]),
5092
5097
  _: 1
5093
5098
  })
5094
- ], 8, _hoisted_8)) : createCommentVNode("", true)
5099
+ ], 8, _hoisted_9)) : createCommentVNode("", true)
5095
5100
  ], 64))
5096
- ], 10, _hoisted_2$6))
5101
+ ], 10, _hoisted_3$4))
5097
5102
  ]),
5098
5103
  _: 2
5099
5104
  }, 1040, ["label", "prop", "width", "min-width", "fixed", "column-key"]);
@@ -11788,7 +11793,7 @@ const defineEditableTable = function(config) {
11788
11793
  };
11789
11794
  var iconfont = "";
11790
11795
  const name = "@juzhenfe/page-model";
11791
- const version = "3.11.0";
11796
+ const version = "3.11.1";
11792
11797
  const types = "dist/main.d.ts";
11793
11798
  const main = "dist/index.umd.js";
11794
11799
  const keywords = [