feat(admin): beautify
This commit is contained in:
parent
9d49544307
commit
d91169a372
|
@ -1 +0,0 @@
|
|||
import{l as e}from"./vendor.c4d80dea.js";var o=e(Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:{}}));export{o as r};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
import{j as require$$0,k as commonjsGlobal}from"./vendor.c4d80dea.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);
|
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
.container{padding:0 10px;box-sizing:border-box}.container .comment{display:flex;flex-direction:column;padding:10px;border-bottom:1px solid #f2f6fc}.container .comment .info{display:flex;align-items:center}.container .comment .info .avatar{border-radius:50%;border:1px solid #dcdada}.container .comment .info .right{display:flex;flex-direction:column;margin-left:10px}.container .comment .info .right .name{font-size:16px;color:#303133;margin-bottom:5px;font-weight:500}.container .comment .info .right .date{font-size:12px;color:#909399}.container .comment .content{font-size:14px;color:#303133;line-height:20px;padding:10px 0;white-space:pre-wrap}.container .comment .control{display:flex;align-items:center;font-size:14px;color:#909399}.container .comment .control .like{display:flex;align-items:center;margin-right:20px;cursor:pointer}.container .comment .control .like.active,.container .comment .control .like:hover{color:#07c160}.container .comment .control .like .iconfont{font-size:14px;margin-right:5px}.container .comment .control .comment-reply{display:inline-block;align-items:center;cursor:pointer}.container .comment .control .comment-reply:hover{color:#333}.container .comment .control .comment-reply .iconfont{font-size:16px;margin-right:5px}.container .comment .reply{margin:10px 0;border-left:2px solid #dcdfe6}.container .comment .reply .item{margin:0 10px;padding:10px 0;border-bottom:1px dashed #ebeef5}.container .comment .reply .item .reply-content{display:flex;align-items:center;font-size:14px;color:#303133}.container .comment .reply .item .reply-content .from-name{color:#07c160;white-space:nowrap;word-break:keep-all}.container .comment .reply .item .reply-content .to-name{color:#07c160;margin-left:5px;margin-right:5px;white-space:nowrap;word-break:keep-all}.container .comment .reply .item .reply-bottom{display:flex;align-items:center;margin-top:6px;font-size:12px;color:#909399}.container .comment .reply .item .reply-bottom .reply-text{display:inline-block;align-items:center;margin-left:10px;cursor:pointer}.container .comment .reply .item .reply-bottom .reply-text:hover{color:#333}.container .comment .reply .item .reply-bottom .reply-text .icon-comment{margin-right:5px}.container .comment .reply .write-reply{display:inline-block;align-items:center;font-size:14px;color:#909399;padding:10px;cursor:pointer}.container .comment .reply .write-reply:hover{color:#303133}.container .comment .reply .write-reply .el-icon-edit{margin-right:5px}.container .comment .reply .fade-enter-active,.container .comment .reply .fade-leave-active{transition:opacity .5s}.container .comment .reply .fade-enter,.container .comment .reply .fade-leave-to{opacity:0}.container .comment .reply .input-wrapper{padding:10px}.btn-control{display:flex;justify-content:flex-end;align-items:center;padding-top:10px}.btn-control .cancel{font-size:16px;color:#606266;margin-right:20px;cursor:pointer}.btn-control .cancel:hover{color:#333}.btn-control .confirm{font-size:16px}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
import{W as l,t as e,h as a,s,b as i}from"./vendor.c4d80dea.js";import"./index.esm.c1ea4fdc.js";import"./index.es.f06c8437.js";import"./index.1cbd7be6.js";var d=Object.defineProperty,t=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:d,touched:t,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`},d.name&&t.name&&d.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`},d.email&&t.email&&d.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`},d.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`},d.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`},d.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`},d.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`},d.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`},d.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`},d.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`},d.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`},d.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?t(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&&d(e,a,c),c})([i("admin-form")],c);export{c as default};
|
|
@ -1 +0,0 @@
|
|||
import{W as e,h as t,t as r,s as n,b as i}from"./vendor.c4d80dea.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};
|
|
@ -1 +0,0 @@
|
|||
import{v as getDefaultExportFromCjs,j as require$$0,k as commonjsGlobal}from"./vendor.c4d80dea.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};
|
|
@ -1 +0,0 @@
|
|||
const o={ManagerWorkbench:"管理者工作台",Welcome:"欢迎",Theme:"主题",WelcomePage:"欢迎界面",BasicTable:"基础表格",TableDeleteAnimation:"表格删除动画",Form:"表单",MaterialIcons:"Material 图标",Others:"其他",Error:"错误告警",Warning:"异常告警",Comment:"评论模块",ExternalLink:"外部链接",MarkdownDocs:"Markdown 文档",Demo1:"文档例子1",Demo2:"文档例子2",Components:"OMIU 组件",Loading:"Loading 加载中",Toast:"Toast 弹出式提示",Card:"Card 卡片",Slider:"Slider 滑块",Progress:"Progress 进度条",InlineEditing:"表格行内编辑",MarkdownEditor:"Markdown 编辑器",Dashboard:"仪表盘",Timepicker:"Time Picker 时间选择器",MindMap:"思维导图",ManyThanksTo:"感谢有你",Results:"结果页",BrowserIncompatible:"浏览器不兼容",NetworkError:"网络异常",NotFound:"访问页面不存在",PermissionDenied:"无权限",ServerError:"服务端错误",MasonryList:"瀑布流列表",NotificationList:"通知中心",Introduction:"简介",CustomTheme:"自定义主题",StepsForm:"分步表单",Button:"Button 按钮",Tabs:"Tabs 选项卡",BasicList:"基础列表"};export{o as base};
|
|
@ -1 +0,0 @@
|
|||
const e={ManagerWorkbench:"Manager Workbench",Welcome:"Welcome",Theme:"Theme",WelcomePage:"Welcome age",BasicTable:"Basic Table",TableDeleteAnimation:"Table Delete Animation",Form:"Form",MaterialIcons:"Material Icons",Others:"Others",Error:"Error",Warning:"Warning",Comment:"Comment",ExternalLink:"External Link",MarkdownDocs:"Markdown Docs",Demo1:"Demo1",Demo2:"Demo2",Components:"OMIU Components",Loading:"Loading",Toast:"Toast",Card:"Card",Slider:"Slider",Progress:"Progress",InlineEditing:"Inline Editing Table",MarkdownEditor:"Markdown Editor",Dashboard:"Dashboard",Timepicker:"Time Picker",MindMap:"Mind Map",ManyThanksTo:"Many Thanks To",Results:"Results Pages",BrowserIncompatible:"Browser Incompatible",NetworkError:"Network Error",NotFound:"Not Found",PermissionDenied:"Permission Denied",ServerError:"Server Error",MasonryList:"Masonry List",NotificationList:"NotificationList",Introduction:"Introduction",CustomTheme:"Custom Theme",StepsForm:"Steps Form",Button:"Button",Tabs:"Tabs",BasicList:"Basic List"};export{e as base};
|
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
import{W as e,h as t,t as s,s as a,b as c}from"./vendor.c4d80dea.js";import"./index.5ccbdcb7.js";import"./index.1cbd7be6.js";import"./index.esm.c1ea4fdc.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};
|
|
@ -1 +0,0 @@
|
|||
import{W as e,h as t,t as s,s as r,b as a}from"./vendor.c4d80dea.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
|
@ -1 +0,0 @@
|
|||
import{W as e,h as n,b as t}from"./vendor.c4d80dea.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);
|
|
@ -1 +0,0 @@
|
|||
import{j as require$$0,k as commonjsGlobal}from"./vendor.c4d80dea.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);
|
|
@ -1 +0,0 @@
|
|||
var n='---\n__Advertisement :)__\n\n- __[pica](https://nodeca.github.io/pica/demo/)__ - high quality and fast image\n resize in browser.\n- __[babelfish](https://github.com/nodeca/babelfish/)__ - developer friendly\n i18n with plurals support and easy syntax.\n\nYou will like those projects!\n\n---\n\n# h1 Heading 8-)\n## h2 Heading\n### h3 Heading\n#### h4 Heading\n##### h5 Heading\n###### h6 Heading\n\n\n## Horizontal Rules\n\n___\n\n---\n\n***\n\n\n## Typographic replacements\n\nEnable typographer option to see result.\n\n(c) (C) (r) (R) (tm) (TM) (p) (P) +-\n\ntest.. test... test..... test?..... test!....\n\n!!!!!! ???? ,, -- ---\n\n"Smartypants, double quotes" and \'single quotes\'\n\n\n## Emphasis\n\n**This is bold text**\n\n__This is bold text__\n\n*This is italic text*\n\n_This is italic text_\n\n~~Strikethrough~~\n\n\n## Blockquotes\n\n\n> Blockquotes can also be nested...\n>> ...by using additional greater-than signs right next to each other...\n> > > ...or with spaces between arrows.\n\n\n## Lists\n\nUnordered\n\n+ Create a list by starting a line with `+`, `-`, or `*`\n+ Sub-lists are made by indenting 2 spaces:\n - Marker character change forces new list start:\n * Ac tristique libero volutpat at\n + Facilisis in pretium nisl aliquet\n - Nulla volutpat aliquam velit\n+ Very easy!\n\nOrdered\n\n1. Lorem ipsum dolor sit amet\n2. Consectetur adipiscing elit\n3. Integer molestie lorem at massa\n\n\n1. You can use sequential numbers...\n1. ...or keep all the numbers as `1.`\n\nStart numbering with offset:\n\n57. foo\n1. bar\n\n\n## Code\n\nInline `code`\n\nIndented code\n\n // Some comments\n line 1 of code\n line 2 of code\n line 3 of code\n\n\nBlock code "fences"\n\n```\nSample text here...\n```\n\nSyntax highlighting\n\n``` js\nvar foo = function (bar) {\n return bar++;\n};\n\nconsole.log(foo(5));\n```\n\n## Tables\n\n| Option | Description |\n| ------ | ----------- |\n| data | path to data files to supply the data that will be passed into templates. |\n| engine | engine to be used for processing templates. Handlebars is the default. |\n| ext | extension to be used for dest files. |\n\nRight aligned columns\n\n| Option | Description |\n| ------:| -----------:|\n| data | path to data files to supply the data that will be passed into templates. |\n| engine | engine to be used for processing templates. Handlebars is the default. |\n| ext | extension to be used for dest files. |\n\n\n## Links\n\n[link text](http://dev.nodeca.com)\n\n[link with title](http://nodeca.github.io/pica/demo/ "title text!")\n\nAutoconverted link https://github.com/nodeca/pica (enable linkify to see)\n\n\n## Images\n\n![Minion](https://octodex.github.com/images/minion.png)\n![Stormtroopocat](https://octodex.github.com/images/stormtroopocat.jpg "The Stormtroopocat")\n\nLike links, Images also have a footnote style syntax\n\n![Alt text][id]\n\nWith a reference later in the document defining the URL location:\n\n[id]: https://octodex.github.com/images/dojocat.jpg "The Dojocat"\n\n\n## Plugins\n\nThe killer feature of `markdown-it` is very effective support of\n[syntax plugins](https://www.npmjs.org/browse/keyword/markdown-it-plugin).\n\n\n### [Emojies](https://github.com/markdown-it/markdown-it-emoji)\n\n> Classic markup: :wink: :crush: :cry: :tear: :laughing: :yum:\n>\n> Shortcuts (emoticons): :-) :-( 8-) ;)\n\nsee [how to change output](https://github.com/markdown-it/markdown-it-emoji#change-output) with twemoji.\n\n\n### [Subscript](https://github.com/markdown-it/markdown-it-sub) / [Superscript](https://github.com/markdown-it/markdown-it-sup)\n\n- 19^th^\n- H~2~O\n\n\n### [\\<ins>](https://github.com/markdown-it/markdown-it-ins)\n\n++Inserted text++\n\n\n### [\\<mark>](https://github.com/markdown-it/markdown-it-mark)\n\n==Marked text==\n\n\n### [Footnotes](https://github.com/markdown-it/markdown-it-footnote)\n\nFootnote 1 link[^first].\n\nFootnote 2 link[^second].\n\nInline footnote^[Text of inline footnote] definition.\n\nDuplicated footnote reference[^second].\n\n[^first]: Footnote **can have markup**\n\n and multiple paragraphs.\n\n[^second]: Footnote text.\n\n\n### [Definition lists](https://github.com/markdown-it/markdown-it-deflist)\n\nTerm 1\n\n: Definition 1\nwith lazy continuation.\n\nTerm 2 with *inline markup*\n\n: Definition 2\n\n { some code, part of Definition 2 }\n\n Third paragraph of definition 2.\n\n_Compact style:_\n\nTerm 1\n ~ Definition 1\n\nTerm 2\n ~ Definition 2a\n ~ Definition 2b\n\n\n### [Abbreviations](https://github.com/markdown-it/markdown-it-abbr)\n\nThis is HTML abbreviation example.\n\nIt converts "HTML", but keep intact partial entries like "xxxHTMLyyy" and so on.\n\n*[HTML]: Hyper Text Markup Language\n\n### [Custom containers](https://github.com/markdown-it/markdown-it-container)\n\n::: warning\n*here be dragons*\n:::';export{n as default};
|
|
@ -1 +0,0 @@
|
|||
var l="Hello, **world**!";export{l as default};
|
|
@ -1 +0,0 @@
|
|||
import{v as getDefaultExportFromCjs,j as require$$0,k as commonjsGlobal}from"./vendor.c4d80dea.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
Binary file not shown.
Before Width: | Height: | Size: 66 KiB |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
import{s as e,W as r,h as d,t as s,b as o}from"./vendor.c4d80dea.js";import"./admin-docs.5429a823.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
|
@ -1 +0,0 @@
|
|||
body,html{padding:0;margin:0}.text{font-size:60px;font-family:cursive}svg{width:100%;height:100%}.use-text{fill:none;stroke:white;stroke-dashoffset:35%;stroke-dasharray:0 87.5%;stroke-width:2px}.use-text:nth-child(1){stroke:#777e7a;animation:animation1 8s infinite ease-in-out forwards}.use-text:nth-child(2){stroke:#777e7a;animation:animation2 8s infinite ease-in-out forwards}.use-text:nth-child(3){stroke:#777e7a;animation:animation3 8s infinite ease-in-out forwards}.use-text:nth-child(4){stroke:#777e7a;animation:animation4 8s infinite ease-in-out forwards}.use-text:nth-child(5){stroke:#777e7a;animation:animation5 8s infinite ease-in-out forwards}.use-omi{fill:none;stroke:white;stroke-dashoffset:35%;stroke-dasharray:0 87.5%;stroke-width:2px}.use-omi:nth-child(1){stroke:#07c160;animation:animation1 8s infinite ease-in-out forwards}.use-omi:nth-child(2){stroke:#07c160;animation:animation2 8s infinite ease-in-out forwards}.use-omi:nth-child(3){stroke:#07c160;animation:animation3 8s infinite ease-in-out forwards}.use-omi:nth-child(4){stroke:#07c160;animation:animation4 8s infinite ease-in-out forwards}.use-omi:nth-child(5){stroke:#07c160;animation:animation5 8s infinite ease-in-out forwards}@keyframes animation1{50%{stroke-dasharray:7% 28%;stroke-dashoffset:7%}70%{stroke-dasharray:7% 28%;stroke-dashoffset:7%}}@keyframes animation2{50%{stroke-dasharray:7% 28%;stroke-dashoffset:14%}70%{stroke-dasharray:7% 28%;stroke-dashoffset:14%}}@keyframes animation3{50%{stroke-dasharray:7% 28%;stroke-dashoffset:21%}70%{stroke-dasharray:7% 28%;stroke-dashoffset:21%}}@keyframes animation4{50%{stroke-dasharray:7% 28%;stroke-dashoffset:28%}70%{stroke-dasharray:7% 28%;stroke-dashoffset:28%}}@keyframes animation5{50%{stroke-dasharray:7% 28%;stroke-dashoffset:35%}70%{stroke-dasharray:7% 28%;stroke-dashoffset:35%}}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
import{_ as e}from"./index.a8620b53.js";import{W as t,h as a,t as i,s as n,b as s}from"./vendor.c4d80dea.js";import"./index.5ccbdcb7.js";import"./index.1cbd7be6.js";import"./index.esm.c1ea4fdc.js";import"./index.esm.3f4a5145.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.5a27793d.js")),["assets/export-excel.5a27793d.js","assets/vendor.c4d80dea.js","assets/___vite-browser-external_commonjs-proxy.5915cd82.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};
|
|
@ -1 +0,0 @@
|
|||
var n="## Omiu 是什么?\n\nOmiu 是基于 [Omi](https://github.com/Tencent/omi) 开发的跨框架 UI 组件库,输出标准 Web Components 的 Custom Elements,任意组件可以同时在 React、Vue、Preact、Omi 或者原生 JS 等任意框架或无框架中使用,非常方便。总体来看,Omiu 有这些特性:\n\n> [Omiu Codepen 合集](https://codepen.io/collection/XBJjke)\n\n* 跨框架使用\n* 集成 MUI [海量 ICON](https://tencent.github.io/omi/components/icon/demos/icon.html)\n* 移动端和 PC 共用一套组件\n* 运行时的主题切换支持(颜色、字体和圆角)\n* 组件直接解耦,独立打磨,独立发布,独立引用\n* 扩展了 HTML 能力,你可以通过字符串 `'0'` 或者字符串 `'false'` 传递 false 给元素\n\n## 使用指南\n\n### 通过 script\n\n```html\n<script src=\"https://unpkg.com/omi\"><\/script>\n<script src=\"https://unpkg.com/@omiu/button\"><\/script>\n\n<o-button>I am button</o-button>\n```\n\n### 通过 npm\n\n``` bash\nnpm install @omiu/button\n```\n\n然后导入(自动全局注册):\n\n```js\nimport '@omiu/button'\n```\n\n然后在任意框架中使用,比如 Omi, React, Vue or Angular:\n\n``` html\n<o-button>I am button</o-button>\n```\n\n也可以原生 JS 使用:\n\n```js\nvar button = document.createElement('o-button')\nbutton.innerHTML = 'I am omiu button'\ndocument.body.append(button)\nbutton.addEventListener('click', function () {\n console.log('Clicked!')\n})\n\n//or\n//document.body.innerHTML = '<o-button>I am omiu button</o-button>'\n```\n\n## HTML 扩展 \n\n当默认值为 true,需要传递 false 给 element 的时候,以前是历史难题,Omi 完美解决了这一点,你可以通过字符串 `'0'` 或者 字符串 `'false'` 来设置。\n\n```js\ndefine('my-element', class extends WeElement {\n static defaultProps = {\n show: true\n }\n\n static propTypes = {\n show: Boolean\n }\n\n render(props) {\n ...\n ...\n }\n})\n```\n\nUse:\n\n```html\n<my-element show=\"false\"></my-element>\n```\n\nor\n\n```html\n<my-element show=\"0\"></my-element>\n```\n\n## React 中使用 omiu\n\n```tsx\nimport { useState } from 'react'\nimport '@omiu/icon-button'\n\nexport default function SomeComponent(props) {\n const [result, setSwitch] = useState(false)\n\n return (\n <div>\n <p>The switch is {result ? 'on' : 'off'}</p>\n {//使用 addEventListener 绑定自定义事件}\n <o-icon-button color=\"red\" icons=\"['favorite', 'favorite_border']\">\n </o-icon-button>\n </div>\n )\n}\n```\n\n\n## Vue 中使用 Omiu\n\n```html\n<script>\nimport '@omiu/icon-button'\n\nexport default {\n name: 'HelloWorld',\n data: function() {\n return {\n result: false\n }\n },\n methods: {\n myEvent: function(evt) {\n this.result = evt.detail.isOn\n }\n }\n}\n<\/script>\n\n<template>\n <div class=\"component\">\n <p>The switch is {{result? 'on' : 'off'}}</p>\n <o-icon-button color=\"red\" icons=\"['favorite', 'favorite_border']\" @change=\"myEvent\"></o-icon-button>\n </div>\n</template>\n```\n\n## 事件触发和绑定最佳实践\n\n由于需要跨框架,在事件绑定上为了统一组件行为这里给除了组件开发和使用的最佳实践。Omiu 组件的事件触发统一使用小写的形式:\n\n```js\nthis.fire('change')\nthis.fire('my-event')\n```\n\n在 Omi 中进行对应的事件绑定:\n\n```jsx\n<my-ele onChange={this.changeHandler} onMyEvent={this.myEventHandler}></my-ele>\n```\n\n在 Preact 中进行对应的事件绑定:\n\n```jsx\n<my-ele onchange={this.changeHandler} onmy-event={this.myEventHandler}></my-ele>\n```\n\n在 Vue 中进行对应的事件绑定:\n\n```html\n<my-ele @change=\"changeHandler\" @my-event=\"myEventHandler\"></my-ele>\n```\n\n在 React 和 JS 中进行对应的事件绑定:\n\n```jsx\nmyEl.addEventListener('my-event', (evt) => {})\n```\n\n## 贡献\n\n### 一些命令\n\nBuild 组件:\n\n```bash\nnpm run build \n```\n\nBuild 例子:\n\n```bash\nnpm start\n```\n\n生成文档:\n\n```bash\nnpm run docs\n```\n\n发布:\n\n```bash\nnpm publish --access public\n```\n";export{n as default};
|
|
@ -1 +0,0 @@
|
|||
var n="## What's Omiu ?\n\nOmiu is a cross framework UI component library developed based on [OMI](https://github.com/tencent/omi), which outputs custom elements of standard web components. Any component can be used in any framework or frameless environment such as react, Vue, preact, OMI or native JS at the same time, which is very convenient. Overall, omiu has these characteristics:\n\n> [Omiu Codepen Collection](https://codepen.io/collection/XBJjke)\n\n* Cross frameworks \n* Integrated [all the MUI Icon](https://tencent.github.io/omi/components/icon/demos/icon.html)\n* Mobile terminal and PC share one set of components\n* Theme switching support at runtime (color, font, and fillets)\n* Components directly decoupled, independently polished, independently released, independently quoted\n* Extended HTML capabilities. You can pass false to an element through the string `'0'` or the string `'false'`\n\n## Usage\n\n### Install by script\n\n```html\n<script src=\"https://unpkg.com/omi\"><\/script>\n<script src=\"https://unpkg.com/@omiu/button\"><\/script>\n\n<o-button>I am button</o-button>\n```\n\n### Install by npm\n\n``` bash\nnpm install @omiu/button\n```\n\nImport to use it:\n\n```js\nimport '@omiu/button'\n```\n\nThen use it in any framework, such as Omi, react, Vue or angular:\n\n``` html\n<o-button>I am button</o-button>\n```\n\nYou can also use native JS:\n\n```js\nvar button = document.createElement('o-button')\nbutton.innerHTML = 'I am omiu button'\ndocument.body.append(button)\nbutton.addEventListener('click', function () {\n console.log('Clicked!')\n})\n\n//or\n//document.body.innerHTML = '<o-button>I am omiu button</o-button>'\n```\n\n## HTML Extension \n\nWhen the default value is true and you need to pass false to the element, it used to be a historical problem. OMI has solved this problem perfectly. You can set it through the string `'0'` or the string `'false'`.\n\n```js\ndefine('my-element', class extends WeElement {\n static defaultProps = {\n show: true\n }\n\n static propTypes = {\n show: Boolean\n }\n\n render(props) {\n ...\n ...\n }\n})\n```\n\nUse:\n\n```html\n<my-element show=\"false\"></my-element>\n```\n\nor\n\n```html\n<my-element show=\"0\"></my-element>\n```\n\n\n## Using omiu in Vue\n\n```html\n<script>\nimport '@omiu/icon-button'\n\nexport default {\n name: 'HelloWorld',\n data: function() {\n return {\n result: false\n }\n },\n methods: {\n myEvent: function(evt) {\n this.result = evt.detail.isOn\n }\n }\n}\n<\/script>\n\n<template>\n <div class=\"component\">\n <p>The switch is {{result? 'on' : 'off'}}</p>\n <o-icon-button color=\"red\" icons=\"['favorite', 'favorite_border']\" @change=\"myEvent\"></o-icon-button>\n </div>\n</template>\n```\n\n## Using omiu in preact\n\n```tsx\nimport { useState, h } from 'preact'\nimport '@omiu/icon-button'\n\nexport default function SomeComponent(props) {\n const [result, setSwitch] = useState(false)\n\n return (\n <div>\n <p>The switch is {result ? 'on' : 'off'}</p>\n <o-icon-button color=\"red\" icons=\"['favorite', 'favorite_border']\" onchange={e => setSwitch(e.detail.isOn)}>\n </o-icon-button>\n </div>\n )\n}\n```\n\n\n## Using omiu in react\n\n```tsx\nimport { useState } from 'react'\nimport '@omiu/icon-button'\n\nexport default function SomeComponent(props) {\n const [result, setSwitch] = useState(false)\n\n return (\n <div>\n <p>The switch is {result ? 'on' : 'off'}</p>\n {// bind event by addEventListener}\n <o-icon-button color=\"red\" icons=\"['favorite', 'favorite_border']\">\n </o-icon-button>\n </div>\n )\n}\n```\n\n\n\n## Event triggering and binding best practices\n\nDue to the need for cross framework, in order to unify component behavior in event binding, best practices for component development and use are given here. The event triggering of the omiu component is in the form of lowercase dash:\n\n```js\nthis.fire('change')\nthis.fire('my-event')\n```\n\nIn Omi or Preact :\n\n```jsx\n<my-ele onChange={this.changeHandler} onMyEvent={this.myEventHandler}></my-ele>\n```\n\nIn Omi or Preact :\n\n```jsx\n<my-ele onchange={this.changeHandler} onmy-event={this.myEventHandler}></my-ele>\n```\n\nIn Vue:\n\n```html\n<my-ele @change=\"changeHandler\" @my-event=\"myEventHandler\"></my-ele>\n```\n\nIn React or JS:\n\n```jsx\nmyEl.addEventListener('my-event', (evt) => {})\n```\n\n## Contribution\n\nBuild:\n\n```bash\nnpm run build\n```\n\nBuild Demo:\n\n```bash\nnpm start \n```\n\nGenerate the docs:\n\n```bash\nnpm run docs\n```\n\nPublic to npm:\n\n```bash\nnpm publish --access public\n```\n\n\n";export{n as default};
|
|
@ -1,15 +0,0 @@
|
|||
import{h as o,b as e,W as n,t as i,s as r}from"./vendor.c4d80dea.js";import"./admin-docs.5429a823.js";import"./index.a3de305c.js";import"./container.e914e81c.js";import"./___vite-browser-external_commonjs-proxy.5915cd82.js";
|
||||
/*! *****************************************************************************
|
||||
Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||||
this file except in compliance with the License. You may obtain a copy of the
|
||||
License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||||
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||||
|
||||
See the Apache Version 2.0 License for specific language governing permissions
|
||||
and limitations under the License.
|
||||
***************************************************************************** */var t=function(o,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var n in e)e.hasOwnProperty(n)&&(o[n]=e[n])})(o,e)};!function(n){function i(){return null!==n&&n.apply(this,arguments)||this}(function(o,e){function n(){this.constructor=o}t(o,e),o.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})(i,n),i.prototype.render=function(e){return o("div",{class:"o-root o-colorPrimary o-indeterminate",role:"progressbar",style:"width: "+e.size+"px; height: "+e.size+"px;"+(e.color?"color:"+e.color+";":"")},o("svg",{class:"o-svg",viewBox:"22 22 44 44"},o("circle",{class:"o-circle o-circleIndeterminate",cx:"44",cy:"44",r:"20.2",fill:"none","stroke-width":"3.6"})))},i.css=":host {\n display: inline-block; }\n\n.o-root {\n display: inline-block;\n line-height: 1;\n color: #07c160; }\n\n.o-static {\n transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; }\n\n.o-indeterminate {\n animation: o-rotate 1.4s linear infinite; }\n\n.o-circle {\n stroke: currentColor; }\n\n.o-circleStatic {\n transition: stroke-dashoffset 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; }\n\n.o-circleIndeterminate {\n animation: mui-progress-circular-dash 1.4s ease-in-out infinite;\n animation-name: o-keyframes-mui-progress-circular-dash;\n stroke-dasharray: 80px, 200px;\n stroke-dashoffset: 0px; }\n\n@-webkit-keyframes o-rotate {\n 100% {\n transform: rotate(360deg); } }\n\n@-webkit-keyframes o-keyframes-mui-progress-circular-dash {\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0px; }\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px; }\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px; } }\n\n.o-circleDisableShrink {\n animation: none; }\n",i.defaultProps={size:40},i.propTypes={size:Number,color:String},i=function(o,e,n,i){var r,t=arguments.length,s=t<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(o,e,n,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(t<3?r(s):t>3?r(e,n,s):r(e,n))||s);return t>3&&s&&Object.defineProperty(e,n,s),s}([e("o-loading")],i)}(n);var s=Object.defineProperty,a=Object.getOwnPropertyDescriptor;let l=class extends n{constructor(){super(...arguments),this.mdA='\n ```html\n<o-loading size="15"></o-loading>\n```\n ',this.mdB='\n ```html\n<o-loading size="15"></o-loading>\n<o-loading size="25"></o-loading>\n<o-loading size="35"></o-loading>\n<o-loading size="45"></o-loading>\n<o-loading size="55"></o-loading>\n ```\n ',this.mdC='\n ```html\n <o-loading size="25" color="#8e2035"></o-loading>\n <o-loading size="25" color="#2d7418"></o-loading>\n <o-loading size="25" color="#f37736"></o-loading>\n <o-loading size="25" color="#7bc043"></o-loading>\n <o-loading size="25" color="#2170b8"></o-loading>\n ```\n ',this.mdD='\n ```html\n <o-loading size="15" color="#8e2035"></o-loading>\n <o-loading size="25" color="#2d7418"></o-loading>\n <o-loading size="35" color="#f37736"></o-loading>\n <o-loading size="45" color="#7bc043"></o-loading>\n <o-loading size="55" color="#2170b8"></o-loading>\n ```\n '}installed(){}render(){return o("code-demo-container",null,o("code-demo",{class:i``,title:"基本",describe:"最简单的 Loading",code:this.mdA},o("div",{slot:"demo",class:i`px-5 py-5`},o("o-loading",{size:"15"}))),o("code-demo",{title:"不同尺寸",describe:"支持传入 size 控制大小",code:this.mdB},o("div",{slot:"demo",class:i`px-5 py-5`},o("o-loading",{size:"15"}),o("o-loading",{size:"25"}),o("o-loading",{size:"35"}),o("o-loading",{size:"45"}),o("o-loading",{size:"55"}))),o("code-demo",{title:"不同颜色",describe:"支持传入 color 控制颜色",code:this.mdC},o("div",{slot:"demo",class:i`px-5 py-5`},o("o-loading",{size:"25",color:"#8e2035"}),o("o-loading",{size:"25",color:"#2d7418"}),o("o-loading",{size:"25",color:"#f37736"}),o("o-loading",{size:"25",color:"#7bc043"}),o("o-loading",{size:"25",color:"#2170b8"}))),o("code-demo",{title:"不同颜色和尺寸",describe:"支持传入 size 和 color 控制大小颜色",code:this.mdD},o("div",{slot:"demo",class:i`px-5 py-5`},o("o-loading",{size:"15",color:"#8e2035"}),o("o-loading",{size:"25",color:"#2d7418"}),o("o-loading",{size:"35",color:"#f37736"}),o("o-loading",{size:"45",color:"#7bc043"}),o("o-loading",{size:"55",color:"#2170b8"}))))}};l.css=r.target,l=((o,e,n,i)=>{for(var r,t=i>1?void 0:i?a(e,n):e,l=o.length-1;l>=0;l--)(r=o[l])&&(t=(i?r(e,n,t):r(t))||t);return i&&t&&s(e,n,t),t})([e("loading-component")],l);export{l as default};
|
|
@ -1,26 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<!-- Creator: CorelDRAW 2017 -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" width="1024px" height="1024px" version="1.1" style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd"
|
||||
viewBox="0 0 1024 1024"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<defs>
|
||||
<style type="text/css">
|
||||
<![CDATA[
|
||||
.fil0 {fill:none}
|
||||
.fil2 {fill:#FEFEFE}
|
||||
.fil1 {fill:#07C160}
|
||||
]]>
|
||||
</style>
|
||||
</defs>
|
||||
<g id="图层_x0020_1">
|
||||
<metadata id="CorelCorpID_0Corel-Layer"/>
|
||||
<rect class="fil0" width="1024" height="1024"/>
|
||||
<rect class="fil0" width="1024" height="1024"/>
|
||||
<g id="_2225049615792">
|
||||
<circle class="fil1" cx="512" cy="512" r="512"/>
|
||||
<polygon class="fil2" points="159.97,807.8 338.71,532.42 509.9,829.62 519.41,829.62 678.85,536.47 864.03,807.8 739.83,194.38 729.2,194.38 517.73,581.23 293.54,194.38 283.33,194.38 "/>
|
||||
<circle class="fil2" cx="839.36" cy="242.47" r="50"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 1.1 KiB |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
import{W as e,h as r,t,s,b as a}from"./vendor.c4d80dea.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};
|
|
@ -1 +0,0 @@
|
|||
import{W as e,h as t,t as r,s,b as a}from"./vendor.c4d80dea.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};
|
|
@ -1 +0,0 @@
|
|||
import{W as e,h as t,t as s,s as r,b as a}from"./vendor.c4d80dea.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};
|
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
import{W as e,h as t,t as a,s as i,b as n}from"./vendor.c4d80dea.js";import"./index.5ccbdcb7.js";import"./index.1cbd7be6.js";import"./index.esm.c1ea4fdc.js";import"./index.esm.3f4a5145.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};
|
|
@ -1 +0,0 @@
|
|||
import{W as e,h as t,t as s,s as r,b as a}from"./vendor.c4d80dea.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};
|
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
import{W as e,h as t,t as s,s as r,b as a}from"./vendor.c4d80dea.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};
|
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
import{W as r,h as e,t,s,b as a}from"./vendor.c4d80dea.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};
|
|
@ -1 +0,0 @@
|
|||
import{W as e,h as r,t,s,b as a}from"./vendor.c4d80dea.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};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
var e="## 自定义主题 \n\nOmiu 支持运行时动态主题切换。\n\n\n## 安装\n\n```js\nimport '@omiu/common'\n```\n\n或者直接 script 标签引入。\n\n\n```html\n<script src=\"https://unpkg.com/@omiu/common\"><\/script>\n```\n\n## 更改主题\n\n```js\nconst setTheme = Omiu.setTheme\n\nsetTheme('primary', '#07c160')\nsetTheme('danger', '#f5222d')\nsetTheme('surface', '#ffffff')\nsetTheme('on-primary', '#ffffff')\nsetTheme('on-danger', '#ffffff')\nsetTheme('on-surface', '#000000')\nsetTheme('background', '#ffffff')\nsetTheme('small-radius', '4px')\nsetTheme('medium-radius', '4px')\nsetTheme('large-radius', '0px')\nsetTheme('font-family', '-apple-system-font,\"Helvetica Neue\",sans-serif')\n```\n\n或者\n\n```js\nOmiu.setThemePrimary('green')\n```\n\n\n";export{e as default};
|
|
@ -1 +0,0 @@
|
|||
var e="## Custom Theme \n\nOmiu supports dynamic theme switching at runtime.\n\n\n\n## Import\n\n```js\nimport '@omiu/common'\n```\n\nOr use script tag to ref it.\n\n\n```html\n<script src=\"https://unpkg.com/@omiu/common\"><\/script>\n```\n\n## Change Theme\n\n```js\nconst setTheme = Omiu.setTheme\n\nsetTheme('primary', '#07c160')\nsetTheme('danger', '#f5222d')\nsetTheme('surface', '#ffffff')\nsetTheme('on-primary', '#ffffff')\nsetTheme('on-danger', '#ffffff')\nsetTheme('on-surface', '#000000')\nsetTheme('background', '#ffffff')\nsetTheme('small-radius', '4px')\nsetTheme('medium-radius', '4px')\nsetTheme('large-radius', '0px')\nsetTheme('font-family', '-apple-system-font,\"Helvetica Neue\",sans-serif')\n```\n\nor\n\n```js\nOmiu.setThemePrimary('green')\n```\n\n";export{e as default};
|
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
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.c4d80dea.js";import"./admin-docs.5429a823.js";import"./index.a3de305c.js";import"./container.e914e81c.js";import"./___vite-browser-external_commonjs-proxy.5915cd82.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
|
@ -1,27 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="./assets/favicon.974a6ddb.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>OMI ADMIN</title>
|
||||
|
||||
<script type="module" crossorigin src="./assets/index.a8620b53.js"></script>
|
||||
<link rel="modulepreload" href="./assets/vendor.c4d80dea.js">
|
||||
<link rel="stylesheet" href="./assets/index.e4c38a11.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<script>
|
||||
window.process = {}
|
||||
</script>
|
||||
<div id="root"></div>
|
||||
|
||||
|
||||
<script src="https://unpkg.com/bytemd@1.10.13/dist/index.min.js"></script>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -19,13 +19,13 @@ declare global {
|
|||
|
||||
|
||||
const chartColors = [
|
||||
'rgb(55, 199, 132)',
|
||||
'rgb(155, 59, 64)',
|
||||
'rgba(7, 193, 96,.8)',
|
||||
'rgba(245, 108, 108,.8)',
|
||||
]
|
||||
|
||||
const chartBgColors = [
|
||||
'rgba(55, 199, 132,.1)',
|
||||
'rgba(155, 59, 64,.1)',
|
||||
'rgba(7, 193, 96,0)',
|
||||
'rgba(245, 108, 108,0)',
|
||||
]
|
||||
|
||||
|
||||
|
@ -237,7 +237,7 @@ export default class extends WeElement<Props> {
|
|||
//yAxisID: 'y-axis-1',
|
||||
backgroundColor: chartBgColors[0],
|
||||
borderColor: chartColors[0],
|
||||
borderWidth: 1,
|
||||
borderWidth: 2,
|
||||
fill: true
|
||||
}, {
|
||||
label: '# 2022半年收入流水',
|
||||
|
@ -245,14 +245,13 @@ export default class extends WeElement<Props> {
|
|||
//yAxisID: 'y-axis-2',
|
||||
backgroundColor: chartBgColors[1],
|
||||
borderColor: chartColors[1],
|
||||
borderWidth: 1,
|
||||
borderWidth: 2,
|
||||
fill: true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
chartOptions = {
|
||||
|
||||
maintainAspectRatio: false,
|
||||
elements: {
|
||||
line: {
|
||||
|
@ -270,7 +269,7 @@ export default class extends WeElement<Props> {
|
|||
plugins: {
|
||||
title: {
|
||||
display: true,
|
||||
text: (ctx) => {
|
||||
text: () => {
|
||||
//const { intersect, mode } = ctx.chart.options.interaction;
|
||||
return '收入统计(单位: 万)'
|
||||
}
|
||||
|
@ -318,10 +317,10 @@ export default class extends WeElement<Props> {
|
|||
data: [12222, 3119, 3223, 5223],
|
||||
//yAxisID: 'y-axis-1',
|
||||
backgroundColor: [
|
||||
'#07c160',
|
||||
'#3b5998',
|
||||
'#f56c6c',
|
||||
'#39f'
|
||||
'rgba(7, 193, 96,.7)',
|
||||
'rgba(59, 89, 152,.7)',
|
||||
'rgba(245, 108, 108,.7)',
|
||||
'rgba(51, 153, 255,.7)'
|
||||
],
|
||||
borderColor: 'white',
|
||||
borderWidth: 1,
|
||||
|
@ -330,7 +329,7 @@ export default class extends WeElement<Props> {
|
|||
}
|
||||
|
||||
doughnutChartOptions = {
|
||||
|
||||
cutout: 100,
|
||||
maintainAspectRatio: false,
|
||||
elements: {
|
||||
line: {
|
||||
|
@ -356,7 +355,6 @@ export default class extends WeElement<Props> {
|
|||
tooltip: {
|
||||
callbacks: {
|
||||
label: function (context) {
|
||||
console.error(context)
|
||||
return context.dataset.label + ': ' + context.parsed + '万'
|
||||
}
|
||||
}
|
||||
|
@ -386,9 +384,9 @@ export default class extends WeElement<Props> {
|
|||
</o-chart-card>
|
||||
</div>
|
||||
|
||||
<div class={tw`border-1 mx-4 flex flex-col gap-x-4 gap-y-4 md:flex-row`}>
|
||||
<o-line class={tw`bg-white flex-1 shadow-sm rounded`} height="350" data={this.chartData} options={this.chartOptions} />
|
||||
<o-doughnut class={tw`bg-white flex-1 shadow-sm rounded`} height="350" data={this.doughnutChartData} options={this.doughnutChartOptions} />
|
||||
<div class={tw` mx-4 flex flex-col gap-x-4 gap-y-4 md:flex-row`}>
|
||||
<o-line class={tw`block bg-white flex-1 md:w-5/12 shadow-sm rounded`} height="350" data={this.chartData} options={this.chartOptions} />
|
||||
<o-doughnut class={tw`block bg-white flex-1 md:w-5/12 shadow-sm rounded`} height="350" data={this.doughnutChartData} options={this.doughnutChartOptions} />
|
||||
</div>
|
||||
|
||||
<div class={tw`px-5 py-4 flex flex-col gap-x-4 gap-y-2 md:flex-row`}>
|
||||
|
@ -410,14 +408,6 @@ export default class extends WeElement<Props> {
|
|||
>
|
||||
</o-icon-card>
|
||||
|
||||
<o-icon-card
|
||||
class={tw`flex-1`}
|
||||
color='#39f'
|
||||
info='98'
|
||||
caption='转发'
|
||||
path='M928 254.3c-30.6 13.2-63.9 22.7-98.2 26.4a170.1 170.1 0 0 0 75-94 336.64 336.64 0 0 1-108.2 41.2A170.1 170.1 0 0 0 672 174c-94.5 0-170.5 76.6-170.5 170.6 0 13.2 1.6 26.4 4.2 39.1-141.5-7.4-267.7-75-351.6-178.5a169.32 169.32 0 0 0-23.2 86.1c0 59.2 30.1 111.4 76 142.1a172 172 0 0 1-77.1-21.7v2.1c0 82.9 58.6 151.6 136.7 167.4a180.6 180.6 0 0 1-44.9 5.8c-11.1 0-21.6-1.1-32.2-2.6C211 652 273.9 701.1 348.8 702.7c-58.6 45.9-132 72.9-211.7 72.9-14.3 0-27.5-.5-41.2-2.1C171.5 822 261.2 850 357.8 850 671.4 850 843 590.2 843 364.7c0-7.4 0-14.8-.5-22.2 33.2-24.3 62.3-54.4 85.5-88.2z'
|
||||
>
|
||||
</o-icon-card>
|
||||
|
||||
<o-icon-card
|
||||
class={tw`flex-1`}
|
||||
|
@ -438,6 +428,15 @@ export default class extends WeElement<Props> {
|
|||
path='M27.26 27.271h-4.733v-7.427c0-1.771-0.037-4.047-2.475-4.047-2.468 0-2.844 1.921-2.844 3.916v7.557h-4.739v-15.271h4.552v2.083h0.061c0.636-1.203 2.183-2.468 4.491-2.468 4.801 0 5.692 3.161 5.692 7.271v8.385zM7.115 9.912c-1.527 0-2.751-1.235-2.751-2.756 0-1.516 1.229-2.749 2.751-2.749s2.755 1.233 2.755 2.749c0 1.521-1.233 2.756-2.755 2.756zM9.489 27.271h-4.749v-15.271h4.749zM29.636 0h-27.276c-1.303 0-2.36 1.031-2.36 2.307v27.387c0 1.276 1.057 2.307 2.36 2.307h27.271c1.301 0 2.369-1.031 2.369-2.307v-27.387c0-1.276-1.068-2.307-2.369-2.307z'
|
||||
>
|
||||
</o-icon-card>
|
||||
|
||||
<o-icon-card
|
||||
class={tw`flex-1`}
|
||||
color='#39f'
|
||||
info='98'
|
||||
caption='转发'
|
||||
path='M928 254.3c-30.6 13.2-63.9 22.7-98.2 26.4a170.1 170.1 0 0 0 75-94 336.64 336.64 0 0 1-108.2 41.2A170.1 170.1 0 0 0 672 174c-94.5 0-170.5 76.6-170.5 170.6 0 13.2 1.6 26.4 4.2 39.1-141.5-7.4-267.7-75-351.6-178.5a169.32 169.32 0 0 0-23.2 86.1c0 59.2 30.1 111.4 76 142.1a172 172 0 0 1-77.1-21.7v2.1c0 82.9 58.6 151.6 136.7 167.4a180.6 180.6 0 0 1-44.9 5.8c-11.1 0-21.6-1.1-32.2-2.6C211 652 273.9 701.1 348.8 702.7c-58.6 45.9-132 72.9-211.7 72.9-14.3 0-27.5-.5-41.2-2.1C171.5 822 261.2 850 357.8 850 671.4 850 843 590.2 843 364.7c0-7.4 0-14.8-.5-22.2 33.2-24.3 62.3-54.4 85.5-88.2z'
|
||||
>
|
||||
</o-icon-card>
|
||||
</div>
|
||||
|
||||
<div class={tw`pb-1 border-2 bg-white mx-4 shadow-sm rounded`}>
|
||||
|
|
Loading…
Reference in New Issue