@bsgoal/common 2.16.6 → 2.17.1
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/dist/index.mjs +1815 -1695
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +9 -9
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -3
- package/src/App.vue +0 -9
- package/src/combines/useComs.js +0 -41
- package/src/combines/useFetchs.js +0 -55
- package/src/components/bsgoal-baes-popover/demo.vue +0 -35
- package/src/components/bsgoal-baes-popover/index.vue +0 -66
- package/src/components/bsgoal-base-alert/demo.vue +0 -39
- package/src/components/bsgoal-base-alert/index.vue +0 -49
- package/src/components/bsgoal-base-button/demo.vue +0 -54
- package/src/components/bsgoal-base-button/index.vue +0 -166
- package/src/components/bsgoal-base-cascader/demo.vue +0 -128
- package/src/components/bsgoal-base-cascader/index.vue +0 -95
- package/src/components/bsgoal-base-dialog/demo.vue +0 -350
- package/src/components/bsgoal-base-dialog/index.vue +0 -260
- package/src/components/bsgoal-base-form/demo.vue +0 -290
- package/src/components/bsgoal-base-form/index.vue +0 -732
- package/src/components/bsgoal-base-frame/demo.vue +0 -35
- package/src/components/bsgoal-base-frame/index.vue +0 -28
- package/src/components/bsgoal-base-input/demo.vue +0 -48
- package/src/components/bsgoal-base-input/index.vue +0 -174
- package/src/components/bsgoal-base-item/demo.vue +0 -46
- package/src/components/bsgoal-base-item/index.vue +0 -66
- package/src/components/bsgoal-base-layout/demo.vue +0 -48
- package/src/components/bsgoal-base-layout/index.vue +0 -57
- package/src/components/bsgoal-base-line/demo.vue +0 -41
- package/src/components/bsgoal-base-line/index.vue +0 -70
- package/src/components/bsgoal-base-link/demo.vue +0 -38
- package/src/components/bsgoal-base-link/index.vue +0 -73
- package/src/components/bsgoal-base-search/demo.vue +0 -215
- package/src/components/bsgoal-base-search/index.vue +0 -534
- package/src/components/bsgoal-base-search-operation/index.vue +0 -77
- package/src/components/bsgoal-base-search-table/demo.vue +0 -784
- package/src/components/bsgoal-base-search-table/index.vue +0 -291
- package/src/components/bsgoal-base-select/demo.vue +0 -71
- package/src/components/bsgoal-base-select/index.vue +0 -111
- package/src/components/bsgoal-base-sizes/demo.vue +0 -34
- package/src/components/bsgoal-base-sizes/index.vue +0 -178
- package/src/components/bsgoal-base-switch/demo.vue +0 -39
- package/src/components/bsgoal-base-switch/index.vue +0 -76
- package/src/components/bsgoal-base-table/demo.vue +0 -302
- package/src/components/bsgoal-base-table/index.vue +0 -461
- package/src/components/bsgoal-base-table-content/index.vue +0 -64
- package/src/components/bsgoal-base-table-empty/demo.vue +0 -37
- package/src/components/bsgoal-base-table-empty/index.vue +0 -48
- package/src/components/bsgoal-base-table-pagination/demo.vue +0 -35
- package/src/components/bsgoal-base-table-pagination/index.vue +0 -110
- package/src/components/bsgoal-base-tabs/debug.log +0 -1
- package/src/components/bsgoal-base-tabs/demo.vue +0 -65
- package/src/components/bsgoal-base-tabs/index.vue +0 -122
- package/src/components/bsgoal-base-time/demo.vue +0 -69
- package/src/components/bsgoal-base-time/index.vue +0 -177
- package/src/components/bsgoal-base-time-range/demo.vue +0 -62
- package/src/components/bsgoal-base-time-range/index.vue +0 -170
- package/src/components/bsgoal-base-tooltip/demo.vue +0 -38
- package/src/components/bsgoal-base-tooltip/index.vue +0 -103
- package/src/components/bsgoal-base-tree/demo.vue +0 -141
- package/src/components/bsgoal-base-tree/index.vue +0 -286
- package/src/components/bsgoal-base-tree-fold/index.vue +0 -64
- package/src/components/bsgoal-base-tree-table/debug.log +0 -1
- package/src/components/bsgoal-base-tree-table/demo.vue +0 -859
- package/src/components/bsgoal-base-tree-table/index.vue +0 -351
- package/src/components/bsgoal-base-viewer/assets/upload_default.svg +0 -13
- package/src/components/bsgoal-base-viewer/demo.vue +0 -35
- package/src/components/bsgoal-base-viewer/index.vue +0 -66
- package/src/components/layout/layout-home.vue +0 -60
- package/src/components/layout/layout-left-menu.vue +0 -54
- package/src/components/layout/layout-right-container.vue +0 -39
- package/src/components/layout/layout-top-header.vue +0 -38
- package/src/debug.log +0 -1
- package/src/directives/directiveBase.js +0 -96
- package/src/entry.js +0 -77
- package/src/enums/componentTypeEnums.js +0 -35
- package/src/main.js +0 -11
- package/src/router/index.js +0 -161
- package/src/styles/index.css +0 -14
- package/src/utils/common.js +0 -56
|
@@ -1,290 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
* @Author: canlong.shen
|
|
3
|
-
* @Date: 2023-04-10 15:00:00
|
|
4
|
-
* @LastEditors: canlong.shen
|
|
5
|
-
* @LastEditTime: 2023-07-12 14:33:25
|
|
6
|
-
* @FilePath: \common\src\components\bsgoal-base-form\demo.vue
|
|
7
|
-
* @Description: 表单公共组件演示组件
|
|
8
|
-
*
|
|
9
|
-
-->
|
|
10
|
-
|
|
11
|
-
<script setup>
|
|
12
|
-
/* setup模板
|
|
13
|
-
---------------------------------------------------------------- */
|
|
14
|
-
import BsgoalBaseForm from './index.vue'
|
|
15
|
-
import { ref, computed, toRefs, watch, unref } from 'vue'
|
|
16
|
-
import ComponentTypeEnums from '../../enums/componentTypeEnums.js'
|
|
17
|
-
|
|
18
|
-
defineOptions({
|
|
19
|
-
name: 'BsgoalBaseFormDemo'
|
|
20
|
-
})
|
|
21
|
-
|
|
22
|
-
const values = ref({
|
|
23
|
-
residentialName: '1111'
|
|
24
|
-
})
|
|
25
|
-
|
|
26
|
-
const BSGOAL_BASE_FORM_REF = ref(null)
|
|
27
|
-
|
|
28
|
-
const confirm = () => {
|
|
29
|
-
BSGOAL_BASE_FORM_REF.value.validateForm((res) => {
|
|
30
|
-
console.log('res', res)
|
|
31
|
-
})
|
|
32
|
-
}
|
|
33
|
-
const resetFields = () => {
|
|
34
|
-
BSGOAL_BASE_FORM_REF.value.resetFields()
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
const bindModel = ref({ prop1: '111', prop99: 1, prop101: '否', prop102: '0', _prop104: '' })
|
|
38
|
-
|
|
39
|
-
// 配置项
|
|
40
|
-
const configOptions = ref([
|
|
41
|
-
// { label: '名称', prop: 'residentialName', limit: 5, readonly: true }
|
|
42
|
-
|
|
43
|
-
{
|
|
44
|
-
label: 'prop104',
|
|
45
|
-
prop: '_prop104',
|
|
46
|
-
validator: true,
|
|
47
|
-
rules: [
|
|
48
|
-
{
|
|
49
|
-
validator: (rule, value, callback) => {
|
|
50
|
-
console.log('value', value)
|
|
51
|
-
|
|
52
|
-
// return callback(new Error('Please input the age'))
|
|
53
|
-
return callback()
|
|
54
|
-
},
|
|
55
|
-
trigger: 'change'
|
|
56
|
-
}
|
|
57
|
-
]
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
label: 'prop103',
|
|
61
|
-
prop: 'prop103',
|
|
62
|
-
type: ComponentTypeEnums.INPUT,
|
|
63
|
-
formatter: (value = '') => {
|
|
64
|
-
return `${value}`.match(/^\d{1,}$/) ? value : ''
|
|
65
|
-
},
|
|
66
|
-
placeholder: '',
|
|
67
|
-
rules: true
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
{
|
|
71
|
-
label: '11',
|
|
72
|
-
prop: 'prop101',
|
|
73
|
-
type: ComponentTypeEnums.CHECKBOX_SINGLE,
|
|
74
|
-
show: { prop102: ['1'] },
|
|
75
|
-
range: [
|
|
76
|
-
{
|
|
77
|
-
value: '是'
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
value: '否'
|
|
81
|
-
}
|
|
82
|
-
]
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
type: ComponentTypeEnums.SWITCH,
|
|
86
|
-
label: 'prop102',
|
|
87
|
-
prop: 'prop102',
|
|
88
|
-
range: [
|
|
89
|
-
{ label: '是', value: '1' },
|
|
90
|
-
{ label: '否', value: '0' }
|
|
91
|
-
]
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
label: 'prop100',
|
|
95
|
-
prop: 'prop100',
|
|
96
|
-
rows: 4,
|
|
97
|
-
length: 1000,
|
|
98
|
-
type: ComponentTypeEnums.INPUT_TEXT_AREA
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
label: 'prop99',
|
|
102
|
-
prop: 'prop99',
|
|
103
|
-
value: 0,
|
|
104
|
-
type: ComponentTypeEnums.INPUT_NUMBER,
|
|
105
|
-
max: 'max'
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
label: 'prop1',
|
|
109
|
-
// value: '111',
|
|
110
|
-
prop: 'prop1',
|
|
111
|
-
type: ComponentTypeEnums.INPUT,
|
|
112
|
-
width: '100px',
|
|
113
|
-
rules: [],
|
|
114
|
-
readonly: true
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
label: 'prop20',
|
|
118
|
-
// value: '111',
|
|
119
|
-
prop: 'prop20',
|
|
120
|
-
type: ComponentTypeEnums.INPUT,
|
|
121
|
-
width: '100px',
|
|
122
|
-
rules: [],
|
|
123
|
-
readonly: true
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
label: 'prop2',
|
|
127
|
-
value: [],
|
|
128
|
-
type: ComponentTypeEnums.SELECT,
|
|
129
|
-
prop: 'prop2',
|
|
130
|
-
multiple: true,
|
|
131
|
-
range: [
|
|
132
|
-
{
|
|
133
|
-
label: 'select1',
|
|
134
|
-
value: 'select1'
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
label: 'select2',
|
|
138
|
-
value: 'select2'
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
label: 'select3',
|
|
142
|
-
value: 'select3'
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
label: 'select4',
|
|
146
|
-
value: 'select5'
|
|
147
|
-
}
|
|
148
|
-
]
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
label: 'prop3',
|
|
152
|
-
// value: '111',
|
|
153
|
-
type: ComponentTypeEnums.SLIDER,
|
|
154
|
-
prop: 'prop3'
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
label: 'prop4',
|
|
158
|
-
// value: '111',
|
|
159
|
-
type: ComponentTypeEnums.SWITCH,
|
|
160
|
-
prop: 'prop4',
|
|
161
|
-
range: [
|
|
162
|
-
{ label: '是', value: 1 },
|
|
163
|
-
{ label: '否', value: 0 }
|
|
164
|
-
]
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
label: 'prop5',
|
|
168
|
-
// value: '111',
|
|
169
|
-
type: ComponentTypeEnums.RADIO,
|
|
170
|
-
prop: 'prop5',
|
|
171
|
-
range: [
|
|
172
|
-
{
|
|
173
|
-
label: 'radio1',
|
|
174
|
-
value: 'radio1'
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
label: 'radio2',
|
|
178
|
-
value: 'radio2'
|
|
179
|
-
}
|
|
180
|
-
]
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
label: 'prop6',
|
|
184
|
-
value: [],
|
|
185
|
-
type: ComponentTypeEnums.CHECKBOX,
|
|
186
|
-
prop: 'prop6',
|
|
187
|
-
range: [
|
|
188
|
-
{
|
|
189
|
-
label: 'checkbox1',
|
|
190
|
-
value: 'checkbox1'
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
label: 'checkbox2',
|
|
194
|
-
value: 'checkbox2'
|
|
195
|
-
}
|
|
196
|
-
]
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
label: 'prop7',
|
|
200
|
-
// value: '111',
|
|
201
|
-
type: ComponentTypeEnums.DATE,
|
|
202
|
-
prop: 'prop7',
|
|
203
|
-
format: 'YYYY-MM-DD'
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
label: 'prop9',
|
|
207
|
-
// value: '111',
|
|
208
|
-
type: ComponentTypeEnums.MONTH,
|
|
209
|
-
prop: 'prop9'
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
label: 'prop10',
|
|
213
|
-
// value: '111',
|
|
214
|
-
type: ComponentTypeEnums.YEAR,
|
|
215
|
-
prop: 'prop10'
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
label: 'prop11',
|
|
219
|
-
// value: '111',
|
|
220
|
-
type: ComponentTypeEnums.DATE_RANGE,
|
|
221
|
-
prop: 'prop11',
|
|
222
|
-
range: ['startDate', 'endDate']
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
label: 'prop12',
|
|
226
|
-
// value: '111',
|
|
227
|
-
type: ComponentTypeEnums.MONTH_RANGE,
|
|
228
|
-
prop: 'prop12'
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
label: 'prop13',
|
|
232
|
-
// value: '111',
|
|
233
|
-
type: ComponentTypeEnums.TIME,
|
|
234
|
-
prop: 'prop13'
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
label: 'prop14',
|
|
238
|
-
// value: '111',
|
|
239
|
-
type: ComponentTypeEnums.TIME_RANGE,
|
|
240
|
-
prop: 'prop14'
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
label: 'prop15',
|
|
244
|
-
// value: '111',
|
|
245
|
-
type: ComponentTypeEnums.DATE_TIME,
|
|
246
|
-
prop: 'prop15'
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
label: 'prop16',
|
|
250
|
-
// value: '111',
|
|
251
|
-
type: ComponentTypeEnums.DATE_TIME_RANGE,
|
|
252
|
-
prop: 'prop16',
|
|
253
|
-
md:24
|
|
254
|
-
}
|
|
255
|
-
])
|
|
256
|
-
|
|
257
|
-
const changeValues = (params = '') => {
|
|
258
|
-
values.value = {
|
|
259
|
-
residentialName: '2222'
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
</script>
|
|
263
|
-
<template>
|
|
264
|
-
<div class="bsgoal-base-form-demo">
|
|
265
|
-
{{ values }}
|
|
266
|
-
<BsgoalBaseForm
|
|
267
|
-
ref="BSGOAL_BASE_FORM_REF"
|
|
268
|
-
readonly
|
|
269
|
-
none="--"
|
|
270
|
-
disabled
|
|
271
|
-
:medium="6"
|
|
272
|
-
:limits="10"
|
|
273
|
-
:config-options="configOptions"
|
|
274
|
-
:bind-model="values"
|
|
275
|
-
>
|
|
276
|
-
<template #_prop104> 6666 </template>
|
|
277
|
-
</BsgoalBaseForm>
|
|
278
|
-
<el-button type="primary" @click="confirm">提交</el-button>
|
|
279
|
-
<el-button type="primary" @click="resetFields">重置</el-button>
|
|
280
|
-
<el-button type="primary" @click="changeValues">改变值</el-button>
|
|
281
|
-
</div>
|
|
282
|
-
</template>
|
|
283
|
-
<style lang="scss" scoped>
|
|
284
|
-
/* 自定义样式
|
|
285
|
-
---------------------------------------------------------------- */
|
|
286
|
-
</style>
|
|
287
|
-
<style lang="scss">
|
|
288
|
-
/* 覆盖样式
|
|
289
|
-
---------------------------------------------------------------- */
|
|
290
|
-
</style>
|