@neatui/vue 2.8.5 → 2.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neatui/vue",
3
- "version": "2.8.5",
3
+ "version": "2.9.0",
4
4
  "description": "basic component ui",
5
5
  "main": "./src/index.ts",
6
6
  "license": "MIT",
@@ -55,14 +55,14 @@
55
55
  modelValue: 0,
56
56
  pos: 'bl',
57
57
  event: 'click',
58
- btnClass: '',
58
+ btnClass: 'dib',
59
59
  btnStyle: '',
60
60
  tipClass: '',
61
61
  tipStyle: '',
62
62
  tipBoxClass: '',
63
63
  tipBoxStyle: '',
64
64
  arrow: {},
65
- clickTipHide: false
65
+ clickTipHide: false,
66
66
  });
67
67
 
68
68
  const dom: any = ref(null);
@@ -73,7 +73,7 @@
73
73
  show: 0,
74
74
  pos: props.pos,
75
75
  hover: 0,
76
- tipdom: false
76
+ tipdom: false,
77
77
  });
78
78
 
79
79
  const showTimer: any = ref(null);
@@ -92,7 +92,7 @@
92
92
  state.show = 0;
93
93
  }, 100);
94
94
  }
95
- }
95
+ },
96
96
  );
97
97
 
98
98
  // 开关
@@ -112,7 +112,7 @@
112
112
  }
113
113
  emits('update:modelValue', state.show);
114
114
  },
115
- { deep: true }
115
+ { deep: true },
116
116
  );
117
117
 
118
118
  const hovershow = () => {
@@ -208,13 +208,13 @@
208
208
  ex.value.remove();
209
209
  }
210
210
  }
211
- }
211
+ },
212
212
  );
213
213
 
214
214
  defineExpose({
215
215
  toggle,
216
216
  show,
217
217
  hide,
218
- cancel
218
+ cancel,
219
219
  });
220
220
  </script>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="full fekit-ipull-scroll" ui-scroll=":y" ref="root">
2
+ <div class="fekit-ipull-scroll" :ui-scroll="`:y ${stable ? 'stable' : ''}`" ref="root">
3
3
  <div>
4
4
  <div class="fs-xs co-text o-mm" fekit-pullload-head="" v-if="pull">
5
5
  <div v-show="demo.store.pull < 2" ui-flex="row cm">
@@ -36,12 +36,16 @@
36
36
  const props: any = defineProps({
37
37
  pull: {
38
38
  type: Boolean,
39
- default: false
39
+ default: false,
40
40
  },
41
41
  load: {
42
42
  type: Boolean,
43
- default: false
44
- }
43
+ default: false,
44
+ },
45
+ stable: {
46
+ type: Boolean,
47
+ default: false,
48
+ },
45
49
  });
46
50
  const root: any = ref(null);
47
51
  const demo: any = ref(null);
@@ -54,16 +58,16 @@
54
58
  ? {
55
59
  onpull: async () => {
56
60
  emits('onpull', demo.value);
57
- }
61
+ },
58
62
  }
59
63
  : {}),
60
64
  ...(props.pull
61
65
  ? {
62
66
  onload: async () => {
63
67
  emits('onload', demo.value);
64
- }
68
+ },
65
69
  }
66
- : {})
70
+ : {}),
67
71
  });
68
72
 
