yahee-components 0.0.75 → 0.0.81
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/es/annex-upload/annex-upload.vue.js +51 -154
- package/es/annex-upload/annex-upload.vue2.js +119 -2
- package/es/annex-upload/index.js +3 -3
- package/es/api/server.js +24 -19
- package/es/api/tool.js +31 -28
- package/es/border-wrap/border-wrap.vue.js +64 -95
- package/es/border-wrap/border-wrap.vue2.js +46 -2
- package/es/common-import/common-import.vue.js +369 -640
- package/es/common-import/common-import.vue2.js +328 -2
- package/es/common-import/index.js +3 -3
- package/es/common-import/props.js +4 -1
- package/es/complex-search/complex-search.vue.js +15 -15
- package/es/copy/copy.vue.js +37 -55
- package/es/copy/copy.vue2.js +34 -2
- package/es/copy/index.js +3 -3
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +114 -213
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +125 -2
- package/es/drop-down-condition/drop-down-condition.vue.js +113 -213
- package/es/drop-down-condition/drop-down-condition.vue2.js +127 -2
- package/es/echart-gauge/echart-gauge.vue.js +12 -140
- package/es/echart-gauge/echart-gauge.vue2.js +147 -2
- package/es/echart-gauge/index.js +3 -3
- package/es/image-upload/image-upload.vue.js +109 -170
- package/es/image-upload/image-upload.vue2.js +91 -2
- package/es/image-upload/index.js +3 -3
- package/es/input/index.js +3 -3
- package/es/input/input.vue.js +17 -38
- package/es/input/input.vue2.js +33 -2
- package/es/left-condition/index.js +3 -3
- package/es/left-condition/left-condition-sub.vue.js +32 -91
- package/es/left-condition/left-condition-sub.vue2.js +76 -2
- package/es/left-condition/left-condition.vue.js +70 -218
- package/es/left-condition/left-condition.vue2.js +160 -2
- package/es/left-condition-enum/index.js +3 -3
- package/es/left-condition-enum/left-condition-enum.vue.js +20 -49
- package/es/left-condition-enum/left-condition-enum.vue2.js +40 -2
- package/es/operation-log/operation-log-content.vue.js +71 -92
- package/es/operation-log/operation-log-content.vue2.js +39 -2
- package/es/operation-log/operation-log-dialog.vue.js +46 -68
- package/es/operation-log/operation-log-dialog.vue2.js +38 -2
- package/es/operation-log/operation-log-form.vue.js +108 -183
- package/es/operation-log/operation-log-form.vue2.js +104 -2
- package/es/operation-log/operation-log.vue.js +119 -228
- package/es/operation-log/operation-log.vue2.js +135 -2
- package/es/packages/components/api/log-server.js +6 -6
- package/es/packages/components/api/server.js +18 -20
- package/es/packages/components/api/tool.js +35 -32
- package/es/packages/components/api/upload-server.js +1 -1
- package/es/packages/components/hooks/useEcharts.js +19 -19
- package/es/packages/components/hooks/useImg.js +8 -8
- package/es/scale-screen/index.js +4 -4
- package/es/scale-screen/scale-screen.vue.js +19 -126
- package/es/scale-screen/scale-screen.vue2.js +125 -2
- package/es/utils/translate.js +21 -21
- package/package.json +46 -46
- package/readme.md +249 -249
- package/types/src/common-import/common-import.vue.d.ts +10 -0
- package/types/src/common-import/index.d.ts +25 -0
- package/types/src/common-import/props.d.ts +19 -0
- package/types/src/installs.d.ts +25 -0
- package/types/src/left-condition-enum/left-condition-enum.d.ts +3 -0
- package/es/packages/components/api/common/index.js +0 -7
package/readme.md
CHANGED
|
@@ -1,249 +1,249 @@
|
|
|
1
|
-
# yahee-components Library
|
|
2
|
-
|
|
3
|
-
深圳前海亚讯公司,使用 Vue 3 和 Vite 构建的前端组件库。它结合 TypeScript 提供类型支持,并集成了 prettier+husky+lint-staged 以确保代码质量。
|
|
4
|
-
|
|
5
|
-
## 目录
|
|
6
|
-
|
|
7
|
-
- [特性](#特性)
|
|
8
|
-
- [安装](#安装)
|
|
9
|
-
- [快速开始](#快速开始)
|
|
10
|
-
- [组件](#组件)
|
|
11
|
-
- [开发指南](#开发指南)
|
|
12
|
-
- [代码规范](#代码规范)
|
|
13
|
-
- [文档](#文档)
|
|
14
|
-
- [常见问题](#常见问题)
|
|
15
|
-
- [贡献](#贡献)
|
|
16
|
-
- [许可证](#许可证)
|
|
17
|
-
|
|
18
|
-
## 特性
|
|
19
|
-
|
|
20
|
-
- **现代化技术栈**:基于 Vue 3 和 Vite,支持快速开发。
|
|
21
|
-
- **TypeScript 支持**:提供类型安全。
|
|
22
|
-
- **代码质量保障**:使用 ESLint、Prettier 和 lint-staged。
|
|
23
|
-
- **易于集成**:与现有项目无缝结合。
|
|
24
|
-
|
|
25
|
-
## 安装
|
|
26
|
-
|
|
27
|
-
使用 npm 安装:
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
npm install yahee-components
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
或使用 Yarn:
|
|
34
|
-
|
|
35
|
-
```bash
|
|
36
|
-
yarn add yahee-components
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
## 快速开始
|
|
40
|
-
|
|
41
|
-
在你的 Vue 项目中引入并使用组件:
|
|
42
|
-
|
|
43
|
-
```javascript
|
|
44
|
-
import { YaheeComplexSearch } from 'yahee-components';
|
|
45
|
-
import 'yahee-components/es/style.css';
|
|
46
|
-
<template>
|
|
47
|
-
<YaheeComplexSearch
|
|
48
|
-
:show-within-filter-checkbox="true"
|
|
49
|
-
:show-patch-search="true"
|
|
50
|
-
:placeholder-text="`${M2('PD单号')}/${M2('SKU')}/${M2('SKU别名')}`"
|
|
51
|
-
:show-select="false"
|
|
52
|
-
:search-item="searchItem"
|
|
53
|
-
@filter-change-grandson="filterChangeGrandson"
|
|
54
|
-
/>
|
|
55
|
-
</template>
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
## 组件
|
|
59
|
-
|
|
60
|
-
### YaheeAnnexUpload
|
|
61
|
-
|
|
62
|
-
文件上传组件,支持文件类型、文件数量、文件大小、文件单位等参数自定义
|
|
63
|
-
|
|
64
|
-
```html
|
|
65
|
-
<template>
|
|
66
|
-
<yahee-annex-upload
|
|
67
|
-
v-model="fileValue"
|
|
68
|
-
:accept=".gif,.jpg,.png,.doc,.docx,.pdf,.xls,.xlsx"
|
|
69
|
-
:limit="1"
|
|
70
|
-
:fileSize="20"
|
|
71
|
-
:fileSizeUnit="mb"
|
|
72
|
-
/>
|
|
73
|
-
</template>
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
### YaheeComplexSearch
|
|
77
|
-
|
|
78
|
-
复杂搜索组件,支持是否展示多选下拉框、是否展示批量搜索、是否在筛选条件内搜索等参数自定义,并emit筛选条件给父组件监听以完成筛选
|
|
79
|
-
|
|
80
|
-
```html
|
|
81
|
-
<template>
|
|
82
|
-
<yahee-complex-search
|
|
83
|
-
:show-within-filter-checkbox="true"
|
|
84
|
-
:show-patch-search="true"
|
|
85
|
-
:show-select="false"
|
|
86
|
-
:search-item="searchItem"
|
|
87
|
-
@filter-change-grandson="filterChange"
|
|
88
|
-
/>
|
|
89
|
-
</template>
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
### YaheeCountryPlatformShopCondition
|
|
93
|
-
|
|
94
|
-
销量等级二维筛选组件。
|
|
95
|
-
|
|
96
|
-
```html
|
|
97
|
-
<template>
|
|
98
|
-
<yahee-country-platform-shop-condition
|
|
99
|
-
:xy-filters="filterList"
|
|
100
|
-
filter-key="saleLevels"
|
|
101
|
-
@filter-change="filterChange"
|
|
102
|
-
/>
|
|
103
|
-
</template>
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
### YaheeImageUpload
|
|
107
|
-
|
|
108
|
-
图片上传组件,支持图片大小、图片单位等参数自定义
|
|
109
|
-
|
|
110
|
-
```html
|
|
111
|
-
<template>
|
|
112
|
-
<yahee-image-upload v-model="imageValue" />
|
|
113
|
-
</template>
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
### YaheeCopy
|
|
117
|
-
|
|
118
|
-
复制组件
|
|
119
|
-
|
|
120
|
-
```html
|
|
121
|
-
<template>
|
|
122
|
-
<yahee-copy content="121212">复制</yahee-copy>
|
|
123
|
-
</template>
|
|
124
|
-
```
|
|
125
|
-
|
|
126
|
-
### YaheeDropdownCondition
|
|
127
|
-
|
|
128
|
-
下拉筛选项组件,支持传入父组件函数,用以接受选择的筛选项参数
|
|
129
|
-
|
|
130
|
-
```html
|
|
131
|
-
<template>
|
|
132
|
-
<yahee-drop-down-condition
|
|
133
|
-
filter-key="series"
|
|
134
|
-
enum-entity="category-series"
|
|
135
|
-
@filter-change="filterChange"
|
|
136
|
-
/>
|
|
137
|
-
</template>
|
|
138
|
-
```
|
|
139
|
-
|
|
140
|
-
### YaheeLeftCondition
|
|
141
|
-
|
|
142
|
-
普通单选筛选项组件,支持传入父组件函数,用以接受选择的筛选项参数
|
|
143
|
-
|
|
144
|
-
```html
|
|
145
|
-
<template>
|
|
146
|
-
<YaheeLeftCondition
|
|
147
|
-
ref="bigGroupRef"
|
|
148
|
-
:select-list="categoryManagers"
|
|
149
|
-
:all-is-empty="true"
|
|
150
|
-
filter-key="categoryManager"
|
|
151
|
-
@filter-change="filterChange"
|
|
152
|
-
/>
|
|
153
|
-
</template>
|
|
154
|
-
```
|
|
155
|
-
|
|
156
|
-
### YaheeLeftConditionEnum
|
|
157
|
-
|
|
158
|
-
普通单选筛选项组件,与上面组件不同的是,选项内容通过接口进行查询,同时也支持传入父组件函数,用以接受选择的筛选项参数
|
|
159
|
-
|
|
160
|
-
```html
|
|
161
|
-
<template>
|
|
162
|
-
<YaheeLeftConditionEnum
|
|
163
|
-
enum-entity="country"
|
|
164
|
-
filter-key="country"
|
|
165
|
-
:all-is-empty="true"
|
|
166
|
-
:init-filters="initFilters"
|
|
167
|
-
@filter-change="filterChange"
|
|
168
|
-
/>
|
|
169
|
-
</template>
|
|
170
|
-
```
|
|
171
|
-
### YaheeOperationLog
|
|
172
|
-
|
|
173
|
-
操作日志组件,支持下拉加载,通过业务参数获取不同操作日志
|
|
174
|
-
|
|
175
|
-
```html
|
|
176
|
-
<template>
|
|
177
|
-
<YaheeLeftConditionEnum
|
|
178
|
-
enum-entity="country"
|
|
179
|
-
filter-key="country"
|
|
180
|
-
:all-is-empty="true"
|
|
181
|
-
:init-filters="initFilters"
|
|
182
|
-
@filter-change="filterChange"
|
|
183
|
-
/>
|
|
184
|
-
</template>
|
|
185
|
-
```
|
|
186
|
-
|
|
187
|
-
## 开发指南
|
|
188
|
-
|
|
189
|
-
### 本地开发
|
|
190
|
-
|
|
191
|
-
克隆仓库并安装依赖:
|
|
192
|
-
|
|
193
|
-
```bash
|
|
194
|
-
git clone
|
|
195
|
-
cd your-local-download-directory
|
|
196
|
-
pnpm install
|
|
197
|
-
```
|
|
198
|
-
|
|
199
|
-
启动开发服务器:
|
|
200
|
-
|
|
201
|
-
```bash
|
|
202
|
-
yarn dev
|
|
203
|
-
```
|
|
204
|
-
|
|
205
|
-
### 构建
|
|
206
|
-
|
|
207
|
-
构建生产版本:
|
|
208
|
-
|
|
209
|
-
```bash
|
|
210
|
-
cd packages/components
|
|
211
|
-
npm run build
|
|
212
|
-
```
|
|
213
|
-
|
|
214
|
-
### 发布
|
|
215
|
-
|
|
216
|
-
登录npm后
|
|
217
|
-
|
|
218
|
-
```bash
|
|
219
|
-
npm publish --access public
|
|
220
|
-
```
|
|
221
|
-
|
|
222
|
-
## 代码规范
|
|
223
|
-
|
|
224
|
-
- 使用 ESLint 和 Prettier 格式化代码。
|
|
225
|
-
- 提交前使用 lint-staged 进行检查。
|
|
226
|
-
|
|
227
|
-
## 文档
|
|
228
|
-
|
|
229
|
-
详细的 API 文档请参阅项目内docs文件夹下的文档。
|
|
230
|
-
|
|
231
|
-
## 常见问题
|
|
232
|
-
|
|
233
|
-
### 如何报告问题?
|
|
234
|
-
|
|
235
|
-
请联系维护人menglingnan/zhangyujiao/smithshi提交问题。
|
|
236
|
-
|
|
237
|
-
## 贡献
|
|
238
|
-
|
|
239
|
-
欢迎贡献!请确保遵循以下步骤:
|
|
240
|
-
|
|
241
|
-
1. Fork 仓库
|
|
242
|
-
2. 创建你的特性分支 (`git checkout -b feature/AmazingFeature`)
|
|
243
|
-
3. 提交更改 (`git commit -m 'Add some AmazingFeature'`)
|
|
244
|
-
4. 推送到分支 (`git push origin feature/AmazingFeature`)
|
|
245
|
-
5. 打开一个 Pull Request
|
|
246
|
-
|
|
247
|
-
## 许可证
|
|
248
|
-
|
|
249
|
-
该项目采用 MIT 许可证。
|
|
1
|
+
# yahee-components Library
|
|
2
|
+
|
|
3
|
+
深圳前海亚讯公司,使用 Vue 3 和 Vite 构建的前端组件库。它结合 TypeScript 提供类型支持,并集成了 prettier+husky+lint-staged 以确保代码质量。
|
|
4
|
+
|
|
5
|
+
## 目录
|
|
6
|
+
|
|
7
|
+
- [特性](#特性)
|
|
8
|
+
- [安装](#安装)
|
|
9
|
+
- [快速开始](#快速开始)
|
|
10
|
+
- [组件](#组件)
|
|
11
|
+
- [开发指南](#开发指南)
|
|
12
|
+
- [代码规范](#代码规范)
|
|
13
|
+
- [文档](#文档)
|
|
14
|
+
- [常见问题](#常见问题)
|
|
15
|
+
- [贡献](#贡献)
|
|
16
|
+
- [许可证](#许可证)
|
|
17
|
+
|
|
18
|
+
## 特性
|
|
19
|
+
|
|
20
|
+
- **现代化技术栈**:基于 Vue 3 和 Vite,支持快速开发。
|
|
21
|
+
- **TypeScript 支持**:提供类型安全。
|
|
22
|
+
- **代码质量保障**:使用 ESLint、Prettier 和 lint-staged。
|
|
23
|
+
- **易于集成**:与现有项目无缝结合。
|
|
24
|
+
|
|
25
|
+
## 安装
|
|
26
|
+
|
|
27
|
+
使用 npm 安装:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
npm install yahee-components
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
或使用 Yarn:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
yarn add yahee-components
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## 快速开始
|
|
40
|
+
|
|
41
|
+
在你的 Vue 项目中引入并使用组件:
|
|
42
|
+
|
|
43
|
+
```javascript
|
|
44
|
+
import { YaheeComplexSearch } from 'yahee-components';
|
|
45
|
+
import 'yahee-components/es/style.css';
|
|
46
|
+
<template>
|
|
47
|
+
<YaheeComplexSearch
|
|
48
|
+
:show-within-filter-checkbox="true"
|
|
49
|
+
:show-patch-search="true"
|
|
50
|
+
:placeholder-text="`${M2('PD单号')}/${M2('SKU')}/${M2('SKU别名')}`"
|
|
51
|
+
:show-select="false"
|
|
52
|
+
:search-item="searchItem"
|
|
53
|
+
@filter-change-grandson="filterChangeGrandson"
|
|
54
|
+
/>
|
|
55
|
+
</template>
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## 组件
|
|
59
|
+
|
|
60
|
+
### YaheeAnnexUpload
|
|
61
|
+
|
|
62
|
+
文件上传组件,支持文件类型、文件数量、文件大小、文件单位等参数自定义
|
|
63
|
+
|
|
64
|
+
```html
|
|
65
|
+
<template>
|
|
66
|
+
<yahee-annex-upload
|
|
67
|
+
v-model="fileValue"
|
|
68
|
+
:accept=".gif,.jpg,.png,.doc,.docx,.pdf,.xls,.xlsx"
|
|
69
|
+
:limit="1"
|
|
70
|
+
:fileSize="20"
|
|
71
|
+
:fileSizeUnit="mb"
|
|
72
|
+
/>
|
|
73
|
+
</template>
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### YaheeComplexSearch
|
|
77
|
+
|
|
78
|
+
复杂搜索组件,支持是否展示多选下拉框、是否展示批量搜索、是否在筛选条件内搜索等参数自定义,并emit筛选条件给父组件监听以完成筛选
|
|
79
|
+
|
|
80
|
+
```html
|
|
81
|
+
<template>
|
|
82
|
+
<yahee-complex-search
|
|
83
|
+
:show-within-filter-checkbox="true"
|
|
84
|
+
:show-patch-search="true"
|
|
85
|
+
:show-select="false"
|
|
86
|
+
:search-item="searchItem"
|
|
87
|
+
@filter-change-grandson="filterChange"
|
|
88
|
+
/>
|
|
89
|
+
</template>
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### YaheeCountryPlatformShopCondition
|
|
93
|
+
|
|
94
|
+
销量等级二维筛选组件。
|
|
95
|
+
|
|
96
|
+
```html
|
|
97
|
+
<template>
|
|
98
|
+
<yahee-country-platform-shop-condition
|
|
99
|
+
:xy-filters="filterList"
|
|
100
|
+
filter-key="saleLevels"
|
|
101
|
+
@filter-change="filterChange"
|
|
102
|
+
/>
|
|
103
|
+
</template>
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### YaheeImageUpload
|
|
107
|
+
|
|
108
|
+
图片上传组件,支持图片大小、图片单位等参数自定义
|
|
109
|
+
|
|
110
|
+
```html
|
|
111
|
+
<template>
|
|
112
|
+
<yahee-image-upload v-model="imageValue" />
|
|
113
|
+
</template>
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
### YaheeCopy
|
|
117
|
+
|
|
118
|
+
复制组件
|
|
119
|
+
|
|
120
|
+
```html
|
|
121
|
+
<template>
|
|
122
|
+
<yahee-copy content="121212">复制</yahee-copy>
|
|
123
|
+
</template>
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
### YaheeDropdownCondition
|
|
127
|
+
|
|
128
|
+
下拉筛选项组件,支持传入父组件函数,用以接受选择的筛选项参数
|
|
129
|
+
|
|
130
|
+
```html
|
|
131
|
+
<template>
|
|
132
|
+
<yahee-drop-down-condition
|
|
133
|
+
filter-key="series"
|
|
134
|
+
enum-entity="category-series"
|
|
135
|
+
@filter-change="filterChange"
|
|
136
|
+
/>
|
|
137
|
+
</template>
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### YaheeLeftCondition
|
|
141
|
+
|
|
142
|
+
普通单选筛选项组件,支持传入父组件函数,用以接受选择的筛选项参数
|
|
143
|
+
|
|
144
|
+
```html
|
|
145
|
+
<template>
|
|
146
|
+
<YaheeLeftCondition
|
|
147
|
+
ref="bigGroupRef"
|
|
148
|
+
:select-list="categoryManagers"
|
|
149
|
+
:all-is-empty="true"
|
|
150
|
+
filter-key="categoryManager"
|
|
151
|
+
@filter-change="filterChange"
|
|
152
|
+
/>
|
|
153
|
+
</template>
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
### YaheeLeftConditionEnum
|
|
157
|
+
|
|
158
|
+
普通单选筛选项组件,与上面组件不同的是,选项内容通过接口进行查询,同时也支持传入父组件函数,用以接受选择的筛选项参数
|
|
159
|
+
|
|
160
|
+
```html
|
|
161
|
+
<template>
|
|
162
|
+
<YaheeLeftConditionEnum
|
|
163
|
+
enum-entity="country"
|
|
164
|
+
filter-key="country"
|
|
165
|
+
:all-is-empty="true"
|
|
166
|
+
:init-filters="initFilters"
|
|
167
|
+
@filter-change="filterChange"
|
|
168
|
+
/>
|
|
169
|
+
</template>
|
|
170
|
+
```
|
|
171
|
+
### YaheeOperationLog
|
|
172
|
+
|
|
173
|
+
操作日志组件,支持下拉加载,通过业务参数获取不同操作日志
|
|
174
|
+
|
|
175
|
+
```html
|
|
176
|
+
<template>
|
|
177
|
+
<YaheeLeftConditionEnum
|
|
178
|
+
enum-entity="country"
|
|
179
|
+
filter-key="country"
|
|
180
|
+
:all-is-empty="true"
|
|
181
|
+
:init-filters="initFilters"
|
|
182
|
+
@filter-change="filterChange"
|
|
183
|
+
/>
|
|
184
|
+
</template>
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
## 开发指南
|
|
188
|
+
|
|
189
|
+
### 本地开发
|
|
190
|
+
|
|
191
|
+
克隆仓库并安装依赖:
|
|
192
|
+
|
|
193
|
+
```bash
|
|
194
|
+
git clone
|
|
195
|
+
cd your-local-download-directory
|
|
196
|
+
pnpm install
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
启动开发服务器:
|
|
200
|
+
|
|
201
|
+
```bash
|
|
202
|
+
yarn dev
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
### 构建
|
|
206
|
+
|
|
207
|
+
构建生产版本:
|
|
208
|
+
|
|
209
|
+
```bash
|
|
210
|
+
cd packages/components
|
|
211
|
+
npm run build
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
### 发布
|
|
215
|
+
|
|
216
|
+
登录npm后
|
|
217
|
+
|
|
218
|
+
```bash
|
|
219
|
+
npm publish --access public
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
## 代码规范
|
|
223
|
+
|
|
224
|
+
- 使用 ESLint 和 Prettier 格式化代码。
|
|
225
|
+
- 提交前使用 lint-staged 进行检查。
|
|
226
|
+
|
|
227
|
+
## 文档
|
|
228
|
+
|
|
229
|
+
详细的 API 文档请参阅项目内docs文件夹下的文档。
|
|
230
|
+
|
|
231
|
+
## 常见问题
|
|
232
|
+
|
|
233
|
+
### 如何报告问题?
|
|
234
|
+
|
|
235
|
+
请联系维护人menglingnan/zhangyujiao/smithshi提交问题。
|
|
236
|
+
|
|
237
|
+
## 贡献
|
|
238
|
+
|
|
239
|
+
欢迎贡献!请确保遵循以下步骤:
|
|
240
|
+
|
|
241
|
+
1. Fork 仓库
|
|
242
|
+
2. 创建你的特性分支 (`git checkout -b feature/AmazingFeature`)
|
|
243
|
+
3. 提交更改 (`git commit -m 'Add some AmazingFeature'`)
|
|
244
|
+
4. 推送到分支 (`git push origin feature/AmazingFeature`)
|
|
245
|
+
5. 打开一个 Pull Request
|
|
246
|
+
|
|
247
|
+
## 许可证
|
|
248
|
+
|
|
249
|
+
该项目采用 MIT 许可证。
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { CommonImportProps } from './props';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
import { PageObj } from './common-import';
|
|
4
|
+
import { IAnyObj } from '../left-condition-enum/left-condition-enum';
|
|
4
5
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<CommonImportProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
5
6
|
submit: (...args: any[]) => void;
|
|
6
7
|
setIsShowDialog: (...args: any[]) => void;
|
|
8
|
+
setResponseData: (...args: any[]) => void;
|
|
7
9
|
reloadTableData: (...args: any[]) => void;
|
|
8
10
|
}, string, PublicProps, Readonly<CommonImportProps> & Readonly<{
|
|
9
11
|
onSubmit?: (...args: any[]) => any;
|
|
10
12
|
onSetIsShowDialog?: (...args: any[]) => any;
|
|
13
|
+
onSetResponseData?: (...args: any[]) => any;
|
|
11
14
|
onReloadTableData?: (...args: any[]) => any;
|
|
12
15
|
}>, {
|
|
13
16
|
title: string;
|
|
@@ -19,6 +22,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<CommonImportPro
|
|
|
19
22
|
data: object;
|
|
20
23
|
}>;
|
|
21
24
|
isShowDialog: boolean;
|
|
25
|
+
isShowResponseDataMessage: boolean;
|
|
22
26
|
importId: string;
|
|
23
27
|
ProcessRequestData: any;
|
|
24
28
|
AutoCompleteResult: boolean;
|
|
@@ -30,8 +34,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<CommonImportPro
|
|
|
30
34
|
data: object;
|
|
31
35
|
}>;
|
|
32
36
|
uploadDisabled: boolean;
|
|
37
|
+
filePath: string;
|
|
38
|
+
processFiles: (url: string, data: IAnyObj, conf: IAnyObj) => Promise<{
|
|
39
|
+
msg: string;
|
|
40
|
+
data: object;
|
|
41
|
+
}>;
|
|
33
42
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
34
43
|
form?(_: {}): any;
|
|
44
|
+
resultMessage?(_: {}): any;
|
|
35
45
|
}>;
|
|
36
46
|
export default _default;
|
|
37
47
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -2,14 +2,17 @@ import { SFCWithInstall } from '../utils/typescript';
|
|
|
2
2
|
import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
|
|
3
3
|
import { CommonImportProps } from './props';
|
|
4
4
|
import { PageObj } from './common-import';
|
|
5
|
+
import { IAnyObj } from '../left-condition-enum/left-condition-enum';
|
|
5
6
|
export declare const YaheeCommonImport: SFCWithInstall<{
|
|
6
7
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< CommonImportProps> & Readonly<{
|
|
7
8
|
onSubmit?: (...args: any[]) => any;
|
|
8
9
|
onSetIsShowDialog?: (...args: any[]) => any;
|
|
10
|
+
onSetResponseData?: (...args: any[]) => any;
|
|
9
11
|
onReloadTableData?: (...args: any[]) => any;
|
|
10
12
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
11
13
|
submit: (...args: any[]) => void;
|
|
12
14
|
setIsShowDialog: (...args: any[]) => void;
|
|
15
|
+
setResponseData: (...args: any[]) => void;
|
|
13
16
|
reloadTableData: (...args: any[]) => void;
|
|
14
17
|
}, PublicProps, {
|
|
15
18
|
title: string;
|
|
@@ -21,6 +24,7 @@ export declare const YaheeCommonImport: SFCWithInstall<{
|
|
|
21
24
|
data: object;
|
|
22
25
|
}>;
|
|
23
26
|
isShowDialog: boolean;
|
|
27
|
+
isShowResponseDataMessage: boolean;
|
|
24
28
|
importId: string;
|
|
25
29
|
ProcessRequestData: any;
|
|
26
30
|
AutoCompleteResult: boolean;
|
|
@@ -32,6 +36,11 @@ export declare const YaheeCommonImport: SFCWithInstall<{
|
|
|
32
36
|
data: object;
|
|
33
37
|
}>;
|
|
34
38
|
uploadDisabled: boolean;
|
|
39
|
+
filePath: string;
|
|
40
|
+
processFiles: (url: string, data: IAnyObj, conf: IAnyObj) => Promise<{
|
|
41
|
+
msg: string;
|
|
42
|
+
data: object;
|
|
43
|
+
}>;
|
|
35
44
|
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
36
45
|
P: {};
|
|
37
46
|
B: {};
|
|
@@ -42,6 +51,7 @@ export declare const YaheeCommonImport: SFCWithInstall<{
|
|
|
42
51
|
}, Readonly< CommonImportProps> & Readonly<{
|
|
43
52
|
onSubmit?: (...args: any[]) => any;
|
|
44
53
|
onSetIsShowDialog?: (...args: any[]) => any;
|
|
54
|
+
onSetResponseData?: (...args: any[]) => any;
|
|
45
55
|
onReloadTableData?: (...args: any[]) => any;
|
|
46
56
|
}>, {}, {}, {}, {}, {
|
|
47
57
|
title: string;
|
|
@@ -53,6 +63,7 @@ export declare const YaheeCommonImport: SFCWithInstall<{
|
|
|
53
63
|
data: object;
|
|
54
64
|
}>;
|
|
55
65
|
isShowDialog: boolean;
|
|
66
|
+
isShowResponseDataMessage: boolean;
|
|
56
67
|
importId: string;
|
|
57
68
|
ProcessRequestData: any;
|
|
58
69
|
AutoCompleteResult: boolean;
|
|
@@ -64,6 +75,11 @@ export declare const YaheeCommonImport: SFCWithInstall<{
|
|
|
64
75
|
data: object;
|
|
65
76
|
}>;
|
|
66
77
|
uploadDisabled: boolean;
|
|
78
|
+
filePath: string;
|
|
79
|
+
processFiles: (url: string, data: IAnyObj, conf: IAnyObj) => Promise<{
|
|
80
|
+
msg: string;
|
|
81
|
+
data: object;
|
|
82
|
+
}>;
|
|
67
83
|
}>;
|
|
68
84
|
__isFragment?: never;
|
|
69
85
|
__isTeleport?: never;
|
|
@@ -71,10 +87,12 @@ export declare const YaheeCommonImport: SFCWithInstall<{
|
|
|
71
87
|
} & ComponentOptionsBase<Readonly< CommonImportProps> & Readonly<{
|
|
72
88
|
onSubmit?: (...args: any[]) => any;
|
|
73
89
|
onSetIsShowDialog?: (...args: any[]) => any;
|
|
90
|
+
onSetResponseData?: (...args: any[]) => any;
|
|
74
91
|
onReloadTableData?: (...args: any[]) => any;
|
|
75
92
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
76
93
|
submit: (...args: any[]) => void;
|
|
77
94
|
setIsShowDialog: (...args: any[]) => void;
|
|
95
|
+
setResponseData: (...args: any[]) => void;
|
|
78
96
|
reloadTableData: (...args: any[]) => void;
|
|
79
97
|
}, string, {
|
|
80
98
|
title: string;
|
|
@@ -86,6 +104,7 @@ export declare const YaheeCommonImport: SFCWithInstall<{
|
|
|
86
104
|
data: object;
|
|
87
105
|
}>;
|
|
88
106
|
isShowDialog: boolean;
|
|
107
|
+
isShowResponseDataMessage: boolean;
|
|
89
108
|
importId: string;
|
|
90
109
|
ProcessRequestData: any;
|
|
91
110
|
AutoCompleteResult: boolean;
|
|
@@ -97,9 +116,15 @@ export declare const YaheeCommonImport: SFCWithInstall<{
|
|
|
97
116
|
data: object;
|
|
98
117
|
}>;
|
|
99
118
|
uploadDisabled: boolean;
|
|
119
|
+
filePath: string;
|
|
120
|
+
processFiles: (url: string, data: IAnyObj, conf: IAnyObj) => Promise<{
|
|
121
|
+
msg: string;
|
|
122
|
+
data: object;
|
|
123
|
+
}>;
|
|
100
124
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
101
125
|
$slots: {
|
|
102
126
|
form?(_: {}): any;
|
|
127
|
+
resultMessage?(_: {}): any;
|
|
103
128
|
};
|
|
104
129
|
})> & Record<string, any>;
|
|
105
130
|
export default YaheeCommonImport;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PageObj } from './common-import';
|
|
2
|
+
import { IAnyObj } from '../left-condition-enum/left-condition-enum';
|
|
2
3
|
/**
|
|
3
4
|
* 导入对话框组件的属性配置
|
|
4
5
|
*/
|
|
@@ -8,6 +9,11 @@ export interface CommonImportProps {
|
|
|
8
9
|
* @default false
|
|
9
10
|
*/
|
|
10
11
|
isShowDialog?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* 是否显示响应的消息
|
|
14
|
+
* @default false
|
|
15
|
+
*/
|
|
16
|
+
isShowResponseDataMessage?: boolean;
|
|
11
17
|
/**
|
|
12
18
|
* 对话框标题
|
|
13
19
|
* @default '导入'
|
|
@@ -62,6 +68,19 @@ export interface CommonImportProps {
|
|
|
62
68
|
* @default false
|
|
63
69
|
*/
|
|
64
70
|
uploadDisabled?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* 文件路径
|
|
73
|
+
* @default ‘‘
|
|
74
|
+
*/
|
|
75
|
+
filePath?: string;
|
|
76
|
+
/**
|
|
77
|
+
* 是否禁用上传功能
|
|
78
|
+
* @default false
|
|
79
|
+
*/
|
|
80
|
+
processFiles?: (url: string, data: IAnyObj, conf: IAnyObj) => Promise<{
|
|
81
|
+
msg: string;
|
|
82
|
+
data: object;
|
|
83
|
+
}>;
|
|
65
84
|
}
|
|
66
85
|
/**
|
|
67
86
|
* 提供导入对话框组件的默认属性值
|