@airpower/web 1.3.0 → 1.3.3

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.
@@ -61,6 +61,18 @@ export interface ITableColumn extends IBaseField, IElementTableColumn {
61
61
  * ### 前缀文本
62
62
  */
63
63
  prefixText?: string;
64
+ /**
65
+ * ### 是否是图片列
66
+ */
67
+ image?: boolean;
68
+ /**
69
+ * ### 图片宽度
70
+ */
71
+ imageWidth?: number;
72
+ /**
73
+ * ### 图片高度
74
+ */
75
+ imageHeight?: number;
64
76
  /**
65
77
  * ### 是否显示颜色状态灯
66
78
  */
package/dist/main.js CHANGED
@@ -14480,7 +14480,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
14480
14480
  };
14481
14481
  }
14482
14482
  });
14483
- const AMoney = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-f91c14e3"]]);
14483
+ const AMoney = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-f221d0de"]]);
14484
14484
  class QueryPage extends Transformer {
14485
14485
  /**
14486
14486
  * ### 分页页数
@@ -15668,7 +15668,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
15668
15668
  };
15669
15669
  }
15670
15670
  });
15671
- const APayload = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-06da71fc"]]);
15671
+ const APayload = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-039eac97"]]);
15672
15672
  const _hoisted_1$6 = { class: "a-phone-call__content" };
15673
15673
  const _sfc_main$c = /* @__PURE__ */ defineComponent({
15674
15674
  __name: "Call",
@@ -17399,7 +17399,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
17399
17399
  };
17400
17400
  }
17401
17401
  });
17402
- const ColumnSelector = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-f5fa5768"]]);
17402
+ const ColumnSelector = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-520a2ab9"]]);
17403
17403
  const _sfc_main$4 = /* @__PURE__ */ defineComponent({
17404
17404
  __name: "CopyColumn",
17405
17405
  props: {
@@ -17574,7 +17574,7 @@ const _hoisted_5$1 = {
17574
17574
  style: { "color": "#aaa", "margin-right": "3px" }
17575
17575
  };
17576
17576
  const _hoisted_6 = {
17577
- key: 9,
17577
+ key: 10,
17578
17578
  style: { "color": "#aaa" }
17579
17579
  };
17580
17580
  const _hoisted_7 = { class: "ctrlRow" };
@@ -18539,18 +18539,23 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
18539
18539
  column: item,
18540
18540
  data: scope.row,
18541
18541
  dictionary: unref(getDictionary)(unref(EntityClass), item.key)
18542
- }, null, 8, ["column", "data", "dictionary"])) : item.phone ? (openBlock(), createBlock(unref(APhone), {
18542
+ }, null, 8, ["column", "data", "dictionary"])) : item.image ? (openBlock(), createBlock(unref(_sfc_main$k), {
18543
18543
  key: 2,
18544
+ src: getValue(scope, item.key),
18545
+ width: item.imageWidth || 40,
18546
+ height: item.imageHeight || 40
18547
+ }, null, 8, ["src", "width", "height"])) : item.phone ? (openBlock(), createBlock(unref(APhone), {
18548
+ key: 3,
18544
18549
  desensitize: item.desensitize,
18545
18550
  phone: getValue(scope, item.key)
18546
18551
  }, null, 8, ["desensitize", "phone"])) : item.datetime ? (openBlock(), createBlock(unref(ADateTime), {
18547
- key: 3,
18552
+ key: 4,
18548
18553
  formatter: item.datetime === true ? unref(DateTimeFormatter).FULL_DATE_TIME : item.datetime,
18549
18554
  "milli-second": getValue(scope, item.key)
18550
18555
  }, null, 8, ["formatter", "milli-second"])) : item.money ? (openBlock(), createBlock(unref(AMoney), {
18551
- key: 4,
18556
+ key: 5,
18552
18557
  money: getValue(scope, item.key)
18553
- }, null, 8, ["money"])) : item.payload ? (openBlock(), createElementBlock(Fragment, { key: 5 }, [
18558
+ }, null, 8, ["money"])) : item.payload ? (openBlock(), createElementBlock(Fragment, { key: 6 }, [
18554
18559
  item.array ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
18555
18560
  createTextVNode(toDisplayString(getPayloadArray(scope, item.key).map((payload) => payload.getPayloadLabel()).join(",")), 1)
18556
18561
  ], 64)) : (openBlock(), createBlock(unref(APayload), {
@@ -18558,15 +18563,15 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
18558
18563
  payload: getValue(scope, item.key)
18559
18564
  }, null, 8, ["payload"]))
18560
18565
  ], 64)) : item.desensitize ? (openBlock(), createBlock(unref(ADesensitize), {
18561
- key: 6,
18566
+ key: 7,
18562
18567
  content: getValue(scope, item.key),
18563
18568
  type: item.desensitize
18564
18569
  }, null, 8, ["content", "type"])) : item.copy ? (openBlock(), createBlock(unref(_sfc_main$4), {
18565
- key: 7,
18570
+ key: 8,
18566
18571
  column: item,
18567
18572
  data: scope.row
18568
18573
  }, null, 8, ["column", "data"])) : (openBlock(), createElementBlock("div", {
18569
- key: 8,
18574
+ key: 9,
18570
18575
  class: normalizeClass([item.wrap ? "" : "nowrap", "a-table-column"])
18571
18576
  }, toDisplayString(getStringValue(getValue(scope, item.key)) ?? item.emptyValue), 3)),
18572
18577
  item.suffixText ? (openBlock(), createElementBlock("span", _hoisted_6, toDisplayString(item.suffixText), 1)) : createCommentVNode("", true)
