Add the attribute to the DOM, json is the json file name in the lang/
添加属性到 DOM,json 是 lang/ 目录中的 json 文件名
lang-set="json"
get language cookie
run javascript
运行 javascript
getCookie('lang')
language mark
Add the attribute to the DOM, lang-name is the structure in json, lang to html, lang-placeholder to placeholder, lang-value to value, lang-content to content
Run javascript, touch accepts a selector string or DOM element as first argument, direction as second, callback as third, and optional threshold (default 100px) as fourth
运行 javascript,touch 第一个参数接受选择器字符串或 DOM 元素,第二个参数为方向,第三个为回调函数,第四个参数为滑动阈值(默认 100px)
Warning : Amount of slides in loop mode should be at least 2x of slidesPerView value
警告:循环模式中幻灯片数量应至少为 slidesPerView 值的 2 倍
code
Add styles and javascript from the domestic CDN to the head
从国内 CDN 添加样式和 javascript 到 head
International CDN
国际CDN
swiper banner code
Add the code to the DOM
添加代码到 DOM
swiper list code
Add the code to the DOM
添加代码到 DOM
swiper vertical code
Add the code to the DOM
添加代码到 DOM
swiper gallery code
Add the code to the DOM
添加代码到 DOM
swiper animate code
Add the code to the DOM
添加代码到 DOM
swiper lug code
Add the code to the DOM
添加代码到 DOM
var swiperLug = new Swiper('.lug-top',{})
;[0,1,2,3,4].forEach(function(i){document.getElementById('lug-'+(i+1)).addEventListener('click',function(){swiperLug.slideToLoop(i, 1000, false)})})
Create a centered tip overlay, auto-removes after time ms (default 3000)
创建居中提示,time 毫秒后自动消失,默认 3000ms
alert: alertFn
Display a modal alert dialog with confirm button
弹出警告对话框,含确认按钮
confirm: confirmFn
Display a confirm dialog with cancel and confirm buttons
弹出确认对话框,含取消和确认按钮
prompt: promptFn
Display a prompt dialog with text input
弹出输入框对话框
notify(str, align, time)
Push a notification to the notification list with sound
推送通知到通知列表,带提示音
notifyRemove(el)
Remove a notification item with animation
移除单个通知项,带退出动画
countdown(date){countdownFn(date)}
Initialize countdown timer, updates <d>, <h>, <m>, <s> units
初始化倒计时,自动更新天/时/分/秒
disable()
Disable right-click, text selection, drag, copy, devtools shortcuts
禁用右键、文字选择、拖拽、复制、开发者工具快捷键
lug()
Initialize thumbnail navigation sync with Swiper carousel
初始化缩略图导航与 Swiper 轮播同步
mobile(force)
Force mobile CSS on desktop or remove it
在桌面端强制应用移动端样式或移除
touch(selector, direction, callback, threshold)
Bind swipe gesture detection to an element
为元素绑定滑动手势检测
alone(elements)
Split element text into individual <z> wrapped characters
将元素文字拆分为独立的 <z> 字符
setCookie(name, value, hours)
Set a cookie with optional expiry in hours
设置 Cookie,可选小时过期时间
getCookie(name)
Get a cookie value by name
通过名称获取 Cookie 值
isMobileView()
Check if current view is mobile viewport
检测当前是否为移动端视口
scrollAnim(scrollEl, from, to, duration)
Smooth scroll animation between two positions
在两个滚动位置之间执行平滑动画
class
custom element and init function reference
Custom element class and initialization functions exported by UIGG
UIGG 导出的自定义元素类和初始化函数
name
definition
Uigg
Manager object, aggregates all functions and classes, provides init() entry
管理器对象,聚合所有函数和类,提供 init() 入口
Load
Loading animation element, auto-hides on load complete or after 6s
加载动画元素,加载完成后自动隐藏或 6 秒后隐藏
Music
Background music player, toggle play/pause on click
背景音乐播放器,点击切换播放/暂停
Name
Navigation branding component with search icon and underline
导航品牌组件,含搜索图标和下划线
Nav
Top navigation bar, supports UIGG wave decoration
顶部导航栏,支持 UIGG 波浪装饰
Tab
Tab switching component, click list to toggle content panels
标签页切换组件,点击列表切换内容面板
Pop
Popup overlay layer with sider, choice, and main modes
弹出覆盖层,支持侧边、选择、主弹窗模式
Menu
Responsive navigation menu, collapses to toggle on mobile
响应式导航菜单,移动端折叠为切换
Scaler
Quantity selector with add/reduce buttons
数量选择器,含加减按钮
Choice
Dropdown selector, click to toggle and select
下拉选择器,点击展开和选择
Progress
Progress bar with color theme support
进度条,支持颜色主题
Drop
Cascade dropdown menu with animation
级联下拉菜单,带展开动画
Rate
Star rating component with optional edit mode
星级评分组件,支持可选编辑模式
Empty
Empty state display with default language-adaptive text
空状态显示,默认语言自适应文本
Hop
Expandable content area with position control
可展开内容区域,支持位置控制
Fold
Fold/accordion component, supports multi-show or single accordion
折叠/手风琴组件,支持多展开或手风琴模式
Step
Step indicator with automatic numbering
步骤指示器,自动编号
Crumb
Breadcrumb navigation with home and separator icons
面包屑导航,自动添加首页和分隔图标
Horn
Floating badge, auto-sets parent to relative positioning
浮动角标,自动设置父元素为相对定位
Notice
Audio notification display with optional link
语音通知展示,可选链接
initCustomElements
Register custom elements or fallback for unsupported browsers
注册自定义元素,不支持时降级处理
initPage
Initialize all <page> elements with pagination rendering
初始化所有 <page> 元素,渲染分页控件
initLazy
Add loading="lazy" attribute to elements with 'lazy' attribute
为带 lazy 属性的元素添加 loading="lazy"
initLang
Load language JSON and apply translations, supports switching
加载语言 JSON 并应用翻译,支持切换
initFullscreen
Bind full-screen toggle with cross-browser compatibility
绑定全屏切换,兼容多浏览器
initAudio
Bind audio playback by clicking elements with audio-* class
通过点击带 audio-* 类的元素播放音频
initSmooth
Bind smooth scroll to anchor links
绑定平滑滚动到锚点链接
initReturn
Bind back navigation to .return links
绑定返回上一页到 .return 链接
initTop
Add scroll-to-top button, shows after scrolling past viewport
添加回到顶部按钮,滚动超过一屏后显示
initPopLinks
Bind links with pop attribute to show corresponding pop layer
绑定带 pop 属性的链接,显示对应弹窗
initToggle
Initialize toggle and radio button behavior for o.* elements
初始化 o.* 元素的切换和单选行为
initAutoTextarea
Auto-resize textarea height on input
输入时自动调整 textarea 高度
initUpload
Initialize file upload with image preview and dynamic add
初始化文件上传,支持图片预览和动态添加
initRandom
Generate random placeholder data for uigg="bg|img|product|avatar|color|txt|title|emot"
为 uigg 占位属性生成随机数据
initClue
Initialize clue/tooltip positioning for elements with clue attribute
初始化带 clue 属性的元素提示定位
initCopy
Bind clipboard copy for [copy-btn] and [copy-select] elements
绑定 [copy-btn] 和 [copy-select] 的剪贴板复制
initNotifyClose
Bind click-to-close for notification items
绑定通知项的点击关闭
initSwiperBtns
Add ico navigation icons to Swiper prev/next buttons
为 Swiper 前后按钮添加图标类
initRecording
Bind screen recording with automatic download
绑定屏幕录制,录制完成后自动下载
attribute
independent attribute
Common available attributes in UIGG
UIGG 中通用的可用属性
attribute
definition
uigg
Exclusive function call of uigg framework
uigg 框架独有功能调用
edit
Make components editable
使组件可编辑
value
Sets the current value of the component
设置组件的当前值
max
Set the maximum value of the component
设置组件的最大值
min
Set the minimum value of the component
设置组件的最小值
step
Set the step value of the component
设置组件的步长值
pause
Set media pause
设置媒体暂停
play
Set media play
设置媒体播放
column
Flex vertical arrangement
弹性垂直排列
disabled
Set component disable
设置组件禁用
selected
Disable selection
禁用选择
cover
Object cover fills container
对象覆盖填充容器
contain
Object contain fills container
对象包含填充容器
center
Set object centered content
设置对象居中内容
left
Set object left alignment
设置对象左对齐
right
Set object right alignment
设置对象右对齐
top
Set object top alignment
设置对象顶部对齐
bottom
Set object bottom alignment
设置对象底部对齐
show
Force display object
强制显示对象
hide
Force hidden objects
强制隐藏对象
copy-val
Copy trigger value
复制触发值
copy-btn
Copy trigger button
复制触发按钮
lang
Paragraph translation
段落翻译
lang-set
Language cookie settings
语言Cookie设置
lang-placeholder
Placeholder translation
占位符翻译
lang-value
Value translation
值翻译
lang-content
Content translation
内容翻译
color
Define element color
定义元素颜色
thumb
Appearance of rate
评分外观
lazy
Lazy loading elements
懒加载元素
circular
Appearance of rate
评分圆圈外观
title
The title will be escaped as "clue"
标题将被转义为"线索"
label
label quick reference
UIGG exclusive label definition
UIGG 独有标签定义
label
definition
Second tag, inheriting the underline of HTML, At the same time, it can serve as a support for an flex box
二级标签,继承了 HTML 的下划线,同时也可以作为一个支持 flex 盒子的辅助标签
Third tag, inheriting the strikethrough of HTML, seconds in time component
三级标签,继承了 HTML 的删除线,同时也可以作为时间组件中的秒单位
Icon definition
图标定义
Close button and close layer
关闭按钮和关闭层
Lonely element
孤岛元素
Global toggle element
全局切换元素
Minute in time component
时间组件中的分钟单位
Day in time component
时间组件中的天单位
Hour in time component
时间组件中的时单位
Year in time component
时间组件中的年单位
Floating horn
浮动角标
Prompt text
提示文本
color
CSS functions
UIGG preset some common color functions
UIGG 预置一些常用的颜色函数
type
effect
function
color
background
purity
var(--fff)
co-fff
bg-fff
var(--f7)
co-f7
bg-f7
var(--eee)
co-eee
bg-eee
var(--ddd)
co-ddd
bg-ddd
var(--ccc)
co-ccc
bg-ccc
var(--bbb)
co-bbb
bg-bbb
var(--999)
co-999
bg-999
var(--666)
co-666
bg-666
var(--333)
co-333
bg-333
var(--222)
co-222
bg-222
var(--111)
co-111
bg-111
var(--000)
co-000
bg-000
color
var(--brown)
co-brown
bg-brown
var(--red)
co-red
bg-red
var(--pink)
co-pink
bg-pink
var(--purple)
co-purple
bg-purple
var(--sapphire)
co-sapphire
bg-sapphire
var(--blue)
co-blue
bg-blue
var(--cyan)
co-cyan
bg-cyan
var(--green)
co-green
bg-green
var(--lime)
co-lime
bg-lime
var(--yellow)
co-yellow
bg-yellow
var(--orange)
co-orange
bg-orange
var(--tomato)
co-tomato
bg-tomato
bg-wheel
type
effect
function
effect
function
transparent
var(--000-1)
var(--fff-1)
var(--000-2)
var(--fff-2)
var(--000-3)
var(--fff-3)
var(--000-4)
var(--fff-4)
var(--000-5)
var(--fff-5)
var(--000-6)
var(--fff-6)
var(--000-7)
var(--fff-7)
var(--000-8)
var(--fff-8)
var(--000-9)
var(--fff-9)
ico
UIGG iconfont
UIGG iconfont is a library free licensed font families and api for conveniently using the fonts via iconfont, img, unicode, symbol and css. We also provide delightful, beautifully crafted icons for common actions and items. Download them for use in your digital products for Android, iOS, and web.