@fishawack/lab-velocity 0.8.7 → 0.9.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/components/_wysiwyg2.scss +3 -1
- package/form/Upload.vue +6 -1
- package/form/Wysiwyg2.vue +16 -58
- package/form/input.js +1 -1
- package/package.json +1 -1
package/form/Upload.vue
CHANGED
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
v-model:file-list="content"
|
|
18
18
|
:auto-upload="autoUpload"
|
|
19
19
|
:required="required"
|
|
20
|
+
:list-type="listType"
|
|
20
21
|
>
|
|
21
22
|
<template #trigger>
|
|
22
23
|
<slot name="trigger">
|
|
@@ -61,7 +62,11 @@ export default {
|
|
|
61
62
|
onExceed: {
|
|
62
63
|
type: Function,
|
|
63
64
|
default: null,
|
|
64
|
-
}
|
|
65
|
+
},
|
|
66
|
+
listType: {
|
|
67
|
+
type: String,
|
|
68
|
+
default: "text",
|
|
69
|
+
},
|
|
65
70
|
},
|
|
66
71
|
|
|
67
72
|
components: {
|
package/form/Wysiwyg2.vue
CHANGED
|
@@ -46,95 +46,53 @@
|
|
|
46
46
|
Table
|
|
47
47
|
<template #dropdown>
|
|
48
48
|
<el-dropdown-menu>
|
|
49
|
-
<el-dropdown-item>
|
|
50
|
-
<button type="button" @click="editor.chain().focus().insertTable({ rows: 3, cols: 3, withHeaderRow: true }).run()">
|
|
49
|
+
<el-dropdown-item @click="editor.chain().focus().insertTable({ rows: 3, cols: 3, withHeaderRow: true }).run()">
|
|
51
50
|
Insert table
|
|
52
|
-
</button>
|
|
53
51
|
</el-dropdown-item>
|
|
54
|
-
<el-dropdown-item>
|
|
55
|
-
<button type="button" @click="editor.chain().focus().addColumnBefore().run()">
|
|
52
|
+
<el-dropdown-item @click="editor.chain().focus().addColumnBefore().run()">
|
|
56
53
|
Add column before
|
|
57
|
-
</button>
|
|
58
54
|
</el-dropdown-item>
|
|
59
|
-
<el-dropdown-item>
|
|
60
|
-
<button type="button" @click="editor.chain().focus().addColumnAfter().run()">
|
|
55
|
+
<el-dropdown-item @click="editor.chain().focus().addColumnAfter().run()">
|
|
61
56
|
Add column after
|
|
62
|
-
</button>
|
|
63
57
|
</el-dropdown-item>
|
|
64
|
-
<el-dropdown-item>
|
|
65
|
-
<button type="button" @click="editor.chain().focus().deleteColumn().run()">
|
|
58
|
+
<el-dropdown-item @click="editor.chain().focus().deleteColumn().run()">
|
|
66
59
|
Delete column
|
|
67
|
-
</button>
|
|
68
60
|
</el-dropdown-item>
|
|
69
|
-
<el-dropdown-item>
|
|
70
|
-
<button type="button" @click="editor.chain().focus().addRowBefore().run()">
|
|
61
|
+
<el-dropdown-item @click="editor.chain().focus().addRowBefore().run()">
|
|
71
62
|
Add row before
|
|
72
|
-
</button>
|
|
73
63
|
</el-dropdown-item>
|
|
74
|
-
<el-dropdown-item>
|
|
75
|
-
<button type="button" @click="editor.chain().focus().addRowAfter().run()">
|
|
64
|
+
<el-dropdown-item @click="editor.chain().focus().addRowAfter().run()">
|
|
76
65
|
Add row after
|
|
77
|
-
</button>
|
|
78
66
|
</el-dropdown-item>
|
|
79
|
-
<el-dropdown-item>
|
|
80
|
-
<button type="button" @click="editor.chain().focus().deleteRow().run()">
|
|
67
|
+
<el-dropdown-item @click="editor.chain().focus().deleteRow().run()">
|
|
81
68
|
Delete row
|
|
82
|
-
</button>
|
|
83
69
|
</el-dropdown-item>
|
|
84
|
-
<el-dropdown-item>
|
|
85
|
-
<button type="button" @click="editor.chain().focus().deleteTable().run()">
|
|
70
|
+
<el-dropdown-item @click="editor.chain().focus().deleteTable().run()">
|
|
86
71
|
Delete table
|
|
87
|
-
</button>
|
|
88
72
|
</el-dropdown-item>
|
|
89
|
-
<el-dropdown-item>
|
|
90
|
-
<button type="button" @click="editor.chain().focus().mergeCells().run()">
|
|
73
|
+
<el-dropdown-item @click="editor.chain().focus().mergeCells().run()">
|
|
91
74
|
Merge cells
|
|
92
|
-
</button>
|
|
93
75
|
</el-dropdown-item>
|
|
94
|
-
<el-dropdown-item>
|
|
95
|
-
<button type="button" @click="editor.chain().focus().splitCell().run()">
|
|
76
|
+
<el-dropdown-item @click="editor.chain().focus().splitCell().run()">
|
|
96
77
|
Split cell
|
|
97
|
-
</button>
|
|
98
78
|
</el-dropdown-item>
|
|
99
|
-
<el-dropdown-item>
|
|
100
|
-
<button type="button" @click="editor.chain().focus().toggleHeaderColumn().run()">
|
|
79
|
+
<el-dropdown-item @click="editor.chain().focus().toggleHeaderColumn().run()">
|
|
101
80
|
Toggle header column
|
|
102
|
-
</button>
|
|
103
81
|
</el-dropdown-item>
|
|
104
|
-
<el-dropdown-item>
|
|
105
|
-
<button type="button" @click="editor.chain().focus().toggleHeaderRow().run()">
|
|
82
|
+
<el-dropdown-item @click="editor.chain().focus().toggleHeaderRow().run()">
|
|
106
83
|
Toggle header row
|
|
107
|
-
</button>
|
|
108
84
|
</el-dropdown-item>
|
|
109
|
-
<el-dropdown-item>
|
|
110
|
-
<button type="button" @click="editor.chain().focus().toggleHeaderCell().run()">
|
|
85
|
+
<el-dropdown-item @click="editor.chain().focus().toggleHeaderCell().run()">
|
|
111
86
|
Toggle header cell
|
|
112
|
-
</button>
|
|
113
87
|
</el-dropdown-item>
|
|
114
|
-
<el-dropdown-item>
|
|
115
|
-
<button type="button" @click="editor.chain().focus().mergeOrSplit().run()">
|
|
88
|
+
<el-dropdown-item @click="editor.chain().focus().mergeOrSplit().run()">
|
|
116
89
|
Merge or split
|
|
117
|
-
</button>
|
|
118
90
|
</el-dropdown-item>
|
|
119
|
-
<el-dropdown-item>
|
|
120
|
-
<button type="button" @click="editor.chain().focus().setCellAttribute('colspan', 2).run()">
|
|
91
|
+
<el-dropdown-item @click="editor.chain().focus().setCellAttribute('colspan', 2).run()">
|
|
121
92
|
Set cell attribute
|
|
122
|
-
</button>
|
|
123
93
|
</el-dropdown-item>
|
|
124
|
-
<el-dropdown-item>
|
|
125
|
-
<button type="button" @click="editor.chain().focus().fixTables().run()">
|
|
94
|
+
<el-dropdown-item @click="editor.chain().focus().fixTables().run()">
|
|
126
95
|
Fix tables
|
|
127
|
-
</button>
|
|
128
|
-
</el-dropdown-item>
|
|
129
|
-
<el-dropdown-item>
|
|
130
|
-
<button type="button" @click="editor.chain().focus().goToNextCell().run()">
|
|
131
|
-
Go to next cell
|
|
132
|
-
</button>
|
|
133
|
-
</el-dropdown-item>
|
|
134
|
-
<el-dropdown-item>
|
|
135
|
-
<button type="button" @click="editor.chain().focus().goToPreviousCell().run()">
|
|
136
|
-
Go to previous cell
|
|
137
|
-
</button>
|
|
138
96
|
</el-dropdown-item>
|
|
139
97
|
</el-dropdown-menu>
|
|
140
98
|
</template>
|
package/form/input.js
CHANGED