@jetlinks-web/components 2.6.1 → 2.6.3

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.
@@ -42,7 +42,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
42
42
  "onDesc": "setup-const"
43
43
  } */
44
44
  import { unref as _unref, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, createVNode as _createVNode, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
45
- const _withScopeId = n => (_pushScopeId("data-v-1744096039592"), n = n(), _popScopeId(), n);
45
+ const _withScopeId = n => (_pushScopeId("data-v-1744102451215"), n = n(), _popScopeId(), n);
46
46
  const _hoisted_1 = { class: "jetlinks-table-sort-content" };
47
47
  const _hoisted_2 = { class: "jetlinks-table-sort-title" };
48
48
  const _hoisted_3 = { class: "table-sort-body" };
@@ -0,0 +1,123 @@
1
+ /* Analyzed bindings: {
2
+ "data": "props",
3
+ "showSearch": "props",
4
+ "showInvert": "props",
5
+ "fieldNames": "props",
6
+ "request": "props",
7
+ "flamegraph": "setup-maybe-ref",
8
+ "d3": "setup-const",
9
+ "onMounted": "setup-const",
10
+ "watch": "setup-const",
11
+ "ref": "setup-const",
12
+ "computed": "setup-const",
13
+ "props": "setup-reactive-const",
14
+ "inverted": "setup-ref",
15
+ "chart": "setup-maybe-ref",
16
+ "search": "setup-const",
17
+ "formatData": "setup-ref",
18
+ "invert": "setup-const"
19
+ } */
20
+ import { resolveComponent as _resolveComponent, createVNode as _createVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
21
+ const _hoisted_1 = { class: "j-flame-graph" };
22
+ const _hoisted_2 = /*#__PURE__*/ _createElementVNode("div", { id: "j-flame-graph" }, null, -1 /* HOISTED */);
23
+ import { flamegraph } from 'd3-flame-graph';
24
+ import * as d3 from 'd3';
25
+ import { onMounted, watch, ref, computed } from 'vue';
26
+ const __sfc_main__ = Object.assign({
27
+ name: 'JFlameGraph',
28
+ }, {
29
+ props: {
30
+ data: {
31
+ type: Object,
32
+ },
33
+ showSearch: {
34
+ type: Boolean,
35
+ default: true
36
+ },
37
+ showInvert: {
38
+ type: Boolean,
39
+ default: true
40
+ },
41
+ fieldNames: {
42
+ type: Object,
43
+ default: () => ({
44
+ name: 'className',
45
+ value: 'samples',
46
+ children: 'children'
47
+ })
48
+ },
49
+ request: {
50
+ type: Function,
51
+ }
52
+ },
53
+ setup(__props) {
54
+ const props = __props;
55
+ const inverted = ref(false);
56
+ const chart = flamegraph()
57
+ .setColorMapper(function (d, originalColor) {
58
+ return d.highlight ? "#E600E6" : originalColor;
59
+ })
60
+ .setSearchHandler(function (searchResults, searchSum, totalValue) {
61
+ console.log(searchResults, searchSum, totalValue);
62
+ });
63
+ const search = (val) => {
64
+ chart.search(val);
65
+ };
66
+ const formatData = computed(() => {
67
+ return (val) => {
68
+ function formatDataFn(newVal) {
69
+ newVal.name = newVal[props.fieldNames.name];
70
+ newVal.value = newVal[props.fieldNames.value];
71
+ if (newVal[props.fieldNames.children] || newVal.children) {
72
+ newVal[props.fieldNames.children || 'children'].forEach(item => {
73
+ formatDataFn(item);
74
+ });
75
+ }
76
+ }
77
+ formatDataFn(val);
78
+ return val;
79
+ };
80
+ });
81
+ const invert = () => {
82
+ inverted.value = !inverted.value;
83
+ chart.inverted(inverted.value);
84
+ d3.select('#flame-graph')
85
+ .datum(formatData.value(props.data))
86
+ .call(chart);
87
+ };
88
+ onMounted(() => {
89
+ watch(() => props.data, (newVal, oldVal) => {
90
+ if (newVal) {
91
+ d3.select('#flame-graph')
92
+ .datum(formatData.value(newVal))
93
+ .call(chart);
94
+ }
95
+ }, { immediate: true });
96
+ });
97
+ return (_ctx, _cache) => {
98
+ const _component_a_input_search = _resolveComponent("a-input-search");
99
+ const _component_a_button = _resolveComponent("a-button");
100
+ const _component_a_space = _resolveComponent("a-space");
101
+ return (_openBlock(), _createElementBlock("div", _hoisted_1, [
102
+ _createVNode(_component_a_space, null, {
103
+ default: _withCtx(() => [
104
+ _createVNode(_component_a_input_search, {
105
+ class: "j-flame-graph-search",
106
+ placeholder: "请输入",
107
+ onSearch: search
108
+ }),
109
+ _createVNode(_component_a_button, { onClick: invert }, {
110
+ default: _withCtx(() => [
111
+ _createTextVNode("反转")
112
+ ]),
113
+ _: 1 /* STABLE */
114
+ })
115
+ ]),
116
+ _: 1 /* STABLE */
117
+ }),
118
+ _hoisted_2
119
+ ]));
120
+ };
121
+ }
122
+ });
123
+ export default __sfc_main__;
@@ -1,4 +1,4 @@
1
- import FlameGraph from './index.js';
1
+ import FlameGraph from './FlameGraph.js';
2
2
  FlameGraph.install = function (app) {
3
3
  app.component(FlameGraph.name, FlameGraph);
4
4
  };
@@ -0,0 +1,33 @@
1
+ .j-flame-graph {
2
+ position: relative;
3
+ /* 修改矩形块样式 */
4
+ }
5
+ .j-flame-graph .d3-flame-graph {
6
+ margin-top: 40px;
7
+ }
8
+ .j-flame-graph .d3-flame-graph rect {
9
+ stroke: #fff;
10
+ stroke-width: 1px;
11
+ }
12
+ .j-flame-graph .d3-flame-graph text {
13
+ font-size: 18px;
14
+ fill: #333;
15
+ }
16
+ .j-flame-graph .frame {
17
+ cursor: pointer;
18
+ }
19
+ .j-flame-graph .frame:hover {
20
+ fill: #E600E6;
21
+ }
22
+ .j-flame-graph .frame:hover rect {
23
+ fill: #ffffe0;
24
+ }
25
+ .j-flame-graph .frame div {
26
+ color: #000;
27
+ }
28
+ .j-flame-graph .j-flame-graph-search {
29
+ position: sticky;
30
+ top: 0;
31
+ left: 0;
32
+ width: 200px;
33
+ }
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1,43 @@
1
+ .j-flame-graph {
2
+ position: relative;
3
+
4
+ .d3-flame-graph {
5
+ margin-top: 40px;
6
+ }
7
+ /* 修改矩形块样式 */
8
+ .d3-flame-graph {
9
+ rect {
10
+ stroke: #fff;
11
+ stroke-width: 1px;
12
+ }
13
+
14
+ text {
15
+ font-size: 18px;
16
+ fill: #333;
17
+ }
18
+ }
19
+
20
+ .frame {
21
+ cursor: pointer;
22
+ }
23
+ .frame:hover {
24
+ fill: #E600E6;
25
+ }
26
+ .frame:hover rect {
27
+ fill: #ffffe0;
28
+ }
29
+ .frame div {
30
+ color: #000
31
+ }
32
+
33
+ .j-flame-graph-search {
34
+ position: sticky;
35
+ top: 0;
36
+ left: 0;
37
+ width: 200px;
38
+ }
39
+ }
40
+
41
+
42
+
43
+
@@ -9,7 +9,7 @@
9
9
  } */
10
10
  import { defineComponent as _defineComponent } from 'vue';
11
11
  import { unref as _unref, renderSlot as _renderSlot, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
12
- const _withScopeId = n => (_pushScopeId("data-v-1744096037379"), n = n(), _popScopeId(), n);
12
+ const _withScopeId = n => (_pushScopeId("data-v-1744102448790"), n = n(), _popScopeId(), n);
13
13
  const _hoisted_1 = { class: "full-page-warp-content" };
14
14
  import { ref, inject } from 'vue';
15
15
  import { useElementBounding } from '@vueuse/core';
@@ -23,7 +23,7 @@
23
23
  } */
24
24
  import { defineComponent as _defineComponent } from 'vue';
25
25
  import { unref as _unref, createVNode as _createVNode, withCtx as _withCtx, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
26
- const _withScopeId = n => (_pushScopeId("data-v-1744096039413"), n = n(), _popScopeId(), n);
26
+ const _withScopeId = n => (_pushScopeId("data-v-1744102451099"), n = n(), _popScopeId(), n);
27
27
  const _hoisted_1 = {
28
28
  key: 0,
29
29
  style: { "width": "240px" }
package/es/Search/Item.js CHANGED
@@ -80,7 +80,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
80
80
  } */
81
81
  import { defineComponent as _defineComponent } from 'vue';
82
82
  import { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, createVNode as _createVNode, Fragment as _Fragment, normalizeStyle as _normalizeStyle, mergeProps as _mergeProps, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx, createElementVNode as _createElementVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
83
- const _withScopeId = n => (_pushScopeId("data-v-1744096038621"), n = n(), _popScopeId(), n);
83
+ const _withScopeId = n => (_pushScopeId("data-v-1744102450324"), n = n(), _popScopeId(), n);
84
84
  const _hoisted_1 = { class: "JSearch-item" };
85
85
  const _hoisted_2 = {
86
86
  key: 0,
@@ -5177,3 +5177,36 @@ span.ant-radio + * {
5177
5177
  color: #fff;
5178
5178
  background-color: #1890ff;
5179
5179
  }
5180
+ .j-flame-graph {
5181
+ position: relative;
5182
+ /* 修改矩形块样式 */
5183
+ }
5184
+ .j-flame-graph .d3-flame-graph {
5185
+ margin-top: 40px;
5186
+ }
5187
+ .j-flame-graph .d3-flame-graph rect {
5188
+ stroke: #fff;
5189
+ stroke-width: 1px;
5190
+ }
5191
+ .j-flame-graph .d3-flame-graph text {
5192
+ font-size: 18px;
5193
+ fill: #333;
5194
+ }
5195
+ .j-flame-graph .frame {
5196
+ cursor: pointer;
5197
+ }
5198
+ .j-flame-graph .frame:hover {
5199
+ fill: #E600E6;
5200
+ }
5201
+ .j-flame-graph .frame:hover rect {
5202
+ fill: #ffffe0;
5203
+ }
5204
+ .j-flame-graph .frame div {
5205
+ color: #000;
5206
+ }
5207
+ .j-flame-graph .j-flame-graph-search {
5208
+ position: sticky;
5209
+ top: 0;
5210
+ left: 0;
5211
+ width: 200px;
5212
+ }
@@ -11,3 +11,4 @@
11
11
  @import '../Scrollbar/style/index.less';
12
12
  @import '../Title/style/index.less';
13
13
  @import '../RadioButton/style/index.less';
14
+ @import '../FlameGraph/style/index.less';
@@ -42,7 +42,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
42
42
  "onDesc": "setup-const"
43
43
  } */
44
44
  import { unref as _unref, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, createVNode as _createVNode, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
45
- const _withScopeId = n => (_pushScopeId("data-v-1744096039577"), n = n(), _popScopeId(), n);
45
+ const _withScopeId = n => (_pushScopeId("data-v-1744102451232"), n = n(), _popScopeId(), n);
46
46
  const _hoisted_1 = { class: "jetlinks-table-sort-content" };
47
47
  const _hoisted_2 = { class: "jetlinks-table-sort-title" };
48
48
  const _hoisted_3 = { class: "table-sort-body" };
@@ -0,0 +1,123 @@
1
+ /* Analyzed bindings: {
2
+ "data": "props",
3
+ "showSearch": "props",
4
+ "showInvert": "props",
5
+ "fieldNames": "props",
6
+ "request": "props",
7
+ "flamegraph": "setup-maybe-ref",
8
+ "d3": "setup-const",
9
+ "onMounted": "setup-const",
10
+ "watch": "setup-const",
11
+ "ref": "setup-const",
12
+ "computed": "setup-const",
13
+ "props": "setup-reactive-const",
14
+ "inverted": "setup-ref",
15
+ "chart": "setup-maybe-ref",
16
+ "search": "setup-const",
17
+ "formatData": "setup-ref",
18
+ "invert": "setup-const"
19
+ } */
20
+ import { resolveComponent as _resolveComponent, createVNode as _createVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
21
+ const _hoisted_1 = { class: "j-flame-graph" };
22
+ const _hoisted_2 = /*#__PURE__*/ _createElementVNode("div", { id: "j-flame-graph" }, null, -1 /* HOISTED */);
23
+ import { flamegraph } from 'd3-flame-graph';
24
+ import * as d3 from 'd3';
25
+ import { onMounted, watch, ref, computed } from 'vue';
26
+ const __sfc_main__ = Object.assign({
27
+ name: 'JFlameGraph',
28
+ }, {
29
+ props: {
30
+ data: {
31
+ type: Object,
32
+ },
33
+ showSearch: {
34
+ type: Boolean,
35
+ default: true
36
+ },
37
+ showInvert: {
38
+ type: Boolean,
39
+ default: true
40
+ },
41
+ fieldNames: {
42
+ type: Object,
43
+ default: () => ({
44
+ name: 'className',
45
+ value: 'samples',
46
+ children: 'children'
47
+ })
48
+ },
49
+ request: {
50
+ type: Function,
51
+ }
52
+ },
53
+ setup(__props) {
54
+ const props = __props;
55
+ const inverted = ref(false);
56
+ const chart = flamegraph()
57
+ .setColorMapper(function (d, originalColor) {
58
+ return d.highlight ? "#E600E6" : originalColor;
59
+ })
60
+ .setSearchHandler(function (searchResults, searchSum, totalValue) {
61
+ console.log(searchResults, searchSum, totalValue);
62
+ });
63
+ const search = (val) => {
64
+ chart.search(val);
65
+ };
66
+ const formatData = computed(() => {
67
+ return (val) => {
68
+ function formatDataFn(newVal) {
69
+ newVal.name = newVal[props.fieldNames.name];
70
+ newVal.value = newVal[props.fieldNames.value];
71
+ if (newVal[props.fieldNames.children] || newVal.children) {
72
+ newVal[props.fieldNames.children || 'children'].forEach(item => {
73
+ formatDataFn(item);
74
+ });
75
+ }
76
+ }
77
+ formatDataFn(val);
78
+ return val;
79
+ };
80
+ });
81
+ const invert = () => {
82
+ inverted.value = !inverted.value;
83
+ chart.inverted(inverted.value);
84
+ d3.select('#flame-graph')
85
+ .datum(formatData.value(props.data))
86
+ .call(chart);
87
+ };
88
+ onMounted(() => {
89
+ watch(() => props.data, (newVal, oldVal) => {
90
+ if (newVal) {
91
+ d3.select('#flame-graph')
92
+ .datum(formatData.value(newVal))
93
+ .call(chart);
94
+ }
95
+ }, { immediate: true });
96
+ });
97
+ return (_ctx, _cache) => {
98
+ const _component_a_input_search = _resolveComponent("a-input-search");
99
+ const _component_a_button = _resolveComponent("a-button");
100
+ const _component_a_space = _resolveComponent("a-space");
101
+ return (_openBlock(), _createElementBlock("div", _hoisted_1, [
102
+ _createVNode(_component_a_space, null, {
103
+ default: _withCtx(() => [
104
+ _createVNode(_component_a_input_search, {
105
+ class: "j-flame-graph-search",
106
+ placeholder: "请输入",
107
+ onSearch: search
108
+ }),
109
+ _createVNode(_component_a_button, { onClick: invert }, {
110
+ default: _withCtx(() => [
111
+ _createTextVNode("反转")
112
+ ]),
113
+ _: 1 /* STABLE */
114
+ })
115
+ ]),
116
+ _: 1 /* STABLE */
117
+ }),
118
+ _hoisted_2
119
+ ]));
120
+ };
121
+ }
122
+ });
123
+ export default __sfc_main__;
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = void 0;
8
- var _index = _interopRequireDefault(require("./index.js"));
9
- _index.default.install = function (app) {
10
- app.component(_index.default.name, _index.default);
8
+ var _FlameGraph = _interopRequireDefault(require("./FlameGraph.js"));
9
+ _FlameGraph.default.install = function (app) {
10
+ app.component(_FlameGraph.default.name, _FlameGraph.default);
11
11
  };
12
- var _default = exports.default = _index.default;
12
+ var _default = exports.default = _FlameGraph.default;
@@ -0,0 +1,33 @@
1
+ .j-flame-graph {
2
+ position: relative;
3
+ /* 修改矩形块样式 */
4
+ }
5
+ .j-flame-graph .d3-flame-graph {
6
+ margin-top: 40px;
7
+ }
8
+ .j-flame-graph .d3-flame-graph rect {
9
+ stroke: #fff;
10
+ stroke-width: 1px;
11
+ }
12
+ .j-flame-graph .d3-flame-graph text {
13
+ font-size: 18px;
14
+ fill: #333;
15
+ }
16
+ .j-flame-graph .frame {
17
+ cursor: pointer;
18
+ }
19
+ .j-flame-graph .frame:hover {
20
+ fill: #E600E6;
21
+ }
22
+ .j-flame-graph .frame:hover rect {
23
+ fill: #ffffe0;
24
+ }
25
+ .j-flame-graph .frame div {
26
+ color: #000;
27
+ }
28
+ .j-flame-graph .j-flame-graph-search {
29
+ position: sticky;
30
+ top: 0;
31
+ left: 0;
32
+ width: 200px;
33
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+
3
+ require("./index.less");
@@ -0,0 +1,43 @@
1
+ .j-flame-graph {
2
+ position: relative;
3
+
4
+ .d3-flame-graph {
5
+ margin-top: 40px;
6
+ }
7
+ /* 修改矩形块样式 */
8
+ .d3-flame-graph {
9
+ rect {
10
+ stroke: #fff;
11
+ stroke-width: 1px;
12
+ }
13
+
14
+ text {
15
+ font-size: 18px;
16
+ fill: #333;
17
+ }
18
+ }
19
+
20
+ .frame {
21
+ cursor: pointer;
22
+ }
23
+ .frame:hover {
24
+ fill: #E600E6;
25
+ }
26
+ .frame:hover rect {
27
+ fill: #ffffe0;
28
+ }
29
+ .frame div {
30
+ color: #000
31
+ }
32
+
33
+ .j-flame-graph-search {
34
+ position: sticky;
35
+ top: 0;
36
+ left: 0;
37
+ width: 200px;
38
+ }
39
+ }
40
+
41
+
42
+
43
+
@@ -9,7 +9,7 @@
9
9
  } */
10
10
  import { defineComponent as _defineComponent } from 'vue';
11
11
  import { unref as _unref, renderSlot as _renderSlot, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
12
- const _withScopeId = n => (_pushScopeId("data-v-1744096037386"), n = n(), _popScopeId(), n);
12
+ const _withScopeId = n => (_pushScopeId("data-v-1744102448784"), n = n(), _popScopeId(), n);
13
13
  const _hoisted_1 = { class: "full-page-warp-content" };
14
14
  import { ref, inject } from 'vue';
15
15
  import { useElementBounding } from '@vueuse/core';
@@ -23,7 +23,7 @@
23
23
  } */
24
24
  import { defineComponent as _defineComponent } from 'vue';
25
25
  import { unref as _unref, createVNode as _createVNode, withCtx as _withCtx, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
26
- const _withScopeId = n => (_pushScopeId("data-v-1744096039397"), n = n(), _popScopeId(), n);
26
+ const _withScopeId = n => (_pushScopeId("data-v-1744102451112"), n = n(), _popScopeId(), n);
27
27
  const _hoisted_1 = {
28
28
  key: 0,
29
29
  style: { "width": "240px" }
@@ -80,7 +80,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
80
80
  } */
81
81
  import { defineComponent as _defineComponent } from 'vue';
82
82
  import { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, createVNode as _createVNode, Fragment as _Fragment, normalizeStyle as _normalizeStyle, mergeProps as _mergeProps, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx, createElementVNode as _createElementVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
83
- const _withScopeId = n => (_pushScopeId("data-v-1744096038571"), n = n(), _popScopeId(), n);
83
+ const _withScopeId = n => (_pushScopeId("data-v-1744102450404"), n = n(), _popScopeId(), n);
84
84
  const _hoisted_1 = { class: "JSearch-item" };
85
85
  const _hoisted_2 = {
86
86
  key: 0,
@@ -3,6 +3,7 @@
3
3
  @import "../DragModal/style/index-pure.less";
4
4
  @import "../EditTable/style/index-pure.less";
5
5
  @import "../Ellipsis/style/index-pure.less";
6
+ @import "../FlameGraph/style/index-pure.less";
6
7
  @import "../MonacoEditor/style/index-pure.less";
7
8
  @import "../RadioButton/style/index-pure.less";
8
9
  @import "../Scrollbar/style/index-pure.less";
@@ -5177,3 +5177,36 @@ span.ant-radio + * {
5177
5177
  color: #fff;
5178
5178
  background-color: #1890ff;
5179
5179
  }
5180
+ .j-flame-graph {
5181
+ position: relative;
5182
+ /* 修改矩形块样式 */
5183
+ }
5184
+ .j-flame-graph .d3-flame-graph {
5185
+ margin-top: 40px;
5186
+ }
5187
+ .j-flame-graph .d3-flame-graph rect {
5188
+ stroke: #fff;
5189
+ stroke-width: 1px;
5190
+ }
5191
+ .j-flame-graph .d3-flame-graph text {
5192
+ font-size: 18px;
5193
+ fill: #333;
5194
+ }
5195
+ .j-flame-graph .frame {
5196
+ cursor: pointer;
5197
+ }
5198
+ .j-flame-graph .frame:hover {
5199
+ fill: #E600E6;
5200
+ }
5201
+ .j-flame-graph .frame:hover rect {
5202
+ fill: #ffffe0;
5203
+ }
5204
+ .j-flame-graph .frame div {
5205
+ color: #000;
5206
+ }
5207
+ .j-flame-graph .j-flame-graph-search {
5208
+ position: sticky;
5209
+ top: 0;
5210
+ left: 0;
5211
+ width: 200px;
5212
+ }
@@ -11,3 +11,4 @@
11
11
  @import '../Scrollbar/style/index.less';
12
12
  @import '../Title/style/index.less';
13
13
  @import '../RadioButton/style/index.less';
14
+ @import '../FlameGraph/style/index.less';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetlinks-web/components",
3
- "version": "2.6.1",
3
+ "version": "2.6.3",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -158,9 +158,9 @@
158
158
  "webpack-dev-server": "^4.0.0",
159
159
  "webpack-merge": "^5.0.0",
160
160
  "webpackbar": "^5.0.2",
161
+ "@jetlinks-web/hooks": "^1.0.25",
161
162
  "@jetlinks-web/constants": "^1.0.9",
162
- "@jetlinks-web/utils": "^1.2.8",
163
- "@jetlinks-web/hooks": "^1.0.25"
163
+ "@jetlinks-web/utils": "^1.2.8"
164
164
  },
165
165
  "publishConfig": {
166
166
  "registry": "https://registry.npmjs.org/",