Merge branch 'master' of https://github.com/ringozzt/omi into ringo

This commit is contained in:
ringosix 2021-08-23 14:01:35 +08:00
commit 357c429401
123 changed files with 1498 additions and 151 deletions

6
components/collapse/.gitignore vendored Normal file
View File

@ -0,0 +1,6 @@
.DS_Store
dist
node_modules
*.local
*.lock
*.log

View File

@ -0,0 +1,31 @@
# Collapse
> Collapse
## Install
```bash
npm i
```
## Dev
```bash
npm start
```
## Preview
```bash
//html mode demo
http://localhost:3000
//jsx mode demo
http://localhost:3000/demo.html
```
## Release
```bash
npm run build
```

View File

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/src/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Omiu</title>
<script type="module" src="/src/demo.tsx"></script>
</head>
<body>
<h1>JSX Mode <a href="./index.html">HTML Mode</a></h1>
</body>
</html>

View File

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/src/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Omiu</title>
<script type="module" src="/src/index.tsx"></script>
</head>
<body>
<h1>HTML Mode <a href="./demo.html">JSX Mode</a></h1>
<o-counter count="2"></o-counter>
<script>
document
.querySelector('o-counter')
.addEventListener('CountChanged', function (evt) {
console.log(evt.detail)
})
</script>
</body>
</html>

View File

@ -0,0 +1,41 @@
{
"name": "@omiu/collapse",
"version": "0.0.1",
"main": "dist/index.es.js",
"exports": {
".": "./dist/index.es.js"
},
"types": "types/index.d.ts",
"scripts": {
"start": "yarn watch & vite",
"dev": "yarn start",
"build": "vite build && yarn build:scss",
"build:demo": "vite build",
"build:scss": "sass src/index.scss src/index.css",
"watch": "sass --watch src/index.scss src/index.css --no-source-map",
"pretest": "yarn build",
"test": "web-test-runner \"test/*.js\" --node-resolve"
},
"files": [
"dist",
"types"
],
"dependencies": {
"@omiu/common": "latest",
"omi": "latest"
},
"devDependencies": {
"@open-wc/testing": "^2.5.33",
"@types/node": "^16.4.13",
"@web/test-runner": "^0.13.15",
"sass": "^1.37.5",
"typescript": "^4.3.5",
"vite": "^2.4.4"
},
"license": "MIT",
"keywords": [
"omi",
"omiu",
"form"
]
}

View File

@ -0,0 +1,82 @@
import { tag, h, WeElement, render } from 'omi'
import './index.tsx'
export type Props = {}
const tagName = 'my-demo'
@tag(tagName)
export default class MyDemo extends WeElement<Props> {
openedA = false
openedB = false
openedC = false
render(props: Props) {
return (
<div>
<button onClick={() => {
this.openedA = !this.openedA
this.update()
}}>toggle</button>
<o-collapse
opened={this.openedA}
>
<div>
<p>abc</p>
<p>def</p>
<p>ghc</p>
</div>
</o-collapse>
<div>
<button onClick={() => {
this.openedB = !this.openedB
this.update()
}}>toggle(horizontal)</button>
</div>
<o-collapse
opened={this.openedB}
horizontal={true}
>
<div style=' max-height: 250px;overflow: auto;'>
<p>abc的房间撒范德萨范德萨拉开房间啊撒</p>
<p></p>
<p></p>
</div>
</o-collapse>
<div>
<button onClick={() => {
this.openedC = !this.openedC
this.update()
}}>toggle(no animation)</button>
</div>
<o-collapse
opened={this.openedC}
noAnimation={true}
>
<div >
<p>abc的房间撒范德萨范德萨拉开房间啊撒</p>
<p></p>
<p></p>
</div>
</o-collapse>
<div>xxx</div>
</div>
)
}
}
render(<my-demo></my-demo>, 'body', {
ignoreAttrs: true
})

12
components/collapse/src/global.d.ts vendored Executable file
View File

@ -0,0 +1,12 @@
declare module '*.svg'
declare module '*.png'
declare module '*.jpg'
declare module '*.jpeg'
declare module '*.gif'
declare module '*.bmp'
declare module '*.tiff'
declare module '*.less'
declare module '*.css'
declare module '*.scss'
declare module '*.sass'
declare module '*.webp'

View File

@ -0,0 +1,14 @@
:host {
display: block;
overflow: visible;
}
:host(.o-collapse-closed) {
display: none;
}
:host(:not(.o-collapse-opened)) {
overflow: hidden;
}
/*# sourceMappingURL=index.css.map */

View File

@ -0,0 +1 @@
{"version":3,"sourceRoot":"","sources":["index.scss"],"names":[],"mappings":"AAAC;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE","file":"index.css"}

View File

@ -0,0 +1,12 @@
:host {
display: block;
overflow: visible;
}
:host(.o-collapse-closed) {
display: none;
}
:host(:not(.o-collapse-opened)) {
overflow: hidden;
}

163
components/collapse/src/index.tsx Executable file
View File

@ -0,0 +1,163 @@
import { tag, h, WeElement, OverwriteProps } from 'omi'
import * as css from './index.scss'
export type Attrs = {
opened?: boolean
horizontal?: boolean
noAnimation?: boolean
}
const tagName = 'o-collapse'
declare global {
namespace JSX {
interface IntrinsicElements {
[tagName]: Omi.Props & Attrs
}
}
}
export type Props = OverwriteProps<Attrs, { count: number }>
@tag(tagName)
export default class Collapse extends WeElement<Props> {
static css = css.default ? css.default : css
static defaultProps = {
opened: false,
horizontal: false,
noAnimation: false
}
static propTypes = {
opened: Boolean,
horizontal: Boolean,
noAnimation: Boolean
}
installed() {
this.style.transitionProperty = this._dimensionMaxCss
this.updateSize(this.props.opened ? 'auto' : '0px', false)
this.toggleClass('o-collapse-closed', true)
this.toggleClass('o-collapse-opened', false)
this.addEventListener('transitionend', () => {
this._transitionEnd()
})
this._opened = this.props.opened
}
_opened?: boolean = false
receiveProps() {
if (this._opened !== this.props.opened) {
this.updateSize(this.props.opened ? 'auto' : '0px', true)
this._opened = this.props.opened
}
}
_desiredSize?: string
updateSize(size: string, hasAnimation: boolean) {
this._transitionStart()
size = size === 'auto' ? '' : size
this._updateTransition(false)
const startSize = this._calcSize()
if (size === '') {
this.style[this._dimensionMax] = ''
size = this._calcSize()
}
this.style[this._dimensionMax] = startSize
this.scrollTop = this.scrollTop
this._updateTransition(hasAnimation)
this.style[this._dimensionMax] = size
if (this.props.noAnimation) {
this._transitionEnd()
}
}
get dimension() {
return this.props.horizontal ? 'width' : 'height'
}
get _dimensionMax() {
return this.props.horizontal ? 'maxWidth' : 'maxHeight'
}
get _dimensionMaxCss() {
return this.props.horizontal ? 'max-width' : 'max-height'
}
toggle() {
this.props.opened = !this.props.opened
this.receiveProps()
}
show() {
this.props.opened = true
this.receiveProps()
}
hide() {
this.props.opened = false
this.receiveProps()
}
_updateTransition(enabled) {
this.style.transitionDuration = (enabled && !this.props.noAnimation) ? '.3s' : '0s'
}
_transitionStart() {
this.setAttribute('aria-hidden', !this.props.opened)
this.toggleClass('o-collapse-closed', false)
this.toggleClass('o-collapse-opened', false)
}
_transitionEnd() {
this.style[this._dimensionMax] = this._desiredSize
this.toggleClass('o-collapse-closed', !this.props.opened)
this.toggleClass('o-collapse-opened', this.props.opened)
this._updateTransition(false)
}
toggleClass(className, state) {
if (state) {
this.classList.add(className)
} else {
this.classList.remove(className)
}
}
_calcSize() {
return this.getBoundingClientRect()[this.dimension] + 'px'
}
render() {
return <slot></slot>
}
}

View File

@ -0,0 +1,16 @@
import { html, fixture, expect } from '@open-wc/testing'
import '../dist/index.es.js'
describe('o-counter ', () => {
it('default prop', async () => {
const el = await fixture(html`<o-collapse>
<div>abc</div>
</o-collapse>`)
expect(el.shadowRoot.innerHTML).to.equal(
`<slot></slot>`
)
})
})

View File

@ -0,0 +1,29 @@
{
"compilerOptions": {
"module": "esnext",
"lib": [
"es2017",
"dom",
"dom.iterable"
],
"declaration": true,
"emitDeclarationOnly": true,
"outDir": "./types",
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"experimentalDecorators": true,
"forceConsistentCasingInFileNames": true,
"jsx": "react",
"jsxFactory": "h",
},
"include": [
"src/**/*.ts",
"src/**/*.tsx"
],
"exclude": []
}

View File

@ -0,0 +1,25 @@
import { resolve } from 'path'
import { defineConfig } from 'vite'
// https://vitejs.dev/config/
export default defineConfig({
build: {
lib: {
entry: resolve(__dirname, 'src/index.tsx'),
name: 'index',
formats: ['es'],
fileName: (format) => `index.${format}.js`
},
rollupOptions: {
external: /^omi/,
input: {
main: resolve(__dirname, 'index.html'),
admin: resolve(__dirname, 'demo.html')
}
}
},
esbuild: {
jsxFactory: 'h',
jsxFragment: 'h.f'
}
})

View File

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

