General.Web/wwwroot/assets/module/notice/notice.js
(开头部分) 52KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
layui.define([], function (exports) {
var PLUGIN_NAME = 'iziToast'; // 样式类名
var BODY = document.querySelector('body');
var ISMOBILE = (/Mobi/.test(navigator.userAgent)) ? true : false;
var MOBILEWIDTH = 568;
var ISCHROME = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);
var ISFIREFOX = typeof InstallTrigger !== 'undefined';
var ACCEPTSTOUCH = 'ontouchstart' in document.documentElement;
// 显示区域
var POSITIONS = ['bottomRight', 'bottomLeft', 'bottomCenter', 'topRight', 'topLeft', 'topCenter', 'center'];
// 默认主题
var THEMES = {
info: {
color: 'blue',
icon: 'ico-info'
},
success: {
color: 'green',
icon: 'ico-success'
},
warning: {
color: 'orange',
icon: 'ico-warning'
},
error: {
color: 'red',
icon: 'ico-error'
},
question: {
color: 'yellow',
icon: 'ico-question'
}
};
var CONFIG = {}; // 全局配置
// 默认配置
var defaults = {
id: null,
className: '', // 自定义class,用空格分割
title: '', // 标题
titleColor: '', // 标题文字颜色
titleSize: '', // 标题文字大小
titleLineHeight: '', // 标题高度
message: '', // 内容
messageColor: '', // 内容文字颜色
messageSize: '', // 内容文字大小
messageLineHeight: '', // 内容高度
backgroundColor: '', // 背景颜色
theme: 'light', // dark
color: '', // 背景颜色
icon: '', // 图标
iconText: '', // 图标文字
iconColor: '', // 图标颜色
iconUrl: null, // 图标地址
image: '', // 是否显示图片
imageWidth: 60, // 图片宽度
maxWidth: null, // 最大宽度
zindex: null, //
layout: 2, // 布局类型
balloon: false, // 气泡
close: true, // 是否显示关闭按钮
后面还有 1181 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
