@oinone/kunlun-vue-ui-common 6.3.9 → 6.4.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.
Files changed (84) hide show
  1. package/dist/icons/iconfont/iconfont.css +7 -3
  2. package/dist/icons/iconfont/iconfont.js +1 -1
  3. package/dist/icons/iconfont/iconfont.json +7 -0
  4. package/dist/icons/iconfont/iconfont.ttf +0 -0
  5. package/dist/icons/iconfont/iconfont.woff +0 -0
  6. package/dist/icons/iconfont/iconfont.woff2 +0 -0
  7. package/dist/icons/oinone-iconfont/iconfont.css +171 -3
  8. package/dist/icons/oinone-iconfont/iconfont.js +1 -1
  9. package/dist/icons/oinone-iconfont/iconfont.json +294 -0
  10. package/dist/icons/oinone-iconfont/iconfont.ttf +0 -0
  11. package/dist/icons/oinone-iconfont/iconfont.woff +0 -0
  12. package/dist/icons/oinone-iconfont/iconfont.woff2 +0 -0
  13. package/dist/oinone-kunlun-vue-ui-common.esm.js +2 -3
  14. package/dist/types/src/component/index.d.ts +2 -0
  15. package/dist/types/src/component/oio-button/props.d.ts +3 -0
  16. package/dist/types/src/component/oio-card/context.d.ts +12 -0
  17. package/dist/types/src/component/oio-card/index.d.ts +1 -0
  18. package/dist/types/src/component/oio-drawer/props.d.ts +18 -4
  19. package/dist/types/src/component/oio-drawer/typing.d.ts +4 -2
  20. package/dist/types/src/component/oio-drawer/useDrawer.d.ts +5 -1
  21. package/dist/types/src/component/oio-group/props.d.ts +3 -0
  22. package/dist/types/src/component/oio-inner-popup/props.d.ts +0 -2
  23. package/dist/types/src/component/oio-input/props.d.ts +18 -0
  24. package/dist/types/src/component/oio-modal/props.d.ts +18 -3
  25. package/dist/types/src/component/oio-modal/typing.d.ts +3 -5
  26. package/dist/types/src/component/oio-modal/useModal.d.ts +8 -3
  27. package/dist/types/src/component/oio-select/model.d.ts +2 -0
  28. package/dist/types/src/component/oio-select/props.d.ts +4 -0
  29. package/dist/types/src/component/oio-tabs/index.d.ts +1 -0
  30. package/dist/types/src/component/oio-tabs/props.d.ts +4 -0
  31. package/dist/types/src/component/oio-tabs/typing.d.ts +5 -0
  32. package/dist/types/src/component/oio-tree/events.d.ts +1 -1
  33. package/dist/types/src/component/oio-tree/props.d.ts +1 -35
  34. package/dist/types/src/component/vc-popup/index.d.ts +1 -0
  35. package/dist/types/src/component/vc-popup/props.d.ts +13 -0
  36. package/dist/types/src/context/form-context.d.ts +7 -0
  37. package/dist/types/src/context/index.d.ts +1 -0
  38. package/dist/types/src/index.d.ts +1 -0
  39. package/dist/types/src/quick-utils/index.d.ts +1 -0
  40. package/dist/types/src/quick-utils/use-copy.d.ts +4 -0
  41. package/dist/types/src/util/PropRecordHelper.d.ts +1 -1
  42. package/icons/iconfont/iconfont.css +7 -3
  43. package/icons/iconfont/iconfont.js +1 -1
  44. package/icons/iconfont/iconfont.json +7 -0
  45. package/icons/iconfont/iconfont.ttf +0 -0
  46. package/icons/iconfont/iconfont.woff +0 -0
  47. package/icons/iconfont/iconfont.woff2 +0 -0
  48. package/icons/oinone-iconfont/iconfont.css +171 -3
  49. package/icons/oinone-iconfont/iconfont.js +1 -1
  50. package/icons/oinone-iconfont/iconfont.json +294 -0
  51. package/icons/oinone-iconfont/iconfont.ttf +0 -0
  52. package/icons/oinone-iconfont/iconfont.woff +0 -0
  53. package/icons/oinone-iconfont/iconfont.woff2 +0 -0
  54. package/package.json +5 -5
  55. package/src/component/index.ts +4 -0
  56. package/src/component/oio-button/props.ts +3 -0
  57. package/src/component/oio-card/context.ts +27 -0
  58. package/src/component/oio-card/index.ts +1 -0
  59. package/src/component/oio-close-icon/oio-close-icon.vue +2 -2
  60. package/src/component/oio-drawer/props.ts +13 -6
  61. package/src/component/oio-drawer/typing.ts +4 -2
  62. package/src/component/oio-drawer/useDrawer.ts +176 -27
  63. package/src/component/oio-group/props.ts +3 -0
  64. package/src/component/oio-inner-popup/props.ts +1 -2
  65. package/src/component/oio-input/props.ts +3 -0
  66. package/src/component/oio-modal/props.ts +13 -5
  67. package/src/component/oio-modal/typing.ts +3 -5
  68. package/src/component/oio-modal/useModal.ts +110 -20
  69. package/src/component/oio-select/model.ts +3 -0
  70. package/src/component/oio-select/props.ts +4 -0
  71. package/src/component/oio-tabs/index.ts +1 -0
  72. package/src/component/oio-tabs/props.ts +4 -0
  73. package/src/component/oio-tabs/typing.ts +5 -0
  74. package/src/component/oio-tree/events.ts +1 -1
  75. package/src/component/oio-tree/props.ts +1 -37
  76. package/src/component/vc-popup/index.ts +1 -0
  77. package/src/component/vc-popup/props.ts +14 -0
  78. package/src/component/vc-popup/usePopup.ts +2 -0
  79. package/src/context/form-context.ts +17 -0
  80. package/src/context/index.ts +1 -0
  81. package/src/index.ts +1 -0
  82. package/src/quick-utils/index.ts +1 -0
  83. package/src/quick-utils/use-copy.ts +56 -0
  84. package/src/util/PropRecordHelper.ts +9 -7