package/dist/web.css CHANGED
@@ -824,7 +824,10 @@ textarea {
824
824
  align-items: center;
825
825
  display: flex;
826
826
  color: #aaa;
827
- font-size: 14px;
827
+ font-size: 12px;
828
+ overflow: hidden;
829
+ text-overflow: ellipsis;
830
+ white-space: nowrap;
828
831
  }
829
832
  .a-image .image-upload {
830
833
  position: absolute;
@@ -908,7 +911,7 @@ textarea {
908
911
  height: 10px;
909
912
  margin-right: -15px;
910
913
  border-radius: 100%;
911
- }.web-money[data-v-f91c14e3] {
914
+ }.web-money[data-v-f221d0de] {
912
915
  display: flex;
913
916
  flex-direction: row;
914
917
  align-items: flex-end;
@@ -916,16 +919,16 @@ textarea {
916
919
  width: auto;
917
920
  flex: none;
918
921
  }
919
- .web-money[data-v-f91c14e3] .el-link__inner {
922
+ .web-money[data-v-f221d0de] .el-link__inner {
920
923
  display: flex;
921
924
  flex-direction: row;
922
925
  align-items: center;
923
926
  justify-content: flex-end;
924
927
  }
925
- .web-money .money[data-v-f91c14e3] {
928
+ .web-money .money[data-v-f221d0de] {
926
929
  font-weight: bold;
927
930
  }
928
- .web-money .prefix[data-v-f91c14e3] {
931
+ .web-money .prefix[data-v-f221d0de] {
929
932
  color: #999;
930
933
  font-size: 12px;
931
934
  }.web-page {
@@ -1154,7 +1157,7 @@ textarea {
1154
1157
  }
1155
1158
  ::v-deep(.a-dialog) .main {
1156
1159
  min-height: 200px !important;
1157
- }.a-payload[data-v-06da71fc] {
1160
+ }.a-payload[data-v-039eac97] {
1158
1161
  overflow: hidden;
1159
1162
  text-overflow: ellipsis;
1160
1163
  white-space: normal;
@@ -1213,7 +1216,7 @@ textarea {
1213
1216
  height: 0;
1214
1217
  overflow: hidden;
1215
1218
  overflow-y: auto;
1216
- }.el-check-tag[data-v-f5fa5768] {
1219
+ }.el-check-tag[data-v-520a2ab9] {
1217
1220
  font-weight: normal !important;
1218
1221
  user-select: none;
1219
1222
  font-size: 13px;
@@ -1221,7 +1224,7 @@ textarea {
1221
1224
  margin-bottom: 5px;
1222
1225
  padding: 4px 10px;
1223
1226
  }
1224
- .a-field-selector-bg[data-v-f5fa5768] {
1227
+ .a-field-selector-bg[data-v-520a2ab9] {
1225
1228
  position: fixed;
1226
1229
  left: 0;
1227
1230
  right: 0;
@@ -1230,7 +1233,7 @@ textarea {
1230
1233
  background-color: rgba(0, 0, 0, 0.1);
1231
1234
  z-index: 9999999;
1232
1235
  }
1233
- .a-field-selector-dialog[data-v-f5fa5768] {
1236
+ .a-field-selector-dialog[data-v-520a2ab9] {
1234
1237
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
1235
1238
  position: absolute;
1236
1239
  right: 0;
@@ -1243,13 +1246,13 @@ textarea {
1243
1246
  overflow: hidden;
1244
1247
  z-index: 99999991;
1245
1248
  }
1246
- .a-field-selector-dialog .a-field-selector-title[data-v-f5fa5768] {
1249
+ .a-field-selector-dialog .a-field-selector-title[data-v-520a2ab9] {
1247
1250
  margin-bottom: 10px;
1248
1251
  border-bottom: 1px solid var(--el-color-primary-light-9);
1249
1252
  padding: 8px 16px;
1250
1253
  font-size: 15px;
1251
1254
  }
1252
- .a-field-selector-dialog .a-field-selector-list[data-v-f5fa5768] {
1255
+ .a-field-selector-dialog .a-field-selector-list[data-v-520a2ab9] {
1253
1256
  padding: 5px 15px 10px 15px;
1254
1257
  display: flex;
1255
1258
  flex-wrap: wrap;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@airpower/web",
3
3
  "type": "module",
4
- "version": "1.3.0",
4
+ "version": "1.3.3",
5
5
  "description": "AirPower-Web",
6
6
  "author": {
7
7
  "name": "Hamm",
@@ -39,10 +39,10 @@
39
39
  },
40
40
  "peerDependencies": {},
41
41
  "dependencies": {
42
- "@airpower/enum": "^1.3.0",
43
- "@airpower/i18n": "^1.3.0",
44
- "@airpower/transformer": "^1.3.0",
45
- "@airpower/util": "^1.3.0",
42
+ "@airpower/enum": "^1.3.3",
43
+ "@airpower/i18n": "^1.3.3",
44
+ "@airpower/transformer": "^1.3.3",
45
+ "@airpower/util": "^1.3.3",
46
46
  "@element-plus/icons-vue": "^2.3.1",
47
47
  "axios": "1.11.0",
48
48
  "element-plus": "^2.10.4",
@@ -53,7 +53,7 @@
53
53
  },
54
54
  "devDependencies": {
55
55
  "@antfu/eslint-config": "^5.0.0",
56
- "@types/node": "^24.1.F0",
56
+ "@types/node": "^24.1.0",
57
57
  "@vitejs/plugin-vue": "^6.0.1",
58
58
  "eslint": "^9.32.0",
59
59
  "sass-embedded": "^1.89.2",