Blame view

public/assets/addons/fastflow/plugins/jstree-master/test/visual/desktop/index.html 1.58 KB
2db47680   hexiaodong   chore: 初始提交 php 遗...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
  <!DOCTYPE html>

  <html lang="en">

  <head>

  	<meta charset="UTF-8">

  	<title>Light theme visual tests</title>

  	<link rel="stylesheet" href="./../../../dist/themes/default/style.min.css">

  	<link rel="stylesheet" href="./../../../dist/themes/default-dark/style.min.css">

  	<style>.tree { border:1px solid black; padding:10px; width:300px; margin:20px; float:left; min-height:200px; }</style>

  </head>

  <body style="background:white;">

  	<div class="tree" id="empty"></div>

  	<div class="tree" id="core"><ul><li>asdf</li></ul></div>

  	<div class="tree" id="tree">

  		<ul>

  			<li>Node 01

  				<ul>

  					<li>Node</li>

  					<li>Node</li>

  				</ul>

  			</li>

  			<li>Node 02</li>

  			<li data-jstree='{"opened" : true}'>Node 03

  				<ul>

  					<li>Node</li>

  					<li>Node</li>

  				</ul>

  			</li>

  			<li>Node 04</li>

  			<li>Node 05</li>

  		</ul>

  	</div>

  	<div class="tree" id="full"><ul><li data-jstree='{ "selected" : true, "type" : "file" }'>full</li><li>asdf</li></ul></div>

  	<div class="tree" id="dark"><ul><li data-jstree='{ "selected" : true, "type" : "file"}'>full</li><li>asdf</li></ul></div>

  

  	<script src="./../../../dist/libs/jquery.js"></script>

  	<script src="./../../../dist/jstree.min.js"></script>

  	<script>

  	$('#empty').jstree();

  	$('#tree, #core').jstree();

  	$('#full').jstree({ plugins : ["checkbox","sort","types","wholerow"], "types" : { "file" : { "icon" : "jstree-file" } } });

  	$('#dark').jstree({ plugins : ["checkbox","sort","types","wholerow"], "core" : { "themes" : { "name" : "default-dark" } }, "types" : { "file" : { "icon" : "jstree-file" } } });

  	</script>

  </body>

  </html>