69
73
  onMounted(() => {
@@ -7,48 +7,48 @@
7
7
  const icons: any = {
8
8
  'arrow-left': {
9
9
  path: [
10
- 'M655.2 844c-12 0-24-4.8-32-13.6L336.8 544c-8.8-8.8-13.6-20-13.6-32s4.8-24 13.6-32l286.4-287.2c8.8-8 20-12.8 32-12.8s24 4.8 32 13.6c8.8 8.8 13.6 20 13.6 32s-4.8 23.2-12.8 32L432.8 512l254.4 254.4c8.8 8.8 13.6 20 13.6 32s-4.8 23.2-13.6 32c-8 8.8-20 13.6-32 13.6z'
11
- ]
10
+ 'M655.2 844c-12 0-24-4.8-32-13.6L336.8 544c-8.8-8.8-13.6-20-13.6-32s4.8-24 13.6-32l286.4-287.2c8.8-8 20-12.8 32-12.8s24 4.8 32 13.6c8.8 8.8 13.6 20 13.6 32s-4.8 23.2-12.8 32L432.8 512l254.4 254.4c8.8 8.8 13.6 20 13.6 32s-4.8 23.2-13.6 32c-8 8.8-20 13.6-32 13.6z',
11
+ ],
12
12
  },
13
13
  'arrow-right': {
14
14
  path: [
15
- 'M368.8 844c-12 0-24-4.8-32-13.6-8.8-8.8-13.6-20-13.6-32s4.8-24 13.6-32L591.2 512 336.8 256.8c-8-8.8-12.8-20-12.8-32s4.8-23.2 13.6-32c8-8 20-13.6 32-13.6s23.2 4.8 32 12.8L688 479.2c8.8 8.8 13.6 20 13.6 32s-4.8 24-13.6 32l-286.4 286.4c-9.6 9.6-20.8 14.4-32.8 14.4z'
16
- ]
15
+ 'M368.8 844c-12 0-24-4.8-32-13.6-8.8-8.8-13.6-20-13.6-32s4.8-24 13.6-32L591.2 512 336.8 256.8c-8-8.8-12.8-20-12.8-32s4.8-23.2 13.6-32c8-8 20-13.6 32-13.6s23.2 4.8 32 12.8L688 479.2c8.8 8.8 13.6 20 13.6 32s-4.8 24-13.6 32l-286.4 286.4c-9.6 9.6-20.8 14.4-32.8 14.4z',
16
+ ],
17
17
  },
18
18
  'double-arrow-left': {
19
19
  path: [
20
20
  'M518.4 836.8c-11.2 0-22.4-4.8-31.2-12.8L205.6 541.6c-8.8-8.8-12.8-20-12.8-32s4.8-23.2 12.8-32l281.6-282.4c8.8-8.8 20-12.8 32-12.8s23.2 4.8 32 12.8c8.8 8.8 12.8 20 12.8 32s-4.8 23.2-12.8 32L300.8 509.6 551.2 760c8 8.8 12.8 20 12.8 32s-4.8 23.2-12.8 31.2-20 13.6-32.8 13.6z',
21
- 'M786.4 840.8c-11.2 0-22.4-4.8-31.2-12.8L473.6 546.4c-8-8-12.8-20-12.8-32s4.8-23.2 12.8-32L755.2 200c8.8-8.8 20-12.8 32-12.8s23.2 4.8 32 12.8c8.8 8.8 12.8 20 12.8 32s-4.8 23.2-12.8 32L568 514.4l250.4 250.4c8 8.8 12.8 20 12.8 32s-4.8 23.2-12.8 31.2c-8.8 8-20 12.8-32 12.8z'
22
- ]
21
+ 'M786.4 840.8c-11.2 0-22.4-4.8-31.2-12.8L473.6 546.4c-8-8-12.8-20-12.8-32s4.8-23.2 12.8-32L755.2 200c8.8-8.8 20-12.8 32-12.8s23.2 4.8 32 12.8c8.8 8.8 12.8 20 12.8 32s-4.8 23.2-12.8 32L568 514.4l250.4 250.4c8 8.8 12.8 20 12.8 32s-4.8 23.2-12.8 31.2c-8.8 8-20 12.8-32 12.8z',
22
+ ],
23
23
  },
