@tmagic/form 1.2.10 → 1.2.12

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.
@@ -402,7 +402,7 @@
402
402
  onChange: onChangeHandler,
403
403
  onAddDiffCount
404
404
  }, null, 40, ["size", "model", "last-values", "config", "name", "disabled", "prop"])),
405
- vue.unref(extra) ? (vue.openBlock(), vue.createElementBlock("div", {
405
+ vue.unref(extra) && vue.unref(type) !== "table" ? (vue.openBlock(), vue.createElementBlock("div", {
406
406
  key: 2,
407
407
  innerHTML: vue.unref(extra),
408
408
  class: "m-form-tip"
@@ -812,25 +812,17 @@
812
812
  return (_ctx, _cache) => {
813
813
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$9, [
814
814
  vue.createElementVNode("div", null, [
815
- vue.createVNode(vue.unref(design.TMagicIcon), {
816
- style: { "margin-right": "7px" },
817
- onClick: expandHandler
818
- }, {
819
- default: vue.withCtx(() => [
820
- expand.value ? (vue.openBlock(), vue.createBlock(vue.unref(iconsVue.CaretBottom), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(iconsVue.CaretRight), { key: 1 }))
821
- ]),
822
- _: 1
823
- }),
824
815
  vue.createVNode(vue.unref(design.TMagicButton), {
825
816
  text: "",
826
817
  disabled: __props.disabled,
818
+ icon: expand.value ? vue.unref(iconsVue.CaretBottom) : vue.unref(iconsVue.CaretRight),
827
819
  onClick: expandHandler
828
820
  }, {
829
821
  default: vue.withCtx(() => [
830
822
  vue.createTextVNode(vue.toDisplayString(vue.unref(title)), 1)
831
823
  ]),
832
824
  _: 1
833
- }, 8, ["disabled"]),
825
+ }, 8, ["disabled", "icon"]),
834
826
  vue.withDirectives(vue.createVNode(vue.unref(design.TMagicButton), {
835
827
  style: { "color": "#f56c6c" },
836
828
  text: "",
@@ -1051,7 +1043,7 @@
1051
1043
  }
1052
1044
  });
1053
1045
 
1054
- const _hoisted_1$7 = { class: "clearfix" };
1046
+ const _hoisted_1$7 = { style: { "width": "100%", "display": "flex", "align-items": "center" } };
1055
1047
  const _hoisted_2$3 = ["innerHTML"];
1056
1048
  const _hoisted_3$3 = {
1057
1049
  key: 0,
@@ -1092,23 +1084,19 @@
1092
1084
  }, {
1093
1085
  header: vue.withCtx(() => [
1094
1086
  vue.createElementVNode("div", _hoisted_1$7, [
1095
- vue.createElementVNode("a", {
1096
- href: "javascript:",
1097
- style: { "width": "100%", "display": "block" },
1087
+ vue.createVNode(vue.unref(design.TMagicButton), {
1088
+ style: { "padding": "0" },
1089
+ text: "",
1090
+ icon: expand.value ? vue.unref(iconsVue.CaretBottom) : vue.unref(iconsVue.CaretRight),
1098
1091
  onClick: _cache[0] || (_cache[0] = ($event) => expand.value = !expand.value)
1099
- }, [
1100
- vue.createVNode(vue.unref(design.TMagicIcon), null, {
1101
- default: vue.withCtx(() => [
1102
- expand.value ? (vue.openBlock(), vue.createBlock(vue.unref(iconsVue.CaretBottom), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(iconsVue.CaretRight), { key: 1 }))
1103
- ]),
1104
- _: 1
1105
- }),
1106
- vue.createTextVNode(" " + vue.toDisplayString(filter(__props.config.title)) + " ", 1),
1107
- __props.config && __props.config.extra ? (vue.openBlock(), vue.createElementBlock("span", {
1108
- key: 0,
1109
- innerHTML: __props.config.extra,
1110
- class: "m-form-tip"
1111
- }, null, 8, _hoisted_2$3)) : vue.createCommentVNode("", true)
1092
+ }, null, 8, ["icon"]),
1093
+ __props.config && __props.config.extra ? (vue.openBlock(), vue.createElementBlock("span", {
1094
+ key: 0,
1095
+ innerHTML: __props.config.extra,
1096
+ class: "m-form-tip"
1097
+ }, null, 8, _hoisted_2$3)) : vue.createCommentVNode("", true),
1098
+ vue.renderSlot(_ctx.$slots, "header", {}, () => [
1099
+ vue.createTextVNode(vue.toDisplayString(filter(__props.config.title)), 1)
1112
1100
  ])
1113
1101
  ])
1114
1102
  ]),
@@ -1407,11 +1395,7 @@
1407
1395
  setTimeout(() => rowDrop());
1408
1396
  };
1409
1397
  const swapArray = (index1, index2) => {
1410
- [props.model[modelName.value][index1]] = props.model[modelName.value].splice(
1411
- index2,
1412
- 1,
1413
- props.model[modelName.value][index1]
1414
- );
1398
+ props.model[modelName.value].splice(index1, 0, props.model[modelName.value].splice(index2, 1)[0]);
1415
1399
  if (props.sortKey) {
1416
1400
  for (let i = props.model[modelName.value].length - 1, v = 0; i >= 0; i--, v++) {
1417
1401
  props.model[modelName.value][v][props.sortKey] = i;