@dinert/element-plus 1.0.2 → 1.0.3

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 CHANGED
@@ -14,6 +14,9 @@
14
14
  <img src="https://img.shields.io/badge/lodash-4.17.21-brightgreen" alt="lodash">
15
15
  </a>
16
16
 
17
+ ## Getting Started
18
+ https://dinert.github.io/dinert-element-plus-docs/guide/
19
+
17
20
  ## Installation
18
21
 
19
22
  #### Using npm:
@@ -39,297 +42,4 @@ import Dinert from '@dinert/element-plus'
39
42
  import '@dinert/element-plus/style'
40
43
 
41
44
  app.use(Dinert)
42
- ```
43
-
44
- #### Components
45
- ##### <font color=blue>TablePage 表格查询页面</font>
46
- ```html
47
- <script scope lang="ts">
48
- import {ref} from 'vue'
49
- const tablePage = ref({
50
- table: {
51
- pagination: {
52
- total: 0,
53
- currentPage: 1,
54
- pageSize: 10,
55
- pageSizes: [10, 20, 30, 50, 100]
56
- },
57
- tableColumns: [
58
- {
59
- reserveSelection: true,
60
- type: 'selection',
61
- prop: 'selection',
62
- fixed: true
63
- },
64
- {
65
- prop: 'startTime',
66
- label: '操作时间',
67
- },
68
- {
69
- prop: 'userName',
70
- label: '操作用户',
71
- },
72
- {
73
- prop: 'ip',
74
- label: '操作ip'
75
- },
76
- {
77
- prop: 'operationType.name',
78
- label: '日志类型'
79
- },
80
- {
81
- prop: 'operationObject',
82
- label: '操作对象'
83
- },
84
- {
85
- prop: 'operations',
86
- label: '操作结果',
87
- setting: true,
88
- functions: {
89
- edit: {
90
- message: '编辑',
91
- value: '22',
92
- click: (scope, column, item) => {
93
- console.log(item, 'itemmmmmmmmmmmmmmm')
94
- }
95
- },
96
- operations: {
97
- message: '操作1'
98
- },
99
- operations2: {
100
- message: '操作2',
101
- click: (scope, column, item) => {
102
- console.log(column, item)
103
- }
104
- },
105
- operations3: {
106
- message: '转交给他人'
107
- }
108
- }
109
- }
110
- ],
111
- data: []
112
- },
113
- form: {
114
- model: {
115
-
116
- },
117
- formItem: {
118
- showLabel: {
119
- label: '土木工程',
120
- showLabel: true
121
- },
122
- input: {
123
- label: '输入框',
124
- type: 'input',
125
- options: {
126
-
127
- },
128
- },
129
- textarea: {
130
- label: '文本域',
131
- type: 'textarea'
132
- },
133
- inputNumber: {
134
- label: '数字输入框',
135
- type: 'input-number',
136
- options: {
137
- on: {
138
- onChange: (e: any) => {
139
- console.log(e, '3213')
140
- },
141
- }
142
- }
143
- },
144
- autoInput: {
145
- label: '自动补全输入框',
146
- type: 'input-autocomplete',
147
- options: {
148
- on: {
149
- onChange: (e: any) => {
150
- console.log(e, '3213')
151
- },
152
- }
153
- }
154
- },
155
- select: {
156
- label: '选择框',
157
- type: 'select',
158
- sort: 1,
159
- options: {
160
- value: 'code',
161
-
162
- options: [
163
- {label: 'lael1', code: '1'},
164
- {label: 'label2', code: '2'},
165
-
166
- ],
167
- }
168
- },
169
- switch: {
170
- label: '开关',
171
- type: 'switch',
172
- options: {
173
-
174
- }
175
- },
176
-
177
- selectTree: {
178
- label: '选择树',
179
- type: 'tree-select',
180
- options: {
181
- data: [
182
-
183
- ],
184
- options: [
185
- {
186
- label: '1', value: '1',
187
- children: [
188
- {
189
- label: '1', value: '3',
190
-
191
- }
192
- ]
193
- },
194
- {label: '2', value: '2'},
195
- ]
196
- }
197
- },
198
- datetime: {
199
- label: '小时天',
200
- type: 'datetime',
201
- options: {
202
-
203
- }
204
- },
205
- date: {
206
- label: '天',
207
- type: 'date',
208
- options: {
209
-
210
- }
211
- },
212
- week: {
213
- label: '周',
214
- type: 'week',
215
- options: {
216
-
217
- }
218
- },
219
- month: {
220
- label: '月',
221
- type: 'month',
222
- options: {
223
-
224
- }
225
- },
226
- year: {
227
- label: '年',
228
- type: 'year',
229
- options: {
230
-
231
- }
232
- },
233
- datetimerange: {
234
- label: '小时天双选',
235
- type: 'datetimerange',
236
- options: {
237
-
238
- }
239
- },
240
- daterange: {
241
- label: '天双选',
242
- type: 'daterange',
243
- options: {
244
-
245
- }
246
- },
247
- monthrange: {
248
- label: '月双选',
249
- type: 'monthrange',
250
- options: {
251
-
252
- }
253
- },
254
- rate: {
255
- label: '评分',
256
- type: 'rate',
257
- options: {
258
- on: {
259
- onChange(a: any) {
260
- console.log(a)
261
- }
262
- }
263
-
264
- }
265
- },
266
-
267
- checkbox: {
268
- label: '多选框',
269
- type: 'checkbox',
270
- options: {
271
- options: [
272
- {label: '333', value: 'value1'},
273
- {label: '2', value: 'value2'},
274
- ]
275
- }
276
- },
277
- radio: {
278
- label: '单选',
279
- type: 'radio',
280
- options: {
281
- options: [
282
- {label: '1', value: '1', disabled: true},
283
- {label: '2', value: '2'},
284
- ]
285
- }
286
- },
287
- radioButton: {
288
- label: '单选按钮',
289
- type: 'radio-button',
290
- options: {
291
- options: [
292
- {label: '1', value: '1', disabled: true},
293
- {label: '2', value: '2'},
294
- ]
295
- }
296
- },
297
- cascader: {
298
- label: '级联',
299
- type: 'cascader',
300
- options: {
301
- props: {
302
- emitPath: false,
303
- multiple: true,
304
- },
305
- options: [
306
- {
307
- label: '333', value: 'value1',
308
- },
309
- {label: '2', value: 'value2'}
310
- ]
311
- }
312
- }
313
-
314
- }
315
- }
316
- })
317
- </script>
318
-
319
- <template>
320
- <dinert-table-page ref="tablePageRef"
321
- :table="table"
322
- class="near"
323
- :form="form"
324
- >
325
- <template #header-left>
326
- <el-button type="primary" icon="Plus">新增</el-button>
327
- </template>
328
-
329
-
330
- <template #column_startTime>
331
- 32132
332
- </template>
333
- </dinert-table-page>
334
- </template>
335
45
  ```