24
24
  'double-arrow-right': {
25
25
  path: [
26
26
  'M504.8 836.8c-12 0-23.2-4.8-31.2-12.8s-12.8-19.2-12.8-31.2 4-23.2 12.8-31.2l250.4-250.4-250.4-252c-8.8-8.8-12.8-20-12.8-32s4.8-23.2 12.8-32c8.8-8.8 20-12.8 32-12.8s23.2 4.8 32 12.8l281.6 282.4c8 8 12.8 20 12.8 32s-4.8 23.2-12.8 32L536.8 824c-8.8 8-20 12.8-32 12.8 0.8 0 0 0 0 0z',
27
- 'M237.6 840.8c-12 0-23.2-4.8-31.2-12.8s-12.8-19.2-12.8-31.2 4-23.2 12.8-31.2L456 514.4 205.6 264c-8.8-8.8-12.8-20-12.8-32s4.8-23.2 12.8-32c8.8-8.8 20-12.8 32-12.8s23.2 4.8 32 12.8l281.6 282.4c8.8 8.8 12.8 20 12.8 32s-4.8 23.2-12.8 32l-281.6 282.4c-9.6 8-20 12-32 12z'
28
- ]
27
+ 'M237.6 840.8c-12 0-23.2-4.8-31.2-12.8s-12.8-19.2-12.8-31.2 4-23.2 12.8-31.2L456 514.4 205.6 264c-8.8-8.8-12.8-20-12.8-32s4.8-23.2 12.8-32c8.8-8.8 20-12.8 32-12.8s23.2 4.8 32 12.8l281.6 282.4c8.8 8.8 12.8 20 12.8 32s-4.8 23.2-12.8 32l-281.6 282.4c-9.6 8-20 12-32 12z',
28
+ ],
29
29
  },
30
30
  more: {
31
31
  path: [
32
32
  'M512 512m-116.363636 0a116.363636 116.363636 0 1 0 232.727272 0 116.363636 116.363636 0 1 0-232.727272 0Z',
33
33
  'M116.363636 512m-93.090909 0a93.090909 93.090909 0 1 0 186.181818 0 93.090909 93.090909 0 1 0-186.181818 0Z',
34
- 'M907.636364 512m-93.090909 0a93.090909 93.090909 0 1 0 186.181818 0 93.090909 93.090909 0 1 0-186.181818 0Z'
35
- ]
34
+ 'M907.636364 512m-93.090909 0a93.090909 93.090909 0 1 0 186.181818 0 93.090909 93.090909 0 1 0-186.181818 0Z',
35
+ ],
36
36
  },