View File

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

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
import{h,b as tag,W as WeElement,j as require$$0,g as commonjsGlobal}from"./vendor.a0eb460d.js";
import{h,b as tag,W as WeElement,k as require$$0,g as commonjsGlobal}from"./vendor.cff7a2c5.js";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

View File

@ -1 +1 @@
import{j as require$$0,g as commonjsGlobal}from"./vendor.a0eb460d.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);
import{k as require$$0,g as commonjsGlobal}from"./vendor.cff7a2c5.js";var addIcCallRounded={exports:{}};(function(module,exports){var factory;factory=function(__WEBPACK_EXTERNAL_MODULE_omi__){return function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s="./esm/add-ic-call-rounded.js")}({"./esm/add-ic-call-rounded.js":function(module,exports,__webpack_require__){eval('\nObject.defineProperty(exports, "__esModule", { value: true });\nvar omi_1 = __webpack_require__(/*! omi */ "omi");\nvar createSvgIcon_1 = __webpack_require__(/*! ./utils/createSvgIcon */ "./esm/utils/createSvgIcon.js");\nexports.default = createSvgIcon_1.default(omi_1.h("path", {\n d: "M14 8h2v2c0 .55.45 1 1 1s1-.45 1-1V8h2c.55 0 1-.45 1-1s-.45-1-1-1h-2V4c0-.55-.45-1-1-1s-1 .45-1 1v2h-2c-.55 0-1 .45-1 1s.45 1 1 1zm5.21 7.27l-2.54-.29c-.61-.07-1.21.14-1.64.57l-1.84 1.84c-2.83-1.44-5.15-3.75-6.59-6.59l1.85-1.85c.43-.43.64-1.04.57-1.64l-.29-2.52c-.11-1.01-.97-1.78-1.98-1.78H5.02c-1.13 0-2.07.94-2 2.07.53 8.54 7.36 15.36 15.89 15.89 1.13.07 2.07-.87 2.07-2v-1.73c.01-1-.76-1.86-1.77-1.97z"\n}), \'AddIcCallRounded\');\n\n\n//# sourceURL=webpack://%5Bname%5D/./esm/add-ic-call-rounded.js?')},"./esm/utils/createSvgIcon.js":function(module,exports,__webpack_require__){eval("\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar omi_1 = __webpack_require__(/*! omi */ \"omi\");\nvar hyphenateRE = /\\B([A-Z])/g;\nvar hyphenate = function (str) {\n return str.replace(hyphenateRE, '-$1').toLowerCase();\n};\nfunction createSvgIcon(path, displayName) {\n var _a;\n omi_1.define(hyphenate('OIcon' + displayName), (_a = /** @class */ (function (_super) {\n __extends(class_1, _super);\n function class_1() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n class_1.prototype.render = function () {\n return omi_1.h('svg', {\n viewBox: '0 0 24 24',\n }, path);\n };\n return class_1;\n }(omi_1.WeElement)),\n _a.css = \":host {\\n fill: currentColor;\\n width: 1em;\\n height: 1em;\\n display: inline-block;\\n vertical-align: -0.125em;\\n transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\\n flex-shrink: 0;\\n user-select: none;\\n}\",\n _a));\n}\nexports.default = createSvgIcon;\n\n\n//# sourceURL=webpack://%5Bname%5D/./esm/utils/createSvgIcon.js?")},omi:function(module,exports){eval("module.exports = __WEBPACK_EXTERNAL_MODULE_omi__;\n\n//# sourceURL=webpack://%5Bname%5D/external_%7B%22commonjs%22:%22omi%22,%22commonjs2%22:%22omi%22,%22amd%22:%22omi%22,%22root%22:%22Omi%22%7D?")}}).default},module.exports=factory(require$$0)})(addIcCallRounded);

View File

@ -1 +1 @@
.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}
.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}

View File

