fix(@omiu/steps): theme color switching

This commit is contained in:
dntzhang 2021-08-10 10:30:31 +08:00
parent 41bc66b6ee
commit ff34870d70
68 changed files with 154 additions and 126 deletions

View File

@ -32,7 +32,7 @@
"omi": "latest"
},
"devDependencies": {
"@omiu/icon": "^0.0.3",
"@omiu/icon": "^0.0.4",
"@open-wc/testing": "^2.5.33",
"@types/node": "^16.4.7",
"@web/test-runner": "^0.13.13",
@ -47,4 +47,4 @@
"omiu",
"form"
]
}
}

View File

@ -100,10 +100,10 @@
},
"dependencies": {
"@omiu/common": "latest",
"@omiu/icon": "^0.0.3",
"@omiu/icon": "^0.0.4",
"@omiu/input": "^0.0.8",
"@popperjs/core": "^2.9.2",
"flatpickr": "^4.6.9",
"omi": "latest"
}
}
}

View File

@ -47,7 +47,7 @@
},
"homepage": "http://omijs.org",
"devDependencies": {
"@omiu/icon": "^0.0.3",
"@omiu/icon": "^0.0.4",
"@rollup/plugin-commonjs": "^11.1.0",
"babel-core": "^6.26.3",
"babel-preset-es2015": "^6.24.1",
@ -104,4 +104,4 @@
"@popperjs/core": "^2.9.2",
"omi": "latest"
}
}
}

View File

@ -97,7 +97,7 @@
},
"dependencies": {
"@omiu/common": "latest",
"@omiu/icon": "0.0.3",
"@omiu/icon": "0.0.4",
"omi": "latest"
}
}
}

View File

@ -1,6 +1,6 @@
{
"name": "@omiu/steps",
"version": "0.0.3",
"version": "0.0.5",
"main": "dist/index.es.js",
"exports": {
".": "./dist/index.es.js"
@ -17,7 +17,7 @@
},
"dependencies": {
"@omiu/common": "^0.0.9",
"@omiu/icon": "^0.0.3",
"@omiu/icon": "^0.0.4",
"omi": "latest"
},
"devDependencies": {
@ -35,4 +35,4 @@
"omiu",
"form"
]
}
}

View File

