code
stringlengths 24
2.07M
| docstring
stringlengths 25
85.3k
| func_name
stringlengths 1
92
| language
stringclasses 1
value | repo
stringlengths 5
64
| path
stringlengths 4
172
| url
stringlengths 44
218
| license
stringclasses 7
values |
---|---|---|---|---|---|---|---|
static normal (text, time = 3000) {
return this.custom(text, 'normal', time);
}
|
@LightTip.js
@author popeyesailorman(yangfan)
@version
@Created: 20-05-15
@edit: 20-05-15
|
normal
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/LightTip.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/LightTip.js
|
MIT
|
remove () {
if (this.parentElement) {
this.parentElement.removeChild(this);
}
this.open = false;
}
|
@LightTip.js
@author popeyesailorman(yangfan)
@version
@Created: 20-05-15
@edit: 20-05-15
|
remove
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/LightTip.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/LightTip.js
|
MIT
|
show () {
if (this.time > 0) {
this.open = true;
}
}
|
@LightTip.js
@author popeyesailorman(yangfan)
@version
@Created: 20-05-15
@edit: 20-05-15
|
show
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/LightTip.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/LightTip.js
|
MIT
|
hide () {
this.open = false;
}
|
@LightTip.js
@author popeyesailorman(yangfan)
@version
@Created: 20-05-15
@edit: 20-05-15
|
hide
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/LightTip.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/LightTip.js
|
MIT
|
static get observedAttributes () {
return ['per', 'total', 'current', 'loading'];
}
|
@Pagination.js
@author XboxYan(yanwenbin)
@version
@Created: 20-04-22
@edit: 20-04-22
|
observedAttributes
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Pagination.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Pagination.js
|
MIT
|
get per () {
return Number(this.getAttribute('per')) || 15;
}
|
@Pagination.js
@author XboxYan(yanwenbin)
@version
@Created: 20-04-22
@edit: 20-04-22
|
per
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Pagination.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Pagination.js
|
MIT
|
get simple () {
return this.getAttribute('mode') === 'short';
}
|
@Pagination.js
@author XboxYan(yanwenbin)
@version
@Created: 20-04-22
@edit: 20-04-22
|
simple
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Pagination.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Pagination.js
|
MIT
|
get total () {
return Number(this.getAttribute('total')) || 0;
}
|
@Pagination.js
@author XboxYan(yanwenbin)
@version
@Created: 20-04-22
@edit: 20-04-22
|
total
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Pagination.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Pagination.js
|
MIT
|
get current () {
return Number(this.getAttribute('current')) || 1;
}
|
@Pagination.js
@author XboxYan(yanwenbin)
@version
@Created: 20-04-22
@edit: 20-04-22
|
current
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Pagination.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Pagination.js
|
MIT
|
get loading () {
return this.getAttribute('loading') !== null;
}
|
@Pagination.js
@author XboxYan(yanwenbin)
@version
@Created: 20-04-22
@edit: 20-04-22
|
loading
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Pagination.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Pagination.js
|
MIT
|
get href () {
//?page=1
return this.getAttribute('href');
}
|
@Pagination.js
@author XboxYan(yanwenbin)
@version
@Created: 20-04-22
@edit: 20-04-22
|
href
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Pagination.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Pagination.js
|
MIT
|
set current (value) {
this.setAttribute('current', Math.min(Math.max(1, value), this.count));
}
|
@Pagination.js
@author XboxYan(yanwenbin)
@version
@Created: 20-04-22
@edit: 20-04-22
|
current
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Pagination.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Pagination.js
|
MIT
|
set per (value) {
this.setAttribute('per', value);
}
|
@Pagination.js
@author XboxYan(yanwenbin)
@version
@Created: 20-04-22
@edit: 20-04-22
|
per
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Pagination.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Pagination.js
|
MIT
|
set total (value) {
this.setAttribute('total', value);
}
|
@Pagination.js
@author XboxYan(yanwenbin)
@version
@Created: 20-04-22
@edit: 20-04-22
|
total
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Pagination.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Pagination.js
|
MIT
|
set loading (value) {
if (!value) {
this.removeAttribute('loading');
} else {
this.setAttribute('loading', '');
}
}
|
@Pagination.js
@author XboxYan(yanwenbin)
@version
@Created: 20-04-22
@edit: 20-04-22
|
loading
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Pagination.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Pagination.js
|
MIT
|
get htmlFor () {
return this.getAttribute('for');
}
|
@Pagination.js
@author XboxYan(yanwenbin)
@version
@Created: 20-04-22
@edit: 20-04-22
|
htmlFor
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Pagination.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Pagination.js
|
MIT
|
set htmlFor (value) {
this.setAttribute('for', value);
}
|
@Pagination.js
@author XboxYan(yanwenbin)
@version
@Created: 20-04-22
@edit: 20-04-22
|
htmlFor
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Pagination.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Pagination.js
|
MIT
|
focusPrev () {
const current = this.shadowRoot.activeElement;
if (current === this.right) {
if (this.simple) {
this.left.focus();
} else {
this.page.lastElementChild.focus();
}
} else {
const prev = current.previousElementSibling;
if (prev) {
if (!prev.disabled) {
prev.focus();
} else {
prev.previousElementSibling.focus();
}
} else {
this.left.focus();
}
}
}
|
@Pagination.js
@author XboxYan(yanwenbin)
@version
@Created: 20-04-22
@edit: 20-04-22
|
focusPrev
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Pagination.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Pagination.js
|
MIT
|
focusNext () {
const current = this.shadowRoot.activeElement;
if (current === this.left) {
if (this.simple) {
this.right.focus();
} else {
this.page.firstElementChild.focus();
}
} else {
const next = current.nextElementSibling;
if (next) {
if (!next.disabled) {
next.focus();
} else {
next.nextElementSibling.focus();
}
} else {
this.right.focus();
}
}
}
|
@Pagination.js
@author XboxYan(yanwenbin)
@version
@Created: 20-04-22
@edit: 20-04-22
|
focusNext
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Pagination.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Pagination.js
|
MIT
|
static get observedAttributes () {
return ['max', 'min', 'step', 'disabled'];
}
|
@Range.js
@author xboxyan
@version
@created: 20-04-30
|
observedAttributes
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Range.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Range.js
|
MIT
|
get defaultrange () {
return this.getAttribute('range') || `${this.getAttribute('from') || this.min || 0},${this.getAttribute('to') || this.max || 100}`;
}
|
@Range.js
@author xboxyan
@version
@created: 20-04-30
|
defaultrange
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Range.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Range.js
|
MIT
|
set multiple (value) {
return this.toggleAttribute('multiple', value);
}
|
@Range.js
@author xboxyan
@version
@created: 20-04-30
|
multiple
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Range.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Range.js
|
MIT
|
get multiple () {
return this.getAttribute('multiple') !== null;
}
|
@Range.js
@author xboxyan
@version
@created: 20-04-30
|
multiple
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Range.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Range.js
|
MIT
|
get from () {
if (this.element && this.element.otherRange) {
return Math.min(this.value, this.element.otherRange.value);
}
return '';
}
|
@Range.js
@author xboxyan
@version
@created: 20-04-30
|
from
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Range.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Range.js
|
MIT
|
get to () {
if (this.element && this.element.otherRange) {
return Math.max(this.value, this.element.otherRange.value);
}
return '';
}
|
@Range.js
@author xboxyan
@version
@created: 20-04-30
|
to
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Range.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Range.js
|
MIT
|
get range () {
if (this.multiple) {
return this.from + ',' + this.to;
}
return '';
}
|
@Range.js
@author xboxyan
@version
@created: 20-04-30
|
range
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Range.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Range.js
|
MIT
|
set from (v) {
if (this.element && this.element.otherRange) {
if (this.isFrom) {
this.value = v;
} else {
this.element.otherRange.value = v;
}
}
}
|
@Range.js
@author xboxyan
@version
@created: 20-04-30
|
from
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Range.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Range.js
|
MIT
|
set to (v) {
if (this.element && this.element.otherRange) {
if (!this.isFrom) {
this.value = v;
} else {
this.element.otherRange.value = v;
}
}
}
|
@Range.js
@author xboxyan
@version
@created: 20-04-30
|
to
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Range.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Range.js
|
MIT
|
set range (v) {
if (this.multiple) {
const [from, to] = v.split(',');
this.to = to;
this.from = from;
}
}
|
@Range.js
@author xboxyan
@version
@created: 20-04-30
|
range
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Range.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Range.js
|
MIT
|
disconnectedCallback () {
this.removeEventListener('input', this.render);
this.removeEventListener('change', this.change);
this.removeEventListener('touchstart', this.stopPropagation);
if (this.element && this.element.otherRange && !this.exchange) {
this.element.otherRange.remove();
}
}
|
@Range.js
@author xboxyan
@version
@created: 20-04-30
|
disconnectedCallback
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Range.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Range.js
|
MIT
|
attributeChangedCallback (name, oldValue, newValue) {
if (oldValue !== newValue) {
if (name === 'disabled' && this.element && this.element.otherRange) {
this.element.otherRange.disabled = newValue !== null;
} else {
this.render();
}
}
}
|
@Range.js
@author xboxyan
@version
@created: 20-04-30
|
attributeChangedCallback
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Range.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Range.js
|
MIT
|
static get observedAttributes () {
return ['open'];
}
|
@Pagination.js
@author sunmeiye
@version
@Created: 20-06-07
@edit: 20-06-07
|
observedAttributes
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Tab.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Tab.js
|
MIT
|
static get defaults () {
return {
eventType: 'click',
history: false,
autoplay: 3000
};
}
|
@Pagination.js
@author sunmeiye
@version
@Created: 20-06-07
@edit: 20-06-07
|
defaults
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Tab.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Tab.js
|
MIT
|
get eventType () {
let strEventType = this.getAttribute('eventtype') || Tab.defaults.eventType;
if (strEventType == 'hover') {
strEventType = 'mouseenter';
}
return strEventType;
}
|
@Pagination.js
@author sunmeiye
@version
@Created: 20-06-07
@edit: 20-06-07
|
eventType
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Tab.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Tab.js
|
MIT
|
set eventType (value) {
this.setAttribute('eventtype', value);
}
|
@Pagination.js
@author sunmeiye
@version
@Created: 20-06-07
@edit: 20-06-07
|
eventType
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Tab.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Tab.js
|
MIT
|
get history () {
return this.hasAttribute('history') || Tab.defaults.history;
}
|
@Pagination.js
@author sunmeiye
@version
@Created: 20-06-07
@edit: 20-06-07
|
history
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Tab.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Tab.js
|
MIT
|
set history (value) {
this.toggleAttribute('history', value);
}
|
@Pagination.js
@author sunmeiye
@version
@Created: 20-06-07
@edit: 20-06-07
|
history
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Tab.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Tab.js
|
MIT
|
get autoplay () {
let strAttrAutoplay = this.getAttribute('autoplay');
if (typeof strAttrAutoplay !== 'string') {
return false;
}
if (/^\d+$/.test(strAttrAutoplay)) {
return strAttrAutoplay * 1;
}
return Tab.defaults.autoplay;
}
|
@Pagination.js
@author sunmeiye
@version
@Created: 20-06-07
@edit: 20-06-07
|
autoplay
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Tab.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Tab.js
|
MIT
|
set autoplay (value) {
if (!value && value !== '') {
this.removeAttribute('autoplay');
} else {
this.setAttribute('autoplay', value);
}
}
|
@Pagination.js
@author sunmeiye
@version
@Created: 20-06-07
@edit: 20-06-07
|
autoplay
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Tab.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Tab.js
|
MIT
|
get name () {
return this.getAttribute('name');
}
|
@Pagination.js
@author sunmeiye
@version
@Created: 20-06-07
@edit: 20-06-07
|
name
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Tab.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Tab.js
|
MIT
|
set name (value) {
this.setAttribute('name', value);
}
|
@Pagination.js
@author sunmeiye
@version
@Created: 20-06-07
@edit: 20-06-07
|
name
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Tab.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Tab.js
|
MIT
|
get htmlFor () {
return this.getAttribute('for');
}
|
@Pagination.js
@author sunmeiye
@version
@Created: 20-06-07
@edit: 20-06-07
|
htmlFor
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Tab.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Tab.js
|
MIT
|
get target () {
return this.getAttribute('target');
}
|
@Pagination.js
@author sunmeiye
@version
@Created: 20-06-07
@edit: 20-06-07
|
target
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Tab.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Tab.js
|
MIT
|
set target (value) {
this.setAttribute('target', value);
}
|
@Pagination.js
@author sunmeiye
@version
@Created: 20-06-07
@edit: 20-06-07
|
target
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Tab.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Tab.js
|
MIT
|
get open () {
return this.hasAttribute('open');
}
|
@Pagination.js
@author sunmeiye
@version
@Created: 20-06-07
@edit: 20-06-07
|
open
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Tab.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Tab.js
|
MIT
|
set open (value) {
this.toggleAttribute('open', value);
}
|
@Pagination.js
@author sunmeiye
@version
@Created: 20-06-07
@edit: 20-06-07
|
open
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Tab.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Tab.js
|
MIT
|
setParams (options) {
this.params = this.params || {};
options = options || {};
Object.assign(this.params, options);
}
|
@Pagination.js
@author sunmeiye
@version
@Created: 20-06-07
@edit: 20-06-07
|
setParams
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Tab.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Tab.js
|
MIT
|
static get observedAttributes () {
return ['title', 'reverse', 'for', 'eventType', 'align'];
}
|
@Tips.js
@author zhangxinxu
@version
@Created: 15-06-25
@edit: 17-06-19
@edit: 20-06-09 edit by y2x
@edit: 20-11-03 by zxx
|
observedAttributes
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Tips.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Tips.js
|
MIT
|
get reverse () {
return this.getAttribute('reverse') !== null || this.classList.contains('reverse');
}
|
@Tips.js
@author zhangxinxu
@version
@Created: 15-06-25
@edit: 17-06-19
@edit: 20-06-09 edit by y2x
@edit: 20-11-03 by zxx
|
reverse
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Tips.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Tips.js
|
MIT
|
set reverse (value) {
if (value) {
this.setAttribute('reverse', '');
} else {
this.removeAttribute('reverse');
}
}
|
@Tips.js
@author zhangxinxu
@version
@Created: 15-06-25
@edit: 17-06-19
@edit: 20-06-09 edit by y2x
@edit: 20-11-03 by zxx
|
reverse
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Tips.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Tips.js
|
MIT
|
get htmlFor () {
return this.getAttribute('for');
}
|
@Tips.js
@author zhangxinxu
@version
@Created: 15-06-25
@edit: 17-06-19
@edit: 20-06-09 edit by y2x
@edit: 20-11-03 by zxx
|
htmlFor
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Tips.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Tips.js
|
MIT
|
set htmlFor (v) {
this.setAttribute('for', v);
}
|
@Tips.js
@author zhangxinxu
@version
@Created: 15-06-25
@edit: 17-06-19
@edit: 20-06-09 edit by y2x
@edit: 20-11-03 by zxx
|
htmlFor
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Tips.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Tips.js
|
MIT
|
get align () {
return this.getAttribute('align') || 'auto';
}
|
@Tips.js
@author zhangxinxu
@version
@Created: 15-06-25
@edit: 17-06-19
@edit: 20-06-09 edit by y2x
@edit: 20-11-03 by zxx
|
align
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Tips.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Tips.js
|
MIT
|
set align (v) {
this.setAttribute('align', v);
}
|
@Tips.js
@author zhangxinxu
@version
@Created: 15-06-25
@edit: 17-06-19
@edit: 20-06-09 edit by y2x
@edit: 20-11-03 by zxx
|
align
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Tips.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Tips.js
|
MIT
|
get eventType () {
return this.getAttribute('eventtype') || 'hover';
}
|
@Tips.js
@author zhangxinxu
@version
@Created: 15-06-25
@edit: 17-06-19
@edit: 20-06-09 edit by y2x
@edit: 20-11-03 by zxx
|
eventType
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Tips.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Tips.js
|
MIT
|
set eventType (v) {
this.setAttribute('eventtype', v);
}
|
@Tips.js
@author zhangxinxu
@version
@Created: 15-06-25
@edit: 17-06-19
@edit: 20-06-09 edit by y2x
@edit: 20-11-03 by zxx
|
eventType
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Tips.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Tips.js
|
MIT
|
get trigger () {
const htmlFor = this.htmlFor;
let eleTrigger;
if (htmlFor) {
eleTrigger = document.getElementById(htmlFor);
}
return eleTrigger || this;
}
|
@Tips.js
@author zhangxinxu
@version
@Created: 15-06-25
@edit: 17-06-19
@edit: 20-06-09 edit by y2x
@edit: 20-11-03 by zxx
|
trigger
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Tips.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Tips.js
|
MIT
|
hide () {
if (!this.target) {
return;
}
this.target.style.display = 'none';
this.trigger.dispatchEvent(new CustomEvent('hide', {
detail: {
type: 'ui-tips'
}
}));
}
|
@Tips.js
@author zhangxinxu
@version
@Created: 15-06-25
@edit: 17-06-19
@edit: 20-06-09 edit by y2x
@edit: 20-11-03 by zxx
|
hide
|
javascript
|
yued-fe/lulu
|
theme/edge/js/common/ui/Tips.js
|
https://github.com/yued-fe/lulu/blob/master/theme/edge/js/common/ui/Tips.js
|
MIT
|
notify = (callback, root, MO) => {
const loop = (nodes, added, removed, connected, pass) => {
for (let i = 0, {length} = nodes; i < length; i++) {
const node = nodes[i];
if (pass || (QSA$1 in node)) {
if (connected) {
if (!added.has(node)) {
added.add(node);
removed.delete(node);
callback(node, connected);
}
}
else if (!removed.has(node)) {
removed.add(node);
added.delete(node);
callback(node, connected);
}
if (!pass)
loop(node[QSA$1]('*'), added, removed, connected, TRUE);
}
}
};
const observer = new (MO || MutationObserver)(records => {
for (let
added = new Set,
removed = new Set,
i = 0, {length} = records;
i < length; i++
) {
const {addedNodes, removedNodes} = records[i];
loop(removedNodes, added, removed, FALSE, FALSE);
loop(addedNodes, added, removed, TRUE, FALSE);
}
});
observer.add = add;
observer.add(root || document);
return observer;
}
|
Start observing a generic document or root element.
@param {Function} callback triggered per each dis/connected node
@param {Element?} root by default, the global document to observe
@param {Function?} MO by default, the global MutationObserver
@returns {MutationObserver}
|
notify
|
javascript
|
yued-fe/lulu
|
theme/hope/ui/safari-polyfill.js
|
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/safari-polyfill.js
|
MIT
|
notify = (callback, root, MO) => {
const loop = (nodes, added, removed, connected, pass) => {
for (let i = 0, {length} = nodes; i < length; i++) {
const node = nodes[i];
if (pass || (QSA$1 in node)) {
if (connected) {
if (!added.has(node)) {
added.add(node);
removed.delete(node);
callback(node, connected);
}
}
else if (!removed.has(node)) {
removed.add(node);
added.delete(node);
callback(node, connected);
}
if (!pass)
loop(node[QSA$1]('*'), added, removed, connected, TRUE);
}
}
};
const observer = new (MO || MutationObserver)(records => {
for (let
added = new Set,
removed = new Set,
i = 0, {length} = records;
i < length; i++
) {
const {addedNodes, removedNodes} = records[i];
loop(removedNodes, added, removed, FALSE, FALSE);
loop(addedNodes, added, removed, TRUE, FALSE);
}
});
observer.add = add;
observer.add(root || document);
return observer;
}
|
Start observing a generic document or root element.
@param {Function} callback triggered per each dis/connected node
@param {Element?} root by default, the global document to observe
@param {Function?} MO by default, the global MutationObserver
@returns {MutationObserver}
|
notify
|
javascript
|
yued-fe/lulu
|
theme/hope/ui/safari-polyfill.js
|
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/safari-polyfill.js
|
MIT
|
loop = (nodes, added, removed, connected, pass) => {
for (let i = 0, {length} = nodes; i < length; i++) {
const node = nodes[i];
if (pass || (QSA$1 in node)) {
if (connected) {
if (!added.has(node)) {
added.add(node);
removed.delete(node);
callback(node, connected);
}
}
else if (!removed.has(node)) {
removed.add(node);
added.delete(node);
callback(node, connected);
}
if (!pass)
loop(node[QSA$1]('*'), added, removed, connected, TRUE);
}
}
}
|
Start observing a generic document or root element.
@param {Function} callback triggered per each dis/connected node
@param {Element?} root by default, the global document to observe
@param {Function?} MO by default, the global MutationObserver
@returns {MutationObserver}
|
loop
|
javascript
|
yued-fe/lulu
|
theme/hope/ui/safari-polyfill.js
|
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/safari-polyfill.js
|
MIT
|
loop = (nodes, added, removed, connected, pass) => {
for (let i = 0, {length} = nodes; i < length; i++) {
const node = nodes[i];
if (pass || (QSA$1 in node)) {
if (connected) {
if (!added.has(node)) {
added.add(node);
removed.delete(node);
callback(node, connected);
}
}
else if (!removed.has(node)) {
removed.add(node);
added.delete(node);
callback(node, connected);
}
if (!pass)
loop(node[QSA$1]('*'), added, removed, connected, TRUE);
}
}
}
|
Start observing a generic document or root element.
@param {Function} callback triggered per each dis/connected node
@param {Element?} root by default, the global document to observe
@param {Function?} MO by default, the global MutationObserver
@returns {MutationObserver}
|
loop
|
javascript
|
yued-fe/lulu
|
theme/hope/ui/safari-polyfill.js
|
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/safari-polyfill.js
|
MIT
|
qsaObserver = options => {
const live = new WeakMap$1;
const drop = elements => {
for (let i = 0, {length} = elements; i < length; i++)
live.delete(elements[i]);
};
const flush = () => {
const records = observer.takeRecords();
for (let i = 0, {length} = records; i < length; i++) {
parse(filter.call(records[i].removedNodes, elements), false);
parse(filter.call(records[i].addedNodes, elements), true);
}
};
const matches = element => (
element.matches ||
element.webkitMatchesSelector ||
element.msMatchesSelector
);
const notifier = (element, connected) => {
let selectors;
if (connected) {
for (let q, m = matches(element), i = 0, {length} = query; i < length; i++) {
if (m.call(element, q = query[i])) {
if (!live.has(element))
live.set(element, new Set$2);
selectors = live.get(element);
if (!selectors.has(q)) {
selectors.add(q);
options.handle(element, connected, q);
}
}
}
}
else if (live.has(element)) {
selectors = live.get(element);
live.delete(element);
selectors.forEach(q => {
options.handle(element, connected, q);
});
}
};
const parse = (elements, connected = true) => {
for (let i = 0, {length} = elements; i < length; i++)
notifier(elements[i], connected);
};
const {query} = options;
const root = options.root || document$2;
const observer = notify(notifier, root, MutationObserver$2);
const {attachShadow} = Element$1.prototype;
if (attachShadow)
Element$1.prototype.attachShadow = function (init) {
const shadowRoot = attachShadow.call(this, init);
observer.add(shadowRoot);
return shadowRoot;
};
if (query.length)
parse(root[QSA](query));
return {drop, flush, observer, parse};
}
|
Start observing a generic document or root element.
@param {Function} callback triggered per each dis/connected node
@param {Element?} root by default, the global document to observe
@param {Function?} MO by default, the global MutationObserver
@returns {MutationObserver}
|
qsaObserver
|
javascript
|
yued-fe/lulu
|
theme/hope/ui/safari-polyfill.js
|
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/safari-polyfill.js
|
MIT
|
drop = elements => {
for (let i = 0, {length} = elements; i < length; i++)
live.delete(elements[i]);
}
|
Start observing a generic document or root element.
@param {Function} callback triggered per each dis/connected node
@param {Element?} root by default, the global document to observe
@param {Function?} MO by default, the global MutationObserver
@returns {MutationObserver}
|
drop
|
javascript
|
yued-fe/lulu
|
theme/hope/ui/safari-polyfill.js
|
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/safari-polyfill.js
|
MIT
|
drop = elements => {
for (let i = 0, {length} = elements; i < length; i++)
live.delete(elements[i]);
}
|
Start observing a generic document or root element.
@param {Function} callback triggered per each dis/connected node
@param {Element?} root by default, the global document to observe
@param {Function?} MO by default, the global MutationObserver
@returns {MutationObserver}
|
drop
|
javascript
|
yued-fe/lulu
|
theme/hope/ui/safari-polyfill.js
|
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/safari-polyfill.js
|
MIT
|
flush = () => {
const records = observer.takeRecords();
for (let i = 0, {length} = records; i < length; i++) {
parse(filter.call(records[i].removedNodes, elements), false);
parse(filter.call(records[i].addedNodes, elements), true);
}
}
|
Start observing a generic document or root element.
@param {Function} callback triggered per each dis/connected node
@param {Element?} root by default, the global document to observe
@param {Function?} MO by default, the global MutationObserver
@returns {MutationObserver}
|
flush
|
javascript
|
yued-fe/lulu
|
theme/hope/ui/safari-polyfill.js
|
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/safari-polyfill.js
|
MIT
|
flush = () => {
const records = observer.takeRecords();
for (let i = 0, {length} = records; i < length; i++) {
parse(filter.call(records[i].removedNodes, elements), false);
parse(filter.call(records[i].addedNodes, elements), true);
}
}
|
Start observing a generic document or root element.
@param {Function} callback triggered per each dis/connected node
@param {Element?} root by default, the global document to observe
@param {Function?} MO by default, the global MutationObserver
@returns {MutationObserver}
|
flush
|
javascript
|
yued-fe/lulu
|
theme/hope/ui/safari-polyfill.js
|
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/safari-polyfill.js
|
MIT
|
matches = element => (
element.matches ||
element.webkitMatchesSelector ||
element.msMatchesSelector
)
|
Start observing a generic document or root element.
@param {Function} callback triggered per each dis/connected node
@param {Element?} root by default, the global document to observe
@param {Function?} MO by default, the global MutationObserver
@returns {MutationObserver}
|
matches
|
javascript
|
yued-fe/lulu
|
theme/hope/ui/safari-polyfill.js
|
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/safari-polyfill.js
|
MIT
|
matches = element => (
element.matches ||
element.webkitMatchesSelector ||
element.msMatchesSelector
)
|
Start observing a generic document or root element.
@param {Function} callback triggered per each dis/connected node
@param {Element?} root by default, the global document to observe
@param {Function?} MO by default, the global MutationObserver
@returns {MutationObserver}
|
matches
|
javascript
|
yued-fe/lulu
|
theme/hope/ui/safari-polyfill.js
|
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/safari-polyfill.js
|
MIT
|
notifier = (element, connected) => {
let selectors;
if (connected) {
for (let q, m = matches(element), i = 0, {length} = query; i < length; i++) {
if (m.call(element, q = query[i])) {
if (!live.has(element))
live.set(element, new Set$2);
selectors = live.get(element);
if (!selectors.has(q)) {
selectors.add(q);
options.handle(element, connected, q);
}
}
}
}
else if (live.has(element)) {
selectors = live.get(element);
live.delete(element);
selectors.forEach(q => {
options.handle(element, connected, q);
});
}
}
|
Start observing a generic document or root element.
@param {Function} callback triggered per each dis/connected node
@param {Element?} root by default, the global document to observe
@param {Function?} MO by default, the global MutationObserver
@returns {MutationObserver}
|
notifier
|
javascript
|
yued-fe/lulu
|
theme/hope/ui/safari-polyfill.js
|
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/safari-polyfill.js
|
MIT
|
notifier = (element, connected) => {
let selectors;
if (connected) {
for (let q, m = matches(element), i = 0, {length} = query; i < length; i++) {
if (m.call(element, q = query[i])) {
if (!live.has(element))
live.set(element, new Set$2);
selectors = live.get(element);
if (!selectors.has(q)) {
selectors.add(q);
options.handle(element, connected, q);
}
}
}
}
else if (live.has(element)) {
selectors = live.get(element);
live.delete(element);
selectors.forEach(q => {
options.handle(element, connected, q);
});
}
}
|
Start observing a generic document or root element.
@param {Function} callback triggered per each dis/connected node
@param {Element?} root by default, the global document to observe
@param {Function?} MO by default, the global MutationObserver
@returns {MutationObserver}
|
notifier
|
javascript
|
yued-fe/lulu
|
theme/hope/ui/safari-polyfill.js
|
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/safari-polyfill.js
|
MIT
|
parse = (elements, connected = true) => {
for (let i = 0, {length} = elements; i < length; i++)
notifier(elements[i], connected);
}
|
Start observing a generic document or root element.
@param {Function} callback triggered per each dis/connected node
@param {Element?} root by default, the global document to observe
@param {Function?} MO by default, the global MutationObserver
@returns {MutationObserver}
|
parse
|
javascript
|
yued-fe/lulu
|
theme/hope/ui/safari-polyfill.js
|
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/safari-polyfill.js
|
MIT
|
parse = (elements, connected = true) => {
for (let i = 0, {length} = elements; i < length; i++)
notifier(elements[i], connected);
}
|
Start observing a generic document or root element.
@param {Function} callback triggered per each dis/connected node
@param {Element?} root by default, the global document to observe
@param {Function?} MO by default, the global MutationObserver
@returns {MutationObserver}
|
parse
|
javascript
|
yued-fe/lulu
|
theme/hope/ui/safari-polyfill.js
|
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/safari-polyfill.js
|
MIT
|
construct(HTMLElement) {
return HTMLElement.call(this);
}
|
Start observing a generic document or root element.
@param {Function} callback triggered per each dis/connected node
@param {Element?} root by default, the global document to observe
@param {Function?} MO by default, the global MutationObserver
@returns {MutationObserver}
|
construct
|
javascript
|
yued-fe/lulu
|
theme/hope/ui/safari-polyfill.js
|
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/safari-polyfill.js
|
MIT
|
handle = (element, connected, selector) => {
const proto = prototypes.get(selector);
if (connected && !proto.isPrototypeOf(element)) {
const redefine = expando(element);
override = setPrototypeOf(element, proto);
try { new proto.constructor; }
finally {
override = null;
redefine();
}
}
const method = `${connected ? '' : 'dis'}connectedCallback`;
if (method in proto)
element[method]();
}
|
Start observing a generic document or root element.
@param {Function} callback triggered per each dis/connected node
@param {Element?} root by default, the global document to observe
@param {Function?} MO by default, the global MutationObserver
@returns {MutationObserver}
|
handle
|
javascript
|
yued-fe/lulu
|
theme/hope/ui/safari-polyfill.js
|
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/safari-polyfill.js
|
MIT
|
handle = (element, connected, selector) => {
const proto = prototypes.get(selector);
if (connected && !proto.isPrototypeOf(element)) {
const redefine = expando(element);
override = setPrototypeOf(element, proto);
try { new proto.constructor; }
finally {
override = null;
redefine();
}
}
const method = `${connected ? '' : 'dis'}connectedCallback`;
if (method in proto)
element[method]();
}
|
Start observing a generic document or root element.
@param {Function} callback triggered per each dis/connected node
@param {Element?} root by default, the global document to observe
@param {Function?} MO by default, the global MutationObserver
@returns {MutationObserver}
|
handle
|
javascript
|
yued-fe/lulu
|
theme/hope/ui/safari-polyfill.js
|
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/safari-polyfill.js
|
MIT
|
handle(element, connected) {
if (shadowRoots.has(element)) {
if (connected)
shadows.add(element);
else
shadows.delete(element);
if (query.length)
parseShadow.call(query, element);
}
}
|
Start observing a generic document or root element.
@param {Function} callback triggered per each dis/connected node
@param {Element?} root by default, the global document to observe
@param {Function?} MO by default, the global MutationObserver
@returns {MutationObserver}
|
handle
|
javascript
|
yued-fe/lulu
|
theme/hope/ui/safari-polyfill.js
|
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/safari-polyfill.js
|
MIT
|
whenDefined = name => {
if (!defined.has(name)) {
let _, $ = new Promise$1($ => { _ = $; });
defined.set(name, {$, _});
}
return defined.get(name).$;
}
|
Start observing a generic document or root element.
@param {Function} callback triggered per each dis/connected node
@param {Element?} root by default, the global document to observe
@param {Function?} MO by default, the global MutationObserver
@returns {MutationObserver}
|
whenDefined
|
javascript
|
yued-fe/lulu
|
theme/hope/ui/safari-polyfill.js
|
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/safari-polyfill.js
|
MIT
|
whenDefined = name => {
if (!defined.has(name)) {
let _, $ = new Promise$1($ => { _ = $; });
defined.set(name, {$, _});
}
return defined.get(name).$;
}
|
Start observing a generic document or root element.
@param {Function} callback triggered per each dis/connected node
@param {Element?} root by default, the global document to observe
@param {Function?} MO by default, the global MutationObserver
@returns {MutationObserver}
|
whenDefined
|
javascript
|
yued-fe/lulu
|
theme/hope/ui/safari-polyfill.js
|
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/safari-polyfill.js
|
MIT
|
function HTMLBuiltIn() {
const {constructor} = this;
if (!classes.has(constructor))
throw new TypeError('Illegal constructor');
const {is, tag} = classes.get(constructor);
if (is) {
if (override)
return augment(override, is);
const element = createElement.call(document$1, tag);
element.setAttribute('is', is);
return augment(setPrototypeOf(element, constructor.prototype), is);
}
else
return construct.call(this, HTMLElement, [], constructor);
}
|
Start observing a generic document or root element.
@param {Function} callback triggered per each dis/connected node
@param {Element?} root by default, the global document to observe
@param {Function?} MO by default, the global MutationObserver
@returns {MutationObserver}
|
HTMLBuiltIn
|
javascript
|
yued-fe/lulu
|
theme/hope/ui/safari-polyfill.js
|
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/safari-polyfill.js
|
MIT
|
value(name, options) {
const is = options && options.is;
if (is) {
const Class = registry.get(is);
if (Class && classes.get(Class).tag === name)
return new Class;
}
const element = createElement.call(document$1, name);
if (is)
element.setAttribute('is', is);
return element;
}
|
Start observing a generic document or root element.
@param {Function} callback triggered per each dis/connected node
@param {Element?} root by default, the global document to observe
@param {Function?} MO by default, the global MutationObserver
@returns {MutationObserver}
|
value
|
javascript
|
yued-fe/lulu
|
theme/hope/ui/safari-polyfill.js
|
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/safari-polyfill.js
|
MIT
|
value(is, Class, options) {
if (getCE(is))
throw new Error(`'${is}' has already been defined as a custom element`);
let selector;
const tag = options && options.extends;
classes.set(Class, tag ? {is, tag} : {is: '', tag: is});
if (tag) {
selector = `${tag}[is="${is}"]`;
prototypes.set(selector, Class.prototype);
registry.set(is, Class);
query.push(selector);
}
else {
define.apply(customElements, arguments);
shadowed.push(selector = is);
}
whenDefined(is).then(() => {
if (tag) {
parse(document$1.querySelectorAll(selector));
shadows.forEach(parseShadow, [selector]);
}
else
parseShadowed(document$1.querySelectorAll(selector));
});
defined.get(is)._(Class);
}
|
Start observing a generic document or root element.
@param {Function} callback triggered per each dis/connected node
@param {Element?} root by default, the global document to observe
@param {Function?} MO by default, the global MutationObserver
@returns {MutationObserver}
|
value
|
javascript
|
yued-fe/lulu
|
theme/hope/ui/safari-polyfill.js
|
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/safari-polyfill.js
|
MIT
|
function parseShadow(element) {
const root = shadowRoots.get(element);
parse(root.querySelectorAll(this), element.isConnected);
}
|
Start observing a generic document or root element.
@param {Function} callback triggered per each dis/connected node
@param {Element?} root by default, the global document to observe
@param {Function?} MO by default, the global MutationObserver
@returns {MutationObserver}
|
parseShadow
|
javascript
|
yued-fe/lulu
|
theme/hope/ui/safari-polyfill.js
|
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/safari-polyfill.js
|
MIT
|
static get observedAttributes () {
return ['open', 'target'];
}
|
@Drop.js
@author zhangxinxu
@version
@created 15-06-30
@edited 20-07-08 edit by wanglei
@edited 22-06-16 edit by wanglei
|
observedAttributes
|
javascript
|
yued-fe/lulu
|
theme/hope/ui/Drop/index.js
|
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/Drop/index.js
|
MIT
|
static get defaults () {
return {
eventtype: 'click',
position: '7-5'
};
}
|
@Drop.js
@author zhangxinxu
@version
@created 15-06-30
@edited 20-07-08 edit by wanglei
@edited 22-06-16 edit by wanglei
|
defaults
|
javascript
|
yued-fe/lulu
|
theme/hope/ui/Drop/index.js
|
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/Drop/index.js
|
MIT
|
static allHide (exclude) {
ErrorTip.collectionErrorTip.forEach(obj => {
if (exclude != obj) {
obj.hide();
}
});
}
|
@ErrorTip.js
@author zhangxinxu
@version
@created: 15-07-01
@edited: 20-07-07 edit by peter.qiyuanhao
|
allHide
|
javascript
|
yued-fe/lulu
|
theme/hope/ui/ErrorTip/index.js
|
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/ErrorTip/index.js
|
MIT
|
set (value) {
if (this.validate) {
this.validate.setCustomValidity(value);
}
}
|
/ if (!CSS.supports('overflow-anchor:auto') || !CSS.supports('offset:none')) {
/*
|
set
|
javascript
|
yued-fe/lulu
|
theme/hope/ui/Form/index.js
|
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/Form/index.js
|
MIT
|
static get observedAttributes () {
return ['per', 'total', 'current', 'loading'];
}
|
@Pagination.js
@author XboxYan(yanwenbin)
@version
@Created: 20-04-22
@edit: 20-04-22
|
observedAttributes
|
javascript
|
yued-fe/lulu
|
theme/hope/ui/Pagination/index.js
|
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/Pagination/index.js
|
MIT
|
get per () {
return Number(this.getAttribute('per')) || 15;
}
|
@Pagination.js
@author XboxYan(yanwenbin)
@version
@Created: 20-04-22
@edit: 20-04-22
|
per
|
javascript
|
yued-fe/lulu
|
theme/hope/ui/Pagination/index.js
|
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/Pagination/index.js
|
MIT
|
get simple () {
return this.getAttribute('mode') === 'short';
}
|
@Pagination.js
@author XboxYan(yanwenbin)
@version
@Created: 20-04-22
@edit: 20-04-22
|
simple
|
javascript
|
yued-fe/lulu
|
theme/hope/ui/Pagination/index.js
|
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/Pagination/index.js
|
MIT
|
get total () {
return Number(this.getAttribute('total')) || 0;
}
|
@Pagination.js
@author XboxYan(yanwenbin)
@version
@Created: 20-04-22
@edit: 20-04-22
|
total
|
javascript
|
yued-fe/lulu
|
theme/hope/ui/Pagination/index.js
|
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/Pagination/index.js
|
MIT
|
get current () {
return Number(this.getAttribute('current')) || 1;
}
|
@Pagination.js
@author XboxYan(yanwenbin)
@version
@Created: 20-04-22
@edit: 20-04-22
|
current
|
javascript
|
yued-fe/lulu
|
theme/hope/ui/Pagination/index.js
|
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/Pagination/index.js
|
MIT
|
get loading () {
return this.getAttribute('loading') !== null;
}
|
@Pagination.js
@author XboxYan(yanwenbin)
@version
@Created: 20-04-22
@edit: 20-04-22
|
loading
|
javascript
|
yued-fe/lulu
|
theme/hope/ui/Pagination/index.js
|
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/Pagination/index.js
|
MIT
|
get href () {
//?page=1
return this.getAttribute('href');
}
|
@Pagination.js
@author XboxYan(yanwenbin)
@version
@Created: 20-04-22
@edit: 20-04-22
|
href
|
javascript
|
yued-fe/lulu
|
theme/hope/ui/Pagination/index.js
|
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/Pagination/index.js
|
MIT
|
set current (value) {
this.setAttribute('current', Math.min(Math.max(1, value), this.count));
}
|
@Pagination.js
@author XboxYan(yanwenbin)
@version
@Created: 20-04-22
@edit: 20-04-22
|
current
|
javascript
|
yued-fe/lulu
|
theme/hope/ui/Pagination/index.js
|
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/Pagination/index.js
|
MIT
|
set per (value) {
this.setAttribute('per', value);
}
|
@Pagination.js
@author XboxYan(yanwenbin)
@version
@Created: 20-04-22
@edit: 20-04-22
|
per
|
javascript
|
yued-fe/lulu
|
theme/hope/ui/Pagination/index.js
|
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/Pagination/index.js
|
MIT
|
set total (value) {
this.setAttribute('total', value);
}
|
@Pagination.js
@author XboxYan(yanwenbin)
@version
@Created: 20-04-22
@edit: 20-04-22
|
total
|
javascript
|
yued-fe/lulu
|
theme/hope/ui/Pagination/index.js
|
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/Pagination/index.js
|
MIT
|
set loading (value) {
if (!value) {
this.removeAttribute('loading');
} else {
this.setAttribute('loading', '');
}
}
|
@Pagination.js
@author XboxYan(yanwenbin)
@version
@Created: 20-04-22
@edit: 20-04-22
|
loading
|
javascript
|
yued-fe/lulu
|
theme/hope/ui/Pagination/index.js
|
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/Pagination/index.js
|
MIT
|
get htmlFor () {
return this.getAttribute('for');
}
|
@Pagination.js
@author XboxYan(yanwenbin)
@version
@Created: 20-04-22
@edit: 20-04-22
|
htmlFor
|
javascript
|
yued-fe/lulu
|
theme/hope/ui/Pagination/index.js
|
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/Pagination/index.js
|
MIT
|
set htmlFor (value) {
this.setAttribute('for', value);
}
|
@Pagination.js
@author XboxYan(yanwenbin)
@version
@Created: 20-04-22
@edit: 20-04-22
|
htmlFor
|
javascript
|
yued-fe/lulu
|
theme/hope/ui/Pagination/index.js
|
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/Pagination/index.js
|
MIT
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.