37
37
  setting: {
38
38
  path: [
39
- 'M512 998.4c-22.4 0-44.8-3.2-67.2-6.4-35.2-6.4-67.2-32-76.8-64-16-54.4-64-89.6-121.6-89.6-9.6 0-19.2 0-28.8 3.2-6.4 0-12.8 3.2-19.2 3.2-28.8 0-54.4-12.8-73.6-35.2-25.6-35.2-51.2-73.6-67.2-115.2-12.8-35.2-6.4-73.6 19.2-99.2 44.8-48 44.8-121.6 0-172.8-25.6-25.6-32-64-19.2-99.2 19.2-38.4 41.6-76.8 70.4-112 19.2-22.4 44.8-35.2 73.6-35.2 6.4 0 12.8 0 19.2 3.2 9.6 3.2 19.2 3.2 28.8 3.2 54.4 0 102.4-35.2 118.4-89.6 9.6-35.2 41.6-60.8 76.8-64 22.4-3.2 44.8-3.2 67.2-3.2 22.4 0 44.8 0 67.2 3.2 35.2 6.4 67.2 32 76.8 64 9.6 32 28.8 57.6 57.6 70.4 19.2 9.6 41.6 16 64 16 9.6 0 19.2 0 28.8-3.2 6.4 0 12.8-3.2 19.2-3.2 28.8 0 54.4 12.8 73.6 35.2 25.6 35.2 48 76.8 67.2 118.4 12.8 32 6.4 73.6-19.2 99.2-44.8 48-44.8 121.6 0 172.8 25.6 25.6 32 64 19.2 99.2-16 41.6-38.4 80-67.2 115.2-19.2 22.4-44.8 35.2-73.6 35.2-6.4 0-12.8 0-19.2-3.2-9.6-3.2-19.2-3.2-28.8-3.2-54.4 0-102.4 35.2-118.4 89.6-9.6 35.2-41.6 60.8-76.8 64-25.6 3.2-48 3.2-70.4 3.2z m-265.6-236.8c89.6 0 169.6 57.6 198.4 144 3.2 6.4 6.4 9.6 12.8 9.6 19.2 3.2 35.2 3.2 54.4 3.2 12.8 0 25.6 0 38.4-3.2h22.4c6.4-3.2 9.6-6.4 9.6-9.6 16-51.2 48-92.8 92.8-115.2 32-19.2 67.2-25.6 102.4-25.6 16 0 32 3.2 44.8 6.4h3.2c3.2 0 9.6-3.2 12.8-3.2 22.4-28.8 41.6-60.8 57.6-96 3.2-6.4 0-12.8-3.2-16-70.4-80-70.4-198.4 0-275.2 3.2-6.4 3.2-12.8 3.2-19.2-12.8-35.2-32-67.2-57.6-96-6.4-6.4-9.6-9.6-12.8-9.6h-3.2c-16 3.2-28.8 6.4-44.8 6.4-35.2 0-70.4-9.6-102.4-25.6-44.8-25.6-76.8-67.2-92.8-115.2 0-6.4-6.4-9.6-9.6-9.6-19.2-3.2-38.4-3.2-57.6-3.2s-38.4 0-57.6 3.2c-6.4 3.2-9.6 6.4-9.6 9.6-16 51.2-48 92.8-92.8 115.2-32 19.2-67.2 25.6-102.4 25.6-16 0-32-3.2-44.8-6.4h-3.2c-9.6 3.2-12.8 3.2-16 6.4-22.4 28.8-41.6 60.8-57.6 96-3.2 6.4 0 12.8 3.2 16 70.4 80 70.4 198.4 0 275.2-3.2 3.2-3.2 9.6-3.2 16 12.8 35.2 32 67.2 54.4 96 3.2 3.2 9.6 6.4 16 6.4 12.8-3.2 28.8-6.4 44.8-6.4z m256-67.2c-48 0-92.8-19.2-128-54.4S320 560 320 512c0-99.2 83.2-182.4 182.4-182.4 102.4 0 182.4 83.2 182.4 182.4 0 102.4-80 182.4-182.4 182.4z m0-284.8c-57.6 0-102.4 48-102.4 105.6 0 57.6 48 105.6 105.6 105.6 57.6 0 105.6-48 102.4-105.6 0-60.8-48-105.6-105.6-105.6v-3.2 3.2z'
40
- ]
39
+ 'M512 998.4c-22.4 0-44.8-3.2-67.2-6.4-35.2-6.4-67.2-32-76.8-64-16-54.4-64-89.6-121.6-89.6-9.6 0-19.2 0-28.8 3.2-6.4 0-12.8 3.2-19.2 3.2-28.8 0-54.4-12.8-73.6-35.2-25.6-35.2-51.2-73.6-67.2-115.2-12.8-35.2-6.4-73.6 19.2-99.2 44.8-48 44.8-121.6 0-172.8-25.6-25.6-32-64-19.2-99.2 19.2-38.4 41.6-76.8 70.4-112 19.2-22.4 44.8-35.2 73.6-35.2 6.4 0 12.8 0 19.2 3.2 9.6 3.2 19.2 3.2 28.8 3.2 54.4 0 102.4-35.2 118.4-89.6 9.6-35.2 41.6-60.8 76.8-64 22.4-3.2 44.8-3.2 67.2-3.2 22.4 0 44.8 0 67.2 3.2 35.2 6.4 67.2 32 76.8 64 9.6 32 28.8 57.6 57.6 70.4 19.2 9.6 41.6 16 64 16 9.6 0 19.2 0 28.8-3.2 6.4 0 12.8-3.2 19.2-3.2 28.8 0 54.4 12.8 73.6 35.2 25.6 35.2 48 76.8 67.2 118.4 12.8 32 6.4 73.6-19.2 99.2-44.8 48-44.8 121.6 0 172.8 25.6 25.6 32 64 19.2 99.2-16 41.6-38.4 80-67.2 115.2-19.2 22.4-44.8 35.2-73.6 35.2-6.4 0-12.8 0-19.2-3.2-9.6-3.2-19.2-3.2-28.8-3.2-54.4 0-102.4 35.2-118.4 89.6-9.6 35.2-41.6 60.8-76.8 64-25.6 3.2-48 3.2-70.4 3.2z m-265.6-236.8c89.6 0 169.6 57.6 198.4 144 3.2 6.4 6.4 9.6 12.8 9.6 19.2 3.2 35.2 3.2 54.4 3.2 12.8 0 25.6 0 38.4-3.2h22.4c6.4-3.2 9.6-6.4 9.6-9.6 16-51.2 48-92.8 92.8-115.2 32-19.2 67.2-25.6 102.4-25.6 16 0 32 3.2 44.8 6.4h3.2c3.2 0 9.6-3.2 12.8-3.2 22.4-28.8 41.6-60.8 57.6-96 3.2-6.4 0-12.8-3.2-16-70.4-80-70.4-198.4 0-275.2 3.2-6.4 3.2-12.8 3.2-19.2-12.8-35.2-32-67.2-57.6-96-6.4-6.4-9.6-9.6-12.8-9.6h-3.2c-16 3.2-28.8 6.4-44.8 6.4-35.2 0-70.4-9.6-102.4-25.6-44.8-25.6-76.8-67.2-92.8-115.2 0-6.4-6.4-9.6-9.6-9.6-19.2-3.2-38.4-3.2-57.6-3.2s-38.4 0-57.6 3.2c-6.4 3.2-9.6 6.4-9.6 9.6-16 51.2-48 92.8-92.8 115.2-32 19.2-67.2 25.6-102.4 25.6-16 0-32-3.2-44.8-6.4h-3.2c-9.6 3.2-12.8 3.2-16 6.4-22.4 28.8-41.6 60.8-57.6 96-3.2 6.4 0 12.8 3.2 16 70.4 80 70.4 198.4 0 275.2-3.2 3.2-3.2 9.6-3.2 16 12.8 35.2 32 67.2 54.4 96 3.2 3.2 9.6 6.4 16 6.4 12.8-3.2 28.8-6.4 44.8-6.4z m256-67.2c-48 0-92.8-19.2-128-54.4S320 560 320 512c0-99.2 83.2-182.4 182.4-182.4 102.4 0 182.4 83.2 182.4 182.4 0 102.4-80 182.4-182.4 182.4z m0-284.8c-57.6 0-102.4 48-102.4 105.6 0 57.6 48 105.6 105.6 105.6 57.6 0 105.6-48 102.4-105.6 0-60.8-48-105.6-105.6-105.6v-3.2 3.2z',
40
+ ],
41
41
  },
