feat(@omiu/table): support right column freezing

This commit is contained in:
dntzhang 2021-08-04 19:21:30 +08:00
parent af246e33ee
commit b3535be893
54 changed files with 274 additions and 2404 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@omiu/table",
"version": "0.0.14",
"version": "0.0.15",
"description": "Components that show list data structures.",
"docsExtend": {
"cnName": "表格控件",

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -107,10 +107,11 @@ export default class Table extends WeElement {
stripe={false}
border={true}
compact={false}
width="200px"
width="250px"
height="200px"
stickyLeftCount={2}
stickyTop={true}
fixedLeftCount={2}
fixedRight={true}
fixedTop={true}
columns={this.columns} dataSource={this.dataSource}></o-table>
<o-table

View File

@ -34,21 +34,29 @@ th,
td {
white-space: nowrap; }
th.sticky-top {
th.fixed-top {
position: sticky;
top: -1px;
z-index: 1000; }
table thead th.sticky-left {
table thead th.fixed-left {
position: sticky;
left: -1px;
z-index: 1001; }
table tbody td.sticky-left {
table tbody td.fixed-left {
position: sticky;
left: -1px;
z-index: 999; }
table thead th.fixed-right {
position: sticky;
z-index: 1001; }
table tbody td.fixed-right {
position: sticky;
z-index: 1000; }
.o-table-border td,
.o-table-border th {
border-right: 1px solid #ebeef5; }

View File

@ -10,8 +10,9 @@ interface Props {
compact: boolean;
width: string;
height: string;
stickyTop: boolean;
stickyLeftCount: number;
fixedTop: boolean;
fixedRight: boolean;
fixedLeftCount: number;
}
export default class Table extends WeElement<Props> {
static css: any;
@ -22,8 +23,9 @@ export default class Table extends WeElement<Props> {
border: boolean;
stripe: boolean;
compact: boolean;
stickyTop: boolean;
stickyLeftCount: number;
fixedTop: boolean;
fixedRight: boolean;
fixedLeftCount: number;
};
static propTypes: {
dataSource: ObjectConstructor;
@ -34,8 +36,9 @@ export default class Table extends WeElement<Props> {
compact: BooleanConstructor;
width: StringConstructor;
height: StringConstructor;
stickyTop: BooleanConstructor;
stickyLeftCount: NumberConstructor;
fixedTop: BooleanConstructor;
fixedRight: BooleanConstructor;
fixedLeftCount: NumberConstructor;
};
deleteRow: (item: any) => void;
deleteRowById(id: any): Promise<void>;
@ -57,7 +60,8 @@ export default class Table extends WeElement<Props> {
installed(): void;
onChange: (evt: any, item: any, column: any) => void;
updated(): void;
setStickyLeft(): void;
setFixedLeft(): void;
setFixedRight(): void;
onTdClick: (item: any, column: any, evt: any) => void;
render(props: any): JSX.Element;
}

View File

@ -1,5 +1,5 @@
/**
* @omiu/table v0.0.14 http://omijs.org
* @omiu/table v0.0.15 http://omijs.org
* Front End Cross-Frameworks Framework.
* By dntzhang https://github.com/dntzhang
* Github: https://github.com/Tencent/omi
@ -997,21 +997,29 @@ th,
td {
white-space: nowrap; }
th.sticky-top {
th.fixed-top {
position: sticky;
top: -1px;
z-index: 1000; }
table thead th.sticky-left {
table thead th.fixed-left {
position: sticky;
left: -1px;
z-index: 1001; }
table tbody td.sticky-left {
table tbody td.fixed-left {
position: sticky;
left: -1px;
z-index: 999; }
table thead th.fixed-right {
position: sticky;
z-index: 1001; }
table tbody td.fixed-right {
position: sticky;
z-index: 1000; }
.o-table-border td,
.o-table-border th {
border-right: 1px solid #ebeef5; }
@ -1169,7 +1177,8 @@ var Table = /** @class */ (function (_super) {
};
Table.prototype.installed = function () {
var _this = this;
this.setStickyLeft();
this.setFixedLeft();
this.setFixedRight();
window.addEventListener('click', function () {
var needUpdate = false;
_this.props.dataSource.forEach(function (dataItem) {
@ -1184,14 +1193,21 @@ var Table = /** @class */ (function (_super) {
});
};
Table.prototype.updated = function () {
this.setStickyLeft();
this.setFixedLeft();
this.setFixedRight();
};
Table.prototype.setStickyLeft = function () {
var stickyLeftEls = this.rootNode.querySelectorAll('.sticky-left');
Table.prototype.setFixedLeft = function () {
var fixedLeftEls = this.rootNode.querySelectorAll('.fixed-left');
var boxRect = this.rootNode.getBoundingClientRect();
stickyLeftEls.forEach(function (stickyLeftEl, index) {
var rect = stickyLeftEl.getBoundingClientRect();
stickyLeftEl.style.left = (rect.left - boxRect.left - 1) + 'px';
fixedLeftEls.forEach(function (fixedLeftEl, index) {
var rect = fixedLeftEl.getBoundingClientRect();
fixedLeftEl.style.left = (rect.left - boxRect.left - 1) + 'px';
});
};
Table.prototype.setFixedRight = function () {
var fixedRightEls = this.rootNode.querySelectorAll('.fixed-right');
fixedRightEls.forEach(function (fixedRightEl, index) {
fixedRightEl.style.right = '0px';
});
};
Table.prototype.render = function (props) {
@ -1200,6 +1216,9 @@ var Table = /** @class */ (function (_super) {
return;
if (!props.dataSource)
return;
if (props.fixedRight) {
props.columns[props.columns.length - 1].fixed = true;
}
return (h("div", __assign$2({ style: {
width: props.width && props.width,
height: props.height && props.height
@ -1220,8 +1239,9 @@ var Table = /** @class */ (function (_super) {
return h("th", __assign$2({}, obj, { class: classNames((_a = {},
_a["o-table-align-" + column.align] = column.align,
_a['compact'] = props.compact,
_a['sticky-top'] = props.stickyTop,
_a['sticky-left'] = index < props.stickyLeftCount,
_a['fixed-top'] = props.fixedTop,
_a['fixed-left'] = index < props.fixedLeftCount,
_a['fixed-right'] = column.fixed,
_a)) }),
index === 0 && props.checkbox && h("o-checkbox", __assign$2({}, _this._getCheckedState(), { onChange: function (_) { return _this._changeHandlerTh(_, column); } })),
column.title);
@ -1238,7 +1258,8 @@ var Table = /** @class */ (function (_super) {
return h("td", __assign$2({ onclick: function (evt) { return _this.onTdClick(item, column, evt); } }, obj, { class: classNames((_a = {},
_a["o-table-align-" + column.align] = column.align,
_a['compact'] = props.compact,
_a['sticky-left'] = subIndex < props.stickyLeftCount,
_a['fixed-left'] = subIndex < props.fixedLeftCount,
_a['fixed-right'] = column.fixed,
_a)) }),
subIndex === 0 && props.checkbox && h("o-checkbox", { checked: item.checked, onChange: function (_) { return _this._changeHandlerTd(_, item); } }),
(column.editable && item.editingKey === column.key) ? h("o-input", { ref: function (_) { return _this.editingInput = _; }, size: "mini", onChange: function (evt) {
@ -1254,8 +1275,9 @@ var Table = /** @class */ (function (_super) {
border: false,
stripe: false,
compact: false,
stickyTop: false,
stickyLeftCount: 0
fixedTop: false,
fixedRight: false,
fixedLeftCount: 0
};
Table.propTypes = {
dataSource: Object,
@ -1266,8 +1288,9 @@ var Table = /** @class */ (function (_super) {
compact: Boolean,
width: String,
height: String,
stickyTop: Boolean,
stickyLeftCount: Number
fixedTop: Boolean,
fixedRight: Boolean,
fixedLeftCount: Number
};
Table = __decorate$2([
tag('o-table')
@ -1275,5 +1298,5 @@ var Table = /** @class */ (function (_super) {
return Table;
}(WeElement));
export default Table;
export { Table as default };
//# sourceMappingURL=index.esm.js.map

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
/**
* @omiu/table v0.0.14 http://omijs.org
* @omiu/table v0.0.15 http://omijs.org
* Front End Cross-Frameworks Framework.
* By dntzhang https://github.com/dntzhang
* Github: https://github.com/Tencent/omi
@ -963,7 +963,7 @@
"use strict";
var css = ":host {\n display: block; }\n\n.o-table {\n overflow: auto; }\n\n.o-table-table {\n background: white;\n margin: auto;\n padding: 5px;\n width: 100%;\n border-spacing: 0;\n border-collapse: collapse;\n color: #606266;\n font-weight: 400; }\n\n.o-table-checkbox th:first-child,\n.o-table-checkbox td:first-child {\n padding: 2px 10px 2px; }\n\nth {\n border-bottom: 1px solid #E0E0E0;\n text-align: left;\n vertical-align: middle;\n padding: 10px 10px 10px;\n color: rgba(0, 0, 0, 0.54);\n font-size: 0.75rem;\n line-height: 1.3125rem;\n font-weight: 500;\n background: #fafafa;\n white-space: nowrap; }\n\nth,\ntd {\n white-space: nowrap; }\n\nth.sticky-top {\n position: sticky;\n top: -1px;\n z-index: 1000; }\n\ntable thead th.sticky-left {\n position: sticky;\n left: -1px;\n z-index: 1001; }\n\ntable tbody td.sticky-left {\n position: sticky;\n left: -1px;\n z-index: 999; }\n\n.o-table-border td,\n.o-table-border th {\n border-right: 1px solid #ebeef5; }\n\n.o-table-border td:first-child,\n.o-table-border th:first-child {\n border-left: 1px solid #ebeef5; }\n\n.o-table-border th {\n border-top: 1px solid #ebeef5; }\n\ntr {\n border-bottom: 1px solid #E0E0E0; }\n\ntr:hover td {\n background: #f5f5f5; }\n\ntd {\n text-align: left;\n vertical-align: middle;\n font-size: 0.875rem;\n padding: 10px 10px 10px;\n background: white; }\n\ntd.compact,\nth.compact {\n padding: 4px 10px 4px; }\n\na {\n text-decoration: none; }\n\n.o-table-align-left {\n text-align: left; }\n\n.o-table-align-center {\n text-align: center; }\n\no-checkbox {\n height: 20px;\n vertical-align: middle; }\n\n.o-table-align-right {\n text-align: right; }\n\na,\na:link,\na:visited,\na:active {\n text-decoration: none;\n color: inherit; }\n\na:hover {\n color: #07c160;\n color: var(--o-primary, #07c160); }\n\no-checkbox {\n margin-right: 5px; }\n\n.o-table-stripe tr:nth-of-type(odd) {\n background: white; }\n\n.o-table-stripe tr:nth-of-type(even) {\n background: #fafafa; }\n\n.slide-fade-enter-active {\n transition: all .3s ease; }\n\n.slide-fade-leave-active {\n transition: all 0.3s cubic-bezier(1, 0.5, 0.8, 1); }\n\n.slide-fade-enter,\n.slide-fade-leave-to {\n transform: translateX(-40px);\n opacity: 0; }\n";
var css = ":host {\n display: block; }\n\n.o-table {\n overflow: auto; }\n\n.o-table-table {\n background: white;\n margin: auto;\n padding: 5px;\n width: 100%;\n border-spacing: 0;\n border-collapse: collapse;\n color: #606266;\n font-weight: 400; }\n\n.o-table-checkbox th:first-child,\n.o-table-checkbox td:first-child {\n padding: 2px 10px 2px; }\n\nth {\n border-bottom: 1px solid #E0E0E0;\n text-align: left;\n vertical-align: middle;\n padding: 10px 10px 10px;\n color: rgba(0, 0, 0, 0.54);\n font-size: 0.75rem;\n line-height: 1.3125rem;\n font-weight: 500;\n background: #fafafa;\n white-space: nowrap; }\n\nth,\ntd {\n white-space: nowrap; }\n\nth.fixed-top {\n position: sticky;\n top: -1px;\n z-index: 1000; }\n\ntable thead th.fixed-left {\n position: sticky;\n left: -1px;\n z-index: 1001; }\n\ntable tbody td.fixed-left {\n position: sticky;\n left: -1px;\n z-index: 999; }\n\ntable thead th.fixed-right {\n position: sticky;\n z-index: 1001; }\n\ntable tbody td.fixed-right {\n position: sticky;\n z-index: 1000; }\n\n.o-table-border td,\n.o-table-border th {\n border-right: 1px solid #ebeef5; }\n\n.o-table-border td:first-child,\n.o-table-border th:first-child {\n border-left: 1px solid #ebeef5; }\n\n.o-table-border th {\n border-top: 1px solid #ebeef5; }\n\ntr {\n border-bottom: 1px solid #E0E0E0; }\n\ntr:hover td {\n background: #f5f5f5; }\n\ntd {\n text-align: left;\n vertical-align: middle;\n font-size: 0.875rem;\n padding: 10px 10px 10px;\n background: white; }\n\ntd.compact,\nth.compact {\n padding: 4px 10px 4px; }\n\na {\n text-decoration: none; }\n\n.o-table-align-left {\n text-align: left; }\n\n.o-table-align-center {\n text-align: center; }\n\no-checkbox {\n height: 20px;\n vertical-align: middle; }\n\n.o-table-align-right {\n text-align: right; }\n\na,\na:link,\na:visited,\na:active {\n text-decoration: none;\n color: inherit; }\n\na:hover {\n color: #07c160;\n color: var(--o-primary, #07c160); }\n\no-checkbox {\n margin-right: 5px; }\n\n.o-table-stripe tr:nth-of-type(odd) {\n background: white; }\n\n.o-table-stripe tr:nth-of-type(even) {\n background: #fafafa; }\n\n.slide-fade-enter-active {\n transition: all .3s ease; }\n\n.slide-fade-leave-active {\n transition: all 0.3s cubic-bezier(1, 0.5, 0.8, 1); }\n\n.slide-fade-enter,\n.slide-fade-leave-to {\n transform: translateX(-40px);\n opacity: 0; }\n";
var Table = /** @class */ (function (_super) {
__extends$2(Table, _super);
@ -1045,7 +1045,8 @@ var css = ":host {\n display: block; }\n\n.o-table {\n overflow: auto; }\n\n.o
};
Table.prototype.installed = function () {
var _this = this;
this.setStickyLeft();
this.setFixedLeft();
this.setFixedRight();
window.addEventListener('click', function () {
var needUpdate = false;
_this.props.dataSource.forEach(function (dataItem) {
@ -1060,14 +1061,21 @@ var css = ":host {\n display: block; }\n\n.o-table {\n overflow: auto; }\n\n.o
});
};
Table.prototype.updated = function () {
this.setStickyLeft();
this.setFixedLeft();
this.setFixedRight();
};
Table.prototype.setStickyLeft = function () {
var stickyLeftEls = this.rootNode.querySelectorAll('.sticky-left');
Table.prototype.setFixedLeft = function () {
var fixedLeftEls = this.rootNode.querySelectorAll('.fixed-left');
var boxRect = this.rootNode.getBoundingClientRect();
stickyLeftEls.forEach(function (stickyLeftEl, index) {
var rect = stickyLeftEl.getBoundingClientRect();
stickyLeftEl.style.left = (rect.left - boxRect.left - 1) + 'px';
fixedLeftEls.forEach(function (fixedLeftEl, index) {
var rect = fixedLeftEl.getBoundingClientRect();
fixedLeftEl.style.left = (rect.left - boxRect.left - 1) + 'px';
});
};
Table.prototype.setFixedRight = function () {
var fixedRightEls = this.rootNode.querySelectorAll('.fixed-right');
fixedRightEls.forEach(function (fixedRightEl, index) {
fixedRightEl.style.right = '0px';
});
};
Table.prototype.render = function (props) {
@ -1076,6 +1084,9 @@ var css = ":host {\n display: block; }\n\n.o-table {\n overflow: auto; }\n\n.o
return;
if (!props.dataSource)
return;
if (props.fixedRight) {
props.columns[props.columns.length - 1].fixed = true;
}
return (omi.h("div", __assign$2({ style: {
width: props.width && props.width,
height: props.height && props.height
@ -1096,8 +1107,9 @@ var css = ":host {\n display: block; }\n\n.o-table {\n overflow: auto; }\n\n.o
return omi.h("th", __assign$2({}, obj, { class: omi.classNames((_a = {},
_a["o-table-align-" + column.align] = column.align,
_a['compact'] = props.compact,
_a['sticky-top'] = props.stickyTop,
_a['sticky-left'] = index < props.stickyLeftCount,
_a['fixed-top'] = props.fixedTop,
_a['fixed-left'] = index < props.fixedLeftCount,
_a['fixed-right'] = column.fixed,
_a)) }),
index === 0 && props.checkbox && omi.h("o-checkbox", __assign$2({}, _this._getCheckedState(), { onChange: function (_) { return _this._changeHandlerTh(_, column); } })),
column.title);
@ -1114,7 +1126,8 @@ var css = ":host {\n display: block; }\n\n.o-table {\n overflow: auto; }\n\n.o
return omi.h("td", __assign$2({ onclick: function (evt) { return _this.onTdClick(item, column, evt); } }, obj, { class: omi.classNames((_a = {},
_a["o-table-align-" + column.align] = column.align,
_a['compact'] = props.compact,
_a['sticky-left'] = subIndex < props.stickyLeftCount,
_a['fixed-left'] = subIndex < props.fixedLeftCount,
_a['fixed-right'] = column.fixed,
_a)) }),
subIndex === 0 && props.checkbox && omi.h("o-checkbox", { checked: item.checked, onChange: function (_) { return _this._changeHandlerTd(_, item); } }),
(column.editable && item.editingKey === column.key) ? omi.h("o-input", { ref: function (_) { return _this.editingInput = _; }, size: "mini", onChange: function (evt) {
@ -1130,8 +1143,9 @@ var css = ":host {\n display: block; }\n\n.o-table {\n overflow: auto; }\n\n.o
border: false,
stripe: false,
compact: false,
stickyTop: false,
stickyLeftCount: 0
fixedTop: false,
fixedRight: false,
fixedLeftCount: 0
};
Table.propTypes = {
dataSource: Object,
@ -1142,8 +1156,9 @@ var css = ":host {\n display: block; }\n\n.o-table {\n overflow: auto; }\n\n.o
compact: Boolean,
width: String,
height: String,
stickyTop: Boolean,
stickyLeftCount: Number
fixedTop: Boolean,
fixedRight: Boolean,
fixedLeftCount: Number
};
Table = __decorate$2([
omi.tag('o-table')

File diff suppressed because one or more lines are too long

View File

@ -40,33 +40,44 @@
//https://stackoverflow.com/questions/4654481/lock-table-cells-to-their-default-size-regardless-of-content
th,
td {
// 下面这些样式会让冻结失效
// display: table-cell;
white-space: nowrap;
// text-overflow: ellipsis;
// overflow: hidden;
// width: auto;
// max-width: 1px;
// 下面这些样式会让冻结失效
// display: table-cell;
white-space: nowrap;
// text-overflow: ellipsis;
// overflow: hidden;
// width: auto;
// max-width: 1px;
}
th.sticky-top {
th.fixed-top {
position: sticky;
top: -1px;
z-index: 1000;
}
table thead th.sticky-left {
table thead th.fixed-left {
position: sticky;
left: -1px;
z-index: 1001;
}
table tbody td.sticky-left {
table tbody td.fixed-left {
position: sticky;
left: -1px;
z-index: 999;
}
table thead th.fixed-right {
position: sticky;
z-index: 1001;
}
table tbody td.fixed-right {
position: sticky;
z-index: 1000;
}
.o-table-border td,
.o-table-border th {
border-right: 1px solid #ebeef5;

View File

@ -6,16 +6,17 @@ import { leave } from './transition.ts'
import * as css from './index.scss'
interface Props {
dataSource: any[],
columns: object,
checkbox: boolean,
border: boolean,
stripe: boolean,
compact: boolean,
width: string,
height: string,
stickyTop: boolean
stickyLeftCount: number
dataSource: any[]
columns: object
checkbox: boolean
border: boolean
stripe: boolean
compact: boolean
width: string
height: string
fixedTop: boolean
fixedRight: boolean
fixedLeftCount: number
}
@ -30,8 +31,9 @@ export default class Table extends WeElement<Props> {
border: false,
stripe: false,
compact: false,
stickyTop: false,
stickyLeftCount: 0
fixedTop: false,
fixedRight: false,
fixedLeftCount: 0
}
static propTypes = {
@ -43,8 +45,9 @@ export default class Table extends WeElement<Props> {
compact: Boolean,
width: String,
height: String,
stickyTop: Boolean,
stickyLeftCount: Number
fixedTop: Boolean,
fixedRight: Boolean,
fixedLeftCount: Number
}
deleteRow = (item) => {
@ -93,8 +96,8 @@ export default class Table extends WeElement<Props> {
}
installed() {
this.setStickyLeft()
this.setFixedLeft()
this.setFixedRight()
window.addEventListener('click', () => {
let needUpdate = false
this.props.dataSource.forEach(dataItem => {
@ -124,15 +127,23 @@ export default class Table extends WeElement<Props> {
}
updated() {
this.setStickyLeft()
this.setFixedLeft()
this.setFixedRight()
}
setStickyLeft() {
const stickyLeftEls = this.rootNode.querySelectorAll('.sticky-left')
setFixedLeft() {
const fixedLeftEls = this.rootNode.querySelectorAll('.fixed-left')
const boxRect = this.rootNode.getBoundingClientRect()
stickyLeftEls.forEach((stickyLeftEl, index) => {
const rect = stickyLeftEl.getBoundingClientRect()
stickyLeftEl.style.left = (rect.left - boxRect.left - 1) + 'px'
fixedLeftEls.forEach((fixedLeftEl, index) => {
const rect = fixedLeftEl.getBoundingClientRect()
fixedLeftEl.style.left = (rect.left - boxRect.left - 1) + 'px'
})
}
setFixedRight() {
const fixedRightEls = this.rootNode.querySelectorAll('.fixed-right')
fixedRightEls.forEach((fixedRightEl, index) => {
fixedRightEl.style.right = '0px'
})
}
@ -152,6 +163,10 @@ export default class Table extends WeElement<Props> {
if (!props.columns) return
if (!props.dataSource) return
if (props.fixedRight) {
props.columns[props.columns.length - 1].fixed = true
}
return (
<div style={{
width: props.width && props.width,
@ -173,8 +188,9 @@ export default class Table extends WeElement<Props> {
return <th {...obj} class={classNames({
[`o-table-align-${column.align}`]: column.align,
'compact': props.compact,
'sticky-top': props.stickyTop,
'sticky-left': index < props.stickyLeftCount
'fixed-top': props.fixedTop,
'fixed-left': index < props.fixedLeftCount,
'fixed-right': column.fixed
})}>{index === 0 && props.checkbox && <o-checkbox {...this._getCheckedState()} onChange={_ => this._changeHandlerTh(_, column)} />}{column.title}</th>
})}
</tr>
@ -193,7 +209,8 @@ export default class Table extends WeElement<Props> {
return <td onclick={evt => this.onTdClick(item, column, evt)} {...obj} class={classNames({
[`o-table-align-${column.align}`]: column.align,
'compact': props.compact,
'sticky-left': subIndex < props.stickyLeftCount
'fixed-left': subIndex < props.fixedLeftCount,
'fixed-right': column.fixed
})}>{subIndex === 0 && props.checkbox && <o-checkbox checked={item.checked} onChange={_ => this._changeHandlerTd(_, item)} />}{(column.editable && item.editingKey === column.key) ? <o-input ref={_ => this.editingInput = _} size="mini"
onChange={evt => {
this.onChange(evt, item, column)

View File

@ -1 +0,0 @@
import{i as e}from"./vendor.ef3c1a07.js";var o=e(Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:{}}));export{o as r};

View File

@ -0,0 +1 @@
import{i as o}from"./vendor.c903f3c9.js";var r=o(Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:{}}));export{r};

View File

@ -1,4 +1,4 @@
import{h,b as tag,W as WeElement,f as require$$0,g as commonjsGlobal,t as tw,s as sheet}from"./vendor.ef3c1a07.js";import"./index.esm.473e6229.js";import"./index.esm.a2aa5bea.js";var t=Object.defineProperty,e=Object.defineProperties,i=Object.getOwnPropertyDescriptors,n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,a=(e,i,n)=>i in e?t(e,i,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[i]=n,r=(t,e)=>{for(var i in e||(e={}))o.call(e,i)&&a(t,i,e[i]);if(n)for(var i of n(e))s.call(e,i)&&a(t,i,e[i]);return t},l=(t,n)=>e(t,i(n))
import{h,b as tag,W as WeElement,f as require$$0,g as commonjsGlobal,t as tw,s as sheet}from"./vendor.c903f3c9.js";import"./index.esm.f99dc3f9.js";import"./index.esm.9f7edb1f.js";var t=Object.defineProperty,e=Object.defineProperties,i=Object.getOwnPropertyDescriptors,n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,a=(e,i,n)=>i in e?t(e,i,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[i]=n,r=(t,e)=>{for(var i in e||(e={}))o.call(e,i)&&a(t,i,e[i]);if(n)for(var i of n(e))s.call(e,i)&&a(t,i,e[i]);return t},l=(t,n)=>e(t,i(n))
/*!
* Chart.js v3.5.0
* https://www.chartjs.org

View File

@ -1,4 +1,4 @@
var e=Object.defineProperty,n=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,i=(n,t,o)=>t in n?e(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o;import{h as r,e as a,b as l,W as c,j as s,d as p,t as d,s as u}from"./vendor.ef3c1a07.js";import"./index.esm.0e379908.js";
var e=Object.defineProperty,n=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,i=(n,t,o)=>t in n?e(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o;import{h as r,e as a,b as l,W as c,j as s,d as p,t as d,s as u}from"./vendor.c903f3c9.js";import"./index.esm.3afbc406.js";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

View File

@ -1 +1 @@
import{W as e,h as t,t as r,s as n,b as i}from"./vendor.ef3c1a07.js";var o=Object.defineProperty,s=Object.getOwnPropertyDescriptor;let a=class extends e{render(){return t("div",{class:r``},t("iframe",{height:window.innerHeight-90,style:"width: 100%;",scrolling:"yes",title:"OMIU Link",src:"https://tencent.github.io/omi/components/icon/demos/icon.html",frameborder:"no",loading:"lazy"}))}};a.css=n.target,a=((e,t,r,n)=>{for(var i,a=n>1?void 0:n?s(t,r):t,c=e.length-1;c>=0;c--)(i=e[c])&&(a=(n?i(t,r,a):i(a))||a);return n&&a&&o(t,r,a),a})([i("admin-icon")],a);export{a as default};
import{W as e,h as t,t as r,s as n,b as i}from"./vendor.c903f3c9.js";var o=Object.defineProperty,s=Object.getOwnPropertyDescriptor;let a=class extends e{render(){return t("div",{class:r``},t("iframe",{height:window.innerHeight-90,style:"width: 100%;",scrolling:"yes",title:"OMIU Link",src:"https://tencent.github.io/omi/components/icon/demos/icon.html",frameborder:"no",loading:"lazy"}))}};a.css=n.target,a=((e,t,r,n)=>{for(var i,a=n>1?void 0:n?s(t,r):t,c=e.length-1;c>=0;c--)(i=e[c])&&(a=(n?i(t,r,a):i(a))||a);return n&&a&&o(t,r,a),a})([i("admin-icon")],a);export{a as default};

View File

@ -1 +1 @@
import{k as getDefaultExportFromCjs,f as require$$0,g as commonjsGlobal}from"./vendor.ef3c1a07.js";var ballot$2={exports:{}};(function(module,exports){var factory;factory=function(__WEBPACK_EXTERNAL_MODULE_omi__){return function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s="./esm/ballot.js")}({"./esm/ballot.js":function(module,exports,__webpack_require__){eval('\nObject.defineProperty(exports, "__esModule", { value: true });\nvar omi_1 = __webpack_require__(/*! omi */ "omi");\nvar createSvgIcon_1 = __webpack_require__(/*! ./utils/createSvgIcon */ "./esm/utils/createSvgIcon.js");\nexports.default = createSvgIcon_1.default(omi_1.h("path", {\n fillRule: "evenodd",\n d: "M13 9.5h5v-2h-5v2zm0 7h5v-2h-5v2zm6 4.5H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2v14c0 1.1-.9 2-2 2zM6 11h5V6H6v5zm1-4h3v3H7V7zM6 18h5v-5H6v5zm1-4h3v3H7v-3z"\n}), \'Ballot\');\n\n\n//# sourceURL=webpack://%5Bname%5D/./esm/ballot.js?')},"./esm/utils/createSvgIcon.js":function(module,exports,__webpack_require__){eval('\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nObject.defineProperty(exports, "__esModule", { value: true });\nvar omi_1 = __webpack_require__(/*! omi */ "omi");\nvar hyphenateRE = /\\B([A-Z])/g;\nvar hyphenate = function (str) {\n return str.replace(hyphenateRE, \'-$1\').toLowerCase();\n};\nfunction createSvgIcon(path, displayName) {\n omi_1.define(hyphenate(\'OIcon\' + displayName), function (_) {\n return omi_1.h(\'svg\', __assign({ viewBox: "0 0 24 24", title: displayName }, _.props), path);\n }, {\n css: ":host {\\n fill: currentColor;\\n width: 1em;\\n height: 1em;\\n display: inline-block;\\n vertical-align: -0.125em;\\n transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\\n flex-shrink: 0;\\n user-select: none;\\n}"\n });\n}\nexports.default = createSvgIcon;\n\n\n//# sourceURL=webpack://%5Bname%5D/./esm/utils/createSvgIcon.js?')},omi:function(module,exports){eval("module.exports = __WEBPACK_EXTERNAL_MODULE_omi__;\n\n//# sourceURL=webpack://%5Bname%5D/external_%7B%22commonjs%22:%22omi%22,%22commonjs2%22:%22omi%22,%22amd%22:%22omi%22,%22root%22:%22Omi%22%7D?")}}).default},module.exports=factory(require$$0)})(ballot$2);var ballot=getDefaultExportFromCjs(ballot$2.exports),ballot$1=Object.freeze(Object.assign(Object.create(null),ballot$2.exports,{[Symbol.toStringTag]:"Module",default:ballot}));export{ballot$1 as b};
import{k as getDefaultExportFromCjs,f as require$$0,g as commonjsGlobal}from"./vendor.c903f3c9.js";var ballot$2={exports:{}};(function(module,exports){var factory;factory=function(__WEBPACK_EXTERNAL_MODULE_omi__){return function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s="./esm/ballot.js")}({"./esm/ballot.js":function(module,exports,__webpack_require__){eval('\nObject.defineProperty(exports, "__esModule", { value: true });\nvar omi_1 = __webpack_require__(/*! omi */ "omi");\nvar createSvgIcon_1 = __webpack_require__(/*! ./utils/createSvgIcon */ "./esm/utils/createSvgIcon.js");\nexports.default = createSvgIcon_1.default(omi_1.h("path", {\n fillRule: "evenodd",\n d: "M13 9.5h5v-2h-5v2zm0 7h5v-2h-5v2zm6 4.5H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2v14c0 1.1-.9 2-2 2zM6 11h5V6H6v5zm1-4h3v3H7V7zM6 18h5v-5H6v5zm1-4h3v3H7v-3z"\n}), \'Ballot\');\n\n\n//# sourceURL=webpack://%5Bname%5D/./esm/ballot.js?')},"./esm/utils/createSvgIcon.js":function(module,exports,__webpack_require__){eval('\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nObject.defineProperty(exports, "__esModule", { value: true });\nvar omi_1 = __webpack_require__(/*! omi */ "omi");\nvar hyphenateRE = /\\B([A-Z])/g;\nvar hyphenate = function (str) {\n return str.replace(hyphenateRE, \'-$1\').toLowerCase();\n};\nfunction createSvgIcon(path, displayName) {\n omi_1.define(hyphenate(\'OIcon\' + displayName), function (_) {\n return omi_1.h(\'svg\', __assign({ viewBox: "0 0 24 24", title: displayName }, _.props), path);\n }, {\n css: ":host {\\n fill: currentColor;\\n width: 1em;\\n height: 1em;\\n display: inline-block;\\n vertical-align: -0.125em;\\n transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\\n flex-shrink: 0;\\n user-select: none;\\n}"\n });\n}\nexports.default = createSvgIcon;\n\n\n//# sourceURL=webpack://%5Bname%5D/./esm/utils/createSvgIcon.js?')},omi:function(module,exports){eval("module.exports = __WEBPACK_EXTERNAL_MODULE_omi__;\n\n//# sourceURL=webpack://%5Bname%5D/external_%7B%22commonjs%22:%22omi%22,%22commonjs2%22:%22omi%22,%22amd%22:%22omi%22,%22root%22:%22Omi%22%7D?")}}).default},module.exports=factory(require$$0)})(ballot$2);var ballot=getDefaultExportFromCjs(ballot$2.exports),ballot$1=Object.freeze(Object.assign(Object.create(null),ballot$2.exports,{[Symbol.toStringTag]:"Module",default:ballot}));export{ballot$1 as b};

View File

@ -1 +1 @@
import{W as e,h as t,t as s,s as a,b as c}from"./vendor.ef3c1a07.js";import"./index.esm.473e6229.js";import"./index.esm.b7f93101.js";var i=Object.defineProperty,r=Object.getOwnPropertyDescriptor;let o=class extends e{constructor(){super(...arguments),this.dataSource=[],this.columns=[{title:"ID",render:e=>t("strong",null,e.id)},{title:"Name",key:"name"},{title:"Age",key:"age"},{title:"Address",key:"address"},{title:"操作",align:"right",render:e=>t("o-tooltip",{content:"删除"+e.name},t("o-icon-delete",{"data-item-id":e.id,onClick:this.onClick,style:"cursor:pointer;font-size:20px;"}))}],this.onClick=e=>{this.deleteItemById(Number(e.currentTarget.dataset.itemId))}}async install(){this.dataSource=await async function(){return[{id:1,name:"xwang",age:18,address:"Tencent"},{id:2,name:"dntzhang",age:12,address:"Tencent",$config:{bgColor:"rgb(247 176 176 / 32%)"}},{id:3,name:"lucy",age:12,address:"Tencent"},{id:4,name:"john",age:12,address:"Tencent",$config:{bgColor:"rgb(230 162 60 / 34%)"}},{id:5,name:"tim",age:12,address:"Tencent"},{id:6,name:"tim",age:12,address:"Tencent"},{id:7,name:"tim",age:12,address:"Tencent"},{id:8,name:"tim",age:12,address:"Tencent"}]}(),this.update()}deleteItemById(e){const t=this.dataSource.indexOf(this.dataSource.find((t=>t.id===e)));-1!==t&&(this.dataSource.splice(t,1),this.update())}render(){return t("div",{class:s`pl-0.5`},t("div",{class:s`px-2`},t("h4",{class:s`py-2 text-sm`},"基础表格"),t("o-table",{checkbox:!1,stripe:!1,border:!1,compact:!1,columns:this.columns,dataSource:this.dataSource})),t("div",{class:s`flex flex-row`},t("div",{class:s` px-2`},t("h4",{class:s`py-2 text-sm`},"冻结行列"),t("o-table",{checkbox:!0,stripe:!0,width:"200px",height:"250px",stickyTop:!0,stickyLeftCount:2,border:!0,compact:!0,columns:this.columns,dataSource:this.dataSource})),t("div",{class:s`flex-1 px-2`},t("h4",{class:s`py-2 text-sm`},"带边框"),t("o-table",{checkbox:!0,stripe:!0,border:!0,compact:!0,columns:this.columns,dataSource:this.dataSource}))),t("div",{class:s`flex flex-row`},t("div",{class:s`flex-1 px-2`},t("h4",{class:s`py-2 text-sm`},"压缩高度"),t("o-table",{checkbox:!1,stripe:!0,border:!1,compact:!0,columns:this.columns,dataSource:this.dataSource})),t("div",{class:s`flex-1 px-2`},t("h4",{class:s`py-2 text-sm`},"无隔行变色"),t("o-table",{checkbox:!0,stripe:!1,border:!0,compact:!0,columns:this.columns,dataSource:this.dataSource}))))}};o.css=a.target,o=((e,t,s,a)=>{for(var c,o=a>1?void 0:a?r(t,s):t,d=e.length-1;d>=0;d--)(c=e[d])&&(o=(a?c(t,s,o):c(o))||o);return a&&o&&i(t,s,o),o})([c("basic-table")],o);export{o as default};
import{W as e,h as t,t as s,s as a,b as c}from"./vendor.c903f3c9.js";import"./index.esm.f99dc3f9.js";import"./index.esm.ddc894b1.js";var d=Object.defineProperty,i=Object.getOwnPropertyDescriptor;let r=class extends e{constructor(){super(...arguments),this.dataSource=[],this.columns=[{title:"ID",render:e=>t("strong",null,e.id)},{title:"Name",key:"name"},{title:"Age",key:"age"},{title:"Address",key:"address"},{title:"操作",align:"right",render:e=>t("o-tooltip",{content:"删除"+e.name},t("o-icon-delete",{"data-item-id":e.id,onClick:this.onClick,style:"cursor:pointer;font-size:20px;"}))}],this.onClick=e=>{this.deleteItemById(Number(e.currentTarget.dataset.itemId))}}async install(){this.dataSource=await async function(){return[{id:1,name:"xwang",age:18,address:"Tencent"},{id:2,name:"dntzhang",age:12,address:"Tencent",$config:{bgColor:"rgb(247 176 176 / 32%)"}},{id:3,name:"lucy",age:12,address:"Tencent"},{id:4,name:"john",age:12,address:"Tencent",$config:{bgColor:"rgb(230 162 60 / 34%)"}},{id:5,name:"tim",age:12,address:"Tencent"},{id:6,name:"tim",age:12,address:"Tencent"},{id:7,name:"tim",age:12,address:"Tencent"},{id:8,name:"tim",age:12,address:"Tencent"}]}(),this.update()}deleteItemById(e){const t=this.dataSource.indexOf(this.dataSource.find((t=>t.id===e)));-1!==t&&(this.dataSource.splice(t,1),this.update())}render(){return t("div",{class:s`pl-0.5`},t("div",{class:s`px-2`},t("h4",{class:s`py-2 text-sm`},"基础表格"),t("o-table",{checkbox:!1,stripe:!1,border:!1,compact:!1,columns:this.columns,dataSource:this.dataSource})),t("div",{class:s`flex flex-row`},t("div",{class:s` px-2`},t("h4",{class:s`py-2 text-sm`},"冻结行列"),t("o-table",{checkbox:!0,stripe:!0,width:"240px",height:"250px",fixedTop:!0,fixedRight:!0,fixedLeftCount:2,border:!0,compact:!0,columns:this.columns,dataSource:this.dataSource})),t("div",{class:s`flex-1 px-2`},t("h4",{class:s`py-2 text-sm`},"带边框"),t("o-table",{checkbox:!0,stripe:!0,border:!0,compact:!0,columns:this.columns,dataSource:this.dataSource}))),t("div",{class:s`flex flex-row`},t("div",{class:s`flex-1 px-2`},t("h4",{class:s`py-2 text-sm`},"压缩高度"),t("o-table",{checkbox:!1,stripe:!0,border:!1,compact:!0,columns:this.columns,dataSource:this.dataSource})),t("div",{class:s`flex-1 px-2`},t("h4",{class:s`py-2 text-sm`},"无隔行变色"),t("o-table",{checkbox:!0,stripe:!1,border:!0,compact:!0,columns:this.columns,dataSource:this.dataSource}))))}};r.css=a.target,r=((e,t,s,a)=>{for(var c,r=a>1?void 0:a?i(t,s):t,o=e.length-1;o>=0;o--)(c=e[o])&&(r=(a?c(t,s,r):c(r))||r);return a&&r&&d(t,s,r),r})([c("basic-table")],r);export{r as default};

View File

@ -1 +1 @@
import{W as e,h as t,t as s,s as r,b as a}from"./vendor.ef3c1a07.js";var l=Object.defineProperty,c=Object.getOwnPropertyDescriptor;let i=class extends e{render(){return t("div",{class:s``},t("div",{class:s`text-center relative`,style:{top:"calc(50vh - 16em)"}},t("div",null,t("img",{class:s`w-72 inline-block`,src:"https://tdesign.gtimg.com/pro-template/result-page/browser-incompatible.png"})),t("p",{class:s`text-gray-500`},"抱歉,您正在使用的浏览器版本过低,无法打开当前网页"),t("p",{class:s` text-gray-400 py-4 text-xs`},"感谢腾讯云sissiwu, lunanlu提供设计支持")))}};i.css=r.target,i=((e,t,s,r)=>{for(var a,i=r>1?void 0:r?c(t,s):t,n=e.length-1;n>=0;n--)(a=e[n])&&(i=(r?a(t,s,i):a(i))||i);return r&&i&&l(t,s,i),i})([a("browser-incompatible")],i);export{i as default};
import{W as e,h as t,t as s,s as r,b as a}from"./vendor.c903f3c9.js";var l=Object.defineProperty,c=Object.getOwnPropertyDescriptor;let i=class extends e{render(){return t("div",{class:s``},t("div",{class:s`text-center relative`,style:{top:"calc(50vh - 16em)"}},t("div",null,t("img",{class:s`w-72 inline-block`,src:"https://tdesign.gtimg.com/pro-template/result-page/browser-incompatible.png"})),t("p",{class:s`text-gray-500`},"抱歉,您正在使用的浏览器版本过低,无法打开当前网页"),t("p",{class:s` text-gray-400 py-4 text-xs`},"感谢腾讯云sissiwu, lunanlu提供设计支持")))}};i.css=r.target,i=((e,t,s,r)=>{for(var a,i=r>1?void 0:r?c(t,s):t,n=e.length-1;n>=0;n--)(a=e[n])&&(i=(r?a(t,s,i):a(i))||i);return r&&i&&l(t,s,i),i})([a("browser-incompatible")],i);export{i as default};

View File

@ -1 +1 @@
import{W as e,h as n,b as t}from"./vendor.ef3c1a07.js";var s=Object.defineProperty,o=Object.getOwnPropertyDescriptor;let r=class extends e{constructor(){super(...arguments),this.columnCount=2,this.onResize=()=>{this.columnCount=window.innerWidth<768?1:2,this.updateSelf()}}installed(){window.addEventListener("resize",this.onResize)}uninstall(){window.removeEventListener("resize",this.onResize)}render(e){return n("div",{class:e.class,style:Object.assign({columnCount:this.columnCount,columnGap:"1rem",padding:"1rem"},e.style)},n("slot",null))}};r.css=null,r=((e,n,t,r)=>{for(var i,l=r>1?void 0:r?o(n,t):n,c=e.length-1;c>=0;c--)(i=e[c])&&(l=(r?i(n,t,l):i(l))||l);return r&&l&&s(n,t,l),l})([t("code-demo-container")],r);
import{W as e,h as n,b as t}from"./vendor.c903f3c9.js";var s=Object.defineProperty,o=Object.getOwnPropertyDescriptor;let r=class extends e{constructor(){super(...arguments),this.columnCount=2,this.onResize=()=>{this.columnCount=window.innerWidth<768?1:2,this.updateSelf()}}installed(){window.addEventListener("resize",this.onResize)}uninstall(){window.removeEventListener("resize",this.onResize)}render(e){return n("div",{class:e.class,style:Object.assign({columnCount:this.columnCount,columnGap:"1rem",padding:"1rem"},e.style)},n("slot",null))}};r.css=null,r=((e,n,t,r)=>{for(var i,l=r>1?void 0:r?o(n,t):n,c=e.length-1;c>=0;c--)(i=e[c])&&(l=(r?i(n,t,l):i(l))||l);return r&&l&&s(n,t,l),l})([t("code-demo-container")],r);

View File

@ -1 +1 @@
import{k as getDefaultExportFromCjs,f as require$$0,g as commonjsGlobal}from"./vendor.ef3c1a07.js";var emojiPeople$2={exports:{}};(function(module,exports){var factory;factory=function(__WEBPACK_EXTERNAL_MODULE_omi__){return function(e){var n={};function o(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=e,o.c=n,o.d=function(e,n,t){o.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,n){if(1&n&&(e=o(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(o.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)o.d(t,r,function(n){return e[n]}.bind(null,r));return t},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="",o(o.s="./esm/emoji-people.js")}({"./esm/emoji-people.js":function(module,exports,__webpack_require__){eval('\nObject.defineProperty(exports, "__esModule", { value: true });\nvar omi_1 = __webpack_require__(/*! omi */ "omi");\nvar createSvgIcon_1 = __webpack_require__(/*! ./utils/createSvgIcon */ "./esm/utils/createSvgIcon.js");\nexports.default = createSvgIcon_1.default(omi_1.h(omi_1.h.f, null, omi_1.h("circle", {\n cx: "12",\n cy: "4",\n r: "2"\n}), omi_1.h("path", {\n d: "M15.89 8.11C15.5 7.72 14.83 7 13.53 7h-2.54C8.24 6.99 6 4.75 6 2H4c0 3.16 2.11 5.84 5 6.71V22h2v-6h2v6h2V10.05L18.95 14l1.41-1.41-4.47-4.48z"\n})), \'EmojiPeople\');\n\n\n//# sourceURL=webpack://%5Bname%5D/./esm/emoji-people.js?')},"./esm/utils/createSvgIcon.js":function(module,exports,__webpack_require__){eval('\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nObject.defineProperty(exports, "__esModule", { value: true });\nvar omi_1 = __webpack_require__(/*! omi */ "omi");\nvar hyphenateRE = /\\B([A-Z])/g;\nvar hyphenate = function (str) {\n return str.replace(hyphenateRE, \'-$1\').toLowerCase();\n};\nfunction createSvgIcon(path, displayName) {\n omi_1.define(hyphenate(\'OIcon\' + displayName), function (_) {\n return omi_1.h(\'svg\', __assign({ viewBox: "0 0 24 24", title: displayName }, _.props), path);\n }, {\n css: ":host {\\n fill: currentColor;\\n width: 1em;\\n height: 1em;\\n display: inline-block;\\n vertical-align: -0.125em;\\n transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\\n flex-shrink: 0;\\n user-select: none;\\n}"\n });\n}\nexports.default = createSvgIcon;\n\n\n//# sourceURL=webpack://%5Bname%5D/./esm/utils/createSvgIcon.js?')},omi:function(module,exports){eval("module.exports = __WEBPACK_EXTERNAL_MODULE_omi__;\n\n//# sourceURL=webpack://%5Bname%5D/external_%7B%22commonjs%22:%22omi%22,%22commonjs2%22:%22omi%22,%22amd%22:%22omi%22,%22root%22:%22Omi%22%7D?")}}).default},module.exports=factory(require$$0)})(emojiPeople$2);var emojiPeople=getDefaultExportFromCjs(emojiPeople$2.exports),emojiPeople$1=Object.freeze(Object.assign(Object.create(null),emojiPeople$2.exports,{[Symbol.toStringTag]:"Module",default:emojiPeople}));export{emojiPeople$1 as e};
import{k as getDefaultExportFromCjs,f as require$$0,g as commonjsGlobal}from"./vendor.c903f3c9.js";var emojiPeople$2={exports:{}};(function(module,exports){var factory;factory=function(__WEBPACK_EXTERNAL_MODULE_omi__){return function(e){var n={};function o(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=e,o.c=n,o.d=function(e,n,t){o.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,n){if(1&n&&(e=o(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(o.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)o.d(t,r,function(n){return e[n]}.bind(null,r));return t},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="",o(o.s="./esm/emoji-people.js")}({"./esm/emoji-people.js":function(module,exports,__webpack_require__){eval('\nObject.defineProperty(exports, "__esModule", { value: true });\nvar omi_1 = __webpack_require__(/*! omi */ "omi");\nvar createSvgIcon_1 = __webpack_require__(/*! ./utils/createSvgIcon */ "./esm/utils/createSvgIcon.js");\nexports.default = createSvgIcon_1.default(omi_1.h(omi_1.h.f, null, omi_1.h("circle", {\n cx: "12",\n cy: "4",\n r: "2"\n}), omi_1.h("path", {\n d: "M15.89 8.11C15.5 7.72 14.83 7 13.53 7h-2.54C8.24 6.99 6 4.75 6 2H4c0 3.16 2.11 5.84 5 6.71V22h2v-6h2v6h2V10.05L18.95 14l1.41-1.41-4.47-4.48z"\n})), \'EmojiPeople\');\n\n\n//# sourceURL=webpack://%5Bname%5D/./esm/emoji-people.js?')},"./esm/utils/createSvgIcon.js":function(module,exports,__webpack_require__){eval('\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nObject.defineProperty(exports, "__esModule", { value: true });\nvar omi_1 = __webpack_require__(/*! omi */ "omi");\nvar hyphenateRE = /\\B([A-Z])/g;\nvar hyphenate = function (str) {\n return str.replace(hyphenateRE, \'-$1\').toLowerCase();\n};\nfunction createSvgIcon(path, displayName) {\n omi_1.define(hyphenate(\'OIcon\' + displayName), function (_) {\n return omi_1.h(\'svg\', __assign({ viewBox: "0 0 24 24", title: displayName }, _.props), path);\n }, {\n css: ":host {\\n fill: currentColor;\\n width: 1em;\\n height: 1em;\\n display: inline-block;\\n vertical-align: -0.125em;\\n transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\\n flex-shrink: 0;\\n user-select: none;\\n}"\n });\n}\nexports.default = createSvgIcon;\n\n\n//# sourceURL=webpack://%5Bname%5D/./esm/utils/createSvgIcon.js?')},omi:function(module,exports){eval("module.exports = __WEBPACK_EXTERNAL_MODULE_omi__;\n\n//# sourceURL=webpack://%5Bname%5D/external_%7B%22commonjs%22:%22omi%22,%22commonjs2%22:%22omi%22,%22amd%22:%22omi%22,%22root%22:%22Omi%22%7D?")}}).default},module.exports=factory(require$$0)})(emojiPeople$2);var emojiPeople=getDefaultExportFromCjs(emojiPeople$2.exports),emojiPeople$1=Object.freeze(Object.assign(Object.create(null),emojiPeople$2.exports,{[Symbol.toStringTag]:"Module",default:emojiPeople}));export{emojiPeople$1 as e};

View File

@ -1 +1 @@
import{s as e,W as r,h as d,t as s,b as o}from"./vendor.ef3c1a07.js";import"./admin-docs.97d03ead.js";var t=Object.defineProperty,n=Object.getOwnPropertyDescriptor;let a=class extends r{render(e){return d("div",{class:s`w-full border-1 mb-4 border-gray-300 rounded overflow-hidden ${e.class}`,style:Object.assign({breakInside:"avoid"},e.style)},d("div",null,d("slot",{name:"demo"})),d("div",{class:s`border-t-1 border-gray-200 border-solid px-2 text-sm mb-3`},d("h3",{class:s`font-bold bg-white relative -top-2.5 inline-block px-2`},e.title),d("p",null,e.describe)),d("div",null,d("admin-docs",{css:"\n .docs {\n padding: 0 !important;\n }\n ",mdContent:e.code})))}};a.css=[e.target],a=((e,r,d,s)=>{for(var o,a=s>1?void 0:s?n(r,d):r,l=e.length-1;l>=0;l--)(o=e[l])&&(a=(s?o(r,d,a):o(a))||a);return s&&a&&t(r,d,a),a})([o("code-demo")],a);
import{s as e,W as r,h as d,t as s,b as o}from"./vendor.c903f3c9.js";import"./admin-docs.8aaa52e1.js";var t=Object.defineProperty,n=Object.getOwnPropertyDescriptor;let a=class extends r{render(e){return d("div",{class:s`w-full border-1 mb-4 border-gray-300 rounded overflow-hidden ${e.class}`,style:Object.assign({breakInside:"avoid"},e.style)},d("div",null,d("slot",{name:"demo"})),d("div",{class:s`border-t-1 border-gray-200 border-solid px-2 text-sm mb-3`},d("h3",{class:s`font-bold bg-white relative -top-2.5 inline-block px-2`},e.title),d("p",null,e.describe)),d("div",null,d("admin-docs",{css:"\n .docs {\n padding: 0 !important;\n }\n ",mdContent:e.code})))}};a.css=[e.target],a=((e,r,d,s)=>{for(var o,a=s>1?void 0:s?n(r,d):r,l=e.length-1;l>=0;l--)(o=e[l])&&(a=(s?o(r,d,a):o(a))||a);return s&&a&&t(r,d,a),a})([o("code-demo")],a);

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
import{h as n,e as o,b as e,W as t}from"./vendor.ef3c1a07.js";
import{h as n,e as o,b as e,W as t}from"./vendor.c903f3c9.js";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

View File

@ -1,4 +1,4 @@
var t=Object.defineProperty,e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,o=(e,n,r)=>n in e?t(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,i=(t,i)=>{for(var c in i||(i={}))n.call(i,c)&&o(t,c,i[c]);if(e)for(var c of e(i))r.call(i,c)&&o(t,c,i[c]);return t},c=(t,e,n)=>(o(t,"symbol"!=typeof e?e+"":e,n),n);import{h as p,e as a,b as s,W as l}from"./vendor.ef3c1a07.js";
var t=Object.defineProperty,e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,o=(e,n,r)=>n in e?t(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,i=(t,i)=>{for(var c in i||(i={}))n.call(i,c)&&o(t,c,i[c]);if(e)for(var c of e(i))r.call(i,c)&&o(t,c,i[c]);return t},c=(t,e,n)=>(o(t,"symbol"!=typeof e?e+"":e,n),n);import{h as p,e as a,b as s,W as l}from"./vendor.c903f3c9.js";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use

View File

@ -1,4 +1,4 @@
import{h as t,e as n,b as e,W as r}from"./vendor.ef3c1a07.js";
import{h as t,e as n,b as e,W as r}from"./vendor.c903f3c9.js";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

View File

@ -1,4 +1,4 @@
import{h as t,d as e,b as n,W as r}from"./vendor.ef3c1a07.js";
import{h as t,d as e,b as n,W as r}from"./vendor.c903f3c9.js";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{_ as e}from"./index.31b00cb8.js";import{W as t,h as a,t as i,s as n,b as s}from"./vendor.ef3c1a07.js";import"./index.esm.473e6229.js";import"./index.esm.a2aa5bea.js";import"./index.esm.b7f93101.js";var d=Object.defineProperty,r=Object.getOwnPropertyDescriptor;let o=class extends t{constructor(){super(...arguments),this.dataSource=[{id:1,name:"xwang",age:18,address:"Tencent"},{id:2,name:"dntzhang",age:12,address:"Tencent",$config:{bgColor:"rgb(247 176 176 / 32%)"}},{id:3,name:"lucy",age:12,address:"Tencent"},{id:4,name:"john",age:12,address:"Tencent",$config:{bgColor:"rgb(230 162 60 / 34%)"}},{id:5,name:"tim",age:12,address:"Tencent"},{id:6,name:"tim",age:12,address:"Tencent"},{id:7,name:"tim",age:12,address:"Tencent"},{id:8,name:"tim",age:12,address:"Tencent"},{id:9,name:"xwang",age:18,address:"Tencent"},{id:10,name:"dntzhang",age:12,address:"Tencent",$config:{bgColor:"rgb(247 176 176 / 32%)"}},{id:11,name:"lucy",age:12,address:"Tencent"},{id:12,name:"john",age:12,address:"Tencent",$config:{bgColor:"rgb(230 162 60 / 34%)"}},{id:13,name:"tim",age:12,address:"Tencent"},{id:14,name:"tim",age:12,address:"Tencent"},{id:15,name:"tim",age:12,address:"Tencent"},{id:16,name:"tim",age:12,address:"Tencent"}],this.columns=[{title:"ID",render:e=>a("strong",null,e.id)},{title:"Name",width:120,key:"name",editable:!0},{title:"Age",width:90,key:"age",editable:!0},{title:"Address",width:290,key:"address",editable:!0},{title:"操作",align:"right",render:e=>a("o-tooltip",{content:"删除"+e.name},a("o-icon-delete",{"data-item-id":e.id,_onclick:this.onClick,style:"cursor:pointer;font-size:20px;"}))}],this.paging=!0,this.pageSize=5,this.pageIndex=0,this.filterData=[],this.change=e=>{this.pageIndex=e.detail,this.renderTable()},this.onClick=e=>{this.table.deleteRowById(e.currentTarget.dataset.itemId)},this.exportExcel=()=>{e((()=>import("./export-excel.44778c01.js")),["assets/export-excel.44778c01.js","assets/vendor.ef3c1a07.js","assets/___vite-browser-external_commonjs-proxy.1fe250a3.js"]).then((e=>{e.exportTableToExcel(this.table.rootNode.querySelector("table"))}))}}renderTable(){this.filterData=this.dataSource.slice(this.pageIndex*this.pageSize,this.pageIndex*this.pageSize+this.pageSize),this.update()}installed(){this.renderTable()}deleteItemById(e){const t=this.dataSource.indexOf(this.dataSource.find((t=>t.id===e)));-1!==t&&this.dataSource.splice(t,1),this.update()}render(){return a("div",{class:i`pl-0.5`},a("div",{class:i`relative h-10 text-right`},a("o-button",{class:i`relative top-2 right-2`,size:"mini",onClick:this.exportExcel},"导出Excel")),a("div",{class:i`px-2`},a("o-table",{ref:e=>this.table=e,checkbox:!1,stripe:!1,border:!1,compact:!1,columns:this.columns,dataSource:this.filterData}),a("div",{class:i`mt-3 text-right`},a("o-pagination",{total:this.dataSource.length,"current-page":this.pageIndex,"page-size":this.pageSize,onchange:this.change}))))}};o.css=n.target,o=((e,t,a,i)=>{for(var n,s=i>1?void 0:i?r(t,a):t,o=e.length-1;o>=0;o--)(n=e[o])&&(s=(i?n(t,a,s):n(s))||s);return i&&s&&d(t,a,s),s})([s("inline-editing")],o);export{o as default};
import{_ as e}from"./index.946abbb0.js";import{W as t,h as a,t as i,s as n,b as s}from"./vendor.c903f3c9.js";import"./index.esm.f99dc3f9.js";import"./index.esm.9f7edb1f.js";import"./index.esm.ddc894b1.js";var d=Object.defineProperty,r=Object.getOwnPropertyDescriptor;let o=class extends t{constructor(){super(...arguments),this.dataSource=[{id:1,name:"xwang",age:18,address:"Tencent"},{id:2,name:"dntzhang",age:12,address:"Tencent",$config:{bgColor:"rgb(247 176 176 / 32%)"}},{id:3,name:"lucy",age:12,address:"Tencent"},{id:4,name:"john",age:12,address:"Tencent",$config:{bgColor:"rgb(230 162 60 / 34%)"}},{id:5,name:"tim",age:12,address:"Tencent"},{id:6,name:"tim",age:12,address:"Tencent"},{id:7,name:"tim",age:12,address:"Tencent"},{id:8,name:"tim",age:12,address:"Tencent"},{id:9,name:"xwang",age:18,address:"Tencent"},{id:10,name:"dntzhang",age:12,address:"Tencent",$config:{bgColor:"rgb(247 176 176 / 32%)"}},{id:11,name:"lucy",age:12,address:"Tencent"},{id:12,name:"john",age:12,address:"Tencent",$config:{bgColor:"rgb(230 162 60 / 34%)"}},{id:13,name:"tim",age:12,address:"Tencent"},{id:14,name:"tim",age:12,address:"Tencent"},{id:15,name:"tim",age:12,address:"Tencent"},{id:16,name:"tim",age:12,address:"Tencent"}],this.columns=[{title:"ID",render:e=>a("strong",null,e.id)},{title:"Name",width:120,key:"name",editable:!0},{title:"Age",width:90,key:"age",editable:!0},{title:"Address",width:290,key:"address",editable:!0},{title:"操作",align:"right",render:e=>a("o-tooltip",{content:"删除"+e.name},a("o-icon-delete",{"data-item-id":e.id,_onclick:this.onClick,style:"cursor:pointer;font-size:20px;"}))}],this.paging=!0,this.pageSize=5,this.pageIndex=0,this.filterData=[],this.change=e=>{this.pageIndex=e.detail,this.renderTable()},this.onClick=e=>{this.table.deleteRowById(e.currentTarget.dataset.itemId)},this.exportExcel=()=>{e((()=>import("./export-excel.ee931646.js")),["assets/export-excel.ee931646.js","assets/vendor.c903f3c9.js","assets/___vite-browser-external_commonjs-proxy.c4d229e3.js"]).then((e=>{e.exportTableToExcel(this.table.rootNode.querySelector("table"))}))}}renderTable(){this.filterData=this.dataSource.slice(this.pageIndex*this.pageSize,this.pageIndex*this.pageSize+this.pageSize),this.update()}installed(){this.renderTable()}deleteItemById(e){const t=this.dataSource.indexOf(this.dataSource.find((t=>t.id===e)));-1!==t&&this.dataSource.splice(t,1),this.update()}render(){return a("div",{class:i`pl-0.5`},a("div",{class:i`relative h-10 text-right`},a("o-button",{class:i`relative top-2 right-2`,size:"mini",onClick:this.exportExcel},"导出Excel")),a("div",{class:i`px-2`},a("o-table",{ref:e=>this.table=e,checkbox:!1,stripe:!1,border:!1,compact:!1,columns:this.columns,dataSource:this.filterData}),a("div",{class:i`mt-3 text-right`},a("o-pagination",{total:this.dataSource.length,"current-page":this.pageIndex,"page-size":this.pageSize,onchange:this.change}))))}};o.css=n.target,o=((e,t,a,i)=>{for(var n,s=i>1?void 0:i?r(t,a):t,o=e.length-1;o>=0;o--)(n=e[o])&&(s=(i?n(t,a,s):n(s))||s);return i&&s&&d(t,a,s),s})([s("inline-editing")],o);export{o as default};

View File

@ -1,4 +1,4 @@
import{h as o,b as e,W as n,t as i,s as r}from"./vendor.ef3c1a07.js";import"./admin-docs.97d03ead.js";import"./index.43f1a1bb.js";import"./container.62d7a530.js";import"./___vite-browser-external_commonjs-proxy.1fe250a3.js";
import{h as o,b as e,W as n,t as i,s as r}from"./vendor.c903f3c9.js";import"./admin-docs.8aaa52e1.js";import"./index.684d6894.js";import"./container.1ef75020.js";import"./___vite-browser-external_commonjs-proxy.c4d229e3.js";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{W as e,h as r,t,s,b as a}from"./vendor.ef3c1a07.js";var i=Object.defineProperty,n=Object.getOwnPropertyDescriptor;let d=class extends e{render(){return r("div",{class:t``},r("iframe",{height:window.innerHeight-90,style:"width: 100%;",scrolling:"yes",title:"OMIU Link",src:"../mind-map/index.html",frameborder:"no",loading:"lazy"}))}};d.css=s.target,d=((e,r,t,s)=>{for(var a,d=s>1?void 0:s?n(r,t):r,o=e.length-1;o>=0;o--)(a=e[o])&&(d=(s?a(r,t,d):a(d))||d);return s&&d&&i(r,t,d),d})([a("mind-map")],d);export{d as default};

View File

@ -0,0 +1 @@
import{W as e,h as r,t,s,b as i}from"./vendor.c903f3c9.js";var n=Object.defineProperty,a=Object.getOwnPropertyDescriptor;let d=class extends e{render(){return r("div",{class:t``},r("iframe",{height:window.innerHeight-90,style:"width: 100%;",scrolling:"yes",title:"OMIU Link",src:"../mind-map/index.html",frameborder:"no",loading:"lazy"}))}};d.css=s.target,d=((e,r,t,s)=>{for(var i,d=s>1?void 0:s?a(r,t):r,o=e.length-1;o>=0;o--)(i=e[o])&&(d=(s?i(r,t,d):i(d))||d);return s&&d&&n(r,t,d),d})([i("mind-map")],d);export{d as default};

View File

@ -1 +1 @@
import{W as e,h as t,t as r,s,b as a}from"./vendor.ef3c1a07.js";var l=Object.defineProperty,n=Object.getOwnPropertyDescriptor;let o=class extends e{render(){return t("div",{class:r`text-center relative`,style:{top:"calc(50vh - 16em)"}},t("div",null,t("img",{class:r`w-72 inline-block`,src:"https://tdesign.gtimg.com/pro-template/result-page/network-error.png"})),t("p",{class:r`text-gray-500`},"网络异常,请稍后再试"),t("p",{class:r` text-gray-400 py-4 text-xs`},"感谢腾讯云sissiwu, lunanlu提供设计支持"))}};o.css=s.target,o=((e,t,r,s)=>{for(var a,o=s>1?void 0:s?n(t,r):t,c=e.length-1;c>=0;c--)(a=e[c])&&(o=(s?a(t,r,o):a(o))||o);return s&&o&&l(t,r,o),o})([a("network-error")],o);export{o as default};
import{W as e,h as t,t as r,s,b as a}from"./vendor.c903f3c9.js";var l=Object.defineProperty,n=Object.getOwnPropertyDescriptor;let c=class extends e{render(){return t("div",{class:r`text-center relative`,style:{top:"calc(50vh - 16em)"}},t("div",null,t("img",{class:r`w-72 inline-block`,src:"https://tdesign.gtimg.com/pro-template/result-page/network-error.png"})),t("p",{class:r`text-gray-500`},"网络异常,请稍后再试"),t("p",{class:r` text-gray-400 py-4 text-xs`},"感谢腾讯云sissiwu, lunanlu提供设计支持"))}};c.css=s.target,c=((e,t,r,s)=>{for(var a,c=s>1?void 0:s?n(t,r):t,o=e.length-1;o>=0;o--)(a=e[o])&&(c=(s?a(t,r,c):a(c))||c);return s&&c&&l(t,r,c),c})([a("network-error")],c);export{c as default};

View File

@ -1 +0,0 @@
import{W as e,h as t,t as s,s as r,b as a}from"./vendor.ef3c1a07.js";var l=Object.defineProperty,n=Object.getOwnPropertyDescriptor;let c=class extends e{render(){return t("div",{class:s`text-center relative`,style:{top:"calc(50vh - 16em)"}},t("div",null,t("img",{class:s`w-72 inline-block`,src:"https://tdesign.gtimg.com/pro-template/result-page/404.png"})),t("p",{class:s`text-gray-500`},"抱歉,您访问的页面不存在"),t("p",{class:s` text-gray-400 py-4 text-xs`},"感谢腾讯云sissiwu, lunanlu提供设计支持"))}};c.css=r.target,c=((e,t,s,r)=>{for(var a,c=r>1?void 0:r?n(t,s):t,o=e.length-1;o>=0;o--)(a=e[o])&&(c=(r?a(t,s,c):a(c))||c);return r&&c&&l(t,s,c),c})([a("not-found")],c);export{c as default};

View File

@ -0,0 +1 @@
import{W as t,h as e,t as s,s as r,b as a}from"./vendor.c903f3c9.js";var l=Object.defineProperty,n=Object.getOwnPropertyDescriptor;let c=class extends t{render(){return e("div",{class:s`text-center relative`,style:{top:"calc(50vh - 16em)"}},e("div",null,e("img",{class:s`w-72 inline-block`,src:"https://tdesign.gtimg.com/pro-template/result-page/404.png"})),e("p",{class:s`text-gray-500`},"抱歉,您访问的页面不存在"),e("p",{class:s` text-gray-400 py-4 text-xs`},"感谢腾讯云sissiwu, lunanlu提供设计支持"))}};c.css=r.target,c=((t,e,s,r)=>{for(var a,c=r>1?void 0:r?n(e,s):e,o=t.length-1;o>=0;o--)(a=t[o])&&(c=(r?a(e,s,c):a(c))||c);return r&&c&&l(e,s,c),c})([a("not-found")],c);export{c as default};

View File

@ -1 +1 @@
import{W as e,h as t,t as a,s as i,b as n}from"./vendor.ef3c1a07.js";import"./index.esm.473e6229.js";import"./index.esm.a2aa5bea.js";import"./index.esm.b7f93101.js";var s=Object.defineProperty,d=Object.getOwnPropertyDescriptor;let r=class extends e{constructor(){super(...arguments),this.dataSource=[{id:1,name:"xwang",age:18,address:"Tencent"},{id:2,name:"dntzhang",age:12,address:"Tencent",$config:{bgColor:"rgb(247 176 176 / 32%)"}},{id:3,name:"lucy",age:12,address:"Tencent"},{id:4,name:"john",age:12,address:"Tencent",$config:{bgColor:"rgb(230 162 60 / 34%)"}},{id:5,name:"tim",age:12,address:"Tencent"},{id:6,name:"tim",age:12,address:"Tencent"},{id:7,name:"tim",age:12,address:"Tencent"},{id:8,name:"tim",age:12,address:"Tencent"},{id:9,name:"xwang",age:18,address:"Tencent"},{id:10,name:"dntzhang",age:12,address:"Tencent",$config:{bgColor:"rgb(247 176 176 / 32%)"}},{id:11,name:"lucy",age:12,address:"Tencent"},{id:12,name:"john",age:12,address:"Tencent",$config:{bgColor:"rgb(230 162 60 / 34%)"}},{id:13,name:"tim",age:12,address:"Tencent"},{id:14,name:"tim",age:12,address:"Tencent"},{id:15,name:"tim",age:12,address:"Tencent"},{id:16,name:"tim",age:12,address:"Tencent"}],this.columns=[{title:"ID",render:e=>t("strong",null,e.id)},{title:"Name",key:"name"},{title:"Age",key:"age"},{title:"Address",key:"address"},{title:"操作",align:"right",render:e=>t("o-tooltip",{content:"删除"+e.name},t("o-icon-delete",{"data-item-id":e.id,_onclick:this.onClick,style:"cursor:pointer;font-size:20px;"}))}],this.paging=!0,this.pageSize=5,this.pageIndex=0,this.filterData=[],this.change=e=>{this.pageIndex=e.detail,this.renderTable()},this.onClick=e=>{this.table.deleteRowById(e.currentTarget.dataset.itemId)}}renderTable(){this.filterData=this.dataSource.slice(this.pageIndex*this.pageSize,this.pageIndex*this.pageSize+this.pageSize),this.update()}installed(){this.renderTable()}deleteItemById(e){const t=this.dataSource.indexOf(this.dataSource.find((t=>t.id===e)));-1!==t&&this.dataSource.splice(t,1),this.update()}render(){return t("div",{class:a`pl-0.5`},t("div",{class:a`px-2`},t("o-table",{ref:e=>this.table=e,checkbox:!1,stripe:!1,border:!1,compact:!1,columns:this.columns,dataSource:this.filterData}),t("div",{class:a`mt-3 text-right`},t("o-pagination",{total:this.dataSource.length,"current-page":this.pageIndex,"page-size":this.pageSize,onchange:this.change}))))}};r.css=i.target,r=((e,t,a,i)=>{for(var n,r=i>1?void 0:i?d(t,a):t,c=e.length-1;c>=0;c--)(n=e[c])&&(r=(i?n(t,a,r):n(r))||r);return i&&r&&s(t,a,r),r})([n("pagination-table")],r);export{r as default};
import{W as e,h as t,t as a,s as i,b as n}from"./vendor.c903f3c9.js";import"./index.esm.f99dc3f9.js";import"./index.esm.9f7edb1f.js";import"./index.esm.ddc894b1.js";var s=Object.defineProperty,d=Object.getOwnPropertyDescriptor;let r=class extends e{constructor(){super(...arguments),this.dataSource=[{id:1,name:"xwang",age:18,address:"Tencent"},{id:2,name:"dntzhang",age:12,address:"Tencent",$config:{bgColor:"rgb(247 176 176 / 32%)"}},{id:3,name:"lucy",age:12,address:"Tencent"},{id:4,name:"john",age:12,address:"Tencent",$config:{bgColor:"rgb(230 162 60 / 34%)"}},{id:5,name:"tim",age:12,address:"Tencent"},{id:6,name:"tim",age:12,address:"Tencent"},{id:7,name:"tim",age:12,address:"Tencent"},{id:8,name:"tim",age:12,address:"Tencent"},{id:9,name:"xwang",age:18,address:"Tencent"},{id:10,name:"dntzhang",age:12,address:"Tencent",$config:{bgColor:"rgb(247 176 176 / 32%)"}},{id:11,name:"lucy",age:12,address:"Tencent"},{id:12,name:"john",age:12,address:"Tencent",$config:{bgColor:"rgb(230 162 60 / 34%)"}},{id:13,name:"tim",age:12,address:"Tencent"},{id:14,name:"tim",age:12,address:"Tencent"},{id:15,name:"tim",age:12,address:"Tencent"},{id:16,name:"tim",age:12,address:"Tencent"}],this.columns=[{title:"ID",render:e=>t("strong",null,e.id)},{title:"Name",key:"name"},{title:"Age",key:"age"},{title:"Address",key:"address"},{title:"操作",align:"right",render:e=>t("o-tooltip",{content:"删除"+e.name},t("o-icon-delete",{"data-item-id":e.id,_onclick:this.onClick,style:"cursor:pointer;font-size:20px;"}))}],this.paging=!0,this.pageSize=5,this.pageIndex=0,this.filterData=[],this.change=e=>{this.pageIndex=e.detail,this.renderTable()},this.onClick=e=>{this.table.deleteRowById(e.currentTarget.dataset.itemId)}}renderTable(){this.filterData=this.dataSource.slice(this.pageIndex*this.pageSize,this.pageIndex*this.pageSize+this.pageSize),this.update()}installed(){this.renderTable()}deleteItemById(e){const t=this.dataSource.indexOf(this.dataSource.find((t=>t.id===e)));-1!==t&&this.dataSource.splice(t,1),this.update()}render(){return t("div",{class:a`pl-0.5`},t("div",{class:a`px-2`},t("o-table",{ref:e=>this.table=e,checkbox:!1,stripe:!1,border:!1,compact:!1,columns:this.columns,dataSource:this.filterData}),t("div",{class:a`mt-3 text-right`},t("o-pagination",{total:this.dataSource.length,"current-page":this.pageIndex,"page-size":this.pageSize,onchange:this.change}))))}};r.css=i.target,r=((e,t,a,i)=>{for(var n,r=i>1?void 0:i?d(t,a):t,c=e.length-1;c>=0;c--)(n=e[c])&&(r=(i?n(t,a,r):n(r))||r);return i&&r&&s(t,a,r),r})([n("pagination-table")],r);export{r as default};

View File

@ -1 +1 @@
import{W as e,h as t,t as s,s as r,b as a}from"./vendor.ef3c1a07.js";var n=Object.defineProperty,l=Object.getOwnPropertyDescriptor;let i=class extends e{render(){return t("div",{class:s`text-center relative`,style:{top:"calc(50vh - 16em)"}},t("div",null,t("img",{class:s`w-72 inline-block`,src:"https://tdesign.gtimg.com/pro-template/result-page/403.png"})),t("p",{class:s`text-gray-500`},"抱歉您无权限访问此页面企业微信联系创建者dntzhang"),t("p",{class:s` text-gray-400 py-4 text-xs`},"感谢腾讯云sissiwu, lunanlu提供设计支持"))}};i.css=r.target,i=((e,t,s,r)=>{for(var a,i=r>1?void 0:r?l(t,s):t,c=e.length-1;c>=0;c--)(a=e[c])&&(i=(r?a(t,s,i):a(i))||i);return r&&i&&n(t,s,i),i})([a("permission-denied")],i);export{i as default};
import{W as e,h as t,t as s,s as r,b as a}from"./vendor.c903f3c9.js";var n=Object.defineProperty,l=Object.getOwnPropertyDescriptor;let c=class extends e{render(){return t("div",{class:s`text-center relative`,style:{top:"calc(50vh - 16em)"}},t("div",null,t("img",{class:s`w-72 inline-block`,src:"https://tdesign.gtimg.com/pro-template/result-page/403.png"})),t("p",{class:s`text-gray-500`},"抱歉您无权限访问此页面企业微信联系创建者dntzhang"),t("p",{class:s` text-gray-400 py-4 text-xs`},"感谢腾讯云sissiwu, lunanlu提供设计支持"))}};c.css=r.target,c=((e,t,s,r)=>{for(var a,c=r>1?void 0:r?l(t,s):t,i=e.length-1;i>=0;i--)(a=e[i])&&(c=(r?a(t,s,c):a(c))||c);return r&&c&&n(t,s,c),c})([a("permission-denied")],c);export{c as default};

View File

@ -1 +1 @@
import{W as e,h as t,t as s,s as r,b as a}from"./vendor.ef3c1a07.js";var l=Object.defineProperty,c=Object.getOwnPropertyDescriptor;let n=class extends e{render(){return t("div",{class:s``},t("div",{class:s`text-center relative`,style:{top:"calc(50vh - 16em)"}},t("div",null,t("img",{class:s`w-72 inline-block`,src:"https://tdesign.gtimg.com/pro-template/result-page/500.png"})),t("p",{class:s`text-gray-500`},"抱歉,服务器出错啦"),t("p",{class:s` text-gray-400 py-4 text-xs`},"感谢腾讯云sissiwu, lunanlu提供设计支持")))}};n.css=r.target,n=((e,t,s,r)=>{for(var a,n=r>1?void 0:r?c(t,s):t,i=e.length-1;i>=0;i--)(a=e[i])&&(n=(r?a(t,s,n):a(n))||n);return r&&n&&l(t,s,n),n})([a("server-error")],n);export{n as default};
import{W as e,h as t,t as s,s as r,b as a}from"./vendor.c903f3c9.js";var l=Object.defineProperty,c=Object.getOwnPropertyDescriptor;let n=class extends e{render(){return t("div",{class:s``},t("div",{class:s`text-center relative`,style:{top:"calc(50vh - 16em)"}},t("div",null,t("img",{class:s`w-72 inline-block`,src:"https://tdesign.gtimg.com/pro-template/result-page/500.png"})),t("p",{class:s`text-gray-500`},"抱歉,服务器出错啦"),t("p",{class:s` text-gray-400 py-4 text-xs`},"感谢腾讯云sissiwu, lunanlu提供设计支持")))}};n.css=r.target,n=((e,t,s,r)=>{for(var a,n=r>1?void 0:r?c(t,s):t,i=e.length-1;i>=0;i--)(a=e[i])&&(n=(r?a(t,s,n):a(n))||n);return r&&n&&l(t,s,n),n})([a("server-error")],n);export{n as default};

View File

@ -1,4 +1,4 @@
import{e as n,h as e,b as o,W as r,t as i,s as t}from"./vendor.ef3c1a07.js";import"./admin-docs.97d03ead.js";import"./index.43f1a1bb.js";import"./___vite-browser-external_commonjs-proxy.1fe250a3.js";
import{e as n,h as e,b as o,W as r,t as i,s as t}from"./vendor.c903f3c9.js";import"./admin-docs.8aaa52e1.js";import"./index.684d6894.js";import"./___vite-browser-external_commonjs-proxy.c4d229e3.js";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

View File

@ -0,0 +1 @@
import{W as r,h as e,t,s,b as a}from"./vendor.c903f3c9.js";var o=Object.defineProperty,n=Object.getOwnPropertyDescriptor;let c=class extends r{render(){return e("div",{class:t``},"Admin Error Page")}};c.css=s.target,c=((r,e,t,s)=>{for(var a,c=s>1?void 0:s?n(e,t):e,d=r.length-1;d>=0;d--)(a=r[d])&&(c=(s?a(e,t,c):a(c))||c);return s&&c&&o(e,t,c),c})([a("status-error")],c);export{c as default};

View File

@ -1 +0,0 @@
import{W as r,h as e,t,s,b as a}from"./vendor.ef3c1a07.js";var o=Object.defineProperty,n=Object.getOwnPropertyDescriptor;let d=class extends r{render(){return e("div",{class:t``},"Admin Error Page")}};d.css=s.target,d=((r,e,t,s)=>{for(var a,d=s>1?void 0:s?n(e,t):e,c=r.length-1;c>=0;c--)(a=r[c])&&(d=(s?a(e,t,d):a(d))||d);return s&&d&&o(e,t,d),d})([a("status-error")],d);export{d as default};

View File

@ -1 +0,0 @@
import{W as e,h as r,t,s,b as a}from"./vendor.ef3c1a07.js";var n=Object.defineProperty,o=Object.getOwnPropertyDescriptor;let d=class extends e{render(){return r("div",{class:t``},"Admin Warning Page")}};d.css=s.target,d=((e,r,t,s)=>{for(var a,d=s>1?void 0:s?o(r,t):r,i=e.length-1;i>=0;i--)(a=e[i])&&(d=(s?a(r,t,d):a(d))||d);return s&&d&&n(r,t,d),d})([a("status-warning")],d);export{d as default};

View File

@ -0,0 +1 @@
import{W as r,h as e,t,s,b as a}from"./vendor.c903f3c9.js";var n=Object.defineProperty,o=Object.getOwnPropertyDescriptor;let c=class extends r{render(){return e("div",{class:t``},"Admin Warning Page")}};c.css=s.target,c=((r,e,t,s)=>{for(var a,c=s>1?void 0:s?o(e,t):e,d=r.length-1;d>=0;d--)(a=r[d])&&(c=(s?a(e,t,c):a(c))||c);return s&&c&&n(e,t,c),c})([a("status-warning")],c);export{c as default};

View File

@ -1,4 +1,4 @@
import{h as e,e as t,b as n,W as o,t as r,s as i}from"./vendor.ef3c1a07.js";import"./admin-docs.97d03ead.js";import"./index.43f1a1bb.js";import"./container.62d7a530.js";import"./___vite-browser-external_commonjs-proxy.1fe250a3.js";
import{h as e,e as t,b as n,W as o,t as r,s as i}from"./vendor.c903f3c9.js";import"./admin-docs.8aaa52e1.js";import"./index.684d6894.js";import"./container.1ef75020.js";import"./___vite-browser-external_commonjs-proxy.c4d229e3.js";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use

View File

@ -7,8 +7,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>OMI ADMIN</title>
<script type="module" crossorigin src="./assets/index.31b00cb8.js"></script>
<link rel="modulepreload" href="./assets/vendor.ef3c1a07.js">
<script type="module" crossorigin src="./assets/index.946abbb0.js"></script>
<link rel="modulepreload" href="./assets/vendor.c903f3c9.js">
<link rel="stylesheet" href="./assets/index.e4c38a11.css">
</head>

View File

@ -35,14 +35,14 @@
"@omiu/popover": "^0.0.12",
"@omiu/radio": "^0.0.6",
"@omiu/select": "^0.0.8",
"@omiu/slider": "^0.0.1",
"@omiu/switch": "^0.0.2",
"@omiu/table": "^0.0.14",
"@omiu/table": "^0.0.15",
"@omiu/tabs": "^0.0.19",
"@omiu/toast": "^0.0.8",
"@omiu/tooltip": "0.0.1",
"@omiu/transition": "^0.0.12",
"@omiu/tree": "^0.0.18",
"@omiu/slider": "^0.0.1",
"axios": "^0.21.1",
"bytemd": "^1.10.13",
"file-saver": "^2.0.5",

View File

@ -100,10 +100,11 @@ export default class extends WeElement<Props> {
<o-table
checkbox={true}
stripe={true}
width="200px"
width="240px"
height="250px"
stickyTop={true}
stickyLeftCount={2}
fixedTop={true}
fixedRight={true}
fixedLeftCount={2}
border={true}
compact={true}
columns={this.columns}