@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.
- package/dist/components/box-adjust/index.css +1 -0
- package/dist/components/box-adjust/index.scss +1 -0
- package/dist/components/index.scss +1 -0
- package/dist/components/players/common/util.d.ts +1 -0
- package/dist/components/uploads/src/data.cjs +2 -1
- package/dist/components/uploads/src/data.d.ts +1 -0
- package/dist/components/uploads/src/data.js +2 -1
- package/dist/components/uploads/src/index2.cjs +18 -11
- package/dist/components/uploads/src/index2.js +19 -12
- package/dist/css/box-adjust.css +1 -0
- package/dist/css/index.css +1 -0
- package/dist/icons/index.json +1 -1
- package/dist/index.css +1 -0
- package/package.json +5 -5
- /package/dist/components/{forms-items → forms-item}/index.css +0 -0
- /package/dist/components/{tooltip → global-config}/index.css +0 -0
- /package/dist/css/{forms-items.css → forms-item.css} +0 -0
- /package/dist/css/{tooltip.css → global-config.css} +0 -0
|
@@ -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 = ["
|
|
28
|
-
const _hoisted_2 = ["
|
|
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).
|
|
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,
|
|
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,
|
|
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,
|
|
305
|
-
],
|
|
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
|
-
],
|
|
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[
|
|
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[
|
|
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 = ["
|
|
26
|
-
const _hoisted_2 = ["
|
|
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).
|
|
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,
|
|
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,
|
|
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,
|
|
303
|
-
],
|
|
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
|
-
],
|
|
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[
|
|
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[
|
|
365
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => views.show = $event)
|
|
359
366
|
}, {
|
|
360
367
|
default: withCtx(() => {
|
|
361
368
|
var _a, _b;
|
package/dist/css/box-adjust.css
CHANGED
package/dist/css/index.css
CHANGED
package/dist/icons/index.json
CHANGED
package/dist/index.css
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fangzhongya/fang-ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.1.
|
|
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/
|
|
61
|
-
"@fang-ui/
|
|
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
|
|
File without changes
|
|
File without changes
|