@ -1,4 +1,4 @@
import{h,b as tag,W as WeElement,j as require$$0,g as commonjsGlobal,s as sheet,t as tw}from"./vendor.a0eb460d.js";import"./index.1619fcbf.js";import"./index.f7ef9d66.js";import"./index.esm.a2d5e556.js";import"./index.esm.86ed57d6.js";var t$1=Object.defineProperty,e$1=Object.defineProperties,i=Object.getOwnPropertyDescriptors,n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,a=(t,e,n)=>e in t?t$1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,r$1=(t,e)=>{for(var i in e||(e={}))o.call(e,i)&&a(t,i,e[i]);if(n)for(var i of n(e))s.call(e,i)&&a(t,i,e[i]);return t},l=(t,e)=>e$1(t,i(e))
import{h,b as tag,W as WeElement,k as require$$0,g as commonjsGlobal,s as sheet,t as tw}from"./vendor.cff7a2c5.js";import"./index.c5972fd1.js";import"./index.d2647d78.js";import"./index.esm.9b63c957.js";import"./index.esm.995f06ba.js";var t$1=Object.defineProperty,e$1=Object.defineProperties,i=Object.getOwnPropertyDescriptors,n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,a=(t,e,n)=>e in t?t$1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,r$1=(t,e)=>{for(var i in e||(e={}))o.call(e,i)&&a(t,i,e[i]);if(n)for(var i of n(e))s.call(e,i)&&a(t,i,e[i]);return t},l=(t,e)=>e$1(t,i(e))
/*!
* Chart.js v3.5.0
* https://www.chartjs.org

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{W as l,t as e,h as a,s,b as d}from"./vendor.a0eb460d.js";import"./index.esm.a2d5e556.js";import"./index.es.2682d1d8.js";import"./index.f7ef9d66.js";import"./index.es.0b78433c.js";var i=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 max-w-2xl`,s=e`w-16 float-left align-middle`;return a("div",{style:{background:"#ebedef"},class:e`pt-4 pl-4 pr-4 pb-44 `},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:d,errors:i,touched:t,onChange:c,onSubmit:r,onBlur:o})=>a("div",{class:e`text-sm rounded shadow px-10 py-10 bg-white 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:d.name,name:"name",block:!0}),a("div",{class:e`text-red-500 h-6 text-sm`},i.name&&t.name&&i.name))),a("div",{class:l},a("label",{class:s},"Email"),a("div",{class:e`leading-8 ml-16`},a("o-input",{name:"email",value:d.email,onChange:c,placeholder:"我是带校验的",onBlur:o,size:"small",block:!0}),a("div",{class:e`text-red-500 h-6 text-sm`},i.email&&t.email&&i.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`},i.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`},i.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`},i.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`},i.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`},i.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`},i.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`},i.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`},i.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`},i.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 d,c=s>1?void 0:s?t(e,a):e,r=l.length-1;r>=0;r--)(d=l[r])&&(c=(s?d(e,a,c):d(c))||c);return s&&c&&i(e,a,c),c})([d("admin-form")],c);export{c as default};

View File

@ -0,0 +1 @@
import{W as l,t as e,h as a,s,b as d}from"./vendor.cff7a2c5.js";import"./index.esm.9b63c957.js";import"./index.esm.e4ef5c9f.js";import"./index.es.a02ce9e5.js";import"./index.d2647d78.js";import"./index.es.b9d0fd12.js";var i=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 max-w-2xl`,s=e`w-16 float-left align-middle`;return a("div",{style:{background:"#ebedef"},class:e`pt-4 pl-4 pr-4 pb-44 `},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:d,errors:i,touched:t,onChange:c,onSubmit:r,onBlur:o})=>a("div",{class:e`text-sm rounded shadow px-10 py-10 bg-white 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:d.name,name:"name",block:!0}),a("div",{class:e`text-red-500 h-6 text-sm`},i.name&&t.name&&i.name))),a("div",{class:l},a("label",{class:s},"Email"),a("div",{class:e`leading-8 ml-16`},a("o-input",{name:"email",value:d.email,onChange:c,placeholder:"我是带校验的",onBlur:o,size:"small",block:!0}),a("div",{class:e`text-red-500 h-6 text-sm`},i.email&&t.email&&i.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`},i.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`},i.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`},i.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`},i.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`},i.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`},i.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`},i.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`},i.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`},i.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 d,c=s>1?void 0:s?t(e,a):e,r=l.length-1;r>=0;r--)(d=l[r])&&(c=(s?d(e,a,c):d(c))||c);return s&&c&&i(e,a,c),c})([d("admin-form")],c);export{c as default};

View File

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

View File

@ -1 +1 @@
import{j as require$$0,g as commonjsGlobal,W as WeElement,h,t as tw,s as sheet,b as tag}from"./vendor.a0eb460d.js";var checkCircleSharp={exports:{}};(function(module,exports){var factory;factory=function(__WEBPACK_EXTERNAL_MODULE_omi__){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./esm/check-circle-sharp.js")}({"./esm/check-circle-sharp.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 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"\n}), \'CheckCircleSharp\');\n\n\n//# sourceURL=webpack://%5Bname%5D/./esm/check-circle-sharp.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)})(checkCircleSharp);var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__decorateClass=(e,t,n,r)=>{for(var o,s=r>1?void 0:r?__getOwnPropDesc(t,n):t,c=e.length-1;c>=0;c--)(o=e[c])&&(s=(r?o(t,n,s):o(s))||s);return r&&s&&__defProp(t,n,s),s};const tagName="admin-success";let admin_success_default=class extends WeElement{render(){return h("div",{class:tw``},h("div",{class:tw`text-center relative`,style:{top:"calc(50vh - 10em)"}},h("div",null,h("o-icon-check-circle-sharp",{class:tw`text-green-500 text-6xl`})),h("p",{class:tw`text-gray-500`},"恭喜你,提交成功"),h("p",{class:tw` text-gray-400 py-4 text-sm`},"3个工作日内会进行审核请注意查收短信")))}};admin_success_default.css=sheet.target,admin_success_default=__decorateClass([tag(tagName)],admin_success_default);export{admin_success_default as default};
import{k as require$$0,g as commonjsGlobal,W as WeElement,h,t as tw,s as sheet,b as tag}from"./vendor.cff7a2c5.js";var checkCircleSharp={exports:{}};(function(module,exports){var factory;factory=function(__WEBPACK_EXTERNAL_MODULE_omi__){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./esm/check-circle-sharp.js")}({"./esm/check-circle-sharp.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 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"\n}), \'CheckCircleSharp\');\n\n\n//# sourceURL=webpack://%5Bname%5D/./esm/check-circle-sharp.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)})(checkCircleSharp);var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__decorateClass=(e,t,n,r)=>{for(var o,c=r>1?void 0:r?__getOwnPropDesc(t,n):t,s=e.length-1;s>=0;s--)(o=e[s])&&(c=(r?o(t,n,c):o(c))||c);return r&&c&&__defProp(t,n,c),c};const tagName="admin-success";let admin_success_default=class extends WeElement{render(){return h("div",{class:tw``},h("div",{class:tw`text-center relative`,style:{top:"calc(50vh - 10em)"}},h("div",null,h("o-icon-check-circle-sharp",{class:tw`text-green-500 text-6xl`})),h("p",{class:tw`text-gray-500`},"恭喜你,提交成功"),h("p",{class:tw` text-gray-400 py-4 text-sm`},"3个工作日内会进行审核请注意查收短信")))}};admin_success_default.css=sheet.target,admin_success_default=__decorateClass([tag(tagName)],admin_success_default);export{admin_success_default as default};

View File

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

View File

@ -1 +1 @@
import{W as r,h as e,t as a,s as n,b as t}from"./vendor.a0eb460d.js";import"./admin-docs.b7316951.js";import"./index.54d5604a.js";import"./container.e364d57b.js";import"./index.esm.73669ee9.js";import"./___vite-browser-external_commonjs-proxy.bf73b432.js";var o=Object.defineProperty,s=Object.getOwnPropertyDescriptor;let b=class extends r{constructor(){super(...arguments),this.options={legend:{display:!1},scales:{yAxes:[{ticks:{beginAtZero:!0}}]}},this.data={labels:["Red","Blue","Yellow","Green","Purple","Orange"],datasets:[{label:"# of Votes",data:[12,19,3,5,2,3],backgroundColor:["rgba(255, 99, 132, 0.2)","rgba(54, 162, 235, 0.2)","rgba(255, 206, 86, 0.2)","rgba(75, 192, 192, 0.2)","rgba(153, 102, 255, 0.2)","rgba(255, 159, 64, 0.2)"],borderColor:["rgba(255,99,132,1)","rgba(54, 162, 235, 1)","rgba(255, 206, 86, 1)","rgba(75, 192, 192, 1)","rgba(153, 102, 255, 1)","rgba(255, 159, 64, 1)"],borderWidth:1}]},this.mdA="\n ```html\n<o-bar id=\"myBar\" width=\"600\" height=\"300\" data=\"{\n labels: ['Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange'],\n datasets: [{\n label: '# of Votes',\n data: [12, 19, 3, 5, 2, 3],\n backgroundColor: [\n 'rgba(255, 99, 132, 0.2)',\n 'rgba(54, 162, 235, 0.2)',\n 'rgba(255, 206, 86, 0.2)',\n 'rgba(75, 192, 192, 0.2)',\n 'rgba(153, 102, 255, 0.2)',\n 'rgba(255, 159, 64, 0.2)'\n ],\n borderColor: [\n 'rgba(255,99,132,1)',\n 'rgba(54, 162, 235, 1)',\n 'rgba(255, 206, 86, 1)',\n 'rgba(75, 192, 192, 1)',\n 'rgba(153, 102, 255, 1)',\n 'rgba(255, 159, 64, 1)'\n ],\n borderWidth: 1\n }]\n}\"\n options=\"{\n legend: {\n display: false\n },\n scales: {\n yAxes: [{\n ticks: {\n beginAtZero: true\n }\n }]\n }\n}\"></o-bar>\n ```\n "}installed(){}render(){return e("code-demo-container",null,e("code-demo",{title:"柱状图",describe:"柱状图显示",code:this.mdA},e("div",{slot:"demo",class:a`px-3 py-5`},e("o-bar",{id:"myBar",width:"560",height:"300",data:this.data,options:this.options}))))}};b.css=[n.target],b=((r,e,a,n)=>{for(var t,b=n>1?void 0:n?s(e,a):e,d=r.length-1;d>=0;d--)(t=r[d])&&(b=(n?t(e,a,b):t(b))||b);return n&&b&&o(e,a,b),b})([t("bar-chart")],b);export{b as default};
import{W as r,h as e,t as a,s as n,b as t}from"./vendor.cff7a2c5.js";import"./admin-docs.d04bcd77.js";import"./index.b502f1bc.js";import"./container.b1933bec.js";import"./index.esm.925a0872.js";import"./___vite-browser-external_commonjs-proxy.e2cda3d0.js";var o=Object.defineProperty,s=Object.getOwnPropertyDescriptor;let d=class extends r{constructor(){super(...arguments),this.options={legend:{display:!1},scales:{yAxes:[{ticks:{beginAtZero:!0}}]}},this.data={labels:["Red","Blue","Yellow","Green","Purple","Orange"],datasets:[{label:"# of Votes",data:[12,19,3,5,2,3],backgroundColor:["rgba(255, 99, 132, 0.2)","rgba(54, 162, 235, 0.2)","rgba(255, 206, 86, 0.2)","rgba(75, 192, 192, 0.2)","rgba(153, 102, 255, 0.2)","rgba(255, 159, 64, 0.2)"],borderColor:["rgba(255,99,132,1)","rgba(54, 162, 235, 1)","rgba(255, 206, 86, 1)","rgba(75, 192, 192, 1)","rgba(153, 102, 255, 1)","rgba(255, 159, 64, 1)"],borderWidth:1}]},this.mdA="\n ```html\n<o-bar id=\"myBar\" width=\"600\" height=\"300\" data=\"{\n labels: ['Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange'],\n datasets: [{\n label: '# of Votes',\n data: [12, 19, 3, 5, 2, 3],\n backgroundColor: [\n 'rgba(255, 99, 132, 0.2)',\n 'rgba(54, 162, 235, 0.2)',\n 'rgba(255, 206, 86, 0.2)',\n 'rgba(75, 192, 192, 0.2)',\n 'rgba(153, 102, 255, 0.2)',\n 'rgba(255, 159, 64, 0.2)'\n ],\n borderColor: [\n 'rgba(255,99,132,1)',\n 'rgba(54, 162, 235, 1)',\n 'rgba(255, 206, 86, 1)',\n 'rgba(75, 192, 192, 1)',\n 'rgba(153, 102, 255, 1)',\n 'rgba(255, 159, 64, 1)'\n ],\n borderWidth: 1\n }]\n}\"\n options=\"{\n legend: {\n display: false\n },\n scales: {\n yAxes: [{\n ticks: {\n beginAtZero: true\n }\n }]\n }\n}\"></o-bar>\n ```\n "}installed(){}render(){return e("code-demo-container",null,e("code-demo",{title:"柱状图",describe:"柱状图显示",code:this.mdA},e("div",{slot:"demo",class:a`px-3 py-5`},e("o-bar",{id:"myBar",width:"560",height:"300",data:this.data,options:this.options}))))}};d.css=[n.target],d=((r,e,a,n)=>{for(var t,d=n>1?void 0:n?s(e,a):e,b=r.length-1;b>=0;b--)(t=r[b])&&(d=(n?t(e,a,d):t(d))||d);return n&&d&&o(e,a,d),d})([t("bar-chart")],d);export{d as default};

View File

@ -0,0 +1 @@
import{W as r,h as a,t as n,s as e,b}from"./vendor.cff7a2c5.js";import"./admin-docs.d04bcd77.js";import"./index.b502f1bc.js";import"./container.b1933bec.js";import"./index.esm.925a0872.js";import"./___vite-browser-external_commonjs-proxy.e2cda3d0.js";var o=Object.defineProperty,t=Object.getOwnPropertyDescriptor;let g=class extends r{constructor(){super(...arguments),this.options={legend:{display:!1},scales:{yAxes:[{ticks:{beginAtZero:!0}}]}},this.data={labels:["Red","Blue","Yellow","Green","Purple","Orange"],datasets:[{label:"# of Votes",data:[12,19,3,5,2,3],backgroundColor:["rgba(255, 99, 132, 0.2)","rgba(54, 162, 235, 0.2)","rgba(255, 206, 86, 0.2)","rgba(75, 192, 192, 0.2)","rgba(153, 102, 255, 0.2)","rgba(255, 159, 64, 0.2)"],borderColor:["rgba(255,99,132,1)","rgba(54, 162, 235, 1)","rgba(255, 206, 86, 1)","rgba(75, 192, 192, 1)","rgba(153, 102, 255, 1)","rgba(255, 159, 64, 1)"],borderWidth:1},{type:"line",label:"# of Votes",data:[12,19,3,5,2,3],backgroundColor:["rgba(255, 99, 132, 0.2)","rgba(54, 162, 235, 0.2)","rgba(255, 206, 86, 0.2)","rgba(75, 192, 192, 0.2)","rgba(153, 102, 255, 0.2)","rgba(255, 159, 64, 0.2)"],borderColor:["rgba(255,99,132,1)","rgba(54, 162, 235, 1)","rgba(255, 206, 86, 1)","rgba(75, 192, 192, 1)","rgba(153, 102, 255, 1)","rgba(255, 159, 64, 1)"],borderWidth:1}]},this.mdA="\n ```html\n<o-bar id=\"myBar\" width=\"600\" height=\"300\"\n data=\"{\n labels: ['Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange'],\n datasets: [{\n label: '# of Votes',\n data: [12, 19, 3, 5, 2, 3],\n backgroundColor: [\n 'rgba(255, 99, 132, 0.2)',\n 'rgba(54, 162, 235, 0.2)',\n 'rgba(255, 206, 86, 0.2)',\n 'rgba(75, 192, 192, 0.2)',\n 'rgba(153, 102, 255, 0.2)',\n 'rgba(255, 159, 64, 0.2)'\n ],\n borderColor: [\n 'rgba(255,99,132,1)',\n 'rgba(54, 162, 235, 1)',\n 'rgba(255, 206, 86, 1)',\n 'rgba(75, 192, 192, 1)',\n 'rgba(153, 102, 255, 1)',\n 'rgba(255, 159, 64, 1)'\n ],\n borderWidth: 1\n },\n {\n type: 'line',\n label: '# of Votes',\n data: [12, 19, 3, 5, 2, 3],\n backgroundColor: [\n 'rgba(255, 99, 132, 0.2)',\n 'rgba(54, 162, 235, 0.2)',\n 'rgba(255, 206, 86, 0.2)',\n 'rgba(75, 192, 192, 0.2)',\n 'rgba(153, 102, 255, 0.2)',\n 'rgba(255, 159, 64, 0.2)'\n ],\n borderColor: [\n 'rgba(255,99,132,1)',\n 'rgba(54, 162, 235, 1)',\n 'rgba(255, 206, 86, 1)',\n 'rgba(75, 192, 192, 1)',\n 'rgba(153, 102, 255, 1)',\n 'rgba(255, 159, 64, 1)'\n ],\n borderWidth: 1\n }\n ]\n }\"\n\n options=\"{\n legend: {\n display: false\n },\n scales: {\n yAxes: [{\n ticks: {\n beginAtZero: true\n }\n }]\n }\n }\">\n</o-bar>\n ```\n "}installed(){}render(){return a("code-demo-container",null,a("code-demo",{title:"合成图",describe:"合成图显示",code:this.mdA},a("div",{slot:"demo",class:n`px-3 py-5`},a("o-bar",{id:"myBar",width:"600",height:"300",data:this.data,options:this.options}))))}};g.css=[e.target],g=((r,a,n,e)=>{for(var b,g=e>1?void 0:e?t(a,n):a,d=r.length-1;d>=0;d--)(b=r[d])&&(g=(e?b(a,n,g):b(g))||g);return e&&g&&o(a,n,g),g})([b("barline-chart")],g);export{g as default};

View File

@ -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",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};

View File

@ -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",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",Success:"Success",Failure:"Failure",Dialog:"Dialog",Avatar:"Avatar"};export{e as base};

View File

@ -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 弹出式提示",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};

View File

@ -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 滑块",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:"散点图",Success:"成功页",Failure:"失败页",Dialog:"Dialog 弹窗层",Avatar:"Avatar 头像"};export{e as base};

View File

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

View File

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

View File

@ -1 +0,0 @@
import{W as e,h as t,t as s,s as r,b as a}from"./vendor.a0eb460d.js";var l=Object.defineProperty,i=Object.getOwnPropertyDescriptor;let c=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提供设计支持")))}};c.css=r.target,c=((e,t,s,r)=>{for(var a,c=r>1?void 0:r?i(t,s):t,n=e.length-1;n>=0;n--)(a=e[n])&&(c=(r?a(t,s,c):a(c))||c);return r&&c&&l(t,s,c),c})([a("browser-incompatible")],c);export{c as default};

View File

@ -0,0 +1 @@
import{W as r,h as n,t as o,s as t,b as e}from"./vendor.cff7a2c5.js";import"./admin-docs.d04bcd77.js";import"./index.b502f1bc.js";import"./container.b1933bec.js";import"./index.esm.925a0872.js";import"./___vite-browser-external_commonjs-proxy.e2cda3d0.js";var a=Object.defineProperty,d=Object.getOwnPropertyDescriptor;let s=class extends r{constructor(){super(...arguments),this.options={aspectRatio:1,legend:!1,tooltips:!1,elements:{point:{borderColor:"#ccc",borderWidth:1,hoverBackgroundColor:"transparent",hoverBorderColor:"red",hoverBorderWidth:2,radius:"3 + Math.abs($v)/100 * $w/24"}}},this.data={datasets:[{label:"My First dataset",borderColor:"rgb(55,99,132)",backgroundColor:"transparent",data:[{x:11,y:44,v:22},{x:77,y:11,v:11},{x:55,y:22,v:99},{x:44,y:33,v:34},{x:33,y:9,v:98},{x:20,y:1,v:1},{x:55,y:3,v:2}]},{label:"My Second dataset",borderColor:"rgb(255,99,132)",backgroundColor:"transparent",data:[{x:18,y:44,v:22},{x:77,y:21,v:11},{x:55,y:122,v:99},{x:84,y:3,v:34},{x:33,y:29,v:98},{x:20,y:111,v:1},{x:55,y:13,v:2}]}]},this.mdA="\n ```html\n<o-bubble id=\"myChart\" width=\"300\" height=\"350\"\n data=\"{\n datasets: [{\n label: 'My First dataset',\n borderColor: 'rgb(55,99,132)',\n backgroundColor: 'transparent',\n data: [\n { x: 11, y: 44, v: 22 },\n { x: 77, y: 11, v: 11 },\n { x: 55, y: 22, v: 99 },\n { x: 44, y: 33, v: 34 },\n { x: 33, y: 9, v: 98 },\n { x: 20, y: 1, v: 1 },\n { x: 55, y: 3, v: 2 }\n ]\n }, {\n label: 'My Second dataset',\n borderColor: 'rgb(255,99,132)',\n backgroundColor: 'transparent',\n data: [\n { x: 18, y: 44, v: 22 },\n { x: 77, y: 21, v: 11 },\n { x: 55, y: 122, v: 99 },\n { x: 84, y: 3, v: 34 },\n { x: 33, y: 29, v: 98 },\n { x: 20, y: 111, v: 1 },\n { x: 55, y: 13, v: 2 }\n ]\n }]\n }\"\n\n options=\"{\n aspectRatio: 1,\n legend: false,\n tooltips: false,\n\n elements: {\n point: {\n borderColor: '#ccc',\n\n borderWidth: 1,\n\n hoverBackgroundColor: 'transparent',\n\n hoverBorderColor: 'red',\n\n hoverBorderWidth: 2,\n\n radius: '3 + Math.abs($v)/100 * $w/24'\n }\n }\n }\">\n</o-bubble>\n ```\n "}installed(){}render(){return n("code-demo-container",null,n("code-demo",{title:"气泡图",describe:"气泡图显示",code:this.mdA},n("div",{slot:"demo",class:o`px-3 py-5`},n("o-bubble",{id:"myChart",width:"300",height:"350",data:this.data,options:this.options}))))}};s.css=[t.target],s=((r,n,o,t)=>{for(var e,s=t>1?void 0:t?d(n,o):n,i=r.length-1;i>=0;i--)(e=r[i])&&(s=(t?e(n,o,s):e(s))||s);return t&&s&&a(n,o,s),s})([e("bubble-chart")],s);export{s as default};

View File

@ -1 +1 @@
import{W as e,h as n,t as a,s as l,b as o}from"./vendor.a0eb460d.js";import"./index.es.0b78433c.js";import"./admin-docs.b7316951.js";import"./index.54d5604a.js";import"./container.e364d57b.js";import"./___vite-browser-external_commonjs-proxy.bf73b432.js";var s=Object.defineProperty,c=Object.getOwnPropertyDescriptor;let d=class extends e{installed(){}render(){const e={breakInside:"avoid",padding:"0 0 0 0",overflow:"visible"},l=[{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:"云游君"}]},{value:"disabled",label:"禁用",disabled:!0}];return n("code-demo-container",null,n("code-demo",{title:"级联选择器",describe:"根据选项树深度生成级联选择菜单",code:"\n```js\n// 可选项\nconst options = [\n {\n value: 'components',\n label: '组件',\n children: [\n {\n value: 'basic',\n label: '基础',\n children: [\n {\n value: 'input',\n label: '输入框'\n },\n {\n value: 'button',\n label: '按钮'\n },\n {\n value: 'card',\n label: '卡片'\n }\n ]\n },\n {\n value: 'form',\n label: '表单',\n children: [\n {\n value: 'select',\n label: '选择器'\n }\n ]\n },\n {\n value: 'advanced',\n label: '高级',\n children: [\n {\n value: 'tree',\n label: '树'\n },\n {\n value: 'cascader',\n label: '级联选择器'\n }\n ]\n }\n ]\n },\n {\n value: 'author',\n label: '作者',\n children: [\n {\n value: 'dntzhang',\n label: '当耐特'\n },\n {\n value: 'YunYouJun',\n label: '云游君'\n }\n ]\n },\n {\n value: 'disabled',\n label: '禁用',\n disabled: true\n }\n]\n```\n\n```html\n// jsx or tsx\n<o-cascader options={options}></o-cascader>\n```\n ",style:e},n("div",{slot:"demo",class:a`px-5 py-5`},n("o-cascader",{options:l}))),n("code-demo",{title:"禁用",describe:"禁用状态下的呈现",code:"\n```html\n<o-cascader\n disabled\n value={['components', 'basic', 'card']}\n options={options}\n></o-cascader>\n```\n ",style:e},n("div",{slot:"demo",class:a`px-5 py-5`},n("o-cascader",{disabled:!0,value:["components","basic","card"],options:l}))),n("code-demo",{title:"尺寸",describe:"支持 4 种尺寸大小",code:'\n```html\n<o-cascader options={options}></o-cascader>\n<o-cascader size="medium" options={options}></o-cascader>\n<o-cascader size="small" options={options}></o-cascader>\n<o-cascader size="mini" options={options}></o-cascader>\n```\n ',style:e},n("div",{slot:"demo",class:a`px-5 py-5`},n("o-cascader",{options:l}),n("br",null),n("br",null),n("o-cascader",{size:"medium",options:l}),n("br",null),n("br",null),n("o-cascader",{size:"small",options:l}),n("br",null),n("br",null),n("o-cascader",{size:"mini",options:l}))))}};d.css=[l.target],d=((e,n,a,l)=>{for(var o,d=l>1?void 0:l?c(n,a):n,r=e.length-1;r>=0;r--)(o=e[r])&&(d=(l?o(n,a,d):o(d))||d);return l&&d&&s(n,a,d),d})([o("cascader-component")],d);export{d as default};
import{W as e,h as n,t as a,s as l,b as o}from"./vendor.cff7a2c5.js";import"./index.es.b9d0fd12.js";import"./admin-docs.d04bcd77.js";import"./index.b502f1bc.js";import"./container.b1933bec.js";import"./___vite-browser-external_commonjs-proxy.e2cda3d0.js";var s=Object.defineProperty,c=Object.getOwnPropertyDescriptor;let d=class extends e{installed(){}render(){const e={breakInside:"avoid",padding:"0 0 0 0",overflow:"visible"},l=[{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:"云游君"}]},{value:"disabled",label:"禁用",disabled:!0}];return n("code-demo-container",null,n("code-demo",{title:"级联选择器",describe:"根据选项树深度生成级联选择菜单",code:"\n```js\n// 可选项\nconst options = [\n {\n value: 'components',\n label: '组件',\n children: [\n {\n value: 'basic',\n label: '基础',\n children: [\n {\n value: 'input',\n label: '输入框'\n },\n {\n value: 'button',\n label: '按钮'\n },\n {\n value: 'card',\n label: '卡片'\n }\n ]\n },\n {\n value: 'form',\n label: '表单',\n children: [\n {\n value: 'select',\n label: '选择器'\n }\n ]\n },\n {\n value: 'advanced',\n label: '高级',\n children: [\n {\n value: 'tree',\n label: '树'\n },\n {\n value: 'cascader',\n label: '级联选择器'\n }\n ]\n }\n ]\n },\n {\n value: 'author',\n label: '作者',\n children: [\n {\n value: 'dntzhang',\n label: '当耐特'\n },\n {\n value: 'YunYouJun',\n label: '云游君'\n }\n ]\n },\n {\n value: 'disabled',\n label: '禁用',\n disabled: true\n }\n]\n```\n\n```html\n// jsx or tsx\n<o-cascader options={options}></o-cascader>\n```\n ",style:e},n("div",{slot:"demo",class:a`px-5 py-5`},n("o-cascader",{options:l}))),n("code-demo",{title:"禁用",describe:"禁用状态下的呈现",code:"\n```html\n<o-cascader\n disabled\n value={['components', 'basic', 'card']}\n options={options}\n></o-cascader>\n```\n ",style:e},n("div",{slot:"demo",class:a`px-5 py-5`},n("o-cascader",{disabled:!0,value:["components","basic","card"],options:l}))),n("code-demo",{title:"尺寸",describe:"支持 4 种尺寸大小",code:'\n```html\n<o-cascader options={options}></o-cascader>\n<o-cascader size="medium" options={options}></o-cascader>\n<o-cascader size="small" options={options}></o-cascader>\n<o-cascader size="mini" options={options}></o-cascader>\n```\n ',style:e},n("div",{slot:"demo",class:a`px-5 py-5`},n("o-cascader",{options:l}),n("br",null),n("br",null),n("o-cascader",{size:"medium",options:l}),n("br",null),n("br",null),n("o-cascader",{size:"small",options:l}),n("br",null),n("br",null),n("o-cascader",{size:"mini",options:l}))))}};d.css=[l.target],d=((e,n,a,l)=>{for(var o,d=l>1?void 0:l?c(n,a):n,r=e.length-1;r>=0;r--)(o=e[r])&&(d=(l?o(n,a,d):o(d))||d);return l&&d&&s(n,a,d),d})([o("cascader-component")],d);export{d as default};

View File

@ -1 +1 @@
import{j as require$$0,g as commonjsGlobal}from"./vendor.a0eb460d.js";var chatOutlined={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/chat-outlined.js")}({"./esm/chat-outlined.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: "M4 4h16v12H5.17L4 17.17V4m0-2c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2H4zm2 10h8v2H6v-2zm0-3h12v2H6V9zm0-3h12v2H6V6z"\n}), \'ChatOutlined\');\n\n\n//# sourceURL=webpack://%5Bname%5D/./esm/chat-outlined.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)})(chatOutlined);
import{k as require$$0,g as commonjsGlobal}from"./vendor.cff7a2c5.js";var chatOutlined={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/chat-outlined.js")}({"./esm/chat-outlined.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: "M4 4h16v12H5.17L4 17.17V4m0-2c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2H4zm2 10h8v2H6v-2zm0-3h12v2H6V9zm0-3h12v2H6V6z"\n}), \'ChatOutlined\');\n\n\n//# sourceURL=webpack://%5Bname%5D/./esm/chat-outlined.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)})(chatOutlined);

File diff suppressed because one or more lines are too long

View File

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

View File

@ -1 +1 @@
import{j as require$$0,g as commonjsGlobal}from"./vendor.a0eb460d.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);
import{k as require$$0,g as commonjsGlobal}from"./vendor.cff7a2c5.js";var deleteOutline={exports:{}};(function(module,exports){var factory;factory=function(__WEBPACK_EXTERNAL_MODULE_omi__){return function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s="./esm/delete-outline.js")}({"./esm/delete-outline.js":function(module,exports,__webpack_require__){eval('\nObject.defineProperty(exports, "__esModule", { value: true });\nvar omi_1 = __webpack_require__(/*! omi */ "omi");\nvar createSvgIcon_1 = __webpack_require__(/*! ./utils/createSvgIcon */ "./esm/utils/createSvgIcon.js");\nexports.default = createSvgIcon_1.default(omi_1.h("path", {\n d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5l-1-1h-5l-1 1H5v2h14V4z"\n}), \'DeleteOutline\');\n\n\n//# sourceURL=webpack://%5Bname%5D/./esm/delete-outline.js?')},"./esm/utils/createSvgIcon.js":function(module,exports,__webpack_require__){eval("\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar omi_1 = __webpack_require__(/*! omi */ \"omi\");\nvar hyphenateRE = /\\B([A-Z])/g;\nvar hyphenate = function (str) {\n return str.replace(hyphenateRE, '-$1').toLowerCase();\n};\nfunction createSvgIcon(path, displayName) {\n var _a;\n omi_1.define(hyphenate('OIcon' + displayName), (_a = /** @class */ (function (_super) {\n __extends(class_1, _super);\n function class_1() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n class_1.prototype.render = function () {\n return omi_1.h('svg', {\n viewBox: '0 0 24 24',\n }, path);\n };\n return class_1;\n }(omi_1.WeElement)),\n _a.css = \":host {\\n fill: currentColor;\\n width: 1em;\\n height: 1em;\\n display: inline-block;\\n vertical-align: -0.125em;\\n transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\\n flex-shrink: 0;\\n user-select: none;\\n}\",\n _a));\n}\nexports.default = createSvgIcon;\n\n\n//# sourceURL=webpack://%5Bname%5D/./esm/utils/createSvgIcon.js?")},omi:function(module,exports){eval("module.exports = __WEBPACK_EXTERNAL_MODULE_omi__;\n\n//# sourceURL=webpack://%5Bname%5D/external_%7B%22commonjs%22:%22omi%22,%22commonjs2%22:%22omi%22,%22amd%22:%22omi%22,%22root%22:%22Omi%22%7D?")}}).default},module.exports=factory(require$$0)})(deleteOutline);

