@fangzhongya/fang-ui 0.1.24 → 0.1.25

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.
@@ -80,6 +80,7 @@
80
80
  .box-adjust-body .box-adjust-title-icon {
81
81
  width: 20px;
82
82
  display: inline-flex;
83
+ color: #fff;
83
84
  align-items: center;
84
85
  margin: 0 4px;
85
86
  height: 100%;
@@ -37,6 +37,7 @@ $box-adjust: 'box-adjust';
37
37
  .#{z($box-adjust, 'title-icon')} {
38
38
  width: 20px;
39
39
  display: inline-flex;
40
+ color: #fff;
40
41
  align-items: center;
41
42
  margin: 0 4px;
42
43
  height: 100%;
@@ -119,4 +119,5 @@
119
119
  @use './tablesp/index.scss' as *;
120
120
  @use './tablespd/index.scss' as *;
121
121
  @use './tabless/index.scss' as *;
122
+ @use './tablesv/index.scss' as *;
122
123
  @use './tablesvp/index.scss' as *;
@@ -4,5 +4,6 @@ export type ListValue = {
4
4
  suffix?: string;
5
5
  disabled?: boolean;
6
6
  type?: string;
7
+ [key: string]: any;
7
8
  };
8
9
  export declare function getListValue(list: Array<any>): Array<ListValue>;
@@ -80,7 +80,8 @@ const dataHandle = list.comHandle;
80
80
  const dataEmits = [...list.emits, "views", "httpRequest"];
81
81
  const dataSlot = {
82
82
  default: "default",
83
- views: "views"
83
+ views: "views",
84
+ list: "list"
84
85
  };
85
86
  const dataExpose = {};
86
87
  const types = {
@@ -129,6 +129,7 @@ export type DataEmits = typeof dataEmits;
129
129
  export declare const dataSlot: {
130
130
  default: string;
131
131
  views: string;
132
+ list: string;
132
133
  };
133
134
  /**
134
135
  * @expose setValue (val:<string>设置的数据 )
@@ -78,7 +78,8 @@ const dataHandle = comHandle;
78
78
  const dataEmits = [...emits, "views", "httpRequest"];
79
79
  const dataSlot = {
80
80
  default: "default",
81
- views: "views"
81
+ views: "views",
82
+ list: "list"
82
83
  };
83
84
  const dataExpose = {};
84
85
  const types = {
@@ -24,10 +24,11 @@ const util = require("./util.cjs");
24
24
  require("../../form/index.cjs");
25
25
  const index$3 = require("../../../hooks/props-default/index.cjs");
26
26
  const index$4 = require("element-plus/es/components/form/index");
27
- const _hoisted_1 = ["title"];
28
- const _hoisted_2 = ["onClick", "title"];
27
+ const _hoisted_1 = ["onMouseenter"];
28
+ const _hoisted_2 = ["title"];
29
29
  const _hoisted_3 = ["onClick", "title"];
30
30
  const _hoisted_4 = ["onClick", "title"];
31
+ const _hoisted_5 = ["onClick", "title"];
31
32
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
32
33
  ...{ inheritAttrs: false },
33
34
  __name: "index",
@@ -48,6 +49,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
48
49
  const multiple = listFuObj.multiple;
49
50
  const isloading = vue.ref(false);
50
51
  const disabled = index$4.useDisabled();
52
+ const showIndex = vue.ref(-1);
51
53
  const accept = vue.computed(() => {
52
54
  if (props.accept) {
53
55
  return props.accept;
@@ -251,9 +253,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
251
253
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(fileList.value, (item, index2) => {
252
254
  return vue.openBlock(), vue.createElementBlock("div", {
253
255
  class: vue.normalizeClass(vue.unref(cs).z("list-li")),
254
- key: index2
256
+ key: index2,
257
+ onMouseenter: ($event) => showIndex.value = index2,
258
+ onMouseleave: _cache[0] || (_cache[0] = ($event) => showIndex.value = -1)
255
259
  }, [
256
- vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot).default, {
260
+ vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot).list, {
257
261
  value: item,
258
262
  type: vue.unref(props).type,
259
263
  accept: accept.value,
@@ -263,6 +267,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
263
267
  return [
264
268
  vue.createElementVNode("div", {
265
269
  class: vue.normalizeClass(vue.unref(cs).z("list-li-operation")),
270
+ style: vue.normalizeStyle({
271
+ display: showIndex.value == index2 ? "flex" : "none"
272
+ }),
266
273
  title: item.url
267
274
  }, [
268
275
  vue.unref(props).isDownload ? (vue.openBlock(), vue.createElementBlock("span", {
@@ -276,7 +283,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
276
283
  ]),
277
284
  _: 1
278
285
  })
279
- ], 8, _hoisted_2)) : vue.createCommentVNode("", true),
286
+ ], 8, _hoisted_3)) : vue.createCommentVNode("", true),
280
287
  vue.unref(props).isViews ? (vue.openBlock(), vue.createElementBlock("span", {
281
288
  key: 1,
282
289
  onClick: ($event) => onViews(item, index2),
@@ -288,7 +295,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
288
295
  ]),
289
296
  _: 1
290
297
  })
291
- ], 8, _hoisted_3)) : vue.createCommentVNode("", true),
298
+ ], 8, _hoisted_4)) : vue.createCommentVNode("", true),
292
299
  !(vue.unref(disabled) || item.disabled) ? (vue.openBlock(), vue.createElementBlock("span", {
293
300
  key: 2,
294
301
  class: vue.normalizeClass(vue.unref(cs).z("list-li-operation-delete")),
@@ -301,8 +308,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
301
308
  ]),
302
309
  _: 1
303
310
  })
304
- ], 10, _hoisted_4)) : vue.createCommentVNode("", true)
305
- ], 10, _hoisted_1),
311
+ ], 10, _hoisted_5)) : vue.createCommentVNode("", true)
312
+ ], 14, _hoisted_2),
306
313
  vue.createElementVNode("div", {
307
314
  class: vue.normalizeClass(vue.unref(cs).z("list-li-value"))
308
315
  }, [
@@ -341,7 +348,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
341
348
  ], 2)
342
349
  ];
343
350
  })
344
- ], 2);
351
+ ], 42, _hoisted_1);
345
352
  }), 128)),
346
353
  vue.unref(props).isViews ? (vue.openBlock(), vue.createElementBlock("div", {
347
354
  key: 0,
@@ -352,12 +359,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
352
359
  accept: accept.value,
353
360
  value: views$1.value,
354
361
  show: views$1.show,
355
- onClose: _cache[0] || (_cache[0] = ($event) => views$1.show = false)
362
+ onClose: _cache[1] || (_cache[1] = ($event) => views$1.show = false)
356
363
  }, () => [
357
364
  vue.createVNode(vue.unref(index$9.BoxAdjust), {
358
365
  isMax: "",
359
366
  modelValue: views$1.show,
360
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => views$1.show = $event)
367
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => views$1.show = $event)
361
368
  }, {
362
369
  default: vue.withCtx(() => {
363
370
  var _a, _b;
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, useAttrs, computed, reactive, createElementBlock, openBlock, mergeProps, unref, createElementVNode, createBlock, createCommentVNode, normalizeClass, Fragment, renderList, renderSlot, createVNode, withCtx, toDisplayString } from "vue";
1
+ import { defineComponent, ref, useAttrs, computed, reactive, createElementBlock, openBlock, mergeProps, unref, createElementVNode, createBlock, createCommentVNode, normalizeClass, Fragment, renderList, renderSlot, normalizeStyle, createVNode, withCtx, toDisplayString } from "vue";
2
2
  import Document from "../../../icons/vue/document.js";
3
3
  import Download from "../../../icons/vue/download.js";
4
4
  import Plus from "../../../icons/vue/plus.js";
@@ -22,10 +22,11 @@ import { getType, getListType } from "./util.js";
22
22
  import "../../form/index.js";
23
23
  import { usePropsDefault, viewProps, getProps } from "../../../hooks/props-default/index.js";
24
24
  import { useDisabled } from "element-plus/es/components/form/index";
25
- const _hoisted_1 = ["title"];
26
- const _hoisted_2 = ["onClick", "title"];
25
+ const _hoisted_1 = ["onMouseenter"];
26
+ const _hoisted_2 = ["title"];
27
27
  const _hoisted_3 = ["onClick", "title"];
28
28
  const _hoisted_4 = ["onClick", "title"];
29
+ const _hoisted_5 = ["onClick", "title"];
29
30
  const _sfc_main = /* @__PURE__ */ defineComponent({
30
31
  ...{ inheritAttrs: false },
31
32
  __name: "index",
@@ -46,6 +47,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
46
47
  const multiple = listFuObj.multiple;
47
48
  const isloading = ref(false);
48
49
  const disabled = useDisabled();
50
+ const showIndex = ref(-1);
49
51
  const accept = computed(() => {
50
52
  if (props.accept) {
51
53
  return props.accept;
@@ -249,9 +251,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
249
251
  (openBlock(true), createElementBlock(Fragment, null, renderList(fileList.value, (item, index) => {
250
252
  return openBlock(), createElementBlock("div", {
251
253
  class: normalizeClass(unref(cs).z("list-li")),
252
- key: index
254
+ key: index,
255
+ onMouseenter: ($event) => showIndex.value = index,
256
+ onMouseleave: _cache[0] || (_cache[0] = ($event) => showIndex.value = -1)
253
257
  }, [
254
- renderSlot(_ctx.$slots, unref(dataSlot).default, {
258
+ renderSlot(_ctx.$slots, unref(dataSlot).list, {
255
259
  value: item,
256
260
  type: unref(props).type,
257
261
  accept: accept.value,
@@ -261,6 +265,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
261
265
  return [
262
266
  createElementVNode("div", {
263
267
  class: normalizeClass(unref(cs).z("list-li-operation")),
268
+ style: normalizeStyle({
269
+ display: showIndex.value == index ? "flex" : "none"
270
+ }),
264
271
  title: item.url
265
272
  }, [
266
273
  unref(props).isDownload ? (openBlock(), createElementBlock("span", {
@@ -274,7 +281,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
274
281
  ]),
275
282
  _: 1
276
283
  })
277
- ], 8, _hoisted_2)) : createCommentVNode("", true),
284
+ ], 8, _hoisted_3)) : createCommentVNode("", true),
278
285
  unref(props).isViews ? (openBlock(), createElementBlock("span", {
279
286
  key: 1,
280
287
  onClick: ($event) => onViews(item, index),
@@ -286,7 +293,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
286
293
  ]),
287
294
  _: 1
288
295
  })
289
- ], 8, _hoisted_3)) : createCommentVNode("", true),
296
+ ], 8, _hoisted_4)) : createCommentVNode("", true),
290
297
  !(unref(disabled) || item.disabled) ? (openBlock(), createElementBlock("span", {
291
298
  key: 2,
292
299
  class: normalizeClass(unref(cs).z("list-li-operation-delete")),
@@ -299,8 +306,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
299
306
  ]),
300
307
  _: 1
301
308
  })
302
- ], 10, _hoisted_4)) : createCommentVNode("", true)
303
- ], 10, _hoisted_1),
309
+ ], 10, _hoisted_5)) : createCommentVNode("", true)
310
+ ], 14, _hoisted_2),
304
311
  createElementVNode("div", {
305
312
  class: normalizeClass(unref(cs).z("list-li-value"))
306
313
  }, [
@@ -339,7 +346,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
339
346
  ], 2)
