xzx-icon-vue2 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/preview/index.html +5 -4
- package/preview/server.js +1 -1
package/package.json
CHANGED
package/preview/index.html
CHANGED
@@ -323,7 +323,7 @@
|
|
323
323
|
<footer class="footer">
|
324
324
|
<p>
|
325
325
|
基于 <a href="https://www.npmjs.com/package/@xzx-design/icons-svg" target="_blank" rel="noopener">@xzx-design/icons-svg</a> 构建
|
326
|
-
|
|
326
|
+
| 点击图标复制名称
|
327
327
|
</p>
|
328
328
|
</footer>
|
329
329
|
</div>
|
@@ -339,7 +339,8 @@
|
|
339
339
|
|
340
340
|
// 复制图标代码功能
|
341
341
|
function copyIconCode(iconName, element) {
|
342
|
-
|
342
|
+
// 只复制图标名称,不包含标签
|
343
|
+
const code = iconName
|
343
344
|
|
344
345
|
// 创建临时元素复制到剪贴板
|
345
346
|
const textarea = document.createElement('textarea')
|
@@ -358,7 +359,7 @@
|
|
358
359
|
setTimeout(() => {
|
359
360
|
element.classList.remove('copied')
|
360
361
|
tooltip.classList.remove('show')
|
361
|
-
tooltip.textContent = '
|
362
|
+
tooltip.textContent = '点击复制名称'
|
362
363
|
}, 1500)
|
363
364
|
|
364
365
|
// 更新统计
|
@@ -531,7 +532,7 @@
|
|
531
532
|
<xzx-icon name="${iconName}" size="32"></xzx-icon>
|
532
533
|
</div>
|
533
534
|
<div class="icon-name">${iconName}</div>
|
534
|
-
<div class="copy-tooltip"
|
535
|
+
<div class="copy-tooltip">点击复制名称</div>
|
535
536
|
</div>
|
536
537
|
`).join('')
|
537
538
|
|
package/preview/server.js
CHANGED