glass-easel-devtools-panel 0.10.2 → 0.12.1
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/bootstrap.js +2 -2
- package/dist/global_components/view/view.d.ts +1 -0
- package/dist/index.css +13 -9
- package/dist/pages/index/checkbox.d.ts +1 -0
- package/dist/pages/index/options.d.ts +1 -0
- package/dist/pages/store.d.ts +7 -0
- package/package.json +5 -5
- package/src/events.ts +3 -1
- package/src/global_components/view/view.ts +34 -2
- package/src/global_components/view/view.wxml +4 -1
- package/src/global_components/view/view.wxss +3 -0
- package/src/pages/index/checkbox.json +3 -0
- package/src/pages/index/checkbox.ts +9 -0
- package/src/pages/index/checkbox.wxml +4 -0
- package/src/pages/index/checkbox.wxss +24 -0
- package/src/pages/index/index.json +2 -1
- package/src/pages/index/index.ts +11 -2
- package/src/pages/index/index.wxml +4 -0
- package/src/pages/index/index.wxss +1 -0
- package/src/pages/index/options.json +6 -0
- package/src/pages/index/options.ts +31 -0
- package/src/pages/index/options.wxml +7 -0
- package/src/pages/index/options.wxss +15 -0
- package/src/pages/store.ts +15 -0
- package/src/pages/tree/element.ts +44 -6
- package/src/pages/tree/element.wxml +43 -35
- package/src/pages/tree/element.wxss +2 -1
- package/typings/miniprogram.d.ts +6 -1
|
@@ -1,44 +1,52 @@
|
|
|
1
|
-
<view wx:if="{{ kind === 1 || kind === 2 }}" class="tag {{ tagUpdateHighlight ? 'updated' : '' }}">
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
<view wx:if="{{ kind === 1 || kind === 2 || kind === 3 || kind === 4 }}" class="tag {{ tagUpdateHighlight ? 'updated' : '' }}">
|
|
2
|
+
<block wx:if="{{ hideSelf }}"></block>
|
|
3
|
+
<block wx:else>
|
|
4
|
+
<view class="fold-arrow">
|
|
5
|
+
<view wx:if="{{ hasChildNodes || hasSlotContent || hasShadowRoot }}" class="fold-arrow-icon {{ showChildNodes ? 'fold-arrow-icon_open' : '' }}" catch:tap="toggleChildren">▶</view>
|
|
6
|
+
</view>
|
|
5
7
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
8
|
+
<view
|
|
9
|
+
class="tag-body {{ selectedNodeId === nodeInfo.nodeId ? 'tag-body_selected' : '' }} {{ highlightNodeId === nodeInfo.nodeId ? 'tag-body_highlight' : '' }}"
|
|
10
|
+
hover-class="tag-body_hover"
|
|
11
|
+
catch:tap="selectTag"
|
|
12
|
+
bind:mouseenter="startHoverTag"
|
|
13
|
+
bind:mouseleave="endHoverTag"
|
|
14
|
+
>
|
|
15
|
+
<block wx:if="{{ kind === 1 }}">
|
|
16
|
+
<view class="tag-text"><</view>
|
|
17
|
+
<view class="tag-name">{{ tagName }}</view>
|
|
18
|
+
<block wx:for="{{ attributes }}">
|
|
19
|
+
<view class="attribute">
|
|
20
|
+
<block>{{ ' ' }}</block>
|
|
21
|
+
<view class="attribute-name {{ item.isProperty ? 'attribute-name_property' : '' }}">{{ item.name }}</view>
|
|
22
|
+
<block>{{ '="' }}</block>
|
|
23
|
+
<view class="attribute-value {{ item.updateAniTs ? 'updated' : '' }}">{{ item.value }}</view>
|
|
24
|
+
<block>{{ '"' }}</block>
|
|
25
|
+
</view>
|
|
26
|
+
</block>
|
|
27
|
+
<view class="tag-text">></view>
|
|
24
28
|
</block>
|
|
25
|
-
<
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
</block>
|
|
30
|
-
</view>
|
|
29
|
+
<block wx:else>
|
|
30
|
+
<view class="virtual-tag-name">{{ tagName }}</view>
|
|
31
|
+
</block>
|
|
32
|
+
</view>
|
|
31
33
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
<view class="tag-var-name-wrapper" hidden="{{ selectedNodeId !== nodeInfo.nodeId }}">
|
|
35
|
+
<view wx:if="{{ tagVarName }}" class="tag-var-name">={{ tagVarName }}</view>
|
|
36
|
+
<view wx:else class="tag-var-name" hover-class="tag-var-name_hover" catch:tap="useElementInConsole">↖</view>
|
|
37
|
+
</view>
|
|
38
|
+
</block>
|
|
36
39
|
|
|
37
|
-
<view
|
|
40
|
+
<view
|
|
41
|
+
hidden="{{ !showChildNodes && !hideSelf }}"
|
|
42
|
+
class="children {{ hideSelf ? '' : 'children_indent' }}"
|
|
43
|
+
>
|
|
38
44
|
<view wx:if="{{ hasShadowRoot }}" class="shadow-roots">
|
|
39
|
-
<element wx:for="{{ shadowRoots }}" wx:key="nodeId" id="child-{{ item.nodeId }}" node-info="{{ item }}" />
|
|
45
|
+
<element is-shadow-root wx:for="{{ shadowRoots }}" wx:key="nodeId" id="child-{{ item.nodeId }}" node-info="{{ item }}" />
|
|
40
46
|
</view>
|
|
41
|
-
<
|
|
47
|
+
<block wx:if="{{ !userConfig.showComposed || isShadowRoot || !hasShadowRoot || nodeInfo.distributedNodes != undefined }}">
|
|
48
|
+
<element wx:for="{{ children }}" wx:key="nodeId" id="child-{{ item.nodeId }}" node-info="{{ item }}" />
|
|
49
|
+
</block>
|
|
42
50
|
</view>
|
|
43
51
|
</view>
|
|
44
52
|
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
line-height: 1em;
|
|
32
32
|
color: #444;
|
|
33
33
|
text-align: center;
|
|
34
|
+
user-select: none;
|
|
34
35
|
}
|
|
35
36
|
.fold-arrow-icon {
|
|
36
37
|
width: 1em;
|
|
@@ -94,7 +95,7 @@
|
|
|
94
95
|
.color-mode(color, @attribute-value);
|
|
95
96
|
}
|
|
96
97
|
|
|
97
|
-
.
|
|
98
|
+
.children_indent {
|
|
98
99
|
margin-left: 1em;
|
|
99
100
|
}
|
|
100
101
|
|
package/typings/miniprogram.d.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type {
|
|
2
|
+
PageConstructor,
|
|
3
|
+
ComponentConstructor,
|
|
4
|
+
BehaviorConstructor,
|
|
5
|
+
} from 'glass-easel-miniprogram-adapter'
|
|
2
6
|
|
|
3
7
|
declare global {
|
|
4
8
|
const Page: PageConstructor
|
|
5
9
|
const Component: ComponentConstructor
|
|
10
|
+
const Behavior: BehaviorConstructor
|
|
6
11
|
}
|