@@ -5,6 +5,300 @@
5
5
  "css_prefix_text": "oinone-",
6
6
  "description": "",
7
7
  "glyphs": [
8
+ {
9
+ "icon_id": "45682254",
10
+ "name": "大模型",
11
+ "font_class": "damoxing",
12
+ "unicode": "e648",
13
+ "unicode_decimal": 58952
14
+ },
15
+ {
16
+ "icon_id": "46279538",
17
+ "name": "向下",
18
+ "font_class": "xiangxia",
19
+ "unicode": "e9b4",
20
+ "unicode_decimal": 59828
21
+ },
22
+ {
23
+ "icon_id": "46279537",
24
+ "name": "向上",
25
+ "font_class": "xiangshang",
26
+ "unicode": "e9b5",
27
+ "unicode_decimal": 59829
28
+ },
29
+ {
30
+ "icon_id": "46241521",
31
+ "name": "元数据",
32
+ "font_class": "yuanshuju",
33
+ "unicode": "e9b1",
34
+ "unicode_decimal": 59825
35
+ },
36
+ {
37
+ "icon_id": "46241520",
38
+ "name": "代码",
39
+ "font_class": "daima",
40
+ "unicode": "e9b3",
41
+ "unicode_decimal": 59827
42
+ },
43
+ {
44
+ "icon_id": "46241528",
45
+ "name": "助手",
46
+ "font_class": "zhushou",
47
+ "unicode": "e9a0",
48
+ "unicode_decimal": 59808
49
+ },
50
+ {
51
+ "icon_id": "46241527",
52
+ "name": "数据自动化",
53
+ "font_class": "shujuzidonghua",
54
+ "unicode": "e9a7",
55
+ "unicode_decimal": 59815
56
+ },
57
+ {
58
+ "icon_id": "46241408",
59
+ "name": "变量",
60
+ "font_class": "bianliang",
61
+ "unicode": "e9b0",
62
+ "unicode_decimal": 59824
63
+ },
64
+ {
65
+ "icon_id": "46241406",
66
+ "name": "编辑",
67
+ "font_class": "bianji5",
68
+ "unicode": "e9b2",
69
+ "unicode_decimal": 59826
70
+ },
71
+ {
72
+ "icon_id": "46241412",
73
+ "name": "加号",
74
+ "font_class": "jiahao",
75
+ "unicode": "e9a8",
76
+ "unicode_decimal": 59816
77
+ },
78
+ {
79
+ "icon_id": "46241418",
80
+ "name": "删除",
81
+ "font_class": "shanchu4",
82
+ "unicode": "e9a9",
83
+ "unicode_decimal": 59817
84
+ },
85
+ {
86
+ "icon_id": "46241414",
87
+ "name": "规划智能体",
88
+ "font_class": "guihuazhinengti",
89
+ "unicode": "e9aa",
90
+ "unicode_decimal": 59818
91
+ },
92
+ {
93
+ "icon_id": "46241417",
94
+ "name": "链接",
95
+ "font_class": "lianjie1",
96
+ "unicode": "e9ab",
97
+ "unicode_decimal": 59819
98
+ },
99
+ {
100
+ "icon_id": "46241410",
101
+ "name": "工具",
102
+ "font_class": "gongju1",
103
+ "unicode": "e9ac",
104
+ "unicode_decimal": 59820
105
+ },
106
+ {
107
+ "icon_id": "46241409",
108
+ "name": "放大",
109
+ "font_class": "fangda3",
110
+ "unicode": "e9ad",
111
+ "unicode_decimal": 59821
112
+ },
113
+ {
114
+ "icon_id": "46241411",
115
+ "name": "副本",
116
+ "font_class": "fuben",
117
+ "unicode": "e9ae",
118
+ "unicode_decimal": 59822
119
+ },
120
+ {
121
+ "icon_id": "46241407",
122
+ "name": "对号",
123
+ "font_class": "duihao",
124
+ "unicode": "e9af",
125
+ "unicode_decimal": 59823
126
+ },
127
+ {
128
+ "icon_id": "46241431",
129
+ "name": "注意",
130
+ "font_class": "zhuyi1",
131
+ "unicode": "e99d",
132
+ "unicode_decimal": 59805
133
+ },
134
+ {
135
+ "icon_id": "46241428",
136
+ "name": "缩小",
137
+ "font_class": "suoxiao2",
138
+ "unicode": "e99e",
139
+ "unicode_decimal": 59806
140
+ },
141
+ {
142
+ "icon_id": "46241427",
143
+ "name": "网页",
144
+ "font_class": "wangye",
145
+ "unicode": "e99f",
146
+ "unicode_decimal": 59807
147
+ },
148
+ {
149
+ "icon_id": "46241424",
150
+ "name": "试听",
151
+ "font_class": "shiting",
152
+ "unicode": "e9a1",
153
+ "unicode_decimal": 59809
154
+ },
155
+ {
156
+ "icon_id": "46241429",
157
+ "name": "输出项",
158
+ "font_class": "shuchuxiang",
159
+ "unicode": "e9a2",
160
+ "unicode_decimal": 59810
161
+ },
162
+ {
163
+ "icon_id": "46241421",
164
+ "name": "向下箭头",
165
+ "font_class": "xiangxiajiantou",
166
+ "unicode": "e9a3",
167
+ "unicode_decimal": 59811
168
+ },
169
+ {
170
+ "icon_id": "46241420",
171
+ "name": "设置",
172
+ "font_class": "shezhi3",
173
+ "unicode": "e9a4",
174
+ "unicode_decimal": 59812
175
+ },
176
+ {
177
+ "icon_id": "46241413",
178
+ "name": "描述",
179
+ "font_class": "miaoshu",
180
+ "unicode": "e9a5",
181
+ "unicode_decimal": 59813
182
+ },
183
+ {
184
+ "icon_id": "46241415",
185
+ "name": "魔法",
186
+ "font_class": "mofa",
187
+ "unicode": "e9a6",
188
+ "unicode_decimal": 59814
189
+ },
190
+ {
191
+ "icon_id": "46241437",
192
+ "name": "列表",
193
+ "font_class": "liebiao1",
194
+ "unicode": "e993",
195
+ "unicode_decimal": 59795
196
+ },
197
+ {
198
+ "icon_id": "46241432",
199
+ "name": "复制",
200
+ "font_class": "fuzhi4",
201
+ "unicode": "e994",
202
+ "unicode_decimal": 59796
203
+ },
204
+ {
205
+ "icon_id": "46241433",
206
+ "name": "工具箱",
207
+ "font_class": "gongjuxiang1",
208
+ "unicode": "e995",
209
+ "unicode_decimal": 59797
210
+ },
211
+ {
212
+ "icon_id": "46241423",
213
+ "name": "场景智能体",
214
+ "font_class": "changjingzhinengti",
215
+ "unicode": "e996",
216
+ "unicode_decimal": 59798
217
+ },
218
+ {
219
+ "icon_id": "46241436",
220
+ "name": "添加",
221
+ "font_class": "tianjia4",
222
+ "unicode": "e997",
223
+ "unicode_decimal": 59799
224
+ },
225
+ {
226
+ "icon_id": "46241435",
227
+ "name": "模板",
228
+ "font_class": "moban1",
229
+ "unicode": "e998",
230
+ "unicode_decimal": 59800
231
+ },
232
+ {
233
+ "icon_id": "46241434",
234
+ "name": "输入",
235
+ "font_class": "shuru",
236
+ "unicode": "e999",
237
+ "unicode_decimal": 59801
238
+ },
239
+ {
240
+ "icon_id": "46241422",
241
+ "name": "对话",
242
+ "font_class": "duihua",
243
+ "unicode": "e99a",
244
+ "unicode_decimal": 59802
245
+ },
246
+ {
247
+ "icon_id": "46241416",
248
+ "name": "更多",
249
+ "font_class": "gengduo4",
250
+ "unicode": "e99b",
251
+ "unicode_decimal": 59803
252
+ },
253
+ {
254
+ "icon_id": "46241430",
255
+ "name": "语音",
256
+ "font_class": "yuyin1",
257
+ "unicode": "e99c",
258
+ "unicode_decimal": 59804
259
+ },
260
+ {
261
+ "icon_id": "46241442",
262
+ "name": "智能体",
263
+ "font_class": "zhinengti",
264
+ "unicode": "e98e",
265
+ "unicode_decimal": 59790
266
+ },
267
+ {
268
+ "icon_id": "46241441",
269
+ "name": "问题",
270
+ "font_class": "wenti",
271
+ "unicode": "e98f",
272
+ "unicode_decimal": 59791
273
+ },
274
+ {
275
+ "icon_id": "46241440",
276
+ "name": "搜索",
277
+ "font_class": "sousuo3",
278
+ "unicode": "e990",
279
+ "unicode_decimal": 59792
280
+ },
281
+ {
282
+ "icon_id": "46241439",
283
+ "name": "输出",
284
+ "font_class": "shuchu",
285
+ "unicode": "e991",
286
+ "unicode_decimal": 59793
287
+ },
288
+ {
289
+ "icon_id": "46241438",
290
+ "name": "清除",
291
+ "font_class": "qingchu1",
292
+ "unicode": "e992",
293
+ "unicode_decimal": 59794
294
+ },
295
+ {
296
+ "icon_id": "46210961",
297
+ "name": "行为",
298
+ "font_class": "hangwei",
299
+ "unicode": "e98d",
300
+ "unicode_decimal": 59789
301
+ },
8
302
  {
9
303
  "icon_id": "46198923",
10
304
  "name": "待审核",
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oinone/kunlun-vue-ui-common",
3
- "version": "6.3.9",
3
+ "version": "6.4.1",
4
4
  "main": "index.ts",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf dist",
@@ -17,10 +17,10 @@
17
17
  "lodash-es": "4.17.21"
18
18
  },
19
19
  "devDependencies": {
20
- "@oinone/kunlun-engine": "~6.3.0",
21
- "@oinone/kunlun-meta": "~6.3.0",
22
- "@oinone/kunlun-request": "~6.3.0",
23
- "@oinone/kunlun-shared": "~6.3.0",
20
+ "@oinone/kunlun-engine": "~6.4.0",
21
+ "@oinone/kunlun-meta": "~6.4.0",
22
+ "@oinone/kunlun-request": "~6.4.0",
23
+ "@oinone/kunlun-shared": "~6.4.0",
24
24
  "@types/lodash": "4.14.182",
25
25
  "@types/lodash-es": "4.17.6",
26
26
  "rollup-plugin-copy": "3.4.0",
@@ -1,3 +1,5 @@
1
+ import { PopupDisplayAs } from './vc-popup';
2
+
1
3
  export * from './oio-block';
2
4
  export * from './oio-breadcrumb';
3
5
  export * from './oio-button';
@@ -39,3 +41,5 @@ export * from './oio-tooltip';
39
41
  export * from './oio-tree';
40
42
  export * from './oio-tree-select';
41
43
  export * from './oio-upload';
44
+
45
+ export { PopupDisplayAs };
@@ -97,5 +97,8 @@ export const OioButtonProps = {
97
97
  iconPlacement: {
98
98
  type: String as PropType<IconPlacement | keyof Omit<typeof IconPlacement, 'BEFORE' | 'AFTER'>>,
99
99
  default: IconPlacement.BEFORE
100
+ },
101
+ iconColor: {
102
+ type: String
100
103
  }
101
104
  };
@@ -0,0 +1,27 @@
1
+ import { inject, InjectionKey, provide } from 'vue';
2
+
3
+ export interface OioCardContext {
4
+ scope: string | undefined;
5
+ }
6
+
7
+ export enum OioCardScope {
8
+ title = 'title',
9
+ content = 'content'
10
+ }
11
+
12
+ export const defaultOioCardContext: OioCardContext = {
13
+ scope: undefined
14
+ };
15
+
16
+ export const OioCardContextKey: InjectionKey<OioCardContext> = Symbol('OioCardContext');
17
+
18
+ export const useProviderOioCardContext = (state: Partial<OioCardContext>): void => {
19
+ provide(OioCardContextKey, {
20
+ ...defaultOioCardContext,
21
+ ...state
22
+ });
23
+ };
24
+
25
+ export const useInjectOioCardContext = (): OioCardContext => {
26
+ return inject(OioCardContextKey, defaultOioCardContext);
27
+ };
@@ -1,2 +1,3 @@
1
1
  export { default as OioCard } from './oio-card.vue';
2
2
  export * from './props';
3
+ export * from './context';
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <oio-icon class="oio-close-icon" icon="oinone-guanbi1" :size="size" :style="iconVolumeStyle"></oio-icon>
2
+ <oio-icon class="oio-close-icon" icon="oinone-close-outlined" :size="size" :style="iconVolumeStyle"></oio-icon>
3
3
  </template>
4
4
  <script lang="ts">
5
5
  import { computed, defineComponent } from 'vue';
@@ -14,7 +14,7 @@ export default defineComponent({
14
14
  props: {
15
15
  size: {
16
16
  type: String,
17
- default: '10'
17
+ default: '16'
18
18
  },
19
19
  volume: {
20
20
  type: String,
@@ -6,8 +6,7 @@ const OioDrawerAppearanceProps = {
6
6
  ...VcPopupAppearanceProps,
7
7
  ...VcMaskPopupAppearanceProps,
8
8
  title: {
9
- type: String,
10
- default: '抽屉'
9
+ type: String
11
10
  },
12
11
  help: {
13
12
  type: String
@@ -16,12 +15,10 @@ const OioDrawerAppearanceProps = {
16
15
  type: String as PropType<DrawerPlacement | keyof typeof DrawerPlacement>
17
16
  },
18
17
  width: {
19
- type: [Number, String] as PropType<DrawerWidth | string | number>,
20
- default: DrawerWidth.small
18
+ type: [Number, String] as PropType<DrawerWidth | string | number>
21
19
  },
22
20
  height: {
23
- type: [Number, String] as PropType<DrawerHeight | string | number>,
24
- default: DrawerHeight.small
21
+ type: [Number, String] as PropType<DrawerHeight | string | number>
25
22
  },
26
23
  headerInvisible: {
27
24
  type: Boolean,
@@ -30,6 +27,16 @@ const OioDrawerAppearanceProps = {
30
27
  footerInvisible: {
31
28
  type: Boolean,
32
29
  default: undefined
30
+ },
31
+ // 是否显示切换全屏按钮
32
+ enabledFullScreen: {
33
+ type: Boolean,
34
+ default: true
35
+ },
36
+ // 是否显示切换窗口类型按钮
37
+ showPopupToggle: {
38
+ type: Boolean,
39
+ default: true
33
40
  }
34
41
  };
35
42
 
@@ -1,13 +1,15 @@
1
1
  export enum DrawerWidth {
2
2
  small = '20%',
3
3
  medium = '40%',
4
- large = '80%'
4
+ large = '80%',
5
+ full = '100%'
5
6
  }
6
7
 
7
8
  export enum DrawerHeight {
8
9
  small = '30%',
9
10
  medium = '50%',
10
- large = '80%'
11
+ large = '80%',
12
+ full = '100%'
11
13
  }
12
14
 
13
15
  export enum DrawerPlacement {