@kengic/uni 0.5.2-beta.14 → 0.5.2-beta.15
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/dist/config/setup.ts
CHANGED
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
import { addIcon } from '@iconify/vue';
|
|
2
|
-
import IconifyIconsAntDesignCaretUpFilled from '@iconify-icons/ant-design/caret-up-filled';
|
|
3
|
-
import IconifyIconsAntDesignCaretDownFilled from '@iconify-icons/ant-design/caret-down-filled';
|
|
4
|
-
|
|
5
|
-
//region 注册图标
|
|
6
|
-
// 参考 https://docs.iconify.design/icon-components/vue/
|
|
7
|
-
// ----------------------------------------------------------------------------------------------------
|
|
8
|
-
addIcon('ant-design:caret-up-filled', IconifyIconsAntDesignCaretUpFilled);
|
|
9
|
-
addIcon('ant-design:caret-down-filled', IconifyIconsAntDesignCaretDownFilled);
|
|
10
|
-
//endregion
|
|
11
|
-
|
|
12
1
|
/**
|
|
13
2
|
* 初始化组件库.
|
|
14
3
|
*
|
package/dist/index.ts
CHANGED
|
@@ -10,12 +10,7 @@
|
|
|
10
10
|
<uni-icons type="clear" color="#c0c4cc" size="16" />
|
|
11
11
|
</view>
|
|
12
12
|
<view v-else style="display: flex; align-items: center; justify-content: center">
|
|
13
|
-
<
|
|
14
|
-
:height="14"
|
|
15
|
-
:icon="showSelector ? 'ant-design:caret-up-filled' : 'ant-design:caret-down-filled'"
|
|
16
|
-
:width="14"
|
|
17
|
-
color="rgba(0, 0, 0, 0.25)"
|
|
18
|
-
/>
|
|
13
|
+
<view :class="showSelector ? 'ant-design--caret-up-filled' : 'ant-design--caret-down-filled'" />
|
|
19
14
|
</view>
|
|
20
15
|
</view>
|
|
21
16
|
<view class="uni-select--mask" v-if="showSelector" @click="toggleSelector" />
|
|
@@ -49,12 +44,10 @@
|
|
|
49
44
|
* @property {Boolean} disabled 是否禁用
|
|
50
45
|
* @event {Function} change 选中发生变化触发
|
|
51
46
|
*/
|
|
52
|
-
import { Icon } from '@iconify/vue';
|
|
53
47
|
|
|
54
48
|
export default {
|
|
55
49
|
name: 'UniDataSelect',
|
|
56
50
|
mixins: [uniCloud.mixinDatacom || {}],
|
|
57
|
-
components: { Icon: Icon },
|
|
58
51
|
props: {
|
|
59
52
|
localdata: {
|
|
60
53
|
type: Array,
|
|
@@ -518,4 +511,22 @@
|
|
|
518
511
|
left: 0;
|
|
519
512
|
z-index: 2;
|
|
520
513
|
}
|
|
514
|
+
|
|
515
|
+
.ant-design--caret-down-filled {
|
|
516
|
+
display: inline-block;
|
|
517
|
+
width: 16px;
|
|
518
|
+
height: 16px;
|
|
519
|
+
background-repeat: no-repeat;
|
|
520
|
+
background-size: 100% 100%;
|
|
521
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath fill='%2300000040' d='M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35'/%3E%3C/svg%3E");
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
.ant-design--caret-up-filled {
|
|
525
|
+
display: inline-block;
|
|
526
|
+
width: 16px;
|
|
527
|
+
height: 16px;
|
|
528
|
+
background-repeat: no-repeat;
|
|
529
|
+
background-size: 100% 100%;
|
|
530
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath fill='%2300000040' d='M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35'/%3E%3C/svg%3E");
|
|
531
|
+
}
|
|
521
532
|
</style>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kengic/uni",
|
|
3
|
-
"version": "0.5.2-beta.
|
|
3
|
+
"version": "0.5.2-beta.15",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "npm run switch-node-version && rimraf dist && vue-tsc && vite build",
|
|
6
6
|
"------ -------------------------------------------": "",
|
|
@@ -31,8 +31,6 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@dcloudio/types": "~3.3.3",
|
|
33
33
|
"@dcloudio/uni-app": "3.0.0-alpha-3080220230428001",
|
|
34
|
-
"@iconify-icons/ant-design": "1.2.5",
|
|
35
|
-
"@iconify/vue": "~4.1.1",
|
|
36
34
|
"@kengic/pont": "1.2.13-beta.2",
|
|
37
35
|
"@types/lodash-es": "4.17.7",
|
|
38
36
|
"@types/node": "18.16.3",
|