web-win-vue 0.6.13 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +31 -7
- package/style.css +1 -0
- package/web-win-vue.d.ts +29 -0
- package/favicon.ico +0 -0
- package/index.d.ts +0 -1
- package/web-win-vue.css +0 -1
- package/web-win-vue.mjs +0 -714
- package/web-win-vue.umd.js +0 -25
package/package.json
CHANGED
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "web-win-vue",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "web-win-vue.
|
|
6
|
-
"
|
|
7
|
-
|
|
3
|
+
"version": "0.7.0",
|
|
4
|
+
"description": "基于 Vue3 开发的 Windows10 风格 Web 组件库",
|
|
5
|
+
"main": "web-win-vue.umd.js",
|
|
6
|
+
"module": "web-win-vue.es.js",
|
|
7
|
+
"types": "web-win-vue.d.ts",
|
|
8
|
+
"style": "style.css",
|
|
9
|
+
"files": [
|
|
10
|
+
"*.js",
|
|
11
|
+
"*.d.ts",
|
|
12
|
+
"*.css"
|
|
13
|
+
],
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./web-win-vue.d.ts",
|
|
17
|
+
"import": "./web-win-vue.es.js",
|
|
18
|
+
"require": "./web-win-vue.umd.js"
|
|
19
|
+
},
|
|
20
|
+
"./style": "./style.css",
|
|
21
|
+
"./*": "./*"
|
|
8
22
|
},
|
|
9
23
|
"keywords": [
|
|
10
24
|
"Windows",
|
|
@@ -14,6 +28,16 @@
|
|
|
14
28
|
"Win",
|
|
15
29
|
"Vue3"
|
|
16
30
|
],
|
|
17
|
-
"author": "",
|
|
18
|
-
"license": "MIT"
|
|
31
|
+
"author": "hhcl2333",
|
|
32
|
+
"license": "MIT",
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"vue": "^3.5.18"
|
|
35
|
+
},
|
|
36
|
+
"repository": {
|
|
37
|
+
"type": "git",
|
|
38
|
+
"url": "https://github.com/HHCL233/web-win-vue"
|
|
39
|
+
},
|
|
40
|
+
"publishConfig": {
|
|
41
|
+
"access": "public"
|
|
42
|
+
}
|
|
19
43
|
}
|
package/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.webwin-button[data-v-a059307c]{vertical-align:middle;line-height:16.67px;min-height:16.67px;padding:10px 20px;background:var(--primary-color, #CCCCCC);color:#000;border:none;cursor:default;font-size:16px;filter:blur(0px);transition:filter .3s ease;transform:scale(1);transition:transform .3s ease}.webwin-button[data-v-a059307c]:active{cursor:default;transition:opacity .3s ease;transform:scale(.97);filter:blur(.5px);outline:0px solid #999999;background:var(--primary-color, #999999)}.webwin-button[data-v-a059307c]:hover{cursor:default;outline:2.75px solid #999999;outline-offset:-2.75px}.webwin-button[data-v-a059307c]:disabled{transition:opacity 0s ease;transform:scale(1);filter:blur(0);outline:0px solid #7A7A7A;color:#919191;background:#ccc;cursor:not-allowed}.webwin-uwpinput[data-v-7641a566]{vertical-align:middle;display:inline-block;min-width:300px;outline:2.75px solid #999999;outline-offset:-2.75px;line-height:18px;height:18px;padding:10px 14px;background:#fff;color:#000;border:none;font-size:16px}.webwin-uwpinput[data-v-7641a566]:focus{outline:2.75px solid #0078D4;outline-offset:-2.75px;background:#fff}.webwin-uwpinput[data-v-7641a566]:disabled{background-color:#ccc;outline:2.75px solid #CCCCCC;cursor:not-allowed;color:#7a7a7a}@media (prefers-color-scheme: dark){.webwin-uwpinput[data-v-7641a566]{color:#919191;background:var(--primary-color, rgb(0, 0, 0))}}.webwin-sidebar[data-v-9741fc8d]{width:380px;height:36px;display:inline-flex;align-items:center;background-color:#e6e6e6}.webwin-sidebar.folded[data-v-9741fc8d]{opacity:0}.webwin-sidebar-text[data-v-9741fc8d]{-webkit-user-select:none;user-select:none;margin-left:16px;font-size:16px;margin-top:0;margin-bottom:0;background-color:#e6e6e6}.webwin-side-bar[data-v-9741fc8d]{-webkit-user-select:none;user-select:none;list-style:none;margin:0;padding:0;width:380px;font-size:var(--sb-fs, 14px);transition:width 0s cubic-bezier(0,.5,0,1);overflow:hidden}.webwin-side-bar.folded[data-v-9741fc8d]{width:55px;overflow-x:hidden}.webwin-search-fold[data-v-9741fc8d]{display:none!important}.webwin-search-fold.folded[data-v-9741fc8d]{display:flex!important;width:24px;margin-bottom:58px}.webwin-title.folded[data-v-9741fc8d]{display:none}.webwin-title[data-v-9741fc8d]{transition:all 0s ease}.webwin-side-bar li[data-v-9741fc8d]{position:relative;display:flex;align-items:center;padding:var(--sb-pad, 10px 16px)}.webwin-inputbox.folded[data-v-9741fc8d]{display:none}.webwin-side-bar li[data-v-9741fc8d]:hover{background:var(--sb-hover-bg, #cecece)}.webwin-label.folded[data-v-9741fc8d]{opacity:0}.webwin-indicator[data-v-9741fc8d]{position:absolute;left:0;top:50%;margin-top:-12.5px;bottom:0;width:var(--sb-indicator-width, 3px);background:var(--sb-indicator-color, #006fd0);transform:scaleY(0);height:26px;line-height:100px;width:4px}.webwin-side-bar li.active .webwin-indicator[data-v-9741fc8d]{transform:scaleY(1)}.webwin-icon[data-v-9741fc8d]{width:var(--sb-icon-size, 20px);height:var(--sb-icon-size, 38px);margin-right:var(--sb-icon-mr, 12px);color:var(--sb-icon-color, #333);flex-shrink:0}.webwin-label[data-v-9741fc8d]{color:var(--sb-label-color, #333);white-space:nowrap;font-size:16px}@media (prefers-color-scheme: dark){.webwin-side-bar[data-v-9741fc8d]{-webkit-user-select:none;user-select:none;list-style:none;margin:0;padding:0;width:var(--sb-width, 380px);font-size:var(--sb-fs, 14px);background:var(--sb-hover-bg, #1b1b1b)}.webwin-side-bar li[data-v-9741fc8d]{position:relative;display:flex;align-items:center;padding:var(--sb-pad, 10px 16px);transition:background .2s}.webwin-side-bar li[data-v-9741fc8d]:hover{background:var(--sb-hover-bg, #252525)}.webwin-indicator[data-v-9741fc8d]{position:absolute;left:0;top:50%;margin-top:-12.5px;bottom:0;width:var(--sb-indicator-width, 3px);background:var(--sb-indicator-color, #006fd0);transform:scaleY(0);height:26px;line-height:100px;width:4px}.webwin-side-bar li.active .webwin-indicator[data-v-9741fc8d]{transform:scaleY(1)}.webwin-icon[data-v-9741fc8d]{width:var(--sb-icon-size, 20px);height:var(--sb-icon-size, 38px);margin-right:var(--sb-icon-mr, 12px);color:var(--sb-icon-color, #ffffff);flex-shrink:0}.webwin-label[data-v-9741fc8d]{color:var(--sb-label-color, #ffffff);white-space:nowrap;font-size:16px}.webwin-title[data-v-9741fc8d]{color:#fff}}.webwin-tile[data-v-dca3ebff]{--tile-color: #0078d7;--glow-color: rgba(255, 255, 255, .459);--glow-radius: 20px;position:relative;background-color:var(--tile-color);color:#fff;overflow:hidden;transition:all .25s cubic-bezier(.78,.12,0,1.01)}.webwin-tile.small[data-v-dca3ebff]{width:70px;height:70px}.webwin-tile.medium[data-v-dca3ebff]{width:150px;height:150px}.webwin-tile.wide[data-v-dca3ebff]{width:310px;height:150px}.webwin-tile.large[data-v-dca3ebff]{width:310px;height:310px}.webwin-tile-content[data-v-dca3ebff]{position:relative;z-index:2;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:10px}.webwin-tile-icon[data-v-dca3ebff]{font-size:24px;margin-bottom:8px}.webwin-tile-title[data-v-dca3ebff]{-webkit-user-select:none;user-select:none;font-size:12px;font-weight:700;position:absolute;bottom:26px;left:8px}.webwin-glow-border[data-v-dca3ebff]{position:absolute;inset:0;pointer-events:none;z-index:1;background:radial-gradient(circle at var(--x) var(--y),var(--glow-color) 0%,transparent var(--glow-radius));-webkit-mask:linear-gradient(#fff,#fff) content-box,linear-gradient(#fff,#fff);mask:linear-gradient(#fff,#fff) content-box,linear-gradient(#fff,#fff);-webkit-mask-composite:xor;mask-composite:exclude;padding:4px;transition:opacity .2s ease}.webwin-pointer-glow[data-v-dca3ebff]{position:absolute;top:calc(var(--y) - 50px);left:calc(var(--x) - 50px);width:100px;height:100px;border-radius:60%;background:radial-gradient(circle,var(--glow-color) 0%,transparent 70%);pointer-events:none;z-index:1;transition:opacity .3s ease}.webwin-tile[data-v-dca3ebff]:active{transform:scale(.9)}.webwin-item-1{display:inline-block;background-color:#e6e6e6}.webwin-iframe{border:none;display:inline-block;width:100%;height:calc(100% - 73.9px);background-color:#fff}.webwin-iframe-container{width:calc(100% - 380px);height:100%;position:relative;display:inline-block;overflow:auto;margin-left:24px}.webwin-iframe-container.folded{width:calc(100% - 55px)}.webwin-container{display:flex;height:calc(100% - .9px);background-color:#fff}.fade-enter-active{transition:all .35s ease}.fade-enter-from{opacity:0;transform:translateY(300px)}.webwin-iframe::-webkit-scrollbar{width:4px;height:16px;background-color:#e6e6e6}.webwin-iframe::-webkit-scrollbar-track{border-radius:0;background-color:#fff0}.webwin-iframe::-webkit-scrollbar-thumb{border-radius:0;background-color:#818181}.webwin-uwppassword[data-v-dd8b91fe]{vertical-align:middle;display:inline-block;min-width:300px;outline:2.75px solid #999999;outline-offset:-2.75px;line-height:18px;height:18px;padding:10px 14px;background:var(--primary-color, rgb(255, 255, 255));color:#000;border:none;font-size:16px}.webwin-uwppassword[data-v-dd8b91fe]:focus{outline:2.75px solid #0078D4;outline-offset:-2.75px}.webwin-uwppassword[data-v-dd8b91fe]:disabled{background-color:#ccc;outline:2.75px solid #CCCCCC;cursor:not-allowed;color:#7a7a7a}@media (prefers-color-scheme: dark){.webwin-uwppassword[data-v-dd8b91fe]{color:#919191;background:var(--primary-color, rgb(0, 0, 0))}}.webwin-uwprichrditbox[data-v-f7a96b3a]{resize:none;vertical-align:middle;display:inline-block;min-width:300px;outline:2.75px solid #999999;outline-offset:-2.75px;line-height:18px;font-size:18px;height:auto;cursor:text;padding:9.5px 14px;background:var(--primary-color, rgb(255, 255, 255));color:#000;border:none;font-size:16px;vertical-align:top;white-space:pre-wrap}.webwin-uwprichrditbox[data-v-f7a96b3a]:focus{outline:2.75px solid #0078D4;outline-offset:-2.75px}.webwin-uwprichrditbox[data-v-f7a96b3a]:disabled{background-color:#ccc;outline:2.75px solid #CCCCCC;cursor:not-allowed;color:#7a7a7a}.webwin-uwprichrditbox[data-placeholder][data-v-f7a96b3a]:empty:before{content:attr(data-placeholder);color:#666}@media (prefers-color-scheme: dark){.webwin-uwprichrditbox[data-v-f7a96b3a]{color:#919191;background:var(--primary-color, rgb(0, 0, 0))}}.webwin-notification[data-v-c29ecbbb]{border:rgba(163,163,163,0) 4px solid;-webkit-user-select:none;user-select:none;position:fixed;bottom:24px;right:24px;width:400px;height:150px;background-color:#141414f2;transition:all .4s cubic-bezier(0,.6,0,1)}.slide-fade-enter-active[data-v-c29ecbbb]{transition:all .4s cubic-bezier(0,.6,0,1)}.slide-fade-leave-active[data-v-c29ecbbb]{transition:all .55s cubic-bezier(.6,0,0,1)}.slide-fade-enter-from[data-v-c29ecbbb],.slide-fade-leave-to[data-v-c29ecbbb]{transform:translate(520px)}.webwin-n-text[data-v-c29ecbbb]{color:#fff;margin-left:16px}.webwin-n-title[data-v-c29ecbbb]{margin-top:-2.5px}.webwin-n-vulua[data-v-c29ecbbb]{margin-left:16px;color:#a3a3a3;margin-top:-18px}.webwin-notification[data-v-c29ecbbb]:hover{border:#5f5f5f 4px solid}.webwin-notification[data-v-c29ecbbb]:active{transform:scale(.925)}.webwin-n-name[data-v-c29ecbbb]{color:#fff}.webwin-checkbox[type=checkbox][data-v-3b234b99]{position:absolute;opacity:0}.webwin-checkbox-label[data-v-3b234b99]:before{--length: 1.1em;content:"";display:inline-block;width:var(--length);height:var(--length);font-size:1.1em;border:2.5px solid black;margin-right:6px;-webkit-user-select:none;user-select:none}.webwin-checkbox-label[data-v-3b234b99]{display:flex;align-items:center}.webwin-checkbox[type=checkbox]:checked+.webwin-checkbox-label[data-v-3b234b99]:before{background-color:#0077d7;border-color:#0077d7;content:"√";color:#fff;line-height:1.25em;font-size:1.1em;text-align:center}.webwin-checkbox-label[data-v-3b234b99]:hover:before,.webwin-checkbox[type=checkbox]:focus+.webwin-checkbox-label[data-v-3b234b99]:before{border-color:#0077d7}.webwin-checkbox[type=checkbox]:not(:checked):hover+.webwin-checkbox-label[data-v-3b234b99]:before,.webwin-checkbox[type=checkbox]:not(:checked):focus+.webwin-checkbox-label[data-v-3b234b99]:before{border-color:#0077d7}.webwin-checkbox[type=checkbox]:checked:hover+.webwin-checkbox-label[data-v-3b234b99]:before{border-color:#000}.webwin-radio[type=radio][data-v-04fe95c4]{position:absolute;opacity:0}.webwin-radio-label[data-v-04fe95c4]:before{--length: 1.1em;content:"";display:inline-block;width:var(--length);height:var(--length);font-size:1.1em;border:2.5px solid black;margin-right:6px;-webkit-user-select:none;user-select:none;border-radius:50px}.webwin-radio-label[data-v-04fe95c4]{display:flex;align-items:center}.webwin-radio[type=radio]:checked+.webwin-radio-label[data-v-04fe95c4]:before{background-color:#0077d7;border-color:#0077d7;color:#fff;box-shadow:inset 0 0 0 2px #fff;line-height:1.25em;font-size:1.1em;text-align:center}.webwin-radio-label[data-v-04fe95c4]:hover:before,.webwin-radio[type=radio]:focus+.webwin-radio-label[data-v-04fe95c4]:before{border-color:#0077d7}.webwin-radio[type=radio]:not(:checked):hover+.webwin-radio-label[data-v-04fe95c4]:before,.webwin-radio[type=radio]:not(:checked):focus+.webwin-radio-label[data-v-04fe95c4]:before{border-color:#0077d7}.webwin-radio[type=radio]:checked:hover+.webwin-radio-label[data-v-04fe95c4]:before{border-color:#000}.webwin-list-box-button[data-v-ac4b4002]{z-index:10;height:15px;position:relative;display:flex;align-items:center;padding:var(--sb-pad, 10px 15px);box-shadow:0 0 0 2px #999 inset;width:300px;background-color:#fff}.webwin-list-box[data-v-ac4b4002]{z-index:1;transform-origin:0 var(--v1be24303);-webkit-user-select:none;user-select:none;list-style:none;margin:0;padding:0;width:var(--sb-width, 330px);font-size:var(--sb-fs, 14px);background-color:#ebebebf3;position:absolute;-webkit-backdrop-filter:blur(12.5px);backdrop-filter:blur(12.5px);box-shadow:0 0 30px #7d7d7dbf;top:var(--v5172b45c)}.webwin-list-box li[data-v-ac4b4002]{height:15px;position:relative;display:flex;align-items:center;padding:var(--sb-pad, 10px 15px);transition:all .15s cubic-bezier(.05,-.01,0,1)}.webwin-list-box li[data-v-ac4b4002]:active{transform:scale(.975)}.webwin-list-box li.active[data-v-ac4b4002]{background:var(--sb-hover-bg, #6db9f3);opacity:0}.webwin-list-box-button.active[data-v-ac4b4002]{background:var(--sb-hover-bg, #6db9f3);box-shadow:0 0 0 2px #6db9f3 inset}.webwin-list-box li[data-v-ac4b4002]:hover{background:var(--sb-hover-bg, #cecece)}.webwin-list-box li.active[data-v-ac4b4002]:hover{background:var(--sb-hover-bg, #6db9f3)}.webwin-label[data-v-ac4b4002]{color:var(--sb-label-color, #333);white-space:nowrap;font-size:16px}.v-enter-active[data-v-ac4b4002]{box-shadow:0 0 30px #7d7d7dbf;transition:all .15s cubic-bezier(.05,-.01,0,1)}.v-leave-active[data-v-ac4b4002]{box-shadow:0 0 30px #7d7d7d00;transition:all 75ms cubic-bezier(.05,-.01,0,1)}.v-enter-from[data-v-ac4b4002],.v-leave-to[data-v-ac4b4002]{transform:scaleY(0)}.webwin-progress-bar[data-v-9ef8a457]{width:100%;height:5px;background-color:#e0e0e0}.webwin-progress[data-v-9ef8a457]{background-color:#006fd0;height:5px;transition:width .25s cubic-bezier(0,0,0,1)}.webwin-window-background[data-v-ed2b82b4]{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#ffffffbf;z-index:998}.webwin-window[data-v-ed2b82b4]{background-color:#f2f2f2;margin:auto;min-width:500px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border:#006fd0 2px solid;z-index:999}.webwin-window-button[data-v-ed2b82b4]{display:inline-block;width:244px}.webwin-window-title[data-v-ed2b82b4]{font-weight:400;margin-left:24px;margin-right:24px;width:calc(100% - 48px);white-space:pre-line;margin-bottom:8px}.v-enter-active[data-v-ed2b82b4],.v-leave-active[data-v-ed2b82b4]{transition:all .225s cubic-bezier(0,0,0,1)}.webwin-window.v-enter-from[data-v-ed2b82b4],.webwin-window.v-leave-to[data-v-ed2b82b4]{opacity:0;transform:scale(.75) translate(-50%,-40%)}.webwin-window-background.v-enter-from[data-v-ed2b82b4],.webwin-window-background.v-leave-to[data-v-ed2b82b4]{opacity:0}.webwin-card[data-v-26a8c2e0]{height:300px;width:300px;background:#e4e4e4}@media (prefers-color-scheme: dark){.webwin-card[data-v-26a8c2e0]{background-color:#1a1a1a;color:#fff}}.webwin-dropdown-container[data-v-2d220786]{transform-origin:center}.webwin-dropdown[data-v-2d220786]{z-index:101;-webkit-user-select:none;user-select:none;list-style:none;margin:0;padding:0;width:var(--sb-width, 330px);font-size:var(--sb-fs, 14px);background-color:#ebebebf3;position:fixed;-webkit-backdrop-filter:blur(12.5px);backdrop-filter:blur(12.5px);left:var(--v08042082);top:var(--v6fe54d61);border:2px solid #cdcdcd}.webwin-dropdown_backgroud[data-v-2d220786]{position:fixed;inset:0;background-color:#0000;z-index:100}.webwin-dropdown li[data-v-2d220786]{height:18px;position:relative;display:flex;align-items:center;padding:var(--sb-pad, 10px 15px);transition:transform .15s cubic-bezier(.05,-.01,0,1)}.webwin-dropdown li[data-v-2d220786]:active{transform:scale(.975)}.webwin-dropdown li[data-v-2d220786]:hover{background:var(--sb-hover-bg, #cecece)}.webwin-label[data-v-2d220786]{color:var(--sb-label-color, #333);white-space:nowrap;font-size:16px}.v-enter-active[data-v-2d220786]{transition:all .15s cubic-bezier(.05,-.01,0,1);position:fixed}.v-leave-active[data-v-2d220786]{box-shadow:0 0 30px #7d7d7d00;transition:all .15s cubic-bezier(.05,-.01,0,1);position:fixed}.v-enter-from[data-v-2d220786],.v-leave-to[data-v-2d220786]{opacity:0;position:fixed}.webwin-topappbar[data-v-ef60c98a]{position:sticky;top:0;-webkit-user-select:none;user-select:none;list-style:none;margin:0;padding:0;width:330px;font-size:14px;background-color:#ebebebf3;-webkit-backdrop-filter:blur(12.5px);backdrop-filter:blur(12.5px);width:100%}.webwin-topappbar li[data-v-ef60c98a]{transform-origin:center;position:relative;display:inline-block;align-items:center;padding:10px 15px 0}.webwin-topappbar .webwin-topappbar-item[data-v-ef60c98a]:hover{background:#cecece}.webwin-topappbar-label[data-v-ef60c98a]{color:#333;white-space:nowrap;font-size:16px}.webwin-topappbar-indicator[data-v-ef60c98a]{height:2.5px;background-color:#006fd0;width:26px;margin:8px auto 0;display:block}.webwin-topappbar-indicator-not[data-v-ef60c98a]{height:2.5px;background-color:#006fd000;width:26px;margin:8px auto 0;display:block}@media (prefers-color-scheme: dark){.webwin-topappbar[data-v-ef60c98a]{background-color:#363636;color:#fff}.webwin-topappbar .webwin-topappbar-item[data-v-ef60c98a]:hover{background:#252525;color:#fff}.webwin-topappbar-label[data-v-ef60c98a]{color:#fff}.webwin-topappbar-indicator[data-v-ef60c98a]{background-color:#4b99da}}.webwin-slider[data-v-480ca2b0]{--l: 2px;--s: 20px;width:600px;appearance:none;background:none;cursor:default;overflow:hidden}.webwin-slider[type=range i][data-v-480ca2b0]::-webkit-slider-thumb{height:var(--s);aspect-ratio:1;border-radius:50%;box-shadow:0 0 0 3px inset var(--v23dfb612);border-image:linear-gradient(90deg,var(--v23dfb612) 50%,#ababab 0) 0 1/ calc(50% - 1px) 100vw/0 calc(100vw + 0px);-webkit-appearance:none;appearance:none}
|
package/web-win-vue.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare module 'web-win-vue' {
|
|
2
|
+
import type { App } from 'vue';
|
|
3
|
+
|
|
4
|
+
// 导出组件
|
|
5
|
+
export const winrange: any;
|
|
6
|
+
export const wintopappbar: any;
|
|
7
|
+
export const windropdown: any;
|
|
8
|
+
export const wincard: any;
|
|
9
|
+
export const winwindow: any;
|
|
10
|
+
export const winprogressbar: any;
|
|
11
|
+
export const wincombobox: any;
|
|
12
|
+
export const winradio: any;
|
|
13
|
+
export const wincheckbox: any;
|
|
14
|
+
export const winbutton: any;
|
|
15
|
+
export const winitem: any;
|
|
16
|
+
export const wintile: any;
|
|
17
|
+
export const wintab: any;
|
|
18
|
+
export const wininputbox: any;
|
|
19
|
+
export const winpasswordbox: any;
|
|
20
|
+
export const winricheditbox: any;
|
|
21
|
+
export const winnotifications: any;
|
|
22
|
+
|
|
23
|
+
// 导出安装函数
|
|
24
|
+
const WebWin: {
|
|
25
|
+
install(app: App): void;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export default WebWin;
|
|
29
|
+
}
|
package/favicon.ico
DELETED
|
Binary file
|
package/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
declare module 'web-win-vue';
|
package/web-win-vue.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
button[data-v-85a8a3fa]{vertical-align:middle;line-height:16.67px;min-height:16.67px;padding:10px 20px;background:var(--primary-color, #CCCCCC);color:#000;border:none;cursor:default;font-size:16px;filter:blur(0px);transition:filter .3s ease;transform:scale(1);transition:transform .3s ease}button[data-v-85a8a3fa]:active{cursor:default;transition:opacity .3s ease;transform:scale(.97);filter:blur(.5px);outline:0px solid #999999;background:var(--primary-color, #999999)}button[data-v-85a8a3fa]:hover{cursor:default;outline:2.75px solid #999999;outline-offset:-2.75px}button[data-v-85a8a3fa]:disabled{transition:opacity 0s ease;transform:scale(1);filter:blur(0);outline:0px solid #7A7A7A;color:#919191;background:#ccc;cursor:not-allowed}.uwpinput[data-v-227ff99f]{vertical-align:middle;display:inline-block;min-width:300px;outline:2.75px solid #999999;outline-offset:-2.75px;line-height:18px;height:18px;padding:10px 14px;background:#fff;color:#000;border:none;font-size:16px}.uwpinput[data-v-227ff99f]:focus{outline:2.75px solid #0078D4;outline-offset:-2.75px;background:#fff}.uwpinput[data-v-227ff99f]:disabled{background-color:#ccc;outline:2.75px solid #CCCCCC;cursor:not-allowed;color:#7a7a7a}@media (prefers-color-scheme: dark){.uwpinput[data-v-227ff99f]{color:#919191;background:var(--primary-color, rgb(0, 0, 0))}}.sidebar[data-v-30fc2437]{width:380px;height:36px;display:inline-flex;align-items:center;background-color:#e6e6e6}.sidebar.folded[data-v-30fc2437]{opacity:0}.sidebar-text[data-v-30fc2437]{-webkit-user-select:none;user-select:none;margin-left:16px;font-size:16px;margin-top:0;margin-bottom:0;background-color:#e6e6e6}.side-bar[data-v-30fc2437]{-webkit-user-select:none;user-select:none;list-style:none;margin:0;padding:0;width:380px;font-size:var(--sb-fs, 14px);transition:width 0s cubic-bezier(0,.5,0,1);overflow:hidden}.side-bar.folded[data-v-30fc2437]{width:55px;overflow-x:hidden}.search-fold[data-v-30fc2437]{display:none!important}.search-fold.folded[data-v-30fc2437]{display:flex!important;width:24px;margin-bottom:58px}.title.folded[data-v-30fc2437]{display:none}.title[data-v-30fc2437]{transition:all 0s ease}.side-bar li[data-v-30fc2437]{position:relative;display:flex;align-items:center;padding:var(--sb-pad, 10px 16px)}.inputbox.folded[data-v-30fc2437]{display:none}.side-bar li[data-v-30fc2437]:hover{background:var(--sb-hover-bg, #cecece)}.label.folded[data-v-30fc2437]{opacity:0}.indicator[data-v-30fc2437]{position:absolute;left:0;top:50%;margin-top:-12.5px;bottom:0;width:var(--sb-indicator-width, 3px);background:var(--sb-indicator-color, #006fd0);transform:scaleY(0);height:26px;line-height:100px;width:4px}.side-bar li.active .indicator[data-v-30fc2437]{transform:scaleY(1)}.icon[data-v-30fc2437]{width:var(--sb-icon-size, 20px);height:var(--sb-icon-size, 38px);margin-right:var(--sb-icon-mr, 12px);color:var(--sb-icon-color, #333);flex-shrink:0}.label[data-v-30fc2437]{color:var(--sb-label-color, #333);white-space:nowrap;font-size:16px}@media (prefers-color-scheme: dark){.side-bar[data-v-30fc2437]{-webkit-user-select:none;user-select:none;list-style:none;margin:0;padding:0;width:var(--sb-width, 380px);font-size:var(--sb-fs, 14px);background:var(--sb-hover-bg, #1b1b1b)}.side-bar li[data-v-30fc2437]{position:relative;display:flex;align-items:center;padding:var(--sb-pad, 10px 16px);transition:background .2s}.side-bar li[data-v-30fc2437]:hover{background:var(--sb-hover-bg, #252525)}.indicator[data-v-30fc2437]{position:absolute;left:0;top:50%;margin-top:-12.5px;bottom:0;width:var(--sb-indicator-width, 3px);background:var(--sb-indicator-color, #006fd0);transform:scaleY(0);height:26px;line-height:100px;width:4px}.side-bar li.active .indicator[data-v-30fc2437]{transform:scaleY(1)}.icon[data-v-30fc2437]{width:var(--sb-icon-size, 20px);height:var(--sb-icon-size, 38px);margin-right:var(--sb-icon-mr, 12px);color:var(--sb-icon-color, #ffffff);flex-shrink:0}.label[data-v-30fc2437]{color:var(--sb-label-color, #ffffff);white-space:nowrap;font-size:16px}.title[data-v-30fc2437]{color:#fff}}.tile[data-v-9ae9ef89]{--tile-color: #0078d7;--glow-color: rgba(255, 255, 255, .459);--glow-radius: 20px;position:relative;background-color:var(--tile-color);color:#fff;overflow:hidden;transition:all .25s cubic-bezier(.78,.12,0,1.01)}.tile.small[data-v-9ae9ef89]{width:70px;height:70px}.tile.medium[data-v-9ae9ef89]{width:150px;height:150px}.tile.wide[data-v-9ae9ef89]{width:310px;height:150px}.tile.large[data-v-9ae9ef89]{width:310px;height:310px}.tile-content[data-v-9ae9ef89]{position:relative;z-index:2;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:10px}.tile-icon[data-v-9ae9ef89]{font-size:24px;margin-bottom:8px}.tile-title[data-v-9ae9ef89]{-webkit-user-select:none;user-select:none;font-size:12px;font-weight:700;position:absolute;bottom:26px;left:8px}.glow-border[data-v-9ae9ef89]{position:absolute;inset:0;pointer-events:none;z-index:1;background:radial-gradient(circle at var(--x) var(--y),var(--glow-color) 0%,transparent var(--glow-radius));-webkit-mask:linear-gradient(#fff,#fff) content-box,linear-gradient(#fff,#fff);mask:linear-gradient(#fff,#fff) content-box,linear-gradient(#fff,#fff);-webkit-mask-composite:xor;mask-composite:exclude;padding:4px;transition:opacity .2s ease}.pointer-glow[data-v-9ae9ef89]{position:absolute;top:calc(var(--y) - 50px);left:calc(var(--x) - 50px);width:100px;height:100px;border-radius:60%;background:radial-gradient(circle,var(--glow-color) 0%,transparent 70%);pointer-events:none;z-index:1;transition:opacity .3s ease}.tile[data-v-9ae9ef89]:active{transform:scale(.9)}.item-1{display:inline-block;background-color:#e6e6e6}iframe{border:none;display:inline-block;width:100%;height:calc(100% - 73.9px);background-color:#fff}.iframe-container{width:calc(100% - 380px);height:100%;position:relative;display:inline-block;overflow:auto;margin-left:24px}.iframe-container.folded{width:calc(100% - 55px)}.container{display:flex;height:calc(100% - .9px);background-color:#fff}.fade-enter-active{transition:all .35s ease}.fade-enter-from{opacity:0;transform:translateY(300px)}iframe::-webkit-scrollbar{width:4px;height:16px;background-color:#e6e6e6}iframe::-webkit-scrollbar-track{border-radius:0;background-color:#fff0}iframe::-webkit-scrollbar-thumb{border-radius:0;background-color:#818181}.uwppassword[data-v-5ce652ab]{vertical-align:middle;display:inline-block;min-width:300px;outline:2.75px solid #999999;outline-offset:-2.75px;line-height:18px;height:18px;padding:10px 14px;background:var(--primary-color, rgb(255, 255, 255));color:#000;border:none;font-size:16px}.uwppassword[data-v-5ce652ab]:focus{outline:2.75px solid #0078D4;outline-offset:-2.75px}.uwppassword[data-v-5ce652ab]:disabled{background-color:#ccc;outline:2.75px solid #CCCCCC;cursor:not-allowed;color:#7a7a7a}@media (prefers-color-scheme: dark){.uwppassword[data-v-5ce652ab]{color:#919191;background:var(--primary-color, rgb(0, 0, 0))}}.uwprichrditbox[data-v-062c85b9]{resize:none;vertical-align:middle;display:inline-block;min-width:300px;outline:2.75px solid #999999;outline-offset:-2.75px;line-height:18px;font-size:18px;height:auto;cursor:text;padding:9.5px 14px;background:var(--primary-color, rgb(255, 255, 255));color:#000;border:none;font-size:16px;vertical-align:top;white-space:pre-wrap}.uwprichrditbox[data-v-062c85b9]:focus{outline:2.75px solid #0078D4;outline-offset:-2.75px}.uwprichrditbox[data-v-062c85b9]:disabled{background-color:#ccc;outline:2.75px solid #CCCCCC;cursor:not-allowed;color:#7a7a7a}.uwprichrditbox[data-placeholder][data-v-062c85b9]:empty:before{content:attr(data-placeholder);color:#666}@media (prefers-color-scheme: dark){.uwprichrditbox[data-v-062c85b9]{color:#919191;background:var(--primary-color, rgb(0, 0, 0))}}.Notification[data-v-55ec523b]{border:rgba(163,163,163,0) 4px solid;-webkit-user-select:none;user-select:none;position:fixed;bottom:24px;right:24px;width:400px;height:150px;background-color:#141414f2;transition:all .4s cubic-bezier(0,.6,0,1)}.slide-fade-enter-active[data-v-55ec523b]{transition:all .4s cubic-bezier(0,.6,0,1)}.slide-fade-leave-active[data-v-55ec523b]{transition:all .55s cubic-bezier(.6,0,0,1)}.slide-fade-enter-from[data-v-55ec523b],.slide-fade-leave-to[data-v-55ec523b]{transform:translate(520px)}.n-text[data-v-55ec523b]{color:#fff;margin-left:16px}.n-title[data-v-55ec523b]{margin-top:-2.5px}.n-vulua[data-v-55ec523b]{margin-left:16px;color:#a3a3a3;margin-top:-18px}.Notification[data-v-55ec523b]:hover{border:#5f5f5f 4px solid}.Notification[data-v-55ec523b]:active{transform:scale(.925)}.n-name[data-v-55ec523b]{color:#fff}.ww-checkbox[type=checkbox][data-v-c289ea76]{position:absolute;opacity:0}.ww-checkbox-label[data-v-c289ea76]:before{--length: 1.1em;content:"";display:inline-block;width:var(--length);height:var(--length);font-size:1.1em;border:2.5px solid black;margin-right:6px;-webkit-user-select:none;user-select:none}.ww-checkbox-label[data-v-c289ea76]{display:flex;align-items:center}.ww-checkbox[type=checkbox]:checked+.ww-checkbox-label[data-v-c289ea76]:before{background-color:#0077d7;border-color:#0077d7;content:"√";color:#fff;line-height:1.25em;font-size:1.1em;text-align:center}.ww-checkbox-label[data-v-c289ea76]:hover:before,.ww-checkbox[type=checkbox]:focus+.ww-checkbox-label[data-v-c289ea76]:before{border-color:#0077d7}.ww-checkbox[type=checkbox]:not(:checked):hover+.ww-checkbox-label[data-v-c289ea76]:before,.ww-checkbox[type=checkbox]:not(:checked):focus+.ww-checkbox-label[data-v-c289ea76]:before{border-color:#0077d7}.ww-checkbox[type=checkbox]:checked:hover+.ww-checkbox-label[data-v-c289ea76]:before{border-color:#000}.ww-radio[type=radio][data-v-6df73cdd]{position:absolute;opacity:0}.ww-radio-label[data-v-6df73cdd]:before{--length: 1.1em;content:"";display:inline-block;width:var(--length);height:var(--length);font-size:1.1em;border:2.5px solid black;margin-right:6px;-webkit-user-select:none;user-select:none;border-radius:50px}.ww-radio-label[data-v-6df73cdd]{display:flex;align-items:center}.ww-radio[type=radio]:checked+.ww-radio-label[data-v-6df73cdd]:before{background-color:#0077d7;border-color:#0077d7;color:#fff;box-shadow:inset 0 0 0 2px #fff;line-height:1.25em;font-size:1.1em;text-align:center}.ww-radio-label[data-v-6df73cdd]:hover:before,.ww-radio[type=radio]:focus+.ww-radio-label[data-v-6df73cdd]:before{border-color:#0077d7}.ww-radio[type=radio]:not(:checked):hover+.ww-radio-label[data-v-6df73cdd]:before,.ww-radio[type=radio]:not(:checked):focus+.ww-radio-label[data-v-6df73cdd]:before{border-color:#0077d7}.ww-radio[type=radio]:checked:hover+.ww-radio-label[data-v-6df73cdd]:before{border-color:#000}.list-box-button[data-v-81f2552b]{z-index:10;height:15px;position:relative;display:flex;align-items:center;padding:var(--sb-pad, 10px 15px);box-shadow:0 0 0 2px #999 inset;width:300px;background-color:#fff}.list-box[data-v-81f2552b]{z-index:1;transform-origin:0 var(--v61ff2edc);-webkit-user-select:none;user-select:none;list-style:none;margin:0;padding:0;width:var(--sb-width, 330px);font-size:var(--sb-fs, 14px);background-color:#ebebebf3;position:absolute;-webkit-backdrop-filter:blur(12.5px);backdrop-filter:blur(12.5px);box-shadow:0 0 30px #7d7d7dbf;top:var(--v34605ad9)}.list-box li[data-v-81f2552b]{height:15px;position:relative;display:flex;align-items:center;padding:var(--sb-pad, 10px 15px);transition:all .15s cubic-bezier(.05,-.01,0,1)}.list-box li[data-v-81f2552b]:active{transform:scale(.975)}.list-box li.active[data-v-81f2552b]{background:var(--sb-hover-bg, #6db9f3);opacity:0}.list-box-button.active[data-v-81f2552b]{background:var(--sb-hover-bg, #6db9f3);box-shadow:0 0 0 2px #6db9f3 inset}.list-box li[data-v-81f2552b]:hover{background:var(--sb-hover-bg, #cecece)}.list-box li.active[data-v-81f2552b]:hover{background:var(--sb-hover-bg, #6db9f3)}.label[data-v-81f2552b]{color:var(--sb-label-color, #333);white-space:nowrap;font-size:16px}.v-enter-active[data-v-81f2552b]{box-shadow:0 0 30px #7d7d7dbf;transition:all .15s cubic-bezier(.05,-.01,0,1)}.v-leave-active[data-v-81f2552b]{box-shadow:0 0 30px #7d7d7d00;transition:all 75ms cubic-bezier(.05,-.01,0,1)}.v-enter-from[data-v-81f2552b],.v-leave-to[data-v-81f2552b]{transform:scaleY(0)}.progress-bar[data-v-18bec619]{width:100%;height:5px;background-color:#e0e0e0}.progress[data-v-18bec619]{background-color:#006fd0;height:5px;transition:width .25s cubic-bezier(0,0,0,1)}.window-background[data-v-181d9761]{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#ffffffbf;z-index:998}.window[data-v-181d9761]{background-color:#f2f2f2;margin:auto;min-width:500px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border:#006fd0 2px solid;z-index:999}.window-button[data-v-181d9761]{display:inline-block;width:244px}.window-title[data-v-181d9761]{font-weight:400;margin-left:24px;margin-right:24px;width:calc(100% - 48px);white-space:pre-line;margin-bottom:8px}.v-enter-active[data-v-181d9761],.v-leave-active[data-v-181d9761]{transition:all .225s cubic-bezier(0,0,0,1)}.window.v-enter-from[data-v-181d9761],.window.v-leave-to[data-v-181d9761]{opacity:0;transform:scale(.75) translate(-50%,-40%)}.window-background.v-enter-from[data-v-181d9761],.window-background.v-leave-to[data-v-181d9761]{opacity:0}.card[data-v-4a87dc00]{height:300px;width:300px;background:#e4e4e4}@media (prefers-color-scheme: dark){.card[data-v-4a87dc00]{background-color:#1a1a1a;color:#fff}}.dropdown-container[data-v-75185cc0]{transform-origin:center}.dropdown[data-v-75185cc0]{z-index:101;-webkit-user-select:none;user-select:none;list-style:none;margin:0;padding:0;width:var(--sb-width, 330px);font-size:var(--sb-fs, 14px);background-color:#ebebebf3;position:fixed;-webkit-backdrop-filter:blur(12.5px);backdrop-filter:blur(12.5px);left:var(--v1b68a8ea);top:var(--v5a2cd86a);border:2px solid #cdcdcd}.dropdown_backgroud[data-v-75185cc0]{position:fixed;inset:0;background-color:#0000;z-index:100}.dropdown li[data-v-75185cc0]{height:18px;position:relative;display:flex;align-items:center;padding:var(--sb-pad, 10px 15px);transition:transform .15s cubic-bezier(.05,-.01,0,1)}.dropdown li[data-v-75185cc0]:active{transform:scale(.975)}.dropdown li[data-v-75185cc0]:hover{background:var(--sb-hover-bg, #cecece)}.label[data-v-75185cc0]{color:var(--sb-label-color, #333);white-space:nowrap;font-size:16px}.v-enter-active[data-v-75185cc0]{transition:all .15s cubic-bezier(.05,-.01,0,1);position:fixed}.v-leave-active[data-v-75185cc0]{box-shadow:0 0 30px #7d7d7d00;transition:all .15s cubic-bezier(.05,-.01,0,1);position:fixed}.v-enter-from[data-v-75185cc0],.v-leave-to[data-v-75185cc0]{opacity:0;position:fixed}.topappbar[data-v-c9ad5673]{position:sticky;top:0;-webkit-user-select:none;user-select:none;list-style:none;margin:0;padding:0;width:330px;font-size:14px;background-color:#ebebebf3;-webkit-backdrop-filter:blur(12.5px);backdrop-filter:blur(12.5px);width:100%}.topappbar li[data-v-c9ad5673]{transform-origin:center;position:relative;display:inline-block;align-items:center;padding:10px 15px 0}.topappbar .topappbar-item[data-v-c9ad5673]:hover{background:#cecece}.topappbar-label[data-v-c9ad5673]{color:#333;white-space:nowrap;font-size:16px}.topappbar-indicator[data-v-c9ad5673]{height:2.5px;background-color:#006fd0;width:26px;margin:8px auto 0;display:block}.topappbar-indicator-not[data-v-c9ad5673]{height:2.5px;background-color:#006fd000;width:26px;margin:8px auto 0;display:block}@media (prefers-color-scheme: dark){.topappbar[data-v-c9ad5673]{background-color:#363636;color:#fff}.topappbar .topappbar-item[data-v-c9ad5673]:hover{background:#252525;color:#fff}.topappbar-label[data-v-c9ad5673]{color:#fff}.topappbar-indicator[data-v-c9ad5673]{background-color:#4b99da}}.webwin-slider[data-v-480ca2b0]{--l: 2px;--s: 20px;width:600px;appearance:none;background:none;cursor:default;overflow:hidden}.webwin-slider[type=range i][data-v-480ca2b0]::-webkit-slider-thumb{height:var(--s);aspect-ratio:1;border-radius:50%;box-shadow:0 0 0 3px inset var(--v23dfb612);border-image:linear-gradient(90deg,var(--v23dfb612) 50%,#ababab 0) 0 1/ calc(50% - 1px) 100vw/0 calc(100vw + 0px);-webkit-appearance:none;appearance:none}
|
package/web-win-vue.mjs
DELETED
|
@@ -1,714 +0,0 @@
|
|
|
1
|
-
import { createElementBlock as r, openBlock as c, renderSlot as k, defineComponent as N, ref as u, normalizeClass as f, unref as d, createElementVNode as l, toDisplayString as x, createVNode as V, Fragment as $, renderList as S, normalizeStyle as R, watch as oe, Transition as I, withCtx as W, createCommentVNode as C, withDirectives as B, vShow as F, onMounted as le, nextTick as ne, createBlock as T, vModelCheckbox as se, vModelRadio as ae, useCssVars as D, createTextVNode as ie, isRef as L, KeepAlive as ce, mergeModels as re, useModel as ue, vModelText as de } from "vue";
|
|
2
|
-
const g = (e, o) => {
|
|
3
|
-
const n = e.__vccOpts || e;
|
|
4
|
-
for (const [t, s] of o)
|
|
5
|
-
n[t] = s;
|
|
6
|
-
return n;
|
|
7
|
-
}, pe = {
|
|
8
|
-
__name: "webwin-button",
|
|
9
|
-
setup(e) {
|
|
10
|
-
return console.log("%c✨Welcome to Web-Win-Vue-Button✨", `
|
|
11
|
-
color: #0078d7;
|
|
12
|
-
text-shadow: 0 1px 0 #0078d7;`), (o, n) => (c(), r("button", null, [
|
|
13
|
-
k(o.$slots, "default", {}, void 0, !0)
|
|
14
|
-
]));
|
|
15
|
-
}
|
|
16
|
-
}, H = /* @__PURE__ */ g(pe, [["__scopeId", "data-v-85a8a3fa"]]), me = ["value", "placeholder"], ve = /* @__PURE__ */ N({
|
|
17
|
-
__name: "webwin-inputbox",
|
|
18
|
-
props: { value: String, placeholder: String },
|
|
19
|
-
setup(e) {
|
|
20
|
-
console.log("%c✨Welcome to Web-Win-Vue-InputBox✨", `
|
|
21
|
-
color: #0078d7;
|
|
22
|
-
text-shadow: 0 1px 0 #0078d7;`);
|
|
23
|
-
const n = u(e.placeholder);
|
|
24
|
-
return (t, s) => (c(), r("input", {
|
|
25
|
-
type: "text",
|
|
26
|
-
name: "fname",
|
|
27
|
-
class: "uwpinput",
|
|
28
|
-
value: e.value,
|
|
29
|
-
placeholder: n.value,
|
|
30
|
-
onChange: s[0] || (s[0] = (a) => t.$emit("@change", a))
|
|
31
|
-
}, null, 40, me));
|
|
32
|
-
}
|
|
33
|
-
}), X = /* @__PURE__ */ g(ve, [["__scopeId", "data-v-227ff99f"]]), he = { class: "sidebar-text" }, we = { style: { width: "var(--sb-width, 350px)", margin: "auto" } }, _e = { style: { overflow: "auto", height: "calc( 100% - 240px )", "overflow-x": "hidden" } }, fe = ["onClick"], ge = {
|
|
34
|
-
class: "icon",
|
|
35
|
-
viewBox: "0 0 1024 1024",
|
|
36
|
-
fill: "currentColor",
|
|
37
|
-
"aria-hidden": "true",
|
|
38
|
-
height: "16"
|
|
39
|
-
}, be = ["d"], xe = {
|
|
40
|
-
__name: "webwin-item",
|
|
41
|
-
props: {
|
|
42
|
-
items: { type: Array, required: !0 },
|
|
43
|
-
modelValue: { type: Number, default: 0 },
|
|
44
|
-
title: { type: String, default: "Menu" },
|
|
45
|
-
bartitle: { type: String, default: "Window" }
|
|
46
|
-
},
|
|
47
|
-
emits: ["update"],
|
|
48
|
-
setup(e, { emit: o }) {
|
|
49
|
-
console.log("%c✨Welcome to Web-Win-Vue-Item✨", `
|
|
50
|
-
color: #0078d7;
|
|
51
|
-
text-shadow: 0 1px 0 #0078d7;`);
|
|
52
|
-
const n = o;
|
|
53
|
-
let t = u("");
|
|
54
|
-
function s() {
|
|
55
|
-
t.value === "" ? (t.value = "folded", n("update", !1)) : (t.value = "", n("update", !0));
|
|
56
|
-
}
|
|
57
|
-
return (a, i) => (c(), r("ul", {
|
|
58
|
-
class: f(["side-bar", d(t)])
|
|
59
|
-
}, [
|
|
60
|
-
l("div", {
|
|
61
|
-
class: f(["sidebar", d(t)])
|
|
62
|
-
}, [
|
|
63
|
-
l("p", he, x(e.bartitle), 1)
|
|
64
|
-
], 2),
|
|
65
|
-
l("div", null, [
|
|
66
|
-
l("li", {
|
|
67
|
-
style: { "margin-top": "24px", width: "24px" },
|
|
68
|
-
onClick: s
|
|
69
|
-
}, [
|
|
70
|
-
i[0] || (i[0] = l("svg", {
|
|
71
|
-
class: "icon",
|
|
72
|
-
viewBox: "0 0 1024 1024",
|
|
73
|
-
fill: "currentColor",
|
|
74
|
-
"aria-hidden": "true"
|
|
75
|
-
}, [
|
|
76
|
-
l("path", {
|
|
77
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
78
|
-
style: { stroke: "none", "fill-rule": "nonzero", fill: "rgb(0%,0%,0%)", "fill-opacity": "1" },
|
|
79
|
-
d: "M63.7 191.4h895.2v64H63.7zM63.7 480.2h895.2v64H63.7zM63.7 767.2h895.2v64H63.7z"
|
|
80
|
-
})
|
|
81
|
-
], -1)),
|
|
82
|
-
l("span", {
|
|
83
|
-
class: f(["label", d(t)])
|
|
84
|
-
}, null, 2)
|
|
85
|
-
]),
|
|
86
|
-
l("li", {
|
|
87
|
-
onClick: s,
|
|
88
|
-
class: f(["search-fold", d(t)])
|
|
89
|
-
}, [
|
|
90
|
-
i[1] || (i[1] = l("svg", {
|
|
91
|
-
class: "icon",
|
|
92
|
-
viewBox: "0 0 1024 1024",
|
|
93
|
-
fill: "currentColor",
|
|
94
|
-
"aria-hidden": "true"
|
|
95
|
-
}, [
|
|
96
|
-
l("path", {
|
|
97
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
98
|
-
style: { stroke: "none", "fill-rule": "nonzero", fill: "rgb(0%,0%,0%)", "fill-opacity": "1" },
|
|
99
|
-
d: "M916.374282 878.7028 661.417543 604.016717c1.402953-1.616824 2.784416-3.254114 4.155646-4.90266 0.367367-0.459464 0.747014-0.909719 1.115404-1.37123 1.308809-1.585101 2.600221-3.181459 3.879354-4.798283 0.337691-0.429789 0.675382-0.86981 1.011027-1.299599 1.209548-1.555425 2.416026-3.122107 3.603061-4.696975 0.347924-0.471744 0.695848-0.931209 1.043772-1.402953 1.176802-1.585101 2.354628-3.181459 3.499707-4.798283 0.318248-0.449231 0.633427-0.889253 0.951675-1.331321 1.197268-1.686409 2.37407-3.39533 3.541663-5.104251 0.285502-0.419556 0.561795-0.829901 0.849344-1.249457 1.257643-1.87265 2.495844-3.755534 3.723811-5.65786 0.23536-0.360204 0.461511-0.727571 0.695848-1.085728 1.127683-1.77032 2.232854-3.551896 3.325745-5.342682 0.268106-0.440022 0.533143-0.87902 0.799202-1.319042 1.052982-1.750877 2.096754-3.50994 3.120061-5.28026 0.255827-0.440022 0.511653-0.87902 0.76748-1.331321 1.035586-1.801019 2.046612-3.611248 3.040243-5.432733 0.226151-0.409322 0.449231-0.819668 0.675382-1.228991 1.052982-1.944282 2.076288-3.90903 3.099594-5.873778l0.533143-1.052982c1.043772-2.046612 2.067079-4.103458 3.069919-6.181793 0.184195-0.358157 0.347924-0.715291 0.521886-1.083681 0.941442-1.954515 1.851161-3.90903 2.75167-5.884011 0.184195-0.400113 0.358157-0.809435 0.541329-1.207501 0.881067-1.954515 1.740644-3.931542 2.579755-5.9055 0.173962-0.398066 0.347924-0.797156 0.511653-1.197268 0.859577-2.036379 1.698688-4.082992 2.506077-6.139837 0.134053-0.316202 0.26606-0.64366 0.38988-0.971118 0.87902-2.240017 1.738597-4.493338 2.568499-6.753821l0.255827-0.707105c0.807389-2.220574 1.595334-4.451382 2.362814-6.691399 0.113587-0.327458 0.215918-0.655939 0.318248-0.973164 0.727571-2.148943 1.432629-4.296863 2.109034-6.465249l0.327458-1.055029c0.663102-2.169409 1.308809-4.349051 1.942235-6.538927l0.277316-0.971118c0.64366-2.272763 1.257643-4.563946 1.851161-6.856152 0.062422-0.225127 0.12382-0.450255 0.186242-0.674359 0.623193-2.455935 1.226944-4.923126 1.801019-7.398504l0.121773-0.542352c0.543376-2.373047 1.065262-4.748141 1.555425-7.141654l0.173962-0.880043c0.471744-2.302439 0.920976-4.626367 1.341554-6.948249l0.163729-0.920976c0.419556-2.353604 0.809435-4.716418 1.167592-7.081279 0.039909-0.26606 0.092098-0.532119 0.121773-0.797156 0.38988-2.518357 0.747014-5.045923 1.065262-7.582699l0.029676-0.23536c0.337691-2.620687 0.633427-5.238304 0.901533-7.868201l0.060375-0.563842c0.245593-2.486634 0.471744-4.982478 0.665149-7.480368l0.052189-0.788969c0.184195-2.445702 0.337691-4.900613 0.469698-7.356548l0.041956-0.849344c0.121773-2.5071 0.224104-5.024433 0.285502-7.541767l0.020466-0.582261c0.062422-2.711761 0.104377-5.424546 0.104377-8.146541 0-178.843224-145.034211-323.876412-323.876412-323.876412-178.844248 0-323.886645 145.033187-323.886645 323.876412 0 178.844248 145.043421 323.876412 323.886645 323.876412 2.701528 0 5.392824-0.029676 8.073886-0.102331l0.490164-0.010233c2.620687-0.062422 5.219885-0.163729 7.819083-0.295735l0.603751-0.031722c2.620687-0.132006 5.239328-0.295735 7.838525-0.50142l0.245593-0.010233c2.578732-0.203638 5.136997-0.429789 7.68503-0.685615l0.583285-0.060375c2.51631-0.255827 5.034666-0.543376 7.53051-0.861624l0.76748-0.092098c2.476401-0.325411 4.952802-0.663102 7.408737-1.043772l0.715291-0.11154c2.364861-0.358157 4.718465-0.747014 7.071046-1.167592l0.777713-0.144286c2.37407-0.417509 4.728698-0.87902 7.083326-1.348718l1.115404-0.23536c2.292206-0.471744 4.583388-0.960885 6.855128-1.484817 0.38988-0.092098 0.777713-0.184195 1.157359-0.276293 2.13871-0.491187 4.256954-1.013073 6.374174-1.555425 0.451278-0.11154 0.900509-0.226151 1.350764-0.347924 2.109034-0.541329 4.195555-1.115404 6.293333-1.698688 0.50142-0.144286 1.00284-0.285502 1.505283-0.429789 2.096754-0.603751 4.185322-1.216711 6.261611-1.862417 0.543376-0.163729 1.075495-0.337691 1.616824-0.50142 1.882883-0.593518 3.755534-1.207501 5.628184-1.830695 0.685615-0.226151 1.360997-0.461511 2.046612-0.685615 1.790786-0.62524 3.581572-1.249457 5.362124-1.895163 0.633427-0.234337 1.2689-0.459464 1.902326-0.695848 1.882883-0.695848 3.755534-1.411139 5.617951-2.13871 0.705058-0.276293 1.402953-0.551562 2.109034-0.827855 1.616824-0.645706 3.233648-1.310855 4.840238-1.986237 0.899486-0.367367 1.790786-0.757247 2.680039-1.134847 1.505283-0.645706 2.998287-1.289366 4.483104-1.954515 0.941442-0.419556 1.87265-0.839111 2.814092-1.2689 1.503237-0.695848 3.007497-1.390673 4.500501-2.109034 0.819668-0.387833 1.629103-0.777713 2.436492-1.174756 1.390673-0.675382 2.774183-1.360997 4.145413-2.058892 1.063215-0.541329 2.128477-1.083681 3.191692-1.63729 1.2689-0.653893 2.52859-1.319042 3.78521-1.994424 1.127683-0.603751 2.242064-1.216711 3.367701-1.832741 1.226944-0.685615 2.455935-1.37123 3.683902-2.067079 1.023306-0.574075 2.046612-1.167592 3.059686-1.759063 1.043772-0.61603 2.098801-1.228991 3.14155-1.853208 1.176802-0.717338 2.364861-1.423419 3.529383-2.148943 1.085728-0.665149 2.160199-1.341554 3.233648-2.016937 1.216711-0.76748 2.426259-1.545192 3.63376-2.332115 1.052982-0.685615 2.086521-1.360997 3.13234-2.058892l0.020466-0.010233 255.611655 275.361465c18.399045 19.822464 46.170552 23.64042 62.59564 9.56996l6.723122-5.752004C937.106466 927.146115 934.764118 898.512984 916.374282 878.7028zM416.63349 630.643144c-131.760906 0-238.604306-106.853633-238.604306-238.603283 0-131.750673 106.8434-238.604306 238.604306-238.604306 131.74965 0 238.594073 106.853633 238.594073 238.604306C655.227564 523.789511 548.38314 630.643144 416.63349 630.643144z"
|
|
100
|
-
})
|
|
101
|
-
], -1)),
|
|
102
|
-
l("span", {
|
|
103
|
-
class: f(["label", d(t)])
|
|
104
|
-
}, null, 2)
|
|
105
|
-
], 2),
|
|
106
|
-
l("div", we, [
|
|
107
|
-
V(X, {
|
|
108
|
-
placeholder: "查找",
|
|
109
|
-
class: f(["inputbox", d(t)]),
|
|
110
|
-
style: { "margin-top": "6px", width: "320px", transition: "all 0s ease" }
|
|
111
|
-
}, null, 8, ["class"])
|
|
112
|
-
]),
|
|
113
|
-
l("h3", {
|
|
114
|
-
style: { "margin-top": "26px", "margin-bottom": "26px", "margin-left": "18px" },
|
|
115
|
-
class: f(["title", d(t)])
|
|
116
|
-
}, x(e.title), 3)
|
|
117
|
-
]),
|
|
118
|
-
l("div", _e, [
|
|
119
|
-
(c(!0), r($, null, S(e.items, (h, p) => (c(), r("li", {
|
|
120
|
-
key: p,
|
|
121
|
-
class: f({ active: p === e.modelValue }),
|
|
122
|
-
onClick: (v) => a.$emit("update:modelValue", p)
|
|
123
|
-
}, [
|
|
124
|
-
i[2] || (i[2] = l("span", { class: "indicator" }, null, -1)),
|
|
125
|
-
(c(), r("svg", ge, [
|
|
126
|
-
l("path", {
|
|
127
|
-
d: h.icon
|
|
128
|
-
}, null, 8, be)
|
|
129
|
-
])),
|
|
130
|
-
l("span", {
|
|
131
|
-
class: f(["label", d(t)])
|
|
132
|
-
}, x(h.name), 3)
|
|
133
|
-
], 10, fe))), 128))
|
|
134
|
-
])
|
|
135
|
-
], 2));
|
|
136
|
-
}
|
|
137
|
-
}, Y = /* @__PURE__ */ g(xe, [["__scopeId", "data-v-30fc2437"]]);
|
|
138
|
-
console.log("%c✨Welcome to Web-Win-Vue-Tile✨", `
|
|
139
|
-
color: #0078d7;
|
|
140
|
-
text-shadow: 0 1px 0 #0078d7;`);
|
|
141
|
-
const ye = {
|
|
142
|
-
props: {
|
|
143
|
-
size: { default: "medium" },
|
|
144
|
-
color: { default: "#0078d7" },
|
|
145
|
-
title: { default: "App" },
|
|
146
|
-
icon: { default: "" },
|
|
147
|
-
glowColor: { default: "rgba(255,255,255,0.5)" },
|
|
148
|
-
glowRadius: { default: 60 }
|
|
149
|
-
},
|
|
150
|
-
data() {
|
|
151
|
-
return {
|
|
152
|
-
isHovered: !1,
|
|
153
|
-
mouseX: 0,
|
|
154
|
-
mouseY: 0,
|
|
155
|
-
glowOpacity: 0
|
|
156
|
-
};
|
|
157
|
-
},
|
|
158
|
-
computed: {
|
|
159
|
-
tileStyle() {
|
|
160
|
-
return {
|
|
161
|
-
"--tile-color": this.color,
|
|
162
|
-
"--glow-color": this.glowColor,
|
|
163
|
-
"--glow-radius": `${this.glowRadius}px`
|
|
164
|
-
};
|
|
165
|
-
},
|
|
166
|
-
glowStyle() {
|
|
167
|
-
return {
|
|
168
|
-
"--x": `${this.mouseX}px`,
|
|
169
|
-
"--y": `${this.mouseY}px`,
|
|
170
|
-
opacity: this.glowOpacity
|
|
171
|
-
};
|
|
172
|
-
},
|
|
173
|
-
pointerGlowStyle() {
|
|
174
|
-
return {
|
|
175
|
-
"--x": `${this.mouseX}px`,
|
|
176
|
-
"--y": `${this.mouseY}px`,
|
|
177
|
-
opacity: this.isHovered ? 1 : 0
|
|
178
|
-
};
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
methods: {
|
|
182
|
-
handleMouseMove(e) {
|
|
183
|
-
const o = e.currentTarget.getBoundingClientRect();
|
|
184
|
-
this.mouseX = e.clientX - o.left, this.mouseY = e.clientY - o.top;
|
|
185
|
-
const n = Math.min(
|
|
186
|
-
this.mouseX,
|
|
187
|
-
o.width - this.mouseX,
|
|
188
|
-
this.mouseY,
|
|
189
|
-
o.height - this.mouseY
|
|
190
|
-
), t = this.glowRadius;
|
|
191
|
-
this.glowOpacity = Math.max(0, (t - n) / t);
|
|
192
|
-
},
|
|
193
|
-
handleMouseLeave() {
|
|
194
|
-
this.isHovered = !1, this.glowOpacity = 0;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
}, $e = { class: "tile-content" }, ke = { class: "tile-icon" }, Ce = {
|
|
198
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
199
|
-
viewBox: "0 0 24 24",
|
|
200
|
-
width: "24",
|
|
201
|
-
height: "24"
|
|
202
|
-
}, We = ["d"], Ve = { class: "tile-title" };
|
|
203
|
-
function Me(e, o, n, t, s, a) {
|
|
204
|
-
return c(), r("div", {
|
|
205
|
-
class: f(["tile", n.size]),
|
|
206
|
-
style: R(a.tileStyle),
|
|
207
|
-
onMousemove: o[0] || (o[0] = (...i) => a.handleMouseMove && a.handleMouseMove(...i)),
|
|
208
|
-
onMouseenter: o[1] || (o[1] = (i) => s.isHovered = !0),
|
|
209
|
-
onMouseleave: o[2] || (o[2] = (...i) => a.handleMouseLeave && a.handleMouseLeave(...i))
|
|
210
|
-
}, [
|
|
211
|
-
l("div", $e, [
|
|
212
|
-
l("div", ke, [
|
|
213
|
-
k(e.$slots, "icon", {}, () => [
|
|
214
|
-
(c(), r("svg", Ce, [
|
|
215
|
-
l("path", {
|
|
216
|
-
fill: "white",
|
|
217
|
-
d: n.icon
|
|
218
|
-
}, null, 8, We)
|
|
219
|
-
]))
|
|
220
|
-
], !0)
|
|
221
|
-
]),
|
|
222
|
-
l("div", Ve, x(n.title), 1)
|
|
223
|
-
]),
|
|
224
|
-
l("div", {
|
|
225
|
-
class: "glow-border",
|
|
226
|
-
style: R(a.glowStyle)
|
|
227
|
-
}, null, 4),
|
|
228
|
-
l("div", {
|
|
229
|
-
class: "pointer-glow",
|
|
230
|
-
style: R(a.pointerGlowStyle)
|
|
231
|
-
}, null, 4)
|
|
232
|
-
], 38);
|
|
233
|
-
}
|
|
234
|
-
const O = /* @__PURE__ */ g(ye, [["render", Me], ["__scopeId", "data-v-9ae9ef89"]]), Se = { class: "container" }, Ie = ["src"], Be = ["src"], U = {
|
|
235
|
-
__name: "webwin-tab",
|
|
236
|
-
props: { menu: Array, url: Array, titlebar: Boolean, titlebartext: String },
|
|
237
|
-
setup(e) {
|
|
238
|
-
console.log("%c✨Welcome to Web-Win-Vue-Tab✨", `
|
|
239
|
-
color: #0078d7;
|
|
240
|
-
text-shadow: 0 1px 0 #0078d7;`);
|
|
241
|
-
const o = e, n = u(0), t = u(0), s = u(o.url[0]);
|
|
242
|
-
let a = u(""), i = u("");
|
|
243
|
-
o.titlebar ? a.value = o.titlebartext : a.value = "", oe(n, (p) => {
|
|
244
|
-
console.log("activeIndex changed:", p), console.log("new url:", o.url[p]), s.value = o.url[p], t.value = t.value === 0 ? 1 : 0, console.log("docState:", t.value);
|
|
245
|
-
});
|
|
246
|
-
function h(p) {
|
|
247
|
-
p ? i.value = "" : i.value = "folded";
|
|
248
|
-
}
|
|
249
|
-
return (p, v) => (c(), r("div", Se, [
|
|
250
|
-
V(Y, {
|
|
251
|
-
modelValue: n.value,
|
|
252
|
-
"onUpdate:modelValue": v[0] || (v[0] = (b) => n.value = b),
|
|
253
|
-
items: e.menu,
|
|
254
|
-
class: "item-1",
|
|
255
|
-
bartitle: d(a),
|
|
256
|
-
onUpdate: h
|
|
257
|
-
}, null, 8, ["modelValue", "items", "bartitle"]),
|
|
258
|
-
V(I, {
|
|
259
|
-
name: "fade",
|
|
260
|
-
mode: "out-in"
|
|
261
|
-
}, {
|
|
262
|
-
default: W(() => [
|
|
263
|
-
t.value === 0 ? (c(), r("div", {
|
|
264
|
-
key: "state0",
|
|
265
|
-
class: f(["iframe-container", d(i)])
|
|
266
|
-
}, [
|
|
267
|
-
k(p.$slots, "default", {}, () => [
|
|
268
|
-
B(l("iframe", {
|
|
269
|
-
src: s.value,
|
|
270
|
-
style: { "margin-top": "70px" }
|
|
271
|
-
}, null, 8, Ie), [
|
|
272
|
-
[F, t.value === 0]
|
|
273
|
-
])
|
|
274
|
-
])
|
|
275
|
-
], 2)) : t.value === 1 ? (c(), r("div", {
|
|
276
|
-
key: "state1",
|
|
277
|
-
class: f(["iframe-container", d(i)])
|
|
278
|
-
}, [
|
|
279
|
-
k(p.$slots, "default", {}, () => [
|
|
280
|
-
B(l("iframe", {
|
|
281
|
-
src: s.value,
|
|
282
|
-
style: { "margin-top": "70px" }
|
|
283
|
-
}, null, 8, Be), [
|
|
284
|
-
[F, t.value === 1]
|
|
285
|
-
])
|
|
286
|
-
])
|
|
287
|
-
], 2)) : C("", !0)
|
|
288
|
-
]),
|
|
289
|
-
_: 3
|
|
290
|
-
})
|
|
291
|
-
]));
|
|
292
|
-
}
|
|
293
|
-
}, Ne = ["value", "placeholder"], ze = /* @__PURE__ */ N({
|
|
294
|
-
__name: "webwin-passwordbox",
|
|
295
|
-
props: { value: String, placeholder: String },
|
|
296
|
-
setup(e) {
|
|
297
|
-
console.log("%c✨Welcome to Web-Win-Vue-PasswordBox✨", `
|
|
298
|
-
color: #0078d7;
|
|
299
|
-
text-shadow: 0 1px 0 #0078d7;`);
|
|
300
|
-
const o = e, n = u(o.value), t = u(o.placeholder);
|
|
301
|
-
return (s, a) => (c(), r("input", {
|
|
302
|
-
type: "password",
|
|
303
|
-
name: "fname",
|
|
304
|
-
class: "uwppassword",
|
|
305
|
-
value: n.value,
|
|
306
|
-
placeholder: t.value,
|
|
307
|
-
onChange: a[0] || (a[0] = (i) => s.$emit("@change", i))
|
|
308
|
-
}, null, 40, Ne));
|
|
309
|
-
}
|
|
310
|
-
}), q = /* @__PURE__ */ g(ze, [["__scopeId", "data-v-5ce652ab"]]), Re = ["data-placeholder"], Te = /* @__PURE__ */ N({
|
|
311
|
-
__name: "webwin-richeditbox",
|
|
312
|
-
props: {
|
|
313
|
-
value: { type: String, default: "" },
|
|
314
|
-
placeholder: { type: String, default: "" }
|
|
315
|
-
},
|
|
316
|
-
emits: ["update", "change"],
|
|
317
|
-
setup(e, { emit: o }) {
|
|
318
|
-
const n = e, t = o, s = u(null), a = u(n.placeholder), i = u(n.value);
|
|
319
|
-
le(() => {
|
|
320
|
-
s.value && (s.value.textContent = n.value || "", i.value = n.value || "");
|
|
321
|
-
});
|
|
322
|
-
const h = (b) => {
|
|
323
|
-
if (!s.value) return;
|
|
324
|
-
const w = s.value.textContent || "";
|
|
325
|
-
t("update", w), ne(() => {
|
|
326
|
-
if (s.value) {
|
|
327
|
-
const m = document.createRange(), _ = window.getSelection();
|
|
328
|
-
m.selectNodeContents(s.value), m.collapse(!1), _?.removeAllRanges(), _?.addRange(m);
|
|
329
|
-
}
|
|
330
|
-
});
|
|
331
|
-
}, p = (b) => {
|
|
332
|
-
const w = b.target;
|
|
333
|
-
w.textContent === n.placeholder && (w.textContent = "");
|
|
334
|
-
}, v = (b) => {
|
|
335
|
-
const w = b.target, m = w.textContent || "";
|
|
336
|
-
m !== i.value && (t("change", {
|
|
337
|
-
target: {
|
|
338
|
-
value: m
|
|
339
|
-
}
|
|
340
|
-
}), i.value = m), m.trim() === "" && (w.textContent = "");
|
|
341
|
-
};
|
|
342
|
-
return (b, w) => (c(), r("div", {
|
|
343
|
-
ref_key: "editableDiv",
|
|
344
|
-
ref: s,
|
|
345
|
-
class: "uwprichrditbox",
|
|
346
|
-
contenteditable: "plaintext-only",
|
|
347
|
-
"data-placeholder": a.value,
|
|
348
|
-
onInput: h,
|
|
349
|
-
onFocus: p,
|
|
350
|
-
onBlur: v
|
|
351
|
-
}, null, 40, Re));
|
|
352
|
-
}
|
|
353
|
-
}), E = /* @__PURE__ */ g(Te, [["__scopeId", "data-v-062c85b9"]]), De = ["src"], He = {
|
|
354
|
-
class: "n-name",
|
|
355
|
-
style: { display: "inline-block", "margin-left": "6px" }
|
|
356
|
-
}, Xe = { class: "n-text n-title" }, Ye = { class: "n-vulua" }, Fe = {
|
|
357
|
-
__name: "webwin-notifications",
|
|
358
|
-
props: { name: String, title: String, text: String, img: String },
|
|
359
|
-
setup(e, { expose: o }) {
|
|
360
|
-
const n = e;
|
|
361
|
-
let t = u(!1), s = u(n.img);
|
|
362
|
-
const a = () => {
|
|
363
|
-
t.value = !t.value;
|
|
364
|
-
};
|
|
365
|
-
function i() {
|
|
366
|
-
t.value && setTimeout(() => {
|
|
367
|
-
t.value = !1;
|
|
368
|
-
}, 250);
|
|
369
|
-
}
|
|
370
|
-
return o({ showNotification: a }), console.log("%c✨Welcome to Web-Win-Vue-Notifications✨", `
|
|
371
|
-
color: #0078d7;
|
|
372
|
-
text-shadow: 0 1px 0 #0078d7;`), (h, p) => (c(), T(I, { name: "slide-fade" }, {
|
|
373
|
-
default: W(() => [
|
|
374
|
-
d(t) ? (c(), r("div", {
|
|
375
|
-
key: 0,
|
|
376
|
-
class: "Notification",
|
|
377
|
-
onClick: i
|
|
378
|
-
}, [
|
|
379
|
-
l("img", {
|
|
380
|
-
src: d(s),
|
|
381
|
-
style: { "object-fit": "contain", "margin-left": "16px", "margin-right": "0px", display: "inline-block", "vertical-align": "middle", width: "16px", height: "16px" }
|
|
382
|
-
}, null, 8, De),
|
|
383
|
-
l("p", He, x(e.name), 1),
|
|
384
|
-
l("h4", Xe, x(e.title), 1),
|
|
385
|
-
l("p", Ye, x(e.text), 1)
|
|
386
|
-
])) : C("", !0)
|
|
387
|
-
]),
|
|
388
|
-
_: 1
|
|
389
|
-
}));
|
|
390
|
-
}
|
|
391
|
-
}, G = /* @__PURE__ */ g(Fe, [["__scopeId", "data-v-55ec523b"]]), Le = ["name", "id"], Oe = ["for"], Ue = /* @__PURE__ */ N({
|
|
392
|
-
__name: "webwin-checkbox",
|
|
393
|
-
props: { name: String, checked: Array },
|
|
394
|
-
setup(e) {
|
|
395
|
-
const o = e, n = u(o.name), t = u(o.checked);
|
|
396
|
-
return console.log("%c✨Welcome to Web-Win-Vue-Checkbox✨", `
|
|
397
|
-
color: #0078d7;
|
|
398
|
-
text-shadow: 0 1px 0 #0078d7;`), (s, a) => (c(), r($, null, [
|
|
399
|
-
B(l("input", {
|
|
400
|
-
type: "checkbox",
|
|
401
|
-
class: "ww-checkbox",
|
|
402
|
-
name: n.value,
|
|
403
|
-
id: n.value,
|
|
404
|
-
"onUpdate:modelValue": a[0] || (a[0] = (i) => t.value = i),
|
|
405
|
-
onClick: a[1] || (a[1] = (i) => s.$emit("click", i))
|
|
406
|
-
}, null, 8, Le), [
|
|
407
|
-
[se, t.value]
|
|
408
|
-
]),
|
|
409
|
-
l("label", {
|
|
410
|
-
for: n.value,
|
|
411
|
-
class: "ww-checkbox-label"
|
|
412
|
-
}, [
|
|
413
|
-
k(s.$slots, "default", {}, void 0, !0)
|
|
414
|
-
], 8, Oe)
|
|
415
|
-
], 64));
|
|
416
|
-
}
|
|
417
|
-
}), P = /* @__PURE__ */ g(Ue, [["__scopeId", "data-v-c289ea76"]]), qe = ["name", "id"], Ee = ["for"], Ge = /* @__PURE__ */ N({
|
|
418
|
-
__name: "webwin-radio",
|
|
419
|
-
props: { name: String, checked: Array },
|
|
420
|
-
setup(e) {
|
|
421
|
-
const o = e, n = u(o.name), t = u(o.checked);
|
|
422
|
-
return console.log("%c✨Welcome to Web-Win-Vue-radio✨", `
|
|
423
|
-
color: #0078d7;
|
|
424
|
-
text-shadow: 0 1px 0 #0078d7;`), (s, a) => (c(), r($, null, [
|
|
425
|
-
B(l("input", {
|
|
426
|
-
type: "radio",
|
|
427
|
-
class: "ww-radio",
|
|
428
|
-
name: n.value,
|
|
429
|
-
id: n.value,
|
|
430
|
-
"onUpdate:modelValue": a[0] || (a[0] = (i) => t.value = i),
|
|
431
|
-
onClick: a[1] || (a[1] = (i) => s.$emit("click", i))
|
|
432
|
-
}, null, 8, qe), [
|
|
433
|
-
[ae, t.value]
|
|
434
|
-
]),
|
|
435
|
-
l("label", {
|
|
436
|
-
for: n.value,
|
|
437
|
-
class: "ww-radio-label"
|
|
438
|
-
}, [
|
|
439
|
-
k(s.$slots, "default", {}, void 0, !0)
|
|
440
|
-
], 8, Ee)
|
|
441
|
-
], 64));
|
|
442
|
-
}
|
|
443
|
-
}), j = /* @__PURE__ */ g(Ge, [["__scopeId", "data-v-6df73cdd"]]), Pe = { style: { position: "relative" } }, je = {
|
|
444
|
-
key: 0,
|
|
445
|
-
class: "list-box"
|
|
446
|
-
}, Ke = { style: { overflow: "auto", height: "calc( 100% - 240px )" } }, Je = ["onClick"], Qe = { class: "label" }, Ze = {
|
|
447
|
-
__name: "webwin-combobox",
|
|
448
|
-
props: {
|
|
449
|
-
items: { type: Array, required: !0 },
|
|
450
|
-
modelValue: { type: Number, default: 0 },
|
|
451
|
-
title: { type: String, default: "itembox" }
|
|
452
|
-
},
|
|
453
|
-
emits: ["update"],
|
|
454
|
-
setup(e, { emit: o }) {
|
|
455
|
-
D((m) => ({
|
|
456
|
-
v61ff2edc: d(v) + "px",
|
|
457
|
-
v34605ad9: d(p) + "px"
|
|
458
|
-
})), console.log("%c✨Welcome to Web-Win-Vue-Item✨", `
|
|
459
|
-
color: #0078d7;
|
|
460
|
-
text-shadow: 0 1px 0 #0078d7;`);
|
|
461
|
-
const n = e, t = o;
|
|
462
|
-
let s = u(""), a = u(!1), i = u(n.modelValue), h = u(n.title), p = u(-6), v = u(6);
|
|
463
|
-
function b(m) {
|
|
464
|
-
a.value = !1, s.value = "", i.value = m, h.value = n.items[m].name, t("update", m), setTimeout(() => {
|
|
465
|
-
p.value = m * -35 - 6, v.value = m * 35 + 6;
|
|
466
|
-
}, 100);
|
|
467
|
-
}
|
|
468
|
-
function w() {
|
|
469
|
-
a.value = !a.value, s.value = a.value ? "active" : "";
|
|
470
|
-
}
|
|
471
|
-
return (m, _) => (c(), r("div", Pe, [
|
|
472
|
-
l("div", {
|
|
473
|
-
class: f(["list-box-button", d(s)]),
|
|
474
|
-
onClick: w
|
|
475
|
-
}, x(d(h)), 3),
|
|
476
|
-
V(I, null, {
|
|
477
|
-
default: W(() => [
|
|
478
|
-
d(a) ? (c(), r("ul", je, [
|
|
479
|
-
_[0] || (_[0] = l("div", { style: { height: "6px" } }, null, -1)),
|
|
480
|
-
l("div", Ke, [
|
|
481
|
-
(c(!0), r($, null, S(e.items, (y, M) => (c(), r("li", {
|
|
482
|
-
key: M,
|
|
483
|
-
class: f({ active: M === d(i) }),
|
|
484
|
-
onClick: (z) => b(M)
|
|
485
|
-
}, [
|
|
486
|
-
l("span", Qe, x(y.name), 1)
|
|
487
|
-
], 10, Je))), 128))
|
|
488
|
-
]),
|
|
489
|
-
_[1] || (_[1] = l("div", { style: { height: "6px" } }, null, -1))
|
|
490
|
-
])) : C("", !0)
|
|
491
|
-
]),
|
|
492
|
-
_: 1
|
|
493
|
-
})
|
|
494
|
-
]));
|
|
495
|
-
}
|
|
496
|
-
}, K = /* @__PURE__ */ g(Ze, [["__scopeId", "data-v-81f2552b"]]), Ae = { class: "progress-bar" }, et = {
|
|
497
|
-
__name: "webwin-progressbar",
|
|
498
|
-
props: {
|
|
499
|
-
progress: { type: Number, default: 0 }
|
|
500
|
-
},
|
|
501
|
-
setup(e) {
|
|
502
|
-
return console.log("%c✨Welcome to Web-Win-Vue-ProgressBar✨", `
|
|
503
|
-
color: #0078d7;
|
|
504
|
-
text-shadow: 0 1px 0 #0078d7;`), (o, n) => (c(), r("div", Ae, [
|
|
505
|
-
l("div", {
|
|
506
|
-
class: "progress",
|
|
507
|
-
style: R({ width: e.progress + "%" })
|
|
508
|
-
}, null, 4)
|
|
509
|
-
]));
|
|
510
|
-
}
|
|
511
|
-
}, J = /* @__PURE__ */ g(et, [["__scopeId", "data-v-18bec619"]]), tt = {
|
|
512
|
-
key: 0,
|
|
513
|
-
class: "window-background"
|
|
514
|
-
}, ot = {
|
|
515
|
-
key: 0,
|
|
516
|
-
class: "window"
|
|
517
|
-
}, lt = { style: { "margin-top": "24px", "margin-bottom": "24px" } }, nt = { class: "window-title" }, st = { style: { "margin-left": "25px", "margin-right": "24px", width: "calc(100% - 48px)" } }, at = { style: { "margin-left": "24px", "margin-right": "24px", width: "calc(100% - 48px)", display: "Flex", gap: "6px", "margin-top": "48px" } }, it = {
|
|
518
|
-
__name: "webwin-window",
|
|
519
|
-
props: {
|
|
520
|
-
items: { type: Array, required: !0, default: [{ text: "11" }, { text: "11" }] },
|
|
521
|
-
title: { type: String, default: "Title" }
|
|
522
|
-
},
|
|
523
|
-
emits: ["clickBotton"],
|
|
524
|
-
setup(e, { expose: o, emit: n }) {
|
|
525
|
-
let t = u("");
|
|
526
|
-
const s = n, a = () => {
|
|
527
|
-
t.value = !0;
|
|
528
|
-
};
|
|
529
|
-
function i(h) {
|
|
530
|
-
t.value = !1, s("clickBotton", h);
|
|
531
|
-
}
|
|
532
|
-
return o({ showDialog: a }), (h, p) => (c(), r($, null, [
|
|
533
|
-
V(I, null, {
|
|
534
|
-
default: W(() => [
|
|
535
|
-
d(t) ? (c(), r("div", tt)) : C("", !0)
|
|
536
|
-
]),
|
|
537
|
-
_: 1
|
|
538
|
-
}),
|
|
539
|
-
V(I, null, {
|
|
540
|
-
default: W(() => [
|
|
541
|
-
d(t) ? (c(), r("div", ot, [
|
|
542
|
-
l("div", lt, [
|
|
543
|
-
l("h2", nt, x(e.title), 1),
|
|
544
|
-
l("div", st, [
|
|
545
|
-
k(h.$slots, "default", {}, void 0, !0)
|
|
546
|
-
]),
|
|
547
|
-
l("div", at, [
|
|
548
|
-
(c(!0), r($, null, S(e.items, (v, b) => (c(), T(H, {
|
|
549
|
-
class: "window-button",
|
|
550
|
-
key: b,
|
|
551
|
-
onClick: (w) => i(b)
|
|
552
|
-
}, {
|
|
553
|
-
default: W(() => [
|
|
554
|
-
ie(x(v.text), 1)
|
|
555
|
-
]),
|
|
556
|
-
_: 2
|
|
557
|
-
}, 1032, ["onClick"]))), 128))
|
|
558
|
-
])
|
|
559
|
-
])
|
|
560
|
-
])) : C("", !0)
|
|
561
|
-
]),
|
|
562
|
-
_: 3
|
|
563
|
-
})
|
|
564
|
-
], 64));
|
|
565
|
-
}
|
|
566
|
-
}, Q = /* @__PURE__ */ g(it, [["__scopeId", "data-v-181d9761"]]), ct = {}, rt = { class: "card" };
|
|
567
|
-
function ut(e, o) {
|
|
568
|
-
return c(), r("div", rt, [
|
|
569
|
-
k(e.$slots, "default", {}, void 0, !0)
|
|
570
|
-
]);
|
|
571
|
-
}
|
|
572
|
-
const Z = /* @__PURE__ */ g(ct, [["render", ut], ["__scopeId", "data-v-4a87dc00"]]), dt = {
|
|
573
|
-
key: 0,
|
|
574
|
-
class: "dropdown-container"
|
|
575
|
-
}, pt = { class: "dropdown" }, mt = { style: { overflow: "auto", height: "calc( 100% - 240px )" } }, vt = ["onClick"], ht = { class: "label" }, wt = {
|
|
576
|
-
__name: "webwin-dropdown",
|
|
577
|
-
props: {
|
|
578
|
-
items: { type: Array, required: !0 }
|
|
579
|
-
},
|
|
580
|
-
emits: ["update"],
|
|
581
|
-
setup(e, { expose: o, emit: n }) {
|
|
582
|
-
D((_) => ({
|
|
583
|
-
v1b68a8ea: d(a) + "px",
|
|
584
|
-
v5a2cd86a: d(i) + "px"
|
|
585
|
-
})), console.log("%c✨Welcome to Web-Win-Vue-Item✨", `
|
|
586
|
-
color: #0078d7;
|
|
587
|
-
text-shadow: 0 1px 0 #0078d7;`);
|
|
588
|
-
const t = e, s = n;
|
|
589
|
-
let a = u(0), i = u(0), h = u(""), p = u(!1), v = u(0), b = u(t.title || "");
|
|
590
|
-
function w(_) {
|
|
591
|
-
p.value = !1, h.value = "", v.value = _, b.value = t.items[_].name, s("update", _);
|
|
592
|
-
}
|
|
593
|
-
return o({ showbox: (_, y) => {
|
|
594
|
-
p.value = !p.value, h.value = p.value ? "active" : "", a.value = _, i.value = y;
|
|
595
|
-
} }), (_, y) => (c(), r("div", null, [
|
|
596
|
-
V(I, null, {
|
|
597
|
-
default: W(() => [
|
|
598
|
-
d(p) ? (c(), r("div", dt, [
|
|
599
|
-
l("div", {
|
|
600
|
-
class: "dropdown_backgroud",
|
|
601
|
-
onClick: y[0] || (y[0] = (M) => L(p) ? p.value = !1 : p = !1)
|
|
602
|
-
}),
|
|
603
|
-
l("ul", pt, [
|
|
604
|
-
y[1] || (y[1] = l("div", { style: { height: "6px" } }, null, -1)),
|
|
605
|
-
l("div", mt, [
|
|
606
|
-
(c(!0), r($, null, S(e.items, (M, z) => (c(), r("li", {
|
|
607
|
-
key: z,
|
|
608
|
-
class: f({ active: z === d(v) }),
|
|
609
|
-
onClick: (Vt) => w(z)
|
|
610
|
-
}, [
|
|
611
|
-
l("span", ht, x(M.name), 1)
|
|
612
|
-
], 10, vt))), 128))
|
|
613
|
-
]),
|
|
614
|
-
y[2] || (y[2] = l("div", { style: { height: "6px" } }, null, -1))
|
|
615
|
-
])
|
|
616
|
-
])) : C("", !0)
|
|
617
|
-
]),
|
|
618
|
-
_: 1
|
|
619
|
-
})
|
|
620
|
-
]));
|
|
621
|
-
}
|
|
622
|
-
}, A = /* @__PURE__ */ g(wt, [["__scopeId", "data-v-75185cc0"]]), _t = { class: "topappbar" }, ft = ["is", "onClick"], gt = { class: "topappbar-label" }, bt = {
|
|
623
|
-
key: 0,
|
|
624
|
-
class: "topappbar-indicator"
|
|
625
|
-
}, xt = {
|
|
626
|
-
key: 1,
|
|
627
|
-
class: "topappbar-indicator-not"
|
|
628
|
-
}, yt = ["onClick"], $t = { class: "topappbar-label" }, kt = {
|
|
629
|
-
__name: "webwin-topappbar",
|
|
630
|
-
props: { items: Array, activeIndex: Number, rightMenu: { type: Array, default: [] } },
|
|
631
|
-
emits: ["update"],
|
|
632
|
-
setup(e, { emit: o }) {
|
|
633
|
-
const n = o, t = e;
|
|
634
|
-
let s = u(t.activeIndex || 0), a = u(t.items), i = u(t.rightMenu);
|
|
635
|
-
function h(v) {
|
|
636
|
-
s.value = v, n("update", [v, "left"]);
|
|
637
|
-
}
|
|
638
|
-
function p(v) {
|
|
639
|
-
n("update", [v, "right"]);
|
|
640
|
-
}
|
|
641
|
-
return (v, b) => (c(), r("ul", _t, [
|
|
642
|
-
(c(), T(ce, null, [
|
|
643
|
-
(c(!0), r($, null, S(d(a), (w, m) => (c(), r("li", {
|
|
644
|
-
is: v.activeComponent,
|
|
645
|
-
key: m,
|
|
646
|
-
class: f([{ active: m === d(s) }, "topappbar-item"]),
|
|
647
|
-
onClick: (_) => h(m)
|
|
648
|
-
}, [
|
|
649
|
-
l("span", gt, x(w.name), 1),
|
|
650
|
-
m === d(s) ? (c(), r("span", bt)) : C("", !0),
|
|
651
|
-
m != d(s) ? (c(), r("span", xt)) : C("", !0)
|
|
652
|
-
], 10, ft))), 128))
|
|
653
|
-
], 1024)),
|
|
654
|
-
(c(!0), r($, null, S(d(i), (w, m) => (c(), r("li", {
|
|
655
|
-
key: m,
|
|
656
|
-
onClick: (_) => p(m),
|
|
657
|
-
class: "topappbar-item",
|
|
658
|
-
style: { float: "right" }
|
|
659
|
-
}, [
|
|
660
|
-
l("span", $t, x(w.name), 1)
|
|
661
|
-
], 8, yt))), 128))
|
|
662
|
-
]));
|
|
663
|
-
}
|
|
664
|
-
}, ee = /* @__PURE__ */ g(kt, [["__scopeId", "data-v-c9ad5673"]]), Ct = {
|
|
665
|
-
__name: "webwin-range",
|
|
666
|
-
props: /* @__PURE__ */ re({
|
|
667
|
-
color: { type: String, default: "#006fd0" }
|
|
668
|
-
}, {
|
|
669
|
-
modelValue: {},
|
|
670
|
-
modelModifiers: {}
|
|
671
|
-
}),
|
|
672
|
-
emits: ["update:modelValue"],
|
|
673
|
-
setup(e) {
|
|
674
|
-
D((n) => ({
|
|
675
|
-
v23dfb612: e.color
|
|
676
|
-
}));
|
|
677
|
-
let o = ue(e, "modelValue");
|
|
678
|
-
return (n, t) => B((c(), r("input", {
|
|
679
|
-
type: "range",
|
|
680
|
-
"onUpdate:modelValue": t[0] || (t[0] = (s) => L(o) ? o.value = s : o = s),
|
|
681
|
-
class: "webwin-slider",
|
|
682
|
-
min: "1",
|
|
683
|
-
max: "100"
|
|
684
|
-
}, null, 512)), [
|
|
685
|
-
[de, d(o)]
|
|
686
|
-
]);
|
|
687
|
-
}
|
|
688
|
-
}, te = /* @__PURE__ */ g(Ct, [["__scopeId", "data-v-480ca2b0"]]), Wt = [te, ee, A, Z, Q, J, K, j, P, H, Y, O, U, X, q, E, G], St = {
|
|
689
|
-
install(e) {
|
|
690
|
-
Wt.forEach((o) => {
|
|
691
|
-
e.component("winbutton", H), e.component("winitem", Y), e.component("wintile", O), e.component("wintab", U), e.component("wininputbox", X), e.component("winpasswordbox", q), e.component("winricheditbox", E), e.component("winnotifications", G), e.component("wincheckbox", P), e.component("winradio", j), e.component("wincombobox", K), e.component("winprogressbar", J), e.component("winwindow", Q), e.component("wincard", Z), e.component("windropdown", A), e.component("wintopappbar", ee), e.component("winrange", te);
|
|
692
|
-
});
|
|
693
|
-
}
|
|
694
|
-
};
|
|
695
|
-
export {
|
|
696
|
-
St as default,
|
|
697
|
-
H as winbutton,
|
|
698
|
-
Z as wincard,
|
|
699
|
-
P as wincheckbox,
|
|
700
|
-
K as wincombobox,
|
|
701
|
-
A as windropdown,
|
|
702
|
-
X as wininputbox,
|
|
703
|
-
Y as winitem,
|
|
704
|
-
G as winnotifications,
|
|
705
|
-
q as winpasswordbox,
|
|
706
|
-
J as winprogressbar,
|
|
707
|
-
j as winradio,
|
|
708
|
-
te as winrange,
|
|
709
|
-
E as winricheditbox,
|
|
710
|
-
U as wintab,
|
|
711
|
-
O as wintile,
|
|
712
|
-
ee as wintopappbar,
|
|
713
|
-
Q as winwindow
|
|
714
|
-
};
|
package/web-win-vue.umd.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
(function(d,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(d=typeof globalThis<"u"?globalThis:d||self,e(d["web-win-vue"]={},d.Vue))})(this,(function(d,e){"use strict";const _=(t,n)=>{const l=t.__vccOpts||t;for(const[o,a]of n)l[o]=a;return l},b=_({__name:"webwin-button",setup(t){return console.log("%c✨Welcome to Web-Win-Vue-Button✨",`
|
|
2
|
-
color: #0078d7;
|
|
3
|
-
text-shadow: 0 1px 0 #0078d7;`),(n,l)=>(e.openBlock(),e.createElementBlock("button",null,[e.renderSlot(n.$slots,"default",{},void 0,!0)]))}},[["__scopeId","data-v-85a8a3fa"]]),R=["value","placeholder"],k=_(e.defineComponent({__name:"webwin-inputbox",props:{value:String,placeholder:String},setup(t){console.log("%c✨Welcome to Web-Win-Vue-InputBox✨",`
|
|
4
|
-
color: #0078d7;
|
|
5
|
-
text-shadow: 0 1px 0 #0078d7;`);const n=t,l=e.ref(n.placeholder);return(o,a)=>(e.openBlock(),e.createElementBlock("input",{type:"text",name:"fname",class:"uwpinput",value:t.value,placeholder:l.value,onChange:a[0]||(a[0]=c=>o.$emit("@change",c))},null,40,R))}}),[["__scopeId","data-v-227ff99f"]]),L={class:"sidebar-text"},H={style:{width:"var(--sb-width, 350px)",margin:"auto"}},X={style:{overflow:"auto",height:"calc( 100% - 240px )","overflow-x":"hidden"}},Y=["onClick"],O={class:"icon",viewBox:"0 0 1024 1024",fill:"currentColor","aria-hidden":"true",height:"16"},q=["d"],x=_({__name:"webwin-item",props:{items:{type:Array,required:!0},modelValue:{type:Number,default:0},title:{type:String,default:"Menu"},bartitle:{type:String,default:"Window"}},emits:["update"],setup(t,{emit:n}){console.log("%c✨Welcome to Web-Win-Vue-Item✨",`
|
|
6
|
-
color: #0078d7;
|
|
7
|
-
text-shadow: 0 1px 0 #0078d7;`);const l=n;let o=e.ref("");function a(){o.value===""?(o.value="folded",l("update",!1)):(o.value="",l("update",!0))}return(c,s)=>(e.openBlock(),e.createElementBlock("ul",{class:e.normalizeClass(["side-bar",e.unref(o)])},[e.createElementVNode("div",{class:e.normalizeClass(["sidebar",e.unref(o)])},[e.createElementVNode("p",L,e.toDisplayString(t.bartitle),1)],2),e.createElementVNode("div",null,[e.createElementVNode("li",{style:{"margin-top":"24px",width:"24px"},onClick:a},[s[0]||(s[0]=e.createElementVNode("svg",{class:"icon",viewBox:"0 0 1024 1024",fill:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{xmlns:"http://www.w3.org/2000/svg",style:{stroke:"none","fill-rule":"nonzero",fill:"rgb(0%,0%,0%)","fill-opacity":"1"},d:"M63.7 191.4h895.2v64H63.7zM63.7 480.2h895.2v64H63.7zM63.7 767.2h895.2v64H63.7z"})],-1)),e.createElementVNode("span",{class:e.normalizeClass(["label",e.unref(o)])},null,2)]),e.createElementVNode("li",{onClick:a,class:e.normalizeClass(["search-fold",e.unref(o)])},[s[1]||(s[1]=e.createElementVNode("svg",{class:"icon",viewBox:"0 0 1024 1024",fill:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{xmlns:"http://www.w3.org/2000/svg",style:{stroke:"none","fill-rule":"nonzero",fill:"rgb(0%,0%,0%)","fill-opacity":"1"},d:"M916.374282 878.7028 661.417543 604.016717c1.402953-1.616824 2.784416-3.254114 4.155646-4.90266 0.367367-0.459464 0.747014-0.909719 1.115404-1.37123 1.308809-1.585101 2.600221-3.181459 3.879354-4.798283 0.337691-0.429789 0.675382-0.86981 1.011027-1.299599 1.209548-1.555425 2.416026-3.122107 3.603061-4.696975 0.347924-0.471744 0.695848-0.931209 1.043772-1.402953 1.176802-1.585101 2.354628-3.181459 3.499707-4.798283 0.318248-0.449231 0.633427-0.889253 0.951675-1.331321 1.197268-1.686409 2.37407-3.39533 3.541663-5.104251 0.285502-0.419556 0.561795-0.829901 0.849344-1.249457 1.257643-1.87265 2.495844-3.755534 3.723811-5.65786 0.23536-0.360204 0.461511-0.727571 0.695848-1.085728 1.127683-1.77032 2.232854-3.551896 3.325745-5.342682 0.268106-0.440022 0.533143-0.87902 0.799202-1.319042 1.052982-1.750877 2.096754-3.50994 3.120061-5.28026 0.255827-0.440022 0.511653-0.87902 0.76748-1.331321 1.035586-1.801019 2.046612-3.611248 3.040243-5.432733 0.226151-0.409322 0.449231-0.819668 0.675382-1.228991 1.052982-1.944282 2.076288-3.90903 3.099594-5.873778l0.533143-1.052982c1.043772-2.046612 2.067079-4.103458 3.069919-6.181793 0.184195-0.358157 0.347924-0.715291 0.521886-1.083681 0.941442-1.954515 1.851161-3.90903 2.75167-5.884011 0.184195-0.400113 0.358157-0.809435 0.541329-1.207501 0.881067-1.954515 1.740644-3.931542 2.579755-5.9055 0.173962-0.398066 0.347924-0.797156 0.511653-1.197268 0.859577-2.036379 1.698688-4.082992 2.506077-6.139837 0.134053-0.316202 0.26606-0.64366 0.38988-0.971118 0.87902-2.240017 1.738597-4.493338 2.568499-6.753821l0.255827-0.707105c0.807389-2.220574 1.595334-4.451382 2.362814-6.691399 0.113587-0.327458 0.215918-0.655939 0.318248-0.973164 0.727571-2.148943 1.432629-4.296863 2.109034-6.465249l0.327458-1.055029c0.663102-2.169409 1.308809-4.349051 1.942235-6.538927l0.277316-0.971118c0.64366-2.272763 1.257643-4.563946 1.851161-6.856152 0.062422-0.225127 0.12382-0.450255 0.186242-0.674359 0.623193-2.455935 1.226944-4.923126 1.801019-7.398504l0.121773-0.542352c0.543376-2.373047 1.065262-4.748141 1.555425-7.141654l0.173962-0.880043c0.471744-2.302439 0.920976-4.626367 1.341554-6.948249l0.163729-0.920976c0.419556-2.353604 0.809435-4.716418 1.167592-7.081279 0.039909-0.26606 0.092098-0.532119 0.121773-0.797156 0.38988-2.518357 0.747014-5.045923 1.065262-7.582699l0.029676-0.23536c0.337691-2.620687 0.633427-5.238304 0.901533-7.868201l0.060375-0.563842c0.245593-2.486634 0.471744-4.982478 0.665149-7.480368l0.052189-0.788969c0.184195-2.445702 0.337691-4.900613 0.469698-7.356548l0.041956-0.849344c0.121773-2.5071 0.224104-5.024433 0.285502-7.541767l0.020466-0.582261c0.062422-2.711761 0.104377-5.424546 0.104377-8.146541 0-178.843224-145.034211-323.876412-323.876412-323.876412-178.844248 0-323.886645 145.033187-323.886645 323.876412 0 178.844248 145.043421 323.876412 323.886645 323.876412 2.701528 0 5.392824-0.029676 8.073886-0.102331l0.490164-0.010233c2.620687-0.062422 5.219885-0.163729 7.819083-0.295735l0.603751-0.031722c2.620687-0.132006 5.239328-0.295735 7.838525-0.50142l0.245593-0.010233c2.578732-0.203638 5.136997-0.429789 7.68503-0.685615l0.583285-0.060375c2.51631-0.255827 5.034666-0.543376 7.53051-0.861624l0.76748-0.092098c2.476401-0.325411 4.952802-0.663102 7.408737-1.043772l0.715291-0.11154c2.364861-0.358157 4.718465-0.747014 7.071046-1.167592l0.777713-0.144286c2.37407-0.417509 4.728698-0.87902 7.083326-1.348718l1.115404-0.23536c2.292206-0.471744 4.583388-0.960885 6.855128-1.484817 0.38988-0.092098 0.777713-0.184195 1.157359-0.276293 2.13871-0.491187 4.256954-1.013073 6.374174-1.555425 0.451278-0.11154 0.900509-0.226151 1.350764-0.347924 2.109034-0.541329 4.195555-1.115404 6.293333-1.698688 0.50142-0.144286 1.00284-0.285502 1.505283-0.429789 2.096754-0.603751 4.185322-1.216711 6.261611-1.862417 0.543376-0.163729 1.075495-0.337691 1.616824-0.50142 1.882883-0.593518 3.755534-1.207501 5.628184-1.830695 0.685615-0.226151 1.360997-0.461511 2.046612-0.685615 1.790786-0.62524 3.581572-1.249457 5.362124-1.895163 0.633427-0.234337 1.2689-0.459464 1.902326-0.695848 1.882883-0.695848 3.755534-1.411139 5.617951-2.13871 0.705058-0.276293 1.402953-0.551562 2.109034-0.827855 1.616824-0.645706 3.233648-1.310855 4.840238-1.986237 0.899486-0.367367 1.790786-0.757247 2.680039-1.134847 1.505283-0.645706 2.998287-1.289366 4.483104-1.954515 0.941442-0.419556 1.87265-0.839111 2.814092-1.2689 1.503237-0.695848 3.007497-1.390673 4.500501-2.109034 0.819668-0.387833 1.629103-0.777713 2.436492-1.174756 1.390673-0.675382 2.774183-1.360997 4.145413-2.058892 1.063215-0.541329 2.128477-1.083681 3.191692-1.63729 1.2689-0.653893 2.52859-1.319042 3.78521-1.994424 1.127683-0.603751 2.242064-1.216711 3.367701-1.832741 1.226944-0.685615 2.455935-1.37123 3.683902-2.067079 1.023306-0.574075 2.046612-1.167592 3.059686-1.759063 1.043772-0.61603 2.098801-1.228991 3.14155-1.853208 1.176802-0.717338 2.364861-1.423419 3.529383-2.148943 1.085728-0.665149 2.160199-1.341554 3.233648-2.016937 1.216711-0.76748 2.426259-1.545192 3.63376-2.332115 1.052982-0.685615 2.086521-1.360997 3.13234-2.058892l0.020466-0.010233 255.611655 275.361465c18.399045 19.822464 46.170552 23.64042 62.59564 9.56996l6.723122-5.752004C937.106466 927.146115 934.764118 898.512984 916.374282 878.7028zM416.63349 630.643144c-131.760906 0-238.604306-106.853633-238.604306-238.603283 0-131.750673 106.8434-238.604306 238.604306-238.604306 131.74965 0 238.594073 106.853633 238.594073 238.604306C655.227564 523.789511 548.38314 630.643144 416.63349 630.643144z"})],-1)),e.createElementVNode("span",{class:e.normalizeClass(["label",e.unref(o)])},null,2)],2),e.createElementVNode("div",H,[e.createVNode(k,{placeholder:"查找",class:e.normalizeClass(["inputbox",e.unref(o)]),style:{"margin-top":"6px",width:"320px",transition:"all 0s ease"}},null,8,["class"])]),e.createElementVNode("h3",{style:{"margin-top":"26px","margin-bottom":"26px","margin-left":"18px"},class:e.normalizeClass(["title",e.unref(o)])},e.toDisplayString(t.title),3)]),e.createElementVNode("div",X,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(p,i)=>(e.openBlock(),e.createElementBlock("li",{key:i,class:e.normalizeClass({active:i===t.modelValue}),onClick:m=>c.$emit("update:modelValue",i)},[s[2]||(s[2]=e.createElementVNode("span",{class:"indicator"},null,-1)),(e.openBlock(),e.createElementBlock("svg",O,[e.createElementVNode("path",{d:p.icon},null,8,q)])),e.createElementVNode("span",{class:e.normalizeClass(["label",e.unref(o)])},e.toDisplayString(p.name),3)],10,Y))),128))])],2))}},[["__scopeId","data-v-30fc2437"]]);console.log("%c✨Welcome to Web-Win-Vue-Tile✨",`
|
|
8
|
-
color: #0078d7;
|
|
9
|
-
text-shadow: 0 1px 0 #0078d7;`);const U={props:{size:{default:"medium"},color:{default:"#0078d7"},title:{default:"App"},icon:{default:""},glowColor:{default:"rgba(255,255,255,0.5)"},glowRadius:{default:60}},data(){return{isHovered:!1,mouseX:0,mouseY:0,glowOpacity:0}},computed:{tileStyle(){return{"--tile-color":this.color,"--glow-color":this.glowColor,"--glow-radius":`${this.glowRadius}px`}},glowStyle(){return{"--x":`${this.mouseX}px`,"--y":`${this.mouseY}px`,opacity:this.glowOpacity}},pointerGlowStyle(){return{"--x":`${this.mouseX}px`,"--y":`${this.mouseY}px`,opacity:this.isHovered?1:0}}},methods:{handleMouseMove(t){const n=t.currentTarget.getBoundingClientRect();this.mouseX=t.clientX-n.left,this.mouseY=t.clientY-n.top;const l=Math.min(this.mouseX,n.width-this.mouseX,this.mouseY,n.height-this.mouseY),o=this.glowRadius;this.glowOpacity=Math.max(0,(o-l)/o)},handleMouseLeave(){this.isHovered=!1,this.glowOpacity=0}}},j={class:"tile-content"},P={class:"tile-icon"},G={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},K=["d"],J={class:"tile-title"};function Q(t,n,l,o,a,c){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["tile",l.size]),style:e.normalizeStyle(c.tileStyle),onMousemove:n[0]||(n[0]=(...s)=>c.handleMouseMove&&c.handleMouseMove(...s)),onMouseenter:n[1]||(n[1]=s=>a.isHovered=!0),onMouseleave:n[2]||(n[2]=(...s)=>c.handleMouseLeave&&c.handleMouseLeave(...s))},[e.createElementVNode("div",j,[e.createElementVNode("div",P,[e.renderSlot(t.$slots,"icon",{},()=>[(e.openBlock(),e.createElementBlock("svg",G,[e.createElementVNode("path",{fill:"white",d:l.icon},null,8,K)]))],!0)]),e.createElementVNode("div",J,e.toDisplayString(l.title),1)]),e.createElementVNode("div",{class:"glow-border",style:e.normalizeStyle(c.glowStyle)},null,4),e.createElementVNode("div",{class:"pointer-glow",style:e.normalizeStyle(c.pointerGlowStyle)},null,4)],38)}const V=_(U,[["render",Q],["__scopeId","data-v-9ae9ef89"]]),Z={class:"container"},A=["src"],v=["src"],B={__name:"webwin-tab",props:{menu:Array,url:Array,titlebar:Boolean,titlebartext:String},setup(t){console.log("%c✨Welcome to Web-Win-Vue-Tab✨",`
|
|
10
|
-
color: #0078d7;
|
|
11
|
-
text-shadow: 0 1px 0 #0078d7;`);const n=t,l=e.ref(0),o=e.ref(0),a=e.ref(n.url[0]);let c=e.ref(""),s=e.ref("");n.titlebar?c.value=n.titlebartext:c.value="",e.watch(l,i=>{console.log("activeIndex changed:",i),console.log("new url:",n.url[i]),a.value=n.url[i],o.value=o.value===0?1:0,console.log("docState:",o.value)});function p(i){i?s.value="":s.value="folded"}return(i,m)=>(e.openBlock(),e.createElementBlock("div",Z,[e.createVNode(x,{modelValue:l.value,"onUpdate:modelValue":m[0]||(m[0]=h=>l.value=h),items:t.menu,class:"item-1",bartitle:e.unref(c),onUpdate:p},null,8,["modelValue","items","bartitle"]),e.createVNode(e.Transition,{name:"fade",mode:"out-in"},{default:e.withCtx(()=>[o.value===0?(e.openBlock(),e.createElementBlock("div",{key:"state0",class:e.normalizeClass(["iframe-container",e.unref(s)])},[e.renderSlot(i.$slots,"default",{},()=>[e.withDirectives(e.createElementVNode("iframe",{src:a.value,style:{"margin-top":"70px"}},null,8,A),[[e.vShow,o.value===0]])])],2)):o.value===1?(e.openBlock(),e.createElementBlock("div",{key:"state1",class:e.normalizeClass(["iframe-container",e.unref(s)])},[e.renderSlot(i.$slots,"default",{},()=>[e.withDirectives(e.createElementVNode("iframe",{src:a.value,style:{"margin-top":"70px"}},null,8,v),[[e.vShow,o.value===1]])])],2)):e.createCommentVNode("",!0)]),_:3})]))}},ee=["value","placeholder"],$=_(e.defineComponent({__name:"webwin-passwordbox",props:{value:String,placeholder:String},setup(t){console.log("%c✨Welcome to Web-Win-Vue-PasswordBox✨",`
|
|
12
|
-
color: #0078d7;
|
|
13
|
-
text-shadow: 0 1px 0 #0078d7;`);const n=t,l=e.ref(n.value),o=e.ref(n.placeholder);return(a,c)=>(e.openBlock(),e.createElementBlock("input",{type:"password",name:"fname",class:"uwppassword",value:l.value,placeholder:o.value,onChange:c[0]||(c[0]=s=>a.$emit("@change",s))},null,40,ee))}}),[["__scopeId","data-v-5ce652ab"]]),te=["data-placeholder"],E=_(e.defineComponent({__name:"webwin-richeditbox",props:{value:{type:String,default:""},placeholder:{type:String,default:""}},emits:["update","change"],setup(t,{emit:n}){const l=t,o=n,a=e.ref(null),c=e.ref(l.placeholder),s=e.ref(l.value);e.onMounted(()=>{a.value&&(a.value.textContent=l.value||"",s.value=l.value||"")});const p=h=>{if(!a.value)return;const f=a.value.textContent||"";o("update",f),e.nextTick(()=>{if(a.value){const r=document.createRange(),w=window.getSelection();r.selectNodeContents(a.value),r.collapse(!1),w?.removeAllRanges(),w?.addRange(r)}})},i=h=>{const f=h.target;f.textContent===l.placeholder&&(f.textContent="")},m=h=>{const f=h.target,r=f.textContent||"";r!==s.value&&(o("change",{target:{value:r}}),s.value=r),r.trim()===""&&(f.textContent="")};return(h,f)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"editableDiv",ref:a,class:"uwprichrditbox",contenteditable:"plaintext-only","data-placeholder":c.value,onInput:p,onFocus:i,onBlur:m},null,40,te))}}),[["__scopeId","data-v-062c85b9"]]),oe=["src"],ne={class:"n-name",style:{display:"inline-block","margin-left":"6px"}},le={class:"n-text n-title"},ae={class:"n-vulua"},C=_({__name:"webwin-notifications",props:{name:String,title:String,text:String,img:String},setup(t,{expose:n}){const l=t;let o=e.ref(!1),a=e.ref(l.img);const c=()=>{o.value=!o.value};function s(){o.value&&setTimeout(()=>{o.value=!1},250)}return n({showNotification:c}),console.log("%c✨Welcome to Web-Win-Vue-Notifications✨",`
|
|
14
|
-
color: #0078d7;
|
|
15
|
-
text-shadow: 0 1px 0 #0078d7;`),(p,i)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.unref(o)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"Notification",onClick:s},[e.createElementVNode("img",{src:e.unref(a),style:{"object-fit":"contain","margin-left":"16px","margin-right":"0px",display:"inline-block","vertical-align":"middle",width:"16px",height:"16px"}},null,8,oe),e.createElementVNode("p",ne,e.toDisplayString(t.name),1),e.createElementVNode("h4",le,e.toDisplayString(t.title),1),e.createElementVNode("p",ae,e.toDisplayString(t.text),1)])):e.createCommentVNode("",!0)]),_:1}))}},[["__scopeId","data-v-55ec523b"]]),ce=["name","id"],se=["for"],N=_(e.defineComponent({__name:"webwin-checkbox",props:{name:String,checked:Array},setup(t){const n=t,l=e.ref(n.name),o=e.ref(n.checked);return console.log("%c✨Welcome to Web-Win-Vue-Checkbox✨",`
|
|
16
|
-
color: #0078d7;
|
|
17
|
-
text-shadow: 0 1px 0 #0078d7;`),(a,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives(e.createElementVNode("input",{type:"checkbox",class:"ww-checkbox",name:l.value,id:l.value,"onUpdate:modelValue":c[0]||(c[0]=s=>o.value=s),onClick:c[1]||(c[1]=s=>a.$emit("click",s))},null,8,ce),[[e.vModelCheckbox,o.value]]),e.createElementVNode("label",{for:l.value,class:"ww-checkbox-label"},[e.renderSlot(a.$slots,"default",{},void 0,!0)],8,se)],64))}}),[["__scopeId","data-v-c289ea76"]]),ie=["name","id"],re=["for"],S=_(e.defineComponent({__name:"webwin-radio",props:{name:String,checked:Array},setup(t){const n=t,l=e.ref(n.name),o=e.ref(n.checked);return console.log("%c✨Welcome to Web-Win-Vue-radio✨",`
|
|
18
|
-
color: #0078d7;
|
|
19
|
-
text-shadow: 0 1px 0 #0078d7;`),(a,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives(e.createElementVNode("input",{type:"radio",class:"ww-radio",name:l.value,id:l.value,"onUpdate:modelValue":c[0]||(c[0]=s=>o.value=s),onClick:c[1]||(c[1]=s=>a.$emit("click",s))},null,8,ie),[[e.vModelRadio,o.value]]),e.createElementVNode("label",{for:l.value,class:"ww-radio-label"},[e.renderSlot(a.$slots,"default",{},void 0,!0)],8,re)],64))}}),[["__scopeId","data-v-6df73cdd"]]),de={style:{position:"relative"}},me={key:0,class:"list-box"},pe={style:{overflow:"auto",height:"calc( 100% - 240px )"}},fe=["onClick"],we={class:"label"},W=_({__name:"webwin-combobox",props:{items:{type:Array,required:!0},modelValue:{type:Number,default:0},title:{type:String,default:"itembox"}},emits:["update"],setup(t,{emit:n}){e.useCssVars(r=>({v61ff2edc:e.unref(m)+"px",v34605ad9:e.unref(i)+"px"})),console.log("%c✨Welcome to Web-Win-Vue-Item✨",`
|
|
20
|
-
color: #0078d7;
|
|
21
|
-
text-shadow: 0 1px 0 #0078d7;`);const l=t,o=n;let a=e.ref(""),c=e.ref(!1),s=e.ref(l.modelValue),p=e.ref(l.title),i=e.ref(-6),m=e.ref(6);function h(r){c.value=!1,a.value="",s.value=r,p.value=l.items[r].name,o("update",r),setTimeout(()=>{i.value=r*-35-6,m.value=r*35+6},100)}function f(){c.value=!c.value,a.value=c.value?"active":""}return(r,w)=>(e.openBlock(),e.createElementBlock("div",de,[e.createElementVNode("div",{class:e.normalizeClass(["list-box-button",e.unref(a)]),onClick:f},e.toDisplayString(e.unref(p)),3),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.unref(c)?(e.openBlock(),e.createElementBlock("ul",me,[w[0]||(w[0]=e.createElementVNode("div",{style:{height:"6px"}},null,-1)),e.createElementVNode("div",pe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(g,u)=>(e.openBlock(),e.createElementBlock("li",{key:u,class:e.normalizeClass({active:u===e.unref(s)}),onClick:y=>h(u)},[e.createElementVNode("span",we,e.toDisplayString(g.name),1)],10,fe))),128))]),w[1]||(w[1]=e.createElementVNode("div",{style:{height:"6px"}},null,-1))])):e.createCommentVNode("",!0)]),_:1})]))}},[["__scopeId","data-v-81f2552b"]]),_e={class:"progress-bar"},M=_({__name:"webwin-progressbar",props:{progress:{type:Number,default:0}},setup(t){return console.log("%c✨Welcome to Web-Win-Vue-ProgressBar✨",`
|
|
22
|
-
color: #0078d7;
|
|
23
|
-
text-shadow: 0 1px 0 #0078d7;`),(n,l)=>(e.openBlock(),e.createElementBlock("div",_e,[e.createElementVNode("div",{class:"progress",style:e.normalizeStyle({width:t.progress+"%"})},null,4)]))}},[["__scopeId","data-v-18bec619"]]),he={key:0,class:"window-background"},ge={key:0,class:"window"},ue={style:{"margin-top":"24px","margin-bottom":"24px"}},be={class:"window-title"},ke={style:{"margin-left":"25px","margin-right":"24px",width:"calc(100% - 48px)"}},xe={style:{"margin-left":"24px","margin-right":"24px",width:"calc(100% - 48px)",display:"Flex",gap:"6px","margin-top":"48px"}},z=_({__name:"webwin-window",props:{items:{type:Array,required:!0,default:[{text:"11"},{text:"11"}]},title:{type:String,default:"Title"}},emits:["clickBotton"],setup(t,{expose:n,emit:l}){let o=e.ref("");const a=l,c=()=>{o.value=!0};function s(p){o.value=!1,a("clickBotton",p)}return n({showDialog:c}),(p,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.unref(o)?(e.openBlock(),e.createElementBlock("div",he)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.unref(o)?(e.openBlock(),e.createElementBlock("div",ge,[e.createElementVNode("div",ue,[e.createElementVNode("h2",be,e.toDisplayString(t.title),1),e.createElementVNode("div",ke,[e.renderSlot(p.$slots,"default",{},void 0,!0)]),e.createElementVNode("div",xe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(m,h)=>(e.openBlock(),e.createBlock(b,{class:"window-button",key:h,onClick:f=>s(h)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.text),1)]),_:2},1032,["onClick"]))),128))])])])):e.createCommentVNode("",!0)]),_:3})],64))}},[["__scopeId","data-v-181d9761"]]),ye={},Ve={class:"card"};function Be(t,n){return e.openBlock(),e.createElementBlock("div",Ve,[e.renderSlot(t.$slots,"default",{},void 0,!0)])}const D=_(ye,[["render",Be],["__scopeId","data-v-4a87dc00"]]),$e={key:0,class:"dropdown-container"},Ee={class:"dropdown"},Ce={style:{overflow:"auto",height:"calc( 100% - 240px )"}},Ne=["onClick"],Se={class:"label"},I=_({__name:"webwin-dropdown",props:{items:{type:Array,required:!0}},emits:["update"],setup(t,{expose:n,emit:l}){e.useCssVars(w=>({v1b68a8ea:e.unref(c)+"px",v5a2cd86a:e.unref(s)+"px"})),console.log("%c✨Welcome to Web-Win-Vue-Item✨",`
|
|
24
|
-
color: #0078d7;
|
|
25
|
-
text-shadow: 0 1px 0 #0078d7;`);const o=t,a=l;let c=e.ref(0),s=e.ref(0),p=e.ref(""),i=e.ref(!1),m=e.ref(0),h=e.ref(o.title||"");function f(w){i.value=!1,p.value="",m.value=w,h.value=o.items[w].name,a("update",w)}return n({showbox:(w,g)=>{i.value=!i.value,p.value=i.value?"active":"",c.value=w,s.value=g}}),(w,g)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.unref(i)?(e.openBlock(),e.createElementBlock("div",$e,[e.createElementVNode("div",{class:"dropdown_backgroud",onClick:g[0]||(g[0]=u=>e.isRef(i)?i.value=!1:i=!1)}),e.createElementVNode("ul",Ee,[g[1]||(g[1]=e.createElementVNode("div",{style:{height:"6px"}},null,-1)),e.createElementVNode("div",Ce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(u,y)=>(e.openBlock(),e.createElementBlock("li",{key:y,class:e.normalizeClass({active:y===e.unref(m)}),onClick:ve=>f(y)},[e.createElementVNode("span",Se,e.toDisplayString(u.name),1)],10,Ne))),128))]),g[2]||(g[2]=e.createElementVNode("div",{style:{height:"6px"}},null,-1))])])):e.createCommentVNode("",!0)]),_:1})]))}},[["__scopeId","data-v-75185cc0"]]),We={class:"topappbar"},Me=["is","onClick"],ze={class:"topappbar-label"},De={key:0,class:"topappbar-indicator"},Ie={key:1,class:"topappbar-indicator-not"},Te=["onClick"],Fe={class:"topappbar-label"},T=_({__name:"webwin-topappbar",props:{items:Array,activeIndex:Number,rightMenu:{type:Array,default:[]}},emits:["update"],setup(t,{emit:n}){const l=n,o=t;let a=e.ref(o.activeIndex||0),c=e.ref(o.items),s=e.ref(o.rightMenu);function p(m){a.value=m,l("update",[m,"left"])}function i(m){l("update",[m,"right"])}return(m,h)=>(e.openBlock(),e.createElementBlock("ul",We,[(e.openBlock(),e.createBlock(e.KeepAlive,null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(f,r)=>(e.openBlock(),e.createElementBlock("li",{is:m.activeComponent,key:r,class:e.normalizeClass([{active:r===e.unref(a)},"topappbar-item"]),onClick:w=>p(r)},[e.createElementVNode("span",ze,e.toDisplayString(f.name),1),r===e.unref(a)?(e.openBlock(),e.createElementBlock("span",De)):e.createCommentVNode("",!0),r!=e.unref(a)?(e.openBlock(),e.createElementBlock("span",Ie)):e.createCommentVNode("",!0)],10,Me))),128))],1024)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),(f,r)=>(e.openBlock(),e.createElementBlock("li",{key:r,onClick:w=>i(r),class:"topappbar-item",style:{float:"right"}},[e.createElementVNode("span",Fe,e.toDisplayString(f.name),1)],8,Te))),128))]))}},[["__scopeId","data-v-c9ad5673"]]),F=_({__name:"webwin-range",props:e.mergeModels({color:{type:String,default:"#006fd0"}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){e.useCssVars(l=>({v23dfb612:t.color}));let n=e.useModel(t,"modelValue");return(l,o)=>e.withDirectives((e.openBlock(),e.createElementBlock("input",{type:"range","onUpdate:modelValue":o[0]||(o[0]=a=>e.isRef(n)?n.value=a:n=a),class:"webwin-slider",min:"1",max:"100"},null,512)),[[e.vModelText,e.unref(n)]])}},[["__scopeId","data-v-480ca2b0"]]),Re=[F,T,I,D,z,M,W,S,N,b,x,V,B,k,$,E,C],Le={install(t){Re.forEach(n=>{t.component("winbutton",b),t.component("winitem",x),t.component("wintile",V),t.component("wintab",B),t.component("wininputbox",k),t.component("winpasswordbox",$),t.component("winricheditbox",E),t.component("winnotifications",C),t.component("wincheckbox",N),t.component("winradio",S),t.component("wincombobox",W),t.component("winprogressbar",M),t.component("winwindow",z),t.component("wincard",D),t.component("windropdown",I),t.component("wintopappbar",T),t.component("winrange",F)})}};d.default=Le,d.winbutton=b,d.wincard=D,d.wincheckbox=N,d.wincombobox=W,d.windropdown=I,d.wininputbox=k,d.winitem=x,d.winnotifications=C,d.winpasswordbox=$,d.winprogressbar=M,d.winradio=S,d.winrange=F,d.winricheditbox=E,d.wintab=B,d.wintile=V,d.wintopappbar=T,d.winwindow=z,Object.defineProperties(d,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|