View File

@ -0,0 +1 @@
import{W as n,h as o,t,s as e,b as i}from"./vendor.cff7a2c5.js";import"./index.esm.aca77b66.js";import{a as s,c as l,p as c}from"./index.esm.6eba5c78.js";import"./admin-docs.d04bcd77.js";import"./index.b502f1bc.js";import"./container.b1933bec.js";import"./___vite-browser-external_commonjs-proxy.e2cda3d0.js";var a=Object.defineProperty,r=Object.getOwnPropertyDescriptor;let m=class extends n{constructor(){super(...arguments),this.visibleA=!1}install(){}render(){return o("code-demo-container",null,o("code-demo",{title:"弹窗",describe:"基础演示",code:'\n```jsx\n<o-dialog visible={this.visibleA} title="提示">\n <span>你还omiu dialog</span>\n <span slot="footer">\n <o-button size="small">取 消</o-button>\n <o-button size="small" type="primary">确 定</o-button>\n </span>\n</o-dialog>\n```\n '},o("div",{slot:"demo",class:t`px-5 py-5`},o("o-dialog",{visible:this.visibleA,title:"提示"},o("span",null,"你还omiu dialog"),o("span",{slot:"footer"},o("o-button",{size:"small",onClick:n=>{this.visibleA=!1,this.update()}},"取 消"),o("o-button",{size:"small",onClick:n=>{this.visibleA=!1,this.update()},type:"primary"},"确 定"))),o("o-button",{onClick:n=>{this.visibleA=!0,this.update()},value:"4",max:"10",color:"red"},"显示弹窗"))),o("code-demo",{title:"弹窗",describe:"基础演示",code:"\n```jsx\n<o-button onClick={e => {\n alert({\n msg: 'Simple Message',\n title: 'Msg',\n confirmButtonText: 'OK',\n onConfirm: function () {\n console.log('ok')\n }\n })\n}} type=\"default\">alert</o-button>\n\n<o-button onClick={e => {\n confirm({\n msg: 'Simple Message',\n title: 'Msg',\n cancelButtonText: 'Cancel',\n confirmButtonText: 'OK',\n onCancel: function () {\n\n },\n onConfirm: function () {\n console.log('ok')\n }\n })\n}} type=\"default\">confirm</o-button>\n\n<o-button onClick={e => {\n prompt({\n msg: 'Simple Message',\n title: 'Msg',\n cancelButtonText: 'Cancel',\n confirmButtonText: 'OK',\n onCancel: function () {\n\n },\n onConfirm: function (val) {\n console.log(val)\n }\n })\n}} type=\"default\">prompt</o-button>\n```\n "},o("div",{slot:"demo",class:t`px-5 py-5`},o("o-button",{onClick:n=>{s({msg:"Simple Message",title:"Msg",confirmButtonText:"OK",onConfirm:function(){console.log("ok")}})},type:"default"},"alert"),o("o-button",{onClick:n=>{l({msg:"Simple Message",title:"Msg",cancelButtonText:"Cancel",confirmButtonText:"OK",onCancel:function(){},onConfirm:function(){console.log("ok")}})},type:"default"},"confirm"),o("o-button",{onClick:n=>{c({msg:"Simple Message",title:"Msg",cancelButtonText:"Cancel",confirmButtonText:"OK",onCancel:function(){},onConfirm:function(n){console.log(n)}})},type:"default"},"prompt"))))}};m.css=[e.target,"o-button{margin-left:10px;}"],m=((n,o,t,e)=>{for(var i,s=e>1?void 0:e?r(o,t):o,l=n.length-1;l>=0;l--)(i=n[l])&&(s=(e?i(o,t,s):i(s))||s);return e&&s&&a(o,t,s),s})([i("dialog-component")],m);export{m as default};