42
42
  'tableloader-setting': {
43
43
  path: [
44
- 'M372 981.6c-80 0-154.4-43.2-195.2-112L35.2 624.8c-40-68.8-40-155.2 0-224.8l141.6-244.8c40-69.6 115.2-112 195.2-112h282.4c80 0 154.4 43.2 195.2 112L991.2 400c40 68.8 40 155.2 0 224.8l-141.6 244.8c-40 69.6-115.2 112-195.2 112H372z m0-825.6c-39.2 0-76.8 21.6-96.8 56L134.4 456c-20 34.4-20 76.8 0 112l140.8 244.8c20 34.4 56.8 55.2 96.8 55.2h282.4c39.2 0 76.8-21.6 96.8-56l140.8-244.8c20-34.4 20-76.8 0-112L751.2 211.2c-20-34.4-56.8-55.2-96.8-55.2H372z m140.8 552.8c-108.8 0-196.8-88-196.8-196.8 0-108.8 88-196.8 196.8-196.8 108.8 0 196.8 88 196.8 196.8 0.8 108.8-88 196.8-196.8 196.8z m0-280c-45.6 0-83.2 37.6-83.2 83.2s37.6 83.2 83.2 83.2c22.4 0 43.2-8.8 59.2-24 16-16 24-36.8 24-59.2 0-45.6-37.6-83.2-83.2-83.2z'
45
- ]
46
- }
44
+ 'M372 981.6c-80 0-154.4-43.2-195.2-112L35.2 624.8c-40-68.8-40-155.2 0-224.8l141.6-244.8c40-69.6 115.2-112 195.2-112h282.4c80 0 154.4 43.2 195.2 112L991.2 400c40 68.8 40 155.2 0 224.8l-141.6 244.8c-40 69.6-115.2 112-195.2 112H372z m0-825.6c-39.2 0-76.8 21.6-96.8 56L134.4 456c-20 34.4-20 76.8 0 112l140.8 244.8c20 34.4 56.8 55.2 96.8 55.2h282.4c39.2 0 76.8-21.6 96.8-56l140.8-244.8c20-34.4 20-76.8 0-112L751.2 211.2c-20-34.4-56.8-55.2-96.8-55.2H372z m140.8 552.8c-108.8 0-196.8-88-196.8-196.8 0-108.8 88-196.8 196.8-196.8 108.8 0 196.8 88 196.8 196.8 0.8 108.8-88 196.8-196.8 196.8z m0-280c-45.6 0-83.2 37.6-83.2 83.2s37.6 83.2 83.2 83.2c22.4 0 43.2-8.8 59.2-24 16-16 24-36.8 24-59.2 0-45.6-37.6-83.2-83.2-83.2z',
45
+ ],
46
+ },
47
47
  };
