This repository has been archived by the owner on Oct 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
205 lines (203 loc) · 8.06 KB
/
index.html
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
<!DOCTYPE html>
<html lang="zh-Hans-CN">
<head>
<meta charset="utf-8">
<title>💠 LayUI 扩展组件 by iTanken(子兮子兮)</title>
<meta name="keywords" content="layui,JS组件,layui扩展,扩展组件">
<meta name="description" content="基于 LayUI 的扩展组件">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<link rel="shortcut icon" href="img/favicon.ico">
<link rel="stylesheet" href="js/layui/css/layui.css" media="all">
<link rel="stylesheet" href="css/index.min.css" media="all">
<style type="text/css">
.layui-card-body { overflow: visible!important; }
</style>
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
<!--[if lt IE 9]>
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body class="site-home" id="LAY_home" style="background-color: #eee;" data-date="3-29">
<div class="layui-header header header-index" spring>
<div class="">
<a class="logo" href="#">
<img src="img/logo.png" alt="layui">
</a>
<div class="layui-form component" lay-filter="LAY-site-header-component"></div>
<ul class="layui-nav">
<li class="layui-nav-item ">
<a href="#doc">文档<!-- <span class="layui-badge-dot"></span> --></a>
</li>
</ul>
</div>
</div>
<div class="site-banner">
<div class="site-banner-bg"></div>
<div class="site-banner-main">
<div class="site-zfj">
<i class="layui-icon" style="color: #fff; color: rgba(255,255,255,.7);"></i>
</div>
<div class="layui-anim site-desc">
<p class="web-font-desc">Layui 扩展组件</p>
<cite>由业余前端倾情打造...</cite>
</div>
<div class="site-download">
<a href="https://github.com/iTanken/LayuiExtend/archive/master.zip" class="layui-inline site-down" target="_blank">
<cite class="layui-icon"></cite> 立即下载
</a>
</div>
<div class="site-version">
</div>
<div class="site-banner-other">
<a href="https://github.com/iTanken/LayuiExtend/" target="_blank" class="site-star">
<i class="layui-icon"></i> Star <cite id="getStars"></cite>
</a>
<a href="https://github.com/iTanken/LayuiExtend/network/members" target="_blank" rel="nofollow" class="site-fork">
<i class="layui-icon"></i> Fork
</a>
</div>
</div>
</div>
<div class="layui-fluid" id="doc">
<div class="layui-row layui-col-space10">
<div class="layui-col-xs12 layui-col-sm6 layui-col-lg6">
<div class="layui-card">
<div class="layui-card-header"><span class="layui-badge layui-badge-rim">20200119</span> 数字输入 number input</div>
<div class="layui-card-body">
<h3>示例:</h3>
<div class="layui-form">
<div class="layui-form-item">
<input class="layui-input layui-input-number" min="-10" max="1000" data-prec="4" placeholder="控制精确度保留 4 位小数" id="numberInput">
</div>
<div class="layui-form-item">
<input class="layui-input layui-input-number" min="0.1" max="8" step="0.5" placeholder="无精确度控制">
</div>
<div class="layui-form-item">
<input class="layui-input range-value layui-input-number">
<span class="layui-word-aux"> ~ </span>
<input class="layui-input range-value layui-input-number">
</div>
<blockquote class="layui-elem-quote layui-quote-nm">
<p>支持数字键盘输入,退格键删除,上下左右键增加减小,+/- 键切换正负数。</p>
</blockquote>
</div>
</div>
</div>
</div>
<div class="layui-col-xs12 layui-col-sm6 layui-col-lg6">
<div class="layui-card">
<div class="layui-card-header"><span class="layui-badge layui-badge-rim">20200310</span> 文本工具 text tool</div>
<div class="layui-card-body">
<h3>示例:</h3>
<div class="layui-form">
<div class="layui-form-item">
<textarea class="layui-textarea layext-text-tool" id="layext-textool-textarea" maxlength="512"
placeholder="默认示例">置于输入框内部、赋值后再渲染工具条支持重置为初始值。</textarea>
</div>
<div class="layui-form-item">
<input class="layui-input" id="layext-textool-max-noreset" placeholder="初始化时指定最大字数限制,关闭重置按钮,使用吸附提示">
</div>
<div class="layui-form-item">
<input class="layui-input" id="layext-textool-text-left" placeholder="无最大字数限制,自定义按钮顺序,居左,默认收起">
</div>
<blockquote class="layui-elem-quote layui-quote-nm">
<p>支持 <code class="layui-badge layui-badge-rim">maxlength</code> 最大字数显示及字数统计、复制、清空和重置等功能。可批量渲染或单个渲染。</p>
</blockquote>
</div>
</div>
</div>
</div>
<!--
<div class="layui-col-xs12 layui-col-sm6 layui-col-lg4">
<div class="layui-card">
<div class="layui-card-header">3</div>
<div class="layui-card-body">
<h3>示例:</h3>
<div class="layui-form">
...
</div>
</div>
</div>
</div>
-->
</div>
</div>
<div class="layui-footer footer footer-index">
<div class="">
<p>MIT license</p>
<p>
<a href="https://zixizixi.cn/" target="_blank">子兮子兮</a>
</p>
</div>
</div>
<div class="site-tree-mobile layui-hide">
<i class="layui-icon"></i>
</div>
<div class="site-mobile-shade"></div>
<script src="js/layui/layui.js" charset="utf-8"></script>
<script>
layui.config({ base: 'js/modules/', version: '202004091537678' }).extend({
numinput: 'numinput/numinput', textool: 'textool/textool.min'
}).use(['form', 'numinput', 'textool', 'code', 'util'], function() {
var $ = layui.$, form = layui.form, numinp = layui.numinput, textool = layui.textool,
util = layui.util, layer = layui.layer;
// 初始化数组输入组件示例
numinp.init({ rightBtns: true });
// 初始化文本工具组件默认示例
textool.init({
inner: true,
initEnd: function() {
layer.msg('textool 1 初始化 End!');
},
showEnd: function($target, $pane) {
layer.msg('textool 1 展开 End!');
},
hideEnd: function($target, $pane) {
layer.msg('textool 1 收起 End!');
}
});
// 初始化文本工具组件关闭重置按钮示例
textool.init({
eleId: 'layext-textool-max-noreset',
maxlength: 32,
initEnd: function() {
layer.msg('textool 2 初始化 End!');
},
showEnd: function($target, $pane) {
layer.msg('textool 2 展开 End!');
},
hideEnd: function($target, $pane) {
layer.msg('textool 2 收起 End!');
},
tools: ['count', 'copy', 'clear'],
tipType: 'laytips',
tipColor: '#5FB878'
});
// 初始化文本工具组件居左示例
textool.init({
eleId: 'layext-textool-text-left',
initEnd: function() {
layer.msg('textool 3 初始化 End!');
},
showEnd: function($target, $pane) {
layer.msg('textool 3 展开 End!');
},
hideEnd: function($target, $pane) {
layer.msg('textool 3 收起 End!');
},
initShow: false,
tools: ['clear', 'copy', 'count'],
align: 'left'
});
util.fixbar();
layui.code({ about: false, height: '500px' });
});
</script>
</body>
</html>