knt-shared 1.8.9 → 1.8.10

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.esm.js CHANGED
@@ -22,84 +22,6 @@ var _export_sfc$1 = (sfc, props) => {
22
22
  }
23
23
  return sfc;
24
24
  };
25
- const _sfc_main$z = defineComponent({
26
- name: "IconExclamationCircle",
27
- props: {
28
- size: {
29
- type: [Number, String]
30
- },
31
- strokeWidth: {
32
- type: Number,
33
- default: 4
34
- },
35
- strokeLinecap: {
36
- type: String,
37
- default: "butt",
38
- validator: (value) => {
39
- return ["butt", "round", "square"].includes(value);
40
- }
41
- },
42
- strokeLinejoin: {
43
- type: String,
44
- default: "miter",
45
- validator: (value) => {
46
- return ["arcs", "bevel", "miter", "miter-clip", "round"].includes(value);
47
- }
48
- },
49
- rotate: Number,
50
- spin: Boolean
51
- },
52
- emits: {
53
- click: (ev) => true
54
- },
55
- setup(props, { emit }) {
56
- const prefixCls = getPrefixCls("icon");
57
- const cls = computed(() => [prefixCls, `${prefixCls}-exclamation-circle`, { [`${prefixCls}-spin`]: props.spin }]);
58
- const innerStyle = computed(() => {
59
- const styles = {};
60
- if (props.size) {
61
- styles.fontSize = isNumber$1(props.size) ? `${props.size}px` : props.size;
62
- }
63
- if (props.rotate) {
64
- styles.transform = `rotate(${props.rotate}deg)`;
65
- }
66
- return styles;
67
- });
68
- const onClick = (ev) => {
69
- emit("click", ev);
70
- };
71
- return {
72
- cls,
73
- innerStyle,
74
- onClick
75
- };
76
- }
77
- });
78
- const _hoisted_1$u = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
79
- function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
80
- return openBlock(), createElementBlock("svg", {
81
- viewBox: "0 0 48 48",
82
- fill: "none",
83
- xmlns: "http://www.w3.org/2000/svg",
84
- stroke: "currentColor",
85
- class: normalizeClass(_ctx.cls),
86
- style: normalizeStyle(_ctx.innerStyle),
87
- "stroke-width": _ctx.strokeWidth,
88
- "stroke-linecap": _ctx.strokeLinecap,
89
- "stroke-linejoin": _ctx.strokeLinejoin,
90
- onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
91
- }, _cache[1] || (_cache[1] = [
92
- createElementVNode("path", { d: "M24 28V14m0 16v4M6 24c0-9.941 8.059-18 18-18s18 8.059 18 18-8.059 18-18 18S6 33.941 6 24Z" }, null, -1)
93
- ]), 14, _hoisted_1$u);
94
- }
95
- var _IconExclamationCircle = /* @__PURE__ */ _export_sfc$1(_sfc_main$z, [["render", _sfc_render$h]]);
96
- const IconExclamationCircle = Object.assign(_IconExclamationCircle, {
97
- install: (app, options) => {
98
- var _a;
99
- const iconPrefix = (_a = options == null ? void 0 : options.iconPrefix) != null ? _a : "";
100
- app.component(iconPrefix + _IconExclamationCircle.name, _IconExclamationCircle);
101
- }
102
- });
103
25
  const _sfc_main$y = defineComponent({
104
26
  name: "IconPlus",
105
27
  props: {
@@ -2383,7 +2305,11 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
2383
2305
  ])
2384
2306
  ])) : createCommentVNode("", true),
2385
2307
  __props.file.status === "error" ? (openBlock(), createElementBlock("div", _hoisted_6$4, [
2386
- createVNode(unref(IconExclamationCircle))
2308
+ !__props.disabled ? (openBlock(), createBlock(unref(IconDelete), {
2309
+ key: 0,
2310
+ class: "action-icon",
2311
+ onClick: handleRemove
2312
+ })) : createCommentVNode("", true)
2387
2313
  ])) : createCommentVNode("", true)
2388
2314
  ], 46, _hoisted_1$c);
2389
2315
  };
@@ -2396,7 +2322,7 @@ const _export_sfc = (sfc, props) => {
2396
2322
  }
2397
2323
  return target;
2398
2324
  };
2399
- const SortableFileItem = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-b7fe69e3"]]);
2325
+ const SortableFileItem = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-07a9ff47"]]);
2400
2326
  const _hoisted_1$b = { class: "sortable-file-list" };
2401
2327
  const _sfc_main$g = /* @__PURE__ */ defineComponent({
2402
2328
  ...{