48
48
  const props: any = defineProps({
49
49
  name: {
50
50
  type: String,
51
- default: ''
52
- }
51
+ default: '',
52
+ },
53
53
  });
54
54
  </script>
@@ -113,7 +113,7 @@
113
113
  verify: false,
114
114
  prefix: () => [],
115
115
  suffix: () => [],
116
- interacted: false
116
+ interacted: false,
117
117
  });
118
118
 
119
119
  const state: any = reactive({
@@ -122,7 +122,7 @@
122
122
  // 值
123
123
  value: props.modelValue,
124
124
  // 错误
125
- error: {}
125
+ error: {},
126
126
  });
127
127
  // 外部传入交互标识,主要用于外部没有输入但点击了提交
128
128
  watch(
@@ -132,7 +132,7 @@
132
132
  state.interacted = interacted;
133
133
  }
134
134
  },
135
- { deep: true, immediate: true }
135
+ { deep: true, immediate: true },
136
136
  );
137
137
 
138
138
  // 监听外部数据
@@ -207,7 +207,7 @@
207
207
  state.error = { tips: props.tips, ontips: props.tips ? 'show' : '', verify: '', co: '' };
208
208
  }
209
209
  },
210
- { deep: true, immediate: true }
210
+ { deep: true, immediate: true },
211
211
  );
212
212
 
213
213
  // 清空
@@ -4,8 +4,8 @@
4
4
  <div class="w-full pr" :style="`box-sizing: content-box; padding-top: ${ratio}%`">
5
5
  <div class="pa full ot-no ol-no bg-fore n-sm b-solid bk-case b-xs r-sm" ui-flex="col cm">
6
6
  <!-- 删除按钮 -->
