chore(admin): rebuild
This commit is contained in:
parent
ffab647d13
commit
f05aa41808
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 @@
|
|||
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",Switch:"Switch",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",PersonalCenter:"PersonalCenter",Introduction:"Introduction",CustomTheme:"Custom Theme",Contribution:"Add new component",StepsForm:"Steps Form",Button:"Button",Tabs:"Tabs",Tag:"Tag",Rate:"Rate",BasicList:"Basic List",Cascader:"Cascader",Chart:"OMIU Charts",Bar:"Bar",Line:"Line",Scatter:"Scatter",Pie:"Pie",Doughnut:"Doughnut",Radar:"radar",PolarArea:"polarArea",Bubble:"Bubble",Barline:"Barline",Success:"Success",Failure:"Failure",Dialog:"Dialog",Avatar:"Avatar",ActionSheet:"ActionSheet",Collapse:"Collapse"};export{e as base};
|
|
@ -1 +0,0 @@
|
|||
const e={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 滑块",Switch:"Switch 开关按钮",Progress:"Progress 进度条",InlineEditing:"表格行内编辑",MarkdownEditor:"Markdown 编辑器",Dashboard:"仪表盘",TimePicker:"Time Picker 时间选择器",MindMap:"思维导图",ManyThanksTo:"感谢有你",Results:"结果页",BrowserIncompatible:"浏览器不兼容",NetworkError:"网络异常",NotFound:"访问页面不存在",PermissionDenied:"无权限",ServerError:"服务端错误",MasonryList:"瀑布流列表",NotificationList:"通知中心",PersonalCenter:"个人中心",Introduction:"简介",CustomTheme:"自定义主题",Contribution:"加入新组件",StepsForm:"分步表单",Button:"Button 按钮",Tabs:"Tabs 选项卡",Rate:"Rate 评分",Tag:"Tag 标签",BasicList:"基础列表",Cascader:"Cascader 级联选择器",Chart:"OMIU 图表",Bar:"柱状图",Line:"线状图",Scatter:"散点图",Pie:"饼图",Doughnut:"环状图",Radar:"雷达图",PolarArea:"极区图",Bubble:"气泡图",Barline:"合成图",Success:"成功页",Failure:"失败页",Dialog:"Dialog 弹窗层",Avatar:"Avatar 头像",ActionSheet:"ActionSheet 弹出式菜单",Collapse:"Collapse 折叠"};export{e as base};
|
|
@ -0,0 +1 @@
|
|||
const e={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 弹出式提示",ToggleIcon:"ToggleIcon 可切换图标",Card:"Card 卡片",Slider:"Slider 滑块",Switch:"Switch 开关按钮",Progress:"Progress 进度条",InlineEditing:"表格行内编辑",MarkdownEditor:"Markdown 编辑器",Dashboard:"仪表盘",TimePicker:"Time Picker 时间选择器",MindMap:"思维导图",ManyThanksTo:"感谢有你",Results:"结果页",BrowserIncompatible:"浏览器不兼容",NetworkError:"网络异常",NotFound:"访问页面不存在",PermissionDenied:"无权限",ServerError:"服务端错误",MasonryList:"瀑布流列表",NotificationList:"通知中心",PersonalCenter:"个人中心",Introduction:"简介",CustomTheme:"自定义主题",Contribution:"加入新组件",StepsForm:"分步表单",Button:"Button 按钮",HamburgerMenu:"HamburgerMenu 汉堡包菜单",Link:"Link 文字链接",Tabs:"Tabs 选项卡",Rate:"Rate 评分",Tag:"Tag 标签",BasicList:"基础列表",Cascader:"Cascader 级联选择器",Chart:"OMIU 图表",Bar:"柱状图",Line:"线状图",Scatter:"散点图",Pie:"饼图",Doughnut:"环状图",Radar:"雷达图",PolarArea:"极区图",Bubble:"气泡图",Barline:"合成图",Success:"成功页",Failure:"失败页",Dialog:"Dialog 弹窗层",Avatar:"Avatar 头像",Badge:"Badge 徽章",ActionSheet:"ActionSheet 弹出式菜单",Collapse:"Collapse 折叠"};export{e as base};
|
|
@ -0,0 +1 @@
|
|||
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",ToggleIcon:"ToggleIcon",Card:"Card",Slider:"Slider",Switch:"Switch",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",PersonalCenter:"PersonalCenter",Introduction:"Introduction",CustomTheme:"Custom Theme",Contribution:"Add new component",StepsForm:"Steps Form",Button:"Button",HamburgerMenu:"HamburgerMenu",Link:"Link",Tabs:"Tabs",Tag:"Tag",Rate:"Rate",BasicList:"Basic List",Cascader:"Cascader",Chart:"OMIU Charts",Bar:"Bar",Line:"Line",Scatter:"Scatter",Pie:"Pie",Doughnut:"Doughnut",Radar:"radar",PolarArea:"polarArea",Bubble:"Bubble",Barline:"Barline",Success:"Success",Failure:"Failure",Dialog:"Dialog",Avatar:"Avatar",Badge:"Badge",ActionSheet:"ActionSheet",Collapse:"Collapse"};export{e as base};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
import{k as require$$0,g as commonjsGlobal}from"./vendor.cff7a2c5.js";var favorite={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/favorite.js")}({"./esm/favorite.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: "M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"\n}), \'Favorite\');\n\n\n//# sourceURL=webpack://%5Bname%5D/./esm/favorite.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)})(favorite);
|
|
@ -0,0 +1 @@
|
|||
import{W as e,h as r,t as o,s as n,b as m}from"./vendor.cff7a2c5.js";import"./admin-docs.d04bcd77.js";import"./index.b502f1bc.js";import"./container.b1933bec.js";import"./___vite-browser-external_commonjs-proxy.e2cda3d0.js";var u=Object.defineProperty,a=Object.getOwnPropertyDescriptor;let t=class extends e{install(){}render(){return r("code-demo-container",null,r("code-demo",{title:"汉堡包菜单",describe:"用于切换打开和关闭侧边面板的菜单按钮。",code:'\n```jsx\n<o-hamburger-menu></o-hamburger-menu>\n<o-hamburger-menu active></o-hamburger-menu>\n\n<o-hamburger-menu color="#07C160"></o-hamburger-menu>\n<o-hamburger-menu active color="#07C160"></o-hamburger-menu>\n\n<o-hamburger-menu color="#f5222d"></o-hamburger-menu>\n<o-hamburger-menu active color="#f5222d"></o-hamburger-menu>\n```\n '},r("div",{slot:"demo",class:o`flex justify-around px-5 py-5`},r("o-hamburger-menu",null),r("o-hamburger-menu",{active:!0}),r("o-hamburger-menu",{color:"#07C160"}),r("o-hamburger-menu",{active:!0,color:"#07C160"}),r("o-hamburger-menu",{color:"#f5222d"}),r("o-hamburger-menu",{active:!0,color:"#f5222d"}))))}};t.css=n.target,t=((e,r,o,n)=>{for(var m,t=n>1?void 0:n?a(r,o):r,c=e.length-1;c>=0;c--)(m=e[c])&&(t=(n?m(r,o,t):m(t))||t);return n&&t&&u(r,o,t),t})([m("hamburger-menu-component")],t);export{t as default};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
import{b as n,W as o,h as r,l as e}from"./vendor.cff7a2c5.js";var t=Object.defineProperty,a=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,d=(n,o,r)=>o in n?t(n,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[o]=r;Object.defineProperty,Object.getOwnPropertyDescriptor;let s=class extends o{constructor(){super(...arguments),this.onIconClick=(n,o,r)=>{this.fire("change",{action:r,index:o,evt:n.currentTarget})}}render(n){return r("div",((n,o)=>{for(var r in o||(o={}))i.call(o,r)&&d(n,r,o[r]);if(a)for(var r of a(o))l.call(o,r)&&d(n,r,o[r]);return n})({},e(n,"o-card",{["is-shadow-"+n.hoverable]:n.hoverable,"is-border":n.bordered})),r("slot",{name:"cover"},r("div",{class:"o-card-header"},r("div",{class:"o-card-title"},n.title),r("div",{class:"o-card-extra"},r("slot",{name:"extra"})))),r("div",{class:"o-card-body"},r("slot",null)),n.actions?r("div",{class:"o-card-footer"},n.actions.map(((o,e)=>(this._iconTag="o-icon-"+o.icon,r("button",{onClick:o=>{this.onIconClick(o,e,n.actions[e])},class:"o-card-btn"},r(this._iconTag,{class:"icon"})))))):null)}};s.css=':host {\n display: inline-block;\n}\n\n:host([block]) {\n display: block;\n}\n\n.o-card {\n display: flex;\n flex-direction: column;\n background: #FFF;\n}\n.o-card.is-border {\n border: 1px solid #EFEFEF;\n}\n.o-card.is-shadow-always {\n box-shadow: 0 1px 2px -2px #00000029, 0 3px 6px #0000001f, 0 5px 12px 4px #00000017;\n}\n.o-card.is-shadow-true:hover {\n box-shadow: 0 1px 2px -2px #00000029, 0 3px 6px #0000001f, 0 5px 12px 4px #00000017;\n transition: all 0.3s;\n}\n\n.o-card-header {\n min-height: 48px;\n padding: 0 24px;\n border-bottom: 1px solid #EFEFEF;\n border-radius: 2px 2px 0 0;\n}\n\n.o-card-title {\n float: left;\n padding: 16px 0;\n font-weight: 500;\n font-size: 18px;\n}\n\n.o-card-extra {\n float: right;\n margin-left: auto;\n padding: 16px 0;\n font-weight: 500;\n font-size: 14px;\n cursor: pointer;\n}\n\n.o-card-body {\n margin: 12px 24px;\n font-weight: 200;\n font-size: 14px;\n line-height: 1.6;\n}\n\n.o-card-footer {\n height: 56px;\n display: flex;\n justify-content: center;\n background: #FFF;\n}\n\n.o-card-btn {\n flex: 1;\n appearance: none;\n -webkit-appearance: none;\n position: relative;\n cursor: pointer;\n outline: none;\n border-top: 1px solid #EFEFEF;\n border-right: 1px solid #EFEFEF;\n border-left: none;\n border-bottom: none;\n background: #FFF;\n color: rgba(0, 0, 0, 0.54);\n padding: 6px 12px 8px;\n}\n.o-card-btn:last-child {\n border-right: none;\n}\n.o-card-btn:hover {\n background: #EFEFEF;\n color: #07C160;\n}\n\n.icon {\n font-weight: normal;\n font-style: normal;\n font-size: 24px;\n line-height: 1;\n letter-spacing: normal;\n text-transform: none;\n display: block;\n margin: 0 auto;\n white-space: nowrap;\n word-wrap: normal;\n direction: ltr;\n -webkit-font-feature-settings: "liga";\n -webkit-font-smoothing: antialiased;\n}',s.defaultProps={title:"",hoverable:"true",bordered:!0},s.propTypes={title:String,hoverable:String,actions:Array,bordered:Boolean},s=((n,o,r,e)=>{for(var t,a=o,i=n.length-1;i>=0;i--)(t=n[i])&&(a=t(a)||a);return a})([n("o-card")],s);
|
|
@ -1,16 +0,0 @@
|
|||
import{b as n,W as o,h as r,l as e}from"./vendor.cff7a2c5.js";var t=Object.defineProperty,i=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,c=(n,o,r)=>o in n?t(n,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[o]=r;Object.defineProperty,Object.getOwnPropertyDescriptor;let d=class extends o{constructor(){super(...arguments),this.onIconClick=(n,o,r)=>{this.fire("change",{action:r,index:o,evt:n.currentTarget})}}render(n){return r("div",((n,o)=>{for(var r in o||(o={}))a.call(o,r)&&c(n,r,o[r]);if(i)for(var r of i(o))l.call(o,r)&&c(n,r,o[r]);return n})({},e(n,"o-card",{["is-shadow-"+n.hoverable]:n.hoverable,"is-border":n.bordered})),r("slot",{name:"cover"},r("div",{class:"o-card-header"},r("div",{class:"o-card-title"},n.title),r("div",{class:"o-card-extra"},r("slot",{name:"extra"})))),r("div",{class:"o-card-body"},r("slot",null)),n.actions?r("div",{class:"o-card-footer"},n.actions.map(((o,e)=>(this._iconTag="o-icon-"+o.icon,r("button",{onClick:o=>{this.onIconClick(o,e,n.actions[e])},class:"o-card-btn"},r(this._iconTag,{class:"icon"})))))):null)}};d.css=':host {\n display: inline-block;\n}\n\n:host([block]) {\n display: block;\n}\n\n.o-card {\n display: flex;\n flex-direction: column;\n background: #FFF;\n}\n.o-card.is-border {\n border: 1px solid #EFEFEF;\n}\n.o-card.is-shadow-always {\n box-shadow: 0 1px 2px -2px #00000029, 0 3px 6px #0000001f, 0 5px 12px 4px #00000017;\n}\n.o-card.is-shadow-true:hover {\n box-shadow: 0 1px 2px -2px #00000029, 0 3px 6px #0000001f, 0 5px 12px 4px #00000017;\n transition: all 0.3s;\n}\n\n.o-card-header {\n min-height: 48px;\n padding: 0 24px;\n border-bottom: 1px solid #EFEFEF;\n border-radius: 2px 2px 0 0;\n}\n\n.o-card-title {\n float: left;\n padding: 16px 0;\n font-weight: 500;\n font-size: 18px;\n}\n\n.o-card-extra {\n float: right;\n margin-left: auto;\n padding: 16px 0;\n font-weight: 500;\n font-size: 14px;\n cursor: pointer;\n}\n\n.o-card-body {\n margin: 12px 24px;\n font-weight: 200;\n font-size: 14px;\n line-height: 1.6;\n}\n\n.o-card-footer {\n height: 56px;\n display: flex;\n justify-content: center;\n background: #FFF;\n}\n\n.o-card-btn {\n flex: 1;\n appearance: none;\n -webkit-appearance: none;\n position: relative;\n cursor: pointer;\n outline: none;\n border-top: 1px solid #EFEFEF;\n border-right: 1px solid #EFEFEF;\n border-left: none;\n border-bottom: none;\n background: #FFF;\n color: rgba(0, 0, 0, 0.54);\n padding: 6px 12px 8px;\n}\n.o-card-btn:last-child {\n border-right: none;\n}\n.o-card-btn:hover {\n background: #EFEFEF;\n color: #07C160;\n}\n\n.icon {\n font-weight: normal;\n font-style: normal;\n font-size: 24px;\n line-height: 1;\n letter-spacing: normal;\n text-transform: none;\n display: block;\n margin: 0 auto;\n white-space: nowrap;\n word-wrap: normal;\n direction: ltr;\n -webkit-font-feature-settings: "liga";\n -webkit-font-smoothing: antialiased;\n}',d.defaultProps={title:"",hoverable:"true",bordered:!0},d.propTypes={title:String,hoverable:String,actions:Array,bordered:Boolean},d=((n,o,r,e)=>{for(var t,i=o,a=n.length-1;a>=0;a--)(t=n[a])&&(i=t(i)||i);return i})([n("o-card")],d);
|
||||
/*! *****************************************************************************
|
||||
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 s=function(n,o){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)o.hasOwnProperty(r)&&(n[r]=o[r])})(n,o)};var p=function(){return(p=Object.assign||function(n){for(var o,r=1,e=arguments.length;r<e;r++)for(var t in o=arguments[r])Object.prototype.hasOwnProperty.call(o,t)&&(n[t]=o[t]);return n}).apply(this,arguments)};!function(o){function t(){return null!==o&&o.apply(this,arguments)||this}(function(n,o){function r(){this.constructor=n}s(n,o),n.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)})(t,o),t.prototype.render=function(n){var o;return r("a",p({disabled:n.disabled,href:n.href,target:n.target},e(n,"o-link",((o={})["o-link-"+n.type]=n.type,o["o-link-"+n.size]=n.size,o["is-underline"]=n.underline,o["is-disabled"]=n.disabled,o))),r("span",null,r("slot",null)))},t.css=":host {\n display: inline-block; }\n\n* {\n box-sizing: border-box; }\n\n.o-link {\n display: inline-flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n vertical-align: middle;\n position: relative;\n text-decoration: none;\n outline: none;\n cursor: pointer;\n padding: 0;\n font-size: 14px;\n font-weight: 500;\n border-bottom: 1px solid transparent; }\n\n.o-link:hover {\n color: #07c160;\n color: var(--o-primary, #07c160); }\n\n.o-link.is-underline:hover {\n border-bottom: 1px solid #07c160;\n border-bottom: 1px solid var(--o-primary, #07c160); }\n\n.o-link:active {\n color: #059048;\n color: var(--o-primary-active, #059048); }\n\n.o-link-primary {\n color: #07c160;\n color: var(--o-primary, #07c160); }\n\n.o-link-primary:hover {\n color: rgba(7, 193, 96, 0.618);\n color: var(--o-primary-fade-little, rgba(7, 193, 96, 0.618)); }\n\n.o-link-primary:active {\n color: #059048;\n color: var(--o-primary-active, #059048); }\n\n.o-link-primary.is-underline:hover {\n border-bottom: 1px solid rgba(7, 193, 96, 0.618);\n border-bottom: 1px solid var(--o-primary-fade-little, rgba(7, 193, 96, 0.618)); }\n\n.o-link-danger {\n color: #fa5151;\n color: var(--o-danger, #fa5151); }\n\n.o-link-danger:hover {\n color: rgba(250, 81, 81, 0.618);\n color: var(--o-danger-fade-little, rgba(250, 81, 81, 0.618)); }\n\n.o-link-danger:active {\n color: #f91f1f;\n color: var(--o-danger-active, #f91f1f); }\n\n.o-link-danger.is-underline:hover {\n border-bottom: 1px solid rgba(250, 81, 81, 0.618);\n border-bottom: 1px solid var(--o-danger-fade-little, rgba(250, 81, 81, 0.618)); }\n\n.o-link.is-disabled,\n.o-link.is-disabled:focus,\n.o-link.is-disabled:hover {\n color: #c0c4cc;\n cursor: not-allowed;\n text-decoration: none;\n border-bottom: 1px solid transparent; }\n",t.defaultProps={underline:!0,disabled:!1},t.propTypes={type:String,disabled:Boolean,underline:Boolean,href:String,target:String},t=function(n,o,r,e){var t,i=arguments.length,a=i<3?o:null===e?e=Object.getOwnPropertyDescriptor(o,r):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(n,o,r,e);else for(var l=n.length-1;l>=0;l--)(t=n[l])&&(a=(i<3?t(a):i>3?t(o,r,a):t(o,r))||a);return i>3&&a&&Object.defineProperty(o,r,a),a}([n("o-link")],t)}(o);
|
|
@ -0,0 +1,15 @@
|
|||
import{h as t,j as n,l as e,b as o,W as r}from"./vendor.cff7a2c5.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 i=function(t,n){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e])})(t,n)};var a=function(){return(a=Object.assign||function(t){for(var n,e=1,o=arguments.length;e<o;e++)for(var r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t}).apply(this,arguments)};!function(r){function l(){return null!==r&&r.apply(this,arguments)||this}(function(t,n){function e(){this.constructor=t}i(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)})(l,r),l.prototype.render=function(o){return t("i",a({},e(o,"o-icon")),t("svg",{viewBox:"0 0 "+o.view+" "+o.view,class:n({rotate:o.rotate}),width:o.scale+"em",height:o.scale+"em",fill:o.color,"aria-hidden":"true"},o.paths?o.paths.map((function(n){var e={d:n.path,fill:o.color||"black"};return n.color&&(e.fill=n.color),t("path",a({},e))})):t("path",{d:o.path})),o.children&&t("div",{style:"color:"+(o.color||"black")+";"},o.children[0]))},l.css=":host {\n display: inline-block; }\n\n.o-icon {\n text-align: center;\n display: inline-block; }\n\n.o-icon svg {\n display: inline-block;\n vertical-align: top; }\n\n.rotate {\n display: inline-block;\n -webkit-animation: rotate 1s infinite linear;\n animation: rotate 1s infinite linear; }\n\ni div {\n font-style: normal; }\n\n@-webkit-keyframes rotate {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg); } }\n\n@keyframes rotate {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg); } }\n",l.defaultProps={view:1024,scale:2},l.propTypes={path:String,paths:Object,view:Number,scale:Number,color:String,rotate:Boolean},l=function(t,n,e,o){var r,i=arguments.length,a=i<3?n:null===o?o=Object.getOwnPropertyDescriptor(n,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,n,e,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(i<3?r(a):i>3?r(n,e,a):r(n,e))||a);return i>3&&a&&Object.defineProperty(n,e,a),a}([o("o-icon")],l)}(r);
|
|
@ -0,0 +1,15 @@
|
|||
import{h as n,l as o,b as r,W as e}from"./vendor.cff7a2c5.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(n,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)o.hasOwnProperty(r)&&(n[r]=o[r])})(n,o)};var i=function(){return(i=Object.assign||function(n){for(var o,r=1,e=arguments.length;r<e;r++)for(var t in o=arguments[r])Object.prototype.hasOwnProperty.call(o,t)&&(n[t]=o[t]);return n}).apply(this,arguments)};!function(e){function l(){return null!==e&&e.apply(this,arguments)||this}(function(n,o){function r(){this.constructor=n}t(n,o),n.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)})(l,e),l.prototype.render=function(r){var e;return n("a",i({disabled:r.disabled,href:r.href,target:r.target},o(r,"o-link",((e={})["o-link-"+r.type]=r.type,e["o-link-"+r.size]=r.size,e["is-underline"]=r.underline,e["is-disabled"]=r.disabled,e))),n("span",null,n("slot",null)))},l.css=":host {\n display: inline-block; }\n\n* {\n box-sizing: border-box; }\n\n.o-link {\n display: inline-flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n vertical-align: middle;\n position: relative;\n text-decoration: none;\n outline: none;\n cursor: pointer;\n padding: 0;\n font-size: 14px;\n font-weight: 500;\n border-bottom: 1px solid transparent; }\n\n.o-link:hover {\n color: #07c160;\n color: var(--o-primary, #07c160); }\n\n.o-link.is-underline:hover {\n border-bottom: 1px solid #07c160;\n border-bottom: 1px solid var(--o-primary, #07c160); }\n\n.o-link:active {\n color: #059048;\n color: var(--o-primary-active, #059048); }\n\n.o-link-primary {\n color: #07c160;\n color: var(--o-primary, #07c160); }\n\n.o-link-primary:hover {\n color: rgba(7, 193, 96, 0.618);\n color: var(--o-primary-fade-little, rgba(7, 193, 96, 0.618)); }\n\n.o-link-primary:active {\n color: #059048;\n color: var(--o-primary-active, #059048); }\n\n.o-link-primary.is-underline:hover {\n border-bottom: 1px solid rgba(7, 193, 96, 0.618);\n border-bottom: 1px solid var(--o-primary-fade-little, rgba(7, 193, 96, 0.618)); }\n\n.o-link-danger {\n color: #fa5151;\n color: var(--o-danger, #fa5151); }\n\n.o-link-danger:hover {\n color: rgba(250, 81, 81, 0.618);\n color: var(--o-danger-fade-little, rgba(250, 81, 81, 0.618)); }\n\n.o-link-danger:active {\n color: #f91f1f;\n color: var(--o-danger-active, #f91f1f); }\n\n.o-link-danger.is-underline:hover {\n border-bottom: 1px solid rgba(250, 81, 81, 0.618);\n border-bottom: 1px solid var(--o-danger-fade-little, rgba(250, 81, 81, 0.618)); }\n\n.o-link.is-disabled,\n.o-link.is-disabled:focus,\n.o-link.is-disabled:hover {\n color: #c0c4cc;\n cursor: not-allowed;\n text-decoration: none;\n border-bottom: 1px solid transparent; }\n",l.defaultProps={underline:!0,disabled:!1},l.propTypes={type:String,disabled:Boolean,underline:Boolean,href:String,target:String},l=function(n,o,r,e){var t,i=arguments.length,l=i<3?o:null===e?e=Object.getOwnPropertyDescriptor(o,r):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(n,o,r,e);else for(var a=n.length-1;a>=0;a--)(t=n[a])&&(l=(i<3?t(l):i>3?t(o,r,l):t(o,r))||l);return i>3&&l&&Object.defineProperty(o,r,l),l}([r("o-link")],l)}(e);
|
|
@ -1 +1 @@
|
|||
import{_ as e}from"./index.db3de466.js";import{W as t,h as a,t as i,s as n,b as s}from"./vendor.cff7a2c5.js";import"./index.c5972fd1.js";import"./index.d2647d78.js";import"./index.esm.9b63c957.js";import"./index.esm.995f06ba.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.1b2d1abf.js")),["assets/export-excel.1b2d1abf.js","assets/vendor.cff7a2c5.js","assets/___vite-browser-external_commonjs-proxy.e2cda3d0.js"]).then((e=>{e.exportTableToExcel(this.table.rootNode.querySelector("table"))}))}}renderTable(){this.filterData=this.dataSource.slice(this.pageIndex*this.pageSize,this.pageIndex*this.pageSize+this.pageSize),this.update()}installed(){this.renderTable()}deleteItemById(e){const t=this.dataSource.indexOf(this.dataSource.find((t=>t.id===e)));-1!==t&&this.dataSource.splice(t,1),this.update()}render(){return a("div",{class:i`pl-0.5`},a("div",{class:i`relative h-10 text-right`},a("o-button",{class:i`relative top-2 right-2`,size:"mini",onClick:this.exportExcel},"导出Excel")),a("div",{class:i`px-2`},a("o-table",{ref:e=>this.table=e,checkbox:!1,stripe:!1,border:!1,compact:!1,columns:this.columns,dataSource:this.filterData}),a("div",{class:i`mt-3 text-right`},a("o-pagination",{total:this.dataSource.length,"current-page":this.pageIndex,"page-size":this.pageSize,onchange:this.change}))))}};o.css=n.target,o=((e,t,a,i)=>{for(var n,s=i>1?void 0:i?r(t,a):t,o=e.length-1;o>=0;o--)(n=e[o])&&(s=(i?n(t,a,s):n(s))||s);return i&&s&&d(t,a,s),s})([s("inline-editing")],o);export{o as default};
|
||||
import{_ as e}from"./index.9d2a3fd7.js";import{W as t,h as a,t as i,s as n,b as s}from"./vendor.cff7a2c5.js";import"./index.c5972fd1.js";import"./index.d2647d78.js";import"./index.esm.9b63c957.js";import"./index.esm.995f06ba.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.1b2d1abf.js")),["assets/export-excel.1b2d1abf.js","assets/vendor.cff7a2c5.js","assets/___vite-browser-external_commonjs-proxy.e2cda3d0.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};
|
|
@ -0,0 +1 @@
|
|||
import{W as n,h as e,t as i,s as o,b as l}from"./vendor.cff7a2c5.js";import"./index.esm.68dc5239.js";import"./accessible-rounded.4c4b5ec5.js";import"./admin-docs.d04bcd77.js";import"./index.b502f1bc.js";import"./container.b1933bec.js";import"./___vite-browser-external_commonjs-proxy.e2cda3d0.js";var r=Object.defineProperty,d=Object.getOwnPropertyDescriptor;let t=class extends n{install(){}render(){const n={breakInside:"avoid",padding:"0 0 0 0"};return e("code-demo-container",null,e("code-demo",{title:"文字链接",describe:"Base",code:'\n```jsx\n<o-link target="_blank" href="https://tencent.github.io/omi/">Default</o-link>\n<o-link type="primary">Primary</o-link>\n<o-link type="danger">Danger</o-link>\n<o-link type="primary">\n <o-icon-ac-unit-outlined></o-icon-ac-unit-outlined> Icon\n</o-link>\n<o-link type="danger">Icon <o-icon-accessible-rounded></o-icon-accessible-rounded>\n</o-link>\n```\n ',style:n},e("div",{slot:"demo",class:i`flex justify-around px-5 py-5`},e("o-link",{target:"_blank",href:"https://tencent.github.io/omi/"},"Default"),e("o-link",{type:"primary"},"Primary"),e("o-link",{type:"danger"},"Danger"),e("o-link",{type:"primary"},e("o-icon-ac-unit-outlined",null)," Icon"),e("o-link",{type:"danger"},"Icon ",e("o-icon-accessible-rounded",null)))),e("code-demo",{title:"禁用",describe:"Disabled",code:'\n```jsx\n<o-link disabled>Default</o-link>\n<o-link disabled type="primary">Primary</o-link>\n<o-link disabled type="danger">Danger</o-link>\n<o-link disabled type="primary">\n <o-icon-ac-unit-outlined></o-icon-ac-unit-outlined> Icon\n</o-link>\n<o-link disabled type="danger">Icon <o-icon-accessible-rounded></o-icon-accessible-rounded>\n</o-link>\n```\n ',style:n},e("div",{slot:"demo",class:i`flex justify-around px-5 py-5`},e("o-link",{disabled:!0},"Default"),e("o-link",{disabled:!0,type:"primary"},"Primary"),e("o-link",{disabled:!0,type:"danger"},"Danger"),e("o-link",{disabled:!0,type:"primary"},e("o-icon-ac-unit-outlined",null)," Icon"),e("o-link",{disabled:!0,type:"danger"},"Icon ",e("o-icon-accessible-rounded",null)))),e("code-demo",{title:"去下划线",describe:"Underline False",code:'\n```jsx\n<o-link underline={0}>Default</o-link>\n<o-link underline={0} type="primary">Primary</o-link>\n<o-link underline={0} type="danger">Danger</o-link>\n```\n ',style:n},e("div",{slot:"demo",class:i`flex justify-around px-5 py-5`},e("o-link",{underline:0},"Default"),e("o-link",{underline:0,type:"primary"},"Primary"),e("o-link",{underline:0,type:"danger"},"Danger"))))}};t.css=o.target,t=((n,e,i,o)=>{for(var l,t=o>1?void 0:o?d(e,i):e,a=n.length-1;a>=0;a--)(l=n[a])&&(t=(o?l(e,i,t):l(t))||t);return o&&t&&r(e,i,t),t})([l("link-component")],t);export{t as default};
|
|
@ -1,4 +1,4 @@
|
|||
import{g as t,W as e,t as a,h as o,s as i,b as c}from"./vendor.cff7a2c5.js";import"./index.esm.1f32ffc0.js";import"./add-comment-rounded.360026e0.js";import"./add-ic-call-rounded.e1527b5e.js";import{e as d,M as s}from"./masonry.35caa13f.js";var r,n,l,u={exports:{}};
|
||||
import{g as t,W as e,t as a,h as o,s as i,b as c}from"./vendor.cff7a2c5.js";import"./index.es.ba57df94.js";import"./index.esm.68dc5239.js";import"./add-comment-rounded.360026e0.js";import"./add-ic-call-rounded.e1527b5e.js";import{e as d,M as s}from"./masonry.35caa13f.js";var r,n,l,u={exports:{}};
|
||||
/*!
|
||||
* imagesLoaded v4.1.4
|
||||
* JavaScript is all like "You images are done yet or what?"
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,15 @@
|
|||
import{h as e,c as t,b as o,W as r,t as n,s as a}from"./vendor.cff7a2c5.js";import"./index.esm.54a3f493.js";import"./admin-docs.d04bcd77.js";import"./index.b502f1bc.js";import"./container.b1933bec.js";import"./___vite-browser-external_commonjs-proxy.e2cda3d0.js";
|
||||
/*! *****************************************************************************
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
PERFORMANCE OF THIS SOFTWARE.
|
||||
***************************************************************************** */var c=function(e,t){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)};!function(t){function r(){var e,o,r=t.call(this)||this;return r.onMouseover=function(e){r.state.value=e.target.dataset.rate},r.onMouseout=function(){r.state.value=r.props.value},r.state=(e={value:r.props.value},o=r,new Proxy(e,{set:function(e,t,r,n){return Reflect.set(e,t,r,n),o.update(),!0}})),r}(function(e,t){function o(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)})(r,t),r.prototype.submit=function(e){this.updateProps({value:e})},r.prototype.render=function(t){var o=this,r=this.state.value,n=Array.from({length:Math.floor(t.max)},(function(e,t){return t+1}));return e("div",{className:"rating"},n.map((function(n,a){return e("o-icon",{view:"24",color:(c=a,s=r,c<=s?"#f7e620":c>s?"#ccc":void 0),scale:"2",path:t.svg,onMouseover:o.onMouseover,onMouseout:o.onMouseout,onClick:o.submit.bind(o,a),"data-rate":a});var c,s})))},r.css=void 0,r.defaultProps={size:10,value:0,max:5,precision:1,color:"#f7e620",svg:"M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z"},r.propTypes={value:Number,max:Number,precision:Number,icon:String,color:String,svg:String},r=function(e,t,o,r){var n,a=arguments.length,c=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,o,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(c=(a<3?n(c):a>3?n(t,o,c):n(t,o))||c);return a>3&&c&&Object.defineProperty(t,o,c),c}([o("o-rate")],r)}(r),t(e("o-rate",{value:1}),"#root",{ignoreAttrs:!0});var s=Object.defineProperty,i=Object.getOwnPropertyDescriptor;let u=class extends r{install(){}render(){return e("code-demo-container",null,e("code-demo",{title:"评分",describe:"基础评分使用",code:'\n```html\n<o-rate value="4" max="10" color="red"></o-rate>\n```\n '},e("div",{slot:"demo",class:n`px-5 py-5`},e("o-rate",{value:"4",max:"10",color:"red"}))))}};u.css=[a.target],u=((e,t,o,r)=>{for(var n,a=r>1?void 0:r?i(t,o):t,c=e.length-1;c>=0;c--)(n=e[c])&&(a=(r?n(t,o,a):n(a))||a);return r&&a&&s(t,o,a),a})([o("rate-component")],u);export{u as default};
|
|
@ -1,30 +0,0 @@
|
|||
import{h as t,j as e,l as o,b as r,W as n,c as a,t as i,s as c}from"./vendor.cff7a2c5.js";import"./admin-docs.d04bcd77.js";import"./index.b502f1bc.js";import"./container.b1933bec.js";import"./___vite-browser-external_commonjs-proxy.e2cda3d0.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 l=function(t,e){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)};var s=function(){return(s=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)};!function(n){function a(){return null!==n&&n.apply(this,arguments)||this}(function(t,e){function o(){this.constructor=t}l(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)})(a,n),a.prototype.render=function(r){return t("i",s({},o(r,"o-icon")),t("svg",{viewBox:"0 0 "+r.view+" "+r.view,class:e({rotate:r.rotate}),width:r.scale+"em",height:r.scale+"em",fill:r.color,"aria-hidden":"true"},r.paths?r.paths.map((function(e){var o={d:e.path,fill:r.color||"black"};return e.color&&(o.fill=e.color),t("path",s({},o))})):t("path",{d:r.path})),r.children&&t("div",{style:"color:"+(r.color||"black")+";"},r.children[0]))},a.css=":host {\n display: inline-block; }\n\n.o-icon {\n text-align: center;\n display: inline-block; }\n\n.o-icon svg {\n display: inline-block;\n vertical-align: top; }\n\n.rotate {\n display: inline-block;\n -webkit-animation: rotate 1s infinite linear;\n animation: rotate 1s infinite linear; }\n\ni div {\n font-style: normal; }\n\n@-webkit-keyframes rotate {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg); } }\n\n@keyframes rotate {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg); } }\n",a.defaultProps={view:1024,scale:2},a.propTypes={path:String,paths:Object,view:Number,scale:Number,color:String,rotate:Boolean},a=function(t,e,o,r){var n,a=arguments.length,i=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,o,r);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(i=(a<3?n(i):a>3?n(e,o,i):n(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i}([r("o-icon")],a)}(n);
|
||||
/*! *****************************************************************************
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
PERFORMANCE OF THIS SOFTWARE.
|
||||
***************************************************************************** */
|
||||
var p=function(t,e){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)};!function(e){function o(){var t,o,r=e.call(this)||this;return r.onMouseover=function(t){r.state.value=t.target.dataset.rate},r.onMouseout=function(){r.state.value=r.props.value},r.state=(t={value:r.props.value},o=r,new Proxy(t,{set:function(t,e,r,n){return Reflect.set(t,e,r,n),o.update(),!0}})),r}(function(t,e){function o(){this.constructor=t}p(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)})(o,e),o.prototype.submit=function(t){this.updateProps({value:t})},o.prototype.render=function(e){var o=this,r=this.state.value,n=Array.from({length:Math.floor(e.max)},(function(t,e){return e+1}));return t("div",{className:"rating"},n.map((function(n,a){return t("o-icon",{view:"24",color:(i=a,c=r,i<=c?"#f7e620":i>c?"#ccc":void 0),scale:"2",path:e.svg,onMouseover:o.onMouseover,onMouseout:o.onMouseout,onClick:o.submit.bind(o,a),"data-rate":a});var i,c})))},o.css=void 0,o.defaultProps={size:10,value:0,max:5,precision:1,color:"#f7e620",svg:"M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z"},o.propTypes={value:Number,max:Number,precision:Number,icon:String,color:String,svg:String},o=function(t,e,o,r){var n,a=arguments.length,i=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,o,r);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(i=(a<3?n(i):a>3?n(e,o,i):n(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i}([r("o-rate")],o)}(n),a(t("o-rate",{value:1}),"#root",{ignoreAttrs:!0});var u=Object.defineProperty,f=Object.getOwnPropertyDescriptor;let d=class extends n{install(){}render(){return t("code-demo-container",null,t("code-demo",{title:"评分",describe:"基础评分使用",code:'\n```html\n<o-rate value="4" max="10" color="red"></o-rate>\n```\n '},t("div",{slot:"demo",class:i`px-5 py-5`},t("o-rate",{value:"4",max:"10",color:"red"}))))}};d.css=[c.target],d=((t,e,o,r)=>{for(var n,a=r>1?void 0:r?f(e,o):e,i=t.length-1;i>=0;i--)(n=t[i])&&(a=(r?n(e,o,a):n(a))||a);return r&&a&&u(e,o,a),a})([r("rate-component")],d);export{d as default};
|
|
@ -1 +1 @@
|
|||
import{W as e,h as t,t as c,s,b as o}from"./vendor.cff7a2c5.js";import"./index.esm.e4ef5c9f.js";import"./admin-docs.d04bcd77.js";import"./index.b502f1bc.js";import"./container.b1933bec.js";import"./___vite-browser-external_commonjs-proxy.e2cda3d0.js";var i=Object.defineProperty,r=Object.getOwnPropertyDescriptor;let n=class extends e{install(){}render(){return t("code-demo-container",null,t("code-demo",{title:"开关按钮",describe:"基础演示",code:'\n```jsx\n<o-switch id="switchA" checked="0">\n</o-switch>\n\n<o-switch id="switchB" checked>\n</o-switch>\n```\n '},t("div",{slot:"demo",class:c`flex justify-around px-5 py-5`},t("o-switch",{id:"switchA",checked:!1}),t("o-switch",{id:"switchB",checked:!0}))))}};n.css=[s.target,"o-button{margin-left:10px;}"],n=((e,t,c,s)=>{for(var o,n=s>1?void 0:s?r(t,c):t,d=e.length-1;d>=0;d--)(o=e[d])&&(n=(s?o(t,c,n):o(n))||n);return s&&n&&i(t,c,n),n})([o("switch-component")],n);export{n as default};
|
||||
import{W as e,h as t,t as c,s,b as o}from"./vendor.cff7a2c5.js";import"./index.esm.e4ef5c9f.js";import"./admin-docs.d04bcd77.js";import"./index.b502f1bc.js";import"./container.b1933bec.js";import"./___vite-browser-external_commonjs-proxy.e2cda3d0.js";var i=Object.defineProperty,r=Object.getOwnPropertyDescriptor;let d=class extends e{install(){}render(){return t("code-demo-container",null,t("code-demo",{title:"开关按钮",describe:"基础演示",code:'\n```jsx\n<o-switch id="switchA" checked="0">\n</o-switch>\n\n<o-switch id="switchB" checked>\n</o-switch>\n```\n '},t("div",{slot:"demo",class:c`flex justify-around px-5 py-5`},t("o-switch",{id:"switchA",checked:!1}),t("o-switch",{id:"switchB",checked:!0}))))}};d.css=[s.target,"o-switch{margin-left:10px;}"],d=((e,t,c,s)=>{for(var o,d=s>1?void 0:s?r(t,c):t,n=e.length-1;n>=0;n--)(o=e[n])&&(d=(s?o(t,c,d):o(d))||d);return s&&d&&i(t,c,d),d})([o("switch-component")],d);export{d as default};
|
File diff suppressed because one or more lines are too long
|
@ -7,7 +7,7 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>OMI ADMIN</title>
|
||||
|
||||
<script type="module" crossorigin src="./assets/index.db3de466.js"></script>
|
||||
<script type="module" crossorigin src="./assets/index.9d2a3fd7.js"></script>
|
||||
<link rel="modulepreload" href="./assets/vendor.cff7a2c5.js">
|
||||
<link rel="stylesheet" href="./assets/index.86b5a4a0.css">
|
||||
</head>
|
||||
|
|
Loading…
Reference in New Issue