View File

@ -0,0 +1 @@
import{W as t,h as e,t as n,s as o,b as a}from"./vendor.cff7a2c5.js";import"./admin-docs.d04bcd77.js";import"./index.b502f1bc.js";import"./container.b1933bec.js";import"./index.esm.925a0872.js";import"./___vite-browser-external_commonjs-proxy.e2cda3d0.js";var r=Object.defineProperty,i=Object.getOwnPropertyDescriptor;let d=class extends t{constructor(){super(...arguments),this.options={responsive:!0,legend:{position:"top"},title:{display:!0,text:"Omim Pie Chart"},animation:{animateScale:!0,animateRotate:!0}},this.data={labels:["Red","Blue","Yellow","Green","Purple","Orange"],datasets:[{label:"# of Votes",data:[12,19,3,5,2,3],backgroundColor:["rgba(255,99,132,1)","rgba(54, 162, 235, 1)","rgba(255, 206, 86, 1)","rgba(75, 192, 192, 1)","rgba(153, 102, 255, 1)","rgba(255, 159, 64, 1)"],borderColor:"white",borderWidth:1}]},this.mdA="\n ```html\n<o-doughnut id=\"myDoughnut\" width=\"300\" height=\"300\"\n data=\"{\n labels: ['Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange'],\n datasets: [{\n label: '# of Votes',\n data: [12, 19, 3, 5, 2, 3],\n backgroundColor: [\n 'rgba(255,99,132,1)',\n 'rgba(54, 162, 235, 1)',\n 'rgba(255, 206, 86, 1)',\n 'rgba(75, 192, 192, 1)',\n 'rgba(153, 102, 255, 1)',\n 'rgba(255, 159, 64, 1)'\n ],\n borderColor: 'white',\n borderWidth: 1\n }]\n }\"\n\n options=\"{\n responsive: true,\n legend: {\n position: 'top'\n },\n title: {\n display: true,\n text: 'Omim Doughnut Chart'\n },\n animation: {\n animateScale: true,\n animateRotate: true\n }\n }\">\n</o-doughnut>\n ```\n "}installed(){}render(){return e("code-demo-container",null,e("code-demo",{title:"环状图",describe:"环状图显示",code:this.mdA},e("div",{slot:"demo",class:n`px-3 py-5`},e("o-doughnut",{id:"myDoughnut",width:"300",height:"300",data:this.data,options:this.options}))))}};d.css=[o.target],d=((t,e,n,o)=>{for(var a,d=o>1?void 0:o?i(e,n):e,s=t.length-1;s>=0;s--)(a=t[s])&&(d=(o?a(e,n,d):a(d))||d);return o&&d&&r(e,n,d),d})([a("doughnut-chart")],d);export{d as default};

