@jnrs/vue-core 1.2.9 → 1.2.10
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 +9 -21
- package/dist/components/JnDatetime.vue.d.ts +1 -1
- package/dist/components/JnDialog.vue.d.ts +1 -1
- package/dist/components/JnFileUpload.vue.d.ts +294 -321
- package/dist/components/JnImportAndExport.vue.d.ts +387 -0
- package/dist/components/JnSelectTemplate.vue.d.ts +297 -213
- package/dist/components/JnTable.vue.d.ts +3086 -0
- package/dist/components/index.js +7 -7
- package/dist/composables/index.js +6 -6
- package/dist/{index-oXJvQR5x.js → index-BFtkMENx.js} +2 -2
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -3
- package/dist/piniaStore/index.js +1 -1
- package/package.json +3 -7
- package/dist/index-Wfhohf_A.js +0 -3386
- package/dist/request/axios.d.ts +0 -8
- package/dist/request/fetch.d.ts +0 -0
- package/dist/request/index.d.ts +0 -1
- package/dist/request/index.js +0 -4
package/README.md
CHANGED
|
@@ -78,18 +78,6 @@ import { useAuthStore } from '@jnrs/vue-core/pinia'
|
|
|
78
78
|
| count | 数据总数 | `number` |
|
|
79
79
|
|
|
80
80
|
|
|
81
|
-
#### @jnrs/vue-core/request 模块
|
|
82
|
-
函数
|
|
83
|
-
``` typescript
|
|
84
|
-
/**
|
|
85
|
-
* axios 请求方法(泛型拓展)
|
|
86
|
-
* @param options 请求配置项
|
|
87
|
-
* @returns Promise<T> 响应数据
|
|
88
|
-
*/
|
|
89
|
-
axiosRequest: <T = BusinessResponse<unknown>>(options: BusinessRequest) => Promise<T>
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
|
|
93
81
|
#### @jnrs/vue-core/pinia 模块
|
|
94
82
|
函数
|
|
95
83
|
``` typescript
|
|
@@ -141,7 +129,7 @@ axiosRequest: <T = BusinessResponse<unknown>>(options: BusinessRequest) => Promi
|
|
|
141
129
|
|
|
142
130
|
#### @jnrs/vue-core/components 模块
|
|
143
131
|
Vue 组件
|
|
144
|
-
- JnTable
|
|
132
|
+
- JnTable 表格组件
|
|
145
133
|
|
|
146
134
|
| 属性名 | 描述 | 类型 | 默认值 |
|
|
147
135
|
|--------|------|------|--------|
|
|
@@ -156,7 +144,7 @@ Vue 组件
|
|
|
156
144
|
| showMouseSelection | 是否开启鼠标框选 | `boolean` | `false` |
|
|
157
145
|
| pagination | 当前页码和每页大小(用于序号计算) | `Pagination` | `{ pageNo: 0, pageSize: 0 }` |
|
|
158
146
|
|
|
159
|
-
- JnSelectTemplate
|
|
147
|
+
- JnSelectTemplate 选择组件通用模板
|
|
160
148
|
|
|
161
149
|
| 属性名 | 描述 | 类型 | 默认值 |
|
|
162
150
|
|--------|------|------|--------|
|
|
@@ -186,7 +174,7 @@ Vue 组件
|
|
|
186
174
|
| initialParams | 初始查询参数 | `Record<string, unknown>` | — |
|
|
187
175
|
| remoteFilterKey | 下拉框查询参数远程过滤参数的 key 值 | `string` | `'name'` |
|
|
188
176
|
|
|
189
|
-
- JnPdfView
|
|
177
|
+
- JnPdfView PDF 文件预览组件
|
|
190
178
|
|
|
191
179
|
| 属性名 | 描述 | 类型 | 默认值 |
|
|
192
180
|
|--------|------|------|--------|
|
|
@@ -196,7 +184,7 @@ Vue 组件
|
|
|
196
184
|
| windowWidth | 预览窗口宽度 | `number` | `800` |
|
|
197
185
|
| windowHeight | 预览窗口高度 | `number` | `600` |
|
|
198
186
|
|
|
199
|
-
- JnPagination
|
|
187
|
+
- JnPagination 分页组件
|
|
200
188
|
|
|
201
189
|
| 属性名 | 描述 | 类型 | 默认值 |
|
|
202
190
|
|--------|------|------|--------|
|
|
@@ -206,7 +194,7 @@ Vue 组件
|
|
|
206
194
|
| background | 是否带背景色 | `boolean` | `true` |
|
|
207
195
|
| marginTop | 上边距 | `string` | `'10px'` |
|
|
208
196
|
|
|
209
|
-
- JnImportAndExport
|
|
197
|
+
- JnImportAndExport 导入 & 导出,此组件依赖 JnFileUpload 文件上传组件
|
|
210
198
|
|
|
211
199
|
| 属性名 | 描述 | 类型 | 默认值 |
|
|
212
200
|
|--------|------|------|--------|
|
|
@@ -230,7 +218,7 @@ Vue 组件
|
|
|
230
218
|
| text | 是否为文字按钮 | `boolean` | `false` |
|
|
231
219
|
| icon | 是否显示图标 | `boolean` | `true` |
|
|
232
220
|
|
|
233
|
-
- JnImageView
|
|
221
|
+
- JnImageView 图片预览组件
|
|
234
222
|
|
|
235
223
|
| 属性名 | 描述 | 类型 | 默认值 |
|
|
236
224
|
|--------|------|------|--------|
|
|
@@ -240,7 +228,7 @@ Vue 组件
|
|
|
240
228
|
| height | 图片高度 | `string` | — |
|
|
241
229
|
| maxHeight | 图片最大高度 | `string` | `'200px'` |
|
|
242
230
|
|
|
243
|
-
- JnFileUpload
|
|
231
|
+
- JnFileUpload 通用上传 & 回显组件
|
|
244
232
|
|
|
245
233
|
| 属性名 | 描述 | 类型 | 默认值 |
|
|
246
234
|
|--------|------|------|--------|
|
|
@@ -258,14 +246,14 @@ Vue 组件
|
|
|
258
246
|
| downloadFileFn | 文件下载的函数 | `(data: Attachment) => void` | — |
|
|
259
247
|
| autoUploadApi | 自动上传文件的 api 函数 | `(data: File) => void` | — |
|
|
260
248
|
|
|
261
|
-
- JnDialog
|
|
249
|
+
- JnDialog 表格编辑组件
|
|
262
250
|
|
|
263
251
|
| 属性名 | 描述 | 类型 | 默认值 |
|
|
264
252
|
|--------|------|------|--------|
|
|
265
253
|
| title | 对话框的标题 | `string` | `''` |
|
|
266
254
|
| width | 对话框的宽度 | `string \| number` | `'50%'` |
|
|
267
255
|
|
|
268
|
-
- JnDatetime
|
|
256
|
+
- JnDatetime 显示时间格式化,第一行是日期,第二行是时间
|
|
269
257
|
|
|
270
258
|
| 属性名 | 描述 | 类型 | 默认值 |
|
|
271
259
|
|--------|------|------|--------|
|