vue-devui 1.0.0-pre.0 → 1.0.0-rc.2
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 +126 -187
- package/alert/index.es.js +28 -30
- package/alert/index.umd.js +1 -1
- package/auto-complete/index.es.js +67 -82
- package/auto-complete/index.umd.js +3 -1
- package/auto-complete/style.css +1 -1
- package/badge/index.es.js +1 -1
- package/badge/index.umd.js +1 -1
- package/badge/style.css +1 -1
- package/button/index.es.js +39 -40
- package/button/index.umd.js +1 -1
- package/countdown/index.es.js +2 -1
- package/editable-select/index.es.js +122 -163
- package/editable-select/index.umd.js +1 -1
- package/fullscreen/index.es.js +13 -16
- package/fullscreen/index.umd.js +1 -1
- package/icon/index.es.js +39 -57
- package/icon/index.umd.js +1 -1
- package/image-preview/index.es.js +2 -1
- package/modal/index.es.js +81 -76
- package/modal/index.umd.js +1 -1
- package/modal/style.css +1 -1
- package/notification/index.es.js +38 -40
- package/notification/index.umd.js +1 -1
- package/nuxt/components/PanelBody.js +3 -0
- package/nuxt/components/PanelFooter.js +3 -0
- package/nuxt/components/PanelHeader.js +3 -0
- package/nuxt/components/Timeline.js +3 -0
- package/nuxt/components/TimelineItem.js +3 -0
- package/nuxt/components/alertProps.js +3 -0
- package/nuxt/components/fullscreenProps.js +3 -0
- package/nuxt/components/iconProps.js +2 -0
- package/nuxt/components/paginationProps.js +3 -0
- package/nuxt/components/panelProps.js +3 -0
- package/nuxt/components/searchProps.js +3 -0
- package/nuxt/components/tagProps.js +3 -0
- package/overlay/index.es.js +44 -37
- package/overlay/index.umd.js +1 -1
- package/overlay/style.css +1 -1
- package/package.json +8 -43
- package/pagination/index.es.js +10 -12
- package/pagination/index.umd.js +1 -1
- package/panel/index.es.js +45 -32
- package/panel/index.umd.js +1 -1
- package/popover/index.es.js +46 -39
- package/popover/index.umd.js +6 -6
- package/popover/style.css +1 -1
- package/progress/index.es.js +1 -1
- package/progress/index.umd.js +1 -1
- package/progress/style.css +1 -1
- package/radio/index.es.js +11 -11
- package/radio/index.umd.js +1 -1
- package/radio/style.css +1 -1
- package/read-tip/index.es.js +6 -3
- package/result/index.es.js +38 -53
- package/result/index.umd.js +1 -1
- package/ripple/index.es.js +47 -42
- package/ripple/index.umd.js +1 -1
- package/search/index.es.js +2 -5
- package/search/index.umd.js +4 -4
- package/skeleton/index.es.js +17 -17
- package/skeleton/index.umd.js +1 -1
- package/slider/index.es.js +60 -59
- package/slider/index.umd.js +1 -1
- package/splitter/index.es.js +215 -160
- package/splitter/index.umd.js +11 -11
- package/splitter/style.css +1 -1
- package/status/index.es.js +1 -4
- package/status/index.umd.js +1 -1
- package/status/style.css +1 -1
- package/style.css +1 -1
- package/tag/index.es.js +15 -18
- package/tag/index.umd.js +1 -1
- package/tag/style.css +1 -1
- package/tag-input/index.es.js +4 -2
- package/{accordion → timeline}/index.d.ts +0 -0
- package/{time-axis → timeline}/index.es.js +65 -78
- package/timeline/index.umd.js +1 -0
- package/{anchor → timeline}/package.json +1 -1
- package/timeline/style.css +1 -0
- package/upload/index.es.js +38 -40
- package/upload/index.umd.js +1 -1
- package/vue-devui.es.js +1478 -1196
- package/vue-devui.umd.js +19 -17
- package/accordion/index.es.js +0 -720
- package/accordion/index.umd.js +0 -1
- package/accordion/package.json +0 -7
- package/accordion/style.css +0 -1
- package/anchor/index.d.ts +0 -7
- package/anchor/index.es.js +0 -263
- package/anchor/index.umd.js +0 -1
- package/anchor/style.css +0 -1
- package/back-top/index.d.ts +0 -7
- package/back-top/index.es.js +0 -128
- package/back-top/index.umd.js +0 -1
- package/back-top/package.json +0 -7
- package/back-top/style.css +0 -1
- package/breadcrumb/index.d.ts +0 -7
- package/breadcrumb/index.es.js +0 -127
- package/breadcrumb/index.umd.js +0 -1
- package/breadcrumb/package.json +0 -7
- package/breadcrumb/style.css +0 -1
- package/carousel/index.d.ts +0 -7
- package/carousel/index.es.js +0 -329
- package/carousel/index.umd.js +0 -1
- package/carousel/package.json +0 -7
- package/carousel/style.css +0 -1
- package/cascader/index.d.ts +0 -7
- package/cascader/index.es.js +0 -5963
- package/cascader/index.umd.js +0 -27
- package/cascader/package.json +0 -7
- package/cascader/style.css +0 -1
- package/color-picker/index.d.ts +0 -7
- package/color-picker/index.es.js +0 -8187
- package/color-picker/index.umd.js +0 -27
- package/color-picker/package.json +0 -7
- package/color-picker/style.css +0 -1
- package/date-picker/index.d.ts +0 -7
- package/date-picker/index.es.js +0 -1171
- package/date-picker/index.umd.js +0 -1
- package/date-picker/package.json +0 -7
- package/date-picker/style.css +0 -1
- package/dragdrop/index.d.ts +0 -7
- package/dragdrop/index.es.js +0 -157
- package/dragdrop/index.umd.js +0 -1
- package/dragdrop/package.json +0 -7
- package/drawer/index.d.ts +0 -7
- package/drawer/index.es.js +0 -234
- package/drawer/index.umd.js +0 -1
- package/drawer/package.json +0 -7
- package/drawer/style.css +0 -1
- package/dropdown/index.d.ts +0 -7
- package/dropdown/index.es.js +0 -638
- package/dropdown/index.umd.js +0 -1
- package/dropdown/package.json +0 -7
- package/dropdown/style.css +0 -1
- package/form/index.d.ts +0 -7
- package/form/index.es.js +0 -7865
- package/form/index.umd.js +0 -27
- package/form/package.json +0 -7
- package/form/style.css +0 -1
- package/gantt/index.d.ts +0 -7
- package/gantt/index.es.js +0 -523
- package/gantt/index.umd.js +0 -1
- package/gantt/package.json +0 -7
- package/gantt/style.css +0 -1
- package/input-icon/index.d.ts +0 -7
- package/input-icon/index.es.js +0 -331
- package/input-icon/index.umd.js +0 -1
- package/input-icon/package.json +0 -7
- package/input-icon/style.css +0 -1
- package/input-number/index.d.ts +0 -7
- package/input-number/index.es.js +0 -240
- package/input-number/index.umd.js +0 -1
- package/input-number/package.json +0 -7
- package/input-number/style.css +0 -1
- package/list/index.d.ts +0 -7
- package/list/index.es.js +0 -39
- package/list/index.umd.js +0 -1
- package/list/package.json +0 -7
- package/list/style.css +0 -1
- package/nav-sprite/index.d.ts +0 -7
- package/nav-sprite/index.es.js +0 -68
- package/nav-sprite/index.umd.js +0 -1
- package/nav-sprite/package.json +0 -7
- package/nuxt/components/Accordion.js +0 -3
- package/nuxt/components/Anchor.js +0 -3
- package/nuxt/components/BackTop.js +0 -3
- package/nuxt/components/Breadcrumb.js +0 -3
- package/nuxt/components/Carousel.js +0 -3
- package/nuxt/components/CarouselItem.js +0 -3
- package/nuxt/components/Cascader.js +0 -3
- package/nuxt/components/ColorPicker.js +0 -3
- package/nuxt/components/Column.js +0 -3
- package/nuxt/components/DatePicker.js +0 -3
- package/nuxt/components/Drawer.js +0 -3
- package/nuxt/components/DrawerService.js +0 -3
- package/nuxt/components/Dropdown.js +0 -3
- package/nuxt/components/DropdownMenu.js +0 -3
- package/nuxt/components/Form.js +0 -3
- package/nuxt/components/FormControl.js +0 -3
- package/nuxt/components/FormItem.js +0 -3
- package/nuxt/components/FormLabel.js +0 -3
- package/nuxt/components/FormOperation.js +0 -3
- package/nuxt/components/Gantt.js +0 -3
- package/nuxt/components/InputIcon.js +0 -3
- package/nuxt/components/InputNumber.js +0 -3
- package/nuxt/components/List.js +0 -3
- package/nuxt/components/ListItem.js +0 -3
- package/nuxt/components/NavSprite.js +0 -2
- package/nuxt/components/QuadrantDiagram.js +0 -3
- package/nuxt/components/Select.js +0 -3
- package/nuxt/components/StepsGuide.js +0 -3
- package/nuxt/components/StickSlider.js +0 -3
- package/nuxt/components/Sticky.js +0 -2
- package/nuxt/components/Table.js +0 -3
- package/nuxt/components/Tabs.js +0 -3
- package/nuxt/components/TimeAxis.js +0 -3
- package/nuxt/components/TimeAxisItem.js +0 -3
- package/nuxt/components/TimePicker.js +0 -3
- package/nuxt/components/Tooltip.js +0 -3
- package/nuxt/components/Transfer.js +0 -3
- package/nuxt/components/Tree.js +0 -3
- package/nuxt/components/TreeSelect.js +0 -3
- package/nuxt/components/dropdownMenuProps.js +0 -3
- package/nuxt/components/tooltipProps.js +0 -3
- package/quadrant-diagram/index.d.ts +0 -7
- package/quadrant-diagram/index.es.js +0 -5728
- package/quadrant-diagram/index.umd.js +0 -27
- package/quadrant-diagram/package.json +0 -7
- package/quadrant-diagram/style.css +0 -1
- package/select/index.d.ts +0 -7
- package/select/index.es.js +0 -706
- package/select/index.umd.js +0 -1
- package/select/package.json +0 -7
- package/select/style.css +0 -1
- package/steps-guide/index.d.ts +0 -7
- package/steps-guide/index.es.js +0 -239
- package/steps-guide/index.umd.js +0 -1
- package/steps-guide/package.json +0 -7
- package/steps-guide/style.css +0 -1
- package/sticky/index.d.ts +0 -7
- package/sticky/index.es.js +0 -197
- package/sticky/index.umd.js +0 -1
- package/sticky/package.json +0 -7
- package/table/index.d.ts +0 -7
- package/table/index.es.js +0 -1969
- package/table/index.umd.js +0 -1
- package/table/package.json +0 -7
- package/table/style.css +0 -1
- package/tabs/index.d.ts +0 -7
- package/tabs/index.es.js +0 -194
- package/tabs/index.umd.js +0 -1
- package/tabs/package.json +0 -7
- package/tabs/style.css +0 -1
- package/time-axis/index.d.ts +0 -7
- package/time-axis/index.umd.js +0 -1
- package/time-axis/package.json +0 -7
- package/time-axis/style.css +0 -1
- package/time-picker/index.d.ts +0 -7
- package/time-picker/index.es.js +0 -1237
- package/time-picker/index.umd.js +0 -1
- package/time-picker/package.json +0 -7
- package/time-picker/style.css +0 -1
- package/tooltip/index.d.ts +0 -7
- package/tooltip/index.es.js +0 -5828
- package/tooltip/index.umd.js +0 -27
- package/tooltip/package.json +0 -7
- package/tooltip/style.css +0 -1
- package/transfer/index.d.ts +0 -7
- package/transfer/index.es.js +0 -7608
- package/transfer/index.umd.js +0 -27
- package/transfer/package.json +0 -7
- package/transfer/style.css +0 -1
- package/tree/index.d.ts +0 -7
- package/tree/index.es.js +0 -6490
- package/tree/index.umd.js +0 -27
- package/tree/package.json +0 -7
- package/tree/style.css +0 -1
- package/tree-select/index.d.ts +0 -7
- package/tree-select/index.es.js +0 -623
- package/tree-select/index.umd.js +0 -1
- package/tree-select/package.json +0 -7
- package/tree-select/style.css +0 -1
package/radio/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var S=Object.defineProperty,j=Object.defineProperties;var P=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var k=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable;var
|
|
1
|
+
var S=Object.defineProperty,j=Object.defineProperties;var P=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var k=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable;var v=(t,e,o)=>e in t?S(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,p=(t,e)=>{for(var o in e||(e={}))k.call(e,o)&&v(t,o,e[o]);if(C)for(var o of C(e))x.call(e,o)&&v(t,o,e[o]);return t},b=(t,e)=>j(t,P(e));(function(t,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(t=typeof globalThis!="undefined"?globalThis:t||self,e(t.index={},t.Vue))})(this,function(t,e){"use strict";const o={modelValue:{type:String,default:null},name:{type:String,default:null},beforeChange:{type:Function,default:null},disabled:{type:Boolean,default:!1}},V=b(p({},o),{value:{type:String,required:!0,default:null}}),N=b(p({},o),{values:{type:Array,default:null},direction:{type:String,default:"column"}}),y=Symbol("DRadioGroup");var D="",c=e.defineComponent({name:"DRadio",props:V,emits:["change","update:modelValue"],setup(a,{emit:d}){const n=e.inject(y,null),r=e.computed(()=>a.disabled||(n==null?void 0:n.disabled.value)),l=e.computed(()=>{const i=n?n.modelValue.value:a.modelValue;return a.value===i}),h=e.computed(()=>n?n.name.value:a.name||void 0),g=i=>{const u=a.beforeChange||(n?n.beforeChange:null);let s=Promise.resolve(!0);if(u){const f=u(i);if(typeof f=="undefined")return s;typeof f=="boolean"?s=Promise.resolve(f):s=f}return s};return{isChecked:l,radioName:h,disabled:r,handleChange:async i=>{const u=a.value;if(!await g(u)){i.preventDefault();return}n==null||n.emitChange(u),d("update:modelValue",u),d("change",u)}}},render(){var i;const{disabled:a,radioName:d,value:n,isChecked:r,$slots:l,handleChange:h}=this,g=["devui-radio",{active:r,disabled:a}];return e.createVNode("label",{class:g},[e.createVNode("input",{type:"radio",name:d,class:"devui-radio-input",disabled:a,onChange:h,value:n,checked:r},null),e.createVNode("span",{class:"devui-radio-material"},[e.createVNode("svg",{height:"100%",width:"100%",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[e.createVNode("circle",{class:{"devui-radio-material-outer":!0,disabled:a},cx:"512",cy:"512",r:"486.5","stroke-width":"51"},null),e.createVNode("circle",{class:{"devui-radio-material-inner":!0,disabled:a},cx:"512","fill-rule":"nonzero",cy:"512",r:"320"},null)])]),e.createVNode("span",{class:"devui-radio-label"},[(i=l.default)==null?void 0:i.call(l)])])}}),_="";function R(a){return typeof a=="function"||Object.prototype.toString.call(a)==="[object Object]"&&!e.isVNode(a)}var m=e.defineComponent({name:"DRadioGroup",props:N,emits:["change","update:modelValue"],setup(a,{emit:d}){const n=r=>{d("update:modelValue",r),d("change",r)};e.provide(y,{modelValue:e.toRef(a,"modelValue"),name:e.toRef(a,"name"),disabled:e.toRef(a,"disabled"),beforeChange:a.beforeChange,emitChange:n})},render(){const{values:a,direction:d}=this,n=()=>{const r=this.$slots.default;return r?r():Array.isArray(a)?a.map(l=>e.createVNode(c,{key:l,value:l},R(l)?l:{default:()=>[l]})):""};return e.createVNode("div",{class:["devui-radio-group",{"is-row":d==="row","is-column":d==="column"}]},[n()])}}),w={title:"Radio \u5355\u9009\u6846",category:"\u6570\u636E\u5F55\u5165",status:"100%",install(a){a.component(c.name,c),a.component(m.name,m)}};t.Radio=c,t.RadioGroup=m,t.default=w,Object.defineProperty(t,"__esModule",{value:!0}),t[Symbol.toStringTag]="Module"});
|
package/radio/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.devui-radio{display:flex;justify-content:flex-start;align-items:center;font-size:var(--devui-font-size, 12px);line-height:1.5;font-weight:400;cursor:pointer;color:var(--devui-text, #252b3a)}.devui-radio:hover .devui-radio-label{color:var(--devui-primary-hover, #7693f5)}.devui-radio:active .devui-radio-material-outer,.devui-radio:focus .devui-radio-material-outer,.devui-radio:hover .devui-radio-material-outer{stroke:var(--devui-form-control-line-active-hover, #344899)}.devui-radio:active .devui-radio-material-inner,.devui-radio:focus .devui-radio-material-inner,.devui-radio:hover .devui-radio-material-inner{fill:var(--devui-icon-fill-active-hover, #526ecc)}.devui-radio.active .devui-radio-material-inner{opacity:1;transform:scale(1);transition:transform .2s cubic-bezier(.
|
|
1
|
+
@charset "UTF-8";.devui-radio{display:flex;justify-content:flex-start;align-items:center;font-size:var(--devui-font-size, 12px);line-height:1.5;font-weight:400;cursor:pointer;color:var(--devui-text, #252b3a)}.devui-radio:hover .devui-radio-label{color:var(--devui-primary-hover, #7693f5)}.devui-radio:active .devui-radio-material-outer,.devui-radio:focus .devui-radio-material-outer,.devui-radio:hover .devui-radio-material-outer{stroke:var(--devui-form-control-line-active-hover, #344899)}.devui-radio:active .devui-radio-material-inner,.devui-radio:focus .devui-radio-material-inner,.devui-radio:hover .devui-radio-material-inner{fill:var(--devui-icon-fill-active-hover, #526ecc)}.devui-radio.active .devui-radio-material-outer{opacity:1;stroke:var(--devui-form-control-line-active-hover, #344899);transition:stroke 50ms var(--devui-animation-ease-in-out, cubic-bezier(.5, .05, .5, .95))}.devui-radio.active .devui-radio-material-outer.disabled{stroke:var(--devui-icon-fill-active-disabled, #beccfa);fill:transparent}.devui-radio.active .devui-radio-material-inner{opacity:1;transform:scale(1);transition:transform var(--devui-animation-duration-base, .2s) var(--devui-animation-ease-in-out, cubic-bezier(.5, .05, .5, .95)),opacity var(--devui-animation-duration-base, .2s) var(--devui-animation-ease-in-out, cubic-bezier(.5, .05, .5, .95))}.devui-radio.active .devui-radio-material-inner.disabled{fill:var(--devui-icon-fill-active-disabled, #beccfa)}.devui-radio.disabled{cursor:not-allowed}.devui-radio.disabled .devui-radio-material-outer{stroke:var(--devui-disabled-line, #dfe1e6);fill:var(--devui-disabled-bg, #f5f5f6)}.devui-radio.disabled .devui-radio-material-inner{fill:var(--devui-icon-fill-active-disabled, #beccfa)}.devui-radio.disabled .devui-radio-label{color:var(--devui-disabled-text, #adb0b8)}.devui-radio-material{vertical-align:middle;position:relative;display:inline-block;overflow:hidden;height:16px;width:16px;line-height:16px;user-select:none}.devui-radio-material-outer{opacity:1;transition:stroke 50ms cubic-bezier(.755,.05,.855,.06);stroke:var(--devui-line, #adb0b8);fill:transparent}.devui-radio-material-inner{opacity:0;transform:scale(0);transform-origin:50% 50%;transition:transform .2s cubic-bezier(.755,.05,.855,.06),opacity .2s cubic-bezier(.755,.05,.855,.06);fill:var(--devui-icon-fill-active, #5e7ce0)}.devui-radio-label{color:var(--devui-text, #252b3a);margin-left:8px;font-size:var(--devui-font-size, 12px);transition:color .3s cubic-bezier(.645,.045,.355,1)}.devui-radio-input{opacity:0;z-index:-1;width:0;height:0;display:none;overflow:hidden;pointer-events:none}.devui-radio-group{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start}.devui-radio-group.is-row{flex-direction:row}.devui-radio-group.is-column{flex-direction:column}.devui-radio-group .devui-radio{line-height:28px}.devui-radio-group .devui-radio:not(:last-child){padding-right:20px}
|
package/read-tip/index.es.js
CHANGED
|
@@ -151,12 +151,14 @@ var ReadTip = defineComponent({
|
|
|
151
151
|
rule.overlayClassName = rule.overlayClassName || options.overlayClassName;
|
|
152
152
|
rule.position = rule.position || options.position;
|
|
153
153
|
rule.contentTemplate = !!ctx.slots.contentTemplate;
|
|
154
|
-
if (!("appendToBody" in rule))
|
|
154
|
+
if (!("appendToBody" in rule)) {
|
|
155
155
|
rule.appendToBody = options.appendToBody;
|
|
156
|
+
}
|
|
156
157
|
const doms = defaultSlot.value.querySelectorAll(rule.selector);
|
|
157
158
|
[...doms].map((dom, index2) => {
|
|
158
|
-
if (rule.appendToBody === false)
|
|
159
|
+
if (rule.appendToBody === false) {
|
|
159
160
|
dom.style.position = "relative";
|
|
161
|
+
}
|
|
160
162
|
let newRule = reactive({
|
|
161
163
|
id: null
|
|
162
164
|
});
|
|
@@ -179,8 +181,9 @@ var ReadTip = defineComponent({
|
|
|
179
181
|
rule.status = true;
|
|
180
182
|
}
|
|
181
183
|
const rules = (rules2) => {
|
|
182
|
-
if (rules2 === null)
|
|
184
|
+
if (rules2 === null) {
|
|
183
185
|
return;
|
|
186
|
+
}
|
|
184
187
|
if (typeof rules2 === "object" && !Array.isArray(rules2)) {
|
|
185
188
|
rules2 = [rules2];
|
|
186
189
|
}
|
package/result/index.es.js
CHANGED
|
@@ -1,20 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
-
var __spreadValues = (a, b) => {
|
|
7
|
-
for (var prop in b || (b = {}))
|
|
8
|
-
if (__hasOwnProp.call(b, prop))
|
|
9
|
-
__defNormalProp(a, prop, b[prop]);
|
|
10
|
-
if (__getOwnPropSymbols)
|
|
11
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
-
if (__propIsEnum.call(b, prop))
|
|
13
|
-
__defNormalProp(a, prop, b[prop]);
|
|
14
|
-
}
|
|
15
|
-
return a;
|
|
16
|
-
};
|
|
17
|
-
import { defineComponent, createVNode } from "vue";
|
|
1
|
+
import { defineComponent, toRefs, createVNode } from "vue";
|
|
18
2
|
const resultProps = {
|
|
19
3
|
icon: {
|
|
20
4
|
type: String,
|
|
@@ -29,50 +13,51 @@ const resultProps = {
|
|
|
29
13
|
default: ""
|
|
30
14
|
}
|
|
31
15
|
};
|
|
16
|
+
const iconProps = {
|
|
17
|
+
name: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: "",
|
|
20
|
+
required: true
|
|
21
|
+
},
|
|
22
|
+
size: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: "inherit"
|
|
25
|
+
},
|
|
26
|
+
color: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: "inherit"
|
|
29
|
+
},
|
|
30
|
+
classPrefix: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: "icon"
|
|
33
|
+
}
|
|
34
|
+
};
|
|
32
35
|
var Icon = defineComponent({
|
|
33
36
|
name: "DIcon",
|
|
34
|
-
props:
|
|
35
|
-
name: {
|
|
36
|
-
type: String,
|
|
37
|
-
required: true
|
|
38
|
-
},
|
|
39
|
-
size: {
|
|
40
|
-
type: String,
|
|
41
|
-
default: "inherit"
|
|
42
|
-
},
|
|
43
|
-
color: {
|
|
44
|
-
type: String,
|
|
45
|
-
default: "inherit"
|
|
46
|
-
},
|
|
47
|
-
classPrefix: {
|
|
48
|
-
type: String,
|
|
49
|
-
default: "icon"
|
|
50
|
-
}
|
|
51
|
-
},
|
|
37
|
+
props: iconProps,
|
|
52
38
|
setup(props) {
|
|
53
|
-
return __spreadValues({}, props);
|
|
54
|
-
},
|
|
55
|
-
render() {
|
|
56
39
|
const {
|
|
57
40
|
name,
|
|
58
41
|
size,
|
|
59
42
|
color,
|
|
60
43
|
classPrefix
|
|
61
|
-
} =
|
|
62
|
-
return
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
"
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
44
|
+
} = toRefs(props);
|
|
45
|
+
return () => {
|
|
46
|
+
return /^((https?):)?\/\//.test(name.value) ? createVNode("img", {
|
|
47
|
+
"src": name.value,
|
|
48
|
+
"alt": name.value.split("/")[name.value.split("/").length - 1],
|
|
49
|
+
"style": {
|
|
50
|
+
width: size.value,
|
|
51
|
+
verticalAlign: "text-bottom"
|
|
52
|
+
}
|
|
53
|
+
}, null) : createVNode("i", {
|
|
54
|
+
"class": `${classPrefix.value} ${classPrefix.value}-${name.value}`,
|
|
55
|
+
"style": {
|
|
56
|
+
fontSize: size.value,
|
|
57
|
+
color: color.value
|
|
58
|
+
}
|
|
59
|
+
}, null);
|
|
60
|
+
};
|
|
76
61
|
}
|
|
77
62
|
});
|
|
78
63
|
var result = "";
|
package/result/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(l,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(l=typeof globalThis!="undefined"?globalThis:l||self,e(l.index={},l.Vue))})(this,function(l,e){"use strict";const d={icon:{type:String,default:"info"},title:{type:String,default:""},desc:{type:String,default:""}},c={name:{type:String,default:"",required:!0},size:{type:String,default:"inherit"},color:{type:String,default:"inherit"},classPrefix:{type:String,default:"icon"}};var f=e.defineComponent({name:"DIcon",props:c,setup(s){const{name:t,size:n,color:i,classPrefix:r}=e.toRefs(s);return()=>/^((https?):)?\/\//.test(t.value)?e.createVNode("img",{src:t.value,alt:t.value.split("/")[t.value.split("/").length-1],style:{width:n.value,verticalAlign:"text-bottom"}},null):e.createVNode("i",{class:`${r.value} ${r.value}-${t.value}`,style:{fontSize:n.value,color:i.value}},null)}}),v="",o=e.defineComponent({name:"DResult",props:d,setup(s,t){let n;return function(i){i.success="right-o",i.danger="error-o",i.warning="warning-o",i.info="info-o"}(n||(n={})),()=>{var i,r,u,a;return e.createVNode("div",{class:"devui-result"},[t.slots.icon?e.createVNode("div",null,[(i=t.slots)==null?void 0:i.icon()]):e.createVNode(f,{name:n[s.icon]||"",class:`devui-result__icon-${s.icon}`,size:"64px"},null),e.createVNode("div",{class:"devui-result__title"},[t.slots.title?(r=t.slots)==null?void 0:r.title():s.title]),e.createVNode("div",{class:"devui-result__desc"},[t.slots.desc?(u=t.slots)==null?void 0:u.desc():s.desc]),e.createVNode("div",{class:"devui-result__extra"},[t.slots.extra?(a=t.slots)==null?void 0:a.extra():""])])}}});o.install=function(s){s.component(o.name,o)};var p={title:"Result \u7ED3\u679C",category:"\u53CD\u9988",status:"100%",install(s){s.use(o)}};l.Result=o,l.default=p,Object.defineProperty(l,"__esModule",{value:!0}),l[Symbol.toStringTag]="Module"});
|
package/ripple/index.es.js
CHANGED
|
@@ -19,9 +19,9 @@ const DEFAULT_PLUGIN_OPTIONS = {
|
|
|
19
19
|
color: "currentColor",
|
|
20
20
|
initialOpacity: 0.2,
|
|
21
21
|
finalOpacity: 0.1,
|
|
22
|
-
duration:
|
|
22
|
+
duration: 400,
|
|
23
23
|
easing: "ease-out",
|
|
24
|
-
|
|
24
|
+
delay: 75,
|
|
25
25
|
disabled: false
|
|
26
26
|
};
|
|
27
27
|
const createContainer = ({
|
|
@@ -53,7 +53,7 @@ const createrippleElement = (x, y, size, options) => {
|
|
|
53
53
|
rippleElement.style.borderRadius = "50%";
|
|
54
54
|
rippleElement.style.opacity = `${options.initialOpacity}`;
|
|
55
55
|
rippleElement.style.transform = `translate(-50%,-50%) scale(0)`;
|
|
56
|
-
rippleElement.style.transition = `transform ${options.duration}s ${options.easing}, opacity ${options.duration}s ${options.easing}`;
|
|
56
|
+
rippleElement.style.transition = `transform ${options.duration / 1e3}s ${options.easing}, opacity ${options.duration / 1e3}s ${options.easing}`;
|
|
57
57
|
return rippleElement;
|
|
58
58
|
};
|
|
59
59
|
function magnitude(x1, y1, x2, y2) {
|
|
@@ -73,6 +73,13 @@ const getRelativePointer = ({ x, y }, { top, left }) => ({
|
|
|
73
73
|
y: y - top
|
|
74
74
|
});
|
|
75
75
|
const RIPPLE_COUNT = "vRippleCountInternal";
|
|
76
|
+
function setRippleCount(el, count) {
|
|
77
|
+
el.dataset[RIPPLE_COUNT] = count.toString();
|
|
78
|
+
}
|
|
79
|
+
function getRippleCount(el) {
|
|
80
|
+
var _a;
|
|
81
|
+
return parseInt((_a = el.dataset[RIPPLE_COUNT]) != null ? _a : "0", 10);
|
|
82
|
+
}
|
|
76
83
|
function incrementRippleCount(el) {
|
|
77
84
|
const count = getRippleCount(el);
|
|
78
85
|
setRippleCount(el, count + 1);
|
|
@@ -81,13 +88,6 @@ function decrementRippleCount(el) {
|
|
|
81
88
|
const count = getRippleCount(el);
|
|
82
89
|
setRippleCount(el, count - 1);
|
|
83
90
|
}
|
|
84
|
-
function setRippleCount(el, count) {
|
|
85
|
-
el.dataset[RIPPLE_COUNT] = count.toString();
|
|
86
|
-
}
|
|
87
|
-
function getRippleCount(el) {
|
|
88
|
-
var _a;
|
|
89
|
-
return parseInt((_a = el.dataset[RIPPLE_COUNT]) != null ? _a : "0", 10);
|
|
90
|
-
}
|
|
91
91
|
function deleteRippleCount(el) {
|
|
92
92
|
delete el.dataset[RIPPLE_COUNT];
|
|
93
93
|
}
|
|
@@ -99,27 +99,10 @@ const ripple = (event, el, options) => {
|
|
|
99
99
|
const size = MULTIPLE_NUMBER * getDistanceToFurthestCorner(x, y, rect);
|
|
100
100
|
const rippleContainer = createContainer(computedStyles);
|
|
101
101
|
const rippleEl = createrippleElement(x, y, size, options);
|
|
102
|
-
incrementRippleCount(el);
|
|
103
102
|
let originalPositionValue = "";
|
|
104
|
-
if (computedStyles.position === "static") {
|
|
105
|
-
if (el.style.position)
|
|
106
|
-
originalPositionValue = el.style.position;
|
|
107
|
-
el.style.position = "relative";
|
|
108
|
-
}
|
|
109
|
-
rippleContainer.appendChild(rippleEl);
|
|
110
|
-
el.appendChild(rippleContainer);
|
|
111
103
|
let shouldDissolveripple = false;
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
document.removeEventListener("pointerup", releaseripple);
|
|
115
|
-
document.removeEventListener("pointercancel", releaseripple);
|
|
116
|
-
}
|
|
117
|
-
if (shouldDissolveripple)
|
|
118
|
-
dissolveripple();
|
|
119
|
-
else
|
|
120
|
-
shouldDissolveripple = true;
|
|
121
|
-
};
|
|
122
|
-
const dissolveripple = () => {
|
|
104
|
+
let token = null;
|
|
105
|
+
function dissolveripple() {
|
|
123
106
|
rippleEl.style.transition = "opacity 150ms linear";
|
|
124
107
|
rippleEl.style.opacity = "0";
|
|
125
108
|
setTimeout(() => {
|
|
@@ -130,24 +113,44 @@ const ripple = (event, el, options) => {
|
|
|
130
113
|
el.style.position = originalPositionValue;
|
|
131
114
|
}
|
|
132
115
|
}, 150);
|
|
133
|
-
}
|
|
116
|
+
}
|
|
117
|
+
function releaseripple(e) {
|
|
118
|
+
if (typeof e !== "undefined") {
|
|
119
|
+
document.removeEventListener("pointerup", releaseripple);
|
|
120
|
+
document.removeEventListener("pointercancel", releaseripple);
|
|
121
|
+
}
|
|
122
|
+
if (shouldDissolveripple) {
|
|
123
|
+
dissolveripple();
|
|
124
|
+
} else {
|
|
125
|
+
shouldDissolveripple = true;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
function cancelripple() {
|
|
129
|
+
clearTimeout(token);
|
|
130
|
+
rippleContainer.remove();
|
|
131
|
+
document.removeEventListener("pointerup", releaseripple);
|
|
132
|
+
document.removeEventListener("pointercancel", releaseripple);
|
|
133
|
+
document.removeEventListener("pointercancel", cancelripple);
|
|
134
|
+
}
|
|
135
|
+
incrementRippleCount(el);
|
|
136
|
+
if (computedStyles.position === "static") {
|
|
137
|
+
if (el.style.position) {
|
|
138
|
+
originalPositionValue = el.style.position;
|
|
139
|
+
}
|
|
140
|
+
el.style.position = "relative";
|
|
141
|
+
}
|
|
142
|
+
rippleContainer.appendChild(rippleEl);
|
|
143
|
+
el.appendChild(rippleContainer);
|
|
134
144
|
document.addEventListener("pointerup", releaseripple);
|
|
135
145
|
document.addEventListener("pointercancel", releaseripple);
|
|
136
|
-
|
|
146
|
+
token = setTimeout(() => {
|
|
137
147
|
document.removeEventListener("pointercancel", cancelripple);
|
|
138
148
|
requestAnimationFrame(() => {
|
|
139
149
|
rippleEl.style.transform = `translate(-50%,-50%) scale(1)`;
|
|
140
150
|
rippleEl.style.opacity = `${options.finalOpacity}`;
|
|
141
|
-
setTimeout(() => releaseripple(), options.duration
|
|
151
|
+
setTimeout(() => releaseripple(), options.duration);
|
|
142
152
|
});
|
|
143
|
-
}, options.
|
|
144
|
-
const cancelripple = () => {
|
|
145
|
-
clearTimeout(token);
|
|
146
|
-
rippleContainer.remove();
|
|
147
|
-
document.removeEventListener("pointerup", releaseripple);
|
|
148
|
-
document.removeEventListener("pointercancel", releaseripple);
|
|
149
|
-
document.removeEventListener("pointercancel", cancelripple);
|
|
150
|
-
};
|
|
153
|
+
}, options.delay);
|
|
151
154
|
document.addEventListener("pointercancel", cancelripple);
|
|
152
155
|
};
|
|
153
156
|
const optionMap = /* @__PURE__ */ new WeakMap();
|
|
@@ -158,10 +161,12 @@ var RippleDirective = {
|
|
|
158
161
|
optionMap.set(el, (_a = binding.value) != null ? _a : {});
|
|
159
162
|
el.addEventListener("pointerdown", (event) => {
|
|
160
163
|
const options = optionMap.get(el);
|
|
161
|
-
if (binding.value && binding.value.disabled)
|
|
164
|
+
if (binding.value && binding.value.disabled) {
|
|
162
165
|
return;
|
|
163
|
-
|
|
166
|
+
}
|
|
167
|
+
if (options === false) {
|
|
164
168
|
return;
|
|
169
|
+
}
|
|
165
170
|
ripple(event, el, __spreadValues(__spreadValues({}, globalOptions), options));
|
|
166
171
|
});
|
|
167
172
|
},
|
package/ripple/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var B=Object.defineProperty;var T=Object.getOwnPropertySymbols;var F=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var
|
|
1
|
+
var B=Object.defineProperty;var T=Object.getOwnPropertySymbols;var F=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var w=(s,r,l)=>r in s?B(s,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):s[r]=l,f=(s,r)=>{for(var l in r||(r={}))F.call(r,l)&&w(s,l,r[l]);if(T)for(var l of T(r))j.call(r,l)&&w(s,l,r[l]);return s};(function(s,r){typeof exports=="object"&&typeof module!="undefined"?r(exports):typeof define=="function"&&define.amd?define(["exports"],r):(s=typeof globalThis!="undefined"?globalThis:s||self,r(s.index={}))})(this,function(s){"use strict";const r={directive:"ripple",color:"currentColor",initialOpacity:.2,finalOpacity:.1,duration:400,easing:"ease-out",delay:75,disabled:!1},l=({borderTopLeftRadius:t,borderTopRightRadius:e,borderBottomLeftRadius:i,borderBottomRightRadius:o})=>{const n=document.createElement("div");return n.style.top="0",n.style.left="0",n.style.width="100%",n.style.height="100%",n.style.position="absolute",n.style.borderRadius=`${t} ${e} ${o} ${i}`,n.style.overflow="hidden",n.style.pointerEvents="none",n.style.webkitMaskImage="-webkit-radial-gradient(white, black)",n},M=(t,e,i,o)=>{const n=document.createElement("div");return n.style.position="absolute",n.style.width=`${i}px`,n.style.height=`${i}px`,n.style.top=`${e}px`,n.style.left=`${t}px`,n.style.background=o.color,n.style.borderRadius="50%",n.style.opacity=`${o.initialOpacity}`,n.style.transform="translate(-50%,-50%) scale(0)",n.style.transition=`transform ${o.duration/1e3}s ${o.easing}, opacity ${o.duration/1e3}s ${o.easing}`,n};function u(t,e,i,o){const n=t-i,a=e-o;return Math.sqrt(n*n+a*a)}function O(t,e,{width:i,height:o}){const n=u(t,e,0,0),a=u(t,e,i,0),d=u(t,e,0,o),g=u(t,e,i,o);return Math.max(n,a,d,g)}const P=({x:t,y:e},{top:i,left:o})=>({x:t-o,y:e-i}),y="vRippleCountInternal";function R(t,e){t.dataset[y]=e.toString()}function v(t){var e;return parseInt((e=t.dataset[y])!=null?e:"0",10)}function k(t){const e=v(t);R(t,e+1)}function I(t){const e=v(t);R(t,e-1)}function x(t){delete t.dataset[y]}const S=2.05,_=(t,e,i)=>{const o=e.getBoundingClientRect(),n=window.getComputedStyle(e),{x:a,y:d}=P(t,o),g=S*O(a,d,o),m=l(n),p=M(a,d,g,i);let h="",b=!1,$=null;function N(){p.style.transition="opacity 150ms linear",p.style.opacity="0",setTimeout(()=>{m.remove(),I(e),v(e)===0&&(x(e),e.style.position=h)},150)}function c(A){typeof A!="undefined"&&(document.removeEventListener("pointerup",c),document.removeEventListener("pointercancel",c)),b?N():b=!0}function C(){clearTimeout($),m.remove(),document.removeEventListener("pointerup",c),document.removeEventListener("pointercancel",c),document.removeEventListener("pointercancel",C)}k(e),n.position==="static"&&(e.style.position&&(h=e.style.position),e.style.position="relative"),m.appendChild(p),e.appendChild(m),document.addEventListener("pointerup",c),document.addEventListener("pointercancel",c),$=setTimeout(()=>{document.removeEventListener("pointercancel",C),requestAnimationFrame(()=>{p.style.transform="translate(-50%,-50%) scale(1)",p.style.opacity=`${i.finalOpacity}`,setTimeout(()=>c(),i.duration)})},i.delay),document.addEventListener("pointercancel",C)},E=new WeakMap,D=f({},r);var L={mounted(t,e){var i;E.set(t,(i=e.value)!=null?i:{}),t.addEventListener("pointerdown",o=>{const n=E.get(t);e.value&&e.value.disabled||n!==!1&&_(o,t,f(f({},D),n))})},updated(t,e){var i;E.set(t,(i=e.value)!=null?i:{})}},U={title:"Ripple \u6C34\u6CE2\u7EB9",category:"\u901A\u7528",status:"100%",install(t){t.directive("Ripple",L)}};s.RippleDirective=L,s.default=U,Object.defineProperty(s,"__esModule",{value:!0}),s[Symbol.toStringTag]="Module"});
|
package/search/index.es.js
CHANGED
|
@@ -5760,15 +5760,12 @@ var Search = defineComponent({
|
|
|
5760
5760
|
};
|
|
5761
5761
|
}
|
|
5762
5762
|
});
|
|
5763
|
-
Search.install = function(app) {
|
|
5764
|
-
app.component(Search.name, Search);
|
|
5765
|
-
};
|
|
5766
5763
|
var index = {
|
|
5767
5764
|
title: "Search \u641C\u7D22\u6846",
|
|
5768
5765
|
category: "\u901A\u7528",
|
|
5769
5766
|
status: "100%",
|
|
5770
5767
|
install(app) {
|
|
5771
|
-
app.
|
|
5768
|
+
app.component(Search.name, Search);
|
|
5772
5769
|
}
|
|
5773
5770
|
};
|
|
5774
|
-
export { Search, index as default };
|
|
5771
|
+
export { Search, index as default, searchProps };
|