View File

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

View File

@ -0,0 +1 @@
import{W as e,h as t,t as r,s as o,b as s}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 d=Object.defineProperty,n=Object.getOwnPropertyDescriptor;let c=class extends e{constructor(){super(...arguments),this.mdA="\n ```html\n <div>example</div>\n ```\n "}installed(){}render(){return t("code-demo-container",null,t("code-demo",{title:"例子",describe:"不同类型的标签",code:this.mdA},t("div",{slot:"demo",class:r`px-5 py-5`},t("div",null,"example"))))}};c.css=[o.target],c=((e,t,r,o)=>{for(var s,c=o>1?void 0:o?n(t,r):t,i=e.length-1;i>=0;i--)(s=e[i])&&(c=(o?s(t,r,c):s(c))||c);return o&&c&&d(t,r,c),c})([s("name-component")],c);export{c as default};

View File

@ -1 +0,0 @@
import{W as e,h as t,t as r,s as o,b as s}from"./vendor.a0eb460d.js";import"./admin-docs.b7316951.js";import"./index.54d5604a.js";import"./container.e364d57b.js";import"./___vite-browser-external_commonjs-proxy.bf73b432.js";var n=Object.defineProperty,d=Object.getOwnPropertyDescriptor;let i=class extends e{constructor(){super(...arguments),this.mdA="\n ```html\n <div>example</div>\n ```\n "}installed(){}render(){return t("code-demo-container",null,t("code-demo",{title:"例子",describe:"不同类型的标签",code:this.mdA},t("div",{slot:"demo",class:r`px-5 py-5`},t("div",null,"example"))))}};i.css=[o.target],i=((e,t,r,o)=>{for(var s,i=o>1?void 0:o?d(t,r):t,a=e.length-1;a>=0;a--)(s=e[a])&&(i=(o?s(t,r,i):s(i))||i);return o&&i&&n(t,r,i),i})([s("name-component")],i);export{i as default};

View File

