vue3-curd 1.0.17 → 1.0.19

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.
@@ -26,7 +26,7 @@ export interface ColumnConfig {
26
26
  form?: FormConfig;
27
27
  search?: SearchConfig;
28
28
  }
29
- export type ColumnType = 'textarea' | 'text' | 'number' | 'date' | 'datetime' | 'timestamp' | 'image' | 'networkImage' | 'imageUrl' | 'bool' | 'switch' | 'color' | 'fromDict' | 'fromDataTag' | 'localDict' | 'tag' | 'tagArrayObj' | 'tags' | 'dictTag' | 'commonDictTag' | 'svg' | 'ossFile' | 'file' | 'password';
29
+ export type ColumnType = 'textarea' | 'text' | 'number' | 'date' | 'datetime' | 'timestamp' | 'image' | 'networkImage' | 'imageUrl' | 'bool' | 'switch' | 'color' | 'fromDict' | 'fromDataTag' | 'localDict' | 'tag' | 'tagArrayObj' | 'tags' | 'svg' | 'ossFile' | 'file' | 'password' | 'dictTag' | 'commonDictTag' | 'dictText' | 'commonDictText';
30
30
  export interface FormConfig {
31
31
  showWordLimit?: boolean;
32
32
  type?: FormFieldType;
@@ -0,0 +1,33 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare const _default: DefineComponent<globalThis.ExtractPropTypes<{
3
+ options: {
4
+ type: PropType<DictDataOption[]>;
5
+ default: any;
6
+ };
7
+ value: {
8
+ type: PropType<number | string | Array<number | string> | undefined>;
9
+ default: string;
10
+ };
11
+ separator: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<globalThis.ExtractPropTypes<{
16
+ options: {
17
+ type: PropType<DictDataOption[]>;
18
+ default: any;
19
+ };
20
+ value: {
21
+ type: PropType<number | string | Array<number | string> | undefined>;
22
+ default: string;
23
+ };
24
+ separator: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
28
+ }>> & Readonly<{}>, {
29
+ options: DictDataOption[];
30
+ value: string | number | (string | number)[];
31
+ separator: string;
32
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLSpanElement>;
33
+ export default _default;
@@ -1,5 +1,6 @@
1
1
  export { default as Curd } from './components/CURD/index';
2
2
  export { default as DictTag } from './components/DictTag/index';
3
+ export { default as DictText } from './components/DictText/index';
3
4
  export { default as SvgIcon } from './components/SvgIcon/index';
4
5
  export { default as OssImagePreview } from './components/OssImagePreview/index';
5
6
  export { default as OssFile } from './components/ossFile/index';
@@ -11,6 +12,6 @@ export * from './components/CURD/types';
11
12
  export { setRequest, setGlobalHeaders, setBaseUrl, getRequest, getGlobalHeaders, getBaseUrl } from './utils/http';
12
13
  export { setPermissionChecker } from './directive/curd-perm';
13
14
  export { download } from './utils/download';
14
- export { install } from './plugin';
15
+ export { install, messages } from './plugin';
15
16
  export type { Vue3CurdOptions } from './plugin';
16
17
  export { default } from './plugin';
@@ -1,5 +1,97 @@
1
1
  import { App } from 'vue';
2
2
  import { AxiosInstance } from 'axios';
3
+ export declare const messages: {
4
+ zh_CN: {
5
+ 查詢: string;
6
+ 清空: string;
7
+ 新增: string;
8
+ 批量刪除: string;
9
+ 刪除: string;
10
+ 刪除成功: string;
11
+ 編輯: string;
12
+ 導出: string;
13
+ 請選擇: string;
14
+ 請輸入: string;
15
+ 至: string;
16
+ 開始日期: string;
17
+ 結束日期: string;
18
+ 開始時間: string;
19
+ 結束時間: string;
20
+ 操作: string;
21
+ 未查詢到數據: string;
22
+ '\u6578\u64DA\u52A0\u8F09\u4E2D...': string;
23
+ 關閉: string;
24
+ 存儲: string;
25
+ 請選擇日期: string;
26
+ 請選擇日期時間: string;
27
+ 需点击选择器中的确定按钮: string;
28
+ '\u78BA\u8A8D\u522A\u9664\u6B64\u6578\u64DA\u55CE\uFF1F': string;
29
+ '\u78BA\u8A8D\u522A\u9664\u9078\u4E2D\u7684 {count} \u689D\u6578\u64DA\u55CE\uFF1F': string;
30
+ 請先勾選要刪除的數據: string;
31
+ 數據存儲成功: string;
32
+ 導出失敗: string;
33
+ };
34
+ zh_HK: {
35
+ 查詢: string;
36
+ 清空: string;
37
+ 新增: string;
38
+ 批量刪除: string;
39
+ 刪除: string;
40
+ 刪除成功: string;
41
+ 編輯: string;
42
+ 導出: string;
43
+ 請選擇: string;
44
+ 請輸入: string;
45
+ 至: string;
46
+ 開始日期: string;
47
+ 結束日期: string;
48
+ 開始時間: string;
49
+ 結束時間: string;
50
+ 操作: string;
51
+ 未查詢到數據: string;
52
+ '\u6578\u64DA\u52A0\u8F09\u4E2D...': string;
53
+ 關閉: string;
54
+ 存儲: string;
55
+ 請選擇日期: string;
56
+ 請選擇日期時間: string;
57
+ 需点击选择器中的确定按钮: string;
58
+ '\u78BA\u8A8D\u522A\u9664\u6B64\u6578\u64DA\u55CE\uFF1F': string;
59
+ '\u78BA\u8A8D\u522A\u9664\u9078\u4E2D\u7684 {count} \u689D\u6578\u64DA\u55CE\uFF1F': string;
60
+ 請先勾選要刪除的數據: string;
61
+ 數據存儲成功: string;
62
+ 導出失敗: string;
63
+ };
64
+ en_US: {
65
+ 查詢: string;
66
+ 清空: string;
67
+ 新增: string;
68
+ 批量刪除: string;
69
+ 刪除: string;
70
+ 刪除成功: string;
71
+ 編輯: string;
72
+ 導出: string;
73
+ 請選擇: string;
74
+ 請輸入: string;
75
+ 至: string;
76
+ 開始日期: string;
77
+ 結束日期: string;
78
+ 開始時間: string;
79
+ 結束時間: string;
80
+ 操作: string;
81
+ 未查詢到數據: string;
82
+ '\u6578\u64DA\u52A0\u8F09\u4E2D...': string;
83
+ 關閉: string;
84
+ 存儲: string;
85
+ 請選擇日期: string;
86
+ 請選擇日期時間: string;
87
+ 需点击选择器中的确定按钮: string;
88
+ '\u78BA\u8A8D\u522A\u9664\u6B64\u6578\u64DA\u55CE\uFF1F': string;
89
+ '\u78BA\u8A8D\u522A\u9664\u9078\u4E2D\u7684 {count} \u689D\u6578\u64DA\u55CE\uFF1F': string;
90
+ 請先勾選要刪除的數據: string;
91
+ 數據存儲成功: string;
92
+ 導出失敗: string;
93
+ };
94
+ };
3
95
  export interface Vue3CurdOptions {
4
96
  request?: AxiosInstance;
5
97
  globalHeaders?: () => Record<string, string>;
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- @charset "UTF-8";.sub-el-icon[data-v-ed552a8d],.nav-icon[data-v-ed552a8d]{display:inline-block;font-size:15px;margin-right:12px;position:relative}.svg-icon[data-v-ed552a8d]{width:1em;height:1em;position:relative;fill:currentColor;vertical-align:-2px}.el-tag+.el-tag[data-v-9a5060d2]{margin-left:5px;margin-bottom:3px;margin-top:3px}.el-image[data-v-dc163acb]{border-radius:2px}.el-image[data-v-dc163acb] .el-image__inner{transition:all .3s;cursor:pointer}.el-image[data-v-dc163acb] .image-slot{display:flex;justify-content:center;align-items:center;width:100%;height:100%;color:#909399;font-size:30px}.image-slot[data-v-dc163acb]{display:flex;justify-content:center;align-items:center;width:110px;height:100px;color:#909399;font-size:30px;border-radius:5px}.el-image[data-v-a3763021]{border-radius:4px}.el-image[data-v-a3763021] .el-image__inner{transition:all .3s;cursor:pointer}.el-image[data-v-a3763021] .el-image__inner:hover{transform:scale(1.2)}.el-image[data-v-a3763021] .image-slot{display:flex;justify-content:center;align-items:center;width:100%;height:100%;color:#909399;font-size:30px}.paging[data-v-4d5f26ce]{padding:12px 15px 15px 5px;font-size:14px}.image-preview[data-v-4d5f26ce]{display:flex;justify-content:center}.el-switch .is-disabled[data-v-4d5f26ce]{opacity:1}.image-style[data-v-4d5f26ce]{display:flex;justify-content:center}.tc-text[data-v-4d5f26ce]{display:flex;text-overflow:ellipsis;line-clamp:2;-webkit-line-clamp:2;overflow:hidden;-webkit-box-orient:vertical}.el-column-tag[data-v-4d5f26ce]{margin-right:2px}.color-cell[data-v-4d5f26ce]{display:flex;justify-content:center}.color-cell-item[data-v-4d5f26ce]{width:24px;height:24px;border-radius:2px}.upload-file-uploader[data-v-027e6121]{margin-bottom:5px}.upload-file-list .el-upload-list__item[data-v-027e6121]{border:1px solid #e4e7ed;line-height:2;margin-bottom:10px;position:relative;padding-left:10px}.upload-file-list .ele-upload-list__item-content[data-v-027e6121]{display:flex;justify-content:space-between;align-items:center;color:inherit}.ele-upload-list__item-content-action .el-link[data-v-027e6121]{margin-right:10px}[data-v-c17cf859] .hide .el-upload--picture-card{display:none}[data-v-c17cf859] .el-upload--picture-card{width:var(--9d14746a);height:var(--9d14746a);line-height:var(--9d14746a)}[data-v-c17cf859] .el-upload-list__item{width:var(--9d14746a);height:var(--9d14746a)}.editor-img-uploader{display:none}.editor,.ql-toolbar{white-space:pre-wrap!important;line-height:normal!important}.quill-img{display:none}.ql-snow .ql-tooltip[data-mode=link]:before{content:"请输入链接地址:"}.ql-snow .ql-tooltip.ql-editing a.ql-action:after{border-right:0;content:"保存";padding-right:0}.ql-snow .ql-tooltip[data-mode=video]:before{content:"请输入视频地址:"}.ql-snow .ql-picker.ql-size .ql-picker-label:before,.ql-snow .ql-picker.ql-size .ql-picker-item:before{content:"14px"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{content:"10px"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{content:"18px"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{content:"32px"}.ql-snow .ql-picker.ql-header .ql-picker-label:before,.ql-snow .ql-picker.ql-header .ql-picker-item:before{content:"文本"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{content:"标题1"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{content:"标题2"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{content:"标题3"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{content:"标题4"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{content:"标题5"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{content:"标题6"}.ql-snow .ql-picker.ql-font .ql-picker-label:before,.ql-snow .ql-picker.ql-font .ql-picker-item:before{content:"标准字体"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{content:"衬线字体"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{content:"等宽字体"}.color-picker-tips[data-v-aa73b22b]{margin-left:10px;color:#666}[data-v-aa73b22b] .el-p .el-input__wrapper{width:100%!important}.curdEditDialog .el-dialog__footer{padding-top:0!important;padding-right:12px}.curd-search-card[data-v-88290712]{margin-bottom:12px!important}.curd-search-card[data-v-88290712] .el-form-item__label{font-weight:400;font-size:14px;color:var(--el-text-color-regular)}.search[data-v-88290712]{cursor:pointer;padding:12px 14px 0;border-radius:4px}
1
+ @charset "UTF-8";.sub-el-icon[data-v-ed552a8d],.nav-icon[data-v-ed552a8d]{display:inline-block;font-size:15px;margin-right:12px;position:relative}.svg-icon[data-v-ed552a8d]{width:1em;height:1em;position:relative;fill:currentColor;vertical-align:-2px}.el-tag+.el-tag[data-v-9a5060d2]{margin-left:5px;margin-bottom:3px;margin-top:3px}.el-image[data-v-dc163acb]{border-radius:2px}.el-image[data-v-dc163acb] .el-image__inner{transition:all .3s;cursor:pointer}.el-image[data-v-dc163acb] .image-slot{display:flex;justify-content:center;align-items:center;width:100%;height:100%;color:#909399;font-size:30px}.image-slot[data-v-dc163acb]{display:flex;justify-content:center;align-items:center;width:110px;height:100px;color:#909399;font-size:30px;border-radius:5px}.el-image[data-v-a3763021]{border-radius:4px}.el-image[data-v-a3763021] .el-image__inner{transition:all .3s;cursor:pointer}.el-image[data-v-a3763021] .el-image__inner:hover{transform:scale(1.2)}.el-image[data-v-a3763021] .image-slot{display:flex;justify-content:center;align-items:center;width:100%;height:100%;color:#909399;font-size:30px}.paging[data-v-9b07eb1a]{padding:12px 15px 15px 5px;font-size:14px}.image-preview[data-v-9b07eb1a]{display:flex;justify-content:center}.el-switch .is-disabled[data-v-9b07eb1a]{opacity:1}.image-style[data-v-9b07eb1a]{display:flex;justify-content:center}.tc-text[data-v-9b07eb1a]{display:flex;text-overflow:ellipsis;line-clamp:2;-webkit-line-clamp:2;overflow:hidden;-webkit-box-orient:vertical}.el-column-tag[data-v-9b07eb1a]{margin-right:2px}.color-cell[data-v-9b07eb1a]{display:flex;justify-content:center}.color-cell-item[data-v-9b07eb1a]{width:24px;height:24px;border-radius:2px}.upload-file-uploader[data-v-027e6121]{margin-bottom:5px}.upload-file-list .el-upload-list__item[data-v-027e6121]{border:1px solid #e4e7ed;line-height:2;margin-bottom:10px;position:relative;padding-left:10px}.upload-file-list .ele-upload-list__item-content[data-v-027e6121]{display:flex;justify-content:space-between;align-items:center;color:inherit}.ele-upload-list__item-content-action .el-link[data-v-027e6121]{margin-right:10px}[data-v-c17cf859] .hide .el-upload--picture-card{display:none}[data-v-c17cf859] .el-upload--picture-card{width:var(--9d14746a);height:var(--9d14746a);line-height:var(--9d14746a)}[data-v-c17cf859] .el-upload-list__item{width:var(--9d14746a);height:var(--9d14746a)}.editor-img-uploader{display:none}.editor,.ql-toolbar{white-space:pre-wrap!important;line-height:normal!important}.quill-img{display:none}.ql-snow .ql-tooltip[data-mode=link]:before{content:"请输入链接地址:"}.ql-snow .ql-tooltip.ql-editing a.ql-action:after{border-right:0;content:"保存";padding-right:0}.ql-snow .ql-tooltip[data-mode=video]:before{content:"请输入视频地址:"}.ql-snow .ql-picker.ql-size .ql-picker-label:before,.ql-snow .ql-picker.ql-size .ql-picker-item:before{content:"14px"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{content:"10px"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{content:"18px"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{content:"32px"}.ql-snow .ql-picker.ql-header .ql-picker-label:before,.ql-snow .ql-picker.ql-header .ql-picker-item:before{content:"文本"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{content:"标题1"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{content:"标题2"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{content:"标题3"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{content:"标题4"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{content:"标题5"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{content:"标题6"}.ql-snow .ql-picker.ql-font .ql-picker-label:before,.ql-snow .ql-picker.ql-font .ql-picker-item:before{content:"标准字体"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{content:"衬线字体"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{content:"等宽字体"}.color-picker-tips[data-v-03727126]{margin-left:10px;color:#666}[data-v-03727126] .el-p .el-input__wrapper{width:100%!important}.curdEditDialog .el-dialog__footer{padding-top:0!important;padding-right:12px}.curd-search-card[data-v-2299b60d]{margin-bottom:12px!important}.curd-search-card[data-v-2299b60d] .el-form-item__label{font-weight:400;font-size:14px;color:var(--el-text-color-regular)}.search[data-v-2299b60d]{cursor:pointer;padding:12px 14px 0;border-radius:4px}