cosey 0.6.30 → 0.6.31
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, watch, createVNode, isVNode } from 'vue';
|
|
2
2
|
import { horizontalTreeEmits, horizontalTreeSlots, horizontalTreeProps } from './horizontal-tree.api.js';
|
|
3
|
-
import stdin_default$1 from './horizontal-tree.style.js';
|
|
3
|
+
import stdin_default$1, { HorizontalTreeNodeWidthVar } from './horizontal-tree.style.js';
|
|
4
4
|
import { ElCheckbox } from 'element-plus';
|
|
5
5
|
import { useTreeCheck } from '../../hooks/useTreeCheck.js';
|
|
6
6
|
import { mapTree, extraTreeToTable, walkTree } from '../../utils/tree.js';
|
|
@@ -178,7 +178,7 @@ var stdin_default = defineComponent({
|
|
|
178
178
|
return createVNode("div", {
|
|
179
179
|
"class": [hashId.value, prefixCls.value],
|
|
180
180
|
"style": {
|
|
181
|
-
|
|
181
|
+
[HorizontalTreeNodeWidthVar]: props.nodeWidth
|
|
182
182
|
}
|
|
183
183
|
}, [tableTree.value.length === 0 ? createVNode("div", {
|
|
184
184
|
"class": `${prefixCls.value}-empty`
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare const HorizontalTreeNodeWidthVar = "--co-horizontal-tree-node-width";
|
|
1
2
|
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../theme/theme-context").ThemeManager) => {
|
|
2
3
|
hashId: import("vue").Ref<string, string>;
|
|
3
4
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { getSimpleStyleHook } from '../theme/getSimpleStyleHook.js';
|
|
2
2
|
|
|
3
|
+
const HorizontalTreeNodeWidthVar = "--co-horizontal-tree-node-width";
|
|
3
4
|
var stdin_default = getSimpleStyleHook("CoHorizontalTree", (token) => {
|
|
4
5
|
const { componentCls } = token;
|
|
5
6
|
return {
|
|
@@ -27,10 +28,10 @@ var stdin_default = getSimpleStyleHook("CoHorizontalTree", (token) => {
|
|
|
27
28
|
},
|
|
28
29
|
[`${componentCls}-node`]: {
|
|
29
30
|
display: "inline-flex",
|
|
30
|
-
width:
|
|
31
|
+
width: `var(${HorizontalTreeNodeWidthVar})`
|
|
31
32
|
}
|
|
32
33
|
}
|
|
33
34
|
};
|
|
34
35
|
});
|
|
35
36
|
|
|
36
|
-
export { stdin_default as default };
|
|
37
|
+
export { HorizontalTreeNodeWidthVar, stdin_default as default };
|