@ -0,0 +1 @@
html,body{padding:0;margin:0;overflow:hidden}.text{font-size:60px;font-family:cursive}svg{width:100%;height:100%}.use-text{fill:none;stroke:#fff;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:#fff;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%}}

View File

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

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

View File

@ -1 +0,0 @@
body,html{padding:0;margin:0;overflow:hidden}.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

View File

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

View File

@ -1,4 +1,4 @@
var t=Object.defineProperty,e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,o=(e,n,r)=>n in e?t(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,i=(t,i)=>{for(var c in i||(i={}))n.call(i,c)&&o(t,c,i[c]);if(e)for(var c of e(i))r.call(i,c)&&o(t,c,i[c]);return t},c=(t,e,n)=>(o(t,"symbol"!=typeof e?e+"":e,n),n);import{h as p,k as a,b as s,W as l}from"./vendor.a0eb460d.js";
var t=Object.defineProperty,e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,o=(e,n,r)=>n in e?t(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,i=(t,i)=>{for(var c in i||(i={}))n.call(i,c)&&o(t,c,i[c]);if(e)for(var c of e(i))r.call(i,c)&&o(t,c,i[c]);return t},c=(t,e,n)=>(o(t,"symbol"!=typeof e?e+"":e,n),n);import{h as p,l as a,b as s,W as l}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

View File

@ -1,4 +1,4 @@
import{b as n,W as o,h as r,k as e}from"./vendor.a0eb460d.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);
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

View File

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

File diff suppressed because one or more lines are too long

View File

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

View File

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

View File

@ -0,0 +1,15 @@
import{h as n,l as o,b as t,W as e}from"./vendor.cff7a2c5.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 r=function(n,o){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(n[t]=o[t])})(n,o)};var i=function(){return(i=Object.assign||function(n){for(var o,t=1,e=arguments.length;t<e;t++)for(var r in o=arguments[t])Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r]);return n}).apply(this,arguments)};!function(e){function c(){var n=null!==e&&e.apply(this,arguments)||this;return n.onChange=function(){n.fire("change",n._ele.checked)},n}(function(n,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function t(){this.constructor=n}r(n,o),n.prototype=null===o?Object.create(o):(t.prototype=o.prototype,new t)})(c,e),c.prototype.render=function(t){var e=this;return t.checked?n("label",i({for:"x_"+this.elementId},o(t,"o-switch-cp")),n("input",{id:"x_"+this.elementId,ref:function(n){e._ele=n},class:"o-switch-cp__input",type:"checkbox",onChange:this.onChange,checked:!0}),n("div",{class:"o-switch-cp__box"})):n("input",i({},o(t,"o-switch"),{type:"checkbox",ref:function(n){e._ele=n},onChange:this.onChange}))},c.css=':host {\n display: inline-block; }\n\n* {\n padding: 0;\n margin: 0;\n box-sizing: border-box; }\n\n.o-switch {\n -webkit-appearance: none;\n appearance: none;\n display: inline-block; }\n\n.o-switch-cp {\n display: inline-block; }\n\n.o-switch,\n.o-switch-cp__box {\n position: relative;\n width: 40px;\n height: 20px;\n border: 1px solid #DFDFDF;\n outline: 0;\n border-radius: 16px;\n box-sizing: border-box;\n background-color: #DFDFDF;\n -webkit-transition: background-color 0.1s, border 0.1s;\n transition: background-color 0.1s, border 0.1s; }\n\n.o-switch:before,\n.o-switch-cp__box:before {\n content: " ";\n position: absolute;\n top: 0;\n left: 0;\n width: 38px;\n height: 18px;\n border-radius: 15px;\n background-color: #FDFDFD;\n -webkit-transition: -webkit-transform 0.35s cubic-bezier(0.45, 1, 0.4, 1);\n transition: -webkit-transform 0.35s cubic-bezier(0.45, 1, 0.4, 1);\n transition: transform 0.35s cubic-bezier(0.45, 1, 0.4, 1);\n transition: transform 0.35s cubic-bezier(0.45, 1, 0.4, 1), -webkit-transform 0.35s cubic-bezier(0.45, 1, 0.4, 1); }\n\n.o-switch:after,\n.o-switch-cp__box:after {\n content: " ";\n position: absolute;\n top: 0;\n left: 0;\n width: 18px;\n height: 18px;\n border-radius: 15px;\n background-color: #FFFFFF;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);\n -webkit-transition: -webkit-transform 0.35s cubic-bezier(0.4, 0.4, 0.25, 1.35);\n transition: -webkit-transform 0.35s cubic-bezier(0.4, 0.4, 0.25, 1.35);\n transition: transform 0.35s cubic-bezier(0.4, 0.4, 0.25, 1.35);\n transition: transform 0.35s cubic-bezier(0.4, 0.4, 0.25, 1.35), -webkit-transform 0.35s cubic-bezier(0.4, 0.4, 0.25, 1.35); }\n\n.o-switch:checked,\n.o-switch-cp__input:checked ~ .o-switch-cp__box {\n border-color: #07c160;\n border-color: var(--o-primary, #07c160);\n background-color: #07c160;\n background-color: var(--o-primary, #07c160); }\n\n.o-switch:checked:before,\n.o-switch-cp__input:checked ~ .o-switch-cp__box:before {\n -webkit-transform: scale(0);\n transform: scale(0); }\n\n.o-switch:checked:after,\n.o-switch-cp__input:checked ~ .o-switch-cp__box:after {\n -webkit-transform: translateX(20px);\n transform: translateX(20px); }\n\n.o-switch-cp__input {\n position: absolute;\n left: -9999px; }\n\n.o-switch-cp__box {\n display: block; }\n',c.propTypes={checked:Boolean},c=function(n,o,t,e){var r,i=arguments.length,c=i<3?o:null===e?e=Object.getOwnPropertyDescriptor(o,t):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(n,o,t,e);else for(var s=n.length-1;s>=0;s--)(r=n[s])&&(c=(i<3?r(c):i>3?r(o,t,c):r(o,t))||c);return i>3&&c&&Object.defineProperty(o,t,c),c}([t("o-switch")],c)}(e);

View File

@ -1 +1 @@
import{_ as e}from"./index.d5418cc6.js";import{W as t,h as a,t as i,s as n,b as d}from"./vendor.a0eb460d.js";import"./index.1619fcbf.js";import"./index.f7ef9d66.js";import"./index.esm.a2d5e556.js";import"./index.esm.86ed57d6.js";var s=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.d7aee360.js")),["assets/export-excel.d7aee360.js","assets/vendor.a0eb460d.js","assets/___vite-browser-external_commonjs-proxy.bf73b432.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,d=i>1?void 0:i?r(t,a):t,o=e.length-1;o>=0;o--)(n=e[o])&&(d=(i?n(t,a,d):n(d))||d);return i&&d&&s(t,a,d),d})([d("inline-editing")],o);export{o as default};
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};

View File

@ -0,0 +1 @@
import{W as e,h as n,t,s as r,b as s}from"./vendor.cff7a2c5.js";import"./admin-docs.d04bcd77.js";import"./index.b502f1bc.js";import"./container.b1933bec.js";import"./index.esm.925a0872.js";import"./___vite-browser-external_commonjs-proxy.e2cda3d0.js";var a=Object.defineProperty,o=Object.getOwnPropertyDescriptor;let i=class extends e{constructor(){super(...arguments),this.options={responsive:!0,title:{display:!0,text:"Omi-chart Line Chart"},tooltips:{mode:"index",intersect:!1},hover:{mode:"nearest",intersect:!0},scales:{xAxes:[{display:!0,scaleLabel:{display:!0,labelString:"Month"}}],yAxes:[{display:!0,scaleLabel:{display:!0,labelString:"Value"}}]}},this.data={labels:["Red","Blue","Yellow","Green","Purple","Orange"],datasets:[{label:"# of Votes",data:[12,19,3,5,2,3],backgroundColor:"rgba(255, 99, 132, .4)",borderColor:"rgb(255, 99, 132)",borderWidth:1}]},this.mdA="\n ```html\n<o-line id=\"myLine\" width=\"560\" height=\"300\"\n data=\"{\n labels: ['Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange'],\n datasets: [{\n label: '# of Votes',\n data: [12, 19, 3, 5, 2, 3],\n backgroundColor: 'rgba(255, 99, 132, .4)',\n borderColor: 'rgb(255, 99, 132)',\n borderWidth: 1\n }]\n }\"\n\n options=\"{\n responsive: true,\n title: {\n display: true,\n text: 'Omi-chart Line Chart'\n },\n tooltips: {\n mode: 'index',\n intersect: false\n },\n hover: {\n mode: 'nearest',\n intersect: true\n },\n scales: {\n xAxes: [{\n display: true,\n scaleLabel: {\n display: true,\n labelString: 'Month'\n }\n }],\n yAxes: [{\n display: true,\n scaleLabel: {\n display: true,\n labelString: 'Value'\n }\n }]\n }\n }\">\n</o-line>\n ```\n "}installed(){}render(){return n("code-demo-container",null,n("code-demo",{title:"线状图",describe:"线状图显示",code:this.mdA},n("div",{slot:"demo",class:t`px-3 py-5`},n("o-line",{id:"myLine",width:"560",height:"300",data:this.data,options:this.options}))))}};i.css=[r.target],i=((e,n,t,r)=>{for(var s,i=r>1?void 0:r?o(n,t):n,l=e.length-1;l>=0;l--)(s=e[l])&&(i=(r?s(n,t,i):s(i))||i);return r&&i&&a(n,t,i),i})([s("line-chart")],i);export{i as default};

View File

@ -1 +0,0 @@
import{W as e,h as t,t as n,s as r,b as s}from"./vendor.a0eb460d.js";import"./admin-docs.b7316951.js";import"./index.54d5604a.js";import"./container.e364d57b.js";import"./index.esm.73669ee9.js";import"./___vite-browser-external_commonjs-proxy.bf73b432.js";var a=Object.defineProperty,o=Object.getOwnPropertyDescriptor;let i=class extends e{constructor(){super(...arguments),this.options={responsive:!0,title:{display:!0,text:"Omi-chart Line Chart"},tooltips:{mode:"index",intersect:!1},hover:{mode:"nearest",intersect:!0},scales:{xAxes:[{display:!0,scaleLabel:{display:!0,labelString:"Month"}}],yAxes:[{display:!0,scaleLabel:{display:!0,labelString:"Value"}}]}},this.data={labels:["Red","Blue","Yellow","Green","Purple","Orange"],datasets:[{label:"# of Votes",data:[12,19,3,5,2,3],backgroundColor:"rgba(255, 99, 132, .4)",borderColor:"rgb(255, 99, 132)",borderWidth:1}]},this.mdA="\n ```html\n<o-line id=\"myLine\" width=\"600\" height=\"300\"\n data=\"{\n labels: ['Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange'],\n datasets: [{\n label: '# of Votes',\n data: [12, 19, 3, 5, 2, 3],\n backgroundColor: 'rgba(255, 99, 132, .4)',\n borderColor: 'rgb(255, 99, 132)',\n borderWidth: 1\n }]\n }\"\n\n options=\"{\n responsive: true,\n title: {\n display: true,\n text: 'Omi-chart Line Chart'\n },\n tooltips: {\n mode: 'index',\n intersect: false\n },\n hover: {\n mode: 'nearest',\n intersect: true\n },\n scales: {\n xAxes: [{\n display: true,\n scaleLabel: {\n display: true,\n labelString: 'Month'\n }\n }],\n yAxes: [{\n display: true,\n scaleLabel: {\n display: true,\n labelString: 'Value'\n }\n }]\n }\n }\">\n</o-line>\n ```\n "}installed(){}render(){return t("code-demo-container",null,t("code-demo",{title:"柱状图",describe:"柱状图显示",code:this.mdA},t("div",{slot:"demo",class:n`px-3 py-5`},t("o-line",{id:"myBar",width:"560",height:"300",data:this.data,options:this.options}))))}};i.css=[r.target],i=((e,t,n,r)=>{for(var s,i=r>1?void 0:r?o(t,n):t,l=e.length-1;l>=0;l--)(s=e[l])&&(i=(r?s(t,n,i):s(i))||i);return r&&i&&a(t,n,i),i})([s("line-chart")],i);export{i as default};