@ -21,13 +21,17 @@
o-icon-done {
color: #07c160;
color: var(--o-primary, #07c160);
}
o-icon-clear {
color: #fa5151;
color: var(--o-danger, #fa5151);
}
*, *::before, *::after {
*,
*::before,
*::after {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
@ -54,13 +58,16 @@ o-icon-clear {
._item-finish ._item-icon {
border-color: #07c160;
border-color: var(--o-primary, #07c160);
background-color: #fff;
}
._item-process ._item-icon {
color: white;
border-color: #07c160;
border-color: var(--o-primary, #07c160);
background-color: #07c160;
background-color: var(--o-primary, #07c160);
}
._item-wait {
@ -69,15 +76,18 @@ o-icon-clear {
._item-block ._item-icon {
border-color: #fa5151;
border-color: var(--o-danger, #fa5151);
background-color: #fff;
}
._item-block {
color: #fa5151;
color: var(--o-danger, #fa5151);
}
._item-block ._item-description {
color: #fa5151;
color: var(--o-danger, #fa5151);
}
._item-description {
@ -87,10 +97,12 @@ o-icon-clear {
._item-finish > ._item-content > ._item-title:after {
background-color: #07c160;
background-color: var(--o-primary, #07c160);
}
._item.next-error ._item-title:after {
background: #fa5151;
background: var(--o-danger, #fa5151);
}
._item-title:after {
@ -143,10 +155,12 @@ o-icon-clear {
.vertical ._item-finish ._item-tail::after {
background: #07c160;
background: var(--o-primary, #07c160);
}
.vertical .next-error ._item-tail::after {
background: #fa5151;
background: var(--o-danger, #fa5151);
}
.vertical ._item-title:after {

View File

@ -1 +1 @@
{"version":3,"sourceRoot":"","sources":["index.scss","../node_modules/@omiu/common/theme.scss"],"names":[],"mappings":"AAGA;EACE;;;AAGF;EACC;EACA;EACA;;;AAGD;EACE;;;AAGF;EACE;EACA;EACA;EACA;;;AAGF;EACE,OCzBU;;;AD4BZ;EACE,OCtBS;;;ADyBX;EACC;EACA;;;AAGD;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD;EACA;;;AAGD;EACE;EACA;EACD;EACA;;;AAGD;EACE,cC1DU;ED2DV;;;AAIF;EACE;EACA,cCjEU;EDkEV,kBClEU;;;ADsEZ;EACE;;;AAIF;EACE,cCrES;EDsET;;;AAIF;EACE,OC3ES;;;AD8EX;EACE,OC/ES;;;ADkFX;EACE;EACA;;;AAIF;EACE,kBChGU;;;ADmGZ;EACE,YC7FS;;;ADgGX;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACD;EACA;EACA;EACA;EACA;;;AAGD;EACE;;;AAGF;EACE;EACA;EACA;;;AAGF;EACC;EACA;;;AAGD;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGD;EACC,YCxJW;;;AD4JZ;EACC,YCtJU;;;ADyJX;EACC;;;AAGD;EACC;;;AAGD;EACC;EACA;EACA;EACA;EACA;EACA;;;AAGD;EACC;EACA;EACA;EACA;EACA;EACA;;;AAGD;EACC","file":"index.css"}
{"version":3,"sourceRoot":"","sources":["index.scss","../node_modules/@omiu/common/theme.scss"],"names":[],"mappings":"AAGA;EACE;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;;;AAGF;EACE,OCzBU;ED0BV;;;AAGF;EACE,OCvBS;EDwBT;;;AAGF;AAAA;AAAA;EAGE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;;;AAGF;EACE,cC9DU;ED+DV;EACA;;;AAIF;EACE;EACA,cCtEU;EDuEV;EACA,kBCxEU;EDyEV;;;AAIF;EACE;;;AAIF;EACE,cC5ES;ED6ET;EACA;;;AAIF;EACE,OCnFS;EDoFT;;;AAGF;EACE,OCxFS;EDyFT;;;AAGF;EACE;EACA;;;AAIF;EACE,kBC1GU;ED2GV;;;AAGF;EACE,YCxGS;EDyGT;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE,YCpKU;EDqKV;;;AAIF;EACE,YCnKS;EDoKT;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE","file":"index.css"}

View File

@ -6,12 +6,12 @@
}
.o-steps {
width: 100%;
display: flex;
white-space: nowrap;
width: 100%;
display: flex;
white-space: nowrap;
}
.o-steps.vertical{
.o-steps.vertical {
flex-direction: column;
}
@ -22,17 +22,21 @@
overflow: visible;
}
o-icon-done{
color: $o-primary
o-icon-done {
color: $o-primary;
color: var(--o-primary, $o-primary);
}
o-icon-clear{
color: $o-danger
o-icon-clear {
color: $o-danger;
color: var(--o-danger, $o-danger);
}
*, *::before, *::after {
-webkit-box-sizing: border-box;
box-sizing: border-box;
*,
*::before,
*::after {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
._item-icon {
@ -44,19 +48,20 @@ o-icon-clear{
border-radius: 32px;
font-size: 16px;
margin-right: 8px;
display: inline-block;
vertical-align: top;
display: inline-block;
vertical-align: top;
}
._item-content {
display: inline-block;
position: relative;
top: 5px;
vertical-align: top;
top: 5px;
vertical-align: top;
}
._item-finish ._item-icon {
border-color: $o-primary;
border-color: var(--o-primary, $o-primary);
background-color: #fff;
}
@ -64,27 +69,32 @@ o-icon-clear{
._item-process ._item-icon {
color: white;
border-color: $o-primary;
border-color: var(--o-primary, $o-primary);
background-color: $o-primary;
background-color: var(--o-primary, $o-primary);
}
._item-wait {
color:rgba(0, 0, 0, 0.45);
._item-wait {
color: rgba(0, 0, 0, 0.45);
}
._item-block ._item-icon {
border-color: $o-danger;
border-color: var(--o-danger, $o-danger);
background-color: #fff;
}
._item-block {
color:$o-danger;
._item-block {
color: $o-danger;
color: var(--o-danger, $o-danger);
}
._item-block ._item-description {
color: $o-danger;
color: var(--o-danger, $o-danger);
}
._item-description {
@ -95,10 +105,12 @@ o-icon-clear{
._item-finish>._item-content>._item-title:after {
background-color: $o-primary;
background-color: var(--o-primary, $o-primary);
}
._item.next-error ._item-title:after {
background: $o-danger;
background: var(--o-danger, $o-danger);
}
._item-title:after {
@ -115,12 +127,12 @@ o-icon-clear{
._item {
position: relative;
display: inline-block;
flex:1;
overflow: hidden;
vertical-align: top;
height: 60px;
margin-right: 16px;
white-space: nowrap;
flex: 1;
overflow: hidden;
vertical-align: top;
height: 60px;
margin-right: 16px;
white-space: nowrap;
}
._item:last-child ._item-title:after {
@ -134,56 +146,58 @@ o-icon-clear{
}
.vertical ._item {
display: block;
overflow: visible;
display: block;
overflow: visible;
}
.vertical ._item-tail::after {
display: inline-block;
background: #e8e8e8;
border-radius: 1px;
-webkit-transition: background .3s;
transition: background .3s;
content: '';
width: 1px;
height: 100%;
display: inline-block;
background: #e8e8e8;
border-radius: 1px;
-webkit-transition: background .3s;
transition: background .3s;
content: '';
width: 1px;
height: 100%;
}
.vertical ._item-finish ._item-tail::after {
background: $o-primary;
background: $o-primary;
background: var(--o-primary, $o-primary);
}
.vertical .next-error ._item-tail::after {
background: $o-danger;
background: $o-danger;
background: var(--o-danger, $o-danger);
}
.vertical ._item-title:after{
display: none;
.vertical ._item-title:after {
display: none;
}
.vertical>._item:not(:last-child)>._item-tail {
display: block;
display: block;
}
.vertical>._item>._item-tail {
position: absolute;
top: 0px;
left: 16px;
width: 1px;
height: 100%;
padding: 38px 0 6px;
position: absolute;
top: 0px;
left: 16px;
width: 1px;
height: 100%;
padding: 38px 0 6px;
}
._item-tail {
position: absolute;
top: 12px;
left: 0;
width: 100%;
padding: 0 10px;
display: none;
position: absolute;
top: 12px;
left: 0;
width: 100%;
padding: 0 10px;
display: none;
}
.vertical>_item:not(:last-child)>._item-tail {
display: block;
}
display: block;
}

View File

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

View File

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
import{j as require$$0,k as commonjsGlobal}from"./vendor.e2d9dc7f.js";var addIcCallRounded={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/add-ic-call-rounded.js")}({"./esm/add-ic-call-rounded.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 d: "M14 8h2v2c0 .55.45 1 1 1s1-.45 1-1V8h2c.55 0 1-.45 1-1s-.45-1-1-1h-2V4c0-.55-.45-1-1-1s-1 .45-1 1v2h-2c-.55 0-1 .45-1 1s.45 1 1 1zm5.21 7.27l-2.54-.29c-.61-.07-1.21.14-1.64.57l-1.84 1.84c-2.83-1.44-5.15-3.75-6.59-6.59l1.85-1.85c.43-.43.64-1.04.57-1.64l-.29-2.52c-.11-1.01-.97-1.78-1.98-1.78H5.02c-1.13 0-2.07.94-2 2.07.53 8.54 7.36 15.36 15.89 15.89 1.13.07 2.07-.87 2.07-2v-1.73c.01-1-.76-1.86-1.77-1.97z"\n}), \'AddIcCallRounded\');\n\n\n//# sourceURL=webpack://%5Bname%5D/./esm/add-ic-call-rounded.js?')},"./esm/utils/createSvgIcon.js":function(module,exports,__webpack_require__){eval("\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\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 var _a;\n omi_1.define(hyphenate('OIcon' + displayName), (_a = /** @class */ (function (_super) {\n __extends(class_1, _super);\n function class_1() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n class_1.prototype.render = function () {\n return omi_1.h('svg', {\n viewBox: '0 0 24 24',\n }, path);\n };\n return class_1;\n }(omi_1.WeElement)),\n _a.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 _a));\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)})(addIcCallRounded);

View File

@ -1 +0,0 @@
import{j as require$$0,k as commonjsGlobal}from"./vendor.828dfc25.js";var addIcCallRounded={exports:{}};(function(module,exports){var factory;factory=function(__WEBPACK_EXTERNAL_MODULE_omi__){return function(e){var n={};function r(t){if(n[t])return n[t].exports;var o=n[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=n,r.d=function(e,n,t){r.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,n){if(1&n&&(e=r(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(r.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)r.d(t,o,function(n){return e[n]}.bind(null,o));return t},r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,"a",n),n},r.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r.p="",r(r.s="./esm/add-ic-call-rounded.js")}({"./esm/add-ic-call-rounded.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 d: "M14 8h2v2c0 .55.45 1 1 1s1-.45 1-1V8h2c.55 0 1-.45 1-1s-.45-1-1-1h-2V4c0-.55-.45-1-1-1s-1 .45-1 1v2h-2c-.55 0-1 .45-1 1s.45 1 1 1zm5.21 7.27l-2.54-.29c-.61-.07-1.21.14-1.64.57l-1.84 1.84c-2.83-1.44-5.15-3.75-6.59-6.59l1.85-1.85c.43-.43.64-1.04.57-1.64l-.29-2.52c-.11-1.01-.97-1.78-1.98-1.78H5.02c-1.13 0-2.07.94-2 2.07.53 8.54 7.36 15.36 15.89 15.89 1.13.07 2.07-.87 2.07-2v-1.73c.01-1-.76-1.86-1.77-1.97z"\n}), \'AddIcCallRounded\');\n\n\n//# sourceURL=webpack://%5Bname%5D/./esm/add-ic-call-rounded.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)})(addIcCallRounded);

View File

@ -1 +1 @@
import{W as l,t as e,h as a,s,b as i}from"./vendor.828dfc25.js";import"./index.esm.710b1baf.js";import"./index.es.07420fb2.js";var t=Object.defineProperty,d=Object.getOwnPropertyDescriptor;let c=class extends l{constructor(){super(...arguments),this.items=[{label:"广东省-深圳市",value:1},{label:"江西省-抚州市",value:2},{label:"河北省-石家庄",value:3}],this.fruits=[{label:"苹果🍎",value:1},{label:"草莓🍓",value:2},{label:"葡萄🍇",value:3},{label:"香蕉🍌",value:4},{label:"梨子🍐",value:5},{label:"橘子🍊",value:6}]}render(){const l=e`leading-8 mb-0`,s=e`w-16 float-left align-middle`;return a("o-form",{initialValues:{name:"",email:""},validate:l=>{const e={};return l.name||(e.name="Required"),l.email?/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i.test(l.email)||(e.email="Invalid email address"):e.email="Required",e}},(({values:i,errors:t,touched:d,onChange:c,onSubmit:r,onBlur:o})=>a("div",{style:{maxWidth:"660px"},class:e`text-sm px-10 py-10 text-gray-500 w-full`},a("div",{class:l},a("label",{class:s},"用户姓名"),a("div",{class:e`leading-8 ml-16`},a("o-input",{size:"small",onChange:c,onBlur:o,placeholder:"我是带校验的",value:i.name,name:"name",block:!0}),a("div",{class:e`text-red-500 h-6 text-sm`},t.name&&d.name&&t.name))),a("div",{class:l},a("label",{class:s},"Email"),a("div",{class:e`leading-8 ml-16`},a("o-input",{name:"email",value:i.email,onChange:c,placeholder:"我是带校验的",onBlur:o,size:"small",block:!0}),a("div",{class:e`text-red-500 h-6 text-sm`},t.email&&d.email&&t.email))),a("div",{class:l},a("label",{class:s},"出生地址"),a("div",{class:e`leading-8 ml-16`},a("o-select",{size:"small",placeholder:"选择一个出生地",items:this.items,block:!0}),a("div",{class:e`text-red-500 h-6 text-sm`},t.address))),a("div",{class:l},a("label",{class:s},"喜爱水果"),a("div",{class:e`leading-8 ml-16`},a("o-select",{block:!0,size:"small",multiple:!0,placeholder:"选择多个水果",items:this.fruits}),a("div",{class:e`text-red-500 h-6 text-sm`},t.address))),a("div",{class:l},a("label",{class:s},"出生日期"),a("div",{class:e`leading-8 ml-16`},a("o-date-picker",{size:"small",locale:this.store.locale}),a("div",{class:e`text-red-500 h-6 text-sm`},t.address))),a("div",{class:l},a("label",{class:s},"大学时光"),a("div",{class:e`leading-8 ml-16`},a("o-date-picker",{width:"256px",mode:"range",size:"small",locale:this.store.locale}," "),a("div",{class:e`text-red-500 h-6 text-sm`},t.address))),a("div",{class:l},a("label",{class:s},"是否结婚"),a("div",{class:e`leading-8 ml-16 pt-1`},a("o-switch",{id:"switchA",checked:"0"}),a("div",{class:e`text-red-500 h-6 text-sm`},t.address))),a("div",{class:l},a("label",{class:s},"喜爱水果"),a("div",{class:e`leading-8 ml-16`},a("o-checkbox",{class:e`pr-4`,label:"苹果🍎"}," "),a("o-checkbox",{class:e`pr-4`,label:"草莓🍓"}," "),a("o-checkbox",{class:e`pr-4`,label:"葡萄🍇"}," "),a("o-checkbox",{class:e`pr-4`,label:"香蕉🍌"}," "),a("o-checkbox",{class:e`pr-4`,label:"梨子🍐"}," "),a("o-checkbox",{class:e`pr-4`,label:"橘子🍊"}," "),a("div",{class:e`text-red-500 h-6 text-sm`},t.address))),a("div",{class:l},a("label",{class:s},"级联选择"),a("div",{class:e`leading-8 ml-16`},a("o-cascader",{size:"small",options:[{value:"components",label:"组件",children:[{value:"basic",label:"基础",children:[{value:"input",label:"输入框"},{value:"button",label:"按钮"},{value:"card",label:"卡片"}]},{value:"form",label:"表单",children:[{value:"select",label:"选择器"}]},{value:"advanced",label:"高级",children:[{value:"tree",label:"树"},{value:"cascader",label:"级联选择器"}]}]},{value:"author",label:"作者",children:[{value:"dntzhang",label:"当耐特"},{value:"YunYouJun",label:"云游君"}]}]}," "),a("div",{class:e`text-red-500 h-6 text-sm`},t.address))),a("div",{class:l},a("label",{class:s},"用户性别"),a("div",{class:e`leading-8 ml-16`},a("o-radio",{name:"sex",checked:!0,value:"0"},"男"),a("o-radio",{name:"sex",value:"1",class:e`ml-2`},"女"),a("div",{class:e`text-red-500 h-6 text-sm`},t.address))),a("div",{class:l},a("label",{class:s},"个性签名"),a("div",{class:e`leading-8 ml-16`},a("o-input",{type:"textarea",block:!0}),a("div",{class:e`text-red-500 h-6 text-sm`},t.address))),a("div",{class:l},a("label",{class:s}),a("div",{class:e`leading-8 ml-16`},a("o-button",{size:"small",type:"primary",onclick:r},"创建"),a("o-button",{size:"small",class:e`ml-6`},"重置"))))))}};c.css=s.target,c=((l,e,a,s)=>{for(var i,c=s>1?void 0:s?d(e,a):e,r=l.length-1;r>=0;r--)(i=l[r])&&(c=(s?i(e,a,c):i(c))||c);return s&&c&&t(e,a,c),c})([i("admin-form")],c);export{c as default};
import{W as l,t as e,h as a,s,b as i}from"./vendor.e2d9dc7f.js";import"./index.esm.92cb8bbc.js";import"./index.es.e1a097ea.js";var t=Object.defineProperty,d=Object.getOwnPropertyDescriptor;let c=class extends l{constructor(){super(...arguments),this.items=[{label:"广东省-深圳市",value:1},{label:"江西省-抚州市",value:2},{label:"河北省-石家庄",value:3}],this.fruits=[{label:"苹果🍎",value:1},{label:"草莓🍓",value:2},{label:"葡萄🍇",value:3},{label:"香蕉🍌",value:4},{label:"梨子🍐",value:5},{label:"橘子🍊",value:6}]}render(){const l=e`leading-8 mb-0`,s=e`w-16 float-left align-middle`;return a("o-form",{initialValues:{name:"",email:""},validate:l=>{const e={};return l.name||(e.name="Required"),l.email?/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i.test(l.email)||(e.email="Invalid email address"):e.email="Required",e}},(({values:i,errors:t,touched:d,onChange:c,onSubmit:r,onBlur:o})=>a("div",{style:{maxWidth:"660px"},class:e`text-sm px-10 py-10 text-gray-500 w-full`},a("div",{class:l},a("label",{class:s},"用户姓名"),a("div",{class:e`leading-8 ml-16`},a("o-input",{size:"small",onChange:c,onBlur:o,placeholder:"我是带校验的",value:i.name,name:"name",block:!0}),a("div",{class:e`text-red-500 h-6 text-sm`},t.name&&d.name&&t.name))),a("div",{class:l},a("label",{class:s},"Email"),a("div",{class:e`leading-8 ml-16`},a("o-input",{name:"email",value:i.email,onChange:c,placeholder:"我是带校验的",onBlur:o,size:"small",block:!0}),a("div",{class:e`text-red-500 h-6 text-sm`},t.email&&d.email&&t.email))),a("div",{class:l},a("label",{class:s},"出生地址"),a("div",{class:e`leading-8 ml-16`},a("o-select",{size:"small",placeholder:"选择一个出生地",items:this.items,block:!0}),a("div",{class:e`text-red-500 h-6 text-sm`},t.address))),a("div",{class:l},a("label",{class:s},"喜爱水果"),a("div",{class:e`leading-8 ml-16`},a("o-select",{block:!0,size:"small",multiple:!0,placeholder:"选择多个水果",items:this.fruits}),a("div",{class:e`text-red-500 h-6 text-sm`},t.address))),a("div",{class:l},a("label",{class:s},"出生日期"),a("div",{class:e`leading-8 ml-16`},a("o-date-picker",{size:"small",locale:this.store.locale}),a("div",{class:e`text-red-500 h-6 text-sm`},t.address))),a("div",{class:l},a("label",{class:s},"大学时光"),a("div",{class:e`leading-8 ml-16`},a("o-date-picker",{width:"256px",mode:"range",size:"small",locale:this.store.locale}," "),a("div",{class:e`text-red-500 h-6 text-sm`},t.address))),a("div",{class:l},a("label",{class:s},"是否结婚"),a("div",{class:e`leading-8 ml-16 pt-1`},a("o-switch",{id:"switchA",checked:"0"}),a("div",{class:e`text-red-500 h-6 text-sm`},t.address))),a("div",{class:l},a("label",{class:s},"喜爱水果"),a("div",{class:e`leading-8 ml-16`},a("o-checkbox",{class:e`pr-4`,label:"苹果🍎"}," "),a("o-checkbox",{class:e`pr-4`,label:"草莓🍓"}," "),a("o-checkbox",{class:e`pr-4`,label:"葡萄🍇"}," "),a("o-checkbox",{class:e`pr-4`,label:"香蕉🍌"}," "),a("o-checkbox",{class:e`pr-4`,label:"梨子🍐"}," "),a("o-checkbox",{class:e`pr-4`,label:"橘子🍊"}," "),a("div",{class:e`text-red-500 h-6 text-sm`},t.address))),a("div",{class:l},a("label",{class:s},"级联选择"),a("div",{class:e`leading-8 ml-16`},a("o-cascader",{size:"small",options:[{value:"components",label:"组件",children:[{value:"basic",label:"基础",children:[{value:"input",label:"输入框"},{value:"button",label:"按钮"},{value:"card",label:"卡片"}]},{value:"form",label:"表单",children:[{value:"select",label:"选择器"}]},{value:"advanced",label:"高级",children:[{value:"tree",label:"树"},{value:"cascader",label:"级联选择器"}]}]},{value:"author",label:"作者",children:[{value:"dntzhang",label:"当耐特"},{value:"YunYouJun",label:"云游君"}]}]}," "),a("div",{class:e`text-red-500 h-6 text-sm`},t.address))),a("div",{class:l},a("label",{class:s},"用户性别"),a("div",{class:e`leading-8 ml-16`},a("o-radio",{name:"sex",checked:!0,value:"0"},"男"),a("o-radio",{name:"sex",value:"1",class:e`ml-2`},"女"),a("div",{class:e`text-red-500 h-6 text-sm`},t.address))),a("div",{class:l},a("label",{class:s},"个性签名"),a("div",{class:e`leading-8 ml-16`},a("o-input",{type:"textarea",block:!0}),a("div",{class:e`text-red-500 h-6 text-sm`},t.address))),a("div",{class:l},a("label",{class:s}),a("div",{class:e`leading-8 ml-16`},a("o-button",{size:"small",type:"primary",onclick:r},"创建"),a("o-button",{size:"small",class:e`ml-6`},"重置"))))))}};c.css=s.target,c=((l,e,a,s)=>{for(var i,c=s>1?void 0:s?d(e,a):e,r=l.length-1;r>=0;r--)(i=l[r])&&(c=(s?i(e,a,c):i(c))||c);return s&&c&&t(e,a,c),c})([i("admin-form")],c);export{c as default};

View File

@ -1 +1 @@
import{W as e,h as t,t as r,s as n,b as i}from"./vendor.828dfc25.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.e2d9dc7f.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,d=e.length-1;d>=0;d--)(i=e[d])&&(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 +0,0 @@
import{v as getDefaultExportFromCjs,j as require$$0,k as commonjsGlobal}from"./vendor.828dfc25.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

@ -0,0 +1 @@
import{v as getDefaultExportFromCjs,j as require$$0,k as commonjsGlobal}from"./vendor.e2d9dc7f.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 __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\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 var _a;\n omi_1.define(hyphenate('OIcon' + displayName), (_a = /** @class */ (function (_super) {\n __extends(class_1, _super);\n function class_1() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n class_1.prototype.render = function () {\n return omi_1.h('svg', {\n viewBox: '0 0 24 24',\n }, path);\n };\n return class_1;\n }(omi_1.WeElement)),\n _a.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 _a));\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.828dfc25.js";import"./index.esm.e6fb270c.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};
import{W as e,h as t,t as s,s as a,b as c}from"./vendor.e2d9dc7f.js";import"./index.esm.8e6cad1c.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.828dfc25.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.e2d9dc7f.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};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{W as e,h as n,b as t}from"./vendor.828dfc25.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,d=e.length-1;d>=0;d--)(i=e[d])&&(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.e2d9dc7f.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,d=e.length-1;d>=0;d--)(i=e[d])&&(l=(r?i(n,t,l):i(l))||l);return r&&l&&s(n,t,l),l})([t("code-demo-container")],r);

View File

@ -0,0 +1 @@
import{j as require$$0,k as commonjsGlobal}from"./vendor.e2d9dc7f.js";var deleteOutline={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/delete-outline.js")}({"./esm/delete-outline.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 d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5l-1-1h-5l-1 1H5v2h14V4z"\n}), \'DeleteOutline\');\n\n\n//# sourceURL=webpack://%5Bname%5D/./esm/delete-outline.js?')},"./esm/utils/createSvgIcon.js":function(module,exports,__webpack_require__){eval("\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\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 var _a;\n omi_1.define(hyphenate('OIcon' + displayName), (_a = /** @class */ (function (_super) {\n __extends(class_1, _super);\n function class_1() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n class_1.prototype.render = function () {\n return omi_1.h('svg', {\n viewBox: '0 0 24 24',\n }, path);\n };\n return class_1;\n }(omi_1.WeElement)),\n _a.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 _a));\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)})(deleteOutline);

View File

@ -1 +0,0 @@
import{j as require$$0,k as commonjsGlobal}from"./vendor.828dfc25.js";var deleteOutline={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/delete-outline.js")}({"./esm/delete-outline.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 d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5l-1-1h-5l-1 1H5v2h14V4z"\n}), \'DeleteOutline\');\n\n\n//# sourceURL=webpack://%5Bname%5D/./esm/delete-outline.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)})(deleteOutline);

View File

@ -1 +0,0 @@
import{v as getDefaultExportFromCjs,j as require$$0,k as commonjsGlobal}from"./vendor.828dfc25.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

@ -0,0 +1 @@
import{v as getDefaultExportFromCjs,j as require$$0,k as commonjsGlobal}from"./vendor.e2d9dc7f.js";var emojiPeople$2={exports:{}};(function(module,exports){var factory;factory=function(__WEBPACK_EXTERNAL_MODULE_omi__){return function(e){var n={};function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}return t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:o})},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 o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)t.d(o,r,function(n){return e[n]}.bind(null,r));return o},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/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 __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\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 var _a;\n omi_1.define(hyphenate('OIcon' + displayName), (_a = /** @class */ (function (_super) {\n __extends(class_1, _super);\n function class_1() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n class_1.prototype.render = function () {\n return omi_1.h('svg', {\n viewBox: '0 0 24 24',\n }, path);\n };\n return class_1;\n }(omi_1.WeElement)),\n _a.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 _a));\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};

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{s as e,W as r,h as d,t as s,b as o}from"./vendor.828dfc25.js";import"./admin-docs.01c27951.js";var t=Object.defineProperty,n=Object.getOwnPropertyDescriptor;let l=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})))}};l.css=[e.target],l=((e,r,d,s)=>{for(var o,l=s>1?void 0:s?n(r,d):r,i=e.length-1;i>=0;i--)(o=e[i])&&(l=(s?o(r,d,l):o(l))||l);return s&&l&&t(r,d,l),l})([o("code-demo")],l);
import{s as e,W as r,h as d,t as s,b as o}from"./vendor.e2d9dc7f.js";import"./admin-docs.f2f677f9.js";var t=Object.defineProperty,n=Object.getOwnPropertyDescriptor;let l=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})))}};l.css=[e.target],l=((e,r,d,s)=>{for(var o,l=s>1?void 0:s?n(r,d):r,i=e.length-1;i>=0;i--)(o=e[i])&&(l=(s?o(r,d,l):o(l))||l);return s&&l&&t(r,d,l),l})([o("code-demo")],l);

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,g as a,b as c,W as l,m as s,i as p}from"./vendor.828dfc25.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,g as a,b as c,W as l,m as s,i as p}from"./vendor.e2d9dc7f.js";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

View File

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

View File

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

View File

@ -1,4 +1,4 @@
import{h as n,g as o,b as e,W as t}from"./vendor.828dfc25.js";
import{h as n,g as o,b as e,W as t}from"./vendor.e2d9dc7f.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,g as a,b as s,W as l}from"./vendor.828dfc25.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,g as a,b as s,W as l}from"./vendor.e2d9dc7f.js";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use

View File

@ -0,0 +1 @@
import{_ as e}from"./index.59bed417.js";import{W as t,h as a,t as i,s as n,b as s}from"./vendor.e2d9dc7f.js";import"./index.esm.8e6cad1c.js";import"./index.esm.51ecdf0a.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.d693b431.js")),["assets/export-excel.d693b431.js","assets/vendor.e2d9dc7f.js","assets/___vite-browser-external_commonjs-proxy.1d14105e.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 +0,0 @@
import{_ as e}from"./index.adb6a9d3.js";import{W as t,h as a,t as i,s as n,b as s}from"./vendor.828dfc25.js";import"./index.esm.e6fb270c.js";import"./index.esm.77ad88d5.js";var d=Object.defineProperty,r=Object.getOwnPropertyDescriptor;let c=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.8cc09cca.js")),["assets/export-excel.8cc09cca.js","assets/vendor.828dfc25.js","assets/___vite-browser-external_commonjs-proxy.bc1db72b.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}))))}};c.css=n.target,c=((e,t,a,i)=>{for(var n,s=i>1?void 0:i?r(t,a):t,c=e.length-1;c>=0;c--)(n=e[c])&&(s=(i?n(t,a,s):n(s))||s);return i&&s&&d(t,a,s),s})([s("inline-editing")],c);export{c 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.828dfc25.js";import"./admin-docs.01c27951.js";import"./index.53b29f66.js";import"./container.772bd2d8.js";import"./___vite-browser-external_commonjs-proxy.bc1db72b.js";
import{h as o,b as e,W as n,t as i,s as r}from"./vendor.e2d9dc7f.js";import"./admin-docs.f2f677f9.js";import"./index.8991df29.js";import"./container.be433bce.js";import"./___vite-browser-external_commonjs-proxy.1d14105e.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{k as t,W as e,t as a,h as o,s as i,b as c}from"./vendor.828dfc25.js";import"./add-comment-rounded.900aa319.js";import"./add-ic-call-rounded.14893c81.js";import{e as d,M as s}from"./masonry.99eaa367.js";var r,n,l,u={exports:{}};
import{k as t,W as e,t as a,h as o,s as i,b as c}from"./vendor.e2d9dc7f.js";import"./add-comment-rounded.2759e065.js";import"./add-ic-call-rounded.06fac03d.js";import{e as d,M as s}from"./masonry.ef01b82f.js";var r,n,l,u={exports:{}};
/*!
* imagesLoaded v4.1.4
* JavaScript is all like "You images are done yet or what?"

View File

@ -1,4 +1,4 @@
import{k as t}from"./vendor.828dfc25.js";var i,e,n,o={exports:{}},s={exports:{}},r={exports:{}};i=r,e="undefined"!=typeof window?window:t,n=function(){function t(){}var i=t.prototype;return i.on=function(t,i){if(t&&i){var e=this._events=this._events||{},n=e[t]=e[t]||[];return-1==n.indexOf(i)&&n.push(i),this}},i.once=function(t,i){if(t&&i){this.on(t,i);var e=this._onceEvents=this._onceEvents||{};return(e[t]=e[t]||{})[i]=!0,this}},i.off=function(t,i){var e=this._events&&this._events[t];if(e&&e.length){var n=e.indexOf(i);return-1!=n&&e.splice(n,1),this}},i.emitEvent=function(t,i){var e=this._events&&this._events[t];if(e&&e.length){e=e.slice(0),i=i||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o<e.length;o++){var s=e[o];n&&n[s]&&(this.off(t,s),delete n[s]),s.apply(this,i)}return this}},i.allOff=function(){delete this._events,delete this._onceEvents},t},i.exports?i.exports=n():e.EvEmitter=n();var a={exports:{}};
import{k as t}from"./vendor.e2d9dc7f.js";var i,e,n,o={exports:{}},s={exports:{}},r={exports:{}};i=r,e="undefined"!=typeof window?window:t,n=function(){function t(){}var i=t.prototype;return i.on=function(t,i){if(t&&i){var e=this._events=this._events||{},n=e[t]=e[t]||[];return-1==n.indexOf(i)&&n.push(i),this}},i.once=function(t,i){if(t&&i){this.on(t,i);var e=this._onceEvents=this._onceEvents||{};return(e[t]=e[t]||{})[i]=!0,this}},i.off=function(t,i){var e=this._events&&this._events[t];if(e&&e.length){var n=e.indexOf(i);return-1!=n&&e.splice(n,1),this}},i.emitEvent=function(t,i){var e=this._events&&this._events[t];if(e&&e.length){e=e.slice(0),i=i||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o<e.length;o++){var s=e[o];n&&n[s]&&(this.off(t,s),delete n[s]),s.apply(this,i)}return this}},i.allOff=function(){delete this._events,delete this._onceEvents},t},i.exports?i.exports=n():e.EvEmitter=n();var a={exports:{}};
/*!
* getSize v2.0.3
* measure size of elements

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{W as e,h as r,t,s,b as i}from"./vendor.828dfc25.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};
import{W as e,h as r,t,s,b as i}from"./vendor.e2d9dc7f.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.828dfc25.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.e2d9dc7f.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};

View File

@ -0,0 +1 @@
import{W as e,h as t,t as s,s as r,b as a}from"./vendor.e2d9dc7f.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

@ -1 +0,0 @@
import{W as t,h as e,t as s,s as r,b as a}from"./vendor.828dfc25.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};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{W as e,h as t,t as a,s as i,b as n}from"./vendor.828dfc25.js";import"./index.esm.e6fb270c.js";import"./index.esm.77ad88d5.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.e2d9dc7f.js";import"./index.esm.8e6cad1c.js";import"./index.esm.51ecdf0a.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.828dfc25.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.e2d9dc7f.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};

View File

@ -1,4 +1,4 @@
import{o as omi,h,b as tag,W as WeElement,t as tw,s as sheet}from"./vendor.828dfc25.js";import"./admin-docs.01c27951.js";import"./index.53b29f66.js";import{M as Masonry}from"./masonry.99eaa367.js";import"./___vite-browser-external_commonjs-proxy.bc1db72b.js";
import{o as omi,h,b as tag,W as WeElement,t as tw,s as sheet}from"./vendor.e2d9dc7f.js";import"./admin-docs.f2f677f9.js";import"./index.8991df29.js";import{M as Masonry}from"./masonry.ef01b82f.js";import"./___vite-browser-external_commonjs-proxy.1d14105e.js";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

View File

@ -1 +1 @@
import{W as e,h as t,t as s,s as r,b as a}from"./vendor.828dfc25.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.e2d9dc7f.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{g as e,h as n,b as o,W as r,t as i,s as t}from"./vendor.828dfc25.js";import"./index.esm.710b1baf.js";import"./admin-docs.01c27951.js";import"./index.53b29f66.js";import"./container.772bd2d8.js";import"./___vite-browser-external_commonjs-proxy.bc1db72b.js";
import{g as e,h as n,b as o,W as r,t as i,s as t}from"./vendor.e2d9dc7f.js";import"./index.esm.92cb8bbc.js";import"./admin-docs.f2f677f9.js";import"./index.8991df29.js";import"./container.be433bce.js";import"./___vite-browser-external_commonjs-proxy.1d14105e.js";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

View File

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

View File

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

View File

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{W as e,t as n,h as o,n as s,p as i,q as t,u as d,d as c,e as a,s as r,b as m}from"./vendor.828dfc25.js";import"./admin-docs.01c27951.js";import"./index.53b29f66.js";import"./container.772bd2d8.js";import"./___vite-browser-external_commonjs-proxy.bc1db72b.js";var l=Object.defineProperty,u=Object.getOwnPropertyDescriptor;let p=class extends e{installed(){}render(){return n`px-2 w-full md:w-6/12`,o("code-demo-container",null,o("code-demo",{class:n``,title:"基本",describe:"最简单的 Loading",code:"```js\n//显示 Loading\nshowLoading('加载中')\n\nsetTimeout(() => {\n //隐藏 Loading\n hideLoading()\n}, 2000)\n```\n"},o("div",{slot:"demo",class:n`px-5 py-5`},o("o-button",{size:"mini",onclick:e=>{c(),setTimeout((()=>{a()}),2e3)}},"显示 Loading 提示"))),o("code-demo",{title:"不同尺寸",describe:"支持传入 size 控制大小",code:"```js\n//显示 Success\nshowSuccess('支持成功')\n\nsetTimeout(() => {\n //隐藏 Success\n hideSuccess()\n}, 2000)\n```\n"},o("div",{slot:"demo",class:n`px-5 py-5`},o("o-button",{size:"mini",onclick:e=>{t("支付成功"),setTimeout((()=>{d()}),2e3)}},"显示 Success 提示"))),o("code-demo",{title:"不同颜色",describe:"支持传入 color 控制颜色",code:"```js\n//显示 Loading\nshowWarning('加载中')\n\nsetTimeout(() => {\n //隐藏 Loading\n hideWarning()\n}, 2000)\n```\n"},o("div",{slot:"demo",class:n`px-5 py-5`},o("o-button",{size:"mini",onclick:e=>{s("支付失败"),setTimeout((()=>{i()}),2e3)}},"显示 Warning 提示"))))}};p.css=r.target,p=((e,n,o,s)=>{for(var i,t=s>1?void 0:s?u(n,o):n,d=e.length-1;d>=0;d--)(i=e[d])&&(t=(s?i(n,o,t):i(t))||t);return s&&t&&l(n,o,t),t})([m("toast-component")],p);export{p as default};
import{W as e,t as n,h as o,n as s,p as i,q as t,u as d,d as c,e as a,s as r,b as m}from"./vendor.e2d9dc7f.js";import"./admin-docs.f2f677f9.js";import"./index.8991df29.js";import"./container.be433bce.js";import"./___vite-browser-external_commonjs-proxy.1d14105e.js";var l=Object.defineProperty,u=Object.getOwnPropertyDescriptor;let p=class extends e{installed(){}render(){return n`px-2 w-full md:w-6/12`,o("code-demo-container",null,o("code-demo",{class:n``,title:"基本",describe:"最简单的 Loading",code:"```js\n//显示 Loading\nshowLoading('加载中')\n\nsetTimeout(() => {\n //隐藏 Loading\n hideLoading()\n}, 2000)\n```\n"},o("div",{slot:"demo",class:n`px-5 py-5`},o("o-button",{size:"mini",onclick:e=>{c(),setTimeout((()=>{a()}),2e3)}},"显示 Loading 提示"))),o("code-demo",{title:"不同尺寸",describe:"支持传入 size 控制大小",code:"```js\n//显示 Success\nshowSuccess('支持成功')\n\nsetTimeout(() => {\n //隐藏 Success\n hideSuccess()\n}, 2000)\n```\n"},o("div",{slot:"demo",class:n`px-5 py-5`},o("o-button",{size:"mini",onclick:e=>{t("支付成功"),setTimeout((()=>{d()}),2e3)}},"显示 Success 提示"))),o("code-demo",{title:"不同颜色",describe:"支持传入 color 控制颜色",code:"```js\n//显示 Loading\nshowWarning('加载中')\n\nsetTimeout(() => {\n //隐藏 Loading\n hideWarning()\n}, 2000)\n```\n"},o("div",{slot:"demo",class:n`px-5 py-5`},o("o-button",{size:"mini",onclick:e=>{s("支付失败"),setTimeout((()=>{i()}),2e3)}},"显示 Warning 提示"))))}};p.css=r.target,p=((e,n,o,s)=>{for(var i,t=s>1?void 0:s?u(n,o):n,d=e.length-1;d>=0;d--)(i=e[d])&&(t=(s?i(n,o,t):i(t))||t);return s&&t&&l(n,o,t),t})([m("toast-component")],p);export{p as default};

File diff suppressed because one or more lines are too long

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.adb6a9d3.js"></script>
<link rel="modulepreload" href="./assets/vendor.828dfc25.js">
<script type="module" crossorigin src="./assets/index.59bed417.js"></script>
<link rel="modulepreload" href="./assets/vendor.e2d9dc7f.js">
<link rel="stylesheet" href="./assets/index.e4c38a11.css">
</head>

View File

@ -40,7 +40,7 @@
"@omiu/radio": "^0.0.6",
"@omiu/select": "^0.0.13",
"@omiu/slider": "^0.0.7",
"@omiu/steps": "^0.0.3",
"@omiu/steps": "^0.0.5",
"@omiu/switch": "^0.0.2",
"@omiu/table": "^0.0.15",
"@omiu/tabs": "^0.0.22",
@ -57,7 +57,7 @@
"markdown-it-anchor": "^8.1.0",
"masonry-layout": "^4.2.2",
"mockjs": "^1.1.0",
"omi": "^6.22.1",
"omi": "^6.22.2",
"omi-router": "^3.0.1",
"omi-twind": "^0.0.1",
"prismjs": "^1.24.0",
@ -65,4 +65,4 @@
"xlsx": "^0.17.0",
"yup": "^0.32.9"
}
}
}