solely 0.5.8 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +82 -31
- package/dist/compiler/ir/buildIR.cjs +1 -1
- package/dist/compiler/ir/buildIR.js +1 -1
- package/dist/compiler/parser/parser.cjs +1 -1
- package/dist/compiler/parser/parser.js +1 -1
- package/dist/components/commands/drawer/index.cjs +1 -1
- package/dist/components/commands/drawer/index.js +1 -1
- package/dist/components/commands/drawer/style.css.cjs +1 -1
- package/dist/components/commands/drawer/style.css.js +1 -1
- package/dist/components/commands/message/index.cjs +1 -1
- package/dist/components/commands/message/index.js +1 -1
- package/dist/components/commands/modal/index.cjs +1 -1
- package/dist/components/commands/modal/index.js +1 -1
- package/dist/components/commands/modal/style.css.cjs +1 -1
- package/dist/components/commands/modal/style.css.js +1 -1
- package/dist/components/commands/popconfirm/index.cjs +1 -1
- package/dist/components/commands/popconfirm/index.js +1 -1
- package/dist/components/commands/tooltip/index.cjs +1 -1
- package/dist/components/commands/tooltip/index.js +1 -1
- package/dist/components/commands/utils.cjs +1 -1
- package/dist/components/commands/utils.js +1 -1
- package/dist/components/elements/alert/index.cjs +1 -1
- package/dist/components/elements/alert/index.html.cjs +1 -1
- package/dist/components/elements/alert/index.html.js +1 -1
- package/dist/components/elements/alert/index.js +1 -1
- package/dist/components/elements/backtop/index.cjs +1 -1
- package/dist/components/elements/backtop/index.html.cjs +1 -1
- package/dist/components/elements/backtop/index.html.js +1 -1
- package/dist/components/elements/backtop/index.js +1 -1
- package/dist/components/elements/badge/index.html.cjs +1 -1
- package/dist/components/elements/badge/index.html.js +1 -1
- package/dist/components/elements/breadcrumb/index.cjs +1 -1
- package/dist/components/elements/breadcrumb/index.html.cjs +1 -1
- package/dist/components/elements/breadcrumb/index.html.js +1 -1
- package/dist/components/elements/breadcrumb/index.js +1 -1
- package/dist/components/elements/button/index.cjs +1 -1
- package/dist/components/elements/button/index.html.cjs +1 -1
- package/dist/components/elements/button/index.html.js +1 -1
- package/dist/components/elements/button/index.js +1 -1
- package/dist/components/elements/card/index.html.cjs +1 -1
- package/dist/components/elements/card/index.html.js +1 -1
- package/dist/components/elements/checkbox/index.cjs +1 -1
- package/dist/components/elements/checkbox/index.html.cjs +1 -1
- package/dist/components/elements/checkbox/index.html.js +1 -1
- package/dist/components/elements/checkbox/index.js +1 -1
- package/dist/components/elements/coordinate-input/index.html.cjs +1 -1
- package/dist/components/elements/coordinate-input/index.html.js +1 -1
- package/dist/components/elements/coordinate-input/style.css.cjs +1 -1
- package/dist/components/elements/coordinate-input/style.css.js +1 -1
- package/dist/components/elements/fab/index.cjs +1 -1
- package/dist/components/elements/fab/index.html.cjs +1 -1
- package/dist/components/elements/fab/index.html.js +1 -1
- package/dist/components/elements/fab/index.js +1 -1
- package/dist/components/elements/icon/index.cjs +1 -1
- package/dist/components/elements/icon/index.d.ts +8 -0
- package/dist/components/elements/icon/index.html.cjs +1 -1
- package/dist/components/elements/icon/index.html.js +1 -1
- package/dist/components/elements/icon/index.js +1 -1
- package/dist/components/elements/input/index.cjs +1 -1
- package/dist/components/elements/input/index.html.cjs +1 -1
- package/dist/components/elements/input/index.html.js +1 -1
- package/dist/components/elements/input/index.js +1 -1
- package/dist/components/elements/not-found/index.html.cjs +1 -1
- package/dist/components/elements/not-found/index.html.js +1 -1
- package/dist/components/elements/not-found/style.css.cjs +1 -1
- package/dist/components/elements/not-found/style.css.js +1 -1
- package/dist/components/elements/pagination/index.html.cjs +1 -1
- package/dist/components/elements/pagination/index.html.js +1 -1
- package/dist/components/elements/pagination/style.css.cjs +1 -1
- package/dist/components/elements/pagination/style.css.js +1 -1
- package/dist/components/elements/progress/index.html.cjs +1 -1
- package/dist/components/elements/progress/index.html.js +1 -1
- package/dist/components/elements/radio/index.cjs +1 -1
- package/dist/components/elements/radio/index.html.cjs +1 -1
- package/dist/components/elements/radio/index.html.js +1 -1
- package/dist/components/elements/radio/index.js +1 -1
- package/dist/components/elements/rate/index.cjs +1 -1
- package/dist/components/elements/rate/index.html.cjs +1 -1
- package/dist/components/elements/rate/index.html.js +1 -1
- package/dist/components/elements/rate/index.js +1 -1
- package/dist/components/elements/select/index.cjs +1 -1
- package/dist/components/elements/select/index.html.cjs +1 -1
- package/dist/components/elements/select/index.html.js +1 -1
- package/dist/components/elements/select/index.js +1 -1
- package/dist/components/elements/skeleton/index.html.cjs +1 -1
- package/dist/components/elements/skeleton/index.html.js +1 -1
- package/dist/components/elements/slider/index.cjs +1 -1
- package/dist/components/elements/slider/index.html.cjs +1 -1
- package/dist/components/elements/slider/index.html.js +1 -1
- package/dist/components/elements/slider/index.js +1 -1
- package/dist/components/elements/steps/index.cjs +1 -1
- package/dist/components/elements/steps/index.html.cjs +1 -1
- package/dist/components/elements/steps/index.html.js +1 -1
- package/dist/components/elements/steps/index.js +1 -1
- package/dist/components/elements/switch/index.cjs +1 -1
- package/dist/components/elements/switch/index.html.cjs +1 -1
- package/dist/components/elements/switch/index.html.js +1 -1
- package/dist/components/elements/switch/index.js +1 -1
- package/dist/components/elements/table/index.html.cjs +1 -1
- package/dist/components/elements/table/index.html.js +1 -1
- package/dist/components/elements/tabs/index.html.cjs +1 -1
- package/dist/components/elements/tabs/index.html.js +1 -1
- package/dist/components/elements/tag/index.html.cjs +1 -1
- package/dist/components/elements/tag/index.html.js +1 -1
- package/dist/components/elements/timeline/index.cjs +1 -1
- package/dist/components/elements/timeline/index.html.cjs +1 -1
- package/dist/components/elements/timeline/index.html.js +1 -1
- package/dist/components/elements/timeline/index.js +1 -1
- package/dist/components/elements/tooltip/index.cjs +1 -1
- package/dist/components/elements/tooltip/index.html.cjs +1 -1
- package/dist/components/elements/tooltip/index.html.js +1 -1
- package/dist/components/elements/tooltip/index.js +1 -1
- package/dist/components/elements/tree/index.cjs +1 -1
- package/dist/components/elements/tree/index.d.ts +5 -0
- package/dist/components/elements/tree/index.html.cjs +1 -1
- package/dist/components/elements/tree/index.html.js +1 -1
- package/dist/components/elements/tree/index.js +1 -1
- package/dist/components/elements/upload/index.cjs +1 -1
- package/dist/components/elements/upload/index.html.cjs +1 -1
- package/dist/components/elements/upload/index.html.js +1 -1
- package/dist/components/elements/upload/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/plugins/solely-vite-plugin.cjs +1 -1
- package/dist/plugins/solely-vite-plugin.d.ts +10 -1
- package/dist/plugins/solely-vite-plugin.js +1 -1
- package/dist/router/core.cjs +1 -1
- package/dist/router/core.js +1 -1
- package/dist/router/router-link.cjs +1 -1
- package/dist/router/router-link.js +1 -1
- package/dist/router/router-view.cjs +1 -1
- package/dist/router/router-view.js +1 -1
- package/dist/runtime/component/base-element.cjs +1 -1
- package/dist/runtime/component/base-element.d.ts +8 -1
- package/dist/runtime/component/base-element.js +1 -1
- package/dist/runtime/component/decorators.cjs +1 -1
- package/dist/runtime/component/decorators.d.ts +7 -0
- package/dist/runtime/component/decorators.js +1 -1
- package/dist/runtime/reactivity/observe.cjs +1 -1
- package/dist/runtime/reactivity/observe.d.ts +1 -0
- package/dist/runtime/reactivity/observe.js +1 -1
- package/dist/runtime/renderer/html-decode.cjs +1 -1
- package/dist/runtime/renderer/html-decode.js +1 -1
- package/dist/runtime/renderer/renderIR.cjs +1 -1
- package/dist/runtime/renderer/renderIR.js +1 -1
- package/dist/shared/env.cjs +1 -1
- package/dist/shared/env.js +1 -1
- package/dist/shared/functions.d.ts +2 -2
- package/dist/shared/gen-function.cjs +1 -1
- package/dist/shared/gen-function.js +1 -1
- package/dist/shared/index.cjs +1 -1
- package/dist/shared/index.d.ts +1 -0
- package/dist/shared/index.js +1 -1
- package/dist/shared/svg-sanitize.cjs +1 -0
- package/dist/shared/svg-sanitize.d.ts +27 -0
- package/dist/shared/svg-sanitize.js +1 -0
- package/dist/shared/templateError.cjs +1 -1
- package/dist/shared/templateError.js +1 -1
- package/dist/types/ir.d.ts +2 -2
- package/package.json +19 -14
|
@@ -1 +1 @@
|
|
|
1
|
-
const t={t:"root",v:"1.2.0",fns:[function(t){const{$data:a}=this;return this.getWrapperClasses()},function(t){const{$data:a}=this;return this.hasPrefixSlot()},function(t){const{$data:a}=this;return a.prefix},function(t){const{$data:a}=this;return`${a.prefix}`},function(t){const{$data:a}=this;return"textarea"===a.type},function(t){const{$data:a}=this;return a.value},function(t){const{$data:a}=this;return a.placeholder},function(t){const{$data:a}=this;return a.disabled},function(t){const{$data:a}=this;return a.readonly},function(t){const{$data:a}=this;return a.maxlength},function(t){const{$data:a}=this;return a.minlength},function(t){const{$data:a}=this;return a.rows},function(t){const{$data:a}=this;return a.disabled?"true":"false"},function(t){const{$data:a}=this;return a.readonly?"true":"false"},function(t){const{$data:a}=this;return"error"===a.status?"true":"false"},function(t,a){const{$data:n}=this,{value:s,checked:d}=
|
|
1
|
+
const t={t:"root",v:"1.2.0",fns:[function(t){const{$data:a}=this;return this.getWrapperClasses()},function(t){const{$data:a}=this;return this.hasPrefixSlot()},function(t){const{$data:a}=this;return a.prefix},function(t){const{$data:a}=this;return`${a.prefix}`},function(t){const{$data:a}=this;return"textarea"===a.type},function(t){const{$data:a}=this;return a.value},function(t){const{$data:a}=this;return a.placeholder},function(t){const{$data:a}=this;return a.disabled},function(t){const{$data:a}=this;return a.readonly},function(t){const{$data:a}=this;return a.maxlength},function(t){const{$data:a}=this;return a.minlength},function(t){const{$data:a}=this;return a.rows},function(t){const{$data:a}=this;return a.disabled?"true":"false"},function(t){const{$data:a}=this;return a.readonly?"true":"false"},function(t){const{$data:a}=this;return"error"===a.status?"true":"false"},function(t,a){const{$data:n}=this,{value:s,checked:d}=t?.target||{};this.handleInput(t)},function(t,a){const{$data:n}=this,{value:s,checked:d}=t?.target||{};this.handleFocus(t)},function(t,a){const{$data:n}=this,{value:s,checked:d}=t?.target||{};this.handleBlur(t)},function(t,a){const{$data:n}=this,{value:s,checked:d}=t?.target||{};this.handleChange(t)},function(t,a){const{$data:n}=this,{value:s,checked:d}=t?.target||{};this.handleKeydown(t)},function(t){const{$data:a}=this;return a.passwordVisible&&"password"===a.type?"text":a.type},function(t){const{$data:a}=this;return a.clearable&&a.value&&!a.disabled},function(t,a){const{$data:n}=this,{value:s,checked:d}=t?.target||{};this.handleClear(t)},function(t){const{$data:a}=this;return"password"===a.type&&a.showpassword},function(t,a){const{$data:n}=this,{value:s,checked:d}=t?.target||{};this.togglePassword(t)},function(t){const{$data:a}=this;return a.passwordVisible?"🙈":"👁"},function(t){const{$data:a}=this;return a.copyable&&a.value},function(t,a){const{$data:n}=this,{value:s,checked:d}=t?.target||{};this.handleCopy(t)},function(t){const{$data:a}=this;return this.hasSuffixSlot()},function(t){const{$data:a}=this;return a.suffix},function(t){const{$data:a}=this;return`${a.suffix}`},function(t){const{$data:a}=this;return a.suggestions&&a.suggestions.length>0&&this.filteredSuggestions&&this.filteredSuggestions.length>0},function(t){const{$data:a}=this;return this.filteredSuggestions},function(t,a){const{$data:n}=this,{value:s,checked:d}=t?.target||{};var[c]=a.map(t=>t.itmVal),[o]=a.map(t=>t.idxVal);this.selectSuggestion(c)},function(t){const{$data:a}=this;var[n]=t.map(t=>t.itmVal),[s]=t.map(t=>t.idxVal);return`${n}`},function(t){const{$data:a}=this;return a.showcount&&a.maxlength},function(t){const{$data:a}=this;return`${this.getCharCount()}`},function(t){const{$data:a}=this;return`${a.maxlength}`},function(t){const{$data:a}=this;return a.message},function(t){const{$data:a}=this;return`${a.message}`}],n:[{t:0,d:1,g:"div",a:[{k:"part",v:"base",d:0},{k:"class",v:"form-control",d:0},{k:":class",f:1,d:1}],c:[{t:2,d:0,x:" prefix 插槽 "},{t:1,d:0,s:1,x:" "},{t:7,d:1,b:[{f:2,c:[{t:0,d:0,s:1,g:"span",a:[{k:"part",v:"prefix",d:0},{k:"class",v:"form-control__prefix",d:0}],c:[{t:0,d:0,s:1,g:"slot",a:[{k:"name",v:"prefix",d:0}],c:[]}]}]},{f:3,c:[{t:0,d:0,g:"span",a:[{k:"part",v:"prefix",d:0},{k:"class",v:"form-control__prefix",d:0}],c:[{t:1,d:1,f:4}]}]}]},{t:1,d:0,s:1,x:" "},{t:7,d:1,b:[{f:5,c:[{t:0,d:1,g:"textarea",a:[{k:"part",v:"input",d:0},{k:"class",v:"form-control__input form-control__textarea",d:0},{k:":value",f:6,d:1},{k:":placeholder",f:7,d:1},{k:":disabled",f:8,d:1},{k:":readonly",f:9,d:1},{k:":maxlength",f:10,d:1},{k:":minlength",f:11,d:1},{k:":rows",f:12,d:1},{k:":aria-disabled",f:13,d:1},{k:":aria-readonly",f:14,d:1},{k:":aria-invalid",f:15,d:1},{k:"@input",f:16,d:1},{k:"@focus",f:17,d:1},{k:"@blur",f:18,d:1},{k:"@change",f:19,d:1},{k:"@keydown",f:20,d:1}],c:[]}]},{f:null,c:[{t:0,d:1,g:"input",a:[{k:"part",v:"input",d:0},{k:"class",v:"form-control__input",d:0},{k:":type",f:21,d:1},{k:":value",f:6,d:1},{k:":placeholder",f:7,d:1},{k:":disabled",f:8,d:1},{k:":readonly",f:9,d:1},{k:":maxlength",f:10,d:1},{k:":minlength",f:11,d:1},{k:":aria-disabled",f:13,d:1},{k:":aria-readonly",f:14,d:1},{k:":aria-invalid",f:15,d:1},{k:"@input",f:16,d:1},{k:"@focus",f:17,d:1},{k:"@blur",f:18,d:1},{k:"@change",f:19,d:1},{k:"@keydown",f:20,d:1}],c:[]}]}]},{t:1,d:0,s:1,x:" "},{t:7,d:1,b:[{f:22,c:[{t:0,d:1,g:"span",a:[{k:"part",v:"clear",d:0},{k:"class",v:"close-btn form-control__clear",d:0},{k:"@click",f:23,d:1}],c:[{t:1,d:0,s:1,x:"×"}]}]},{f:24,c:[{t:0,d:1,g:"span",a:[{k:"part",v:"password-toggle",d:0},{k:"class",v:"form-control__password-toggle",d:0},{k:"@click",f:25,d:1}],c:[{t:1,d:1,f:26}]}]},{f:27,c:[{t:0,d:1,g:"span",a:[{k:"part",v:"copy",d:0},{k:"class",v:"form-control__copy",d:0},{k:"@click",f:28,d:1}],c:[{t:1,d:0,s:1,x:"📋"}]}]},{f:29,c:[{t:0,d:0,s:1,g:"span",a:[{k:"part",v:"suffix",d:0},{k:"class",v:"form-control__suffix",d:0}],c:[{t:0,d:0,s:1,g:"slot",a:[{k:"name",v:"suffix",d:0}],c:[]}]}]},{f:30,c:[{t:0,d:0,g:"span",a:[{k:"part",v:"suffix",d:0},{k:"class",v:"form-control__suffix",d:0}],c:[{t:1,d:1,f:31}]}]}]},{t:1,d:0,s:1,x:" "},{t:7,d:1,b:[{f:32,c:[{t:0,d:0,g:"div",a:[{k:"part",v:"dropdown",d:0},{k:"class",v:"dropdown",d:0}],c:[{t:6,d:1,f:33,i:"suggestion",n:"index",a:[],c:[{t:0,d:1,g:"div",a:[{k:"part",v:"dropdown-item",d:0},{k:"class",v:"dropdown__item",d:0},{k:"@click",f:34,d:1}],c:[{t:1,d:1,f:35}]}]}]}]}]}]},{t:7,d:1,b:[{f:36,c:[{t:0,d:0,g:"div",a:[{k:"part",v:"count",d:0},{k:"class",v:"form-control__count",d:0}],c:[{t:0,d:0,g:"span",a:[{k:"class",v:"form-control__count-current",d:0}],c:[{t:1,d:1,f:37}]},{t:1,d:0,s:1,x:" "},{t:0,d:0,s:1,g:"span",a:[{k:"class",v:"form-control__count-separator",d:0}],c:[{t:1,d:0,s:1,x:"/"}]},{t:1,d:0,s:1,x:" "},{t:0,d:0,g:"span",a:[{k:"class",v:"form-control__count-max",d:0}],c:[{t:1,d:1,f:38}]}]}]}]},{t:1,d:0,s:1,x:" "},{t:7,d:1,b:[{f:39,c:[{t:0,d:0,g:"div",a:[{k:"part",v:"message",d:0},{k:"class",v:"form-control__message form-control__message--{{$data.status || 'default'}}",d:0}],c:[{t:1,d:1,f:40}]}]}]}],s:{tf:40,cf:40,dn:3,tn:4,sn:1}};export{t as __SOLELY_IR__,t as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import e from"./style.css.js";import{__SOLELY_IR__ as t}from"./index.html.js";import a from"../../../runtime/component/base-element.js";import{CustomElement as s}from"../../../runtime/component/decorators.js";Object.getOwnPropertyDescriptor;let r=class extends a{_filteredSuggestions=[];inputElement;searchDebounceTimer;get filteredSuggestions(){return this._filteredSuggestions}mounted(){this.refresh(),this.inputElement=this.shadowRoot?.querySelector("input, textarea"),this.$data.autofocus&&this.focus()}unmounted(){this.searchDebounceTimer&&(clearTimeout(this.searchDebounceTimer),this.searchDebounceTimer=void 0)}hasPrefixSlot(){return null!==this.querySelector('[slot="prefix"]')}hasSuffixSlot(){return null!==this.querySelector('[slot="suffix"]')}getWrapperClasses(){const e={};return"small"===this.$data.size?e["form-control--sm"]=!0:"large"===this.$data.size&&(e["form-control--lg"]=!0),"error"===this.$data.status?e["is-error"]=!0:"warning"===this.$data.status?e["is-warning"]=!0:"success"===this.$data.status&&(e["is-success"]=!0),"textarea"===this.$data.type&&(e["form-control--textarea"]=!0),e["is-focused"]=!!this.$data.focused,e["is-disabled"]=!!this.$data.disabled,e["is-readonly"]=!!this.$data.readonly,e["form-control--block"]=!!this.$data.block,e}getCharCount(){return this.$data.value?.length||0}formatValue(e){if(!e)return"";switch(this.$data.format){case"phone":return e.replace(/(\d{3})(\d{4})(\d{4})/,"$1 $2 $3").trim();case"bankcard":return e.replace(/(\d{4})(?=\d)/g,"$1 ").trim();case"idcard":return e.replace(/(\d{6})(\d{4})(\d{4})(\d{4})(\d{0,4})/,"$1 $2 $3 $4 $5").trim();default:return e}}unformatValue(e){return e?e.replace(/\s/g,""):""}handleInput(e){const t=e.target;let a=t.value;if("none"!==this.$data.format&&"textarea"!==this.$data.type){const e=this.unformatValue(a),s=this.formatValue(e);s!==a&&(t.value=s,a=s)}this.$data.value=a,this.$data.suggestions&&this.$data.suggestions.length>0&&this.updateSuggestions(a)}handleFocus(e){this.$data.focused=!0,this.$data.selectall&&this.$data.value&&this.select()}handleBlur(e){this.$data.focused=!1}handleChange(e){this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}handleKeydown(e){"Enter"===e.key&&"search"===this.$data.type&&this.emit("search",{value:this.$data.value})}handleClear(){this.$data.value="",this.dispatchEvent(new Event("clear",{bubbles:!0,composed:!0})),this.focus()}togglePassword(){this.$data.passwordVisible=!this.$data.passwordVisible}async handleCopy(){try{const e=this.unformatValue(this.$data.value);await navigator.clipboard.writeText(e),this.emit("copy",{value:e})}catch(e){this.emit("copy-error",{error:e})}}updateSuggestions(e){this.searchDebounceTimer&&clearTimeout(this.searchDebounceTimer),this.searchDebounceTimer=setTimeout(()=>{this._updateSuggestionsImpl(e),this.searchDebounceTimer=void 0},300)}_updateSuggestionsImpl(e){if(!e||!this.$data.suggestions)return this._filteredSuggestions=[],void this.refresh();this._filteredSuggestions=this.$data.suggestions.filter(t=>t.toLowerCase().includes(e.toLowerCase())),this.refresh()}selectSuggestion(e){this.$data.value=e,this._filteredSuggestions=[],this.refresh(),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}focus(){const e=this.inputElement||this.shadowRoot?.querySelector("input, textarea");e?.focus(),this.$data.focused=!0}blur(){const e=this.inputElement||this.shadowRoot?.querySelector("input, textarea");e?.blur(),this.$data.focused=!1}setValue(e){this.$data.value=e}getValue(){return this.unformatValue(this.$data.value)}get value(){return this.getValue()}set value(e){this.setValue(e)}select(){const e=this.inputElement||this.shadowRoot?.querySelector("input, textarea");e?.select()}};r=((e,t)=>{for(var a,s=t,r=e.length-1;r>=0;r--)(a=e[r])&&(s=a(s)||s);return s})([s({tagName:"solely-input",template:t,styles:e,shadowDOM:{use:!0,mode:"open"},props:[{name:"type",type:"string",default:"text"},{name:"size",type:"string",default:"medium"},{name:"value",type:"string",default:""},{name:"placeholder",type:"string",default:""},{name:"disabled",type:"boolean",default:!1},{name:"readonly",type:"boolean",default:!1},{name:"required",type:"boolean",default:!1},{name:"maxlength",type:"number"},{name:"minlength",type:"number"},{name:"clearable",type:"boolean",default:!1},{name:"showpassword",type:"boolean",default:!1},{name:"passwordVisible",type:"boolean",default:!1},{name:"focused",type:"boolean",default:!1},{name:"prefix",type:"string",default:""},{name:"suffix",type:"string",default:""},{name:"status",type:"string",default:""},{name:"message",type:"string",default:""},{name:"showcount",type:"boolean",default:!1},{name:"rows",type:"number",default:3},{name:"autofocus",type:"boolean",default:!1},{name:"selectall",type:"boolean",default:!1},{name:"copyable",type:"boolean",default:!1},{name:"format",type:"string",default:"none"},{name:"suggestions",type:"array",default:[]},{name:"block",type:"boolean",default:!1}]})],r);export{r as SolelyInput};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t={t:"root",v:"1.2.0",fns:[function(t){const{$data:d}=this;return{"not-found--embedded":d.embedbed}},function(t){const{$data:d}=this;return`${d.title}`},function(t){const{$data:d}=this;return`${d.subtitle}`},function(t){const{$data:d}=this;return`${d.description}`},function(t,d){const{$data:n}=this,{value:o,checked:s}=
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t={t:"root",v:"1.2.0",fns:[function(t){const{$data:d}=this;return{"not-found--embedded":d.embedbed}},function(t){const{$data:d}=this;return`${d.title}`},function(t){const{$data:d}=this;return`${d.subtitle}`},function(t){const{$data:d}=this;return`${d.description}`},function(t,d){const{$data:n}=this,{value:o,checked:s}=t?.target||{};this.handleBack()},function(t){const{$data:d}=this;return` ${d.backText}`}],n:[{t:0,d:1,g:"div",a:[{k:"part",v:"base",d:0},{k:"class",v:"not-found",d:0},{k:":class",f:1,d:1}],c:[{t:0,d:0,g:"div",a:[{k:"part",v:"container",d:0},{k:"class",v:"not-found__container",d:0}],c:[{t:2,d:0,x:" 404 数字动画 "},{t:0,d:0,s:1,g:"div",a:[{k:"part",v:"numbers",d:0},{k:"class",v:"not-found__numbers",d:0}],c:[{t:0,d:0,s:1,g:"span",a:[{k:"part",v:"number",d:0},{k:"class",v:"not-found__number",d:0}],c:[{t:1,d:0,s:1,x:"4"}]},{t:0,d:0,s:1,g:"div",a:[{k:"part",v:"icon-wrapper",d:0},{k:"class",v:"not-found__icon-wrapper",d:0}],c:[{t:0,d:0,s:1,g:"svg",a:[{k:"part",v:"icon",d:0},{k:"class",v:"not-found__icon",d:0},{k:"viewBox",v:"0 0 24 24",d:0},{k:"fill",v:"none",d:0},{k:"stroke",v:"currentColor",d:0},{k:"stroke-width",v:"2",d:0}],c:[{t:0,d:0,s:1,g:"circle",a:[{k:"cx",v:"12",d:0},{k:"cy",v:"12",d:0},{k:"r",v:"10",d:0}],c:[]},{t:1,d:0,s:1,x:" "},{t:0,d:0,s:1,g:"line",a:[{k:"x1",v:"12",d:0},{k:"y1",v:"8",d:0},{k:"x2",v:"12",d:0},{k:"y2",v:"12",d:0}],c:[]},{t:1,d:0,s:1,x:" "},{t:0,d:0,s:1,g:"line",a:[{k:"x1",v:"12",d:0},{k:"y1",v:"16",d:0},{k:"x2",v:"12.01",d:0},{k:"y2",v:"16",d:0}],c:[]}]}]},{t:0,d:0,s:1,g:"span",a:[{k:"part",v:"number",d:0},{k:"class",v:"not-found__number",d:0}],c:[{t:1,d:0,s:1,x:"4"}]}]},{t:2,d:0,x:" 文字内容 "},{t:0,d:0,g:"h1",a:[{k:"part",v:"title",d:0},{k:"class",v:"not-found__title",d:0}],c:[{t:1,d:1,f:2}]},{t:0,d:0,g:"h2",a:[{k:"part",v:"subtitle",d:0},{k:"class",v:"not-found__subtitle",d:0}],c:[{t:1,d:1,f:3}]},{t:0,d:0,g:"p",a:[{k:"part",v:"description",d:0},{k:"class",v:"not-found__description",d:0}],c:[{t:1,d:1,f:4}]},{t:2,d:0,x:" 返回按钮 "},{t:1,d:0,s:1,x:" "},{t:0,d:1,g:"button",a:[{k:"part",v:"button",d:0},{k:"class",v:"not-found__button",d:0},{k:"@click",f:5,d:1}],c:[{t:0,d:0,s:1,g:"svg",a:[{k:"part",v:"button-icon",d:0},{k:"class",v:"not-found__button-icon",d:0},{k:"viewBox",v:"0 0 24 24",d:0},{k:"fill",v:"none",d:0},{k:"stroke",v:"currentColor",d:0},{k:"stroke-width",v:"2",d:0}],c:[{t:0,d:0,s:1,g:"line",a:[{k:"x1",v:"19",d:0},{k:"y1",v:"12",d:0},{k:"x2",v:"5",d:0},{k:"y2",v:"12",d:0}],c:[]},{t:1,d:0,s:1,x:" "},{t:0,d:0,s:1,g:"polyline",a:[{k:"points",v:"12 19 5 12 12 5",d:0}],c:[]}]},{t:1,d:1,f:6}]}]},{t:2,d:0,x:" 装饰性背景元素 "},{t:0,d:0,s:1,g:"div",a:[{k:"part",v:"bg-decoration",d:0},{k:"class",v:"not-found__bg-decoration not-found__bg-decoration--1",d:0}],c:[]},{t:0,d:0,s:1,g:"div",a:[{k:"part",v:"bg-decoration",d:0},{k:"class",v:"not-found__bg-decoration not-found__bg-decoration--2",d:0}],c:[]},{t:0,d:0,s:1,g:"div",a:[{k:"part",v:"bg-decoration",d:0},{k:"class",v:"not-found__bg-decoration not-found__bg-decoration--3",d:0}],c:[]}]}],s:{tf:6,cf:6,dn:1,tn:1,sn:0}};exports.__SOLELY_IR__=t,exports.default=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const t={t:"root",v:"1.2.0",fns:[function(t){const{$data:d}=this;return{"not-found--embedded":d.embedbed}},function(t){const{$data:d}=this;return`${d.title}`},function(t){const{$data:d}=this;return`${d.subtitle}`},function(t){const{$data:d}=this;return`${d.description}`},function(t,d){const{$data:n}=this,{value:o,checked:
|
|
1
|
+
const t={t:"root",v:"1.2.0",fns:[function(t){const{$data:d}=this;return{"not-found--embedded":d.embedbed}},function(t){const{$data:d}=this;return`${d.title}`},function(t){const{$data:d}=this;return`${d.subtitle}`},function(t){const{$data:d}=this;return`${d.description}`},function(t,d){const{$data:n}=this,{value:o,checked:s}=t?.target||{};this.handleBack()},function(t){const{$data:d}=this;return` ${d.backText}`}],n:[{t:0,d:1,g:"div",a:[{k:"part",v:"base",d:0},{k:"class",v:"not-found",d:0},{k:":class",f:1,d:1}],c:[{t:0,d:0,g:"div",a:[{k:"part",v:"container",d:0},{k:"class",v:"not-found__container",d:0}],c:[{t:2,d:0,x:" 404 数字动画 "},{t:0,d:0,s:1,g:"div",a:[{k:"part",v:"numbers",d:0},{k:"class",v:"not-found__numbers",d:0}],c:[{t:0,d:0,s:1,g:"span",a:[{k:"part",v:"number",d:0},{k:"class",v:"not-found__number",d:0}],c:[{t:1,d:0,s:1,x:"4"}]},{t:0,d:0,s:1,g:"div",a:[{k:"part",v:"icon-wrapper",d:0},{k:"class",v:"not-found__icon-wrapper",d:0}],c:[{t:0,d:0,s:1,g:"svg",a:[{k:"part",v:"icon",d:0},{k:"class",v:"not-found__icon",d:0},{k:"viewBox",v:"0 0 24 24",d:0},{k:"fill",v:"none",d:0},{k:"stroke",v:"currentColor",d:0},{k:"stroke-width",v:"2",d:0}],c:[{t:0,d:0,s:1,g:"circle",a:[{k:"cx",v:"12",d:0},{k:"cy",v:"12",d:0},{k:"r",v:"10",d:0}],c:[]},{t:1,d:0,s:1,x:" "},{t:0,d:0,s:1,g:"line",a:[{k:"x1",v:"12",d:0},{k:"y1",v:"8",d:0},{k:"x2",v:"12",d:0},{k:"y2",v:"12",d:0}],c:[]},{t:1,d:0,s:1,x:" "},{t:0,d:0,s:1,g:"line",a:[{k:"x1",v:"12",d:0},{k:"y1",v:"16",d:0},{k:"x2",v:"12.01",d:0},{k:"y2",v:"16",d:0}],c:[]}]}]},{t:0,d:0,s:1,g:"span",a:[{k:"part",v:"number",d:0},{k:"class",v:"not-found__number",d:0}],c:[{t:1,d:0,s:1,x:"4"}]}]},{t:2,d:0,x:" 文字内容 "},{t:0,d:0,g:"h1",a:[{k:"part",v:"title",d:0},{k:"class",v:"not-found__title",d:0}],c:[{t:1,d:1,f:2}]},{t:0,d:0,g:"h2",a:[{k:"part",v:"subtitle",d:0},{k:"class",v:"not-found__subtitle",d:0}],c:[{t:1,d:1,f:3}]},{t:0,d:0,g:"p",a:[{k:"part",v:"description",d:0},{k:"class",v:"not-found__description",d:0}],c:[{t:1,d:1,f:4}]},{t:2,d:0,x:" 返回按钮 "},{t:1,d:0,s:1,x:" "},{t:0,d:1,g:"button",a:[{k:"part",v:"button",d:0},{k:"class",v:"not-found__button",d:0},{k:"@click",f:5,d:1}],c:[{t:0,d:0,s:1,g:"svg",a:[{k:"part",v:"button-icon",d:0},{k:"class",v:"not-found__button-icon",d:0},{k:"viewBox",v:"0 0 24 24",d:0},{k:"fill",v:"none",d:0},{k:"stroke",v:"currentColor",d:0},{k:"stroke-width",v:"2",d:0}],c:[{t:0,d:0,s:1,g:"line",a:[{k:"x1",v:"19",d:0},{k:"y1",v:"12",d:0},{k:"x2",v:"5",d:0},{k:"y2",v:"12",d:0}],c:[]},{t:1,d:0,s:1,x:" "},{t:0,d:0,s:1,g:"polyline",a:[{k:"points",v:"12 19 5 12 12 5",d:0}],c:[]}]},{t:1,d:1,f:6}]}]},{t:2,d:0,x:" 装饰性背景元素 "},{t:0,d:0,s:1,g:"div",a:[{k:"part",v:"bg-decoration",d:0},{k:"class",v:"not-found__bg-decoration not-found__bg-decoration--1",d:0}],c:[]},{t:0,d:0,s:1,g:"div",a:[{k:"part",v:"bg-decoration",d:0},{k:"class",v:"not-found__bg-decoration not-found__bg-decoration--2",d:0}],c:[]},{t:0,d:0,s:1,g:"div",a:[{k:"part",v:"bg-decoration",d:0},{k:"class",v:"not-found__bg-decoration not-found__bg-decoration--3",d:0}],c:[]}]}],s:{tf:6,cf:6,dn:1,tn:1,sn:0}};export{t as __SOLELY_IR__,t as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),exports.default='*,*:before,*:after{box-sizing:border-box}:host{display:flex;width:100%;min-height:100vh;align-items:center;justify-content:center;font-family:var(--solely-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);background:linear-gradient(135deg,var(--solely-gray-3, #f5f7fa) 0%,var(--solely-gray-5, #c3cfe2) 100%);position:relative;overflow:hidden}.not-found{display:flex;align-items:center;justify-content:center;width:100%;padding:var(--solely-spacing-xl, 32px);position:relative;z-index:var(--solely-z-index-base, 1)}.not-found__container{display:flex;flex-direction:column;align-items:center;text-align:center;max-width:500px;animation:fadeInUp .6s ease-out}.not-found__numbers{display:flex;align-items:center;justify-content:center;gap:16px;margin-bottom:24px}.not-found__number{font-size:120px;font-weight:800;line-height:1;background:linear-gradient(135deg,var(--solely-primary, #1890ff) 0%,var(--solely-primary-hover, #40a9ff) 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;animation:float 3s ease-in-out infinite;text-shadow:none}.not-found__number:first-child{animation-delay:0s}.not-found__number:last-child{animation-delay:.5s}.not-found__icon-wrapper{width:80px;height:80px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--solely-error, #ff6b6b) 0%,var(--solely-error-hover, #ee5a6f) 100%);border-radius:50%;animation:pulse 2s ease-in-out infinite,float 3s ease-in-out infinite;animation-delay:.25s,.25s;box-shadow:0 8px 32px #ee5a6f4d}.not-found__icon{width:40px;height:40px;color:var(--solely-white, #ffffff)}.not-found__title{font-size:48px;font-weight:700;color:var(--solely-text-primary, #262626);margin:0 0 8px;line-height:1.2}.not-found__subtitle{font-size:20px;font-weight:500;color:var(--solely-text-secondary, #595959);margin:0 0 16px;line-height:1.4}.not-found__description{font-size:14px;color:var(--solely-text-tertiary, #8c8c8c);margin:0 0 32px;line-height:1.6;max-width:400px}.not-found__button{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 28px;font-size:15px;font-weight:500;color:var(--solely-white, #ffffff);background:linear-gradient(135deg,var(--solely-primary, #1890ff) 0%,var(--solely-primary-hover, #40a9ff) 100%);border:none;border-radius:22px;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 16px #1890ff4d;outline:none}.not-found__button:hover{transform:translateY(-2px);box-shadow:0 6px 24px #1890ff66}.not-found__button:active{transform:translateY(0)}.not-found__button-icon{width:18px;height:18px;transition:transform .3s ease}.not-found__button:hover .not-found__button-icon{transform:translate(-3px)}.not-found__bg-decoration{position:absolute;border-radius:50%;opacity:.1;pointer-events:none}.not-found__bg-decoration--1{width:300px;height:300px;background:var(--solely-primary, #1890ff);top:-100px;right:-100px;animation:float 8s ease-in-out infinite}.not-found__bg-decoration--2{width:200px;height:200px;background:var(--solely-error, #ff6b6b);bottom:-50px;left:-50px;animation:float 6s ease-in-out infinite reverse}.not-found__bg-decoration--3{width:150px;height:150px;background:var(--solely-success, #52c41a);top:50%;right:10%;animation:float 10s ease-in-out infinite;animation-delay:-2s}@keyframes fadeInUp{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}@keyframes float{0%,to{transform:translateY(0)}50%{transform:translateY(-10px)}}@keyframes pulse{0%,to{transform:scale(1)}50%{transform:scale(1.05)}}@media
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),exports.default='*,*:before,*:after{box-sizing:border-box}:host{display:flex;width:100%;min-height:100vh;align-items:center;justify-content:center;font-family:var(--solely-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);background:linear-gradient(135deg,var(--solely-gray-3, #f5f7fa) 0%,var(--solely-gray-5, #c3cfe2) 100%);position:relative;overflow:hidden}.not-found{display:flex;align-items:center;justify-content:center;width:100%;padding:var(--solely-spacing-xl, 32px);position:relative;z-index:var(--solely-z-index-base, 1)}.not-found__container{display:flex;flex-direction:column;align-items:center;text-align:center;max-width:500px;animation:fadeInUp .6s ease-out}.not-found__numbers{display:flex;align-items:center;justify-content:center;gap:16px;margin-bottom:24px}.not-found__number{font-size:120px;font-weight:800;line-height:1;background:linear-gradient(135deg,var(--solely-primary, #1890ff) 0%,var(--solely-primary-hover, #40a9ff) 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;animation:float 3s ease-in-out infinite;text-shadow:none}.not-found__number:first-child{animation-delay:0s}.not-found__number:last-child{animation-delay:.5s}.not-found__icon-wrapper{width:80px;height:80px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--solely-error, #ff6b6b) 0%,var(--solely-error-hover, #ee5a6f) 100%);border-radius:50%;animation:pulse 2s ease-in-out infinite,float 3s ease-in-out infinite;animation-delay:.25s,.25s;box-shadow:0 8px 32px #ee5a6f4d}.not-found__icon{width:40px;height:40px;color:var(--solely-white, #ffffff)}.not-found__title{font-size:48px;font-weight:700;color:var(--solely-text-primary, #262626);margin:0 0 8px;line-height:1.2}.not-found__subtitle{font-size:20px;font-weight:500;color:var(--solely-text-secondary, #595959);margin:0 0 16px;line-height:1.4}.not-found__description{font-size:14px;color:var(--solely-text-tertiary, #8c8c8c);margin:0 0 32px;line-height:1.6;max-width:400px}.not-found__button{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 28px;font-size:15px;font-weight:500;color:var(--solely-white, #ffffff);background:linear-gradient(135deg,var(--solely-primary, #1890ff) 0%,var(--solely-primary-hover, #40a9ff) 100%);border:none;border-radius:22px;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 16px #1890ff4d;outline:none}.not-found__button:hover{transform:translateY(-2px);box-shadow:0 6px 24px #1890ff66}.not-found__button:active{transform:translateY(0)}.not-found__button-icon{width:18px;height:18px;transition:transform .3s ease}.not-found__button:hover .not-found__button-icon{transform:translate(-3px)}.not-found__bg-decoration{position:absolute;border-radius:50%;opacity:.1;pointer-events:none}.not-found__bg-decoration--1{width:300px;height:300px;background:var(--solely-primary, #1890ff);top:-100px;right:-100px;animation:float 8s ease-in-out infinite}.not-found__bg-decoration--2{width:200px;height:200px;background:var(--solely-error, #ff6b6b);bottom:-50px;left:-50px;animation:float 6s ease-in-out infinite reverse}.not-found__bg-decoration--3{width:150px;height:150px;background:var(--solely-success, #52c41a);top:50%;right:10%;animation:float 10s ease-in-out infinite;animation-delay:-2s}@keyframes fadeInUp{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}@keyframes float{0%,to{transform:translateY(0)}50%{transform:translateY(-10px)}}@keyframes pulse{0%,to{transform:scale(1)}50%{transform:scale(1.05)}}@media(max-width:576px){.not-found__number{font-size:80px}.not-found__icon-wrapper{width:60px;height:60px}.not-found__icon{width:30px;height:30px}.not-found__title{font-size:36px}.not-found__subtitle{font-size:18px}.not-found__description{font-size:13px}.not-found__numbers{gap:12px}}:host([embedded]){min-height:auto;background:var(--docs-bg-secondary, #f5f5f5)}.not-found--embedded{padding:var(--solely-spacing-lg, 24px)}.not-found--embedded .not-found__container{max-width:400px;animation:fadeInUp .4s ease-out}.not-found--embedded .not-found__number{font-size:64px}.not-found--embedded .not-found__icon-wrapper{width:48px;height:48px;box-shadow:0 4px 16px #ee5a6f33}.not-found--embedded .not-found__icon{width:24px;height:24px}.not-found--embedded .not-found__title{font-size:28px;margin-bottom:4px}.not-found--embedded .not-found__subtitle{font-size:16px;margin-bottom:12px}.not-found--embedded .not-found__description{font-size:13px;margin-bottom:20px}.not-found--embedded .not-found__button{height:36px;padding:0 20px;font-size:13px;border-radius:18px;box-shadow:0 2px 8px #1890ff40}.not-found--embedded .not-found__button-icon{width:14px;height:14px}.not-found--embedded .not-found__numbers{gap:10px;margin-bottom:16px}.not-found--embedded .not-found__bg-decoration{display:none}';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const n='*,*:before,*:after{box-sizing:border-box}:host{display:flex;width:100%;min-height:100vh;align-items:center;justify-content:center;font-family:var(--solely-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);background:linear-gradient(135deg,var(--solely-gray-3, #f5f7fa) 0%,var(--solely-gray-5, #c3cfe2) 100%);position:relative;overflow:hidden}.not-found{display:flex;align-items:center;justify-content:center;width:100%;padding:var(--solely-spacing-xl, 32px);position:relative;z-index:var(--solely-z-index-base, 1)}.not-found__container{display:flex;flex-direction:column;align-items:center;text-align:center;max-width:500px;animation:fadeInUp .6s ease-out}.not-found__numbers{display:flex;align-items:center;justify-content:center;gap:16px;margin-bottom:24px}.not-found__number{font-size:120px;font-weight:800;line-height:1;background:linear-gradient(135deg,var(--solely-primary, #1890ff) 0%,var(--solely-primary-hover, #40a9ff) 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;animation:float 3s ease-in-out infinite;text-shadow:none}.not-found__number:first-child{animation-delay:0s}.not-found__number:last-child{animation-delay:.5s}.not-found__icon-wrapper{width:80px;height:80px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--solely-error, #ff6b6b) 0%,var(--solely-error-hover, #ee5a6f) 100%);border-radius:50%;animation:pulse 2s ease-in-out infinite,float 3s ease-in-out infinite;animation-delay:.25s,.25s;box-shadow:0 8px 32px #ee5a6f4d}.not-found__icon{width:40px;height:40px;color:var(--solely-white, #ffffff)}.not-found__title{font-size:48px;font-weight:700;color:var(--solely-text-primary, #262626);margin:0 0 8px;line-height:1.2}.not-found__subtitle{font-size:20px;font-weight:500;color:var(--solely-text-secondary, #595959);margin:0 0 16px;line-height:1.4}.not-found__description{font-size:14px;color:var(--solely-text-tertiary, #8c8c8c);margin:0 0 32px;line-height:1.6;max-width:400px}.not-found__button{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 28px;font-size:15px;font-weight:500;color:var(--solely-white, #ffffff);background:linear-gradient(135deg,var(--solely-primary, #1890ff) 0%,var(--solely-primary-hover, #40a9ff) 100%);border:none;border-radius:22px;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 16px #1890ff4d;outline:none}.not-found__button:hover{transform:translateY(-2px);box-shadow:0 6px 24px #1890ff66}.not-found__button:active{transform:translateY(0)}.not-found__button-icon{width:18px;height:18px;transition:transform .3s ease}.not-found__button:hover .not-found__button-icon{transform:translate(-3px)}.not-found__bg-decoration{position:absolute;border-radius:50%;opacity:.1;pointer-events:none}.not-found__bg-decoration--1{width:300px;height:300px;background:var(--solely-primary, #1890ff);top:-100px;right:-100px;animation:float 8s ease-in-out infinite}.not-found__bg-decoration--2{width:200px;height:200px;background:var(--solely-error, #ff6b6b);bottom:-50px;left:-50px;animation:float 6s ease-in-out infinite reverse}.not-found__bg-decoration--3{width:150px;height:150px;background:var(--solely-success, #52c41a);top:50%;right:10%;animation:float 10s ease-in-out infinite;animation-delay:-2s}@keyframes fadeInUp{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}@keyframes float{0%,to{transform:translateY(0)}50%{transform:translateY(-10px)}}@keyframes pulse{0%,to{transform:scale(1)}50%{transform:scale(1.05)}}@media
|
|
1
|
+
const n='*,*:before,*:after{box-sizing:border-box}:host{display:flex;width:100%;min-height:100vh;align-items:center;justify-content:center;font-family:var(--solely-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);background:linear-gradient(135deg,var(--solely-gray-3, #f5f7fa) 0%,var(--solely-gray-5, #c3cfe2) 100%);position:relative;overflow:hidden}.not-found{display:flex;align-items:center;justify-content:center;width:100%;padding:var(--solely-spacing-xl, 32px);position:relative;z-index:var(--solely-z-index-base, 1)}.not-found__container{display:flex;flex-direction:column;align-items:center;text-align:center;max-width:500px;animation:fadeInUp .6s ease-out}.not-found__numbers{display:flex;align-items:center;justify-content:center;gap:16px;margin-bottom:24px}.not-found__number{font-size:120px;font-weight:800;line-height:1;background:linear-gradient(135deg,var(--solely-primary, #1890ff) 0%,var(--solely-primary-hover, #40a9ff) 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;animation:float 3s ease-in-out infinite;text-shadow:none}.not-found__number:first-child{animation-delay:0s}.not-found__number:last-child{animation-delay:.5s}.not-found__icon-wrapper{width:80px;height:80px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--solely-error, #ff6b6b) 0%,var(--solely-error-hover, #ee5a6f) 100%);border-radius:50%;animation:pulse 2s ease-in-out infinite,float 3s ease-in-out infinite;animation-delay:.25s,.25s;box-shadow:0 8px 32px #ee5a6f4d}.not-found__icon{width:40px;height:40px;color:var(--solely-white, #ffffff)}.not-found__title{font-size:48px;font-weight:700;color:var(--solely-text-primary, #262626);margin:0 0 8px;line-height:1.2}.not-found__subtitle{font-size:20px;font-weight:500;color:var(--solely-text-secondary, #595959);margin:0 0 16px;line-height:1.4}.not-found__description{font-size:14px;color:var(--solely-text-tertiary, #8c8c8c);margin:0 0 32px;line-height:1.6;max-width:400px}.not-found__button{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 28px;font-size:15px;font-weight:500;color:var(--solely-white, #ffffff);background:linear-gradient(135deg,var(--solely-primary, #1890ff) 0%,var(--solely-primary-hover, #40a9ff) 100%);border:none;border-radius:22px;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 16px #1890ff4d;outline:none}.not-found__button:hover{transform:translateY(-2px);box-shadow:0 6px 24px #1890ff66}.not-found__button:active{transform:translateY(0)}.not-found__button-icon{width:18px;height:18px;transition:transform .3s ease}.not-found__button:hover .not-found__button-icon{transform:translate(-3px)}.not-found__bg-decoration{position:absolute;border-radius:50%;opacity:.1;pointer-events:none}.not-found__bg-decoration--1{width:300px;height:300px;background:var(--solely-primary, #1890ff);top:-100px;right:-100px;animation:float 8s ease-in-out infinite}.not-found__bg-decoration--2{width:200px;height:200px;background:var(--solely-error, #ff6b6b);bottom:-50px;left:-50px;animation:float 6s ease-in-out infinite reverse}.not-found__bg-decoration--3{width:150px;height:150px;background:var(--solely-success, #52c41a);top:50%;right:10%;animation:float 10s ease-in-out infinite;animation-delay:-2s}@keyframes fadeInUp{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}@keyframes float{0%,to{transform:translateY(0)}50%{transform:translateY(-10px)}}@keyframes pulse{0%,to{transform:scale(1)}50%{transform:scale(1.05)}}@media(max-width:576px){.not-found__number{font-size:80px}.not-found__icon-wrapper{width:60px;height:60px}.not-found__icon{width:30px;height:30px}.not-found__title{font-size:36px}.not-found__subtitle{font-size:18px}.not-found__description{font-size:13px}.not-found__numbers{gap:12px}}:host([embedded]){min-height:auto;background:var(--docs-bg-secondary, #f5f5f5)}.not-found--embedded{padding:var(--solely-spacing-lg, 24px)}.not-found--embedded .not-found__container{max-width:400px;animation:fadeInUp .4s ease-out}.not-found--embedded .not-found__number{font-size:64px}.not-found--embedded .not-found__icon-wrapper{width:48px;height:48px;box-shadow:0 4px 16px #ee5a6f33}.not-found--embedded .not-found__icon{width:24px;height:24px}.not-found--embedded .not-found__title{font-size:28px;margin-bottom:4px}.not-found--embedded .not-found__subtitle{font-size:16px;margin-bottom:12px}.not-found--embedded .not-found__description{font-size:13px;margin-bottom:20px}.not-found--embedded .not-found__button{height:36px;padding:0 20px;font-size:13px;border-radius:18px;box-shadow:0 2px 8px #1890ff40}.not-found--embedded .not-found__button-icon{width:14px;height:14px}.not-found--embedded .not-found__numbers{gap:10px;margin-bottom:16px}.not-found--embedded .not-found__bg-decoration{display:none}';export{n as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t={t:"root",v:"1.2.0",fns:[function(t){const{$data:a}=this;return this.getPaginationClasses()},function(t){const{$data:a}=this;return a.showTotal},function(t){const{$data:a}=this;return`共 ${a.total} 条`},function(t){const{$data:a}=this;return this.getPrevClasses()},function(t,a){const{$data:n}=this,{value:s,checked:d}=
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t={t:"root",v:"1.2.0",fns:[function(t){const{$data:a}=this;return this.getPaginationClasses()},function(t){const{$data:a}=this;return a.showTotal},function(t){const{$data:a}=this;return`共 ${a.total} 条`},function(t){const{$data:a}=this;return this.getPrevClasses()},function(t,a){const{$data:n}=this,{value:s,checked:d}=t?.target||{};this.handlePrev(t)},function(t){const{$data:a}=this;return this.calculateVisiblePages()},function(t){const{$data:a}=this;var[n]=t.map(t=>t.itmVal),[s]=t.map(t=>t.idxVal);return"..."!==n},function(t){const{$data:a}=this;var[n]=t.map(t=>t.itmVal),[s]=t.map(t=>t.idxVal);return this.getItemClasses(n)},function(t,a){const{$data:n}=this,{value:s,checked:d}=t?.target||{};var[e]=a.map(t=>t.itmVal),[i]=a.map(t=>t.idxVal);this.handlePageClick(e,t)},function(t){const{$data:a}=this;var[n]=t.map(t=>t.itmVal),[s]=t.map(t=>t.idxVal);return`${n}`},function(t){const{$data:a}=this;var[n]=t.map(t=>t.itmVal),[s]=t.map(t=>t.idxVal);return"..."===n},function(t){const{$data:a}=this;return this.getNextClasses()},function(t,a){const{$data:n}=this,{value:s,checked:d}=t?.target||{};this.handleNext(t)},function(t){const{$data:a}=this;return a.showSizeChanger},function(t,a){const{$data:n}=this,{value:s,checked:d}=t?.target||{};this.handleSizeChange(t)},function(t){const{$data:a}=this;return a.parsedPageSizeOptions},function(t){const{$data:a}=this;var[n]=t.map(t=>t.itmVal),[s]=t.map(t=>t.idxVal);return n},function(t){const{$data:a}=this;var[n]=t.map(t=>t.itmVal),[s]=t.map(t=>t.idxVal);return n===a.pageSize},function(t){const{$data:a}=this;var[n]=t.map(t=>t.itmVal),[s]=t.map(t=>t.idxVal);return`${n} 条/页`},function(t){const{$data:a}=this;return a.showQuickJumper},function(t){const{$data:a}=this;return a.totalPages},function(t,a){const{$data:n}=this,{value:s,checked:d}=t?.target||{};this.handleJumperKeydown(t)},function(t){const{$data:a}=this;return a.jumperValue},function(t,a){const{$data:n}=this,{value:s,checked:d}=t?.target||{};n.jumperValue=s},function(t,a){const{$data:n}=this,{value:s,checked:d}=t?.target||{};this.handleJumperStep(1)},function(t,a){const{$data:n}=this,{value:s,checked:d}=t?.target||{};this.handleJumperStep(-1)}],n:[{t:0,d:1,g:"div",a:[{k:"part",v:"base",d:0},{k:"class",v:"pagination",d:0},{k:":class",f:1,d:1}],c:[{t:2,d:0,x:" 总数 "},{t:1,d:0,s:1,x:" "},{t:7,d:1,b:[{f:2,c:[{t:0,d:0,g:"span",a:[{k:"part",v:"total",d:0},{k:"class",v:"pagination__total",d:0}],c:[{t:1,d:1,f:3}]}]}]},{t:1,d:0,s:1,x:" "},{t:2,d:0,x:" 上一页 "},{t:1,d:0,s:1,x:" "},{t:0,d:1,g:"span",a:[{k:"part",v:"prev",d:0},{k:"class",v:"pagination__prev",d:0},{k:":class",f:4,d:1},{k:"@click",f:5,d:1}],c:[{t:1,d:0,s:1,x:"<"}]},{t:1,d:0,s:1,x:" "},{t:2,d:0,x:" 页码 "},{t:1,d:0,s:1,x:" "},{t:6,d:1,f:6,i:"page",n:"index",a:[],c:[{t:7,d:1,b:[{f:7,c:[{t:0,d:1,g:"span",a:[{k:"part",v:"item",d:0},{k:"class",v:"pagination__item",d:0},{k:":class",f:8,d:1},{k:"@click",f:9,d:1}],c:[{t:1,d:1,f:10}]}]}]},{t:1,d:0,s:1,x:" "},{t:7,d:1,b:[{f:11,c:[{t:0,d:0,s:1,g:"span",a:[{k:"part",v:"ellipsis",d:0},{k:"class",v:"pagination__ellipsis",d:0}],c:[{t:1,d:0,s:1,x:"..."}]}]}]}]},{t:1,d:0,s:1,x:" "},{t:2,d:0,x:" 下一页 "},{t:1,d:0,s:1,x:" "},{t:0,d:1,g:"span",a:[{k:"part",v:"next",d:0},{k:"class",v:"pagination__next",d:0},{k:":class",f:12,d:1},{k:"@click",f:13,d:1}],c:[{t:1,d:0,s:1,x:">"}]},{t:1,d:0,s:1,x:" "},{t:2,d:0,x:" 每页条数选择器 "},{t:1,d:0,s:1,x:" "},{t:7,d:1,b:[{f:14,c:[{t:0,d:0,g:"span",a:[{k:"part",v:"size-changer",d:0},{k:"class",v:"pagination__size-changer",d:0}],c:[{t:0,d:1,g:"select",a:[{k:"@change",f:15,d:1}],c:[{t:6,d:1,f:16,i:"size",n:"index",a:[],c:[{t:0,d:1,g:"option",a:[{k:":value",f:17,d:1},{k:":selected",f:18,d:1}],c:[{t:1,d:1,f:19}]}]}]}]}]}]},{t:1,d:0,s:1,x:" "},{t:2,d:0,x:" 快速跳转 "},{t:1,d:0,s:1,x:" "},{t:7,d:1,b:[{f:20,c:[{t:0,d:0,g:"span",a:[{k:"part",v:"jumper",d:0},{k:"class",v:"pagination__jumper",d:0}],c:[{t:1,d:0,s:1,x:"跳至 "},{t:0,d:0,g:"span",a:[{k:"part",v:"jumper-input-wrapper",d:0},{k:"class",v:"pagination__jumper-input-wrapper",d:0}],c:[{t:0,d:1,g:"input",a:[{k:"part",v:"jumper-input",d:0},{k:"type",v:"number",d:0},{k:"min",v:"1",d:0},{k:":max",f:21,d:1},{k:"@keydown",f:22,d:1},{k:":value",f:23,d:1},{k:"@input",f:24,d:1,r:"model"}],c:[]},{t:1,d:0,s:1,x:" "},{t:0,d:0,g:"span",a:[{k:"part",v:"jumper-controls",d:0},{k:"class",v:"pagination__jumper-controls",d:0}],c:[{t:0,d:1,g:"span",a:[{k:"part",v:"jumper-up",d:0},{k:"class",v:"pagination__jumper-up",d:0},{k:"@click",f:25,d:1}],c:[{t:1,d:0,s:1,x:"▲"}]},{t:1,d:0,s:1,x:" "},{t:0,d:1,g:"span",a:[{k:"part",v:"jumper-down",d:0},{k:"class",v:"pagination__jumper-down",d:0},{k:"@click",f:26,d:1}],c:[{t:1,d:0,s:1,x:"▼"}]}]}]},{t:1,d:0,s:1,x:" 页"}]}]}]}]}],s:{tf:26,cf:26,dn:1,tn:1,sn:0}};exports.__SOLELY_IR__=t,exports.default=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const t={t:"root",v:"1.2.0",fns:[function(t){const{$data:a}=this;return this.getPaginationClasses()},function(t){const{$data:a}=this;return a.showTotal},function(t){const{$data:a}=this;return`共 ${a.total} 条`},function(t){const{$data:a}=this;return this.getPrevClasses()},function(t,a){const{$data:n}=this,{value:s,checked:d}=
|
|
1
|
+
const t={t:"root",v:"1.2.0",fns:[function(t){const{$data:a}=this;return this.getPaginationClasses()},function(t){const{$data:a}=this;return a.showTotal},function(t){const{$data:a}=this;return`共 ${a.total} 条`},function(t){const{$data:a}=this;return this.getPrevClasses()},function(t,a){const{$data:n}=this,{value:s,checked:d}=t?.target||{};this.handlePrev(t)},function(t){const{$data:a}=this;return this.calculateVisiblePages()},function(t){const{$data:a}=this;var[n]=t.map(t=>t.itmVal),[s]=t.map(t=>t.idxVal);return"..."!==n},function(t){const{$data:a}=this;var[n]=t.map(t=>t.itmVal),[s]=t.map(t=>t.idxVal);return this.getItemClasses(n)},function(t,a){const{$data:n}=this,{value:s,checked:d}=t?.target||{};var[i]=a.map(t=>t.itmVal),[e]=a.map(t=>t.idxVal);this.handlePageClick(i,t)},function(t){const{$data:a}=this;var[n]=t.map(t=>t.itmVal),[s]=t.map(t=>t.idxVal);return`${n}`},function(t){const{$data:a}=this;var[n]=t.map(t=>t.itmVal),[s]=t.map(t=>t.idxVal);return"..."===n},function(t){const{$data:a}=this;return this.getNextClasses()},function(t,a){const{$data:n}=this,{value:s,checked:d}=t?.target||{};this.handleNext(t)},function(t){const{$data:a}=this;return a.showSizeChanger},function(t,a){const{$data:n}=this,{value:s,checked:d}=t?.target||{};this.handleSizeChange(t)},function(t){const{$data:a}=this;return a.parsedPageSizeOptions},function(t){const{$data:a}=this;var[n]=t.map(t=>t.itmVal),[s]=t.map(t=>t.idxVal);return n},function(t){const{$data:a}=this;var[n]=t.map(t=>t.itmVal),[s]=t.map(t=>t.idxVal);return n===a.pageSize},function(t){const{$data:a}=this;var[n]=t.map(t=>t.itmVal),[s]=t.map(t=>t.idxVal);return`${n} 条/页`},function(t){const{$data:a}=this;return a.showQuickJumper},function(t){const{$data:a}=this;return a.totalPages},function(t,a){const{$data:n}=this,{value:s,checked:d}=t?.target||{};this.handleJumperKeydown(t)},function(t){const{$data:a}=this;return a.jumperValue},function(t,a){const{$data:n}=this,{value:s,checked:d}=t?.target||{};n.jumperValue=s},function(t,a){const{$data:n}=this,{value:s,checked:d}=t?.target||{};this.handleJumperStep(1)},function(t,a){const{$data:n}=this,{value:s,checked:d}=t?.target||{};this.handleJumperStep(-1)}],n:[{t:0,d:1,g:"div",a:[{k:"part",v:"base",d:0},{k:"class",v:"pagination",d:0},{k:":class",f:1,d:1}],c:[{t:2,d:0,x:" 总数 "},{t:1,d:0,s:1,x:" "},{t:7,d:1,b:[{f:2,c:[{t:0,d:0,g:"span",a:[{k:"part",v:"total",d:0},{k:"class",v:"pagination__total",d:0}],c:[{t:1,d:1,f:3}]}]}]},{t:1,d:0,s:1,x:" "},{t:2,d:0,x:" 上一页 "},{t:1,d:0,s:1,x:" "},{t:0,d:1,g:"span",a:[{k:"part",v:"prev",d:0},{k:"class",v:"pagination__prev",d:0},{k:":class",f:4,d:1},{k:"@click",f:5,d:1}],c:[{t:1,d:0,s:1,x:"<"}]},{t:1,d:0,s:1,x:" "},{t:2,d:0,x:" 页码 "},{t:1,d:0,s:1,x:" "},{t:6,d:1,f:6,i:"page",n:"index",a:[],c:[{t:7,d:1,b:[{f:7,c:[{t:0,d:1,g:"span",a:[{k:"part",v:"item",d:0},{k:"class",v:"pagination__item",d:0},{k:":class",f:8,d:1},{k:"@click",f:9,d:1}],c:[{t:1,d:1,f:10}]}]}]},{t:1,d:0,s:1,x:" "},{t:7,d:1,b:[{f:11,c:[{t:0,d:0,s:1,g:"span",a:[{k:"part",v:"ellipsis",d:0},{k:"class",v:"pagination__ellipsis",d:0}],c:[{t:1,d:0,s:1,x:"..."}]}]}]}]},{t:1,d:0,s:1,x:" "},{t:2,d:0,x:" 下一页 "},{t:1,d:0,s:1,x:" "},{t:0,d:1,g:"span",a:[{k:"part",v:"next",d:0},{k:"class",v:"pagination__next",d:0},{k:":class",f:12,d:1},{k:"@click",f:13,d:1}],c:[{t:1,d:0,s:1,x:">"}]},{t:1,d:0,s:1,x:" "},{t:2,d:0,x:" 每页条数选择器 "},{t:1,d:0,s:1,x:" "},{t:7,d:1,b:[{f:14,c:[{t:0,d:0,g:"span",a:[{k:"part",v:"size-changer",d:0},{k:"class",v:"pagination__size-changer",d:0}],c:[{t:0,d:1,g:"select",a:[{k:"@change",f:15,d:1}],c:[{t:6,d:1,f:16,i:"size",n:"index",a:[],c:[{t:0,d:1,g:"option",a:[{k:":value",f:17,d:1},{k:":selected",f:18,d:1}],c:[{t:1,d:1,f:19}]}]}]}]}]}]},{t:1,d:0,s:1,x:" "},{t:2,d:0,x:" 快速跳转 "},{t:1,d:0,s:1,x:" "},{t:7,d:1,b:[{f:20,c:[{t:0,d:0,g:"span",a:[{k:"part",v:"jumper",d:0},{k:"class",v:"pagination__jumper",d:0}],c:[{t:1,d:0,s:1,x:"跳至 "},{t:0,d:0,g:"span",a:[{k:"part",v:"jumper-input-wrapper",d:0},{k:"class",v:"pagination__jumper-input-wrapper",d:0}],c:[{t:0,d:1,g:"input",a:[{k:"part",v:"jumper-input",d:0},{k:"type",v:"number",d:0},{k:"min",v:"1",d:0},{k:":max",f:21,d:1},{k:"@keydown",f:22,d:1},{k:":value",f:23,d:1},{k:"@input",f:24,d:1,r:"model"}],c:[]},{t:1,d:0,s:1,x:" "},{t:0,d:0,g:"span",a:[{k:"part",v:"jumper-controls",d:0},{k:"class",v:"pagination__jumper-controls",d:0}],c:[{t:0,d:1,g:"span",a:[{k:"part",v:"jumper-up",d:0},{k:"class",v:"pagination__jumper-up",d:0},{k:"@click",f:25,d:1}],c:[{t:1,d:0,s:1,x:"▲"}]},{t:1,d:0,s:1,x:" "},{t:0,d:1,g:"span",a:[{k:"part",v:"jumper-down",d:0},{k:"class",v:"pagination__jumper-down",d:0},{k:"@click",f:26,d:1}],c:[{t:1,d:0,s:1,x:"▼"}]}]}]},{t:1,d:0,s:1,x:" 页"}]}]}]}]}],s:{tf:26,cf:26,dn:1,tn:1,sn:0}};export{t as __SOLELY_IR__,t as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),exports.default="*,*:before,*:after{box-sizing:border-box}:host{display:block}.pagination{display:flex;align-items:center;gap:var(--solely-spacing-xs);font-family:var(--solely-font-family);font-size:var(--solely-font-size-md)}.pagination__item{display:inline-flex;align-items:center;justify-content:center;min-width:var(--solely-height-md);height:var(--solely-height-md);padding:0 var(--solely-spacing-sm);color:var(--solely-text-primary);background-color:var(--solely-component-bg);border:1px solid var(--solely-border-color);border-radius:var(--solely-border-radius-md);cursor:pointer;transition:all var(--solely-transition-duration);-webkit-user-select:none;user-select:none}.pagination__item:hover:not(.pagination__item--disabled):not(.pagination__item--active){color:var(--solely-primary);border-color:var(--solely-primary)}.pagination__item--active{color:var(--solely-white);background-color:var(--solely-primary);border-color:var(--solely-primary)}.pagination__item--disabled{cursor:not-allowed;color:var(--solely-text-tertiary);background-color:var(--solely-gray-2)}.pagination__prev,.pagination__next{display:inline-flex;align-items:center;justify-content:center;min-width:var(--solely-height-md);height:var(--solely-height-md);padding:0 var(--solely-spacing-sm);color:var(--solely-text-secondary);background-color:var(--solely-component-bg);border:1px solid var(--solely-border-color);border-radius:var(--solely-border-radius-md);cursor:pointer;transition:all var(--solely-transition-duration);-webkit-user-select:none;user-select:none}.pagination__prev:hover:not(.pagination__item--disabled),.pagination__next:hover:not(.pagination__item--disabled){color:var(--solely-primary);border-color:var(--solely-primary)}.pagination__ellipsis{display:inline-flex;align-items:center;justify-content:center;min-width:var(--solely-height-md);height:var(--solely-height-md);color:var(--solely-text-tertiary);-webkit-user-select:none;user-select:none}.pagination__jumper{display:inline-flex;align-items:center;gap:var(--solely-spacing-xs);margin-left:var(--solely-spacing-md);color:var(--solely-text-secondary)}.pagination__jumper input::-webkit-inner-spin-button,.pagination__jumper input::-webkit-outer-spin-button{-webkit-appearance:none
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),exports.default="*,*:before,*:after{box-sizing:border-box}:host{display:block}.pagination{display:flex;align-items:center;gap:var(--solely-spacing-xs);font-family:var(--solely-font-family);font-size:var(--solely-font-size-md)}.pagination__item{display:inline-flex;align-items:center;justify-content:center;min-width:var(--solely-height-md);height:var(--solely-height-md);padding:0 var(--solely-spacing-sm);color:var(--solely-text-primary);background-color:var(--solely-component-bg);border:1px solid var(--solely-border-color);border-radius:var(--solely-border-radius-md);cursor:pointer;transition:all var(--solely-transition-duration);-webkit-user-select:none;user-select:none}.pagination__item:hover:not(.pagination__item--disabled):not(.pagination__item--active){color:var(--solely-primary);border-color:var(--solely-primary)}.pagination__item--active{color:var(--solely-white);background-color:var(--solely-primary);border-color:var(--solely-primary)}.pagination__item--disabled{cursor:not-allowed;color:var(--solely-text-tertiary);background-color:var(--solely-gray-2)}.pagination__prev,.pagination__next{display:inline-flex;align-items:center;justify-content:center;min-width:var(--solely-height-md);height:var(--solely-height-md);padding:0 var(--solely-spacing-sm);color:var(--solely-text-secondary);background-color:var(--solely-component-bg);border:1px solid var(--solely-border-color);border-radius:var(--solely-border-radius-md);cursor:pointer;transition:all var(--solely-transition-duration);-webkit-user-select:none;user-select:none}.pagination__prev:hover:not(.pagination__item--disabled),.pagination__next:hover:not(.pagination__item--disabled){color:var(--solely-primary);border-color:var(--solely-primary)}.pagination__ellipsis{display:inline-flex;align-items:center;justify-content:center;min-width:var(--solely-height-md);height:var(--solely-height-md);color:var(--solely-text-tertiary);-webkit-user-select:none;user-select:none}.pagination__jumper{display:inline-flex;align-items:center;gap:var(--solely-spacing-xs);margin-left:var(--solely-spacing-md);color:var(--solely-text-secondary)}.pagination__jumper input::-webkit-inner-spin-button,.pagination__jumper input::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}.pagination__jumper input[type=number]{appearance:none;-moz-appearance:textfield}.pagination__jumper-input-wrapper{position:relative;display:inline-flex;align-items:center}.pagination__jumper-input-wrapper input{width:50px;height:var(--solely-height-md);padding:0 20px 0 var(--solely-spacing-sm);border:1px solid var(--solely-border-color);border-radius:var(--solely-border-radius-md);text-align:center;font-size:var(--solely-font-size-md);color:var(--solely-text-primary);background-color:var(--solely-component-bg);transition:all var(--solely-transition-duration)}.pagination__jumper-input-wrapper input:focus{outline:none;border-color:var(--solely-primary);box-shadow:0 0 0 2px var(--solely-primary-light)}.pagination__jumper-controls{position:absolute;right:2px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;height:var(--solely-height-sm);width:16px}.pagination__jumper-up,.pagination__jumper-down{flex:1;display:flex;align-items:center;justify-content:center;font-size:8px;color:var(--solely-text-secondary);background-color:var(--solely-component-bg);cursor:pointer;-webkit-user-select:none;user-select:none;line-height:1}.pagination__jumper-up:hover,.pagination__jumper-down:hover{color:var(--solely-primary);background-color:var(--solely-gray-2)}.pagination__jumper-up{border-radius:2px 2px 0 0}.pagination__jumper-down{border-radius:0 0 2px 2px}.pagination__size-changer{margin-left:var(--solely-spacing-md)}.pagination__size-changer select{height:var(--solely-height-md);padding:0 var(--solely-spacing-md) 0 var(--solely-spacing-sm);border:1px solid var(--solely-border-color);border-radius:var(--solely-border-radius-md);font-size:var(--solely-font-size-md);color:var(--solely-text-primary);background-color:var(--solely-component-bg);cursor:pointer;transition:all var(--solely-transition-duration)}.pagination__size-changer select:focus{outline:none;border-color:var(--solely-primary);box-shadow:0 0 0 2px var(--solely-primary-light)}.pagination__size-changer option{color:var(--solely-text-primary);background-color:var(--solely-component-bg)}.pagination__total{margin-right:var(--solely-spacing-md);color:var(--solely-text-secondary)}.pagination--simple .pagination__item,.pagination--simple .pagination__prev,.pagination--simple .pagination__next{border:none;background:transparent}.pagination--simple .pagination__item--active{color:var(--solely-primary);background:transparent}.pagination--md .pagination__item,.pagination--md .pagination__prev,.pagination--md .pagination__next,.pagination--md .pagination__ellipsis{min-width:var(--solely-height-md);height:var(--solely-height-md);font-size:var(--solely-font-size-md)}.pagination--md .pagination__jumper input,.pagination--md .pagination__size-changer select{height:var(--solely-height-md);font-size:var(--solely-font-size-md)}.pagination--lg .pagination__item,.pagination--lg .pagination__prev,.pagination--lg .pagination__next,.pagination--lg .pagination__ellipsis{min-width:var(--solely-height-lg);height:var(--solely-height-lg);font-size:var(--solely-font-size-lg)}.pagination--lg .pagination__jumper input,.pagination--lg .pagination__size-changer select{height:var(--solely-height-lg);font-size:var(--solely-font-size-lg)}.pagination--sm .pagination__item,.pagination--sm .pagination__prev,.pagination--sm .pagination__next,.pagination--sm .pagination__ellipsis{min-width:var(--solely-height-sm);height:var(--solely-height-sm);font-size:var(--solely-font-size-sm)}.pagination--sm .pagination__jumper input,.pagination--sm .pagination__size-changer select{height:var(--solely-height-sm);font-size:var(--solely-font-size-sm)}.pagination.is-disabled{opacity:.6;pointer-events:none}";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const i="*,*:before,*:after{box-sizing:border-box}:host{display:block}.pagination{display:flex;align-items:center;gap:var(--solely-spacing-xs);font-family:var(--solely-font-family);font-size:var(--solely-font-size-md)}.pagination__item{display:inline-flex;align-items:center;justify-content:center;min-width:var(--solely-height-md);height:var(--solely-height-md);padding:0 var(--solely-spacing-sm);color:var(--solely-text-primary);background-color:var(--solely-component-bg);border:1px solid var(--solely-border-color);border-radius:var(--solely-border-radius-md);cursor:pointer;transition:all var(--solely-transition-duration);-webkit-user-select:none;user-select:none}.pagination__item:hover:not(.pagination__item--disabled):not(.pagination__item--active){color:var(--solely-primary);border-color:var(--solely-primary)}.pagination__item--active{color:var(--solely-white);background-color:var(--solely-primary);border-color:var(--solely-primary)}.pagination__item--disabled{cursor:not-allowed;color:var(--solely-text-tertiary);background-color:var(--solely-gray-2)}.pagination__prev,.pagination__next{display:inline-flex;align-items:center;justify-content:center;min-width:var(--solely-height-md);height:var(--solely-height-md);padding:0 var(--solely-spacing-sm);color:var(--solely-text-secondary);background-color:var(--solely-component-bg);border:1px solid var(--solely-border-color);border-radius:var(--solely-border-radius-md);cursor:pointer;transition:all var(--solely-transition-duration);-webkit-user-select:none;user-select:none}.pagination__prev:hover:not(.pagination__item--disabled),.pagination__next:hover:not(.pagination__item--disabled){color:var(--solely-primary);border-color:var(--solely-primary)}.pagination__ellipsis{display:inline-flex;align-items:center;justify-content:center;min-width:var(--solely-height-md);height:var(--solely-height-md);color:var(--solely-text-tertiary);-webkit-user-select:none;user-select:none}.pagination__jumper{display:inline-flex;align-items:center;gap:var(--solely-spacing-xs);margin-left:var(--solely-spacing-md);color:var(--solely-text-secondary)}.pagination__jumper input::-webkit-inner-spin-button,.pagination__jumper input::-webkit-outer-spin-button{-webkit-appearance:none
|
|
1
|
+
const i="*,*:before,*:after{box-sizing:border-box}:host{display:block}.pagination{display:flex;align-items:center;gap:var(--solely-spacing-xs);font-family:var(--solely-font-family);font-size:var(--solely-font-size-md)}.pagination__item{display:inline-flex;align-items:center;justify-content:center;min-width:var(--solely-height-md);height:var(--solely-height-md);padding:0 var(--solely-spacing-sm);color:var(--solely-text-primary);background-color:var(--solely-component-bg);border:1px solid var(--solely-border-color);border-radius:var(--solely-border-radius-md);cursor:pointer;transition:all var(--solely-transition-duration);-webkit-user-select:none;user-select:none}.pagination__item:hover:not(.pagination__item--disabled):not(.pagination__item--active){color:var(--solely-primary);border-color:var(--solely-primary)}.pagination__item--active{color:var(--solely-white);background-color:var(--solely-primary);border-color:var(--solely-primary)}.pagination__item--disabled{cursor:not-allowed;color:var(--solely-text-tertiary);background-color:var(--solely-gray-2)}.pagination__prev,.pagination__next{display:inline-flex;align-items:center;justify-content:center;min-width:var(--solely-height-md);height:var(--solely-height-md);padding:0 var(--solely-spacing-sm);color:var(--solely-text-secondary);background-color:var(--solely-component-bg);border:1px solid var(--solely-border-color);border-radius:var(--solely-border-radius-md);cursor:pointer;transition:all var(--solely-transition-duration);-webkit-user-select:none;user-select:none}.pagination__prev:hover:not(.pagination__item--disabled),.pagination__next:hover:not(.pagination__item--disabled){color:var(--solely-primary);border-color:var(--solely-primary)}.pagination__ellipsis{display:inline-flex;align-items:center;justify-content:center;min-width:var(--solely-height-md);height:var(--solely-height-md);color:var(--solely-text-tertiary);-webkit-user-select:none;user-select:none}.pagination__jumper{display:inline-flex;align-items:center;gap:var(--solely-spacing-xs);margin-left:var(--solely-spacing-md);color:var(--solely-text-secondary)}.pagination__jumper input::-webkit-inner-spin-button,.pagination__jumper input::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}.pagination__jumper input[type=number]{appearance:none;-moz-appearance:textfield}.pagination__jumper-input-wrapper{position:relative;display:inline-flex;align-items:center}.pagination__jumper-input-wrapper input{width:50px;height:var(--solely-height-md);padding:0 20px 0 var(--solely-spacing-sm);border:1px solid var(--solely-border-color);border-radius:var(--solely-border-radius-md);text-align:center;font-size:var(--solely-font-size-md);color:var(--solely-text-primary);background-color:var(--solely-component-bg);transition:all var(--solely-transition-duration)}.pagination__jumper-input-wrapper input:focus{outline:none;border-color:var(--solely-primary);box-shadow:0 0 0 2px var(--solely-primary-light)}.pagination__jumper-controls{position:absolute;right:2px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;height:var(--solely-height-sm);width:16px}.pagination__jumper-up,.pagination__jumper-down{flex:1;display:flex;align-items:center;justify-content:center;font-size:8px;color:var(--solely-text-secondary);background-color:var(--solely-component-bg);cursor:pointer;-webkit-user-select:none;user-select:none;line-height:1}.pagination__jumper-up:hover,.pagination__jumper-down:hover{color:var(--solely-primary);background-color:var(--solely-gray-2)}.pagination__jumper-up{border-radius:2px 2px 0 0}.pagination__jumper-down{border-radius:0 0 2px 2px}.pagination__size-changer{margin-left:var(--solely-spacing-md)}.pagination__size-changer select{height:var(--solely-height-md);padding:0 var(--solely-spacing-md) 0 var(--solely-spacing-sm);border:1px solid var(--solely-border-color);border-radius:var(--solely-border-radius-md);font-size:var(--solely-font-size-md);color:var(--solely-text-primary);background-color:var(--solely-component-bg);cursor:pointer;transition:all var(--solely-transition-duration)}.pagination__size-changer select:focus{outline:none;border-color:var(--solely-primary);box-shadow:0 0 0 2px var(--solely-primary-light)}.pagination__size-changer option{color:var(--solely-text-primary);background-color:var(--solely-component-bg)}.pagination__total{margin-right:var(--solely-spacing-md);color:var(--solely-text-secondary)}.pagination--simple .pagination__item,.pagination--simple .pagination__prev,.pagination--simple .pagination__next{border:none;background:transparent}.pagination--simple .pagination__item--active{color:var(--solely-primary);background:transparent}.pagination--md .pagination__item,.pagination--md .pagination__prev,.pagination--md .pagination__next,.pagination--md .pagination__ellipsis{min-width:var(--solely-height-md);height:var(--solely-height-md);font-size:var(--solely-font-size-md)}.pagination--md .pagination__jumper input,.pagination--md .pagination__size-changer select{height:var(--solely-height-md);font-size:var(--solely-font-size-md)}.pagination--lg .pagination__item,.pagination--lg .pagination__prev,.pagination--lg .pagination__next,.pagination--lg .pagination__ellipsis{min-width:var(--solely-height-lg);height:var(--solely-height-lg);font-size:var(--solely-font-size-lg)}.pagination--lg .pagination__jumper input,.pagination--lg .pagination__size-changer select{height:var(--solely-height-lg);font-size:var(--solely-font-size-lg)}.pagination--sm .pagination__item,.pagination--sm .pagination__prev,.pagination--sm .pagination__next,.pagination--sm .pagination__ellipsis{min-width:var(--solely-height-sm);height:var(--solely-height-sm);font-size:var(--solely-font-size-sm)}.pagination--sm .pagination__jumper input,.pagination--sm .pagination__size-changer select{height:var(--solely-height-sm);font-size:var(--solely-font-size-sm)}.pagination.is-disabled{opacity:.6;pointer-events:none}";export{i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t={t:"root",v:"1.2.0",fns:[function(t){const{$data:s}=this;return this.getProgressClasses()},function(t){const{$data:s}=this;return"line"===s.type},function(t){const{$data:s}=this;return"height: "+(s.strokeWidth||8)+"px"},function(t){const{$data:s}=this;return this.getInnerClasses()},function(t){const{$data:s}=this;return"width: "+this.clampedPercent+"%"},function(t){const{$data:s}=this;return s.showInfo},function(t){const{$data:s}=this;return`${this.getText()}`},function(t){const{$data:s}=this;return"circle"===s.type},function(t){const{$data:s}=this;return s.width||120},function(t){const{$data:s}=this;return"0 0 "+(s.width||120)+" "+(s.width||120)},function(t){const{$data:s}=this;return(s.width||120)/2},function(t){const{$data:s}=this;return((s.width||120)-(s.strokeWidth||6))/2},function(t){const{$data:s}=this;return s.strokeWidth||6},function(t){const{$data:s}=this;return this.getCirclePathClasses()},function(t){const{$data:s}=this;return this.circleCircumference},function(t){const{$data:s}=this;return this.circleOffset}],n:[{t:0,d:1,g:"div",a:[{k:"part",v:"base",d:0},{k:"class",v:"progress",d:0},{k:":class",f:1,d:1}],c:[{t:2,d:0,x:" 线性进度条 "},{t:7,d:1,b:[{f:2,c:[{t:0,d:1,g:"div",a:[{k:"part",v:"outer",d:0},{k:"class",v:"progress__outer",d:0},{k:":style",f:3,d:1}],c:[{t:0,d:1,g:"div",a:[{k:"part",v:"inner",d:0},{k:"class",v:"progress__inner",d:0},{k:":class",f:4,d:1},{k:":style",f:5,d:1}],c:[]}]},{t:7,d:1,b:[{f:6,c:[{t:0,d:0,g:"span",a:[{k:"part",v:"text",d:0},{k:"class",v:"progress__text",d:0}],c:[{t:1,d:1,f:7}]}]}]}]}]},{t:2,d:0,x:" 圆形进度条 "},{t:7,d:1,b:[{f:8,c:[{t:0,d:1,g:"svg",a:[{k:"part",v:"circle",d:0},{k:"class",v:"progress__circle",d:0},{k:":width",f:9,d:1},{k:":height",f:9,d:1},{k:":viewBox",f:10,d:1}],c:[{t:0,d:1,g:"circle",a:[{k:"part",v:"circle-track",d:0},{k:"class",v:"progress__circle-track",d:0},{k:":cx",f:11,d:1},{k:":cy",f:11,d:1},{k:":r",f:12,d:1},{k:":stroke-width",f:13,d:1}],c:[]},{t:0,d:1,g:"circle",a:[{k:"part",v:"circle-path",d:0},{k:"class",v:"progress__circle-path",d:0},{k:":class",f:14,d:1},{k:":cx",f:11,d:1},{k:":cy",f:11,d:1},{k:":r",f:12,d:1},{k:":stroke-width",f:13,d:1},{k:":stroke-dasharray",f:15,d:1},{k:":stroke-dashoffset",f:16,d:1}],c:[]}]},{t:7,d:1,b:[{f:6,c:[{t:0,d:0,g:"span",a:[{k:"part",v:"circle-text",d:0},{k:"class",v:"progress__circle-text",d:0}],c:[{t:1,d:1,f:7}]}]}]}]}]}]}],s:{tf:16,cf:16,dn:1,tn:1,sn:0}};exports.__SOLELY_IR__=t,exports.default=t;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t={t:"root",v:"1.2.0",fns:[function(t){const{$data:s}=this;return this.getProgressClasses()},function(t){const{$data:s}=this;return"line"===s.type},function(t){const{$data:s}=this;return"height: "+(s.strokeWidth||8)+"px"},function(t){const{$data:s}=this;return this.getInnerClasses()},function(t){const{$data:s}=this;return"width: "+this.clampedPercent+"%"},function(t){const{$data:s}=this;return s.showInfo},function(t){const{$data:s}=this;return`${this.getText()}`},function(t){const{$data:s}=this;return"circle"===s.type},function(t){const{$data:s}=this;return s.width||120},function(t){const{$data:s}=this;return"0 0 "+(s.width||120)+" "+(s.width||120)},function(t){const{$data:s}=this;return(s.width||120)/2},function(t){const{$data:s}=this;return((s.width||120)-(s.strokeWidth||6))/2},function(t){const{$data:s}=this;return s.strokeWidth||6},function(t){const{$data:s}=this;return this.getCirclePathClasses()},function(t){const{$data:s}=this;return this.circleCircumference},function(t){const{$data:s}=this;return this.circleOffset}],n:[{t:0,d:1,g:"div",a:[{k:"part",v:"base",d:0},{k:"class",v:"progress",d:0},{k:":class",f:1,d:1}],c:[{t:2,d:0,x:" 线性进度条 "},{t:1,d:0,s:1,x:" "},{t:7,d:1,b:[{f:2,c:[{t:0,d:1,g:"div",a:[{k:"part",v:"outer",d:0},{k:"class",v:"progress__outer",d:0},{k:":style",f:3,d:1}],c:[{t:0,d:1,g:"div",a:[{k:"part",v:"inner",d:0},{k:"class",v:"progress__inner",d:0},{k:":class",f:4,d:1},{k:":style",f:5,d:1}],c:[]}]},{t:7,d:1,b:[{f:6,c:[{t:0,d:0,g:"span",a:[{k:"part",v:"text",d:0},{k:"class",v:"progress__text",d:0}],c:[{t:1,d:1,f:7}]}]}]}]}]},{t:1,d:0,s:1,x:" "},{t:2,d:0,x:" 圆形进度条 "},{t:1,d:0,s:1,x:" "},{t:7,d:1,b:[{f:8,c:[{t:0,d:1,g:"svg",a:[{k:"part",v:"circle",d:0},{k:"class",v:"progress__circle",d:0},{k:":width",f:9,d:1},{k:":height",f:9,d:1},{k:":viewBox",f:10,d:1}],c:[{t:0,d:1,g:"circle",a:[{k:"part",v:"circle-track",d:0},{k:"class",v:"progress__circle-track",d:0},{k:":cx",f:11,d:1},{k:":cy",f:11,d:1},{k:":r",f:12,d:1},{k:":stroke-width",f:13,d:1}],c:[]},{t:1,d:0,s:1,x:" "},{t:0,d:1,g:"circle",a:[{k:"part",v:"circle-path",d:0},{k:"class",v:"progress__circle-path",d:0},{k:":class",f:14,d:1},{k:":cx",f:11,d:1},{k:":cy",f:11,d:1},{k:":r",f:12,d:1},{k:":stroke-width",f:13,d:1},{k:":stroke-dasharray",f:15,d:1},{k:":stroke-dashoffset",f:16,d:1}],c:[]}]},{t:1,d:0,s:1,x:" "},{t:7,d:1,b:[{f:6,c:[{t:0,d:0,g:"span",a:[{k:"part",v:"circle-text",d:0},{k:"class",v:"progress__circle-text",d:0}],c:[{t:1,d:1,f:7}]}]}]}]}]}]}],s:{tf:16,cf:16,dn:1,tn:1,sn:0}};exports.__SOLELY_IR__=t,exports.default=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const t={t:"root",v:"1.2.0",fns:[function(t){const{$data:s}=this;return this.getProgressClasses()},function(t){const{$data:s}=this;return"line"===s.type},function(t){const{$data:s}=this;return"height: "+(s.strokeWidth||8)+"px"},function(t){const{$data:s}=this;return this.getInnerClasses()},function(t){const{$data:s}=this;return"width: "+this.clampedPercent+"%"},function(t){const{$data:s}=this;return s.showInfo},function(t){const{$data:s}=this;return`${this.getText()}`},function(t){const{$data:s}=this;return"circle"===s.type},function(t){const{$data:s}=this;return s.width||120},function(t){const{$data:s}=this;return"0 0 "+(s.width||120)+" "+(s.width||120)},function(t){const{$data:s}=this;return(s.width||120)/2},function(t){const{$data:s}=this;return((s.width||120)-(s.strokeWidth||6))/2},function(t){const{$data:s}=this;return s.strokeWidth||6},function(t){const{$data:s}=this;return this.getCirclePathClasses()},function(t){const{$data:s}=this;return this.circleCircumference},function(t){const{$data:s}=this;return this.circleOffset}],n:[{t:0,d:1,g:"div",a:[{k:"part",v:"base",d:0},{k:"class",v:"progress",d:0},{k:":class",f:1,d:1}],c:[{t:2,d:0,x:" 线性进度条 "},{t:7,d:1,b:[{f:2,c:[{t:0,d:1,g:"div",a:[{k:"part",v:"outer",d:0},{k:"class",v:"progress__outer",d:0},{k:":style",f:3,d:1}],c:[{t:0,d:1,g:"div",a:[{k:"part",v:"inner",d:0},{k:"class",v:"progress__inner",d:0},{k:":class",f:4,d:1},{k:":style",f:5,d:1}],c:[]}]},{t:7,d:1,b:[{f:6,c:[{t:0,d:0,g:"span",a:[{k:"part",v:"text",d:0},{k:"class",v:"progress__text",d:0}],c:[{t:1,d:1,f:7}]}]}]}]}]},{t:2,d:0,x:" 圆形进度条 "},{t:7,d:1,b:[{f:8,c:[{t:0,d:1,g:"svg",a:[{k:"part",v:"circle",d:0},{k:"class",v:"progress__circle",d:0},{k:":width",f:9,d:1},{k:":height",f:9,d:1},{k:":viewBox",f:10,d:1}],c:[{t:0,d:1,g:"circle",a:[{k:"part",v:"circle-track",d:0},{k:"class",v:"progress__circle-track",d:0},{k:":cx",f:11,d:1},{k:":cy",f:11,d:1},{k:":r",f:12,d:1},{k:":stroke-width",f:13,d:1}],c:[]},{t:0,d:1,g:"circle",a:[{k:"part",v:"circle-path",d:0},{k:"class",v:"progress__circle-path",d:0},{k:":class",f:14,d:1},{k:":cx",f:11,d:1},{k:":cy",f:11,d:1},{k:":r",f:12,d:1},{k:":stroke-width",f:13,d:1},{k:":stroke-dasharray",f:15,d:1},{k:":stroke-dashoffset",f:16,d:1}],c:[]}]},{t:7,d:1,b:[{f:6,c:[{t:0,d:0,g:"span",a:[{k:"part",v:"circle-text",d:0},{k:"class",v:"progress__circle-text",d:0}],c:[{t:1,d:1,f:7}]}]}]}]}]}]}],s:{tf:16,cf:16,dn:1,tn:1,sn:0}};export{t as __SOLELY_IR__,t as default};
|
|
1
|
+
const t={t:"root",v:"1.2.0",fns:[function(t){const{$data:s}=this;return this.getProgressClasses()},function(t){const{$data:s}=this;return"line"===s.type},function(t){const{$data:s}=this;return"height: "+(s.strokeWidth||8)+"px"},function(t){const{$data:s}=this;return this.getInnerClasses()},function(t){const{$data:s}=this;return"width: "+this.clampedPercent+"%"},function(t){const{$data:s}=this;return s.showInfo},function(t){const{$data:s}=this;return`${this.getText()}`},function(t){const{$data:s}=this;return"circle"===s.type},function(t){const{$data:s}=this;return s.width||120},function(t){const{$data:s}=this;return"0 0 "+(s.width||120)+" "+(s.width||120)},function(t){const{$data:s}=this;return(s.width||120)/2},function(t){const{$data:s}=this;return((s.width||120)-(s.strokeWidth||6))/2},function(t){const{$data:s}=this;return s.strokeWidth||6},function(t){const{$data:s}=this;return this.getCirclePathClasses()},function(t){const{$data:s}=this;return this.circleCircumference},function(t){const{$data:s}=this;return this.circleOffset}],n:[{t:0,d:1,g:"div",a:[{k:"part",v:"base",d:0},{k:"class",v:"progress",d:0},{k:":class",f:1,d:1}],c:[{t:2,d:0,x:" 线性进度条 "},{t:1,d:0,s:1,x:" "},{t:7,d:1,b:[{f:2,c:[{t:0,d:1,g:"div",a:[{k:"part",v:"outer",d:0},{k:"class",v:"progress__outer",d:0},{k:":style",f:3,d:1}],c:[{t:0,d:1,g:"div",a:[{k:"part",v:"inner",d:0},{k:"class",v:"progress__inner",d:0},{k:":class",f:4,d:1},{k:":style",f:5,d:1}],c:[]}]},{t:7,d:1,b:[{f:6,c:[{t:0,d:0,g:"span",a:[{k:"part",v:"text",d:0},{k:"class",v:"progress__text",d:0}],c:[{t:1,d:1,f:7}]}]}]}]}]},{t:1,d:0,s:1,x:" "},{t:2,d:0,x:" 圆形进度条 "},{t:1,d:0,s:1,x:" "},{t:7,d:1,b:[{f:8,c:[{t:0,d:1,g:"svg",a:[{k:"part",v:"circle",d:0},{k:"class",v:"progress__circle",d:0},{k:":width",f:9,d:1},{k:":height",f:9,d:1},{k:":viewBox",f:10,d:1}],c:[{t:0,d:1,g:"circle",a:[{k:"part",v:"circle-track",d:0},{k:"class",v:"progress__circle-track",d:0},{k:":cx",f:11,d:1},{k:":cy",f:11,d:1},{k:":r",f:12,d:1},{k:":stroke-width",f:13,d:1}],c:[]},{t:1,d:0,s:1,x:" "},{t:0,d:1,g:"circle",a:[{k:"part",v:"circle-path",d:0},{k:"class",v:"progress__circle-path",d:0},{k:":class",f:14,d:1},{k:":cx",f:11,d:1},{k:":cy",f:11,d:1},{k:":r",f:12,d:1},{k:":stroke-width",f:13,d:1},{k:":stroke-dasharray",f:15,d:1},{k:":stroke-dashoffset",f:16,d:1}],c:[]}]},{t:1,d:0,s:1,x:" "},{t:7,d:1,b:[{f:6,c:[{t:0,d:0,g:"span",a:[{k:"part",v:"circle-text",d:0},{k:"class",v:"progress__circle-text",d:0}],c:[{t:1,d:1,f:7}]}]}]}]}]}]}],s:{tf:16,cf:16,dn:1,tn:1,sn:0}};export{t as __SOLELY_IR__,t as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./style.css.cjs"),t=require("./index.html.cjs"),a=require("../../../runtime/component/base-element.cjs"),s=require("../../../runtime/component/decorators.cjs");Object.getOwnPropertyDescriptor;exports.SolelyRadio=class extends a.default{get checked(){return this.$data.checked}set checked(e){this.setChecked(e)}get value(){return this.$data.value}set value(e){this.$data.value=e}getRadioClasses(){return{"is-checked":!!this.$data.checked,"is-disabled":!!this.$data.disabled,[`radio--${this.$data.type}`]:!!this.$data.type,"radio--block":!!this.$data.block}}mounted(){this.refresh(),this.updateAriaAttributes()}updated(){this.updateAriaAttributes()}updateAriaAttributes(){
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./style.css.cjs"),t=require("./index.html.cjs"),a=require("../../../runtime/component/base-element.cjs"),s=require("../../../runtime/component/decorators.cjs");Object.getOwnPropertyDescriptor;exports.SolelyRadio=class extends a.default{get checked(){return this.$data.checked}set checked(e){this.setChecked(e)}get value(){return this.$data.value}set value(e){this.$data.value=e}getRadioClasses(){return{"is-checked":!!this.$data.checked,"is-disabled":!!this.$data.disabled,[`radio--${this.$data.type}`]:!!this.$data.type,"radio--block":!!this.$data.block}}mounted(){this.refresh(),this.updateAriaAttributes()}updated(){this.updateAriaAttributes()}updateAriaAttributes(){const e=this.shadowRoot?.querySelector(".radio");e&&(e.setAttribute("aria-checked",this.$data.checked?"true":"false"),e.setAttribute("aria-disabled",this.$data.disabled?"true":"false"))}handleClick(e){this.$data.disabled||this.$data.checked||(this.$data.name&&this.uncheckSameNameRadios(),this.$data.checked=!0,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}handleKeyDown(e){this.$data.disabled||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.handleClick(e))}uncheckSameNameRadios(){const e=this.$data.name;e&&this.getRootNode().querySelectorAll("solely-radio").forEach(t=>{if(t!==this&&t.getAttribute("name")===e){const e=t;"function"==typeof e?.setChecked&&e.setChecked(!1)}})}setChecked(e){this.$data.checked=e}getChecked(){return this.$data.checked}},exports.SolelyRadio=((e,t)=>{for(var a,s=t,d=e.length-1;d>=0;d--)(a=e[d])&&(s=a(s)||s);return s})([s.CustomElement({tagName:"solely-radio",template:t.__SOLELY_IR__,styles:e.default,shadowDOM:{use:!0,mode:"open"},props:[{name:"checked",type:"boolean",default:!1},{name:"disabled",type:"boolean",default:!1},{name:"content",type:"string",default:""},{name:"value",type:"string",default:""},{name:"type",type:"string",default:"primary"},{name:"name",type:"string",default:""},{name:"block",type:"boolean",default:!1}],model:{prop:"checked",event:"change"}})],exports.SolelyRadio);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t={t:"root",v:"1.2.0",fns:[function(t){const{$data:a}=this;return this.getRadioClasses()},function(t){const{$data:a}=this;return a.checked?"true":"false"},function(t){const{$data:a}=this;return a.disabled?"true":"false"},function(t,a){const{$data:s}=this,{value:e,checked:d}=
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t={t:"root",v:"1.2.0",fns:[function(t){const{$data:a}=this;return this.getRadioClasses()},function(t){const{$data:a}=this;return a.checked?"true":"false"},function(t){const{$data:a}=this;return a.disabled?"true":"false"},function(t,a){const{$data:s}=this,{value:e,checked:d}=t?.target||{};this.handleClick(t)},function(t){const{$data:a}=this;return`${a.content}`}],n:[{t:0,d:1,g:"label",a:[{k:"part",v:"base",d:0},{k:"class",v:"radio",d:0},{k:":class",f:1,d:1},{k:"role",v:"radio",d:0},{k:":aria-checked",f:2,d:1},{k:":aria-disabled",f:3,d:1},{k:"@click",f:4,d:1}],c:[{t:0,d:0,s:1,g:"span",a:[{k:"part",v:"input",d:0},{k:"class",v:"radio__input",d:0}],c:[]},{t:1,d:0,s:1,x:" "},{t:0,d:0,g:"span",a:[{k:"part",v:"content",d:0},{k:"class",v:"radio__content",d:0}],c:[{t:0,d:0,g:"slot",a:[],c:[{t:1,d:1,f:5}]}]}]}],s:{tf:5,cf:5,dn:1,tn:1,sn:0}};exports.__SOLELY_IR__=t,exports.default=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const t={t:"root",v:"1.2.0",fns:[function(t){const{$data:a}=this;return this.getRadioClasses()},function(t){const{$data:a}=this;return a.checked?"true":"false"},function(t){const{$data:a}=this;return a.disabled?"true":"false"},function(t,a){const{$data:
|
|
1
|
+
const t={t:"root",v:"1.2.0",fns:[function(t){const{$data:a}=this;return this.getRadioClasses()},function(t){const{$data:a}=this;return a.checked?"true":"false"},function(t){const{$data:a}=this;return a.disabled?"true":"false"},function(t,a){const{$data:s}=this,{value:d,checked:n}=t?.target||{};this.handleClick(t)},function(t){const{$data:a}=this;return`${a.content}`}],n:[{t:0,d:1,g:"label",a:[{k:"part",v:"base",d:0},{k:"class",v:"radio",d:0},{k:":class",f:1,d:1},{k:"role",v:"radio",d:0},{k:":aria-checked",f:2,d:1},{k:":aria-disabled",f:3,d:1},{k:"@click",f:4,d:1}],c:[{t:0,d:0,s:1,g:"span",a:[{k:"part",v:"input",d:0},{k:"class",v:"radio__input",d:0}],c:[]},{t:1,d:0,s:1,x:" "},{t:0,d:0,g:"span",a:[{k:"part",v:"content",d:0},{k:"class",v:"radio__content",d:0}],c:[{t:0,d:0,g:"slot",a:[],c:[{t:1,d:1,f:5}]}]}]}],s:{tf:5,cf:5,dn:1,tn:1,sn:0}};export{t as __SOLELY_IR__,t as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"./style.css.js";import{__SOLELY_IR__ as t}from"./index.html.js";import a from"../../../runtime/component/base-element.js";import{CustomElement as s}from"../../../runtime/component/decorators.js";Object.getOwnPropertyDescriptor;let d=class extends a{get checked(){return this.$data.checked}set checked(e){this.setChecked(e)}get value(){return this.$data.value}set value(e){this.$data.value=e}getRadioClasses(){return{"is-checked":!!this.$data.checked,"is-disabled":!!this.$data.disabled,[`radio--${this.$data.type}`]:!!this.$data.type,"radio--block":!!this.$data.block}}mounted(){this.refresh(),this.updateAriaAttributes()}updated(){this.updateAriaAttributes()}updateAriaAttributes(){
|
|
1
|
+
import e from"./style.css.js";import{__SOLELY_IR__ as t}from"./index.html.js";import a from"../../../runtime/component/base-element.js";import{CustomElement as s}from"../../../runtime/component/decorators.js";Object.getOwnPropertyDescriptor;let d=class extends a{get checked(){return this.$data.checked}set checked(e){this.setChecked(e)}get value(){return this.$data.value}set value(e){this.$data.value=e}getRadioClasses(){return{"is-checked":!!this.$data.checked,"is-disabled":!!this.$data.disabled,[`radio--${this.$data.type}`]:!!this.$data.type,"radio--block":!!this.$data.block}}mounted(){this.refresh(),this.updateAriaAttributes()}updated(){this.updateAriaAttributes()}updateAriaAttributes(){const e=this.shadowRoot?.querySelector(".radio");e&&(e.setAttribute("aria-checked",this.$data.checked?"true":"false"),e.setAttribute("aria-disabled",this.$data.disabled?"true":"false"))}handleClick(e){this.$data.disabled||this.$data.checked||(this.$data.name&&this.uncheckSameNameRadios(),this.$data.checked=!0,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}handleKeyDown(e){this.$data.disabled||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.handleClick(e))}uncheckSameNameRadios(){const e=this.$data.name;e&&this.getRootNode().querySelectorAll("solely-radio").forEach(t=>{if(t!==this&&t.getAttribute("name")===e){const e=t;"function"==typeof e?.setChecked&&e.setChecked(!1)}})}setChecked(e){this.$data.checked=e}getChecked(){return this.$data.checked}};d=((e,t)=>{for(var a,s=t,d=e.length-1;d>=0;d--)(a=e[d])&&(s=a(s)||s);return s})([s({tagName:"solely-radio",template:t,styles:e,shadowDOM:{use:!0,mode:"open"},props:[{name:"checked",type:"boolean",default:!1},{name:"disabled",type:"boolean",default:!1},{name:"content",type:"string",default:""},{name:"value",type:"string",default:""},{name:"type",type:"string",default:"primary"},{name:"name",type:"string",default:""},{name:"block",type:"boolean",default:!1}],model:{prop:"checked",event:"change"}})],d);export{d as SolelyRadio};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./style.css.cjs"),a=require("./index.html.cjs"),e=require("../../../runtime/component/base-element.cjs"),s=require("../../../runtime/component/decorators.cjs");Object.getOwnPropertyDescriptor;exports.SolelyRate=class extends e.default{getRateClasses(){return{"is-disabled":!!this.$data.disabled,"is-readonly":!!this.$data.readonly}}get value(){return this.$data.value||0}set value(t){this.$data.disabled||this.$data.readonly||this.setValue(t)}getStarClasses(t){const a=this.$data.hoverValue,e=this.$data.value||0,s=void 0!==a?a:e;return{"rate__star--full":t<=s,"rate__star--half":!!this.$data.allowHalf&&t-.5===s,"rate__star--zero":t>s}}mounted(){this.refresh(),this.$data.hoverValue=void 0,this.generateStarCount()}updated(){this.updateAriaAttributes()}updateAriaAttributes(){
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./style.css.cjs"),a=require("./index.html.cjs"),e=require("../../../runtime/component/base-element.cjs"),s=require("../../../runtime/component/decorators.cjs");Object.getOwnPropertyDescriptor;exports.SolelyRate=class extends e.default{getRateClasses(){return{"is-disabled":!!this.$data.disabled,"is-readonly":!!this.$data.readonly}}get value(){return this.$data.value||0}set value(t){this.$data.disabled||this.$data.readonly||this.setValue(t)}getStarClasses(t){const a=this.$data.hoverValue,e=this.$data.value||0,s=void 0!==a?a:e;return{"rate__star--full":t<=s,"rate__star--half":!!this.$data.allowHalf&&t-.5===s,"rate__star--zero":t>s}}mounted(){this.refresh(),this.$data.hoverValue=void 0,this.generateStarCount()}updated(){this.updateAriaAttributes()}updateAriaAttributes(){const t=this.shadowRoot?.querySelector(".rate");t&&(t.setAttribute("aria-valuenow",String(this.$data.value||0)),t.setAttribute("aria-valuemin","0"),t.setAttribute("aria-valuemax",String(this.$data.count||5)),t.setAttribute("aria-disabled",this.$data.disabled?"true":"false"),t.setAttribute("aria-readonly",this.$data.readonly?"true":"false"))}generateStarCount(){const t=this.$data.count||5;this.$data.starCount=Array.from({length:t},(t,a)=>a+1)}handleClick(t){if(this.$data.disabled||this.$data.readonly)return;const a=this.$data.allowHalf&&this.$data.hoverValue||t;this.$data.allowClear&&a===this.$data.value?this.$data.value=0:this.$data.value=a,this.$data.hoverValue=void 0,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}handleMouseEnter(t){this.$data.disabled||this.$data.readonly||(this.$data.hoverValue=t)}handleMouseLeave(){this.$data.disabled||this.$data.readonly||(this.$data.hoverValue=void 0)}handleKeyDown(t){if(this.$data.disabled||this.$data.readonly)return;const a=this.$data.count||5,e=this.$data.value||0;if("ArrowRight"===t.key||"ArrowUp"===t.key){t.preventDefault();const s=this.$data.allowHalf?.5:1,l=Math.min(a,e+s);this.$data.value=l,this.dispatchChangeEvent()}else if("ArrowLeft"===t.key||"ArrowDown"===t.key){t.preventDefault();const a=this.$data.allowHalf?.5:1,s=Math.max(0,e-a);this.$data.value=s,this.dispatchChangeEvent()}}dispatchChangeEvent(){this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}setValue(t){this.$data.value=t}getValue(){return this.$data.value}},exports.SolelyRate=((t,a)=>{for(var e,s=a,l=t.length-1;l>=0;l--)(e=t[l])&&(s=e(s)||s);return s})([s.CustomElement({tagName:"solely-rate",template:a.__SOLELY_IR__,styles:t.default,shadowDOM:{use:!0,mode:"open"},props:[{name:"value",type:"number",default:0},{name:"count",type:"number"},{name:"allowHalf",type:"boolean",default:!1},{name:"disabled",type:"boolean",default:!1},{name:"allowClear",type:"boolean",default:!1},{name:"character",type:"string"},{name:"readonly",type:"boolean",default:!1}]})],exports.SolelyRate);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a={t:"root",v:"1.2.0",fns:[function(a){const{$data:t}=this;return this.getRateClasses()},function(a){const{$data:t}=this;return"评分,当前 "+(t.value||0)+" 分"},function(a){const{$data:t}=this;return t.disabled?"true":"false"},function(a){const{$data:t}=this;return t.readonly?"true":"false"},function(a){const{$data:t}=this;return t.starCount},function(a){const{$data:t}=this;var[e]=a.map(a=>a.itmVal),[n]=a.map(a=>a.idxVal);return this.getStarClasses(e)},function(a){const{$data:t}=this;var[e]=a.map(a=>a.itmVal),[n]=a.map(a=>a.idxVal);return t.character||"★"},function(a){const{$data:t}=this;var[e]=a.map(a=>a.itmVal),[n]=a.map(a=>a.idxVal);return e===(t.value||0)?"true":"false"},function(a){const{$data:t}=this;var[e]=a.map(a=>a.itmVal),[n]=a.map(a=>a.idxVal);return e+" 分"},function(a){const{$data:t}=this;var[e]=a.map(a=>a.itmVal),[n]=a.map(a=>a.idxVal);return 1===e?"0":"-1"},function(a,t){const{$data:e}=this,{value:n,checked:
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a={t:"root",v:"1.2.0",fns:[function(a){const{$data:t}=this;return this.getRateClasses()},function(a){const{$data:t}=this;return"评分,当前 "+(t.value||0)+" 分"},function(a){const{$data:t}=this;return t.disabled?"true":"false"},function(a){const{$data:t}=this;return t.readonly?"true":"false"},function(a){const{$data:t}=this;return t.starCount},function(a){const{$data:t}=this;var[e]=a.map(a=>a.itmVal),[n]=a.map(a=>a.idxVal);return this.getStarClasses(e)},function(a){const{$data:t}=this;var[e]=a.map(a=>a.itmVal),[n]=a.map(a=>a.idxVal);return t.character||"★"},function(a){const{$data:t}=this;var[e]=a.map(a=>a.itmVal),[n]=a.map(a=>a.idxVal);return e===(t.value||0)?"true":"false"},function(a){const{$data:t}=this;var[e]=a.map(a=>a.itmVal),[n]=a.map(a=>a.idxVal);return e+" 分"},function(a){const{$data:t}=this;var[e]=a.map(a=>a.itmVal),[n]=a.map(a=>a.idxVal);return 1===e?"0":"-1"},function(a,t){const{$data:e}=this,{value:n,checked:r}=a?.target||{};var[s]=t.map(a=>a.itmVal),[i]=t.map(a=>a.idxVal);this.handleClick(s)},function(a,t){const{$data:e}=this,{value:n,checked:r}=a?.target||{};var[s]=t.map(a=>a.itmVal),[i]=t.map(a=>a.idxVal);this.handleMouseEnter(s)},function(a,t){const{$data:e}=this,{value:n,checked:r}=a?.target||{};var[s]=t.map(a=>a.itmVal),[i]=t.map(a=>a.idxVal);this.handleMouseLeave(s)},function(a){const{$data:t}=this;var[e]=a.map(a=>a.itmVal),[n]=a.map(a=>a.idxVal);return`${t.character||"★"}`}],n:[{t:0,d:1,g:"div",a:[{k:"part",v:"base",d:0},{k:"class",v:"rate",d:0},{k:":class",f:1,d:1},{k:"role",v:"radiogroup",d:0},{k:":aria-label",f:2,d:1},{k:":aria-disabled",f:3,d:1},{k:":aria-readonly",f:4,d:1}],c:[{t:6,d:1,f:5,i:"i",n:"index",a:[],c:[{t:0,d:1,g:"span",a:[{k:"part",v:"star",d:0},{k:"class",v:"rate__star",d:0},{k:":class",f:6,d:1},{k:":data-char",f:7,d:1},{k:"role",v:"radio",d:0},{k:":aria-checked",f:8,d:1},{k:":aria-label",f:9,d:1},{k:":tabindex",f:10,d:1},{k:"@click",f:11,d:1},{k:"@mouseenter",f:12,d:1},{k:"@mouseleave",f:13,d:1}],c:[{t:1,d:1,f:14}]}]}]}],s:{tf:14,cf:14,dn:1,tn:1,sn:0}};exports.__SOLELY_IR__=a,exports.default=a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a={t:"root",v:"1.2.0",fns:[function(a){const{$data:t}=this;return this.getRateClasses()},function(a){const{$data:t}=this;return"评分,当前 "+(t.value||0)+" 分"},function(a){const{$data:t}=this;return t.disabled?"true":"false"},function(a){const{$data:t}=this;return t.readonly?"true":"false"},function(a){const{$data:t}=this;return t.starCount},function(a){const{$data:t}=this;var[n]=a.map(a=>a.itmVal),[
|
|
1
|
+
const a={t:"root",v:"1.2.0",fns:[function(a){const{$data:t}=this;return this.getRateClasses()},function(a){const{$data:t}=this;return"评分,当前 "+(t.value||0)+" 分"},function(a){const{$data:t}=this;return t.disabled?"true":"false"},function(a){const{$data:t}=this;return t.readonly?"true":"false"},function(a){const{$data:t}=this;return t.starCount},function(a){const{$data:t}=this;var[n]=a.map(a=>a.itmVal),[e]=a.map(a=>a.idxVal);return this.getStarClasses(n)},function(a){const{$data:t}=this;var[n]=a.map(a=>a.itmVal),[e]=a.map(a=>a.idxVal);return t.character||"★"},function(a){const{$data:t}=this;var[n]=a.map(a=>a.itmVal),[e]=a.map(a=>a.idxVal);return n===(t.value||0)?"true":"false"},function(a){const{$data:t}=this;var[n]=a.map(a=>a.itmVal),[e]=a.map(a=>a.idxVal);return n+" 分"},function(a){const{$data:t}=this;var[n]=a.map(a=>a.itmVal),[e]=a.map(a=>a.idxVal);return 1===n?"0":"-1"},function(a,t){const{$data:n}=this,{value:e,checked:i}=a?.target||{};var[d]=t.map(a=>a.itmVal),[r]=t.map(a=>a.idxVal);this.handleClick(d)},function(a,t){const{$data:n}=this,{value:e,checked:i}=a?.target||{};var[d]=t.map(a=>a.itmVal),[r]=t.map(a=>a.idxVal);this.handleMouseEnter(d)},function(a,t){const{$data:n}=this,{value:e,checked:i}=a?.target||{};var[d]=t.map(a=>a.itmVal),[r]=t.map(a=>a.idxVal);this.handleMouseLeave(d)},function(a){const{$data:t}=this;var[n]=a.map(a=>a.itmVal),[e]=a.map(a=>a.idxVal);return`${t.character||"★"}`}],n:[{t:0,d:1,g:"div",a:[{k:"part",v:"base",d:0},{k:"class",v:"rate",d:0},{k:":class",f:1,d:1},{k:"role",v:"radiogroup",d:0},{k:":aria-label",f:2,d:1},{k:":aria-disabled",f:3,d:1},{k:":aria-readonly",f:4,d:1}],c:[{t:6,d:1,f:5,i:"i",n:"index",a:[],c:[{t:0,d:1,g:"span",a:[{k:"part",v:"star",d:0},{k:"class",v:"rate__star",d:0},{k:":class",f:6,d:1},{k:":data-char",f:7,d:1},{k:"role",v:"radio",d:0},{k:":aria-checked",f:8,d:1},{k:":aria-label",f:9,d:1},{k:":tabindex",f:10,d:1},{k:"@click",f:11,d:1},{k:"@mouseenter",f:12,d:1},{k:"@mouseleave",f:13,d:1}],c:[{t:1,d:1,f:14}]}]}]}],s:{tf:14,cf:14,dn:1,tn:1,sn:0}};export{a as __SOLELY_IR__,a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"./style.css.js";import{__SOLELY_IR__ as a}from"./index.html.js";import e from"../../../runtime/component/base-element.js";import{CustomElement as s}from"../../../runtime/component/decorators.js";Object.getOwnPropertyDescriptor;let r=class extends e{getRateClasses(){return{"is-disabled":!!this.$data.disabled,"is-readonly":!!this.$data.readonly}}get value(){return this.$data.value||0}set value(t){this.$data.disabled||this.$data.readonly||this.setValue(t)}getStarClasses(t){const a=this.$data.hoverValue,e=this.$data.value||0,s=void 0!==a?a:e;return{"rate__star--full":t<=s,"rate__star--half":!!this.$data.allowHalf&&t-.5===s,"rate__star--zero":t>s}}mounted(){this.refresh(),this.$data.hoverValue=void 0,this.generateStarCount()}updated(){this.updateAriaAttributes()}updateAriaAttributes(){
|
|
1
|
+
import t from"./style.css.js";import{__SOLELY_IR__ as a}from"./index.html.js";import e from"../../../runtime/component/base-element.js";import{CustomElement as s}from"../../../runtime/component/decorators.js";Object.getOwnPropertyDescriptor;let r=class extends e{getRateClasses(){return{"is-disabled":!!this.$data.disabled,"is-readonly":!!this.$data.readonly}}get value(){return this.$data.value||0}set value(t){this.$data.disabled||this.$data.readonly||this.setValue(t)}getStarClasses(t){const a=this.$data.hoverValue,e=this.$data.value||0,s=void 0!==a?a:e;return{"rate__star--full":t<=s,"rate__star--half":!!this.$data.allowHalf&&t-.5===s,"rate__star--zero":t>s}}mounted(){this.refresh(),this.$data.hoverValue=void 0,this.generateStarCount()}updated(){this.updateAriaAttributes()}updateAriaAttributes(){const t=this.shadowRoot?.querySelector(".rate");t&&(t.setAttribute("aria-valuenow",String(this.$data.value||0)),t.setAttribute("aria-valuemin","0"),t.setAttribute("aria-valuemax",String(this.$data.count||5)),t.setAttribute("aria-disabled",this.$data.disabled?"true":"false"),t.setAttribute("aria-readonly",this.$data.readonly?"true":"false"))}generateStarCount(){const t=this.$data.count||5;this.$data.starCount=Array.from({length:t},(t,a)=>a+1)}handleClick(t){if(this.$data.disabled||this.$data.readonly)return;const a=this.$data.allowHalf&&this.$data.hoverValue||t;this.$data.allowClear&&a===this.$data.value?this.$data.value=0:this.$data.value=a,this.$data.hoverValue=void 0,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}handleMouseEnter(t){this.$data.disabled||this.$data.readonly||(this.$data.hoverValue=t)}handleMouseLeave(){this.$data.disabled||this.$data.readonly||(this.$data.hoverValue=void 0)}handleKeyDown(t){if(this.$data.disabled||this.$data.readonly)return;const a=this.$data.count||5,e=this.$data.value||0;if("ArrowRight"===t.key||"ArrowUp"===t.key){t.preventDefault();const s=this.$data.allowHalf?.5:1,r=Math.min(a,e+s);this.$data.value=r,this.dispatchChangeEvent()}else if("ArrowLeft"===t.key||"ArrowDown"===t.key){t.preventDefault();const a=this.$data.allowHalf?.5:1,s=Math.max(0,e-a);this.$data.value=s,this.dispatchChangeEvent()}}dispatchChangeEvent(){this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}setValue(t){this.$data.value=t}getValue(){return this.$data.value}};r=((t,a)=>{for(var e,s=a,r=t.length-1;r>=0;r--)(e=t[r])&&(s=e(s)||s);return s})([s({tagName:"solely-rate",template:a,styles:t,shadowDOM:{use:!0,mode:"open"},props:[{name:"value",type:"number",default:0},{name:"count",type:"number"},{name:"allowHalf",type:"boolean",default:!1},{name:"disabled",type:"boolean",default:!1},{name:"allowClear",type:"boolean",default:!1},{name:"character",type:"string"},{name:"readonly",type:"boolean",default:!1}]})],r);export{r as SolelyRate};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./style.css.cjs"),e=require("./index.html.cjs"),s=require("../../../runtime/component/base-element.cjs"),a=require("../../../runtime/component/decorators.cjs");Object.getOwnPropertyDescriptor;exports.SolelySelect=class extends s.default{clickOutsideHandler;slotObserver;closeTimer;get value(){return this.$data.value||""}set value(t){this.$data.disabled||this.setValue(t)}getSelectClasses(){const t={};return"small"===this.$data.size?t["select--sm"]=!0:"large"===this.$data.size?t["select--lg"]=!0:t["select--md"]=!0,t["is-disabled"]=!!this.$data.disabled,t["is-focused"]=!!this.$data.focused,t["is-open"]=!!this.$data.isOpen,t["use-slot"]=this.$data.useSlot,t}getDropdownClasses(){return{"select__dropdown--closing":!!this.$data.closing,"select__dropdown--top":"top"===this.$data.dropdownPlacement,"select__dropdown--bottom":"bottom"===this.$data.dropdownPlacement}}getOptionClasses(t){return{"select__option--selected":t.value===this.$data.value,"select__option--disabled":!!t.disabled}}calculateDropdownPlacement(){const t=this.getBoundingClientRect(),e=window.innerHeight-t.bottom,s=t.top;this.$data.dropdownPlacement=e<256&&s>e?"top":"bottom"}collectSlotOptions(){const t=Array.from(this.children);this.$data.hasHeaderSlot=t.some(t=>"header"===t.getAttribute("slot")),this.$data.hasFooterSlot=t.some(t=>"footer"===t.getAttribute("slot"));const e=t.filter(t=>!t.getAttribute("slot")&&t.hasAttribute("data-value"));0!==e.length?(this.$data.useSlot=!0,this.$data.slotOptions=e.map(t=>{const e=t;return{value:e.getAttribute("data-value")||"",label:e.getAttribute("data-label")||e.textContent?.trim()||"",disabled:e.hasAttribute("disabled"),element:t}}),this.syncSelectedLabel()):this.$data.useSlot=!1}mounted(){this.collectSlotOptions(),this.$data.useSlot||this.parseOptions(),this.setupSlotObserver(),this.clickOutsideHandler=t=>{t.composedPath().some(t=>t===this)||this.closeDropdown()},document.addEventListener("click",this.clickOutsideHandler)}setupSlotObserver(){this.slotObserver=new MutationObserver(()=>{this.collectSlotOptions()}),this.slotObserver.observe(this,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["data-value","data-label","disabled"]})}unmounted(){this.clickOutsideHandler&&document.removeEventListener("click",this.clickOutsideHandler),this.slotObserver&&this.slotObserver.disconnect(),this.closeTimer&&(clearTimeout(this.closeTimer),this.closeTimer=void 0)}updated(){const t=this.$data.selectedLabel,e=this.getCurrentLabel();t!==e&&(this.$data.selectedLabel=e),this.updateAriaAttributes()}updateAriaAttributes(){const t=this.shadowRoot?.querySelector(".select__trigger");t&&(t.setAttribute("aria-expanded",this.$data.isOpen?"true":"false"),t.setAttribute("aria-disabled",this.$data.disabled?"true":"false"))}getCurrentLabel(){if(this.$data.useSlot){const t=this.$data.slotOptions.find(t=>t.value===this.$data.value);return t?.label||""}{const t=this.$data.parsedOptions.find(t=>t.value===this.$data.value);return t?.label||""}}parseOptions(){this.$data.parsedOptions=Array.isArray(this.$data.options)?this.$data.options:[],this.syncSelectedLabel()}syncSelectedLabel(){if(this.$data.useSlot){const t=this.$data.slotOptions?.find(t=>t.value===this.$data.value);this.$data.selectedLabel=t?.label||""}else{const t=this.$data.parsedOptions?.find(t=>t.value===this.$data.value);this.$data.selectedLabel=t?.label||""}}handleClick(){if(this.$data.disabled)return;const t=!this.$data.isOpen;this.$data.isOpen=t,this.$data.focused=t,t&&this.calculateDropdownPlacement()}handleSelect(t,e){t.disabled||(this.$data.value=t.value,this.syncSelectedLabel(),this.closeDropdown(),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}handleSlotClick(t){const e=t.target.closest("[data-value]");if(!e)return;if(e.hasAttribute("data-group"))return void t.stopPropagation();const s=e.getAttribute("data-value")||"",a=e.getAttribute("data-label")||e.textContent?.trim()||"";e.hasAttribute("disabled")||(this.$data.value=s,this.$data.selectedLabel=a,this.closeDropdown(),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}handleHeaderFooterClick(t){t.stopPropagation()}handleClear(t){t.stopPropagation(),this.$data.value="",this.$data.selectedLabel="",this.dispatchEvent(new Event("clear",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}closeDropdown(){this.$data.isOpen&&(this.$data.closing=!0,this.closeTimer=setTimeout(()=>{this.$data.isOpen=!1,this.$data.closing=!1,this.$data.focused=!1,this.closeTimer=void 0},200))}setValue(t,e=!1){this.$data.value=t,this.syncSelectedLabel(),e||this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}getValue(){return this.$data.value||""}setOptions(t){this.$data.options=t,this.$data.useSlot=!1,this.parseOptions()}},exports.SolelySelect=((t,e)=>{for(var s,a=e,i=t.length-1;i>=0;i--)(s=t[i])&&(a=s(a)||a);return a})([a.CustomElement({tagName:"solely-select",template:e.__SOLELY_IR__,styles:t.default,shadowDOM:{use:!0,mode:"open"},props:[{name:"value",type:"string",default:""},{name:"placeholder",type:"string",default:"请选择"},{name:"disabled",type:"boolean",default:!1},{name:"size",type:"string",default:"medium"},{name:"clearable",type:"boolean",default:!1},{name:"options",type:"array",default:[]},{name:"multiple",type:"boolean",default:!1},{name:"block",type:"boolean",default:!1}]})],exports.SolelySelect);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t={t:"root",v:"1.2.0",fns:[function(t){const{$data:a}=this;return this.getSelectClasses()},function(t){const{$data:a}=this;return a.isOpen?"true":"false"},function(t){const{$data:a}=this;return a.disabled?"true":"false"},function(t,a){const{$data:e}=this,{value:d,checked:s}=
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t={t:"root",v:"1.2.0",fns:[function(t){const{$data:a}=this;return this.getSelectClasses()},function(t){const{$data:a}=this;return a.isOpen?"true":"false"},function(t){const{$data:a}=this;return a.disabled?"true":"false"},function(t,a){const{$data:e}=this,{value:d,checked:s}=t?.target||{};this.handleClick(t)},function(t){const{$data:a}=this;return!a.selectedLabel},function(t){const{$data:a}=this;return`${a.placeholder||"请选择"}`},function(t){const{$data:a}=this;return a.selectedLabel},function(t){const{$data:a}=this;return`${a.selectedLabel}`},function(t){const{$data:a}=this;return a.clearable&&a.selectedLabel&&!a.disabled},function(t,a){const{$data:e}=this,{value:d,checked:s}=t?.target||{};this.handleClear(t)},function(t){const{$data:a}=this;return a.isOpen},function(t){const{$data:a}=this;return this.getDropdownClasses()},function(t){const{$data:a}=this;return a.hasHeaderSlot},function(t,a){const{$data:e}=this,{value:d,checked:s}=t?.target||{};this.handleHeaderFooterClick(t)},function(t){const{$data:a}=this;return!a.useSlot},function(t){const{$data:a}=this;return 0===a.parsedOptions.length},function(t){const{$data:a}=this;return a.parsedOptions},function(t){const{$data:a}=this;var[e]=t.map(t=>t.itmVal),[d]=t.map(t=>t.idxVal);return this.getOptionClasses(e)},function(t){const{$data:a}=this;var[e]=t.map(t=>t.itmVal),[d]=t.map(t=>t.idxVal);return e.value===a.value?"true":"false"},function(t,a){const{$data:e}=this,{value:d,checked:s}=t?.target||{};var[c]=a.map(t=>t.itmVal),[n]=a.map(t=>t.idxVal);this.handleSelect(c,t)},function(t){const{$data:a}=this;var[e]=t.map(t=>t.itmVal),[d]=t.map(t=>t.idxVal);return`${e.label}`},function(t){const{$data:a}=this;return a.useSlot},function(t,a){const{$data:e}=this,{value:d,checked:s}=t?.target||{};this.handleSlotClick(t)},function(t){const{$data:a}=this;return a.hasFooterSlot}],n:[{t:0,d:1,g:"div",a:[{k:"part",v:"base",d:0},{k:"class",v:"select",d:0},{k:":class",f:1,d:1},{k:"role",v:"combobox",d:0},{k:":aria-expanded",f:2,d:1},{k:":aria-disabled",f:3,d:1},{k:"@click",f:4,d:1}],c:[{t:0,d:0,g:"div",a:[{k:"part",v:"selector",d:0},{k:"class",v:"select__selector",d:0}],c:[{t:7,d:1,b:[{f:5,c:[{t:0,d:0,g:"span",a:[{k:"part",v:"placeholder",d:0},{k:"class",v:"select__placeholder",d:0}],c:[{t:1,d:1,f:6}]}]}]},{t:1,d:0,s:1,x:" "},{t:7,d:1,b:[{f:7,c:[{t:0,d:0,g:"span",a:[{k:"part",v:"value",d:0},{k:"class",v:"select__value",d:0}],c:[{t:1,d:1,f:8}]}]}]},{t:1,d:0,s:1,x:" "},{t:7,d:1,b:[{f:9,c:[{t:0,d:1,g:"span",a:[{k:"part",v:"clear",d:0},{k:"class",v:"select__clear",d:0},{k:"@click",f:10,d:1}],c:[{t:1,d:0,s:1,x:"×"}]}]}]},{t:1,d:0,s:1,x:" "},{t:0,d:0,s:1,g:"span",a:[{k:"part",v:"arrow",d:0},{k:"class",v:"select__arrow",d:0}],c:[{t:1,d:0,s:1,x:"▼"}]}]},{t:2,d:0,x:" 下拉菜单 "},{t:1,d:0,s:1,x:" "},{t:7,d:1,b:[{f:11,c:[{t:0,d:1,g:"div",a:[{k:"part",v:"dropdown",d:0},{k:"class",v:"select__dropdown",d:0},{k:":class",f:12,d:1},{k:"role",v:"listbox",d:0}],c:[{t:2,d:0,x:" header 插槽 - 固定顶部 "},{t:1,d:0,s:1,x:" "},{t:7,d:1,b:[{f:13,c:[{t:0,d:1,g:"div",a:[{k:"part",v:"header",d:0},{k:"class",v:"select__header",d:0},{k:"@click",f:14,d:1}],c:[{t:0,d:0,s:1,g:"slot",a:[{k:"name",v:"header",d:0}],c:[]}]}]}]},{t:1,d:0,s:1,x:" "},{t:2,d:0,x:" 滚动内容区域 "},{t:0,d:0,g:"div",a:[{k:"part",v:"dropdown-content",d:0},{k:"class",v:"select__dropdown-content",d:0}],c:[{t:2,d:0,x:" 使用 options 属性时的渲染 "},{t:1,d:0,s:1,x:" "},{t:7,d:1,b:[{f:15,c:[{t:7,d:1,b:[{f:16,c:[{t:0,d:0,s:1,g:"div",a:[{k:"part",v:"empty",d:0},{k:"class",v:"select__empty",d:0}],c:[{t:1,d:0,s:1,x:"暂无数据"}]}]}]},{t:1,d:0,s:1,x:" "},{t:6,d:1,f:17,i:"option",n:"index",a:[],c:[{t:0,d:1,g:"div",a:[{k:"part",v:"option",d:0},{k:"class",v:"select__option",d:0},{k:":class",f:18,d:1},{k:"role",v:"option",d:0},{k:":aria-selected",f:19,d:1},{k:"@click",f:20,d:1}],c:[{t:0,d:0,g:"span",a:[{k:"part",v:"option-label",d:0},{k:"class",v:"select__option-label",d:0}],c:[{t:1,d:1,f:21}]}]}]}]}]},{t:1,d:0,s:1,x:" "},{t:2,d:0,x:" 使用插槽时的渲染 "},{t:1,d:0,s:1,x:" "},{t:7,d:1,b:[{f:22,c:[{t:0,d:1,g:"div",a:[{k:"part",v:"slot-options",d:0},{k:"class",v:"select__slot-options",d:0},{k:"@click",f:23,d:1}],c:[{t:0,d:0,s:1,g:"slot",a:[],c:[]}]}]}]}]},{t:2,d:0,x:" footer 插槽 - 固定底部 "},{t:1,d:0,s:1,x:" "},{t:7,d:1,b:[{f:24,c:[{t:0,d:1,g:"div",a:[{k:"part",v:"footer",d:0},{k:"class",v:"select__footer",d:0},{k:"@click",f:14,d:1}],c:[{t:0,d:0,s:1,g:"slot",a:[{k:"name",v:"footer",d:0}],c:[]}]}]}]}]}]}]}]}],s:{tf:24,cf:24,dn:1,tn:1,sn:0}};exports.__SOLELY_IR__=t,exports.default=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const t={t:"root",v:"1.2.0",fns:[function(t){const{$data:a}=this;return this.getSelectClasses()},function(t){const{$data:a}=this;return a.isOpen?"true":"false"},function(t){const{$data:a}=this;return a.disabled?"true":"false"},function(t,a){const{$data:d}=this,{value:
|
|
1
|
+
const t={t:"root",v:"1.2.0",fns:[function(t){const{$data:a}=this;return this.getSelectClasses()},function(t){const{$data:a}=this;return a.isOpen?"true":"false"},function(t){const{$data:a}=this;return a.disabled?"true":"false"},function(t,a){const{$data:d}=this,{value:s,checked:e}=t?.target||{};this.handleClick(t)},function(t){const{$data:a}=this;return!a.selectedLabel},function(t){const{$data:a}=this;return`${a.placeholder||"请选择"}`},function(t){const{$data:a}=this;return a.selectedLabel},function(t){const{$data:a}=this;return`${a.selectedLabel}`},function(t){const{$data:a}=this;return a.clearable&&a.selectedLabel&&!a.disabled},function(t,a){const{$data:d}=this,{value:s,checked:e}=t?.target||{};this.handleClear(t)},function(t){const{$data:a}=this;return a.isOpen},function(t){const{$data:a}=this;return this.getDropdownClasses()},function(t){const{$data:a}=this;return a.hasHeaderSlot},function(t,a){const{$data:d}=this,{value:s,checked:e}=t?.target||{};this.handleHeaderFooterClick(t)},function(t){const{$data:a}=this;return!a.useSlot},function(t){const{$data:a}=this;return 0===a.parsedOptions.length},function(t){const{$data:a}=this;return a.parsedOptions},function(t){const{$data:a}=this;var[d]=t.map(t=>t.itmVal),[s]=t.map(t=>t.idxVal);return this.getOptionClasses(d)},function(t){const{$data:a}=this;var[d]=t.map(t=>t.itmVal),[s]=t.map(t=>t.idxVal);return d.value===a.value?"true":"false"},function(t,a){const{$data:d}=this,{value:s,checked:e}=t?.target||{};var[c]=a.map(t=>t.itmVal),[n]=a.map(t=>t.idxVal);this.handleSelect(c,t)},function(t){const{$data:a}=this;var[d]=t.map(t=>t.itmVal),[s]=t.map(t=>t.idxVal);return`${d.label}`},function(t){const{$data:a}=this;return a.useSlot},function(t,a){const{$data:d}=this,{value:s,checked:e}=t?.target||{};this.handleSlotClick(t)},function(t){const{$data:a}=this;return a.hasFooterSlot}],n:[{t:0,d:1,g:"div",a:[{k:"part",v:"base",d:0},{k:"class",v:"select",d:0},{k:":class",f:1,d:1},{k:"role",v:"combobox",d:0},{k:":aria-expanded",f:2,d:1},{k:":aria-disabled",f:3,d:1},{k:"@click",f:4,d:1}],c:[{t:0,d:0,g:"div",a:[{k:"part",v:"selector",d:0},{k:"class",v:"select__selector",d:0}],c:[{t:7,d:1,b:[{f:5,c:[{t:0,d:0,g:"span",a:[{k:"part",v:"placeholder",d:0},{k:"class",v:"select__placeholder",d:0}],c:[{t:1,d:1,f:6}]}]}]},{t:1,d:0,s:1,x:" "},{t:7,d:1,b:[{f:7,c:[{t:0,d:0,g:"span",a:[{k:"part",v:"value",d:0},{k:"class",v:"select__value",d:0}],c:[{t:1,d:1,f:8}]}]}]},{t:1,d:0,s:1,x:" "},{t:7,d:1,b:[{f:9,c:[{t:0,d:1,g:"span",a:[{k:"part",v:"clear",d:0},{k:"class",v:"select__clear",d:0},{k:"@click",f:10,d:1}],c:[{t:1,d:0,s:1,x:"×"}]}]}]},{t:1,d:0,s:1,x:" "},{t:0,d:0,s:1,g:"span",a:[{k:"part",v:"arrow",d:0},{k:"class",v:"select__arrow",d:0}],c:[{t:1,d:0,s:1,x:"▼"}]}]},{t:2,d:0,x:" 下拉菜单 "},{t:1,d:0,s:1,x:" "},{t:7,d:1,b:[{f:11,c:[{t:0,d:1,g:"div",a:[{k:"part",v:"dropdown",d:0},{k:"class",v:"select__dropdown",d:0},{k:":class",f:12,d:1},{k:"role",v:"listbox",d:0}],c:[{t:2,d:0,x:" header 插槽 - 固定顶部 "},{t:1,d:0,s:1,x:" "},{t:7,d:1,b:[{f:13,c:[{t:0,d:1,g:"div",a:[{k:"part",v:"header",d:0},{k:"class",v:"select__header",d:0},{k:"@click",f:14,d:1}],c:[{t:0,d:0,s:1,g:"slot",a:[{k:"name",v:"header",d:0}],c:[]}]}]}]},{t:1,d:0,s:1,x:" "},{t:2,d:0,x:" 滚动内容区域 "},{t:0,d:0,g:"div",a:[{k:"part",v:"dropdown-content",d:0},{k:"class",v:"select__dropdown-content",d:0}],c:[{t:2,d:0,x:" 使用 options 属性时的渲染 "},{t:1,d:0,s:1,x:" "},{t:7,d:1,b:[{f:15,c:[{t:7,d:1,b:[{f:16,c:[{t:0,d:0,s:1,g:"div",a:[{k:"part",v:"empty",d:0},{k:"class",v:"select__empty",d:0}],c:[{t:1,d:0,s:1,x:"暂无数据"}]}]}]},{t:1,d:0,s:1,x:" "},{t:6,d:1,f:17,i:"option",n:"index",a:[],c:[{t:0,d:1,g:"div",a:[{k:"part",v:"option",d:0},{k:"class",v:"select__option",d:0},{k:":class",f:18,d:1},{k:"role",v:"option",d:0},{k:":aria-selected",f:19,d:1},{k:"@click",f:20,d:1}],c:[{t:0,d:0,g:"span",a:[{k:"part",v:"option-label",d:0},{k:"class",v:"select__option-label",d:0}],c:[{t:1,d:1,f:21}]}]}]}]}]},{t:1,d:0,s:1,x:" "},{t:2,d:0,x:" 使用插槽时的渲染 "},{t:1,d:0,s:1,x:" "},{t:7,d:1,b:[{f:22,c:[{t:0,d:1,g:"div",a:[{k:"part",v:"slot-options",d:0},{k:"class",v:"select__slot-options",d:0},{k:"@click",f:23,d:1}],c:[{t:0,d:0,s:1,g:"slot",a:[],c:[]}]}]}]}]},{t:2,d:0,x:" footer 插槽 - 固定底部 "},{t:1,d:0,s:1,x:" "},{t:7,d:1,b:[{f:24,c:[{t:0,d:1,g:"div",a:[{k:"part",v:"footer",d:0},{k:"class",v:"select__footer",d:0},{k:"@click",f:14,d:1}],c:[{t:0,d:0,s:1,g:"slot",a:[{k:"name",v:"footer",d:0}],c:[]}]}]}]}]}]}]}]}],s:{tf:24,cf:24,dn:1,tn:1,sn:0}};export{t as __SOLELY_IR__,t as default};
|