@fangzhongya/fang-ui 0.1.52 → 0.1.53
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/tables/common/com-limit2.cjs +14 -2
- package/dist/components/tables/common/com-limit2.js +15 -3
- package/dist/icons/index.json +1 -1
- package/package.json +6 -6
- /package/dist/components/{edit-data → edit-data-add}/index.css +0 -0
- /package/dist/components/{draggable → keep-com}/index.css +0 -0
- /package/dist/css/{edit-data.css → edit-data-add.css} +0 -0
- /package/dist/css/{draggable.css → keep-com.css} +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
|
+
const util = require("./util.cjs");
|
|
4
5
|
const index = require("../../../hooks/cssname/index.cjs");
|
|
5
6
|
const getAttrValue = require("../../../utils/vues/getAttrValue.cjs");
|
|
6
7
|
const tooltip = require("./tooltip.cjs");
|
|
@@ -54,6 +55,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
54
55
|
const cs = index.useCssName("com-limit");
|
|
55
56
|
const props = __props;
|
|
56
57
|
const refDom = vue.ref();
|
|
58
|
+
const emptyDisplay = vue.computed(() => {
|
|
59
|
+
var _a, _b;
|
|
60
|
+
return util.setEmptyDisplay(
|
|
61
|
+
props.modelValue,
|
|
62
|
+
(_a = props.comscope.config) == null ? void 0 : _a.emptyDisplay,
|
|
63
|
+
(_b = props.comscope.config) == null ? void 0 : _b.isEmptyStr
|
|
64
|
+
);
|
|
65
|
+
});
|
|
57
66
|
const showOverflow = vue.computed(() => {
|
|
58
67
|
return props.showOverflow ?? getAttrValue.getAttrValue(props.listobj, "showOverflow");
|
|
59
68
|
});
|
|
@@ -74,7 +83,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
74
83
|
tooltip.showTooltip($event, refDom.value, showOverflow2, props.lineClamp);
|
|
75
84
|
};
|
|
76
85
|
return (_ctx, _cache) => {
|
|
77
|
-
return vue.openBlock(), vue.createElementBlock(
|
|
86
|
+
return emptyDisplay.value ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
87
|
+
vue.createTextVNode(vue.toDisplayString(emptyDisplay.value), 1)
|
|
88
|
+
], 64)) : (vue.openBlock(), vue.createElementBlock("div", {
|
|
89
|
+
key: 1,
|
|
78
90
|
ret: "refDom",
|
|
79
91
|
onMousedown: handleCellMouseLeave,
|
|
80
92
|
onMouseenter,
|
|
@@ -84,7 +96,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
84
96
|
lineClamp: props.lineClamp
|
|
85
97
|
}),
|
|
86
98
|
title: title.value
|
|
87
|
-
}, vue.toDisplayString(props.modelValue), 47, _hoisted_1);
|
|
99
|
+
}, vue.toDisplayString(props.modelValue), 47, _hoisted_1));
|
|
88
100
|
};
|
|
89
101
|
}
|
|
90
102
|
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref
|
|
1
|
+
import { defineComponent, ref, computed, createElementBlock, openBlock, Fragment, createTextVNode, toDisplayString, normalizeStyle, normalizeClass, unref } from "vue";
|
|
2
|
+
import { setEmptyDisplay } from "./util.js";
|
|
2
3
|
import { useCssName } from "../../../hooks/cssname/index.js";
|
|
3
4
|
import { getAttrValue } from "../../../utils/vues/getAttrValue.js";
|
|
4
5
|
import { hideTooltip, showTooltip } from "./tooltip.js";
|
|
@@ -52,6 +53,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
52
53
|
const cs = useCssName("com-limit");
|
|
53
54
|
const props = __props;
|
|
54
55
|
const refDom = ref();
|
|
56
|
+
const emptyDisplay = computed(() => {
|
|
57
|
+
var _a, _b;
|
|
58
|
+
return setEmptyDisplay(
|
|
59
|
+
props.modelValue,
|
|
60
|
+
(_a = props.comscope.config) == null ? void 0 : _a.emptyDisplay,
|
|
61
|
+
(_b = props.comscope.config) == null ? void 0 : _b.isEmptyStr
|
|
62
|
+
);
|
|
63
|
+
});
|
|
55
64
|
const showOverflow = computed(() => {
|
|
56
65
|
return props.showOverflow ?? getAttrValue(props.listobj, "showOverflow");
|
|
57
66
|
});
|
|
@@ -72,7 +81,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
72
81
|
showTooltip($event, refDom.value, showOverflow2, props.lineClamp);
|
|
73
82
|
};
|
|
74
83
|
return (_ctx, _cache) => {
|
|
75
|
-
return openBlock(), createElementBlock(
|
|
84
|
+
return emptyDisplay.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
85
|
+
createTextVNode(toDisplayString(emptyDisplay.value), 1)
|
|
86
|
+
], 64)) : (openBlock(), createElementBlock("div", {
|
|
87
|
+
key: 1,
|
|
76
88
|
ret: "refDom",
|
|
77
89
|
onMousedown: handleCellMouseLeave,
|
|
78
90
|
onMouseenter,
|
|
@@ -82,7 +94,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
82
94
|
lineClamp: props.lineClamp
|
|
83
95
|
}),
|
|
84
96
|
title: title.value
|
|
85
|
-
}, toDisplayString(props.modelValue), 47, _hoisted_1);
|
|
97
|
+
}, toDisplayString(props.modelValue), 47, _hoisted_1));
|
|
86
98
|
};
|
|
87
99
|
}
|
|
88
100
|
});
|
package/dist/icons/index.json
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.53",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description ": "fang-ui",
|
|
7
7
|
"keywords": [
|
|
@@ -51,14 +51,14 @@
|
|
|
51
51
|
"vue": "^3.5.25",
|
|
52
52
|
"vue-tsc": "^3.1.8",
|
|
53
53
|
"vxe-table": "4.6.20",
|
|
54
|
-
"@fang-ui/components": "0.0.1-0",
|
|
55
54
|
"@fang-ui/directives": "0.0.1-0",
|
|
56
|
-
"@fang-ui/
|
|
57
|
-
"@fang-ui/icons": "0.0.1-0",
|
|
58
|
-
"@fang-ui/locale": "0.0.1-0",
|
|
55
|
+
"@fang-ui/components": "0.0.1-0",
|
|
59
56
|
"@fang-ui/theme": "0.0.1-0",
|
|
57
|
+
"@fang-ui/hooks": "0.0.1-0",
|
|
60
58
|
"@fang-ui/utils": "0.0.1-0",
|
|
61
|
-
"@fang-ui/
|
|
59
|
+
"@fang-ui/locale": "0.0.1-0",
|
|
60
|
+
"@fang-ui/types": "0.0.1-0",
|
|
61
|
+
"@fang-ui/icons": "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
|