@sunyard-szyy-ui/components 0.5.0 → 0.7.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/README.md +17 -20
- package/es/autocomplete/index.d.ts +2 -0
- package/es/autocomplete/index.d.ts.map +1 -0
- package/es/autocomplete/src/autocomplete.d.ts +32 -0
- package/es/autocomplete/src/autocomplete.d.ts.map +1 -0
- package/es/autocomplete/src/autocomplete.mjs +1 -0
- package/es/autocomplete/style/css.d.ts +3 -0
- package/es/autocomplete/style/css.d.ts.map +1 -0
- package/es/autocomplete/style/index.d.ts +3 -0
- package/es/autocomplete/style/index.d.ts.map +1 -0
- package/es/color-picker/index.d.ts +2 -0
- package/es/color-picker/index.d.ts.map +1 -0
- package/es/color-picker/src/color-picker.d.ts +30 -0
- package/es/color-picker/src/color-picker.d.ts.map +1 -0
- package/es/color-picker/src/color-picker.mjs +1 -0
- package/es/color-picker/style/css.d.ts +3 -0
- package/es/color-picker/style/css.d.ts.map +1 -0
- package/es/color-picker/style/index.d.ts +3 -0
- package/es/color-picker/style/index.d.ts.map +1 -0
- package/es/components/autocomplete/index.mjs +1 -0
- package/es/components/autocomplete/style/css.mjs +1 -0
- package/es/components/autocomplete/style/index.mjs +1 -0
- package/es/components/color-picker/index.mjs +1 -0
- package/es/components/color-picker/style/css.mjs +1 -0
- package/es/components/color-picker/style/index.mjs +1 -0
- package/es/components/config-provider/index.mjs +1 -0
- package/es/components/config-provider/style/css.mjs +1 -0
- package/es/components/config-provider/style/index.mjs +1 -0
- package/es/components/icon/index.mjs +1 -0
- package/es/components/icon/style/css.mjs +1 -0
- package/es/components/icon/style/index.mjs +1 -0
- package/es/components/pro-form/index.mjs +1 -0
- package/es/components/pro-form/style/css.mjs +1 -0
- package/es/components/pro-form/style/index.mjs +1 -0
- package/es/components/pro-table/index.mjs +1 -0
- package/es/components/pro-table/style/css.mjs +1 -0
- package/es/components/pro-table/style/index.mjs +1 -0
- package/es/components/select-v2/index.mjs +1 -0
- package/es/components/select-v2/style/css.mjs +1 -0
- package/es/components/select-v2/style/index.mjs +1 -0
- package/es/components/slider/index.mjs +1 -0
- package/es/components/slider/style/css.mjs +1 -0
- package/es/components/slider/style/index.mjs +1 -0
- package/es/components/tree-select/index.mjs +1 -0
- package/es/components/tree-select/style/css.mjs +1 -0
- package/es/components/tree-select/style/index.mjs +1 -0
- package/es/config-provider/index.d.ts +2 -0
- package/es/config-provider/index.d.ts.map +1 -0
- package/es/config-provider/src/config-provider.d.ts +25 -0
- package/es/config-provider/src/config-provider.d.ts.map +1 -0
- package/es/config-provider/src/config-provider.mjs +1 -0
- package/es/config-provider/style/css.d.ts +2 -0
- package/es/config-provider/style/css.d.ts.map +1 -0
- package/es/config-provider/style/index.d.ts +2 -0
- package/es/config-provider/style/index.d.ts.map +1 -0
- package/es/icon/index.d.ts +2 -0
- package/es/icon/index.d.ts.map +1 -0
- package/es/icon/src/icon.d.ts +25 -0
- package/es/icon/src/icon.d.ts.map +1 -0
- package/es/icon/src/icon.mjs +1 -0
- package/es/icon/style/css.d.ts +2 -0
- package/es/icon/style/css.d.ts.map +1 -0
- package/es/icon/style/index.d.ts +2 -0
- package/es/icon/style/index.d.ts.map +1 -0
- package/es/index.d.ts +9 -1
- package/es/index.d.ts.map +1 -1
- package/es/index.mjs +1 -1
- package/es/pro-form/index.d.ts +2 -0
- package/es/pro-form/index.d.ts.map +1 -0
- package/es/pro-form/src/ProForm.vue.mjs +1 -0
- package/es/pro-form/src/ProForm.vue2.mjs +1 -0
- package/es/pro-form/src/ProFormItem.vue.mjs +1 -0
- package/es/pro-form/src/ProFormItem.vue2.mjs +1 -0
- package/es/pro-form/src/pro-form.d.ts +14 -0
- package/es/pro-form/src/pro-form.d.ts.map +1 -0
- package/es/pro-form/src/pro-form.mjs +1 -0
- package/es/pro-form/src/types.d.ts +72 -0
- package/es/pro-form/src/types.d.ts.map +1 -0
- package/es/pro-form/style/css.d.ts +38 -0
- package/es/pro-form/style/css.d.ts.map +1 -0
- package/es/pro-form/style/index.d.ts +38 -0
- package/es/pro-form/style/index.d.ts.map +1 -0
- package/es/pro-table/index.d.ts +2 -0
- package/es/pro-table/index.d.ts.map +1 -0
- package/es/pro-table/src/ColSetting.vue.mjs +4 -0
- package/es/pro-table/src/ColSetting.vue2.mjs +1 -0
- package/es/pro-table/src/ProTable.vue.mjs +1 -0
- package/es/pro-table/src/ProTable.vue2.mjs +1 -0
- package/es/pro-table/src/ProTableColumn.vue.mjs +1 -0
- package/es/pro-table/src/ProTableColumn.vue2.mjs +1 -0
- package/es/pro-table/src/context.d.ts +40 -0
- package/es/pro-table/src/context.d.ts.map +1 -0
- package/es/pro-table/src/hooks/use-pro-table.d.ts +5 -0
- package/es/pro-table/src/hooks/use-pro-table.d.ts.map +1 -0
- package/es/pro-table/src/hooks/use-pro-table.mjs +1 -0
- package/es/pro-table/src/hooks/use-selection.d.ts +8 -0
- package/es/pro-table/src/hooks/use-selection.d.ts.map +1 -0
- package/es/pro-table/src/hooks/use-selection.mjs +1 -0
- package/es/pro-table/src/hooks/use-table.d.ts +31 -0
- package/es/pro-table/src/hooks/use-table.d.ts.map +1 -0
- package/es/pro-table/src/hooks/use-table.mjs +1 -0
- package/es/pro-table/src/pro-table.d.ts +10 -0
- package/es/pro-table/src/pro-table.d.ts.map +1 -0
- package/es/pro-table/src/pro-table.mjs +1 -0
- package/es/pro-table/src/shared/ProTableColSetting.vue.mjs +1 -0
- package/es/pro-table/src/shared/ProTableColSetting.vue2.mjs +1 -0
- package/es/pro-table/src/shared/ProTablePagination.vue.mjs +1 -0
- package/es/pro-table/src/shared/ProTablePagination.vue2.mjs +1 -0
- package/es/pro-table/src/shared/ProTableSearchRenderer.vue.mjs +1 -0
- package/es/pro-table/src/shared/ProTableSearchRenderer.vue2.mjs +1 -0
- package/es/pro-table/src/shared/ProTableTable.vue.mjs +1 -0
- package/es/pro-table/src/shared/ProTableTable.vue2.mjs +1 -0
- package/es/pro-table/src/types.d.ts +116 -0
- package/es/pro-table/src/types.d.ts.map +1 -0
- package/es/pro-table/src/variants/classic/ClassicLayout.vue.mjs +1 -0
- package/es/pro-table/src/variants/classic/ClassicLayout.vue2.mjs +1 -0
- package/es/pro-table/src/variants/classic/index.d.ts +2 -0
- package/es/pro-table/src/variants/classic/index.d.ts.map +1 -0
- package/es/pro-table/src/variants/custom/CustomLayout.vue.mjs +1 -0
- package/es/pro-table/src/variants/custom/CustomLayout.vue2.mjs +1 -0
- package/es/pro-table/src/variants/custom/index.d.ts +2 -0
- package/es/pro-table/src/variants/custom/index.d.ts.map +1 -0
- package/es/pro-table/src/variants/unify/UnifyLayout.vue.mjs +1 -0
- package/es/pro-table/src/variants/unify/UnifyLayout.vue2.mjs +1 -0
- package/es/pro-table/src/variants/unify/UnifyQuickSearch.vue.mjs +1 -0
- package/es/pro-table/src/variants/unify/UnifyQuickSearch.vue2.mjs +1 -0
- package/es/pro-table/src/variants/unify/UnifySearchPanel.vue.mjs +1 -0
- package/es/pro-table/src/variants/unify/UnifySearchPanel.vue2.mjs +1 -0
- package/es/pro-table/src/variants/unify/index.d.ts +2 -0
- package/es/pro-table/src/variants/unify/index.d.ts.map +1 -0
- package/es/pro-table/style/css.d.ts +19 -0
- package/es/pro-table/style/css.d.ts.map +1 -0
- package/es/pro-table/style/index.d.ts +19 -0
- package/es/pro-table/style/index.d.ts.map +1 -0
- package/es/select-v2/index.d.ts +2 -0
- package/es/select-v2/index.d.ts.map +1 -0
- package/es/select-v2/src/select-v2.d.ts +30 -0
- package/es/select-v2/src/select-v2.d.ts.map +1 -0
- package/es/select-v2/src/select-v2.mjs +1 -0
- package/es/select-v2/style/css.d.ts +3 -0
- package/es/select-v2/style/css.d.ts.map +1 -0
- package/es/select-v2/style/index.d.ts +3 -0
- package/es/select-v2/style/index.d.ts.map +1 -0
- package/es/slider/index.d.ts +2 -0
- package/es/slider/index.d.ts.map +1 -0
- package/es/slider/src/slider.d.ts +25 -0
- package/es/slider/src/slider.d.ts.map +1 -0
- package/es/slider/src/slider.mjs +1 -0
- package/es/slider/style/css.d.ts +3 -0
- package/es/slider/style/css.d.ts.map +1 -0
- package/es/slider/style/index.d.ts +3 -0
- package/es/slider/style/index.d.ts.map +1 -0
- package/es/tree-select/index.d.ts +2 -0
- package/es/tree-select/index.d.ts.map +1 -0
- package/es/tree-select/src/tree-select.d.ts +30 -0
- package/es/tree-select/src/tree-select.d.ts.map +1 -0
- package/es/tree-select/src/tree-select.mjs +1 -0
- package/es/tree-select/style/css.d.ts +3 -0
- package/es/tree-select/style/css.d.ts.map +1 -0
- package/es/tree-select/style/index.d.ts +3 -0
- package/es/tree-select/style/index.d.ts.map +1 -0
- package/lib/autocomplete/index.d.ts +2 -0
- package/lib/autocomplete/src/autocomplete.d.ts +32 -0
- package/lib/autocomplete/src/autocomplete.js +1 -0
- package/lib/autocomplete/style/css.d.ts +3 -0
- package/lib/autocomplete/style/index.d.ts +3 -0
- package/lib/color-picker/index.d.ts +2 -0
- package/lib/color-picker/src/color-picker.d.ts +30 -0
- package/lib/color-picker/src/color-picker.js +1 -0
- package/lib/color-picker/style/css.d.ts +3 -0
- package/lib/color-picker/style/index.d.ts +3 -0
- package/lib/components/autocomplete/index.js +1 -0
- package/lib/components/autocomplete/style/css.js +1 -0
- package/lib/components/autocomplete/style/index.js +1 -0
- package/lib/components/color-picker/index.js +1 -0
- package/lib/components/color-picker/style/css.js +1 -0
- package/lib/components/color-picker/style/index.js +1 -0
- package/lib/components/config-provider/index.js +1 -0
- package/lib/components/config-provider/style/css.js +1 -0
- package/lib/components/config-provider/style/index.js +1 -0
- package/lib/components/icon/index.js +1 -0
- package/lib/components/icon/style/css.js +1 -0
- package/lib/components/icon/style/index.js +1 -0
- package/lib/components/pro-form/index.js +1 -0
- package/lib/components/pro-form/style/css.js +1 -0
- package/lib/components/pro-form/style/index.js +1 -0
- package/lib/components/pro-table/index.js +1 -0
- package/lib/components/pro-table/style/css.js +1 -0
- package/lib/components/pro-table/style/index.js +1 -0
- package/lib/components/select-v2/index.js +1 -0
- package/lib/components/select-v2/style/css.js +1 -0
- package/lib/components/select-v2/style/index.js +1 -0
- package/lib/components/slider/index.js +1 -0
- package/lib/components/slider/style/css.js +1 -0
- package/lib/components/slider/style/index.js +1 -0
- package/lib/components/tree-select/index.js +1 -0
- package/lib/components/tree-select/style/css.js +1 -0
- package/lib/components/tree-select/style/index.js +1 -0
- package/lib/config-provider/index.d.ts +2 -0
- package/lib/config-provider/src/config-provider.d.ts +25 -0
- package/lib/config-provider/src/config-provider.js +1 -0
- package/lib/config-provider/style/css.d.ts +2 -0
- package/lib/config-provider/style/index.d.ts +2 -0
- package/lib/icon/index.d.ts +2 -0
- package/lib/icon/src/icon.d.ts +25 -0
- package/lib/icon/src/icon.js +1 -0
- package/lib/icon/style/css.d.ts +2 -0
- package/lib/icon/style/index.d.ts +2 -0
- package/lib/index.d.ts +9 -1
- package/lib/index.js +1 -1
- package/lib/pro-form/index.d.ts +2 -0
- package/lib/pro-form/src/ProForm.vue.js +1 -0
- package/lib/pro-form/src/ProForm.vue2.js +1 -0
- package/lib/pro-form/src/ProFormItem.vue.js +1 -0
- package/lib/pro-form/src/ProFormItem.vue2.js +1 -0
- package/lib/pro-form/src/pro-form.d.ts +14 -0
- package/lib/pro-form/src/pro-form.js +1 -0
- package/lib/pro-form/src/types.d.ts +72 -0
- package/lib/pro-form/style/css.d.ts +38 -0
- package/lib/pro-form/style/index.d.ts +38 -0
- package/lib/pro-table/index.d.ts +2 -0
- package/lib/pro-table/src/ColSetting.vue.js +4 -0
- package/lib/pro-table/src/ColSetting.vue2.js +1 -0
- package/lib/pro-table/src/ProTable.vue.js +1 -0
- package/lib/pro-table/src/ProTable.vue2.js +1 -0
- package/lib/pro-table/src/ProTableColumn.vue.js +1 -0
- package/lib/pro-table/src/ProTableColumn.vue2.js +1 -0
- package/lib/pro-table/src/context.d.ts +40 -0
- package/lib/pro-table/src/hooks/use-pro-table.d.ts +5 -0
- package/lib/pro-table/src/hooks/use-pro-table.js +1 -0
- package/lib/pro-table/src/hooks/use-selection.d.ts +8 -0
- package/lib/pro-table/src/hooks/use-selection.js +1 -0
- package/lib/pro-table/src/hooks/use-table.d.ts +31 -0
- package/lib/pro-table/src/hooks/use-table.js +1 -0
- package/lib/pro-table/src/pro-table.d.ts +10 -0
- package/lib/pro-table/src/pro-table.js +1 -0
- package/lib/pro-table/src/shared/ProTableColSetting.vue.js +1 -0
- package/lib/pro-table/src/shared/ProTableColSetting.vue2.js +1 -0
- package/lib/pro-table/src/shared/ProTablePagination.vue.js +1 -0
- package/lib/pro-table/src/shared/ProTablePagination.vue2.js +1 -0
- package/lib/pro-table/src/shared/ProTableSearchRenderer.vue.js +1 -0
- package/lib/pro-table/src/shared/ProTableSearchRenderer.vue2.js +1 -0
- package/lib/pro-table/src/shared/ProTableTable.vue.js +1 -0
- package/lib/pro-table/src/shared/ProTableTable.vue2.js +1 -0
- package/lib/pro-table/src/types.d.ts +116 -0
- package/lib/pro-table/src/variants/classic/ClassicLayout.vue.js +1 -0
- package/lib/pro-table/src/variants/classic/ClassicLayout.vue2.js +1 -0
- package/lib/pro-table/src/variants/classic/index.d.ts +2 -0
- package/lib/pro-table/src/variants/custom/CustomLayout.vue.js +1 -0
- package/lib/pro-table/src/variants/custom/CustomLayout.vue2.js +1 -0
- package/lib/pro-table/src/variants/custom/index.d.ts +2 -0
- package/lib/pro-table/src/variants/unify/UnifyLayout.vue.js +1 -0
- package/lib/pro-table/src/variants/unify/UnifyLayout.vue2.js +1 -0
- package/lib/pro-table/src/variants/unify/UnifyQuickSearch.vue.js +1 -0
- package/lib/pro-table/src/variants/unify/UnifyQuickSearch.vue2.js +1 -0
- package/lib/pro-table/src/variants/unify/UnifySearchPanel.vue.js +1 -0
- package/lib/pro-table/src/variants/unify/UnifySearchPanel.vue2.js +1 -0
- package/lib/pro-table/src/variants/unify/index.d.ts +2 -0
- package/lib/pro-table/style/css.d.ts +19 -0
- package/lib/pro-table/style/index.d.ts +19 -0
- package/lib/select-v2/index.d.ts +2 -0
- package/lib/select-v2/src/select-v2.d.ts +30 -0
- package/lib/select-v2/src/select-v2.js +1 -0
- package/lib/select-v2/style/css.d.ts +3 -0
- package/lib/select-v2/style/index.d.ts +3 -0
- package/lib/slider/index.d.ts +2 -0
- package/lib/slider/src/slider.d.ts +25 -0
- package/lib/slider/src/slider.js +1 -0
- package/lib/slider/style/css.d.ts +3 -0
- package/lib/slider/style/index.d.ts +3 -0
- package/lib/tree-select/index.d.ts +2 -0
- package/lib/tree-select/src/tree-select.d.ts +30 -0
- package/lib/tree-select/src/tree-select.js +1 -0
- package/lib/tree-select/style/css.d.ts +3 -0
- package/lib/tree-select/style/index.d.ts +3 -0
- package/package.json +9 -4
package/README.md
CHANGED
|
@@ -12,35 +12,32 @@ npm install sunyard-szyy-ui
|
|
|
12
12
|
npm install @sunyard-szyy-ui/components
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
## 📚
|
|
15
|
+
## 📚 包说明
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
企业级搜索输入框组件。
|
|
17
|
+
`@sunyard-szyy-ui/components` 提供基础组件与扩展组件源码导出,推荐业务项目优先通过主包 `sunyard-szyy-ui` 使用。
|
|
20
18
|
|
|
21
19
|
**特性:**
|
|
22
20
|
|
|
23
|
-
- ✅
|
|
24
|
-
- ✅
|
|
25
|
-
- ✅
|
|
26
|
-
- ✅
|
|
21
|
+
- ✅ 基于 Vue 3 + TypeScript
|
|
22
|
+
- ✅ 支持按需导入与 Tree-shaking
|
|
23
|
+
- ✅ 样式与类型定义随组件一起分发
|
|
24
|
+
- ✅ 与 `@sunyard-szyy-ui/adapter`、`theme-chalk` 配套使用
|
|
27
25
|
|
|
28
26
|
**使用示例:**
|
|
29
27
|
|
|
30
28
|
```vue
|
|
31
29
|
<template>
|
|
32
|
-
<
|
|
30
|
+
<div style="display: flex; gap: 12px;">
|
|
31
|
+
<SyInput v-model="keyword" placeholder="请输入关键词" />
|
|
32
|
+
<SyButton type="primary">提交</SyButton>
|
|
33
|
+
</div>
|
|
33
34
|
</template>
|
|
34
35
|
|
|
35
36
|
<script setup lang="ts">
|
|
36
37
|
import { ref } from 'vue';
|
|
37
|
-
import {
|
|
38
|
+
import { SyButton, SyInput } from '@sunyard-szyy-ui/components';
|
|
38
39
|
|
|
39
40
|
const keyword = ref('');
|
|
40
|
-
|
|
41
|
-
const handleSearch = (value: string) => {
|
|
42
|
-
console.log('搜索:', value);
|
|
43
|
-
};
|
|
44
41
|
</script>
|
|
45
42
|
```
|
|
46
43
|
|
|
@@ -49,19 +46,19 @@ const handleSearch = (value: string) => {
|
|
|
49
46
|
### 方式一:从主包导入(推荐)
|
|
50
47
|
|
|
51
48
|
```typescript
|
|
52
|
-
import {
|
|
49
|
+
import { SyButton, SyInput } from 'sunyard-szyy-ui';
|
|
53
50
|
```
|
|
54
51
|
|
|
55
52
|
### 方式二:从组件包导入
|
|
56
53
|
|
|
57
54
|
```typescript
|
|
58
|
-
import {
|
|
55
|
+
import { SyButton, SyInput } from '@sunyard-szyy-ui/components';
|
|
59
56
|
```
|
|
60
57
|
|
|
61
58
|
### 方式三:按需导入
|
|
62
59
|
|
|
63
60
|
```typescript
|
|
64
|
-
import {
|
|
61
|
+
import { SyInput } from '@sunyard-szyy-ui/components/input';
|
|
65
62
|
```
|
|
66
63
|
|
|
67
64
|
## 🎨 样式导入
|
|
@@ -79,7 +76,7 @@ import 'sunyard-szyy-ui/theme-chalk/index.css';
|
|
|
79
76
|
|
|
80
77
|
## 📖 API 文档
|
|
81
78
|
|
|
82
|
-
详细的 API
|
|
79
|
+
详细的 API 文档请查看 `docs/core/components/` 目录下各组件页面。
|
|
83
80
|
|
|
84
81
|
## 🔧 开发
|
|
85
82
|
|
|
@@ -105,7 +102,7 @@ pnpm clean
|
|
|
105
102
|
│ ├── index.mjs
|
|
106
103
|
│ ├── index.d.ts
|
|
107
104
|
│ └── components/
|
|
108
|
-
│ └──
|
|
105
|
+
│ └── input/
|
|
109
106
|
│ ├── index.mjs
|
|
110
107
|
│ ├── index.d.ts
|
|
111
108
|
│ └── style/
|
|
@@ -115,7 +112,7 @@ pnpm clean
|
|
|
115
112
|
├── index.js
|
|
116
113
|
├── index.d.ts
|
|
117
114
|
└── components/
|
|
118
|
-
└──
|
|
115
|
+
└── input/
|
|
119
116
|
├── index.js
|
|
120
117
|
└── style/
|
|
121
118
|
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/autocomplete/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
declare const Autocomplete: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
4
|
+
export declare const SyAutocomplete: import("@sunyard-szyy-ui/utils").SFCWithInstall<{
|
|
5
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
8
|
+
P: {};
|
|
9
|
+
B: {};
|
|
10
|
+
D: {};
|
|
11
|
+
C: {};
|
|
12
|
+
M: {};
|
|
13
|
+
Defaults: {};
|
|
14
|
+
}, Readonly<{}> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
}>, {}, {}, {}, {}>;
|
|
17
|
+
__isFragment?: never;
|
|
18
|
+
__isTeleport?: never;
|
|
19
|
+
__isSuspense?: never;
|
|
20
|
+
} & import("vue").ComponentOptionsBase<Readonly<{}> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps>;
|
|
23
|
+
export type SyAutocompleteInstance = InstanceType<typeof Autocomplete> & {
|
|
24
|
+
focus: () => void;
|
|
25
|
+
blur: () => void;
|
|
26
|
+
close: () => void;
|
|
27
|
+
highlight: (itemIndex: number) => void;
|
|
28
|
+
handleKeyEnter: () => Promise<void> | void;
|
|
29
|
+
handleSelect: (item: unknown) => Promise<void> | void;
|
|
30
|
+
};
|
|
31
|
+
export {};
|
|
32
|
+
//# sourceMappingURL=autocomplete.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autocomplete.d.ts","sourceRoot":"","sources":["../../../src/autocomplete/src/autocomplete.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,YAAY;;2OAoBhB,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;+UAA4B,CAAC;AACxD,MAAM,MAAM,sBAAsB,GAAG,YAAY,CAAC,OAAO,YAAY,CAAC,GAAG;IACvE,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,SAAS,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,cAAc,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC3C,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;CACvD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as a,useAttrs as c,useSlots as m,ref as p,h,mergeProps as i}from"vue";import{useNamespace as f}from"@sunyard-szyy-ui/hooks";import{withInstall as A}from"@sunyard-szyy-ui/utils";import{AdapterAutocomplete as d}from"@sunyard-szyy-ui/adapter";const v=a({name:"SyAutocomplete",inheritAttrs:!1,setup(g,{expose:s}){const r=f("autocomplete"),n=c(),u=m(),o=p();return s({focus:()=>{var e,t;return(t=(e=o.value)==null?void 0:e.focus)==null?void 0:t.call(e)},blur:()=>{var e,t;return(t=(e=o.value)==null?void 0:e.blur)==null?void 0:t.call(e)},close:()=>{var e,t;return(t=(e=o.value)==null?void 0:e.close)==null?void 0:t.call(e)},highlight:e=>{var t,l;return(l=(t=o.value)==null?void 0:t.highlight)==null?void 0:l.call(t,e)},handleKeyEnter:()=>{var e,t;return(t=(e=o.value)==null?void 0:e.handleKeyEnter)==null?void 0:t.call(e)},handleSelect:e=>{var t,l;return(l=(t=o.value)==null?void 0:t.handleSelect)==null?void 0:l.call(t,e)}}),()=>h(d,i({ref:o,class:r.b()},n),u)}}),K=A(v);export{K as SyAutocomplete};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../../../src/autocomplete/style/css.ts"],"names":[],"mappings":"AAAA,OAAO,mDAAmD,CAAC;AAC3D,OAAO,8CAA8C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/autocomplete/style/index.ts"],"names":[],"mappings":"AAAA,OAAO,mDAAmD,CAAC;AAC3D,OAAO,mDAAmD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/color-picker/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
declare const ColorPicker: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
4
|
+
export declare const SyColorPicker: import("@sunyard-szyy-ui/utils").SFCWithInstall<{
|
|
5
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
8
|
+
P: {};
|
|
9
|
+
B: {};
|
|
10
|
+
D: {};
|
|
11
|
+
C: {};
|
|
12
|
+
M: {};
|
|
13
|
+
Defaults: {};
|
|
14
|
+
}, Readonly<{}> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
}>, {}, {}, {}, {}>;
|
|
17
|
+
__isFragment?: never;
|
|
18
|
+
__isTeleport?: never;
|
|
19
|
+
__isSuspense?: never;
|
|
20
|
+
} & import("vue").ComponentOptionsBase<Readonly<{}> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps>;
|
|
23
|
+
export type SyColorPickerInstance = InstanceType<typeof ColorPicker> & {
|
|
24
|
+
show: () => void;
|
|
25
|
+
hide: () => void;
|
|
26
|
+
focus: () => void;
|
|
27
|
+
blur: () => void;
|
|
28
|
+
};
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=color-picker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"color-picker.d.ts","sourceRoot":"","sources":["../../../src/color-picker/src/color-picker.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,WAAW;;2OAkBf,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;+UAA2B,CAAC;AACtD,MAAM,MAAM,qBAAqB,GAAG,YAAY,CAAC,OAAO,WAAW,CAAC,GAAG;IACrE,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,IAAI,EAAE,MAAM,IAAI,CAAC;CAClB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as i,useAttrs as n,useSlots as p,ref as u,h as a,mergeProps as m}from"vue";import{useNamespace as f}from"@sunyard-szyy-ui/hooks";import{withInstall as h}from"@sunyard-szyy-ui/utils";import{AdapterColorPicker as k}from"@sunyard-szyy-ui/adapter";const C=i({name:"SyColorPicker",inheritAttrs:!1,setup(P,{expose:s}){const t=f("color-picker"),l=n(),c=p(),e=u();return s({show:()=>{var o,r;return(r=(o=e.value)==null?void 0:o.show)==null?void 0:r.call(o)},hide:()=>{var o,r;return(r=(o=e.value)==null?void 0:o.hide)==null?void 0:r.call(o)},focus:()=>{var o,r;return(r=(o=e.value)==null?void 0:o.focus)==null?void 0:r.call(o)},blur:()=>{var o,r;return(r=(o=e.value)==null?void 0:o.blur)==null?void 0:r.call(o)}}),()=>a(k,m({ref:e,class:t.b()},l),c)}}),A=h(C);export{A as SyColorPicker};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../../../src/color-picker/style/css.ts"],"names":[],"mappings":"AAAA,OAAO,mDAAmD,CAAC;AAC3D,OAAO,8CAA8C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/color-picker/style/index.ts"],"names":[],"mappings":"AAAA,OAAO,mDAAmD,CAAC;AAC3D,OAAO,mDAAmD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{SyAutocomplete as t}from"../../autocomplete/src/autocomplete.mjs";export{t as SyAutocomplete};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"element-plus/es/components/autocomplete/style/css";import"sunyard-szyy-ui/theme-chalk/autocomplete.css";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"element-plus/es/components/autocomplete/style/css";import"sunyard-szyy-ui/theme-chalk/src/autocomplete.scss";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{SyColorPicker as e}from"../../color-picker/src/color-picker.mjs";export{e as SyColorPicker};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"element-plus/es/components/color-picker/style/css";import"sunyard-szyy-ui/theme-chalk/color-picker.css";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"element-plus/es/components/color-picker/style/css";import"sunyard-szyy-ui/theme-chalk/src/color-picker.scss";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{SyConfigProvider as e}from"../../config-provider/src/config-provider.mjs";export{e as SyConfigProvider};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"sunyard-szyy-ui/theme-chalk/config-provider.css";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"sunyard-szyy-ui/theme-chalk/src/config-provider.scss";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{SyIcon as c}from"../../icon/src/icon.mjs";export{c as SyIcon};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"element-plus/es/components/icon/style/css";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"element-plus/es/components/icon/style/css";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{SyProForm as m}from"../../pro-form/src/pro-form.mjs";export{m as SyProForm};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"element-plus/es/components/form/style/css";import"element-plus/es/components/form-item/style/css";import"element-plus/es/components/button/style/css";import"element-plus/es/components/input/style/css";import"element-plus/es/components/input-number/style/css";import"element-plus/es/components/select/style/css";import"element-plus/es/components/select-v2/style/css";import"element-plus/es/components/cascader/style/css";import"element-plus/es/components/date-picker/style/css";import"element-plus/es/components/time-picker/style/css";import"element-plus/es/components/time-select/style/css";import"element-plus/es/components/switch/style/css";import"element-plus/es/components/radio/style/css";import"element-plus/es/components/radio-button/style/css";import"element-plus/es/components/radio-group/style/css";import"element-plus/es/components/checkbox/style/css";import"element-plus/es/components/checkbox-group/style/css";import"element-plus/es/components/slider/style/css";import"element-plus/es/components/color-picker/style/css";import"element-plus/es/components/autocomplete/style/css";import"element-plus/es/components/tree-select/style/css";import"element-plus/es/components/tooltip/style/css";import"element-plus/es/components/icon/style/css";import"sunyard-szyy-ui/theme-chalk/form.css";import"sunyard-szyy-ui/theme-chalk/button.css";import"sunyard-szyy-ui/theme-chalk/input.css";import"sunyard-szyy-ui/theme-chalk/input-number.css";import"sunyard-szyy-ui/theme-chalk/select.css";import"sunyard-szyy-ui/theme-chalk/cascader.css";import"sunyard-szyy-ui/theme-chalk/date-picker.css";import"sunyard-szyy-ui/theme-chalk/time-picker.css";import"sunyard-szyy-ui/theme-chalk/time-select.css";import"sunyard-szyy-ui/theme-chalk/switch.css";import"sunyard-szyy-ui/theme-chalk/radio.css";import"sunyard-szyy-ui/theme-chalk/checkbox.css";import"sunyard-szyy-ui/theme-chalk/tooltip.css";import"sunyard-szyy-ui/theme-chalk/pro-form.css";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"element-plus/es/components/form/style/css";import"element-plus/es/components/form-item/style/css";import"element-plus/es/components/button/style/css";import"element-plus/es/components/input/style/css";import"element-plus/es/components/input-number/style/css";import"element-plus/es/components/select/style/css";import"element-plus/es/components/select-v2/style/css";import"element-plus/es/components/cascader/style/css";import"element-plus/es/components/date-picker/style/css";import"element-plus/es/components/time-picker/style/css";import"element-plus/es/components/time-select/style/css";import"element-plus/es/components/switch/style/css";import"element-plus/es/components/radio/style/css";import"element-plus/es/components/radio-button/style/css";import"element-plus/es/components/radio-group/style/css";import"element-plus/es/components/checkbox/style/css";import"element-plus/es/components/checkbox-group/style/css";import"element-plus/es/components/slider/style/css";import"element-plus/es/components/color-picker/style/css";import"element-plus/es/components/autocomplete/style/css";import"element-plus/es/components/tree-select/style/css";import"element-plus/es/components/tooltip/style/css";import"element-plus/es/components/icon/style/css";import"sunyard-szyy-ui/theme-chalk/src/form.scss";import"sunyard-szyy-ui/theme-chalk/src/button.scss";import"sunyard-szyy-ui/theme-chalk/src/input.scss";import"sunyard-szyy-ui/theme-chalk/src/input-number.scss";import"sunyard-szyy-ui/theme-chalk/src/select.scss";import"sunyard-szyy-ui/theme-chalk/src/cascader.scss";import"sunyard-szyy-ui/theme-chalk/src/date-picker.scss";import"sunyard-szyy-ui/theme-chalk/src/time-picker.scss";import"sunyard-szyy-ui/theme-chalk/src/time-select.scss";import"sunyard-szyy-ui/theme-chalk/src/switch.scss";import"sunyard-szyy-ui/theme-chalk/src/radio.scss";import"sunyard-szyy-ui/theme-chalk/src/checkbox.scss";import"sunyard-szyy-ui/theme-chalk/src/tooltip.scss";import"sunyard-szyy-ui/theme-chalk/src/pro-form.scss";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{SyProTable as e}from"../../pro-table/src/pro-table.mjs";export{e as SyProTable};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"element-plus/es/components/table/style/css";import"element-plus/es/components/table-column/style/css";import"element-plus/es/components/pagination/style/css";import"element-plus/es/components/button/style/css";import"element-plus/es/components/drawer/style/css";import"element-plus/es/components/tag/style/css";import"element-plus/es/components/switch/style/css";import"element-plus/es/components/empty/style/css";import"element-plus/es/components/loading/style/css";import"element-plus/es/components/tooltip/style/css";import"sunyard-szyy-ui/theme-chalk/table.css";import"sunyard-szyy-ui/theme-chalk/pagination.css";import"sunyard-szyy-ui/theme-chalk/button.css";import"sunyard-szyy-ui/theme-chalk/drawer.css";import"sunyard-szyy-ui/theme-chalk/tag.css";import"sunyard-szyy-ui/theme-chalk/tooltip.css";import"element-plus/es/components/form/style/css";import"element-plus/es/components/form-item/style/css";import"element-plus/es/components/input/style/css";import"element-plus/es/components/input-number/style/css";import"element-plus/es/components/select/style/css";import"element-plus/es/components/select-v2/style/css";import"element-plus/es/components/cascader/style/css";import"element-plus/es/components/date-picker/style/css";import"element-plus/es/components/time-picker/style/css";import"element-plus/es/components/time-select/style/css";import"element-plus/es/components/radio/style/css";import"element-plus/es/components/radio-button/style/css";import"element-plus/es/components/radio-group/style/css";import"element-plus/es/components/checkbox/style/css";import"element-plus/es/components/checkbox-group/style/css";import"element-plus/es/components/slider/style/css";import"element-plus/es/components/color-picker/style/css";import"element-plus/es/components/autocomplete/style/css";import"element-plus/es/components/tree-select/style/css";import"element-plus/es/components/icon/style/css";import"sunyard-szyy-ui/theme-chalk/form.css";import"sunyard-szyy-ui/theme-chalk/input.css";import"sunyard-szyy-ui/theme-chalk/input-number.css";import"sunyard-szyy-ui/theme-chalk/select.css";import"sunyard-szyy-ui/theme-chalk/cascader.css";import"sunyard-szyy-ui/theme-chalk/date-picker.css";import"sunyard-szyy-ui/theme-chalk/time-picker.css";import"sunyard-szyy-ui/theme-chalk/time-select.css";import"sunyard-szyy-ui/theme-chalk/switch.css";import"sunyard-szyy-ui/theme-chalk/radio.css";import"sunyard-szyy-ui/theme-chalk/checkbox.css";import"sunyard-szyy-ui/theme-chalk/pro-form.css";import"sunyard-szyy-ui/theme-chalk/pro-table.css";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"element-plus/es/components/table/style/css";import"element-plus/es/components/table-column/style/css";import"element-plus/es/components/pagination/style/css";import"element-plus/es/components/button/style/css";import"element-plus/es/components/drawer/style/css";import"element-plus/es/components/tag/style/css";import"element-plus/es/components/switch/style/css";import"element-plus/es/components/empty/style/css";import"element-plus/es/components/loading/style/css";import"element-plus/es/components/tooltip/style/css";import"sunyard-szyy-ui/theme-chalk/src/table.scss";import"sunyard-szyy-ui/theme-chalk/src/pagination.scss";import"sunyard-szyy-ui/theme-chalk/src/button.scss";import"sunyard-szyy-ui/theme-chalk/src/drawer.scss";import"sunyard-szyy-ui/theme-chalk/src/tag.scss";import"sunyard-szyy-ui/theme-chalk/src/tooltip.scss";import"element-plus/es/components/form/style/css";import"element-plus/es/components/form-item/style/css";import"element-plus/es/components/input/style/css";import"element-plus/es/components/input-number/style/css";import"element-plus/es/components/select/style/css";import"element-plus/es/components/select-v2/style/css";import"element-plus/es/components/cascader/style/css";import"element-plus/es/components/date-picker/style/css";import"element-plus/es/components/time-picker/style/css";import"element-plus/es/components/time-select/style/css";import"element-plus/es/components/radio/style/css";import"element-plus/es/components/radio-button/style/css";import"element-plus/es/components/radio-group/style/css";import"element-plus/es/components/checkbox/style/css";import"element-plus/es/components/checkbox-group/style/css";import"element-plus/es/components/slider/style/css";import"element-plus/es/components/color-picker/style/css";import"element-plus/es/components/autocomplete/style/css";import"element-plus/es/components/tree-select/style/css";import"element-plus/es/components/icon/style/css";import"sunyard-szyy-ui/theme-chalk/src/form.scss";import"sunyard-szyy-ui/theme-chalk/src/input.scss";import"sunyard-szyy-ui/theme-chalk/src/input-number.scss";import"sunyard-szyy-ui/theme-chalk/src/select.scss";import"sunyard-szyy-ui/theme-chalk/src/cascader.scss";import"sunyard-szyy-ui/theme-chalk/src/date-picker.scss";import"sunyard-szyy-ui/theme-chalk/src/time-picker.scss";import"sunyard-szyy-ui/theme-chalk/src/time-select.scss";import"sunyard-szyy-ui/theme-chalk/src/switch.scss";import"sunyard-szyy-ui/theme-chalk/src/radio.scss";import"sunyard-szyy-ui/theme-chalk/src/checkbox.scss";import"sunyard-szyy-ui/theme-chalk/src/pro-form.scss";import"sunyard-szyy-ui/theme-chalk/src/pro-table.scss";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{SySelectV2 as r}from"../../select-v2/src/select-v2.mjs";export{r as SySelectV2};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"element-plus/es/components/select-v2/style/css";import"sunyard-szyy-ui/theme-chalk/select-v2.css";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"element-plus/es/components/select-v2/style/css";import"sunyard-szyy-ui/theme-chalk/src/select-v2.scss";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{SySlider as o}from"../../slider/src/slider.mjs";export{o as SySlider};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"element-plus/es/components/slider/style/css";import"sunyard-szyy-ui/theme-chalk/slider.css";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"element-plus/es/components/slider/style/css";import"sunyard-szyy-ui/theme-chalk/src/slider.scss";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{SyTreeSelect as o}from"../../tree-select/src/tree-select.mjs";export{o as SyTreeSelect};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"element-plus/es/components/tree-select/style/css";import"sunyard-szyy-ui/theme-chalk/tree-select.css";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"element-plus/es/components/tree-select/style/css";import"sunyard-szyy-ui/theme-chalk/src/tree-select.scss";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config-provider/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const ConfigProvider: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
4
|
+
export declare const SyConfigProvider: import("@sunyard-szyy-ui/utils").SFCWithInstall<{
|
|
5
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
8
|
+
P: {};
|
|
9
|
+
B: {};
|
|
10
|
+
D: {};
|
|
11
|
+
C: {};
|
|
12
|
+
M: {};
|
|
13
|
+
Defaults: {};
|
|
14
|
+
}, Readonly<{}> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
}>, {}, {}, {}, {}>;
|
|
17
|
+
__isFragment?: never;
|
|
18
|
+
__isTeleport?: never;
|
|
19
|
+
__isSuspense?: never;
|
|
20
|
+
} & import("vue").ComponentOptionsBase<Readonly<{}> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps>;
|
|
23
|
+
export type SyConfigProviderInstance = InstanceType<typeof ConfigProvider>;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=config-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-provider.d.ts","sourceRoot":"","sources":["../../../src/config-provider/src/config-provider.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,cAAc;;2OAYlB,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;+UAA8B,CAAC;AAC5D,MAAM,MAAM,wBAAwB,GAAG,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as n,useAttrs as s,useSlots as i,ref as f,h as p,mergeProps as m}from"vue";import{withInstall as d}from"@sunyard-szyy-ui/utils";import{AdapterConfigProvider as a}from"@sunyard-szyy-ui/adapter";const c=n({name:"SyConfigProvider",inheritAttrs:!1,setup(g,{expose:r}){const o=s(),t=i(),e=f();return r({}),()=>p(a,m({ref:e},o),t)}}),u=d(c);export{u as SyConfigProvider};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../../../src/config-provider/style/css.ts"],"names":[],"mappings":"AAAA,OAAO,iDAAiD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/config-provider/style/index.ts"],"names":[],"mappings":"AAAA,OAAO,sDAAsD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/icon/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const Icon: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
4
|
+
export declare const SyIcon: import("@sunyard-szyy-ui/utils").SFCWithInstall<{
|
|
5
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
8
|
+
P: {};
|
|
9
|
+
B: {};
|
|
10
|
+
D: {};
|
|
11
|
+
C: {};
|
|
12
|
+
M: {};
|
|
13
|
+
Defaults: {};
|
|
14
|
+
}, Readonly<{}> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
}>, {}, {}, {}, {}>;
|
|
17
|
+
__isFragment?: never;
|
|
18
|
+
__isTeleport?: never;
|
|
19
|
+
__isSuspense?: never;
|
|
20
|
+
} & import("vue").ComponentOptionsBase<Readonly<{}> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps>;
|
|
23
|
+
export type SyIconInstance = InstanceType<typeof Icon>;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../src/icon/src/icon.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,IAAI;;2OASR,CAAC;AAEH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;+UAAoB,CAAC;AACxC,MAAM,MAAM,cAAc,GAAG,YAAY,CAAC,OAAO,IAAI,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as r,useAttrs as s,useSlots as n,h as e,mergeProps as m}from"vue";import{withInstall as c}from"@sunyard-szyy-ui/utils";import{AdapterIcon as p}from"@sunyard-szyy-ui/adapter";const i=r({name:"SyIcon",inheritAttrs:!1,setup(){const t=s(),o=n();return()=>e(p,m(t),o)}}),I=c(i);export{I as SyIcon};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../../../src/icon/style/css.ts"],"names":[],"mappings":"AAAA,OAAO,2CAA2C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/icon/style/index.ts"],"names":[],"mappings":"AAAA,OAAO,2CAA2C,CAAC"}
|
package/es/index.d.ts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
export * from './autocomplete';
|
|
1
2
|
export * from './alert';
|
|
2
3
|
export * from './backtop';
|
|
3
4
|
export * from './button';
|
|
4
5
|
export * from './card';
|
|
5
6
|
export * from './cascader';
|
|
6
7
|
export * from './checkbox';
|
|
8
|
+
export * from './color-picker';
|
|
7
9
|
export * from './collapse';
|
|
8
10
|
export * from './container';
|
|
11
|
+
export * from './config-provider';
|
|
9
12
|
export * from './date-picker';
|
|
10
13
|
export * from './date-time-picker';
|
|
11
14
|
export * from './descriptions';
|
|
@@ -15,6 +18,7 @@ export * from './drawer';
|
|
|
15
18
|
export * from './dropdown';
|
|
16
19
|
export * from './empty';
|
|
17
20
|
export * from './form';
|
|
21
|
+
export * from './icon';
|
|
18
22
|
export * from './image';
|
|
19
23
|
export * from './input';
|
|
20
24
|
export * from './input-number';
|
|
@@ -31,9 +35,10 @@ export * from './popover';
|
|
|
31
35
|
export * from './progress';
|
|
32
36
|
export * from './radio';
|
|
33
37
|
export * from './scrollbar';
|
|
34
|
-
export * from './search-bar';
|
|
35
38
|
export * from './select';
|
|
39
|
+
export * from './select-v2';
|
|
36
40
|
export * from './skeleton';
|
|
41
|
+
export * from './slider';
|
|
37
42
|
export * from './space';
|
|
38
43
|
export * from './steps';
|
|
39
44
|
export * from './switch';
|
|
@@ -45,5 +50,8 @@ export * from './time-picker';
|
|
|
45
50
|
export * from './time-select';
|
|
46
51
|
export * from './tooltip';
|
|
47
52
|
export * from './tree';
|
|
53
|
+
export * from './tree-select';
|
|
48
54
|
export * from './upload';
|
|
55
|
+
export * from './pro-form';
|
|
56
|
+
export * from './pro-table';
|
|
49
57
|
//# sourceMappingURL=index.d.ts.map
|
package/es/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC"}
|
package/es/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{SyAutocomplete as e}from"./autocomplete/src/autocomplete.mjs";import{SyAlert as S}from"./alert/src/alert.mjs";import{SyBacktop as y}from"./backtop/src/backtop.mjs";import{SyButton as x}from"./button/src/button.mjs";import{SyCard as i}from"./card/src/card.mjs";import{SyCascader as n}from"./cascader/src/cascader.mjs";import{SyCheckbox as c,SyCheckboxGroup as u}from"./checkbox/src/checkbox.mjs";import{SyCheckboxButton as s}from"./checkbox/src/checkbox-button.mjs";import{SyColorPicker as C}from"./color-picker/src/color-picker.mjs";import{SyCollapse as b,SyCollapseItem as k}from"./collapse/src/collapse.mjs";import{SyAside as I,SyContainer as g,SyFooter as M,SyHeader as w,SyMain as B}from"./container/src/container.mjs";import{SyConfigProvider as v}from"./config-provider/src/config-provider.mjs";import{SyDatePicker as R}from"./date-picker/src/date-picker.mjs";import{SyDateTimePicker as G}from"./date-time-picker/src/date-time-picker.mjs";import{SyDescriptions as N,SyDescriptionsItem as E}from"./descriptions/src/descriptions.mjs";import{SyDialog as O}from"./dialog/src/dialog.mjs";import{SyDivider as V}from"./divider/src/divider.mjs";import{SyDrawer as q}from"./drawer/src/drawer.mjs";import{SyDropdown as J,SyDropdownItem as K,SyDropdownMenu as Q}from"./dropdown/src/dropdown.mjs";import{SyEmpty as X}from"./empty/src/empty.mjs";import{SyForm as Z,SyFormItem as _}from"./form/src/form.mjs";import{SyIcon as oo}from"./icon/src/icon.mjs";import{SyImage as eo}from"./image/src/image.mjs";import{SyInput as So}from"./input/src/input.mjs";import{SyInputNumber as yo}from"./input-number/src/input-number.mjs";import{SyCol as xo,SyRow as fo}from"./layout/src/layout.mjs";import{SyLink as ao}from"./link/src/link.mjs";import{SyLoading as lo,SyLoadingDirective as co}from"./loading/src/loading.mjs";import{SyMenu as so,SyMenuItem as To,SyMenuItemGroup as Co,SySubMenu as Po}from"./menu/src/menu.mjs";import{SyMessage as ko}from"./message/src/message.mjs";import{SyMessageBox as Io}from"./message-box/src/message-box.mjs";import{SyNotification as Mo}from"./notification/src/notification.mjs";import{SyPagination as Bo}from"./pagination/src/pagination.mjs";import{SyPopconfirm as vo}from"./popconfirm/src/popconfirm.mjs";import{SyPopover as Ro}from"./popover/src/popover.mjs";import{SyProgress as Go}from"./progress/src/progress.mjs";import{SyRadio as No,SyRadioGroup as Eo}from"./radio/src/radio.mjs";import{SyRadioButton as Oo}from"./radio/src/radio-button.mjs";import{SyScrollbar as Vo}from"./scrollbar/src/scrollbar.mjs";import{SyOption as qo,SySelect as zo}from"./select/src/select.mjs";import{SySelectV2 as Ko}from"./select-v2/src/select-v2.mjs";import{SySkeleton as Wo,SySkeletonItem as Xo}from"./skeleton/src/skeleton.mjs";import{SySlider as Zo}from"./slider/src/slider.mjs";import{SySpace as $o}from"./space/src/space.mjs";import{SyStep as rr,SySteps as er}from"./steps/src/steps.mjs";import{SySwitch as Sr}from"./switch/src/switch.mjs";import{SyTable as yr,SyTableColumn as mr}from"./table/src/table.mjs";import{SyTabPane as fr,SyTabs as ir}from"./tabs/src/tabs.mjs";import{SyTag as nr}from"./tag/src/tag.mjs";import{SyText as cr}from"./text/src/text.mjs";import{SyTimePicker as dr}from"./time-picker/src/time-picker.mjs";import{SyTimeSelect as Tr}from"./time-select/src/time-select.mjs";import{SyTooltip as Pr}from"./tooltip/src/tooltip.mjs";import{SyTree as kr}from"./tree/src/tree.mjs";import{SyTreeSelect as Ir}from"./tree-select/src/tree-select.mjs";import{SyUpload as Mr}from"./upload/src/upload.mjs";import{SyProForm as Br}from"./pro-form/src/pro-form.mjs";import{SyProTable as vr}from"./pro-table/src/pro-table.mjs";export{S as SyAlert,I as SyAside,e as SyAutocomplete,y as SyBacktop,x as SyButton,i as SyCard,n as SyCascader,c as SyCheckbox,s as SyCheckboxButton,u as SyCheckboxGroup,xo as SyCol,b as SyCollapse,k as SyCollapseItem,C as SyColorPicker,v as SyConfigProvider,g as SyContainer,R as SyDatePicker,G as SyDateTimePicker,N as SyDescriptions,E as SyDescriptionsItem,O as SyDialog,V as SyDivider,q as SyDrawer,J as SyDropdown,K as SyDropdownItem,Q as SyDropdownMenu,X as SyEmpty,M as SyFooter,Z as SyForm,_ as SyFormItem,w as SyHeader,oo as SyIcon,eo as SyImage,So as SyInput,yo as SyInputNumber,ao as SyLink,lo as SyLoading,co as SyLoadingDirective,B as SyMain,so as SyMenu,To as SyMenuItem,Co as SyMenuItemGroup,ko as SyMessage,Io as SyMessageBox,Mo as SyNotification,qo as SyOption,Bo as SyPagination,vo as SyPopconfirm,Ro as SyPopover,Br as SyProForm,vr as SyProTable,Go as SyProgress,No as SyRadio,Oo as SyRadioButton,Eo as SyRadioGroup,fo as SyRow,Vo as SyScrollbar,zo as SySelect,Ko as SySelectV2,Wo as SySkeleton,Xo as SySkeletonItem,Zo as SySlider,$o as SySpace,rr as SyStep,er as SySteps,Po as SySubMenu,Sr as SySwitch,fr as SyTabPane,yr as SyTable,mr as SyTableColumn,ir as SyTabs,nr as SyTag,cr as SyText,dr as SyTimePicker,Tr as SyTimeSelect,Pr as SyTooltip,kr as SyTree,Ir as SyTreeSelect,Mr as SyUpload};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/pro-form/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as le,useSlots as oe,ref as W,onMounted as ne,onUnmounted as ae,computed as c,openBlock as i,createBlock as m,unref as s,withModifiers as re,withCtx as d,createElementVNode as M,normalizeStyle as V,createElementBlock as h,Fragment as I,renderList as se,createCommentVNode as u,renderSlot as B,createVNode as y,mergeProps as ie,createSlots as ue,toDisplayString as p,createTextVNode as x,resolveDynamicComponent as O}from"vue";import{InfoFilled as de,ArrowDown as j,ArrowUp as J}from"@element-plus/icons-vue";import{SyIcon as L}from"../../icon/src/icon.mjs";import{useNamespace as fe}from"@sunyard-szyy-ui/hooks";import{SyButton as w}from"../../button/src/button.mjs";import{SyForm as ce,SyFormItem as me}from"../../form/src/form.mjs";import{SyTooltip as ve}from"../../tooltip/src/tooltip.mjs";import ye from"./ProFormItem.vue.mjs";const pe=2,Se=le({name:"SyProForm",__name:"ProForm",props:{model:{},schema:{},cols:{default:4},labelWidth:{default:"auto"},labelPosition:{default:"right"},disabled:{type:Boolean,default:!1},size:{},showQueryBtn:{type:Boolean,default:!0},showResetBtn:{type:Boolean,default:!0},queryBtnText:{default:"查询"},resetBtnText:{default:"重置"},loading:{type:Boolean,default:!1},collapsible:{type:[Boolean,Number],default:!1},defaultCollapsed:{type:Boolean,default:!0},buttonAlign:{default:"inline"}},emits:["search","reset"],setup(o,{expose:G,emit:H}){const S=oe(),a=o,N=H;fe("pro-form");const v=W(),f=W(a.defaultCollapsed),k=W("xl");function Q(){const e=window.innerWidth;return e<768?"xs":e<992?"sm":e<1200?"md":e<1920?"lg":"xl"}function U(){k.value=Q()}ne(()=>{k.value=Q(),window.addEventListener("resize",U)}),ae(()=>{window.removeEventListener("resize",U)});const $=c(()=>a.schema.filter(e=>typeof e.hidden=="function"?!e.hidden(a.model):!e.hidden).sort((e,l)=>{var t,n;return((t=e.order)!=null?t:0)-((n=l.order)!=null?n:0)}));function A(e){var t,n,r;const l=k.value;return(r=(n=(t=e[l])==null?void 0:t.span)!=null?n:e.span)!=null?r:1}function z(e){var t,n,r;const l=k.value;return(r=(n=(t=e[l])==null?void 0:t.offset)!=null?n:e.offset)!=null?r:0}const T=c(()=>{var t,n,r,b,R,g;const e=a.cols;if(typeof e=="number")return e;const l=k.value;return(g=(R=(b=(r=(n=(t=e==null?void 0:e[l])!=null?t:e==null?void 0:e.xl)!=null?n:e==null?void 0:e.lg)!=null?r:e==null?void 0:e.md)!=null?b:e==null?void 0:e.sm)!=null?R:e==null?void 0:e.xs)!=null?g:4}),K=c(()=>{const e=a.collapsible;return typeof e=="number"&&e>0?e:1}),C=c(()=>{if(!a.collapsible)return-1;const e=a.buttonAlign==="inline"&&(a.showQueryBtn||a.showResetBtn||!!S["extra-buttons"]||!!S.buttons),l=T.value*K.value-(e?pe:0);if(l<=0)return 0;let t=0;for(let n=0;n<$.value.length;n++){const r=$.value[n];if(t+=A(r)+z(r),t>l)return n}return-1}),F=c(()=>C.value>=0),X=c(()=>({display:"grid",gridTemplateColumns:`repeat(${T.value}, 1fr)`,gap:"0 16px"}));function Y(e){const l=A(e),t=z(e),n={gridColumn:`span ${l}`};return t>0&&(n.marginLeft=`calc(${t/T.value*100}% + ${t*16}px)`),n}const Z=c(()=>{const e=T.value,l=$.value,t=a.collapsible&&f.value&&C.value>=0?C.value:l.length;let n=0;for(let r=0;r<t;r++){const b=A(l[r]),R=z(l[r]),g=n+b+R;n=g>=e?g%e:g}return n}),_=c(()=>{const e=Z.value;return{gridColumn:`${e===0?1:e+1} / -1`}}),ee={left:"flex-start",center:"center",right:"flex-end"},te=c(()=>{var l;const e={display:"flex",alignItems:"center",justifyContent:(l=ee[a.buttonAlign])!=null?l:"flex-start",gap:"8px",marginTop:"4px",flexWrap:"wrap"};if(a.buttonAlign==="left"&&a.labelPosition!=="top"){const t=a.labelWidth;t&&t!=="auto"&&(e.paddingLeft=typeof t=="number"?`${t}px`:String(t))}return e}),E=c(()=>a.showQueryBtn||a.showResetBtn||!!S["extra-buttons"]||!!S.buttons);function q(e,l){a.model[e]=l}function D(){var e;(e=v.value)==null||e.validate(l=>{l&&N("search",a.model)})}function P(){var e,l;for(const t of a.schema)q(t.field,(e=t.defaultValue)!=null?e:null);(l=v.value)==null||l.clearValidate(),N("reset",a.model)}return G({formRef:v,validate:e=>{var l;return(l=v.value)==null?void 0:l.validate(e)},validateField:(e,l)=>{var t;return(t=v.value)==null?void 0:t.validateField(e,l)},resetFields:P,clearValidate:e=>{var l;return(l=v.value)==null?void 0:l.clearValidate(e)}}),(e,l)=>(i(),m(s(ce),{ref_key:"formRef",ref:v,class:"sy-pro-form",model:o.model,"label-width":o.labelWidth,"label-position":o.labelPosition,disabled:o.disabled,size:o.size,onSubmit:l[2]||(l[2]=re(()=>{},["prevent"]))},{default:d(()=>[M("div",{class:"sy-pro-form__grid",style:V(X.value)},[(i(!0),h(I,null,se($.value,(t,n)=>{var r;return i(),h(I,{key:t.field},[!o.collapsible||!f.value||C.value<0||n<C.value?(i(),h("div",{key:0,class:"sy-pro-form__grid-item",style:V(Y(t))},[u(" slot 类型:渲染具名插槽,用户自行提供完整的 sy-form-item 内容 "),t.component==="slot"?B(e.$slots,t.field,{key:0,item:t}):(i(),h(I,{key:1},[u(" 内置组件类型:走原有渲染路径 "),y(s(me),ie({prop:t.field,label:(r=t.label)!=null?r:""},{ref_for:!0},t.labelWidth!=null?{labelWidth:t.labelWidth}:{},{rules:t.rules}),ue({default:d(()=>[y(ye,{"model-value":o.model[t.field],schema:t,model:o.model,"onUpdate:modelValue":b=>q(t.field,b)},null,8,["model-value","schema","model","onUpdate:modelValue"])]),_:2},[t.tooltip?{name:"label",fn:d(()=>[M("span",null,p(t.label),1),y(s(ve),{content:t.tooltip,placement:"top"},{default:d(()=>[y(s(L),{class:"sy-pro-form__tip-icon",style:{"margin-left":"4px","vertical-align":"middle",cursor:"pointer"}},{default:d(()=>[y(s(de))]),_:1})]),_:1},8,["content"])]),key:"0"}:void 0]),1040,["prop","label","rules"])],2112))],4)):u("v-if",!0)],64)}),128)),u(" 默认插槽:额外自定义字段 "),B(e.$slots,"default"),u(" 按钮区 —— inline 模式:在网格内贴右 "),o.buttonAlign==="inline"&&(E.value||o.collapsible&&F.value)?(i(),h("div",{key:0,class:"sy-pro-form__grid-item sy-pro-form__buttons",style:V(_.value)},[B(e.$slots,"buttons",{},()=>[o.showQueryBtn?(i(),m(s(w),{key:0,type:"primary",loading:o.loading,onClick:D},{default:d(()=>[x(p(o.queryBtnText),1)]),_:1},8,["loading"])):u("v-if",!0),o.showResetBtn?(i(),m(s(w),{key:1,onClick:P},{default:d(()=>[x(p(o.resetBtnText),1)]),_:1})):u("v-if",!0),B(e.$slots,"extra-buttons")]),o.collapsible&&F.value?(i(),m(s(w),{key:0,type:"primary",link:"",onClick:l[0]||(l[0]=t=>f.value=!f.value)},{default:d(()=>[x(p(f.value?"展开":"合并")+" ",1),y(s(L),{style:{"margin-left":"2px"}},{default:d(()=>[(i(),m(O(f.value?s(j):s(J))))]),_:1})]),_:1})):u("v-if",!0)],4)):u("v-if",!0)],4),u(" 按钮区 —— 独立成行模式(left / center / right) "),o.buttonAlign!=="inline"&&(E.value||o.collapsible&&F.value)?(i(),h("div",{key:0,class:"sy-pro-form__footer",style:V(te.value)},[B(e.$slots,"buttons",{},()=>[o.showQueryBtn?(i(),m(s(w),{key:0,type:"primary",loading:o.loading,onClick:D},{default:d(()=>[x(p(o.queryBtnText),1)]),_:1},8,["loading"])):u("v-if",!0),o.showResetBtn?(i(),m(s(w),{key:1,onClick:P},{default:d(()=>[x(p(o.resetBtnText),1)]),_:1})):u("v-if",!0),B(e.$slots,"extra-buttons")]),o.collapsible&&F.value?(i(),m(s(w),{key:0,type:"primary",link:"",onClick:l[1]||(l[1]=t=>f.value=!f.value)},{default:d(()=>[x(p(f.value?"展开":"合并")+" ",1),y(s(L),{style:{"margin-left":"2px"}},{default:d(()=>[(i(),m(O(f.value?s(j):s(J))))]),_:1})]),_:1})):u("v-if",!0)],4)):u("v-if",!0)]),_:3},8,["model","label-width","label-position","disabled","size"]))}});export{Se as default};
|