7
- <div class="pa ot-ss or-ss bg-fore co-risk lh-xs r-xl parent-hover:show z-ls" @click="remove(idx)">
8
- <svg class="block" viewBox="0 0 1024 1024" style="width: 1em; height: 1em">
7
+ <div class="pa w-xs h-xs ot-ss or-ss bg-fore co-risk lh-xs r-xl parent-hover:show z-ls" ui-flex="row cm" @click="remove(idx)">
8
+ <svg class="block" style="width: 1.2em; height: 1.2em" viewBox="0 0 1024 1024">
9
9
  <path
10
10
  d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66 0.3L512 563.4l-99.3 118.4-66.1-0.3c-4.4 0-8-3.5-8-8 0-1.9 0.7-3.7 1.9-5.2l130.1-155L340.5 359c-1.2-1.5-1.9-3.3-1.9-5.2 0-4.4 3.6-8 8-8l66.1 0.3L512 464.6l99.3-118.4 66-0.3c4.4 0 8 3.5 8 8 0 1.9-0.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"
11
11
  fill="currentColor"
@@ -162,7 +162,7 @@
162
162
  <slot name="btn">
163
163
  <label class="pr" ui-form="@a type:upload tips:hover" :style="`width: ${isNumber(width) ? width + 'em' : width}`">
164
164
  <div class="w-full pr" :style="`box-sizing: content-box; padding-top: ${ratio}%`">
165
- <div ui-flex="row cm" :class="`pa ot-no ol-no full upload n-sl bg-fore b-dashed bk-note-lm b-xs r-sm ${uploadClass}`" :style="uploadStyle">
165
+ <div ui-flex="row cm" :class="`pa ot-no ol-no full upload n-sl bg-fore b-solid bk-case b-xs r-sm ${uploadClass}`" :style="uploadStyle">
166
166
  <div v-if="tips" ui-form-tips>
167
167
  {{ tips }}
168
168
  </div>
