web-win-vue 0.7.3 → 0.7.5
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/README.md +0 -2
- package/package.json +1 -1
- package/style.css +1 -1
- package/web-win-vue.es.js +312 -335
- package/web-win-vue.umd.js +3 -3
package/README.md
CHANGED
|
@@ -45,8 +45,6 @@ import 'web-win-vue/web-win-vue.css'
|
|
|
45
45
|
|
|
46
46
|
[](https://www.star-history.com/#HHCL233/web-win-vue&type=date&legend=top-left)
|
|
47
47
|
|
|
48
|
-

|
|
49
|
-
|
|
50
48
|
## 许可证
|
|
51
49
|
|
|
52
50
|
[MIT](https://github.com/HHCL233/web-win-vue/blob/main/LICENSE)
|
package/package.json
CHANGED
package/style.css
CHANGED
|
@@ -1 +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}
|
|
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-51adc759]{--tile-color: #0078d7;--glow-color: rgb(0, 0, 0);--glow-radius: 20px;position:relative;background-color:var(--tile-color);color:#fff;overflow:hidden;transition:all .15s cubic-bezier(.78,.12,0,1)}.webwin-tile.small[data-v-51adc759]{width:70px;height:70px}.webwin-tile.medium[data-v-51adc759]{width:150px;height:150px}.webwin-tile.wide[data-v-51adc759]{width:310px;height:150px}.webwin-tile.large[data-v-51adc759]{width:310px;height:310px}.webwin-tile-content[data-v-51adc759]{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-51adc759]{font-size:24px;margin-bottom:8px}.webwin-tile-title[data-v-51adc759]{-webkit-user-select:none;user-select:none;font-size:12px;font-weight:700;position:absolute;bottom:26px;left:8px}.webwin-glow-border[data-v-51adc759]{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-51adc759]{position:absolute;top:calc(var(--y) - 50px);left:calc(var(--x) - 50px);width:150px;height:150px;border-radius:60%;background:radial-gradient(circle,var(--glow-color) 0%,transparent 70%);pointer-events:none;z-index:1;transition:opacity .25s ease}.webwin-tile[data-v-51adc759]: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.es.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { createElementBlock as r, openBlock as
|
|
2
|
-
const
|
|
1
|
+
import { createElementBlock as r, openBlock as s, renderSlot as k, defineComponent as z, ref as u, normalizeClass as h, unref as p, createElementVNode as l, toDisplayString as x, createVNode as V, Fragment as $, renderList as I, computed as T, normalizeStyle as W, watch as le, Transition as B, withCtx as S, createCommentVNode as C, withDirectives as N, vShow as E, onMounted as oe, nextTick as ae, createBlock as D, vModelCheckbox as ie, vModelRadio as se, useCssVars as F, createTextVNode as ce, isRef as L, KeepAlive as re, mergeModels as ue, useModel as de, vModelText as we } from "vue";
|
|
2
|
+
const g = (e, a) => {
|
|
3
3
|
const o = e.__vccOpts || e;
|
|
4
|
-
for (const [t,
|
|
5
|
-
o[t] =
|
|
4
|
+
for (const [t, n] of a)
|
|
5
|
+
o[t] = n;
|
|
6
6
|
return o;
|
|
7
|
-
},
|
|
8
|
-
function me(e,
|
|
9
|
-
return
|
|
7
|
+
}, pe = {}, ve = { class: "webwin-button" };
|
|
8
|
+
function me(e, a) {
|
|
9
|
+
return s(), r("button", ve, [
|
|
10
10
|
k(e.$slots, "default", {}, void 0, !0)
|
|
11
11
|
]);
|
|
12
12
|
}
|
|
13
|
-
const
|
|
13
|
+
const U = /* @__PURE__ */ g(pe, [["render", me], ["__scopeId", "data-v-a059307c"]]), be = ["value", "placeholder"], _e = /* @__PURE__ */ z({
|
|
14
14
|
__name: "webwin-inputbox",
|
|
15
15
|
props: { value: String, placeholder: String },
|
|
16
16
|
setup(e) {
|
|
17
17
|
const o = u(e.placeholder);
|
|
18
|
-
return (t,
|
|
18
|
+
return (t, n) => (s(), r("input", {
|
|
19
19
|
type: "text",
|
|
20
20
|
name: "fname",
|
|
21
21
|
class: "webwin-uwpinput",
|
|
22
22
|
value: e.value,
|
|
23
23
|
placeholder: o.value,
|
|
24
|
-
onChange:
|
|
25
|
-
}, null, 40,
|
|
24
|
+
onChange: n[0] || (n[0] = (i) => t.$emit("@change", i))
|
|
25
|
+
}, null, 40, be));
|
|
26
26
|
}
|
|
27
|
-
}),
|
|
27
|
+
}), q = /* @__PURE__ */ g(_e, [["__scopeId", "data-v-7641a566"]]), fe = { class: "webwin-sidebar-text" }, he = { style: { width: "var(--sb-width, 350px)", margin: "auto" } }, ge = { style: { overflow: "auto", height: "calc( 100% - 240px )", "overflow-x": "hidden" } }, xe = ["onClick"], ye = {
|
|
28
28
|
class: "webwin-icon",
|
|
29
29
|
viewBox: "0 0 1024 1024",
|
|
30
30
|
fill: "currentColor",
|
|
31
31
|
"aria-hidden": "true",
|
|
32
32
|
height: "16"
|
|
33
|
-
},
|
|
33
|
+
}, $e = ["d"], ke = {
|
|
34
34
|
__name: "webwin-item",
|
|
35
35
|
props: {
|
|
36
36
|
items: { type: Array, required: !0 },
|
|
@@ -39,26 +39,26 @@ const H = /* @__PURE__ */ f(we, [["render", me], ["__scopeId", "data-v-a059307c"
|
|
|
39
39
|
bartitle: { type: String, default: "Window" }
|
|
40
40
|
},
|
|
41
41
|
emits: ["update"],
|
|
42
|
-
setup(e, { emit:
|
|
43
|
-
const o =
|
|
42
|
+
setup(e, { emit: a }) {
|
|
43
|
+
const o = a;
|
|
44
44
|
let t = u("");
|
|
45
|
-
function
|
|
45
|
+
function n() {
|
|
46
46
|
t.value === "" ? (t.value = "folded", o("update", !1)) : (t.value = "", o("update", !0));
|
|
47
47
|
}
|
|
48
|
-
return (
|
|
49
|
-
class:
|
|
48
|
+
return (i, c) => (s(), r("ul", {
|
|
49
|
+
class: h(["webwin-side-bar", p(t)])
|
|
50
50
|
}, [
|
|
51
51
|
l("div", {
|
|
52
|
-
class:
|
|
52
|
+
class: h(["webwin-sidebar", p(t)])
|
|
53
53
|
}, [
|
|
54
|
-
l("p",
|
|
54
|
+
l("p", fe, x(e.bartitle), 1)
|
|
55
55
|
], 2),
|
|
56
56
|
l("div", null, [
|
|
57
57
|
l("li", {
|
|
58
58
|
style: { "margin-top": "24px", width: "24px" },
|
|
59
|
-
onClick:
|
|
59
|
+
onClick: n
|
|
60
60
|
}, [
|
|
61
|
-
|
|
61
|
+
c[0] || (c[0] = l("svg", {
|
|
62
62
|
class: "webwin-icon",
|
|
63
63
|
viewBox: "0 0 1024 1024",
|
|
64
64
|
fill: "currentColor",
|
|
@@ -71,14 +71,14 @@ const H = /* @__PURE__ */ f(we, [["render", me], ["__scopeId", "data-v-a059307c"
|
|
|
71
71
|
})
|
|
72
72
|
], -1)),
|
|
73
73
|
l("span", {
|
|
74
|
-
class:
|
|
74
|
+
class: h(["webwin-label", p(t)])
|
|
75
75
|
}, null, 2)
|
|
76
76
|
]),
|
|
77
77
|
l("li", {
|
|
78
|
-
onClick:
|
|
79
|
-
class:
|
|
78
|
+
onClick: n,
|
|
79
|
+
class: h(["webwin-search-fold", p(t)])
|
|
80
80
|
}, [
|
|
81
|
-
|
|
81
|
+
c[1] || (c[1] = l("svg", {
|
|
82
82
|
class: "webwin-icon",
|
|
83
83
|
viewBox: "0 0 1024 1024",
|
|
84
84
|
fill: "currentColor",
|
|
@@ -91,45 +91,47 @@ const H = /* @__PURE__ */ f(we, [["render", me], ["__scopeId", "data-v-a059307c"
|
|
|
91
91
|
})
|
|
92
92
|
], -1)),
|
|
93
93
|
l("span", {
|
|
94
|
-
class:
|
|
94
|
+
class: h(["webwin-label", p(t)])
|
|
95
95
|
}, null, 2)
|
|
96
96
|
], 2),
|
|
97
|
-
l("div",
|
|
98
|
-
|
|
97
|
+
l("div", he, [
|
|
98
|
+
V(q, {
|
|
99
99
|
placeholder: "查找",
|
|
100
|
-
class:
|
|
100
|
+
class: h(["webwin-inputbox", p(t)]),
|
|
101
101
|
style: { "margin-top": "6px", width: "320px", transition: "all 0s ease" }
|
|
102
102
|
}, null, 8, ["class"])
|
|
103
103
|
]),
|
|
104
104
|
l("h3", {
|
|
105
105
|
style: { "margin-top": "26px", "margin-bottom": "26px", "margin-left": "18px" },
|
|
106
|
-
class:
|
|
106
|
+
class: h(["webwin-title", p(t)])
|
|
107
107
|
}, x(e.title), 3)
|
|
108
108
|
]),
|
|
109
|
-
l("div",
|
|
110
|
-
(
|
|
109
|
+
l("div", ge, [
|
|
110
|
+
(s(!0), r($, null, I(e.items, (b, w) => (s(), r("li", {
|
|
111
111
|
key: w,
|
|
112
|
-
class:
|
|
113
|
-
onClick: (m) =>
|
|
112
|
+
class: h({ active: w === e.modelValue }),
|
|
113
|
+
onClick: (m) => i.$emit("update:modelValue", w)
|
|
114
114
|
}, [
|
|
115
|
-
|
|
116
|
-
(
|
|
115
|
+
c[2] || (c[2] = l("span", { class: "webwin-indicator" }, null, -1)),
|
|
116
|
+
(s(), r("svg", ye, [
|
|
117
117
|
l("path", {
|
|
118
|
-
d:
|
|
119
|
-
}, null, 8,
|
|
118
|
+
d: b.icon
|
|
119
|
+
}, null, 8, $e)
|
|
120
120
|
])),
|
|
121
121
|
l("span", {
|
|
122
|
-
class:
|
|
123
|
-
}, x(
|
|
124
|
-
], 10,
|
|
122
|
+
class: h(["webwin-label", p(t)])
|
|
123
|
+
}, x(b.name), 3)
|
|
124
|
+
], 10, xe))), 128))
|
|
125
125
|
])
|
|
126
126
|
], 2));
|
|
127
127
|
}
|
|
128
|
-
},
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
128
|
+
}, H = /* @__PURE__ */ g(ke, [["__scopeId", "data-v-9741fc8d"]]), Ce = { class: "webwin-tile-content" }, Se = { class: "webwin-tile-icon" }, Ve = {
|
|
129
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
130
|
+
viewBox: "0 0 24 24",
|
|
131
|
+
width: "24",
|
|
132
|
+
height: "24"
|
|
133
|
+
}, Me = ["d"], Ie = { class: "webwin-tile-title" }, Be = /* @__PURE__ */ z({
|
|
134
|
+
__name: "webwin-tile",
|
|
133
135
|
props: {
|
|
134
136
|
size: { default: "medium" },
|
|
135
137
|
color: { default: "#0078d7" },
|
|
@@ -138,140 +140,115 @@ const ke = {
|
|
|
138
140
|
glowColor: { default: "rgba(255,255,255,0.5)" },
|
|
139
141
|
glowRadius: { default: 60 }
|
|
140
142
|
},
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
143
|
+
setup(e) {
|
|
144
|
+
console.log("%c✨Welcome to Web-Win-Vue-Tile✨", `
|
|
145
|
+
color: #0078d7;
|
|
146
|
+
text-shadow: 0 1px 0 #0078d7;`);
|
|
147
|
+
const a = e, o = u(!1), t = u(0), n = u(0), i = u(0), c = T(() => ({
|
|
148
|
+
"--tile-color": a.color,
|
|
149
|
+
"--glow-color": a.glowColor,
|
|
150
|
+
"--glow-radius": `${a.glowRadius}px`
|
|
151
|
+
})), b = T(() => ({
|
|
152
|
+
"--x": `${t.value}px`,
|
|
153
|
+
"--y": `${n.value}px`,
|
|
154
|
+
opacity: i.value
|
|
155
|
+
})), w = T(() => ({
|
|
156
|
+
"--x": `${t.value}px`,
|
|
157
|
+
"--y": `${n.value}px`,
|
|
158
|
+
opacity: o.value ? 1 : 0
|
|
159
|
+
})), m = (v) => {
|
|
160
|
+
const d = v.currentTarget.getBoundingClientRect();
|
|
161
|
+
t.value = v.clientX - d.left, n.value = v.clientY - d.top;
|
|
162
|
+
const _ = Math.min(
|
|
163
|
+
t.value,
|
|
164
|
+
d.width - t.value,
|
|
165
|
+
n.value,
|
|
166
|
+
d.height - n.value
|
|
167
|
+
), y = a.glowRadius;
|
|
168
|
+
i.value = Math.max(0, (y - _) / y);
|
|
169
|
+
}, f = () => {
|
|
170
|
+
o.value = !1, i.value = 0;
|
|
147
171
|
};
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
"
|
|
167
|
-
"--y": `${this.mouseY}px`,
|
|
168
|
-
opacity: this.isHovered ? 1 : 0
|
|
169
|
-
};
|
|
170
|
-
}
|
|
171
|
-
},
|
|
172
|
-
methods: {
|
|
173
|
-
handleMouseMove(e) {
|
|
174
|
-
const n = e.currentTarget.getBoundingClientRect();
|
|
175
|
-
this.mouseX = e.clientX - n.left, this.mouseY = e.clientY - n.top;
|
|
176
|
-
const o = Math.min(
|
|
177
|
-
this.mouseX,
|
|
178
|
-
n.width - this.mouseX,
|
|
179
|
-
this.mouseY,
|
|
180
|
-
n.height - this.mouseY
|
|
181
|
-
), t = this.glowRadius;
|
|
182
|
-
this.glowOpacity = Math.max(0, (t - o) / t);
|
|
183
|
-
},
|
|
184
|
-
handleMouseLeave() {
|
|
185
|
-
this.isHovered = !1, this.glowOpacity = 0;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
}, Ce = { class: "webwin-tile-content" }, Me = { class: "webwin-tile-icon" }, Se = {
|
|
189
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
190
|
-
viewBox: "0 0 24 24",
|
|
191
|
-
width: "24",
|
|
192
|
-
height: "24"
|
|
193
|
-
}, Ve = ["d"], Ie = { class: "webwin-tile-title" };
|
|
194
|
-
function Be(e, n, o, t, i, s) {
|
|
195
|
-
return c(), r("div", {
|
|
196
|
-
class: _(["webwin-tile", o.size]),
|
|
197
|
-
style: W(s.tileStyle),
|
|
198
|
-
onMousemove: n[0] || (n[0] = (...a) => s.handleMouseMove && s.handleMouseMove(...a)),
|
|
199
|
-
onMouseenter: n[1] || (n[1] = (a) => i.isHovered = !0),
|
|
200
|
-
onMouseleave: n[2] || (n[2] = (...a) => s.handleMouseLeave && s.handleMouseLeave(...a))
|
|
201
|
-
}, [
|
|
202
|
-
l("div", Ce, [
|
|
203
|
-
l("div", Me, [
|
|
204
|
-
k(e.$slots, "icon", {}, () => [
|
|
205
|
-
(c(), r("svg", Se, [
|
|
206
|
-
l("path", {
|
|
207
|
-
fill: "white",
|
|
208
|
-
d: o.icon
|
|
209
|
-
}, null, 8, Ve)
|
|
210
|
-
]))
|
|
211
|
-
], !0)
|
|
172
|
+
return (v, d) => (s(), r("div", {
|
|
173
|
+
class: h(["webwin-tile", e.size]),
|
|
174
|
+
style: W(c.value),
|
|
175
|
+
onMousemove: m,
|
|
176
|
+
onMouseenter: d[0] || (d[0] = (_) => o.value = !0),
|
|
177
|
+
onMouseleave: f
|
|
178
|
+
}, [
|
|
179
|
+
l("div", Ce, [
|
|
180
|
+
l("div", Se, [
|
|
181
|
+
k(v.$slots, "icon", {}, () => [
|
|
182
|
+
(s(), r("svg", Ve, [
|
|
183
|
+
l("path", {
|
|
184
|
+
fill: "white",
|
|
185
|
+
d: e.icon
|
|
186
|
+
}, null, 8, Me)
|
|
187
|
+
]))
|
|
188
|
+
], !0)
|
|
189
|
+
]),
|
|
190
|
+
l("div", Ie, x(e.title), 1)
|
|
212
191
|
]),
|
|
213
|
-
l("div",
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
}
|
|
225
|
-
const O = /* @__PURE__ */ f(ke, [["render", Be], ["__scopeId", "data-v-dca3ebff"]]), ze = { class: "webwin-container" }, Ne = ["src"], Re = ["src"], U = {
|
|
192
|
+
l("div", {
|
|
193
|
+
class: "webwin-glow-border",
|
|
194
|
+
style: W(b.value)
|
|
195
|
+
}, null, 4),
|
|
196
|
+
l("div", {
|
|
197
|
+
class: "webwin-pointer-glow",
|
|
198
|
+
style: W(w.value)
|
|
199
|
+
}, null, 4)
|
|
200
|
+
], 38));
|
|
201
|
+
}
|
|
202
|
+
}), O = /* @__PURE__ */ g(Be, [["__scopeId", "data-v-51adc759"]]), ze = { class: "webwin-container" }, Ne = ["src"], Re = ["src"], X = {
|
|
226
203
|
__name: "webwin-tab",
|
|
227
204
|
props: { menu: Array, url: Array, titlebar: Boolean, titlebartext: String },
|
|
228
205
|
setup(e) {
|
|
229
|
-
const
|
|
230
|
-
let
|
|
231
|
-
|
|
232
|
-
console.log("activeIndex changed:", w), console.log("new url:",
|
|
206
|
+
const a = e, o = u(0), t = u(0), n = u(a.url[0]);
|
|
207
|
+
let i = u(""), c = u("");
|
|
208
|
+
a.titlebar ? i.value = a.titlebartext : i.value = "", le(o, (w) => {
|
|
209
|
+
console.log("activeIndex changed:", w), console.log("new url:", a.url[w]), n.value = a.url[w], t.value = t.value === 0 ? 1 : 0, console.log("docState:", t.value);
|
|
233
210
|
});
|
|
234
|
-
function
|
|
235
|
-
w ?
|
|
211
|
+
function b(w) {
|
|
212
|
+
w ? c.value = "" : c.value = "folded";
|
|
236
213
|
}
|
|
237
|
-
return (w, m) => (
|
|
238
|
-
|
|
214
|
+
return (w, m) => (s(), r("div", ze, [
|
|
215
|
+
V(H, {
|
|
239
216
|
modelValue: o.value,
|
|
240
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
|
217
|
+
"onUpdate:modelValue": m[0] || (m[0] = (f) => o.value = f),
|
|
241
218
|
items: e.menu,
|
|
242
219
|
class: "webwin-item-1",
|
|
243
|
-
bartitle:
|
|
244
|
-
onUpdate:
|
|
220
|
+
bartitle: p(i),
|
|
221
|
+
onUpdate: b
|
|
245
222
|
}, null, 8, ["modelValue", "items", "bartitle"]),
|
|
246
|
-
|
|
223
|
+
V(B, {
|
|
247
224
|
name: "fade",
|
|
248
225
|
mode: "out-in"
|
|
249
226
|
}, {
|
|
250
|
-
default:
|
|
251
|
-
t.value === 0 ? (
|
|
227
|
+
default: S(() => [
|
|
228
|
+
t.value === 0 ? (s(), r("div", {
|
|
252
229
|
key: "state0",
|
|
253
|
-
class:
|
|
230
|
+
class: h(["webwin-iframe-container", p(c)])
|
|
254
231
|
}, [
|
|
255
232
|
k(w.$slots, "default", {}, () => [
|
|
256
|
-
|
|
257
|
-
src:
|
|
233
|
+
N(l("iframe", {
|
|
234
|
+
src: n.value,
|
|
258
235
|
style: { "margin-top": "70px" },
|
|
259
236
|
class: "webwin-iframe"
|
|
260
237
|
}, null, 8, Ne), [
|
|
261
|
-
[
|
|
238
|
+
[E, t.value === 0]
|
|
262
239
|
])
|
|
263
240
|
])
|
|
264
|
-
], 2)) : t.value === 1 ? (
|
|
241
|
+
], 2)) : t.value === 1 ? (s(), r("div", {
|
|
265
242
|
key: "state1",
|
|
266
|
-
class:
|
|
243
|
+
class: h(["webwin-iframe-container", p(c)])
|
|
267
244
|
}, [
|
|
268
245
|
k(w.$slots, "default", {}, () => [
|
|
269
|
-
|
|
270
|
-
src:
|
|
246
|
+
N(l("iframe", {
|
|
247
|
+
src: n.value,
|
|
271
248
|
style: { "margin-top": "70px" },
|
|
272
249
|
class: "webwin-iframe"
|
|
273
250
|
}, null, 8, Re), [
|
|
274
|
-
[
|
|
251
|
+
[E, t.value === 1]
|
|
275
252
|
])
|
|
276
253
|
])
|
|
277
254
|
], 2)) : C("", !0)
|
|
@@ -280,150 +257,150 @@ const O = /* @__PURE__ */ f(ke, [["render", Be], ["__scopeId", "data-v-dca3ebff"
|
|
|
280
257
|
})
|
|
281
258
|
]));
|
|
282
259
|
}
|
|
283
|
-
}, We = ["value", "placeholder"], Te = /* @__PURE__ */
|
|
260
|
+
}, We = ["value", "placeholder"], Te = /* @__PURE__ */ z({
|
|
284
261
|
__name: "webwin-passwordbox",
|
|
285
262
|
props: { value: String, placeholder: String },
|
|
286
263
|
setup(e) {
|
|
287
|
-
const
|
|
288
|
-
return (
|
|
264
|
+
const a = e, o = u(a.value), t = u(a.placeholder);
|
|
265
|
+
return (n, i) => (s(), r("input", {
|
|
289
266
|
type: "password",
|
|
290
267
|
name: "fname",
|
|
291
268
|
class: "webwin-uwppassword",
|
|
292
269
|
value: o.value,
|
|
293
270
|
placeholder: t.value,
|
|
294
|
-
onChange:
|
|
271
|
+
onChange: i[0] || (i[0] = (c) => n.$emit("@change", c))
|
|
295
272
|
}, null, 40, We));
|
|
296
273
|
}
|
|
297
|
-
}),
|
|
274
|
+
}), Y = /* @__PURE__ */ g(Te, [["__scopeId", "data-v-dd8b91fe"]]), De = ["data-placeholder"], Fe = /* @__PURE__ */ z({
|
|
298
275
|
__name: "webwin-richeditbox",
|
|
299
276
|
props: {
|
|
300
277
|
value: { type: String, default: "" },
|
|
301
278
|
placeholder: { type: String, default: "" }
|
|
302
279
|
},
|
|
303
280
|
emits: ["update", "change"],
|
|
304
|
-
setup(e, { emit:
|
|
305
|
-
const o = e, t =
|
|
306
|
-
|
|
307
|
-
|
|
281
|
+
setup(e, { emit: a }) {
|
|
282
|
+
const o = e, t = a, n = u(null), i = u(o.placeholder), c = u(o.value);
|
|
283
|
+
oe(() => {
|
|
284
|
+
n.value && (n.value.textContent = o.value || "", c.value = o.value || "");
|
|
308
285
|
});
|
|
309
|
-
const
|
|
310
|
-
if (!
|
|
311
|
-
const
|
|
312
|
-
t("update",
|
|
313
|
-
if (
|
|
314
|
-
const
|
|
315
|
-
|
|
286
|
+
const b = (f) => {
|
|
287
|
+
if (!n.value) return;
|
|
288
|
+
const v = n.value.textContent || "";
|
|
289
|
+
t("update", v), ae(() => {
|
|
290
|
+
if (n.value) {
|
|
291
|
+
const d = document.createRange(), _ = window.getSelection();
|
|
292
|
+
d.selectNodeContents(n.value), d.collapse(!1), _?.removeAllRanges(), _?.addRange(d);
|
|
316
293
|
}
|
|
317
294
|
});
|
|
318
|
-
}, w = (
|
|
319
|
-
const
|
|
320
|
-
|
|
321
|
-
}, m = (
|
|
322
|
-
const
|
|
323
|
-
|
|
295
|
+
}, w = (f) => {
|
|
296
|
+
const v = f.target;
|
|
297
|
+
v.textContent === o.placeholder && (v.textContent = "");
|
|
298
|
+
}, m = (f) => {
|
|
299
|
+
const v = f.target, d = v.textContent || "";
|
|
300
|
+
d !== c.value && (t("change", {
|
|
324
301
|
target: {
|
|
325
|
-
value:
|
|
302
|
+
value: d
|
|
326
303
|
}
|
|
327
|
-
}),
|
|
304
|
+
}), c.value = d), d.trim() === "" && (v.textContent = "");
|
|
328
305
|
};
|
|
329
|
-
return (
|
|
306
|
+
return (f, v) => (s(), r("div", {
|
|
330
307
|
ref_key: "editableDiv",
|
|
331
|
-
ref:
|
|
308
|
+
ref: n,
|
|
332
309
|
class: "webwin-uwprichrditbox",
|
|
333
310
|
contenteditable: "plaintext-only",
|
|
334
|
-
"data-placeholder":
|
|
335
|
-
onInput:
|
|
311
|
+
"data-placeholder": i.value,
|
|
312
|
+
onInput: b,
|
|
336
313
|
onFocus: w,
|
|
337
314
|
onBlur: m
|
|
338
315
|
}, null, 40, De));
|
|
339
316
|
}
|
|
340
|
-
}),
|
|
317
|
+
}), j = /* @__PURE__ */ g(Fe, [["__scopeId", "data-v-f7a96b3a"]]), Ue = ["src"], qe = {
|
|
341
318
|
class: "webwin-n-name",
|
|
342
319
|
style: { display: "inline-block", "margin-left": "6px" }
|
|
343
|
-
},
|
|
320
|
+
}, He = { class: "webwin-n-text webwin-n-title" }, Ee = { class: "webwin-n-vulua" }, Le = {
|
|
344
321
|
__name: "webwin-notifications",
|
|
345
322
|
props: { name: String, title: String, text: String, img: String },
|
|
346
|
-
setup(e, { expose:
|
|
323
|
+
setup(e, { expose: a }) {
|
|
347
324
|
const o = e;
|
|
348
|
-
let t = u(!1),
|
|
349
|
-
const
|
|
325
|
+
let t = u(!1), n = u(o.img);
|
|
326
|
+
const i = () => {
|
|
350
327
|
t.value = !t.value;
|
|
351
328
|
};
|
|
352
|
-
function
|
|
329
|
+
function c() {
|
|
353
330
|
t.value && setTimeout(() => {
|
|
354
331
|
t.value = !1;
|
|
355
332
|
}, 250);
|
|
356
333
|
}
|
|
357
|
-
return
|
|
334
|
+
return a({ showNotification: i }), console.log("%c✨Welcome to Web-Win-Vue-Notifications✨", `
|
|
358
335
|
color: #0078d7;
|
|
359
|
-
text-shadow: 0 1px 0 #0078d7;`), (
|
|
360
|
-
default:
|
|
361
|
-
|
|
336
|
+
text-shadow: 0 1px 0 #0078d7;`), (b, w) => (s(), D(B, { name: "slide-fade" }, {
|
|
337
|
+
default: S(() => [
|
|
338
|
+
p(t) ? (s(), r("div", {
|
|
362
339
|
key: 0,
|
|
363
340
|
class: "webwin-notification",
|
|
364
|
-
onClick:
|
|
341
|
+
onClick: c
|
|
365
342
|
}, [
|
|
366
343
|
l("img", {
|
|
367
|
-
src:
|
|
344
|
+
src: p(n),
|
|
368
345
|
style: { "object-fit": "contain", "margin-left": "16px", "margin-right": "0px", display: "inline-block", "vertical-align": "middle", width: "16px", height: "16px" }
|
|
369
|
-
}, null, 8,
|
|
370
|
-
l("p",
|
|
371
|
-
l("h4",
|
|
372
|
-
l("p",
|
|
346
|
+
}, null, 8, Ue),
|
|
347
|
+
l("p", qe, x(e.name), 1),
|
|
348
|
+
l("h4", He, x(e.title), 1),
|
|
349
|
+
l("p", Ee, x(e.text), 1)
|
|
373
350
|
])) : C("", !0)
|
|
374
351
|
]),
|
|
375
352
|
_: 1
|
|
376
353
|
}));
|
|
377
354
|
}
|
|
378
|
-
}, G = /* @__PURE__ */
|
|
355
|
+
}, G = /* @__PURE__ */ g(Le, [["__scopeId", "data-v-c29ecbbb"]]), Oe = ["name", "id"], Xe = ["for"], Ye = /* @__PURE__ */ z({
|
|
379
356
|
__name: "webwin-checkbox",
|
|
380
357
|
props: { name: String, checked: Array },
|
|
381
358
|
setup(e) {
|
|
382
|
-
const
|
|
383
|
-
return (
|
|
384
|
-
|
|
359
|
+
const a = e, o = u(a.name), t = u(a.checked);
|
|
360
|
+
return (n, i) => (s(), r($, null, [
|
|
361
|
+
N(l("input", {
|
|
385
362
|
type: "checkbox",
|
|
386
363
|
class: "webwin-checkbox",
|
|
387
364
|
name: o.value,
|
|
388
365
|
id: o.value,
|
|
389
|
-
"onUpdate:modelValue":
|
|
390
|
-
onClick:
|
|
391
|
-
}, null, 8,
|
|
366
|
+
"onUpdate:modelValue": i[0] || (i[0] = (c) => t.value = c),
|
|
367
|
+
onClick: i[1] || (i[1] = (c) => n.$emit("click", c))
|
|
368
|
+
}, null, 8, Oe), [
|
|
392
369
|
[ie, t.value]
|
|
393
370
|
]),
|
|
394
371
|
l("label", {
|
|
395
372
|
for: o.value,
|
|
396
373
|
class: "webwin-checkbox-label"
|
|
397
374
|
}, [
|
|
398
|
-
k(
|
|
399
|
-
], 8,
|
|
375
|
+
k(n.$slots, "default", {}, void 0, !0)
|
|
376
|
+
], 8, Xe)
|
|
400
377
|
], 64));
|
|
401
378
|
}
|
|
402
|
-
}),
|
|
379
|
+
}), K = /* @__PURE__ */ g(Ye, [["__scopeId", "data-v-3b234b99"]]), je = ["name", "id"], Ge = ["for"], Ke = /* @__PURE__ */ z({
|
|
403
380
|
__name: "webwin-radio",
|
|
404
381
|
props: { name: String, checked: Array },
|
|
405
382
|
setup(e) {
|
|
406
|
-
const
|
|
407
|
-
return (
|
|
408
|
-
|
|
383
|
+
const a = e, o = u(a.name), t = u(a.checked);
|
|
384
|
+
return (n, i) => (s(), r($, null, [
|
|
385
|
+
N(l("input", {
|
|
409
386
|
type: "radio",
|
|
410
387
|
class: "webwin-radio",
|
|
411
388
|
name: o.value,
|
|
412
389
|
id: o.value,
|
|
413
|
-
"onUpdate:modelValue":
|
|
414
|
-
onClick:
|
|
415
|
-
}, null, 8,
|
|
390
|
+
"onUpdate:modelValue": i[0] || (i[0] = (c) => t.value = c),
|
|
391
|
+
onClick: i[1] || (i[1] = (c) => n.$emit("click", c))
|
|
392
|
+
}, null, 8, je), [
|
|
416
393
|
[se, t.value]
|
|
417
394
|
]),
|
|
418
395
|
l("label", {
|
|
419
396
|
for: o.value,
|
|
420
397
|
class: "webwin-radio-label"
|
|
421
398
|
}, [
|
|
422
|
-
k(
|
|
423
|
-
], 8,
|
|
399
|
+
k(n.$slots, "default", {}, void 0, !0)
|
|
400
|
+
], 8, Ge)
|
|
424
401
|
], 64));
|
|
425
402
|
}
|
|
426
|
-
}),
|
|
403
|
+
}), J = /* @__PURE__ */ g(Ke, [["__scopeId", "data-v-04fe95c4"]]), Je = { style: { position: "relative" } }, Pe = {
|
|
427
404
|
key: 0,
|
|
428
405
|
class: "webwin-list-box"
|
|
429
406
|
}, Qe = { style: { overflow: "auto", height: "calc( 100% - 240px )" } }, Ze = ["onClick"], Ae = { class: "webwin-label" }, et = {
|
|
@@ -434,103 +411,103 @@ const O = /* @__PURE__ */ f(ke, [["render", Be], ["__scopeId", "data-v-dca3ebff"
|
|
|
434
411
|
title: { type: String, default: "itembox" }
|
|
435
412
|
},
|
|
436
413
|
emits: ["update"],
|
|
437
|
-
setup(e, { emit:
|
|
438
|
-
|
|
439
|
-
v1be24303:
|
|
440
|
-
v5172b45c:
|
|
414
|
+
setup(e, { emit: a }) {
|
|
415
|
+
F((d) => ({
|
|
416
|
+
v1be24303: p(m) + "px",
|
|
417
|
+
v5172b45c: p(w) + "px"
|
|
441
418
|
}));
|
|
442
|
-
const o = e, t =
|
|
443
|
-
let
|
|
444
|
-
function
|
|
445
|
-
|
|
446
|
-
w.value =
|
|
419
|
+
const o = e, t = a;
|
|
420
|
+
let n = u(""), i = u(!1), c = u(o.modelValue), b = u(o.title), w = u(-6), m = u(6);
|
|
421
|
+
function f(d) {
|
|
422
|
+
i.value = !1, n.value = "", c.value = d, b.value = o.items[d].name, t("update", d), setTimeout(() => {
|
|
423
|
+
w.value = d * -35 - 6, m.value = d * 35 + 6;
|
|
447
424
|
}, 100);
|
|
448
425
|
}
|
|
449
|
-
function
|
|
450
|
-
|
|
426
|
+
function v() {
|
|
427
|
+
i.value = !i.value, n.value = i.value ? "active" : "";
|
|
451
428
|
}
|
|
452
|
-
return (
|
|
429
|
+
return (d, _) => (s(), r("div", Je, [
|
|
453
430
|
l("div", {
|
|
454
|
-
class:
|
|
455
|
-
onClick:
|
|
456
|
-
}, x(
|
|
457
|
-
|
|
458
|
-
default:
|
|
459
|
-
|
|
460
|
-
|
|
431
|
+
class: h(["webwin-list-box-button", p(n)]),
|
|
432
|
+
onClick: v
|
|
433
|
+
}, x(p(b)), 3),
|
|
434
|
+
V(B, null, {
|
|
435
|
+
default: S(() => [
|
|
436
|
+
p(i) ? (s(), r("ul", Pe, [
|
|
437
|
+
_[0] || (_[0] = l("div", { style: { height: "6px" } }, null, -1)),
|
|
461
438
|
l("div", Qe, [
|
|
462
|
-
(
|
|
463
|
-
key:
|
|
464
|
-
class:
|
|
465
|
-
onClick: (R) =>
|
|
439
|
+
(s(!0), r($, null, I(e.items, (y, M) => (s(), r("li", {
|
|
440
|
+
key: M,
|
|
441
|
+
class: h({ active: M === p(c) }),
|
|
442
|
+
onClick: (R) => f(M)
|
|
466
443
|
}, [
|
|
467
444
|
l("span", Ae, x(y.name), 1)
|
|
468
445
|
], 10, Ze))), 128))
|
|
469
446
|
]),
|
|
470
|
-
|
|
447
|
+
_[1] || (_[1] = l("div", { style: { height: "6px" } }, null, -1))
|
|
471
448
|
])) : C("", !0)
|
|
472
449
|
]),
|
|
473
450
|
_: 1
|
|
474
451
|
})
|
|
475
452
|
]));
|
|
476
453
|
}
|
|
477
|
-
},
|
|
454
|
+
}, P = /* @__PURE__ */ g(et, [["__scopeId", "data-v-ac4b4002"]]), tt = { class: "webwin-progress-bar" }, nt = {
|
|
478
455
|
__name: "webwin-progressbar",
|
|
479
456
|
props: {
|
|
480
457
|
progress: { type: Number, default: 0 }
|
|
481
458
|
},
|
|
482
459
|
setup(e) {
|
|
483
|
-
return (
|
|
460
|
+
return (a, o) => (s(), r("div", tt, [
|
|
484
461
|
l("div", {
|
|
485
462
|
class: "webwin-progress",
|
|
486
463
|
style: W({ width: e.progress + "%" })
|
|
487
464
|
}, null, 4)
|
|
488
465
|
]));
|
|
489
466
|
}
|
|
490
|
-
},
|
|
467
|
+
}, Q = /* @__PURE__ */ g(nt, [["__scopeId", "data-v-9ef8a457"]]), lt = {
|
|
491
468
|
key: 0,
|
|
492
469
|
class: "webwin-window-background"
|
|
493
470
|
}, ot = {
|
|
494
471
|
key: 0,
|
|
495
472
|
class: "webwin-window"
|
|
496
|
-
},
|
|
473
|
+
}, at = { style: { "margin-top": "24px", "margin-bottom": "24px" } }, it = { class: "webwin-window-title" }, st = { style: { "margin-left": "25px", "margin-right": "24px", width: "calc(100% - 48px)" } }, ct = { style: { "margin-left": "24px", "margin-right": "24px", width: "calc(100% - 48px)", display: "Flex", gap: "6px", "margin-top": "48px" } }, rt = {
|
|
497
474
|
__name: "webwin-window",
|
|
498
475
|
props: {
|
|
499
476
|
items: { type: Array, required: !0, default: [{ text: "11" }, { text: "11" }] },
|
|
500
477
|
title: { type: String, default: "Title" }
|
|
501
478
|
},
|
|
502
479
|
emits: ["clickBotton"],
|
|
503
|
-
setup(e, { expose:
|
|
480
|
+
setup(e, { expose: a, emit: o }) {
|
|
504
481
|
let t = u("");
|
|
505
|
-
const
|
|
482
|
+
const n = o, i = () => {
|
|
506
483
|
t.value = !0;
|
|
507
484
|
};
|
|
508
|
-
function
|
|
509
|
-
t.value = !1,
|
|
485
|
+
function c(b) {
|
|
486
|
+
t.value = !1, n("clickBotton", b);
|
|
510
487
|
}
|
|
511
|
-
return
|
|
512
|
-
|
|
513
|
-
default:
|
|
514
|
-
|
|
488
|
+
return a({ showDialog: i }), (b, w) => (s(), r($, null, [
|
|
489
|
+
V(B, null, {
|
|
490
|
+
default: S(() => [
|
|
491
|
+
p(t) ? (s(), r("div", lt)) : C("", !0)
|
|
515
492
|
]),
|
|
516
493
|
_: 1
|
|
517
494
|
}),
|
|
518
|
-
|
|
519
|
-
default:
|
|
520
|
-
|
|
521
|
-
l("div",
|
|
522
|
-
l("h2",
|
|
523
|
-
l("div",
|
|
524
|
-
k(
|
|
495
|
+
V(B, null, {
|
|
496
|
+
default: S(() => [
|
|
497
|
+
p(t) ? (s(), r("div", ot, [
|
|
498
|
+
l("div", at, [
|
|
499
|
+
l("h2", it, x(e.title), 1),
|
|
500
|
+
l("div", st, [
|
|
501
|
+
k(b.$slots, "default", {}, void 0, !0)
|
|
525
502
|
]),
|
|
526
503
|
l("div", ct, [
|
|
527
|
-
(
|
|
504
|
+
(s(!0), r($, null, I(e.items, (m, f) => (s(), D(U, {
|
|
528
505
|
class: "webwin-window-button",
|
|
529
|
-
key:
|
|
530
|
-
onClick: (
|
|
506
|
+
key: f,
|
|
507
|
+
onClick: (v) => c(f)
|
|
531
508
|
}, {
|
|
532
|
-
default:
|
|
533
|
-
|
|
509
|
+
default: S(() => [
|
|
510
|
+
ce(x(m.text), 1)
|
|
534
511
|
]),
|
|
535
512
|
_: 2
|
|
536
513
|
}, 1032, ["onClick"]))), 128))
|
|
@@ -542,50 +519,50 @@ const O = /* @__PURE__ */ f(ke, [["render", Be], ["__scopeId", "data-v-dca3ebff"
|
|
|
542
519
|
})
|
|
543
520
|
], 64));
|
|
544
521
|
}
|
|
545
|
-
},
|
|
546
|
-
function wt(e,
|
|
547
|
-
return
|
|
522
|
+
}, Z = /* @__PURE__ */ g(rt, [["__scopeId", "data-v-ed2b82b4"]]), ut = {}, dt = { class: "webwin-card" };
|
|
523
|
+
function wt(e, a) {
|
|
524
|
+
return s(), r("div", dt, [
|
|
548
525
|
k(e.$slots, "default", {}, void 0, !0)
|
|
549
526
|
]);
|
|
550
527
|
}
|
|
551
|
-
const
|
|
528
|
+
const A = /* @__PURE__ */ g(ut, [["render", wt], ["__scopeId", "data-v-26a8c2e0"]]), pt = {
|
|
552
529
|
key: 0,
|
|
553
530
|
class: "webwin-dropdown-container"
|
|
554
|
-
},
|
|
531
|
+
}, vt = { class: "webwin-dropdown" }, mt = { style: { overflow: "auto", height: "calc( 100% - 240px )" } }, bt = ["onClick"], _t = { class: "webwin-label" }, ft = {
|
|
555
532
|
__name: "webwin-dropdown",
|
|
556
533
|
props: {
|
|
557
534
|
items: { type: Array, required: !0 }
|
|
558
535
|
},
|
|
559
536
|
emits: ["update"],
|
|
560
|
-
setup(e, { expose:
|
|
561
|
-
|
|
562
|
-
v08042082:
|
|
563
|
-
v6fe54d61:
|
|
537
|
+
setup(e, { expose: a, emit: o }) {
|
|
538
|
+
F((_) => ({
|
|
539
|
+
v08042082: p(i) + "px",
|
|
540
|
+
v6fe54d61: p(c) + "px"
|
|
564
541
|
}));
|
|
565
|
-
const t = e,
|
|
566
|
-
let
|
|
567
|
-
function
|
|
568
|
-
w.value = !1,
|
|
542
|
+
const t = e, n = o;
|
|
543
|
+
let i = u(0), c = u(0), b = u(""), w = u(!1), m = u(0), f = u(t.title || "");
|
|
544
|
+
function v(_) {
|
|
545
|
+
w.value = !1, b.value = "", m.value = _, f.value = t.items[_].name, n("update", _);
|
|
569
546
|
}
|
|
570
|
-
return
|
|
571
|
-
w.value = !w.value,
|
|
572
|
-
} }), (
|
|
573
|
-
|
|
574
|
-
default:
|
|
575
|
-
|
|
547
|
+
return a({ showbox: (_, y) => {
|
|
548
|
+
w.value = !w.value, b.value = w.value ? "active" : "", i.value = _, c.value = y;
|
|
549
|
+
} }), (_, y) => (s(), r("div", null, [
|
|
550
|
+
V(B, null, {
|
|
551
|
+
default: S(() => [
|
|
552
|
+
p(w) ? (s(), r("div", pt, [
|
|
576
553
|
l("div", {
|
|
577
554
|
class: "webwin-dropdown_backgroud",
|
|
578
|
-
onClick: y[0] || (y[0] = (
|
|
555
|
+
onClick: y[0] || (y[0] = (M) => L(w) ? w.value = !1 : w = !1)
|
|
579
556
|
}),
|
|
580
|
-
l("ul",
|
|
557
|
+
l("ul", vt, [
|
|
581
558
|
y[1] || (y[1] = l("div", { style: { height: "6px" } }, null, -1)),
|
|
582
|
-
l("div",
|
|
583
|
-
(
|
|
559
|
+
l("div", mt, [
|
|
560
|
+
(s(!0), r($, null, I(e.items, (M, R) => (s(), r("li", {
|
|
584
561
|
key: R,
|
|
585
|
-
class:
|
|
586
|
-
onClick: (It) =>
|
|
562
|
+
class: h({ active: R === p(m) }),
|
|
563
|
+
onClick: (It) => v(R)
|
|
587
564
|
}, [
|
|
588
|
-
l("span",
|
|
565
|
+
l("span", _t, x(M.name), 1)
|
|
589
566
|
], 10, bt))), 128))
|
|
590
567
|
]),
|
|
591
568
|
y[2] || (y[2] = l("div", { style: { height: "6px" } }, null, -1))
|
|
@@ -596,51 +573,51 @@ const Z = /* @__PURE__ */ f(ut, [["render", wt], ["__scopeId", "data-v-26a8c2e0"
|
|
|
596
573
|
})
|
|
597
574
|
]));
|
|
598
575
|
}
|
|
599
|
-
},
|
|
576
|
+
}, ee = /* @__PURE__ */ g(ft, [["__scopeId", "data-v-2d220786"]]), ht = { class: "webwin-topappbar" }, gt = ["is", "onClick"], xt = { class: "webwin-topappbar-label" }, yt = {
|
|
600
577
|
key: 0,
|
|
601
578
|
class: "webwin-topappbar-indicator"
|
|
602
579
|
}, $t = {
|
|
603
580
|
key: 1,
|
|
604
581
|
class: "webwin-topappbar-indicator-not"
|
|
605
|
-
}, kt = ["onClick"], Ct = { class: "webwin-topappbar-label" },
|
|
582
|
+
}, kt = ["onClick"], Ct = { class: "webwin-topappbar-label" }, St = {
|
|
606
583
|
__name: "webwin-topappbar",
|
|
607
584
|
props: { items: Array, activeIndex: Number, rightMenu: { type: Array, default: [] } },
|
|
608
585
|
emits: ["update"],
|
|
609
|
-
setup(e, { emit:
|
|
610
|
-
const o =
|
|
611
|
-
let
|
|
612
|
-
function
|
|
613
|
-
|
|
586
|
+
setup(e, { emit: a }) {
|
|
587
|
+
const o = a, t = e;
|
|
588
|
+
let n = u(t.activeIndex || 0), i = u(t.items), c = u(t.rightMenu);
|
|
589
|
+
function b(m) {
|
|
590
|
+
n.value = m, o("update", [m, "left"]);
|
|
614
591
|
}
|
|
615
592
|
function w(m) {
|
|
616
593
|
o("update", [m, "right"]);
|
|
617
594
|
}
|
|
618
|
-
return (m,
|
|
619
|
-
(
|
|
620
|
-
(
|
|
595
|
+
return (m, f) => (s(), r("ul", ht, [
|
|
596
|
+
(s(), D(re, null, [
|
|
597
|
+
(s(!0), r($, null, I(p(i), (v, d) => (s(), r("li", {
|
|
621
598
|
is: m.activeComponent,
|
|
622
|
-
key:
|
|
623
|
-
class:
|
|
624
|
-
onClick: (
|
|
599
|
+
key: d,
|
|
600
|
+
class: h([{ active: d === p(n) }, "webwin-topappbar-item"]),
|
|
601
|
+
onClick: (_) => b(d)
|
|
625
602
|
}, [
|
|
626
|
-
l("span", xt, x(
|
|
627
|
-
|
|
628
|
-
|
|
603
|
+
l("span", xt, x(v.name), 1),
|
|
604
|
+
d === p(n) ? (s(), r("span", yt)) : C("", !0),
|
|
605
|
+
d != p(n) ? (s(), r("span", $t)) : C("", !0)
|
|
629
606
|
], 10, gt))), 128))
|
|
630
607
|
], 1024)),
|
|
631
|
-
(
|
|
632
|
-
key:
|
|
633
|
-
onClick: (
|
|
608
|
+
(s(!0), r($, null, I(p(c), (v, d) => (s(), r("li", {
|
|
609
|
+
key: d,
|
|
610
|
+
onClick: (_) => w(d),
|
|
634
611
|
class: "webwin-topappbar-item",
|
|
635
612
|
style: { float: "right" }
|
|
636
613
|
}, [
|
|
637
|
-
l("span", Ct, x(
|
|
614
|
+
l("span", Ct, x(v.name), 1)
|
|
638
615
|
], 8, kt))), 128))
|
|
639
616
|
]));
|
|
640
617
|
}
|
|
641
|
-
},
|
|
618
|
+
}, te = /* @__PURE__ */ g(St, [["__scopeId", "data-v-ef60c98a"]]), Vt = {
|
|
642
619
|
__name: "webwin-range",
|
|
643
|
-
props: /* @__PURE__ */
|
|
620
|
+
props: /* @__PURE__ */ ue({
|
|
644
621
|
color: { type: String, default: "#006fd0" }
|
|
645
622
|
}, {
|
|
646
623
|
modelValue: {},
|
|
@@ -648,44 +625,44 @@ const Z = /* @__PURE__ */ f(ut, [["render", wt], ["__scopeId", "data-v-26a8c2e0"
|
|
|
648
625
|
}),
|
|
649
626
|
emits: ["update:modelValue"],
|
|
650
627
|
setup(e) {
|
|
651
|
-
|
|
628
|
+
F((o) => ({
|
|
652
629
|
v23dfb612: e.color
|
|
653
630
|
}));
|
|
654
|
-
let
|
|
655
|
-
return (o, t) =>
|
|
631
|
+
let a = de(e, "modelValue");
|
|
632
|
+
return (o, t) => N((s(), r("input", {
|
|
656
633
|
type: "range",
|
|
657
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
634
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => L(a) ? a.value = n : a = n),
|
|
658
635
|
class: "webwin-slider",
|
|
659
636
|
min: "1",
|
|
660
637
|
max: "100"
|
|
661
638
|
}, null, 512)), [
|
|
662
|
-
[
|
|
639
|
+
[we, p(a)]
|
|
663
640
|
]);
|
|
664
641
|
}
|
|
665
|
-
},
|
|
642
|
+
}, ne = /* @__PURE__ */ g(Vt, [["__scopeId", "data-v-480ca2b0"]]), Mt = [ne, te, ee, A, Z, Q, P, J, K, U, H, O, X, q, Y, j, G], zt = {
|
|
666
643
|
install(e) {
|
|
667
|
-
|
|
668
|
-
e.component("winbutton",
|
|
644
|
+
Mt.forEach((a) => {
|
|
645
|
+
e.component("winbutton", U), e.component("winitem", H), e.component("wintile", O), e.component("wintab", X), e.component("wininputbox", q), e.component("winpasswordbox", Y), e.component("winricheditbox", j), e.component("winnotifications", G), e.component("wincheckbox", K), e.component("winradio", J), e.component("wincombobox", P), e.component("winprogressbar", Q), e.component("winwindow", Z), e.component("wincard", A), e.component("windropdown", ee), e.component("wintopappbar", te), e.component("winrange", ne);
|
|
669
646
|
});
|
|
670
647
|
}
|
|
671
648
|
};
|
|
672
649
|
export {
|
|
673
650
|
zt as default,
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
651
|
+
U as winbutton,
|
|
652
|
+
A as wincard,
|
|
653
|
+
K as wincheckbox,
|
|
654
|
+
P as wincombobox,
|
|
655
|
+
ee as windropdown,
|
|
656
|
+
q as wininputbox,
|
|
657
|
+
H as winitem,
|
|
681
658
|
G as winnotifications,
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
659
|
+
Y as winpasswordbox,
|
|
660
|
+
Q as winprogressbar,
|
|
661
|
+
J as winradio,
|
|
662
|
+
ne as winrange,
|
|
663
|
+
j as winricheditbox,
|
|
664
|
+
X as wintab,
|
|
688
665
|
O as wintile,
|
|
689
|
-
|
|
690
|
-
|
|
666
|
+
te as wintopappbar,
|
|
667
|
+
Z as winwindow
|
|
691
668
|
};
|
package/web-win-vue.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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
|
|
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,a)=>{const l=t.__vccOpts||t;for(const[n,o]of a)l[n]=o;return l},W={},L={class:"webwin-button"};function q(t,a){return e.openBlock(),e.createElementBlock("button",L,[e.renderSlot(t.$slots,"default",{},void 0,!0)])}const k=_(W,[["render",q],["__scopeId","data-v-a059307c"]]),U=["value","placeholder"],u=_(e.defineComponent({__name:"webwin-inputbox",props:{value:String,placeholder:String},setup(t){const a=t,l=e.ref(a.placeholder);return(n,o)=>(e.openBlock(),e.createElementBlock("input",{type:"text",name:"fname",class:"webwin-uwpinput",value:t.value,placeholder:l.value,onChange:o[0]||(o[0]=i=>n.$emit("@change",i))},null,40,U))}}),[["__scopeId","data-v-7641a566"]]),H={class:"webwin-sidebar-text"},j={style:{width:"var(--sb-width, 350px)",margin:"auto"}},O={style:{overflow:"auto",height:"calc( 100% - 240px )","overflow-x":"hidden"}},X=["onClick"],Y={class:"webwin-icon",viewBox:"0 0 1024 1024",fill:"currentColor","aria-hidden":"true",height:"16"},G=["d"],y=_({__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:a}){const l=a;let n=e.ref("");function o(){n.value===""?(n.value="folded",l("update",!1)):(n.value="",l("update",!0))}return(i,c)=>(e.openBlock(),e.createElementBlock("ul",{class:e.normalizeClass(["webwin-side-bar",e.unref(n)])},[e.createElementVNode("div",{class:e.normalizeClass(["webwin-sidebar",e.unref(n)])},[e.createElementVNode("p",H,e.toDisplayString(t.bartitle),1)],2),e.createElementVNode("div",null,[e.createElementVNode("li",{style:{"margin-top":"24px",width:"24px"},onClick:o},[c[0]||(c[0]=e.createElementVNode("svg",{class:"webwin-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(["webwin-label",e.unref(n)])},null,2)]),e.createElementVNode("li",{onClick:o,class:e.normalizeClass(["webwin-search-fold",e.unref(n)])},[c[1]||(c[1]=e.createElementVNode("svg",{class:"webwin-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(["webwin-label",e.unref(n)])},null,2)],2),e.createElementVNode("div",j,[e.createVNode(u,{placeholder:"查找",class:e.normalizeClass(["webwin-inputbox",e.unref(n)]),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(["webwin-title",e.unref(n)])},e.toDisplayString(t.title),3)]),e.createElementVNode("div",O,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(w,r)=>(e.openBlock(),e.createElementBlock("li",{key:r,class:e.normalizeClass({active:r===t.modelValue}),onClick:p=>i.$emit("update:modelValue",r)},[c[2]||(c[2]=e.createElementVNode("span",{class:"webwin-indicator"},null,-1)),(e.openBlock(),e.createElementBlock("svg",Y,[e.createElementVNode("path",{d:w.icon},null,8,G)])),e.createElementVNode("span",{class:e.normalizeClass(["webwin-label",e.unref(n)])},e.toDisplayString(w.name),3)],10,X))),128))])],2))}},[["__scopeId","data-v-9741fc8d"]]),K={class:"webwin-tile-content"},P={class:"webwin-tile-icon"},J={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},Q=["d"],Z={class:"webwin-tile-title"},$=_(e.defineComponent({__name:"webwin-tile",props:{size:{default:"medium"},color:{default:"#0078d7"},title:{default:"App"},icon:{default:""},glowColor:{default:"rgba(255,255,255,0.5)"},glowRadius:{default:60}},setup(t){console.log("%c✨Welcome to Web-Win-Vue-Tile✨",`
|
|
2
2
|
color: #0078d7;
|
|
3
|
-
text-shadow: 0 1px 0 #0078d7;`);const
|
|
3
|
+
text-shadow: 0 1px 0 #0078d7;`);const a=t,l=e.ref(!1),n=e.ref(0),o=e.ref(0),i=e.ref(0),c=e.computed(()=>({"--tile-color":a.color,"--glow-color":a.glowColor,"--glow-radius":`${a.glowRadius}px`})),w=e.computed(()=>({"--x":`${n.value}px`,"--y":`${o.value}px`,opacity:i.value})),r=e.computed(()=>({"--x":`${n.value}px`,"--y":`${o.value}px`,opacity:l.value?1:0})),p=m=>{const s=m.currentTarget.getBoundingClientRect();n.value=m.clientX-s.left,o.value=m.clientY-s.top;const f=Math.min(n.value,s.width-n.value,o.value,s.height-o.value),h=a.glowRadius;i.value=Math.max(0,(h-f)/h)},b=()=>{l.value=!1,i.value=0};return(m,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["webwin-tile",t.size]),style:e.normalizeStyle(c.value),onMousemove:p,onMouseenter:s[0]||(s[0]=f=>l.value=!0),onMouseleave:b},[e.createElementVNode("div",K,[e.createElementVNode("div",P,[e.renderSlot(m.$slots,"icon",{},()=>[(e.openBlock(),e.createElementBlock("svg",J,[e.createElementVNode("path",{fill:"white",d:t.icon},null,8,Q)]))],!0)]),e.createElementVNode("div",Z,e.toDisplayString(t.title),1)]),e.createElementVNode("div",{class:"webwin-glow-border",style:e.normalizeStyle(w.value)},null,4),e.createElementVNode("div",{class:"webwin-pointer-glow",style:e.normalizeStyle(r.value)},null,4)],38))}}),[["__scopeId","data-v-51adc759"]]),A={class:"webwin-container"},v=["src"],ee=["src"],V={__name:"webwin-tab",props:{menu:Array,url:Array,titlebar:Boolean,titlebartext:String},setup(t){const a=t,l=e.ref(0),n=e.ref(0),o=e.ref(a.url[0]);let i=e.ref(""),c=e.ref("");a.titlebar?i.value=a.titlebartext:i.value="",e.watch(l,r=>{console.log("activeIndex changed:",r),console.log("new url:",a.url[r]),o.value=a.url[r],n.value=n.value===0?1:0,console.log("docState:",n.value)});function w(r){r?c.value="":c.value="folded"}return(r,p)=>(e.openBlock(),e.createElementBlock("div",A,[e.createVNode(y,{modelValue:l.value,"onUpdate:modelValue":p[0]||(p[0]=b=>l.value=b),items:t.menu,class:"webwin-item-1",bartitle:e.unref(i),onUpdate:w},null,8,["modelValue","items","bartitle"]),e.createVNode(e.Transition,{name:"fade",mode:"out-in"},{default:e.withCtx(()=>[n.value===0?(e.openBlock(),e.createElementBlock("div",{key:"state0",class:e.normalizeClass(["webwin-iframe-container",e.unref(c)])},[e.renderSlot(r.$slots,"default",{},()=>[e.withDirectives(e.createElementVNode("iframe",{src:o.value,style:{"margin-top":"70px"},class:"webwin-iframe"},null,8,v),[[e.vShow,n.value===0]])])],2)):n.value===1?(e.openBlock(),e.createElementBlock("div",{key:"state1",class:e.normalizeClass(["webwin-iframe-container",e.unref(c)])},[e.renderSlot(r.$slots,"default",{},()=>[e.withDirectives(e.createElementVNode("iframe",{src:o.value,style:{"margin-top":"70px"},class:"webwin-iframe"},null,8,ee),[[e.vShow,n.value===1]])])],2)):e.createCommentVNode("",!0)]),_:3})]))}},te=["value","placeholder"],B=_(e.defineComponent({__name:"webwin-passwordbox",props:{value:String,placeholder:String},setup(t){const a=t,l=e.ref(a.value),n=e.ref(a.placeholder);return(o,i)=>(e.openBlock(),e.createElementBlock("input",{type:"password",name:"fname",class:"webwin-uwppassword",value:l.value,placeholder:n.value,onChange:i[0]||(i[0]=c=>o.$emit("@change",c))},null,40,te))}}),[["__scopeId","data-v-dd8b91fe"]]),ne=["data-placeholder"],E=_(e.defineComponent({__name:"webwin-richeditbox",props:{value:{type:String,default:""},placeholder:{type:String,default:""}},emits:["update","change"],setup(t,{emit:a}){const l=t,n=a,o=e.ref(null),i=e.ref(l.placeholder),c=e.ref(l.value);e.onMounted(()=>{o.value&&(o.value.textContent=l.value||"",c.value=l.value||"")});const w=b=>{if(!o.value)return;const m=o.value.textContent||"";n("update",m),e.nextTick(()=>{if(o.value){const s=document.createRange(),f=window.getSelection();s.selectNodeContents(o.value),s.collapse(!1),f?.removeAllRanges(),f?.addRange(s)}})},r=b=>{const m=b.target;m.textContent===l.placeholder&&(m.textContent="")},p=b=>{const m=b.target,s=m.textContent||"";s!==c.value&&(n("change",{target:{value:s}}),c.value=s),s.trim()===""&&(m.textContent="")};return(b,m)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"editableDiv",ref:o,class:"webwin-uwprichrditbox",contenteditable:"plaintext-only","data-placeholder":i.value,onInput:w,onFocus:r,onBlur:p},null,40,ne))}}),[["__scopeId","data-v-f7a96b3a"]]),oe=["src"],le={class:"webwin-n-name",style:{display:"inline-block","margin-left":"6px"}},ae={class:"webwin-n-text webwin-n-title"},ie={class:"webwin-n-vulua"},C=_({__name:"webwin-notifications",props:{name:String,title:String,text:String,img:String},setup(t,{expose:a}){const l=t;let n=e.ref(!1),o=e.ref(l.img);const i=()=>{n.value=!n.value};function c(){n.value&&setTimeout(()=>{n.value=!1},250)}return a({showNotification:i}),console.log("%c✨Welcome to Web-Win-Vue-Notifications✨",`
|
|
4
4
|
color: #0078d7;
|
|
5
|
-
text-shadow: 0 1px 0 #0078d7;`),(
|
|
5
|
+
text-shadow: 0 1px 0 #0078d7;`),(w,r)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.unref(n)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"webwin-notification",onClick:c},[e.createElementVNode("img",{src:e.unref(o),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",le,e.toDisplayString(t.name),1),e.createElementVNode("h4",ae,e.toDisplayString(t.title),1),e.createElementVNode("p",ie,e.toDisplayString(t.text),1)])):e.createCommentVNode("",!0)]),_:1}))}},[["__scopeId","data-v-c29ecbbb"]]),ce=["name","id"],se=["for"],N=_(e.defineComponent({__name:"webwin-checkbox",props:{name:String,checked:Array},setup(t){const a=t,l=e.ref(a.name),n=e.ref(a.checked);return(o,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives(e.createElementVNode("input",{type:"checkbox",class:"webwin-checkbox",name:l.value,id:l.value,"onUpdate:modelValue":i[0]||(i[0]=c=>n.value=c),onClick:i[1]||(i[1]=c=>o.$emit("click",c))},null,8,ce),[[e.vModelCheckbox,n.value]]),e.createElementVNode("label",{for:l.value,class:"webwin-checkbox-label"},[e.renderSlot(o.$slots,"default",{},void 0,!0)],8,se)],64))}}),[["__scopeId","data-v-3b234b99"]]),re=["name","id"],de=["for"],S=_(e.defineComponent({__name:"webwin-radio",props:{name:String,checked:Array},setup(t){const a=t,l=e.ref(a.name),n=e.ref(a.checked);return(o,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives(e.createElementVNode("input",{type:"radio",class:"webwin-radio",name:l.value,id:l.value,"onUpdate:modelValue":i[0]||(i[0]=c=>n.value=c),onClick:i[1]||(i[1]=c=>o.$emit("click",c))},null,8,re),[[e.vModelRadio,n.value]]),e.createElementVNode("label",{for:l.value,class:"webwin-radio-label"},[e.renderSlot(o.$slots,"default",{},void 0,!0)],8,de)],64))}}),[["__scopeId","data-v-04fe95c4"]]),me={style:{position:"relative"}},pe={key:0,class:"webwin-list-box"},we={style:{overflow:"auto",height:"calc( 100% - 240px )"}},fe=["onClick"],be={class:"webwin-label"},z=_({__name:"webwin-combobox",props:{items:{type:Array,required:!0},modelValue:{type:Number,default:0},title:{type:String,default:"itembox"}},emits:["update"],setup(t,{emit:a}){e.useCssVars(s=>({v1be24303:e.unref(p)+"px",v5172b45c:e.unref(r)+"px"}));const l=t,n=a;let o=e.ref(""),i=e.ref(!1),c=e.ref(l.modelValue),w=e.ref(l.title),r=e.ref(-6),p=e.ref(6);function b(s){i.value=!1,o.value="",c.value=s,w.value=l.items[s].name,n("update",s),setTimeout(()=>{r.value=s*-35-6,p.value=s*35+6},100)}function m(){i.value=!i.value,o.value=i.value?"active":""}return(s,f)=>(e.openBlock(),e.createElementBlock("div",me,[e.createElementVNode("div",{class:e.normalizeClass(["webwin-list-box-button",e.unref(o)]),onClick:m},e.toDisplayString(e.unref(w)),3),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.unref(i)?(e.openBlock(),e.createElementBlock("ul",pe,[f[0]||(f[0]=e.createElementVNode("div",{style:{height:"6px"}},null,-1)),e.createElementVNode("div",we,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(h,g)=>(e.openBlock(),e.createElementBlock("li",{key:g,class:e.normalizeClass({active:g===e.unref(c)}),onClick:x=>b(g)},[e.createElementVNode("span",be,e.toDisplayString(h.name),1)],10,fe))),128))]),f[1]||(f[1]=e.createElementVNode("div",{style:{height:"6px"}},null,-1))])):e.createCommentVNode("",!0)]),_:1})]))}},[["__scopeId","data-v-ac4b4002"]]),_e={class:"webwin-progress-bar"},M=_({__name:"webwin-progressbar",props:{progress:{type:Number,default:0}},setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("div",_e,[e.createElementVNode("div",{class:"webwin-progress",style:e.normalizeStyle({width:t.progress+"%"})},null,4)]))}},[["__scopeId","data-v-9ef8a457"]]),he={key:0,class:"webwin-window-background"},ge={key:0,class:"webwin-window"},ke={style:{"margin-top":"24px","margin-bottom":"24px"}},ue={class:"webwin-window-title"},ye={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"}},D=_({__name:"webwin-window",props:{items:{type:Array,required:!0,default:[{text:"11"},{text:"11"}]},title:{type:String,default:"Title"}},emits:["clickBotton"],setup(t,{expose:a,emit:l}){let n=e.ref("");const o=l,i=()=>{n.value=!0};function c(w){n.value=!1,o("clickBotton",w)}return a({showDialog:i}),(w,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.unref(n)?(e.openBlock(),e.createElementBlock("div",he)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.unref(n)?(e.openBlock(),e.createElementBlock("div",ge,[e.createElementVNode("div",ke,[e.createElementVNode("h2",ue,e.toDisplayString(t.title),1),e.createElementVNode("div",ye,[e.renderSlot(w.$slots,"default",{},void 0,!0)]),e.createElementVNode("div",xe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(p,b)=>(e.openBlock(),e.createBlock(k,{class:"webwin-window-button",key:b,onClick:m=>c(b)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.text),1)]),_:2},1032,["onClick"]))),128))])])])):e.createCommentVNode("",!0)]),_:3})],64))}},[["__scopeId","data-v-ed2b82b4"]]),$e={},Ve={class:"webwin-card"};function Be(t,a){return e.openBlock(),e.createElementBlock("div",Ve,[e.renderSlot(t.$slots,"default",{},void 0,!0)])}const I=_($e,[["render",Be],["__scopeId","data-v-26a8c2e0"]]),Ee={key:0,class:"webwin-dropdown-container"},Ce={class:"webwin-dropdown"},Ne={style:{overflow:"auto",height:"calc( 100% - 240px )"}},Se=["onClick"],ze={class:"webwin-label"},T=_({__name:"webwin-dropdown",props:{items:{type:Array,required:!0}},emits:["update"],setup(t,{expose:a,emit:l}){e.useCssVars(f=>({v08042082:e.unref(i)+"px",v6fe54d61:e.unref(c)+"px"}));const n=t,o=l;let i=e.ref(0),c=e.ref(0),w=e.ref(""),r=e.ref(!1),p=e.ref(0),b=e.ref(n.title||"");function m(f){r.value=!1,w.value="",p.value=f,b.value=n.items[f].name,o("update",f)}return a({showbox:(f,h)=>{r.value=!r.value,w.value=r.value?"active":"",i.value=f,c.value=h}}),(f,h)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.unref(r)?(e.openBlock(),e.createElementBlock("div",Ee,[e.createElementVNode("div",{class:"webwin-dropdown_backgroud",onClick:h[0]||(h[0]=g=>e.isRef(r)?r.value=!1:r=!1)}),e.createElementVNode("ul",Ce,[h[1]||(h[1]=e.createElementVNode("div",{style:{height:"6px"}},null,-1)),e.createElementVNode("div",Ne,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(g,x)=>(e.openBlock(),e.createElementBlock("li",{key:x,class:e.normalizeClass({active:x===e.unref(p)}),onClick:et=>m(x)},[e.createElementVNode("span",ze,e.toDisplayString(g.name),1)],10,Se))),128))]),h[2]||(h[2]=e.createElementVNode("div",{style:{height:"6px"}},null,-1))])])):e.createCommentVNode("",!0)]),_:1})]))}},[["__scopeId","data-v-2d220786"]]),Me={class:"webwin-topappbar"},De=["is","onClick"],Ie={class:"webwin-topappbar-label"},Te={key:0,class:"webwin-topappbar-indicator"},Fe={key:1,class:"webwin-topappbar-indicator-not"},Re=["onClick"],We={class:"webwin-topappbar-label"},F=_({__name:"webwin-topappbar",props:{items:Array,activeIndex:Number,rightMenu:{type:Array,default:[]}},emits:["update"],setup(t,{emit:a}){const l=a,n=t;let o=e.ref(n.activeIndex||0),i=e.ref(n.items),c=e.ref(n.rightMenu);function w(p){o.value=p,l("update",[p,"left"])}function r(p){l("update",[p,"right"])}return(p,b)=>(e.openBlock(),e.createElementBlock("ul",Me,[(e.openBlock(),e.createBlock(e.KeepAlive,null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),(m,s)=>(e.openBlock(),e.createElementBlock("li",{is:p.activeComponent,key:s,class:e.normalizeClass([{active:s===e.unref(o)},"webwin-topappbar-item"]),onClick:f=>w(s)},[e.createElementVNode("span",Ie,e.toDisplayString(m.name),1),s===e.unref(o)?(e.openBlock(),e.createElementBlock("span",Te)):e.createCommentVNode("",!0),s!=e.unref(o)?(e.openBlock(),e.createElementBlock("span",Fe)):e.createCommentVNode("",!0)],10,De))),128))],1024)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(m,s)=>(e.openBlock(),e.createElementBlock("li",{key:s,onClick:f=>r(s),class:"webwin-topappbar-item",style:{float:"right"}},[e.createElementVNode("span",We,e.toDisplayString(m.name),1)],8,Re))),128))]))}},[["__scopeId","data-v-ef60c98a"]]),R=_({__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 a=e.useModel(t,"modelValue");return(l,n)=>e.withDirectives((e.openBlock(),e.createElementBlock("input",{type:"range","onUpdate:modelValue":n[0]||(n[0]=o=>e.isRef(a)?a.value=o:a=o),class:"webwin-slider",min:"1",max:"100"},null,512)),[[e.vModelText,e.unref(a)]])}},[["__scopeId","data-v-480ca2b0"]]),Le=[R,F,T,I,D,M,z,S,N,k,y,$,V,u,B,E,C],qe={install(t){Le.forEach(a=>{t.component("winbutton",k),t.component("winitem",y),t.component("wintile",$),t.component("wintab",V),t.component("wininputbox",u),t.component("winpasswordbox",B),t.component("winricheditbox",E),t.component("winnotifications",C),t.component("wincheckbox",N),t.component("winradio",S),t.component("wincombobox",z),t.component("winprogressbar",M),t.component("winwindow",D),t.component("wincard",I),t.component("windropdown",T),t.component("wintopappbar",F),t.component("winrange",R)})}};d.default=qe,d.winbutton=k,d.wincard=I,d.wincheckbox=N,d.wincombobox=z,d.windropdown=T,d.wininputbox=u,d.winitem=y,d.winnotifications=C,d.winpasswordbox=B,d.winprogressbar=M,d.winradio=S,d.winrange=R,d.winricheditbox=E,d.wintab=V,d.wintile=$,d.wintopappbar=F,d.winwindow=D,Object.defineProperties(d,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|