@airpower/web 1.7.2 → 1.7.4

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.
@@ -22,6 +22,13 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
22
22
  type: BooleanConstructor;
23
23
  default: boolean;
24
24
  };
25
+ /**
26
+ * ### 是否换行
27
+ */
28
+ wrap: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ };
25
32
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
26
33
  /**
27
34
  * ### 复制的内容
@@ -37,7 +44,15 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
37
44
  type: BooleanConstructor;
38
45
  default: boolean;
39
46
  };
47
+ /**
48
+ * ### 是否换行
49
+ */
50
+ wrap: {
51
+ type: BooleanConstructor;
52
+ default: boolean;
53
+ };
40
54
  }>> & Readonly<{}>, {
55
+ wrap: boolean;
41
56
  hideIcon: boolean;
42
57
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
43
58
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
package/dist/main.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent, createElementBlock, openBlock, createElementVNode, computed, createBlock, unref, mergeProps, toHandlers, withCtx, renderSlot, resolveComponent, createVNode, createTextVNode, toDisplayString, ref, withModifiers, normalizeClass, onMounted, watch, resolveDirective, Transition, normalizeStyle, withDirectives, createCommentVNode, nextTick, inject, shallowRef, shallowReactive, reactive, h, provide, getCurrentInstance, watchEffect, Fragment, renderList, vShow, useSlots, createSlots, createApp, onUpdated, mergeModels, useModel, withKeys } from "vue";
1
+ import { defineComponent, createElementBlock, openBlock, createElementVNode, computed, createBlock, unref, mergeProps, toHandlers, withCtx, renderSlot, resolveComponent, normalizeClass, createVNode, createTextVNode, toDisplayString, ref, withModifiers, onMounted, watch, resolveDirective, Transition, normalizeStyle, withDirectives, createCommentVNode, nextTick, inject, shallowRef, shallowReactive, reactive, h, provide, getCurrentInstance, watchEffect, Fragment, renderList, vShow, useSlots, createSlots, createApp, onUpdated, mergeModels, useModel, withKeys } from "vue";
2
2
  import ElementPlus, { ElLink, ElButton, ElMessage, ElMessageBox, ElIcon, ElEmpty, ElFormItem, ElSubMenu, ElMenuItem, ElMenu, ElImage, ElUpload, ElPagination, ElPopover, ElRadioGroup, ElRadioButton, ElInput, ElProgress, ElTabPane, ElTabs, ElCheckTag, ElSelect, ElOption, ElTable, ElTableColumn, ElTree } from "element-plus";
3
3
  import axios from "axios";
4
4
  /*! Element Plus Icons Vue v2.3.1 */
@@ -2375,7 +2375,6 @@ class FeedbackUtil {
2375
2375
  return this.showAlert(message, title, "info");
2376
2376
  }
2377
2377
  }
2378
- const _hoisted_1$i = { class: "a-copy" };
2379
2378
  const _sfc_main$u = /* @__PURE__ */ defineComponent({
2380
2379
  __name: "Copy",
2381
2380
  props: {
@@ -2392,6 +2391,13 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
2392
2391
  hideIcon: {
2393
2392
  type: Boolean,
2394
2393
  default: false
2394
+ },
2395
+ /**
2396
+ * ### 是否换行
2397
+ */
2398
+ wrap: {
2399
+ type: Boolean,
2400
+ default: false
2395
2401
  }
2396
2402
  },
2397
2403
  setup(__props) {
@@ -2406,7 +2412,9 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
2406
2412
  }
2407
2413
  return (_ctx, _cache) => {
2408
2414
  const _component_ElLink = resolveComponent("ElLink");
2409
- return openBlock(), createElementBlock("div", _hoisted_1$i, [
2415
+ return openBlock(), createElementBlock("div", {
2416
+ class: normalizeClass([__props.wrap ? "" : "nowrap", "a-copy"])
2417
+ }, [
2410
2418
  createVNode(_component_ElLink, mergeProps({ underline: "never" }, _ctx.$attrs, { onClick: copy }, toHandlers(_ctx.$attrs)), {
2411
2419
  default: withCtx(() => [
2412
2420
  renderSlot(_ctx.$slots, "default", {}, () => [
@@ -2415,7 +2423,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
2415
2423
  ]),
2416
2424
  _: 3
2417
2425
  }, 16)
2418
- ]);
2426
+ ], 2);
2419
2427
  };
2420
2428
  }
2421
2429
  });
@@ -2426,7 +2434,7 @@ const _export_sfc = (sfc, props) => {
2426
2434
  }
2427
2435
  return target;
2428
2436
  };
2429
- const ACopy = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-b77c3899"]]);
2437
+ const ACopy = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-7d70c465"]]);
2430
2438
  var cryptoJs$1 = { exports: {} };
2431
2439
  function commonjsRequire(path) {
2432
2440
  throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
@@ -17436,12 +17444,15 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
17436
17444
  return (props.data[key] || "").toString() || props.column.emptyValue || "-";
17437
17445
  });
17438
17446
  return (_ctx, _cache) => {
17439
- return openBlock(), createBlock(unref(ACopy), { content: value.value }, {
17447
+ return openBlock(), createBlock(unref(ACopy), {
17448
+ content: value.value,
17449
+ warp: _ctx.column.wrap
17450
+ }, {
17440
17451
  default: withCtx(() => [
17441
17452
  createTextVNode(toDisplayString(value.value), 1)
17442
17453
  ]),
17443
17454
  _: 1
17444
- }, 8, ["content"]);
17455
+ }, 8, ["content", "warp"]);
17445
17456
  };
17446
17457
  }
17447
17458
  });
package/dist/web.css CHANGED
@@ -442,14 +442,14 @@ textarea {
442
442
  100% {
443
443
  transform: rotate(360deg);
444
444
  }
445
- }.a-copy[data-v-b77c3899] {
445
+ }.a-copy[data-v-7d70c465] {
446
446
  font-size: inherit;
447
447
  color: inherit;
448
448
  display: flex;
449
449
  flex-direction: row;
450
450
  align-items: center;
451
451
  }
452
- .a-copy[data-v-b77c3899] .el-link {
452
+ .a-copy[data-v-7d70c465] .el-link {
453
453
  overflow: hidden;
454
454
  text-overflow: ellipsis;
455
455
  }.a-friend-datetime[data-v-f4449296],
@@ -1344,7 +1344,7 @@ textarea {
1344
1344
  .a-table-container .a-table .is-right .cell {
1345
1345
  justify-content: flex-end;
1346
1346
  }
1347
- .a-table-container .a-table .a-table-column.nowrap {
1347
+ .a-table-container .a-table .el-table__cell.nowrap {
1348
1348
  overflow: hidden;
1349
1349
  text-overflow: ellipsis;
1350
1350
  white-space: nowrap;
@@ -1352,7 +1352,7 @@ textarea {
1352
1352
  cursor: pointer;
1353
1353
  user-select: none;
1354
1354
  }
1355
- .a-table-container .a-table .a-table-column.nowrap * {
1355
+ .a-table-container .a-table .el-table__cell.nowrap * {
1356
1356
  width: 100%;
1357
1357
  overflow: hidden;
1358
1358
  text-overflow: ellipsis;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@airpower/web",
3
3
  "type": "module",
4
- "version": "1.7.2",
4
+ "version": "1.7.4",
5
5
  "description": "AirPower-Web",
6
6
  "author": {
7
7
  "name": "Hamm",