@@ -0,0 +1,113 @@
1
+ <template>
2
+ <span class="pr full" ui-flex="row cm">
3
+ <span :ui-order="`@b ${status}`" :style="{ width: size + '%', height: size + '%' }">
4
+ <i></i>
5
+ <b></b>
6
+ <u></u>
7
+ </span>
8
+ </span>
9
+ </template>
10
+ <script setup lang="ts">
11
+ // 类型
12
+ interface Props {
13
+ status?: number;
14
+ size?: number;
15
+ }
16
+ withDefaults(defineProps<Props>(), {
17
+ status: 0,
18
+ size: 100,
19
+ });
20
+ </script>
21
+ <style lang="scss">
22
+ [ui-order~='@b'] {
23
+ position: relative;
24
+ cursor: pointer;
25
+ overflow: hidden;
26
+
27
+ i,
28
+ b,
29
+ u {
30
+ position: absolute;
31
+ display: block;
32
+ width: 100%;
33
+ height: 100%;
34
+ left: 0;
35
+ top: 0;
36
+ }
37
+
38
+ i {
39
+ opacity: 0;
40
+
41
+ &::before,
42
+ &::after {
43
+ display: block;
44
+ content: '';
45
+ position: absolute;
46
+ width: 100%;
47
+ height: 100%;
48
+ left: 0;
49
+ top: 0;
50
+ }
51
+
52
+ &::before {
53
+ background:
54
+ linear-gradient(45deg, transparent 48%, currentColor 53%, currentColor 67%, transparent 72%) no-repeat 28.7% 95% / 30% 35%,
55
+ linear-gradient(-45deg, transparent 48%, currentColor 53%, currentColor 67%, transparent 72%) no-repeat 71.3% 95% / 30% 35%;
56
+ transform: translateY(-50%);
57
+ }
58
+
59
+ &::after {
60
+ background:
61
+ linear-gradient(135deg, transparent 48%, currentColor 53%, currentColor 67%, transparent 72%) no-repeat 28.5% 10% / 30% 35%,
62
+ linear-gradient(-135deg, transparent 48%, currentColor 53%, currentColor 67%, transparent 72%) no-repeat 71.3% 10% / 30% 35%;
63
+ transform: translateY(50%);
64
+ }
65
+ }
66
+
67
+ b {
68
+ background:
69
+ linear-gradient(45deg, transparent 48%, currentColor 53%, currentColor 67%, transparent 72%) no-repeat 28.7% 95% / 30% 35%,
70
+ linear-gradient(-45deg, transparent 48%, currentColor 53%, currentColor 67%, transparent 72%) no-repeat 71.3% 95% / 30% 35%,
71
+ linear-gradient(90deg, transparent 35%, currentColor 40%, currentColor 60%, transparent 65%) no-repeat 50% 45% / 33% 70%;
72
+ transform: translateY(-110%);
73
+ }
74
+
75
+ u {
76
+ background:
77
+ linear-gradient(135deg, transparent 48%, currentColor 53%, currentColor 67%, transparent 72%) no-repeat 28.5% 10% / 30% 35%,
78
+ linear-gradient(-135deg, transparent 48%, currentColor 53%, currentColor 67%, transparent 72%) no-repeat 71.3% 10% / 30% 35%,
79
+ linear-gradient(90deg, transparent 35%, currentColor 40%, currentColor 60%, transparent 65%) no-repeat 50% 45% / 33% 70%;
80
+ transform: translateY(110%);
81
+ }
82
+
83
+ &[ui-order~='0'] i {
84
+ opacity: 0.3;
85
+
86
+ &::before {
87
+ background:
88
+ linear-gradient(45deg, transparent 48%, currentColor 53%, currentColor 67%, transparent 72%) no-repeat 28.7% 95% / 30% 35%,
89
+ linear-gradient(-45deg, transparent 48%, currentColor 53%, currentColor 67%, transparent 72%) no-repeat 71.3% 95% / 30% 35%;
90
+ transform: translateY(0%);
91
+ transition: all 0.2s cubic-bezier(0.65, 0, 0.35, 1);
92
+ }
93
+
94
+ &::after {
95
+ background:
96
+ linear-gradient(135deg, transparent 48%, currentColor 53%, currentColor 67%, transparent 72%) no-repeat 28.5% 15% / 30% 35%,
97
+ linear-gradient(-135deg, transparent 48%, currentColor 53%, currentColor 67%, transparent 72%) no-repeat 71.3% 15% / 30% 35%;
98
+ transform: translateY(0%);
99
+ transition: all 0.2s cubic-bezier(0.65, 0, 0.35, 1);
100
+ }
101
+ }
102
+
103
+ &[ui-order~='1'] u {
104
+ transform: translateY(5%);
105
+ transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
106
+ }
107
+
108
+ &[ui-order~='2'] b {
109
+ transform: translateY(0%);
110
+ transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
111
+ }
112
+ }
113
+ </style>
@@ -13,7 +13,7 @@
13
13
  <div v-bind="col.thead">
14
14
  <span class="ux-none" ui-flex="row rm" v-if="col.order === 0 || col.order === 1 || col.order === 2" @click="fSetOrder(col)">
15
15
  <span>{{ col.label }}</span>
16
- <span ui-btn="@a none xs :square" :ui-order="col.__order"></span>
16
+ <span ui-btn="@a none xs :square" :ui-order="`@a ${col.__order}`"></span>
17
17
  </span>
18
18
  <span v-else>{{ col.label }}</span>
19
19
  <!-- 设置 -->
@@ -153,6 +153,7 @@
153
153
  import { itable } from '@fekit/itable';
154
154
  import TableRender from './TableRender.vue';
155
155
  import { isFunction, isObject, hasOwnProp, deepcopy } from '@fekit/utils';
156
+
156
157
  const route = useRoute();
157
158
  const router = useRouter();
158
159
  // 外部插槽