340
347
  ];
341
348
  })
342
- ], 2);
349
+ ], 42, _hoisted_1);
343
350
  }), 128)),
344
351
  unref(props).isViews ? (openBlock(), createElementBlock("div", {
345
352
  key: 0,
@@ -350,12 +357,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
350
357
  accept: accept.value,
351
358
  value: views.value,
352
359
  show: views.show,
353
- onClose: _cache[0] || (_cache[0] = ($event) => views.show = false)
360
+ onClose: _cache[1] || (_cache[1] = ($event) => views.show = false)
354
361
  }, () => [
355
362
  createVNode(unref(BoxAdjust), {
356
363
  isMax: "",
357
364
  modelValue: views.show,
358
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => views.show = $event)
365
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => views.show = $event)
359
366
  }, {
360
367
  default: withCtx(() => {
361
368
  var _a, _b;
@@ -80,6 +80,7 @@
80
80
  .box-adjust-body .box-adjust-title-icon {
81
81
  width: 20px;
82
82
  display: inline-flex;
83
+ color: #fff;
83
84
  align-items: center;
84
85
  margin: 0 4px;
85
86
  height: 100%;
@@ -692,6 +692,7 @@
692
692
  .box-adjust-body .box-adjust-title-icon {
693
693
  width: 20px;
694
694
  display: inline-flex;
695
+ color: #fff;
695
696
  align-items: center;
696
697
  margin: 0 4px;
697
698
  height: 100%;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "prefix": "fang-ui",
3
3
  "info": {},
4
- "lastModified": 1762957513602,
4
+ "lastModified": 1762959390937,
5
5
  "icons": {
6
6
  "bar": {
7
7
  "body": " <path fill=\"currentColor\" d=\"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z\" ></path> "
package/dist/index.css CHANGED
@@ -692,6 +692,7 @@
692
692
  .box-adjust-body .box-adjust-title-icon {
693
693
  width: 20px;
694
694
  display: inline-flex;
695
+ color: #fff;
695
696
  align-items: center;
696
697
  margin: 0 4px;
697
698
  height: 100%;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fangzhongya/fang-ui",
3
3
  "private": false,
4
- "version": "0.1.24",
4
+ "version": "0.1.25",
5
5
  "type": "module",
6
6
  "description ": "fang-ui",
7
7
  "keywords": [
@@ -51,14 +51,14 @@
51
51
  "vue-tsc": "^3.1.3",
52
52
  "vuedraggable": "4.1.0",
53
53
  "vxe-table": "4.17.13",
54
- "@fang-ui/icons": "0.0.1-0",
55
54
  "@fang-ui/components": "0.0.1-0",
56
- "@fang-ui/locale": "0.0.1-0",
57
55
  "@fang-ui/directives": "0.0.1-0",
56
+ "@fang-ui/icons": "0.0.1-0",
58
57
  "@fang-ui/hooks": "0.0.1-0",
58
+ "@fang-ui/locale": "0.0.1-0",
59
59
  "@fang-ui/types": "0.0.1-0",
60
- "@fang-ui/utils": "0.0.1-0",
61
- "@fang-ui/theme": "0.0.1-0"
60
+ "@fang-ui/theme": "0.0.1-0",
61
+ "@fang-ui/utils": "0.0.1-0"
62
62
  },
63
63
  "main": "./dist/index.cjs",
64
64
  "module": "./dist/index.js",
File without changes
File without changes