View File

@ -1,4 +1,4 @@
import{h as o,b as e,W as n,t as i,s as r}from"./vendor.a0eb460d.js";import"./admin-docs.b7316951.js";import"./index.54d5604a.js";import"./container.e364d57b.js";import"./___vite-browser-external_commonjs-proxy.bf73b432.js";
import{h as o,b as e,W as n,t as i,s as r}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

View File

@ -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.a0eb460d.js";import"./index.esm.3aad4c98.js";import"./add-comment-rounded.a4f46ae8.js";import"./add-ic-call-rounded.9df305ef.js";import{e as d,M as s}from"./masonry.f78d959d.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.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:{}};
/*!
* imagesLoaded v4.1.4
* JavaScript is all like "You images are done yet or what?"

View File

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{W as e,h as t,t as r,s as n,b as s}from"./vendor.a0eb460d.js";var a=Object.defineProperty,i=Object.getOwnPropertyDescriptor;let d=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://omi.cdn-go.cn/admin/latest/mind-map/index.html",frameborder:"no",loading:"lazy"}))}};d.css=n.target,d=((e,t,r,n)=>{for(var s,d=n>1?void 0:n?i(t,r):t,o=e.length-1;o>=0;o--)(s=e[o])&&(d=(n?s(t,r,d):s(d))||d);return n&&d&&a(t,r,d),d})([s("mind-map")],d);export{d as default};
import{W as e,h as t,t as r,s as n,b as s}from"./vendor.cff7a2c5.js";var a=Object.defineProperty,i=Object.getOwnPropertyDescriptor;let d=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://omi.cdn-go.cn/admin/latest/mind-map/index.html",frameborder:"no",loading:"lazy"}))}};d.css=n.target,d=((e,t,r,n)=>{for(var s,d=n>1?void 0:n?i(t,r):t,o=e.length-1;o>=0;o--)(s=e[o])&&(d=(n?s(t,r,d):s(d))||d);return n&&d&&a(t,r,d),d})([s("mind-map")],d);export{d as default};

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -0,0 +1 @@
import{W as e,h as t,t as n,s as a,b as r}from"./vendor.cff7a2c5.js";import"./admin-docs.d04bcd77.js";import"./index.b502f1bc.js";import"./container.b1933bec.js";import"./index.esm.925a0872.js";import"./___vite-browser-external_commonjs-proxy.e2cda3d0.js";var o=Object.defineProperty,i=Object.getOwnPropertyDescriptor;let s=class extends e{constructor(){super(...arguments),this.options={responsive:!0,legend:{position:"top"},title:{display:!0,text:"Omim Pie Chart"},animation:{animateScale:!0,animateRotate:!0}},this.data={labels:["Red","Blue","Yellow","Green","Purple","Orange"],datasets:[{label:"# of Votes",data:[12,19,3,5,2,3],backgroundColor:["rgba(255,99,132,1)","rgba(54, 162, 235, 1)","rgba(255, 206, 86, 1)","rgba(75, 192, 192, 1)","rgba(153, 102, 255, 1)","rgba(255, 159, 64, 1)"],borderColor:"white",borderWidth:1}]},this.mdA="\n ```html\n<o-pie id=\"myPie\" width=\"300\" height=\"300\"\n data=\"{\n labels: ['Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange'],\n datasets: [{\n label: '# of Votes',\n data: [12, 19, 3, 5, 2, 3],\n backgroundColor: [\n 'rgba(255,99,132,1)',\n 'rgba(54, 162, 235, 1)',\n 'rgba(255, 206, 86, 1)',\n 'rgba(75, 192, 192, 1)',\n 'rgba(153, 102, 255, 1)',\n 'rgba(255, 159, 64, 1)'\n ],\n borderColor: 'white',\n borderWidth: 1\n }]\n }\"\n\n options=\"{\n responsive: true,\n legend: {\n position: 'top'\n },\n title: {\n display: true,\n text: 'Omim Pie Chart'\n },\n animation: {\n animateScale: true,\n animateRotate: true\n }\n }\">\n</o-pie>\n ```\n "}installed(){}render(){return t("code-demo-container",null,t("code-demo",{title:"饼图",describe:"饼图显示",code:this.mdA},t("div",{slot:"demo",class:n`px-3 py-5`},t("o-pie",{id:"myPie",width:"300",height:"300",data:this.data,options:this.options}))))}};s.css=[a.target],s=((e,t,n,a)=>{for(var r,s=a>1?void 0:a?i(t,n):t,d=e.length-1;d>=0;d--)(r=e[d])&&(s=(a?r(t,n,s):r(s))||s);return a&&s&&o(t,n,s),s})([r("pie-chart")],s);export{s as default};

View File

@ -1,4 +1,4 @@
import{o as omi,h,b as tag,W as WeElement,t as tw,s as sheet}from"./vendor.a0eb460d.js";import"./admin-docs.b7316951.js";import"./index.54d5604a.js";import{M as Masonry}from"./masonry.f78d959d.js";import"./___vite-browser-external_commonjs-proxy.bf73b432.js";
import{o as omi,h,b as tag,W as WeElement,t as tw,s as sheet}from"./vendor.cff7a2c5.js";import"./admin-docs.d04bcd77.js";import"./index.b502f1bc.js";import{M as Masonry}from"./masonry.35caa13f.js";import"./___vite-browser-external_commonjs-proxy.e2cda3d0.js";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

View File

@ -0,0 +1 @@
import{W as e,h as a,t as r,s as n,b as t}from"./vendor.cff7a2c5.js";import"./admin-docs.d04bcd77.js";import"./index.b502f1bc.js";import"./container.b1933bec.js";import"./index.esm.925a0872.js";import"./___vite-browser-external_commonjs-proxy.e2cda3d0.js";var s=Object.defineProperty,o=Object.getOwnPropertyDescriptor;let l=class extends e{constructor(){super(...arguments),this.options={maintainAspectRatio:!0,spanGaps:!1,elements:{line:{tension:1e-6}},plugins:{filler:{propagate:!1},"samples-filler-analyser":{target:"chart-analyser"}}},this.data={labels:["Red","Blue","Yellow","Green","Purple","Orange"],datasets:[{label:"# of Votes",data:[12,19,3,5,2,3],backgroundColor:"rgba(255, 99, 132, .2)",borderColor:"rgb(255, 99, 132)",borderWidth:1}]},this.mdA="\n ```html\n<o-radar id=\"myRadar\" width=\"300\" height=\"300\"\n data=\"{\n labels: ['Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange'],\n datasets: [{\n label: '# of Votes',\n data: [12, 19, 3, 5, 2, 3],\n backgroundColor: 'rgba(255, 99, 132, .2)',\n borderColor: 'rgb(255, 99, 132)',\n borderWidth: 1\n }]\n }\"\n\n options=\"{\n maintainAspectRatio: true,\n spanGaps: false,\n elements: {\n line: {\n tension: 0.000001\n }\n },\n plugins: {\n filler: {\n propagate: false\n },\n 'samples-filler-analyser': {\n target: 'chart-analyser'\n }\n }\n }\">\n</o-radar>\n ```\n "}installed(){}render(){return a("code-demo-container",null,a("code-demo",{title:"雷达图",describe:"雷达图显示",code:this.mdA},a("div",{slot:"demo",class:r`px-3 py-5`},a("o-radar",{id:"myRadar",width:"300",height:"300",data:this.data,options:this.options}))))}};l.css=[n.target],l=((e,a,r,n)=>{for(var t,l=n>1?void 0:n?o(a,r):a,d=e.length-1;d>=0;d--)(t=e[d])&&(l=(n?t(a,r,l):t(l))||l);return n&&l&&s(a,r,l),l})([t("radar-chart")],l);export{l as default};

View File

@ -1,4 +1,4 @@
import{h as t,l as e,k as o,b as r,W as n,c as a,t as i,s as c}from"./vendor.a0eb460d.js";import"./admin-docs.b7316951.js";import"./index.54d5604a.js";import"./container.e364d57b.js";import"./___vite-browser-external_commonjs-proxy.bf73b432.js";
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

View File

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

View File

@ -1,4 +1,4 @@
import{k as n,h as e,b as o,W as r,t as i,s as t}from"./vendor.a0eb460d.js";import"./index.esm.a2d5e556.js";import"./admin-docs.b7316951.js";import"./index.54d5604a.js";import"./container.e364d57b.js";import"./___vite-browser-external_commonjs-proxy.bf73b432.js";
import{l as n,h as e,b as o,W as r,t as i,s as t}from"./vendor.cff7a2c5.js";import"./index.esm.9b63c957.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.

View File

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

View File

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

Some files were not shown because too many files have changed in this diff Show More