vue-devui 1.0.0-rc.5 → 1.0.0-rc.8
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 +22 -8
- package/alert/index.es.js +37 -11
- package/alert/index.umd.js +1 -1
- package/alert/style.css +1 -1
- package/auto-complete/index.es.js +72 -26
- package/auto-complete/index.umd.js +5 -5
- package/auto-complete/style.css +1 -1
- package/avatar/index.es.js +32 -6
- package/avatar/index.umd.js +1 -1
- package/avatar/style.css +1 -1
- package/badge/index.es.js +29 -4
- package/badge/index.umd.js +1 -1
- package/badge/style.css +1 -1
- package/button/index.es.js +5548 -76
- package/button/index.umd.js +27 -1
- package/button/style.css +1 -1
- package/card/index.es.js +56 -29
- package/card/index.umd.js +1 -1
- package/card/style.css +1 -1
- package/checkbox/index.es.js +48 -30
- package/checkbox/index.umd.js +1 -1
- package/checkbox/style.css +1 -1
- package/date-picker/index.es.js +91 -145
- package/date-picker/index.umd.js +1 -1
- package/date-picker/style.css +1 -1
- package/drawer/index.es.js +28 -3
- package/drawer/index.umd.js +1 -1
- package/drawer/style.css +1 -1
- package/dropdown/index.es.js +39 -13
- package/dropdown/index.umd.js +1 -1
- package/dropdown/style.css +1 -1
- package/editable-select/index.es.js +14 -14
- package/editable-select/index.umd.js +1 -1
- package/editable-select/style.css +1 -1
- package/form/index.es.js +958 -1200
- package/form/index.umd.js +18 -18
- package/form/style.css +1 -1
- package/fullscreen/index.es.js +29 -5
- package/fullscreen/index.umd.js +1 -1
- package/fullscreen/style.css +1 -1
- package/grid/index.es.js +68 -49
- package/grid/index.umd.js +1 -1
- package/grid/style.css +1 -1
- package/image-preview/index.es.js +34 -11
- package/image-preview/index.umd.js +1 -1
- package/image-preview/style.css +1 -1
- package/input/index.es.js +91 -145
- package/input/index.umd.js +1 -1
- package/input/style.css +1 -1
- package/input-number/index.es.js +27 -5
- package/input-number/index.umd.js +1 -1
- package/input-number/style.css +1 -1
- package/layout/index.es.js +34 -6
- package/layout/index.umd.js +1 -1
- package/layout/style.css +1 -1
- package/loading/index.es.js +34 -10
- package/loading/index.umd.js +1 -1
- package/loading/style.css +1 -1
- package/modal/index.es.js +41 -15
- package/modal/index.umd.js +1 -1
- package/modal/style.css +1 -1
- package/notification/index.es.js +40 -13
- package/notification/index.umd.js +1 -1
- package/notification/style.css +1 -1
- package/nuxt/components/ButtonGroup.js +3 -0
- package/nuxt/components/CheckboxGroup.js +3 -0
- package/nuxt/components/FORM_ITEM_TOKEN.js +3 -0
- package/nuxt/components/FORM_TOKEN.js +3 -0
- package/nuxt/components/Tree.js +3 -0
- package/nuxt/components/buttonGroupInjectionKey.js +3 -0
- package/nuxt/components/buttonGroupProps.js +3 -0
- package/nuxt/components/formControlProps.js +3 -0
- package/nuxt/components/formItemProps.js +3 -0
- package/nuxt/components/formProps.js +3 -0
- package/nuxt/components/treeProps.js +3 -0
- package/overlay/index.es.js +31 -9
- package/overlay/index.umd.js +1 -1
- package/overlay/style.css +1 -1
- package/package.json +1 -1
- package/pagination/index.es.js +135 -124
- package/pagination/index.umd.js +1 -1
- package/pagination/style.css +1 -1
- package/popover/index.es.js +53 -24
- package/popover/index.umd.js +13 -13
- package/popover/style.css +1 -1
- package/progress/index.es.js +76 -20
- package/progress/index.umd.js +3 -3
- package/progress/style.css +1 -1
- package/radio/index.es.js +32 -7
- package/radio/index.umd.js +1 -1
- package/radio/style.css +1 -1
- package/rate/index.es.js +34 -10
- package/rate/index.umd.js +1 -1
- package/rate/style.css +1 -1
- package/search/index.es.js +103 -153
- package/search/index.umd.js +14 -14
- package/search/style.css +1 -1
- package/select/index.es.js +74 -51
- package/select/index.umd.js +1 -1
- package/select/style.css +1 -1
- package/skeleton/index.es.js +37 -12
- package/skeleton/index.umd.js +1 -1
- package/skeleton/style.css +1 -1
- package/slider/index.es.js +52 -16
- package/slider/index.umd.js +1 -1
- package/slider/style.css +1 -1
- package/splitter/index.es.js +52 -24
- package/splitter/index.umd.js +15 -15
- package/splitter/style.css +1 -1
- package/status/index.es.js +26 -2
- package/status/index.umd.js +1 -1
- package/status/style.css +1 -1
- package/style.css +1 -1
- package/switch/index.es.js +30 -6
- package/switch/index.umd.js +1 -1
- package/switch/style.css +1 -1
- package/table/index.es.js +6267 -536
- package/table/index.umd.js +27 -1
- package/table/style.css +1 -1
- package/tabs/index.es.js +32 -8
- package/tabs/index.umd.js +1 -1
- package/tabs/style.css +1 -1
- package/tag/index.es.js +27 -2
- package/tag/index.umd.js +1 -1
- package/tag/style.css +1 -1
- package/textarea/index.es.js +93 -76
- package/textarea/index.umd.js +1 -1
- package/textarea/style.css +1 -1
- package/tooltip/index.es.js +42 -15
- package/tooltip/index.umd.js +12 -12
- package/tooltip/style.css +1 -1
- package/{comment → tree}/index.d.ts +0 -0
- package/tree/index.es.js +1030 -0
- package/tree/index.umd.js +1 -0
- package/{comment → tree}/package.json +1 -1
- package/tree/style.css +1 -0
- package/upload/index.es.js +53 -22
- package/upload/index.umd.js +1 -1
- package/upload/style.css +1 -1
- package/vue-devui.es.js +5296 -4916
- package/vue-devui.umd.js +22 -22
- package/comment/index.es.js +0 -84
- package/comment/index.umd.js +0 -1
- package/comment/style.css +0 -1
- package/nuxt/components/Comment.js +0 -3
- package/nuxt/components/ReadTip.js +0 -3
- package/nuxt/components/commentProps.js +0 -3
- package/nuxt/components/readTipProps.js +0 -3
- package/read-tip/index.d.ts +0 -7
- package/read-tip/index.es.js +0 -261
- package/read-tip/index.umd.js +0 -1
- package/read-tip/package.json +0 -7
- package/read-tip/style.css +0 -1
package/README.md
CHANGED
|
@@ -87,26 +87,24 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
87
87
|
<td align="center"><a href="https://github.com/sufuwang"><img src="https://avatars.githubusercontent.com/u/46395105?v=4?s=100" width="100px;" alt=""/><br /><sub><b>王凯</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=sufuwang" title="Code">💻</a></td>
|
|
88
88
|
<td align="center"><a href="https://github.com/iel-h"><img src="https://avatars.githubusercontent.com/u/53589602?v=4?s=100" width="100px;" alt=""/><br /><sub><b>iel</b></sub></a><br /><a href="#maintenance-iel-h" title="Maintenance">🚧</a> <a href="https://github.com/DevCloudFE/vue-devui/commits?author=iel-h" title="Code">💻</a></td>
|
|
89
89
|
<td align="center"><a href="https://github.com/chenxi24"><img src="https://avatars.githubusercontent.com/u/40349890?v=4?s=100" width="100px;" alt=""/><br /><sub><b>chenxi24</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=chenxi24" title="Code">💻</a></td>
|
|
90
|
-
</tr>
|
|
91
|
-
<tr>
|
|
92
90
|
<td align="center"><a href="https://github.com/asdlml6"><img src="https://avatars.githubusercontent.com/u/61737780?v=4?s=100" width="100px;" alt=""/><br /><sub><b>小九九</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=asdlml6" title="Code">💻</a></td>
|
|
93
91
|
<td align="center"><a href="http://blog.alanlee.top"><img src="https://avatars.githubusercontent.com/u/42601044?v=4?s=100" width="100px;" alt=""/><br /><sub><b>AlanLee</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=AlanLee97" title="Code">💻</a></td>
|
|
94
92
|
<td align="center"><a href="https://github.com/ForeseeBear"><img src="https://avatars.githubusercontent.com/u/15258339?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Echo</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=ForeseeBear" title="Code">💻</a></td>
|
|
93
|
+
</tr>
|
|
94
|
+
<tr>
|
|
95
95
|
<td align="center"><a href="https://github.com/GaoNeng-wWw"><img src="https://avatars.githubusercontent.com/u/31283122?v=4?s=100" width="100px;" alt=""/><br /><sub><b>GaoNeng</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=GaoNeng-wWw" title="Code">💻</a></td>
|
|
96
|
-
<td align="center"><a href="https://github.com/xingyan95"><img src="https://avatars.githubusercontent.com/u/11143986?v=4?s=100" width="100px;" alt=""/><br /><sub><b>行言</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=xingyan95" title="Code">💻</a></td>
|
|
96
|
+
<td align="center"><a href="https://github.com/xingyan95"><img src="https://avatars.githubusercontent.com/u/11143986?v=4?s=100" width="100px;" alt=""/><br /><sub><b>行言</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=xingyan95" title="Code">💻</a> <a href="https://github.com/DevCloudFE/vue-devui/issues?q=author%3Axingyan95" title="Bug reports">🐛</a></td>
|
|
97
97
|
<td align="center"><a href="https://devin974.github.io/"><img src="https://avatars.githubusercontent.com/u/67035714?v=4?s=100" width="100px;" alt=""/><br /><sub><b>devin</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=devin974" title="Code">💻</a></td>
|
|
98
98
|
<td align="center"><a href="https://juejin.cn/user/1618116899507735/posts"><img src="https://avatars.githubusercontent.com/u/70649502?v=4?s=100" width="100px;" alt=""/><br /><sub><b>无声</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=ivestszheng" title="Code">💻</a></td>
|
|
99
|
-
</tr>
|
|
100
|
-
<tr>
|
|
101
99
|
<td align="center"><a href="https://github.com/zxlfly"><img src="https://avatars.githubusercontent.com/u/26324442?v=4?s=100" width="100px;" alt=""/><br /><sub><b>sleep_fish</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=zxlfly" title="Code">💻</a></td>
|
|
102
100
|
<td align="center"><a href="https://github.com/whylost"><img src="https://avatars.githubusercontent.com/u/62528887?v=4?s=100" width="100px;" alt=""/><br /><sub><b>迷心whylost</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=whylost" title="Code">💻</a></td>
|
|
103
101
|
<td align="center"><a href="https://juejin.im/user/5c15d35fe51d4545ae495e43"><img src="https://avatars.githubusercontent.com/u/31237954?v=4?s=100" width="100px;" alt=""/><br /><sub><b>X.Q. Chen</b></sub></a><br /><a href="#infra-brenner8023" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="https://github.com/DevCloudFE/vue-devui/commits?author=brenner8023" title="Code">💻</a></td>
|
|
104
102
|
<td align="center"><a href="https://github.com/git-Where"><img src="https://avatars.githubusercontent.com/u/16344566?v=4?s=100" width="100px;" alt=""/><br /><sub><b>葉家男孩</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=git-Where" title="Code">💻</a></td>
|
|
105
103
|
<td align="center"><a href="https://github.com/CatsAndMice"><img src="https://avatars.githubusercontent.com/u/58327088?v=4?s=100" width="100px;" alt=""/><br /><sub><b>lihai</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=CatsAndMice" title="Code">💻</a></td>
|
|
106
104
|
<td align="center"><a href="http://www.naluduo.vip"><img src="https://avatars.githubusercontent.com/u/28448589?v=4?s=100" width="100px;" alt=""/><br /><sub><b>纳撸多</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=naluduo233" title="Code">💻</a></td>
|
|
107
|
-
<td align="center"><a href="https://github.com/ElsaOOo"><img src="https://avatars.githubusercontent.com/u/48074435?v=4?s=100" width="100px;" alt=""/><br /><sub><b>ElsaOOo</b></sub></a><br /><a href="#maintenance-ElsaOOo" title="Maintenance">🚧</a> <a href="#infra-ElsaOOo" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="https://github.com/DevCloudFE/vue-devui/commits?author=ElsaOOo" title="Code">💻</a></td>
|
|
108
105
|
</tr>
|
|
109
106
|
<tr>
|
|
107
|
+
<td align="center"><a href="https://github.com/ElsaOOo"><img src="https://avatars.githubusercontent.com/u/48074435?v=4?s=100" width="100px;" alt=""/><br /><sub><b>ElsaOOo</b></sub></a><br /><a href="#maintenance-ElsaOOo" title="Maintenance">🚧</a> <a href="#infra-ElsaOOo" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="https://github.com/DevCloudFE/vue-devui/commits?author=ElsaOOo" title="Code">💻</a></td>
|
|
110
108
|
<td align="center"><a href="https://github.com/liuxdi"><img src="https://avatars.githubusercontent.com/u/10958003?v=4?s=100" width="100px;" alt=""/><br /><sub><b>刘小迪</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=liuxdi" title="Code">💻</a></td>
|
|
111
109
|
<td align="center"><a href="https://github.com/unfound"><img src="https://avatars.githubusercontent.com/u/32935349?v=4?s=100" width="100px;" alt=""/><br /><sub><b>unfound</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=unfound" title="Code">💻</a></td>
|
|
112
110
|
<td align="center"><a href="https://github.com/Roading"><img src="https://avatars.githubusercontent.com/u/7751774?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Roading</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=Roading" title="Code">💻</a></td>
|
|
@@ -114,12 +112,28 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
114
112
|
<td align="center"><a href="https://github.com/c0dedance"><img src="https://avatars.githubusercontent.com/u/38075730?v=4?s=100" width="100px;" alt=""/><br /><sub><b>c0dedance</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=c0dedance" title="Code">💻</a></td>
|
|
115
113
|
<td align="center"><a href="https://github.com/duqingyu"><img src="https://avatars.githubusercontent.com/u/30541930?v=4?s=100" width="100px;" alt=""/><br /><sub><b>杜庆愉</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=duqingyu" title="Code">💻</a></td>
|
|
116
114
|
<td align="center"><a href="https://github.com/linxiang07"><img src="https://avatars.githubusercontent.com/u/40119767?v=4?s=100" width="100px;" alt=""/><br /><sub><b>linxiang</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=linxiang07" title="Code">💻</a></td>
|
|
115
|
+
<td align="center"><a href="https://github.com/nextniko"><img src="https://avatars.githubusercontent.com/u/40553790?v=4?s=100" width="100px;" alt=""/><br /><sub><b>掘墓忍者</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=nextniko" title="Code">💻</a></td>
|
|
116
|
+
<td align="center"><a href="https://github.com/zcj996"><img src="https://avatars.githubusercontent.com/u/52314078?v=4?s=100" width="100px;" alt=""/><br /><sub><b>一个大胖子</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=zcj996" title="Code">💻</a> <a href="https://github.com/DevCloudFE/vue-devui/commits?author=zcj996" title="Documentation">📖</a></td>
|
|
117
117
|
</tr>
|
|
118
118
|
<tr>
|
|
119
|
-
<td align="center"><a href="https://github.com/nextniko"><img src="https://avatars.githubusercontent.com/u/40553790?v=4?s=100" width="100px;" alt=""/><br /><sub><b>掘墓忍者</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=nextniko" title="Code">💻</a></td>
|
|
120
|
-
<td align="center"><a href="https://github.com/zcj996"><img src="https://avatars.githubusercontent.com/u/52314078?v=4?s=100" width="100px;" alt=""/><br /><sub><b>一个大胖子</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=zcj996" title="Code">💻</a></td>
|
|
121
119
|
<td align="center"><a href="https://bandism.net/"><img src="https://avatars.githubusercontent.com/u/22633385?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ikko Ashimine</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=eltociear" title="Documentation">📖</a></td>
|
|
122
120
|
<td align="center"><a href="https://xiaoborao.github.io/"><img src="https://avatars.githubusercontent.com/u/27467603?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Bob</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=xiaoboRao" title="Code">💻</a></td>
|
|
121
|
+
<td align="center"><a href="https://github.com/NidusP"><img src="https://avatars.githubusercontent.com/u/30283065?v=4?s=100" width="100px;" alt=""/><br /><sub><b>populus</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=NidusP" title="Code">💻</a></td>
|
|
122
|
+
<td align="center"><a href="https://github.com/554246839"><img src="https://avatars.githubusercontent.com/u/24663941?v=4?s=100" width="100px;" alt=""/><br /><sub><b>tohalf</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=554246839" title="Code">💻</a></td>
|
|
123
|
+
<td align="center"><a href="https://github.com/Lonely-shang"><img src="https://avatars.githubusercontent.com/u/34124930?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Miliky</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=Lonely-shang" title="Code">💻</a> <a href="https://github.com/DevCloudFE/vue-devui/commits?author=Lonely-shang" title="Tests">⚠️</a></td>
|
|
124
|
+
<td align="center"><a href="https://github.com/MICD0704"><img src="https://avatars.githubusercontent.com/u/20532893?v=4?s=100" width="100px;" alt=""/><br /><sub><b>MICD</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=MICD0704" title="Code">💻</a> <a href="https://github.com/DevCloudFE/vue-devui/issues?q=author%3AMICD0704" title="Bug reports">🐛</a></td>
|
|
125
|
+
<td align="center"><a href="https://github.com/ming-bin"><img src="https://avatars.githubusercontent.com/u/54826175?v=4?s=100" width="100px;" alt=""/><br /><sub><b>mingBin</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=ming-bin" title="Code">💻</a> <a href="https://github.com/DevCloudFE/vue-devui/issues?q=author%3Aming-bin" title="Bug reports">🐛</a></td>
|
|
126
|
+
<td align="center"><a href="https://github.com/icjs-cc"><img src="https://avatars.githubusercontent.com/u/27618209?v=4?s=100" width="100px;" alt=""/><br /><sub><b>陈剑术</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=icjs-cc" title="Code">💻</a></td>
|
|
127
|
+
<td align="center"><a href="https://www.merlin218.top/"><img src="https://avatars.githubusercontent.com/u/61051874?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Merlin218</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/issues?q=author%3AMerlin218" title="Bug reports">🐛</a></td>
|
|
128
|
+
<td align="center"><a href="https://github.com/jingyiliu"><img src="https://avatars.githubusercontent.com/u/6957175?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Johnny.Liu</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/issues?q=author%3Ajingyiliu" title="Bug reports">🐛</a></td>
|
|
129
|
+
</tr>
|
|
130
|
+
<tr>
|
|
131
|
+
<td align="center"><a href="https://github.com/Yangxfeng"><img src="https://avatars.githubusercontent.com/u/35209766?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Yangxfeng</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/issues?q=author%3AYangxfeng" title="Bug reports">🐛</a></td>
|
|
132
|
+
<td align="center"><a href="https://github.com/jCodeLife"><img src="https://avatars.githubusercontent.com/u/50767049?v=4?s=100" width="100px;" alt=""/><br /><sub><b>jCodeLife</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/issues?q=author%3AjCodeLife" title="Bug reports">🐛</a></td>
|
|
133
|
+
<td align="center"><a href="https://github.com/XiaoRIGE"><img src="https://avatars.githubusercontent.com/u/33147011?v=4?s=100" width="100px;" alt=""/><br /><sub><b>宋小日</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/issues?q=author%3AXiaoRIGE" title="Bug reports">🐛</a></td>
|
|
134
|
+
<td align="center"><a href="https://github.com/daviForevel"><img src="https://avatars.githubusercontent.com/u/39021499?v=4?s=100" width="100px;" alt=""/><br /><sub><b>daviForevel</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=daviForevel" title="Code">💻</a></td>
|
|
135
|
+
<td align="center"><a href="https://github.com/lj1990111"><img src="https://avatars.githubusercontent.com/u/8649913?v=4?s=100" width="100px;" alt=""/><br /><sub><b>lj1990111</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=lj1990111" title="Code">💻</a></td>
|
|
136
|
+
<td align="center"><a href="https://github.com/newer2333"><img src="https://avatars.githubusercontent.com/u/32949033?v=4?s=100" width="100px;" alt=""/><br /><sub><b>newer2333</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=newer2333" title="Code">💻</a></td>
|
|
123
137
|
</tr>
|
|
124
138
|
</table>
|
|
125
139
|
|
package/alert/index.es.js
CHANGED
|
@@ -16,13 +16,37 @@ const AlertCloseIcon = () => createVNode("svg", {
|
|
|
16
16
|
}, [createVNode("path", {
|
|
17
17
|
"d": "M11.6426,3.19816936 C11.9239974,2.91574512 12.4131626,2.93784891 12.7352108,3.24751057 C13.0571998,3.5572302 13.0901298,4.03723416 12.8087324,4.31965839 L9.14064666,7.99900183 L12.8087324,11.6803416 C13.0645482,11.9370909 13.0605893,12.3571292 12.8158402,12.6640749 L12.7352108,12.7524894 C12.4131626,13.0621511 11.9239974,13.0842548 11.6426,12.8018306 L8,9.14489021 L4.35740003,12.8018306 C4.10158422,13.05858 3.6740594,13.0636532 3.35648225,12.8298003 L3.26478919,12.7524894 C2.94280021,12.4427698 2.90987023,11.9627658 3.19126762,11.6803416 L6.8583349,7.99900183 L3.19126762,4.31965839 C2.93545181,4.06290908 2.93941068,3.64287076 3.18415975,3.3359251 L3.26478919,3.24751057 C3.58683735,2.93784891 4.07600264,2.91574512 4.35740003,3.19816936 L8,6.85411161 L11.6426,3.19816936 Z"
|
|
18
18
|
}, null)])])]);
|
|
19
|
+
function createBem(namespace, element, modifier) {
|
|
20
|
+
let cls = namespace;
|
|
21
|
+
if (element) {
|
|
22
|
+
cls += `__${element}`;
|
|
23
|
+
}
|
|
24
|
+
if (modifier) {
|
|
25
|
+
cls += `--${modifier}`;
|
|
26
|
+
}
|
|
27
|
+
return cls;
|
|
28
|
+
}
|
|
29
|
+
function useNamespace(block) {
|
|
30
|
+
const namespace = `devui-${block}`;
|
|
31
|
+
const b = () => createBem(namespace);
|
|
32
|
+
const e = (element) => element ? createBem(namespace, element) : "";
|
|
33
|
+
const m = (modifier) => modifier ? createBem(namespace, "", modifier) : "";
|
|
34
|
+
const em = (element, modifier) => element && modifier ? createBem(namespace, element, modifier) : "";
|
|
35
|
+
return {
|
|
36
|
+
b,
|
|
37
|
+
e,
|
|
38
|
+
m,
|
|
39
|
+
em
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
const ns = useNamespace("alert");
|
|
19
43
|
const AlertTypeIcon = (props) => createVNode("svg", {
|
|
20
44
|
"width": "16px",
|
|
21
45
|
"height": "16px",
|
|
22
46
|
"viewBox": "0 0 16 16",
|
|
23
47
|
"version": "1.1",
|
|
24
48
|
"xmlns": "http://www.w3.org/2000/svg",
|
|
25
|
-
"class":
|
|
49
|
+
"class": [ns.e("icon"), props.type === "danger" ? ns.em("icon", "error") : ns.em("icon", props.type)]
|
|
26
50
|
}, [(() => {
|
|
27
51
|
switch (props.type) {
|
|
28
52
|
case "success":
|
|
@@ -46,10 +70,10 @@ const AlertTypeIcon = (props) => createVNode("svg", {
|
|
|
46
70
|
"fill": "none",
|
|
47
71
|
"fill-rule": "evenodd"
|
|
48
72
|
}, [createVNode("path", {
|
|
49
|
-
"class": "
|
|
73
|
+
"class": "warning-outer",
|
|
50
74
|
"d": "M8.96244623,0.57254229 L15.8714442,13.4101975 C16.1549662,13.9370117 15.9538562,14.5918482 15.4222523,14.8728158 C15.2642579,14.9563203 15.0879506,15 14.9088903,15 L1.09089441,15 C0.488410063,15 0,14.5159904 0,13.9189343 C0,13.7414873 0.0440768395,13.5667684 0.128340519,13.4101975 L7.03733844,0.57254229 C7.32086049,0.0457280838 7.98165058,-0.153569987 8.51325441,0.127397589 C8.70423071,0.228333932 8.8605922,0.383286648 8.96244623,0.57254229 Z"
|
|
51
75
|
}, null), createVNode("path", {
|
|
52
|
-
"class": "
|
|
76
|
+
"class": "warning-inner",
|
|
53
77
|
"stroke-width": "0.3",
|
|
54
78
|
"fill-rule": "nonzero",
|
|
55
79
|
"d": "M8.87894737,13 L7.08947368,13 L7.08947368,11.2105263 L8.87894737,11.2105263 L8.87894737,13 Z M8.62102372,9.86842105 L7.32800539,9.86842105 L7,4.5 L8.96842105,4.5 L8.62102372,9.86842105 Z"
|
|
@@ -63,10 +87,10 @@ const AlertTypeIcon = (props) => createVNode("svg", {
|
|
|
63
87
|
}, [createVNode("g", {
|
|
64
88
|
"fill-rule": "nonzero"
|
|
65
89
|
}, [createVNode("path", {
|
|
66
|
-
"class": "
|
|
90
|
+
"class": "info-outer",
|
|
67
91
|
"d": "M8,0 C3.6,0 0,3.6 0,8 C0,12.4 3.6,16 8,16 C12.4,16 16,12.4 16,8 C16,3.6 12.4,0 8,0 Z"
|
|
68
92
|
}, null), createVNode("path", {
|
|
69
|
-
"class": "
|
|
93
|
+
"class": "info-inner",
|
|
70
94
|
"d": "M9.19008504,7 L8.79402696,13 L7.15622605,13 L6.73158434,7 L9.19008504,7 Z M9,3 L9,5 L7,5 L7,3 L9,3 Z",
|
|
71
95
|
"stroke-width": "0.2"
|
|
72
96
|
}, null)])]);
|
|
@@ -79,10 +103,10 @@ const AlertTypeIcon = (props) => createVNode("svg", {
|
|
|
79
103
|
}, [createVNode("g", {
|
|
80
104
|
"fill-rule": "nonzero"
|
|
81
105
|
}, [createVNode("path", {
|
|
82
|
-
"class": "
|
|
106
|
+
"class": "error-outer",
|
|
83
107
|
"d": "M8,0 C3.6,0 0,3.6 0,8 C0,12.4 3.6,16 8,16 C12.4,16 16,12.4 16,8 C16,3.6 12.4,0 8,0 Z"
|
|
84
108
|
}, null), createVNode("path", {
|
|
85
|
-
"class": "
|
|
109
|
+
"class": "error-inner",
|
|
86
110
|
"d": "M9,10.6 L9,12.6 L7,12.6 L7,10.6 L9,10.6 Z M9.1,3.1 L8.65924344,9.1 L7.28422786,9.1 L6.9,3.1 L9.1,3.1 Z",
|
|
87
111
|
"stroke-width": "0.2"
|
|
88
112
|
}, null)])]);
|
|
@@ -118,6 +142,8 @@ var Alert = defineComponent({
|
|
|
118
142
|
props: alertProps,
|
|
119
143
|
emits: ["close"],
|
|
120
144
|
setup(props, ctx) {
|
|
145
|
+
const ns2 = useNamespace("alert");
|
|
146
|
+
const closeNs = useNamespace("close");
|
|
121
147
|
const hide = ref(false);
|
|
122
148
|
const closing = ref(false);
|
|
123
149
|
const alertEl = ref();
|
|
@@ -141,19 +167,19 @@ var Alert = defineComponent({
|
|
|
141
167
|
});
|
|
142
168
|
return () => {
|
|
143
169
|
return !hide.value ? createVNode(Transition, {
|
|
144
|
-
"name":
|
|
170
|
+
"name": ns2.b(),
|
|
145
171
|
"onAfterLeave": afterLeave
|
|
146
172
|
}, {
|
|
147
173
|
default: () => {
|
|
148
174
|
var _a, _b;
|
|
149
175
|
return [withDirectives(createVNode("div", {
|
|
150
176
|
"ref": alertEl,
|
|
151
|
-
"class":
|
|
177
|
+
"class": [ns2.b(), ns2.m(props.type), props.cssClass, closing.value && ns2.m("close")]
|
|
152
178
|
}, [props.closeable ? createVNode("div", {
|
|
153
|
-
"class":
|
|
179
|
+
"class": closeNs.b(),
|
|
154
180
|
"onClick": close
|
|
155
181
|
}, [createVNode(AlertCloseIcon, null, null)]) : null, props.showIcon !== false && props.type !== "simple" ? createVNode("span", {
|
|
156
|
-
"class": "
|
|
182
|
+
"class": ns2.e("icon-wrap")
|
|
157
183
|
}, [createVNode(AlertTypeIcon, {
|
|
158
184
|
"type": props.type
|
|
159
185
|
}, null)]) : null, (_b = (_a = ctx.slots).default) == null ? void 0 : _b.call(_a)]), [[vShow, !closing.value]])];
|
package/alert/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(n,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(n=typeof globalThis!="undefined"?globalThis:n||self,e(n.index={},n.Vue))})(this,function(n,e){"use strict";const p=()=>e.createVNode("svg",{width:"10px",height:"10px",viewBox:"0 0 10 10",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[e.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("g",{transform:"translate(-3.000000, -3.000000)","fill-rule":"nonzero"},[e.createVNode("path",{d:"M11.6426,3.19816936 C11.9239974,2.91574512 12.4131626,2.93784891 12.7352108,3.24751057 C13.0571998,3.5572302 13.0901298,4.03723416 12.8087324,4.31965839 L9.14064666,7.99900183 L12.8087324,11.6803416 C13.0645482,11.9370909 13.0605893,12.3571292 12.8158402,12.6640749 L12.7352108,12.7524894 C12.4131626,13.0621511 11.9239974,13.0842548 11.6426,12.8018306 L8,9.14489021 L4.35740003,12.8018306 C4.10158422,13.05858 3.6740594,13.0636532 3.35648225,12.8298003 L3.26478919,12.7524894 C2.94280021,12.4427698 2.90987023,11.9627658 3.19126762,11.6803416 L6.8583349,7.99900183 L3.19126762,4.31965839 C2.93545181,4.06290908 2.93941068,3.64287076 3.18415975,3.3359251 L3.26478919,3.24751057 C3.58683735,2.93784891 4.07600264,2.91574512 4.35740003,3.19816936 L8,6.85411161 L11.6426,3.19816936 Z"},null)])])]);function c(t,l,r){let a=t;return l&&(a+=`__${l}`),r&&(a+=`--${r}`),a}function u(t){const l=`devui-${t}`;return{b:()=>c(l),e:o=>o?c(l,o):"",m:o=>o?c(l,"",o):"",em:(o,s)=>o&&s?c(l,o,s):""}}const f=u("alert"),N=t=>e.createVNode("svg",{width:"16px",height:"16px",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",class:[f.e("icon"),t.type==="danger"?f.em("icon","error"):f.em("icon",t.type)]},[(()=>{switch(t.type){case"success":return e.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("path",{"fill-rule":"nonzero",d:"M8,0 C3.6,0 0,3.6 0,8 C0,12.4 3.6,16 8,16 C12.4,16 16,12.4 16,8 C16,3.6 12.4,0 8,0 Z"},null),e.createVNode("polygon",{"stroke-width":"0.3","fill-rule":"nonzero",points:"6.82767602 11.5282799 3 7.24668779 3.89864233 6.37912367 6.82767602 9.04910002 12.2964408 4 13 4.64144383"},null)]);case"warning":return e.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("path",{class:"warning-outer",d:"M8.96244623,0.57254229 L15.8714442,13.4101975 C16.1549662,13.9370117 15.9538562,14.5918482 15.4222523,14.8728158 C15.2642579,14.9563203 15.0879506,15 14.9088903,15 L1.09089441,15 C0.488410063,15 0,14.5159904 0,13.9189343 C0,13.7414873 0.0440768395,13.5667684 0.128340519,13.4101975 L7.03733844,0.57254229 C7.32086049,0.0457280838 7.98165058,-0.153569987 8.51325441,0.127397589 C8.70423071,0.228333932 8.8605922,0.383286648 8.96244623,0.57254229 Z"},null),e.createVNode("path",{class:"warning-inner","stroke-width":"0.3","fill-rule":"nonzero",d:"M8.87894737,13 L7.08947368,13 L7.08947368,11.2105263 L8.87894737,11.2105263 L8.87894737,13 Z M8.62102372,9.86842105 L7.32800539,9.86842105 L7,4.5 L8.96842105,4.5 L8.62102372,9.86842105 Z"},null)]);case"info":return e.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("g",{"fill-rule":"nonzero"},[e.createVNode("path",{class:"info-outer",d:"M8,0 C3.6,0 0,3.6 0,8 C0,12.4 3.6,16 8,16 C12.4,16 16,12.4 16,8 C16,3.6 12.4,0 8,0 Z"},null),e.createVNode("path",{class:"info-inner",d:"M9.19008504,7 L8.79402696,13 L7.15622605,13 L6.73158434,7 L9.19008504,7 Z M9,3 L9,5 L7,5 L7,3 L9,3 Z","stroke-width":"0.2"},null)])]);case"danger":return e.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("g",{"fill-rule":"nonzero"},[e.createVNode("path",{class:"error-outer",d:"M8,0 C3.6,0 0,3.6 0,8 C0,12.4 3.6,16 8,16 C12.4,16 16,12.4 16,8 C16,3.6 12.4,0 8,0 Z"},null),e.createVNode("path",{class:"error-inner",d:"M9,10.6 L9,12.6 L7,12.6 L7,10.6 L9,10.6 Z M9.1,3.1 L8.65924344,9.1 L7.28422786,9.1 L6.9,3.1 L9.1,3.1 Z","stroke-width":"0.2"},null)])]);default:return null}})()]),w={type:{type:String,default:"info"},cssClass:{type:String,default:""},closeable:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},dismissTime:{type:Number,default:0}};var y="",L=e.defineComponent({name:"DAlert",props:w,emits:["close"],setup(t,l){const r=u("alert"),a=u("close"),h=e.ref(!1),i=e.ref(!1),o=e.ref();let s;const C=d=>{s&&clearTimeout(s),i.value=!0,l.emit("close",d)},V=()=>{s=void 0,h.value=!0,i.value=!1};return e.onMounted(()=>{t.dismissTime&&(s=window.setTimeout(()=>{C()},t.dismissTime))}),()=>h.value?null:e.createVNode(e.Transition,{name:r.b(),onAfterLeave:V},{default:()=>{var d,m;return[e.withDirectives(e.createVNode("div",{ref:o,class:[r.b(),r.m(t.type),t.cssClass,i.value&&r.m("close")]},[t.closeable?e.createVNode("div",{class:a.b(),onClick:C},[e.createVNode(p,null,null)]):null,t.showIcon!==!1&&t.type!=="simple"?e.createVNode("span",{class:r.e("icon-wrap")},[e.createVNode(N,{type:t.type},null)]):null,(m=(d=l.slots).default)==null?void 0:m.call(d)]),[[e.vShow,!i.value]])]}})}}),g={title:"Alert \u8B66\u544A",category:"\u53CD\u9988",status:"100%",install(t){t.component(L.name,L)}};n.Alert=L,n.alertProps=w,n.default=g,Object.defineProperty(n,"__esModule",{value:!0}),n[Symbol.toStringTag]="Module"});
|
package/alert/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.devui-alert{color:var(--devui-text, #252b3a);font-size:var(--devui-font-size, 12px);border:1px solid transparent;padding:8px 16px;line-height:24px;border-radius:var(--devui-border-radius, 2px);word-break:normal;word-wrap:break-word}.devui-alert .devui-close{color:var(--devui-text, #252b3a);opacity:1;line-height:26px;height:24px}.devui-alert .devui-close>svg path{fill:var(--devui-light-text, #ffffff)}.devui-alert .devui-close span{color:var(--devui-text, #252b3a);font-size:var(--devui-font-size, 12px);font-weight:700}.devui-alert.devui-alert
|
|
1
|
+
.devui-alert{color:var(--devui-text, #252b3a);font-size:var(--devui-font-size, 12px);border:1px solid transparent;padding:8px 16px;line-height:24px;border-radius:var(--devui-border-radius, 2px);word-break:normal;word-wrap:break-word}.devui-alert .devui-close{color:var(--devui-text, #252b3a);opacity:1;line-height:26px;height:24px}.devui-alert .devui-close>svg path{fill:var(--devui-light-text, #ffffff)}.devui-alert .devui-close span{color:var(--devui-text, #252b3a);font-size:var(--devui-font-size, 12px);font-weight:700}.devui-alert.devui-alert--success{background-color:var(--devui-success-bg, #edfff9);border-color:var(--devui-success-line, #50d4ab);color:var(--devui-text, #252b3a)}.devui-alert.devui-alert--success .devui-close>svg path{fill:var(--devui-success-line, #50d4ab)}.devui-alert.devui-alert--info{background-color:var(--devui-info-bg, #f2f5fc);border-color:var(--devui-info-line, #5e7ce0);color:var(--devui-text, #252b3a)}.devui-alert.devui-alert--info .devui-close>svg path{fill:var(--devui-info-line, #5e7ce0)}.devui-alert.devui-alert--warning{background-color:var(--devui-warning-bg, #fff3e8);border-color:var(--devui-warning-line, #fa9841);color:var(--devui-text, #252b3a)}.devui-alert.devui-alert--warning .devui-close>svg path{fill:var(--devui-warning-line, #fa9841)}.devui-alert.devui-alert--danger{background-color:var(--devui-danger-bg, #ffeeed);border-color:var(--devui-danger-line, #f66f6a);color:var(--devui-text, #252b3a)}.devui-alert.devui-alert--danger .devui-close>svg path{fill:var(--devui-danger-line, #f66f6a)}.devui-alert.devui-alert--simple{border-color:var(--devui-line, #adb0b8);color:var(--devui-text, #252b3a)}.devui-alert.devui-alert--simple .devui-close>svg path{fill:var(--devui-text-weak, #575d6c)}.devui-alert svg.devui-alert__icon{width:16px;height:16px;vertical-align:middle;transform:translateY(-1px)}.devui-alert .devui-alert__icon.devui-alert__icon--success>g path{fill:var(--devui-success-line, #50d4ab)}.devui-alert .devui-alert__icon.devui-alert__icon--success>g polygon{fill:var(--devui-light-text, #ffffff);stroke:var(--devui-light-text, #ffffff)}.devui-alert .devui-alert__icon.devui-alert__icon--warning>g path.warning-outer{fill:var(--devui-warning-line, #fa9841)}.devui-alert .devui-alert__icon.devui-alert__icon--warning>g path.warning-inner{fill:var(--devui-light-text, #ffffff);stroke:var(--devui-light-text, #ffffff)}.devui-alert .devui-alert__icon.devui-alert__icon--info>g path.info-outer{fill:var(--devui-info-line, #5e7ce0)}.devui-alert .devui-alert__icon.devui-alert__icon--info>g path.info-inner{fill:var(--devui-light-text, #ffffff);stroke:var(--devui-light-text, #ffffff)}.devui-alert .devui-alert__icon.devui-alert__icon--error>g path.error-outer{fill:var(--devui-danger-line, #f66f6a)}.devui-alert .devui-alert__icon.devui-alert__icon--error>g path.error-inner{fill:var(--devui-light-text, #ffffff);stroke:var(--devui-light-text, #ffffff)}.devui-alert__icon-wrap{margin-right:4px}.devui-alter--close{margin:0;padding-top:0;padding-bottom:0;transform-origin:50% 0;transition:all .3s ease-in-out}.devui-alert-leave-active{animation:alertUpOut .3s ease-in-out;animation-fill-mode:both}@keyframes alertUpOut{0%{transform:scaleY(1);transform-origin:0% 0%;opacity:1}to{transform:scaleY(0);transform-origin:0% 0%;opacity:0}}
|
|
@@ -205,6 +205,7 @@ function useInputHandle(ctx2, searchList, showNoResultItemTemplate, modelValue,
|
|
|
205
205
|
const visible = ref(false);
|
|
206
206
|
const inputRef = ref();
|
|
207
207
|
const searchStatus = ref(false);
|
|
208
|
+
const isFocus = ref(false);
|
|
208
209
|
const debounce = (cb, time) => {
|
|
209
210
|
let timer;
|
|
210
211
|
return (arg) => {
|
|
@@ -231,10 +232,14 @@ function useInputHandle(ctx2, searchList, showNoResultItemTemplate, modelValue,
|
|
|
231
232
|
onInputDebounce(inp.value);
|
|
232
233
|
};
|
|
233
234
|
const onFocus = () => {
|
|
235
|
+
isFocus.value = true;
|
|
234
236
|
handleSearch(modelValue.value);
|
|
235
237
|
recentlyFocus(latestSource == null ? void 0 : latestSource.value);
|
|
236
238
|
transInputFocusEmit.value && transInputFocusEmit.value();
|
|
237
239
|
};
|
|
240
|
+
const onBlur = () => {
|
|
241
|
+
isFocus.value = false;
|
|
242
|
+
};
|
|
238
243
|
const handleClose = () => {
|
|
239
244
|
visible.value = false;
|
|
240
245
|
searchStatus.value = false;
|
|
@@ -257,6 +262,8 @@ function useInputHandle(ctx2, searchList, showNoResultItemTemplate, modelValue,
|
|
|
257
262
|
toggleMenu,
|
|
258
263
|
onInput,
|
|
259
264
|
onFocus,
|
|
265
|
+
onBlur,
|
|
266
|
+
isFocus,
|
|
260
267
|
inputRef,
|
|
261
268
|
visible,
|
|
262
269
|
searchStatus
|
|
@@ -405,6 +412,29 @@ class LoadingOptions {
|
|
|
405
412
|
__publicField(this, "zIndex");
|
|
406
413
|
}
|
|
407
414
|
}
|
|
415
|
+
function createBem(namespace, element, modifier) {
|
|
416
|
+
let cls = namespace;
|
|
417
|
+
if (element) {
|
|
418
|
+
cls += `__${element}`;
|
|
419
|
+
}
|
|
420
|
+
if (modifier) {
|
|
421
|
+
cls += `--${modifier}`;
|
|
422
|
+
}
|
|
423
|
+
return cls;
|
|
424
|
+
}
|
|
425
|
+
function useNamespace(block) {
|
|
426
|
+
const namespace = `devui-${block}`;
|
|
427
|
+
const b = () => createBem(namespace);
|
|
428
|
+
const e = (element) => element ? createBem(namespace, element) : "";
|
|
429
|
+
const m = (modifier) => modifier ? createBem(namespace, "", modifier) : "";
|
|
430
|
+
const em = (element, modifier) => element && modifier ? createBem(namespace, element, modifier) : "";
|
|
431
|
+
return {
|
|
432
|
+
b,
|
|
433
|
+
e,
|
|
434
|
+
m,
|
|
435
|
+
em
|
|
436
|
+
};
|
|
437
|
+
}
|
|
408
438
|
var loading = "";
|
|
409
439
|
var Loading = defineComponent({
|
|
410
440
|
name: "DLoading",
|
|
@@ -443,27 +473,28 @@ var Loading = defineComponent({
|
|
|
443
473
|
message,
|
|
444
474
|
$slots
|
|
445
475
|
} = this;
|
|
476
|
+
const ns = useNamespace("loading");
|
|
446
477
|
return isShow && createVNode("div", {
|
|
447
|
-
"class": [
|
|
478
|
+
"class": [ns.b(), isFull ? ns.m("full") : ""]
|
|
448
479
|
}, [((_a = $slots.default) == null ? void 0 : _a.call($slots)) || createVNode("div", {
|
|
449
|
-
"class": "
|
|
480
|
+
"class": ns.e("wrapper")
|
|
450
481
|
}, [backdrop ? createVNode("div", {
|
|
451
|
-
"class": "
|
|
482
|
+
"class": ns.e("mask")
|
|
452
483
|
}, null) : null, createVNode("div", {
|
|
453
484
|
"style": style,
|
|
454
|
-
"class": "
|
|
485
|
+
"class": ns.e("area")
|
|
455
486
|
}, [createVNode("div", {
|
|
456
|
-
"class": "
|
|
487
|
+
"class": ns.e("busy-default-spinner")
|
|
457
488
|
}, [createVNode("div", {
|
|
458
|
-
"class": "
|
|
489
|
+
"class": ns.e("bar1")
|
|
459
490
|
}, null), createVNode("div", {
|
|
460
|
-
"class": "
|
|
491
|
+
"class": ns.e("bar2")
|
|
461
492
|
}, null), createVNode("div", {
|
|
462
|
-
"class": "
|
|
493
|
+
"class": ns.e("bar3")
|
|
463
494
|
}, null), createVNode("div", {
|
|
464
|
-
"class": "
|
|
495
|
+
"class": ns.e("bar4")
|
|
465
496
|
}, null)]), message ? createVNode("span", {
|
|
466
|
-
"class": "
|
|
497
|
+
"class": ns.e("text")
|
|
467
498
|
}, [message]) : null])])]);
|
|
468
499
|
}
|
|
469
500
|
});
|
|
@@ -608,6 +639,10 @@ var DAutoCompleteDropdown = defineComponent({
|
|
|
608
639
|
disabledKey,
|
|
609
640
|
isSearching
|
|
610
641
|
} = propsData.props;
|
|
642
|
+
const ns = useNamespace("auto-complete");
|
|
643
|
+
const noDataNs = useNamespace("no-data-tip");
|
|
644
|
+
const dropdownMenuNs = useNamespace("dropdown-menu");
|
|
645
|
+
const dropdownItemNs = useNamespace("dropdown-item");
|
|
611
646
|
const onSelect = (item) => {
|
|
612
647
|
item = valueParser.value(item);
|
|
613
648
|
if (typeof item === "object" && item[disabledKey]) {
|
|
@@ -617,35 +652,35 @@ var DAutoCompleteDropdown = defineComponent({
|
|
|
617
652
|
};
|
|
618
653
|
return () => {
|
|
619
654
|
return withDirectives(createVNode("div", {
|
|
620
|
-
"class": [
|
|
655
|
+
"class": [dropdownMenuNs.b(), ns.e("dropdown-menu-cdk"), disabled && "disabled", latestSource.value && ns.e("dropdown-latestSource")]
|
|
621
656
|
}, [createVNode("ul", {
|
|
622
657
|
"ref": dropDownRef,
|
|
623
|
-
"class": "
|
|
658
|
+
"class": [ns.e("list-unstyled"), "scroll-height"],
|
|
624
659
|
"style": {
|
|
625
660
|
maxHeight: `${maxHeight}px`
|
|
626
661
|
},
|
|
627
662
|
"onScroll": loadMore
|
|
628
663
|
}, [isSearching && ctx2.slots.searchingTemplate && (searchStatus == null ? void 0 : searchStatus.value) && createVNode("li", {
|
|
629
|
-
"class": "
|
|
664
|
+
"class": ns.e("searching-template")
|
|
630
665
|
}, [createVNode("div", {
|
|
631
|
-
"class":
|
|
666
|
+
"class": noDataNs.b()
|
|
632
667
|
}, [ctx2.slots.searchingTemplate()])]), latestSource.value && !modelValue.value && createVNode("li", {
|
|
633
|
-
"class": "
|
|
668
|
+
"class": ns.e("popup-tips")
|
|
634
669
|
}, [createTextVNode("\u6700\u8FD1\u8F93\u5165")]), !showNoResultItemTemplate.value && !(searchStatus == null ? void 0 : searchStatus.value) && searchList != null && searchList.value.length > 0 && searchList.value.map((item, index2) => {
|
|
635
670
|
return createVNode("li", {
|
|
636
671
|
"onClick": () => onSelect(item),
|
|
637
|
-
"class": [
|
|
638
|
-
|
|
672
|
+
"class": [dropdownItemNs.b(), selectedIndex.value === index2 && "selected", {
|
|
673
|
+
disabled: disabledKey && typeof item === "object" && item[disabledKey]
|
|
639
674
|
}, {
|
|
640
|
-
"
|
|
675
|
+
[ns.e("dropdown-bg")]: hoverIndex.value === index2
|
|
641
676
|
}],
|
|
642
677
|
"title": formatter(item),
|
|
643
678
|
"key": formatter(item)
|
|
644
679
|
}, [ctx2.slots.itemTemplate ? ctx2.slots.itemTemplate(item, index2) : formatter(item)]);
|
|
645
680
|
}), !(searchStatus == null ? void 0 : searchStatus.value) && searchList.value.length === 0 && ctx2.slots.noResultItemTemplate && showNoResultItemTemplate.value && createVNode("li", {
|
|
646
|
-
"class": "
|
|
681
|
+
"class": ns.e("no-result-template")
|
|
647
682
|
}, [createVNode("div", {
|
|
648
|
-
"class":
|
|
683
|
+
"class": noDataNs.b()
|
|
649
684
|
}, [ctx2.slots.noResultItemTemplate()])])])]), [[resolveDirective("dLoading"), showLoading.value], [vShow, visible.value && searchList.value.length > 0 || ctx2.slots.noResultItemTemplate && showNoResultItemTemplate.value || isSearching && ctx2.slots.searchingTemplate && (searchStatus == null ? void 0 : searchStatus.value)]]);
|
|
650
685
|
};
|
|
651
686
|
}
|
|
@@ -849,6 +884,7 @@ const FlexibleOverlay = defineComponent({
|
|
|
849
884
|
emit,
|
|
850
885
|
expose
|
|
851
886
|
}) {
|
|
887
|
+
const ns = useNamespace("flexible-overlay");
|
|
852
888
|
const {
|
|
853
889
|
arrowRef,
|
|
854
890
|
overlayRef,
|
|
@@ -861,10 +897,10 @@ const FlexibleOverlay = defineComponent({
|
|
|
861
897
|
var _a;
|
|
862
898
|
return props.modelValue && createVNode("div", mergeProps({
|
|
863
899
|
"ref": overlayRef,
|
|
864
|
-
"class":
|
|
900
|
+
"class": ns.b()
|
|
865
901
|
}, attrs), [(_a = slots.default) == null ? void 0 : _a.call(slots), props.showArrow && createVNode("div", {
|
|
866
902
|
"ref": arrowRef,
|
|
867
|
-
"class": "
|
|
903
|
+
"class": ns.e("arrow")
|
|
868
904
|
}, null)]);
|
|
869
905
|
};
|
|
870
906
|
}
|
|
@@ -898,6 +934,13 @@ var AutoComplete = defineComponent({
|
|
|
898
934
|
showAnimation,
|
|
899
935
|
valueParser
|
|
900
936
|
} = toRefs(props);
|
|
937
|
+
const ns = useNamespace("auto-complete");
|
|
938
|
+
const formNs = useNamespace("form-group");
|
|
939
|
+
const feedbackNs = useNamespace("has-feedback");
|
|
940
|
+
const selectNs = useNamespace("select-open");
|
|
941
|
+
const formControlNs = useNamespace("form-control");
|
|
942
|
+
const dropdownNs = useNamespace("dropdown-origin");
|
|
943
|
+
const dropdownOpenNs = useNamespace("dropdown-origin-open");
|
|
901
944
|
const {
|
|
902
945
|
handleSearch,
|
|
903
946
|
searchList,
|
|
@@ -907,7 +950,9 @@ var AutoComplete = defineComponent({
|
|
|
907
950
|
const {
|
|
908
951
|
onInput,
|
|
909
952
|
onFocus,
|
|
953
|
+
onBlur,
|
|
910
954
|
inputRef,
|
|
955
|
+
isFocus,
|
|
911
956
|
visible,
|
|
912
957
|
searchStatus,
|
|
913
958
|
handleClose,
|
|
@@ -964,7 +1009,7 @@ var AutoComplete = defineComponent({
|
|
|
964
1009
|
"onUpdate:modelValue": ($event) => visible.value = $event
|
|
965
1010
|
}, {
|
|
966
1011
|
default: () => [createVNode("div", {
|
|
967
|
-
"class": "
|
|
1012
|
+
"class": ns.e("menu"),
|
|
968
1013
|
"style": {
|
|
969
1014
|
width: `
|
|
970
1015
|
${width.value + "px"}
|
|
@@ -989,7 +1034,7 @@ var AutoComplete = defineComponent({
|
|
|
989
1034
|
"onUpdate:modelValue": ($event) => visible.value = $event
|
|
990
1035
|
}, {
|
|
991
1036
|
default: () => [createVNode("div", {
|
|
992
|
-
"class": "
|
|
1037
|
+
"class": ns.e("menu"),
|
|
993
1038
|
"style": {
|
|
994
1039
|
width: `
|
|
995
1040
|
${width.value + "px"}
|
|
@@ -1004,7 +1049,7 @@ var AutoComplete = defineComponent({
|
|
|
1004
1049
|
};
|
|
1005
1050
|
return () => {
|
|
1006
1051
|
return withDirectives(createVNode("div", {
|
|
1007
|
-
"class": [
|
|
1052
|
+
"class": [ns.b(), formNs.b(), feedbackNs.b(), visible.value && selectNs.b()],
|
|
1008
1053
|
"ref": origin,
|
|
1009
1054
|
"style": {
|
|
1010
1055
|
width: `${width.value + "px"}`
|
|
@@ -1013,10 +1058,11 @@ var AutoComplete = defineComponent({
|
|
|
1013
1058
|
"disabled": disabled.value,
|
|
1014
1059
|
"type": "text",
|
|
1015
1060
|
"onClick": toggleMenu,
|
|
1016
|
-
"class": [
|
|
1061
|
+
"class": [formControlNs.b(), dropdownNs.b(), isFocus.value && dropdownOpenNs.b(), disabled.value && "disabled"],
|
|
1017
1062
|
"placeholder": "Search",
|
|
1018
1063
|
"onInput": onInput,
|
|
1019
1064
|
"onFocus": onFocus,
|
|
1065
|
+
"onBlur": onBlur,
|
|
1020
1066
|
"value": modelValue.value,
|
|
1021
1067
|
"ref": inputRef,
|
|
1022
1068
|
"onKeydown": handlekeyDown
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var Pe=Object.defineProperty;var ie=Object.getOwnPropertySymbols;var Be=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable;var z=(v,t,y)=>t in v?Pe(v,t,{enumerable:!0,configurable:!0,writable:!0,value:y}):v[t]=y,D=(v,t)=>{for(var y in t||(t={}))Be.call(t,y)&&z(v,y,t[y]);if(ie)for(var y of ie(t))je.call(t,y)&&z(v,y,t[y]);return v};var C=(v,t,y)=>(z(v,typeof t!="symbol"?t+"":t,y),y);(function(v,t){typeof exports=="object"&&typeof module!="undefined"?t(exports,require("vue"),require("@floating-ui/dom")):typeof define=="function"&&define.amd?define(["exports","vue","@floating-ui/dom"],t):(v=typeof globalThis!="undefined"?globalThis:v||self,t(v.index={},v.Vue,v.dom))})(this,function(v,t,y){"use strict";const _={modelValue:{type:String,default:""},source:{type:Array,default:null},allowEmptyValueSearch:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!1},position:{type:Array,default:["bottom-end"]},disabled:{type:Boolean,default:!1},delay:{type:Number,default:300},disabledKey:{type:String,default:null},formatter:{type:Function,default:e=>typeof e=="string"?e:e!==null?e.label||e.toString():""},isSearching:{type:Boolean,default:!1},sceneType:{type:String,default:null},searchFn:{type:Function,default:null},tipsText:{type:String,default:"\u6700\u8FD1\u8F93\u5165"},latestSource:{type:Array,default:null},valueParser:{type:Function,default:e=>e},enableLazyLoad:{type:Boolean,default:!1},width:{type:Number,default:400},showAnimation:{type:Boolean,default:!0},maxHeight:{type:Number,default:300},transInputFocusEmit:{type:Function,default:null},selectValue:{type:Function,default:null},loadMore:{type:Function,default:null}},I=Symbol("DropdownPropsKey");function ue(e,n){const o=(r,u)=>{const i={item:r,index:u};return e.slots.item?e.slots.item(i):null},a=()=>e.slots.nothing?e.slots.nothing(n.value):null,l=()=>e.slots.searching?e.slots.searching(n.value):null;return{customRenderSolts:()=>{const r={};return e.slots.item&&(r.itemTemplate=o),e.slots.nothing&&(r.noResultItemTemplate=a),e.slots.searching&&(r.searchingTemplate=l),r}}}function de(e,n,o,a,l){const s=t.ref([]),r=t.ref(!1),u=d=>{const p=[];return o.value.forEach(c=>{let m=l.value(c);m=m.toLowerCase(),m.startsWith(d)&&p.push(c)}),p};return{handleSearch:async(d,p=!1)=>{if(d===""&&!n.value){s.value=[],r.value=!1;return}let c=[];d=d.toLowerCase(),p?c=o.value:a.value?c=await a.value(d):c=u(d),s.value=c,s.value.length===0?r.value=!0:r.value=!1},recentlyFocus:d=>{d&&(s.value=d)},searchList:s,showNoResultItemTemplate:r}}function ce(e,n,o,a,l,s,r,u,i,f){const d=t.ref(!1),p=t.ref(),c=t.ref(!1),h=((N,S)=>{let g;return E=>{g&&clearTimeout(g),g=setTimeout(async()=>{c.value=!0,await N(E),c.value=!1},S)}})(async N=>{await r(N),d.value=!0},s.value),V=N=>{const S=N.target;c.value=!1,o.value=!1,e.emit("update:modelValue",S.value),h(S.value)},T=()=>{r(a.value),i(f==null?void 0:f.value),u.value&&u.value()},b=()=>{d.value=!1,c.value=!1,o.value=!1};return{handleClose:b,toggleMenu:()=>{l.value||(d.value?b():(d.value=!0,e.slots.noResultItemTemplate&&n.value.length===0&&a.value.trim()!==""&&(o.value=!0)))},onInput:V,onFocus:T,inputRef:p,visible:d,searchStatus:c}}function fe(e,n,o,a,l,s){const r=t.ref(0),u=f=>{if(n.value.length===0)return 0;let d=0;return n.value.forEach((p,c)=>{typeof p=="string"?p===f&&(d=c):String(p.label)===f&&(d=c)}),d===-1?0:d};return{selectedIndex:r,selectOptionClick:async f=>{const d=l.value(f);e.emit("update:modelValue",d),s(),await a(d),r.value=u(d),o.value&&o.value(d)}}}function pe(e,n,o){const a=t.ref(!1),l=t.ref(),s=()=>{if(!e.enableLazyLoad&&a)return;const u=l.value,i=u.scrollHeight,f=u.clientHeight+u.scrollTop;f>=i&&f>=e.maxHeight&&(e.loadMore(),a.value=!0)};async function r(){await o(e.modelValue,e.enableLazyLoad),a.value=!1}return n.expose({loadFinish:r}),{showLoading:a,dropDownRef:l,loadMore:s}}function ve(e,n,o,a,l,s,r,u){var p;const i=t.ref((p=a.value)!=null?p:0),f=c=>{const m=e.value,w=m.children[c];t.nextTick(()=>{if(w.scrollIntoViewIfNeeded)w.scrollIntoViewIfNeeded(!1);else{const h=m.getBoundingClientRect(),V=w.getBoundingClientRect();(V.bottom>h.bottom||V.top<h.top)&&w.scrollIntoView(!1)}})};return{hoverIndex:i,handlekeyDown:c=>{var h;const m=c.key||c.code;if(m==="Escape"&&(n.value&&o.value.length||l.value||s.value)){u();return}const w=n.value&&o.value.length&&!l.value&&!s.value;if(m==="ArrowDown"&&w){if(i.value===o.value.length-1){i.value=0,f(i.value);return}i.value=i.value+1,f(i.value)}else if(m==="ArrowUp"&&w){if(i.value===0){i.value=o.value.length-1,f(i.value);return}i.value=i.value-1,f(i.value)}if(m==="Enter"&&w){r(o.value[i.value]),i.value=(h=a.value)!=null?h:0;return}}}}class ${constructor(){C(this,"top","50%");C(this,"left","50%")}}const me={message:String,backdrop:Boolean,view:{type:Object,default:()=>new $},zIndex:Number,isFull:{type:Boolean,default:!1}};class ye{constructor(){C(this,"target");C(this,"message");C(this,"loadingTemplateRef");C(this,"backdrop",!0);C(this,"positionType","relative");C(this,"view",new $);C(this,"zIndex")}}var ze="",ge=t.defineComponent({name:"DLoading",inheritAttrs:!1,props:me,setup(e){const n={top:e.view.top,left:e.view.left,zIndex:e.zIndex};e.message||(n.background="none");const o=t.ref(!1);return{style:n,isShow:o,open:()=>{o.value=!0},close:()=>{o.value=!1}}},render(){var r;const{isShow:e,isFull:n,backdrop:o,style:a,message:l,$slots:s}=this;return e&&t.createVNode("div",{class:["devui-loading-contanier",n?"devui-loading--full":""]},[((r=s.default)==null?void 0:r.call(s))||t.createVNode("div",{class:"devui-loading-wrapper"},[o?t.createVNode("div",{class:"devui-loading-mask"},null):null,t.createVNode("div",{style:a,class:"devui-loading-area"},[t.createVNode("div",{class:"devui-busy-default-spinner"},[t.createVNode("div",{class:"devui-loading-bar1"},null),t.createVNode("div",{class:"devui-loading-bar2"},null),t.createVNode("div",{class:"devui-loading-bar3"},null),t.createVNode("div",{class:"devui-loading-bar4"},null)]),l?t.createVNode("span",{class:"devui-loading-text"},[l]):null])])])}});const K=Symbol("dev_component_container");function we(e,n,o=null){const a=t.h(e,D({},n),o),l=document.createElement("div");return a[K]=l,t.render(a,l),a.component}function he(e){t.render(null,e==null?void 0:e.vnode[K])}const be=t.defineComponent(ge),k=new WeakSet,R=e=>{if(!e)return!0;if(Array.isArray(e))return e.length===0;if(e instanceof Set||e instanceof Map)return e.size===0;if(e instanceof Promise)return!1;if(typeof e=="object")try{return Object.keys(e).length===0}catch{return!1}return!1},U=e=>Object.prototype.toString.call(e).slice(8,-1).toLowerCase(),Ve=e=>{switch(U(e)){case"promise":return[e];case"array":return e.some(o=>U(o)!=="promise")?(console.error(new TypeError("Binding values should all be of type Promise")),"error"):e;default:return!1}},Y=e=>{k.delete(e),e.instance.proxy.close(),he(e.instance)},q=(e,n)=>{var o,a,l;if(n.value){const s=Ve(n.value);if(s==="error")return;(l=(a=(o=e==null?void 0:e.instance)==null?void 0:o.proxy)==null?void 0:a.open)==null||l.call(a),e.appendChild(e.mask),k.add(e),s&&Promise.all(s).catch(r=>{console.error(new Error("Promise handling errors"),r)}).finally(()=>{Y(e)})}else Y(e)},X=e=>{e.removeAttribute("zindex"),e.removeAttribute("positiontype"),e.removeAttribute("backdrop"),e.removeAttribute("message"),e.removeAttribute("view"),e.removeAttribute("loadingtemplateref")},W=(e,n)=>{var s;const o=D(D({},new ye),n),a=o.loadingTemplateRef,l=we(be,D({},o),a?()=>a:null);e.style.position=o.positionType,e.options=o,e.instance=l,e.mask=(s=l==null?void 0:l.proxy)==null?void 0:s.$el},Te={mounted:function(e,n,o){W(e,o.props),X(e),!R(n.value)&&q(e,n)},updated:function(e,n,o){!R(n.value)&&k.has(e)||R(n.value)&&!k.has(e)||(!k.has(e)&&W(e,o.props),X(e),q(e,n))}};var G=t.defineComponent({name:"DAutoCompleteDropdown",directives:{dLoading:Te},setup(e,n){const o=t.inject(I),{visible:a,selectedIndex:l,selectOptionClick:s,searchList:r,searchStatus:u,dropDownRef:i,loadMore:f,showLoading:d,showNoResultItemTemplate:p,latestSource:c,modelValue:m,hoverIndex:w,valueParser:h}=o,{disabled:V,maxHeight:T,formatter:b,disabledKey:F,isSearching:N}=o.props,S=g=>{g=h.value(g),!(typeof g=="object"&&g[F])&&s(g)};return()=>t.withDirectives(t.createVNode("div",{class:["devui-dropdown-menu","devui-dropdown-menu-cdk",V&&"disabled",c.value&&"devui-dropdown-latestSource"]},[t.createVNode("ul",{ref:i,class:"devui-list-unstyled scroll-height",style:{maxHeight:`${T}px`},onScroll:f},[N&&n.slots.searchingTemplate&&(u==null?void 0:u.value)&&t.createVNode("li",{class:"devui-is-searching-template"},[t.createVNode("div",{class:"devui-no-data-tip"},[n.slots.searchingTemplate()])]),c.value&&!m.value&&t.createVNode("li",{class:"devui-popup-tips"},[t.createTextVNode("\u6700\u8FD1\u8F93\u5165")]),!p.value&&!(u==null?void 0:u.value)&&r!=null&&r.value.length>0&&r.value.map((g,E)=>t.createVNode("li",{onClick:()=>S(g),class:["devui-dropdown-item",l.value===E&&"selected",{disabled:F&&typeof g=="object"&&g[F]},{"devui-dropdown-bg":w.value===E}],title:b(g),key:b(g)},[n.slots.itemTemplate?n.slots.itemTemplate(g,E):b(g)])),!(u==null?void 0:u.value)&&r.value.length===0&&n.slots.noResultItemTemplate&&p.value&&t.createVNode("li",{class:"devui-no-result-template"},[t.createVNode("div",{class:"devui-no-data-tip"},[n.slots.noResultItemTemplate()])])])]),[[t.resolveDirective("dLoading"),d.value],[t.vShow,a.value&&r.value.length>0||n.slots.noResultItemTemplate&&p.value||N&&n.slots.searchingTemplate&&(u==null?void 0:u.value)]])}});const Ne=typeof window!="undefined";function J(e,n,o){document.addEventListener?e&&n&&o&&e.addEventListener(n,o,!1):e&&n&&o&&e.attachEvent("on"+n,o)}const A=Symbol("@@clickoutside"),x=new Map;let Q,P=0,Z=!0;function ee(e,n,o){return Ne&&Z&&(Z=!1,J(document,"mousedown",a=>{Q=a}),J(document,"mouseup",a=>{for(const[l,s]of x)s[A].documentHandler(a,Q)})),function(a,l){!o||!n.instance||!a.target||!l.target||e.contains(a.target)||e.contains(l.target)||e===a.target||e[A].bindingFn&&e[A].bindingFn()}}const Ce={beforeMount:function(e,n,o){P++,x.set(P,e),e[A]={nid:P,documentHandler:ee(e,n,o),bindingFn:n.value}},updated:function(e,n,o){e[A].documentHandler=ee(e,n,o),e[A].bindingFn=n.value},unmounted:function(e){x.delete(e[A].nid),delete e[A]}},Ae={modelValue:{type:Boolean,default:!1},origin:{type:Object,require:!0},position:{type:Array,default:["bottom"]},offset:{type:[Number,Object],default:8},shiftOffset:{type:Number},align:{type:String,default:null},showArrow:{type:Boolean,default:!1},isArrowCenter:{type:Boolean,default:!0}};function Fe(e){const n=/(auto|scroll|hidden)/;for(let o=e;o=o.parentElement;o.parentElement!==document.body){const a=window.getComputedStyle(o);if(n.test(a.overflow+a.overflowX+a.overflowY))return o}return window}function Se(e,n,o,a){let{x:l,y:s}=n;if(!e){const{width:r,height:u}=a;l&&o.includes("start")&&(l=12),l&&o.includes("end")&&(l=Math.round(r-24)),s&&o.includes("start")&&(s=10),s&&o.includes("end")&&(s=u-14)}return{x:l,y:s}}function Ee(e,n){const o=t.ref(),a=t.ref();let l=null;const s=(u,i,f,d)=>{const{x:p,y:c}=Se(e.isArrowCenter,f,i,d.getBoundingClientRect()),m={top:"bottom",right:"left",bottom:"top",left:"right"}[i.split("-")[0]];Object.assign(u.style,{left:p?`${p}px`:"",top:c?`${c}px`:"",right:"",bottom:"",[m]:"-4px"})},r=async()=>{const u=e.origin,i=t.unref(o.value),f=t.unref(a.value),d=[y.offset(e.offset),y.autoPlacement({alignment:e.align,allowedPlacements:e.position})];e.showArrow&&d.push(y.arrow({element:f})),e.shiftOffset!==void 0&&d.push(y.shift());const{x:p,y:c,placement:m,middlewareData:w}=await y.computePosition(u,i,{strategy:"fixed",middleware:d});let h=p,V=c;if(e.shiftOffset!==void 0){const{x:T,y:b}=w.shift;T<0&&(h-=e.shiftOffset),T>0&&(h+=e.shiftOffset),b<0&&(V-=e.shiftOffset),b>0&&(V+=e.shiftOffset)}n("positionChange",m),Object.assign(i.style,{top:`${V}px`,left:`${h}px`}),e.showArrow&&s(f,m,w.arrow,i)};return t.watch(()=>e.modelValue,()=>{e.modelValue&&e.origin?(l=Fe(e.origin),t.nextTick(r),l==null||l.addEventListener("scroll",r),l!==window&&window.addEventListener("scroll",r),window.addEventListener("resize",r)):(l==null||l.removeEventListener("scroll",r),l!==window&&window.removeEventListener("scroll",r),window.removeEventListener("resize",r))}),t.onUnmounted(()=>{l==null||l.removeEventListener("scroll",r),l!==window&&window.removeEventListener("scroll",r),window.removeEventListener("resize",r)}),{arrowRef:a,overlayRef:o,updatePosition:r}}var _e="";const te=t.defineComponent({name:"DFlexibleOverlay",inheritAttrs:!1,props:Ae,emits:["update:modelValue","positionChange"],setup(e,{slots:n,attrs:o,emit:a,expose:l}){const{arrowRef:s,overlayRef:r,updatePosition:u}=Ee(e,a);return l({updatePosition:u}),()=>{var i;return e.modelValue&&t.createVNode("div",t.mergeProps({ref:r,class:"devui-flexible-overlay"},o),[(i=n.default)==null?void 0:i.call(n),e.showArrow&&t.createVNode("div",{ref:s,class:"devui-flexible-overlay-arrow"},null)])}}});var $e="";function oe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}var B=t.defineComponent({name:"DAutoComplete",directives:{ClickOutside:Ce},props:_,emits:["update:modelValue"],setup(e,n){const{disabled:o,modelValue:a,width:l,delay:s,allowEmptyValueSearch:r,appendToBody:u,formatter:i,transInputFocusEmit:f,selectValue:d,source:p,searchFn:c,position:m,latestSource:w,showAnimation:h,valueParser:V}=t.toRefs(e),{handleSearch:T,searchList:b,showNoResultItemTemplate:F,recentlyFocus:N}=de(n,r,p,c,i),{onInput:S,onFocus:g,inputRef:E,visible:L,searchStatus:ne,handleClose:j,toggleMenu:Oe}=ce(n,b,F,a,o,s,T,f,N,w),{selectedIndex:le,selectOptionClick:ae}=fe(n,b,d,T,i,j),{showLoading:ke,dropDownRef:re,loadMore:De}=pe(e,n,T),{customRenderSolts:se}=ue(n,a),{hoverIndex:Ie,handlekeyDown:Re}=ve(re,L,b,le,ne,F,ae,j);t.provide(I,{props:e,visible:L,term:"",searchList:b,selectedIndex:le,searchStatus:ne,selectOptionClick:ae,dropDownRef:re,showLoading:ke,loadMore:De,latestSource:w,modelValue:a,showNoResultItemTemplate:F,hoverIndex:Ie,valueParser:V});const M=t.ref(),xe=()=>{if(u.value){let O;return t.createVNode(t.Teleport,{to:"body"},{default:()=>[t.createVNode(t.Transition,{name:h?"fade":""},{default:()=>[t.createVNode(te,{"show-arrow":!0,origin:M.value,position:m.value,modelValue:L.value,"onUpdate:modelValue":H=>L.value=H},{default:()=>[t.createVNode("div",{class:"devui-auto-complete-menu",style:{width:`
|
|
2
|
-
${
|
|
3
|
-
`}},[t.createVNode(
|
|
4
|
-
${
|
|
5
|
-
`}},[t.createVNode(
|
|
1
|
+
var qe=Object.defineProperty;var me=Object.getOwnPropertySymbols;var Xe=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable;var q=(v,t,y)=>t in v?qe(v,t,{enumerable:!0,configurable:!0,writable:!0,value:y}):v[t]=y,P=(v,t)=>{for(var y in t||(t={}))Xe.call(t,y)&&q(v,y,t[y]);if(me)for(var y of me(t))We.call(t,y)&&q(v,y,t[y]);return v};var F=(v,t,y)=>(q(v,typeof t!="symbol"?t+"":t,y),y);(function(v,t){typeof exports=="object"&&typeof module!="undefined"?t(exports,require("vue"),require("@floating-ui/dom")):typeof define=="function"&&define.amd?define(["exports","vue","@floating-ui/dom"],t):(v=typeof globalThis!="undefined"?globalThis:v||self,t(v.index={},v.Vue,v.dom))})(this,function(v,t,y){"use strict";const X={modelValue:{type:String,default:""},source:{type:Array,default:null},allowEmptyValueSearch:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!1},position:{type:Array,default:["bottom-end"]},disabled:{type:Boolean,default:!1},delay:{type:Number,default:300},disabledKey:{type:String,default:null},formatter:{type:Function,default:e=>typeof e=="string"?e:e!==null?e.label||e.toString():""},isSearching:{type:Boolean,default:!1},sceneType:{type:String,default:null},searchFn:{type:Function,default:null},tipsText:{type:String,default:"\u6700\u8FD1\u8F93\u5165"},latestSource:{type:Array,default:null},valueParser:{type:Function,default:e=>e},enableLazyLoad:{type:Boolean,default:!1},width:{type:Number,default:400},showAnimation:{type:Boolean,default:!0},maxHeight:{type:Number,default:300},transInputFocusEmit:{type:Function,default:null},selectValue:{type:Function,default:null},loadMore:{type:Function,default:null}},M=Symbol("DropdownPropsKey");function ve(e,o){const n=(l,i)=>{const u={item:l,index:i};return e.slots.item?e.slots.item(u):null},a=()=>e.slots.nothing?e.slots.nothing(o.value):null,s=()=>e.slots.searching?e.slots.searching(o.value):null;return{customRenderSolts:()=>{const l={};return e.slots.item&&(l.itemTemplate=n),e.slots.nothing&&(l.noResultItemTemplate=a),e.slots.searching&&(l.searchingTemplate=s),l}}}function ye(e,o,n,a,s){const r=t.ref([]),l=t.ref(!1),i=c=>{const m=[];return n.value.forEach(d=>{let p=s.value(d);p=p.toLowerCase(),p.startsWith(c)&&m.push(d)}),m};return{handleSearch:async(c,m=!1)=>{if(c===""&&!o.value){r.value=[],l.value=!1;return}let d=[];c=c.toLowerCase(),m?d=n.value:a.value?d=await a.value(c):d=i(c),r.value=d,r.value.length===0?l.value=!0:l.value=!1},recentlyFocus:c=>{c&&(r.value=c)},searchList:r,showNoResultItemTemplate:l}}function we(e,o,n,a,s,r,l,i,u,f){const c=t.ref(!1),m=t.ref(),d=t.ref(!1),p=t.ref(!1),V=((A,k)=>{let O;return D=>{O&&clearTimeout(O),O=setTimeout(async()=>{d.value=!0,await A(D),d.value=!1},k)}})(async A=>{await l(A),c.value=!0},r.value),N=A=>{const k=A.target;d.value=!1,n.value=!1,e.emit("update:modelValue",k.value),V(k.value)},T=()=>{p.value=!0,l(a.value),u(f==null?void 0:f.value),i.value&&i.value()},E=()=>{p.value=!1},L=()=>{c.value=!1,d.value=!1,n.value=!1};return{handleClose:L,toggleMenu:()=>{s.value||(c.value?L():(c.value=!0,e.slots.noResultItemTemplate&&o.value.length===0&&a.value.trim()!==""&&(n.value=!0)))},onInput:N,onFocus:T,onBlur:E,isFocus:p,inputRef:m,visible:c,searchStatus:d}}function he(e,o,n,a,s,r){const l=t.ref(0),i=f=>{if(o.value.length===0)return 0;let c=0;return o.value.forEach((m,d)=>{typeof m=="string"?m===f&&(c=d):String(m.label)===f&&(c=d)}),c===-1?0:c};return{selectedIndex:l,selectOptionClick:async f=>{const c=s.value(f);e.emit("update:modelValue",c),r(),await a(c),l.value=i(c),n.value&&n.value(c)}}}function ge(e,o,n){const a=t.ref(!1),s=t.ref(),r=()=>{if(!e.enableLazyLoad&&a)return;const i=s.value,u=i.scrollHeight,f=i.clientHeight+i.scrollTop;f>=u&&f>=e.maxHeight&&(e.loadMore(),a.value=!0)};async function l(){await n(e.modelValue,e.enableLazyLoad),a.value=!1}return o.expose({loadFinish:l}),{showLoading:a,dropDownRef:s,loadMore:r}}function be(e,o,n,a,s,r,l,i){var m;const u=t.ref((m=a.value)!=null?m:0),f=d=>{const p=e.value,w=p.children[d];t.nextTick(()=>{if(w.scrollIntoViewIfNeeded)w.scrollIntoViewIfNeeded(!1);else{const g=p.getBoundingClientRect(),V=w.getBoundingClientRect();(V.bottom>g.bottom||V.top<g.top)&&w.scrollIntoView(!1)}})};return{hoverIndex:u,handlekeyDown:d=>{var g;const p=d.key||d.code;if(p==="Escape"&&(o.value&&n.value.length||s.value||r.value)){i();return}const w=o.value&&n.value.length&&!s.value&&!r.value;if(p==="ArrowDown"&&w){if(u.value===n.value.length-1){u.value=0,f(u.value);return}u.value=u.value+1,f(u.value)}else if(p==="ArrowUp"&&w){if(u.value===0){u.value=n.value.length-1,f(u.value);return}u.value=u.value-1,f(u.value)}if(p==="Enter"&&w){l(n.value[u.value]),u.value=(g=a.value)!=null?g:0;return}}}}class W{constructor(){F(this,"top","50%");F(this,"left","50%")}}const Ve={message:String,backdrop:Boolean,view:{type:Object,default:()=>new W},zIndex:Number,isFull:{type:Boolean,default:!1}};class Ne{constructor(){F(this,"target");F(this,"message");F(this,"loadingTemplateRef");F(this,"backdrop",!0);F(this,"positionType","relative");F(this,"view",new W);F(this,"zIndex")}}function j(e,o,n){let a=e;return o&&(a+=`__${o}`),n&&(a+=`--${n}`),a}function b(e){const o=`devui-${e}`;return{b:()=>j(o),e:l=>l?j(o,l):"",m:l=>l?j(o,"",l):"",em:(l,i)=>l&&i?j(o,l,i):""}}var Qe="",Te=t.defineComponent({name:"DLoading",inheritAttrs:!1,props:Ve,setup(e){const o={top:e.view.top,left:e.view.left,zIndex:e.zIndex};e.message||(o.background="none");const n=t.ref(!1);return{style:o,isShow:n,open:()=>{n.value=!0},close:()=>{n.value=!1}}},render(){var i;const{isShow:e,isFull:o,backdrop:n,style:a,message:s,$slots:r}=this,l=b("loading");return e&&t.createVNode("div",{class:[l.b(),o?l.m("full"):""]},[((i=r.default)==null?void 0:i.call(r))||t.createVNode("div",{class:l.e("wrapper")},[n?t.createVNode("div",{class:l.e("mask")},null):null,t.createVNode("div",{style:a,class:l.e("area")},[t.createVNode("div",{class:l.e("busy-default-spinner")},[t.createVNode("div",{class:l.e("bar1")},null),t.createVNode("div",{class:l.e("bar2")},null),t.createVNode("div",{class:l.e("bar3")},null),t.createVNode("div",{class:l.e("bar4")},null)]),s?t.createVNode("span",{class:l.e("text")},[s]):null])])])}});const G=Symbol("dev_component_container");function Ce(e,o,n=null){const a=t.h(e,P({},o),n),s=document.createElement("div");return a[G]=s,t.render(a,s),a.component}function Ae(e){t.render(null,e==null?void 0:e.vnode[G])}const Fe=t.defineComponent(Te),x=new WeakSet,H=e=>{if(!e)return!0;if(Array.isArray(e))return e.length===0;if(e instanceof Set||e instanceof Map)return e.size===0;if(e instanceof Promise)return!1;if(typeof e=="object")try{return Object.keys(e).length===0}catch{return!1}return!1},J=e=>Object.prototype.toString.call(e).slice(8,-1).toLowerCase(),Oe=e=>{switch(J(e)){case"promise":return[e];case"array":return e.some(n=>J(n)!=="promise")?(console.error(new TypeError("Binding values should all be of type Promise")),"error"):e;default:return!1}},Q=e=>{x.delete(e),e.instance.proxy.close(),Ae(e.instance)},Z=(e,o)=>{var n,a,s;if(o.value){const r=Oe(o.value);if(r==="error")return;(s=(a=(n=e==null?void 0:e.instance)==null?void 0:n.proxy)==null?void 0:a.open)==null||s.call(a),e.appendChild(e.mask),x.add(e),r&&Promise.all(r).catch(l=>{console.error(new Error("Promise handling errors"),l)}).finally(()=>{Q(e)})}else Q(e)},ee=e=>{e.removeAttribute("zindex"),e.removeAttribute("positiontype"),e.removeAttribute("backdrop"),e.removeAttribute("message"),e.removeAttribute("view"),e.removeAttribute("loadingtemplateref")},te=(e,o)=>{var r;const n=P(P({},new Ne),o),a=n.loadingTemplateRef,s=Ce(Fe,P({},n),a?()=>a:null);e.style.position=n.positionType,e.options=n,e.instance=s,e.mask=(r=s==null?void 0:s.proxy)==null?void 0:r.$el},Se={mounted:function(e,o,n){te(e,n.props),ee(e),!H(o.value)&&Z(e,o)},updated:function(e,o,n){!H(o.value)&&x.has(e)||H(o.value)&&!x.has(e)||(!x.has(e)&&te(e,n.props),ee(e),Z(e,o))}};var oe=t.defineComponent({name:"DAutoCompleteDropdown",directives:{dLoading:Se},setup(e,o){const n=t.inject(M),{visible:a,selectedIndex:s,selectOptionClick:r,searchList:l,searchStatus:i,dropDownRef:u,loadMore:f,showLoading:c,showNoResultItemTemplate:m,latestSource:d,modelValue:p,hoverIndex:w,valueParser:g}=n,{disabled:V,maxHeight:N,formatter:T,disabledKey:E,isSearching:L}=n.props,C=b("auto-complete"),A=b("no-data-tip"),k=b("dropdown-menu"),O=b("dropdown-item"),D=h=>{h=g.value(h),!(typeof h=="object"&&h[E])&&r(h)};return()=>t.withDirectives(t.createVNode("div",{class:[k.b(),C.e("dropdown-menu-cdk"),V&&"disabled",d.value&&C.e("dropdown-latestSource")]},[t.createVNode("ul",{ref:u,class:[C.e("list-unstyled"),"scroll-height"],style:{maxHeight:`${N}px`},onScroll:f},[L&&o.slots.searchingTemplate&&(i==null?void 0:i.value)&&t.createVNode("li",{class:C.e("searching-template")},[t.createVNode("div",{class:A.b()},[o.slots.searchingTemplate()])]),d.value&&!p.value&&t.createVNode("li",{class:C.e("popup-tips")},[t.createTextVNode("\u6700\u8FD1\u8F93\u5165")]),!m.value&&!(i==null?void 0:i.value)&&l!=null&&l.value.length>0&&l.value.map((h,B)=>t.createVNode("li",{onClick:()=>D(h),class:[O.b(),s.value===B&&"selected",{disabled:E&&typeof h=="object"&&h[E]},{[C.e("dropdown-bg")]:w.value===B}],title:T(h),key:T(h)},[o.slots.itemTemplate?o.slots.itemTemplate(h,B):T(h)])),!(i==null?void 0:i.value)&&l.value.length===0&&o.slots.noResultItemTemplate&&m.value&&t.createVNode("li",{class:C.e("no-result-template")},[t.createVNode("div",{class:A.b()},[o.slots.noResultItemTemplate()])])])]),[[t.resolveDirective("dLoading"),c.value],[t.vShow,a.value&&l.value.length>0||o.slots.noResultItemTemplate&&m.value||L&&o.slots.searchingTemplate&&(i==null?void 0:i.value)]])}});const ke=typeof window!="undefined";function ne(e,o,n){document.addEventListener?e&&o&&n&&e.addEventListener(o,n,!1):e&&o&&n&&e.attachEvent("on"+o,n)}const S=Symbol("@@clickoutside"),z=new Map;let le,_=0,ae=!0;function se(e,o,n){return ke&&ae&&(ae=!1,ne(document,"mousedown",a=>{le=a}),ne(document,"mouseup",a=>{for(const[s,r]of z)r[S].documentHandler(a,le)})),function(a,s){!n||!o.instance||!a.target||!s.target||e.contains(a.target)||e.contains(s.target)||e===a.target||e[S].bindingFn&&e[S].bindingFn()}}const De={beforeMount:function(e,o,n){_++,z.set(_,e),e[S]={nid:_,documentHandler:se(e,o,n),bindingFn:o.value}},updated:function(e,o,n){e[S].documentHandler=se(e,o,n),e[S].bindingFn=o.value},unmounted:function(e){z.delete(e[S].nid),delete e[S]}},Ee={modelValue:{type:Boolean,default:!1},origin:{type:Object,require:!0},position:{type:Array,default:["bottom"]},offset:{type:[Number,Object],default:8},shiftOffset:{type:Number},align:{type:String,default:null},showArrow:{type:Boolean,default:!1},isArrowCenter:{type:Boolean,default:!0}};function Le(e){const o=/(auto|scroll|hidden)/;for(let n=e;n=n.parentElement;n.parentElement!==document.body){const a=window.getComputedStyle(n);if(o.test(a.overflow+a.overflowX+a.overflowY))return n}return window}function Ie(e,o,n,a){let{x:s,y:r}=o;if(!e){const{width:l,height:i}=a;s&&n.includes("start")&&(s=12),s&&n.includes("end")&&(s=Math.round(l-24)),r&&n.includes("start")&&(r=10),r&&n.includes("end")&&(r=i-14)}return{x:s,y:r}}function Re(e,o){const n=t.ref(),a=t.ref();let s=null;const r=(i,u,f,c)=>{const{x:m,y:d}=Ie(e.isArrowCenter,f,u,c.getBoundingClientRect()),p={top:"bottom",right:"left",bottom:"top",left:"right"}[u.split("-")[0]];Object.assign(i.style,{left:m?`${m}px`:"",top:d?`${d}px`:"",right:"",bottom:"",[p]:"-4px"})},l=async()=>{const i=e.origin,u=t.unref(n.value),f=t.unref(a.value),c=[y.offset(e.offset),y.autoPlacement({alignment:e.align,allowedPlacements:e.position})];e.showArrow&&c.push(y.arrow({element:f})),e.shiftOffset!==void 0&&c.push(y.shift());const{x:m,y:d,placement:p,middlewareData:w}=await y.computePosition(i,u,{strategy:"fixed",middleware:c});let g=m,V=d;if(e.shiftOffset!==void 0){const{x:N,y:T}=w.shift;N<0&&(g-=e.shiftOffset),N>0&&(g+=e.shiftOffset),T<0&&(V-=e.shiftOffset),T>0&&(V+=e.shiftOffset)}o("positionChange",p),Object.assign(u.style,{top:`${V}px`,left:`${g}px`}),e.showArrow&&r(f,p,w.arrow,u)};return t.watch(()=>e.modelValue,()=>{e.modelValue&&e.origin?(s=Le(e.origin),t.nextTick(l),s==null||s.addEventListener("scroll",l),s!==window&&window.addEventListener("scroll",l),window.addEventListener("resize",l)):(s==null||s.removeEventListener("scroll",l),s!==window&&window.removeEventListener("scroll",l),window.removeEventListener("resize",l))}),t.onUnmounted(()=>{s==null||s.removeEventListener("scroll",l),s!==window&&window.removeEventListener("scroll",l),window.removeEventListener("resize",l)}),{arrowRef:a,overlayRef:n,updatePosition:l}}var Ze="";const re=t.defineComponent({name:"DFlexibleOverlay",inheritAttrs:!1,props:Ee,emits:["update:modelValue","positionChange"],setup(e,{slots:o,attrs:n,emit:a,expose:s}){const r=b("flexible-overlay"),{arrowRef:l,overlayRef:i,updatePosition:u}=Re(e,a);return s({updatePosition:u}),()=>{var f;return e.modelValue&&t.createVNode("div",t.mergeProps({ref:i,class:r.b()},n),[(f=o.default)==null?void 0:f.call(o),e.showArrow&&t.createVNode("div",{ref:l,class:r.e("arrow")},null)])}}});var et="";function ie(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}var $=t.defineComponent({name:"DAutoComplete",directives:{ClickOutside:De},props:X,emits:["update:modelValue"],setup(e,o){const{disabled:n,modelValue:a,width:s,delay:r,allowEmptyValueSearch:l,appendToBody:i,formatter:u,transInputFocusEmit:f,selectValue:c,source:m,searchFn:d,position:p,latestSource:w,showAnimation:g,valueParser:V}=t.toRefs(e),N=b("auto-complete"),T=b("form-group"),E=b("has-feedback"),L=b("select-open"),C=b("form-control"),A=b("dropdown-origin"),k=b("dropdown-origin-open"),{handleSearch:O,searchList:D,showNoResultItemTemplate:h,recentlyFocus:B}=ye(o,l,m,d,u),{onInput:Be,onFocus:Pe,onBlur:je,inputRef:Me,isFocus:He,visible:I,searchStatus:ue,handleClose:K,toggleMenu:ze}=we(o,D,h,a,n,r,O,f,B,w),{selectedIndex:ce,selectOptionClick:de}=he(o,D,c,O,u,K),{showLoading:_e,dropDownRef:fe,loadMore:$e}=ge(e,o,O),{customRenderSolts:pe}=ve(o,a),{hoverIndex:Ke,handlekeyDown:Ue}=be(fe,I,D,ce,ue,h,de,K);t.provide(M,{props:e,visible:I,term:"",searchList:D,selectedIndex:ce,searchStatus:ue,selectOptionClick:de,dropDownRef:fe,showLoading:_e,loadMore:$e,latestSource:w,modelValue:a,showNoResultItemTemplate:h,hoverIndex:Ke,valueParser:V});const U=t.ref(),Ye=()=>{if(i.value){let R;return t.createVNode(t.Teleport,{to:"body"},{default:()=>[t.createVNode(t.Transition,{name:g?"fade":""},{default:()=>[t.createVNode(re,{"show-arrow":!0,origin:U.value,position:p.value,modelValue:I.value,"onUpdate:modelValue":Y=>I.value=Y},{default:()=>[t.createVNode("div",{class:N.e("menu"),style:{width:`
|
|
2
|
+
${s.value+"px"}
|
|
3
|
+
`}},[t.createVNode(oe,null,ie(R=pe())?R:{default:()=>[R]})])]})]})]})}else{let R;return t.createVNode(t.Transition,{name:g?"fade":""},{default:()=>[t.createVNode(re,{"show-arrow":!0,origin:U.value,position:p.value,modelValue:I.value,"onUpdate:modelValue":Y=>I.value=Y},{default:()=>[t.createVNode("div",{class:N.e("menu"),style:{width:`
|
|
4
|
+
${s.value+"px"}
|
|
5
|
+
`}},[t.createVNode(oe,null,ie(R=pe())?R:{default:()=>[R]})])]})]})}};return()=>t.withDirectives(t.createVNode("div",{class:[N.b(),T.b(),E.b(),I.value&&L.b()],ref:U,style:{width:`${s.value+"px"}`}},[t.createVNode("input",{disabled:n.value,type:"text",onClick:ze,class:[C.b(),A.b(),He.value&&k.b(),n.value&&"disabled"],placeholder:"Search",onInput:Be,onFocus:Pe,onBlur:je,value:a.value,ref:Me,onKeydown:Ue},null),Ye()]),[[t.resolveDirective("click-outside"),K]])}}),xe={title:"AutoComplete \u81EA\u52A8\u8865\u5168",category:"\u6570\u636E\u5F55\u5165",status:"100%",install(e){e.component($.name,$)}};v.AutoComplete=$,v.DropdownPropsKey=M,v.autoCompleteProps=X,v.default=xe,Object.defineProperty(v,"__esModule",{value:!0}),v[Symbol.toStringTag]="Module"});
|