sun-biz 0.0.2-beta.17 → 0.0.2-beta.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.
- package/dist/components/index.js +17 -3
- package/dist/index.js +17 -3
- package/package.json +1 -1
package/dist/components/index.js
CHANGED
|
@@ -1884,6 +1884,7 @@ function useColumnConfig(options) {
|
|
|
1884
1884
|
width: "70vw",
|
|
1885
1885
|
trigger: "hover",
|
|
1886
1886
|
placement: "bottom",
|
|
1887
|
+
spellcheck: "false",
|
|
1887
1888
|
"show-arrow": false
|
|
1888
1889
|
}, {
|
|
1889
1890
|
reference: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
|
|
@@ -3502,7 +3503,12 @@ const DICT_SELECT = 'dictSelect';
|
|
|
3502
3503
|
_: 2
|
|
3503
3504
|
}, 1032, [
|
|
3504
3505
|
"value"
|
|
3505
|
-
]))), 128)) : (0, __WEBPACK_EXTERNAL_MODULE_vue__.createCommentVNode)("", true)
|
|
3506
|
+
]))), 128)) : (0, __WEBPACK_EXTERNAL_MODULE_vue__.createCommentVNode)("", true),
|
|
3507
|
+
'checkbox' === (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).component ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)(__WEBPACK_EXTERNAL_MODULE_vue__.Fragment, {
|
|
3508
|
+
key: 1
|
|
3509
|
+
}, [
|
|
3510
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)((0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).label), 1)
|
|
3511
|
+
], 64)) : (0, __WEBPACK_EXTERNAL_MODULE_vue__.createCommentVNode)("", true)
|
|
3506
3512
|
]),
|
|
3507
3513
|
_: 1
|
|
3508
3514
|
}, 16));
|
|
@@ -3548,6 +3554,7 @@ const WB_NO = "wbNo";
|
|
|
3548
3554
|
// 是否为检索模式
|
|
3549
3555
|
const isInlineMode = "inline" === props.layoutMode;
|
|
3550
3556
|
const formRef = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)();
|
|
3557
|
+
const itemRefs = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)();
|
|
3551
3558
|
const formModel = (0, __WEBPACK_EXTERNAL_MODULE_vue__.reactive)(getFormModel(configData.value));
|
|
3552
3559
|
const model = (0, __WEBPACK_EXTERNAL_MODULE_vue__.useModel)(__props, "modelValue");
|
|
3553
3560
|
const rules = (0, __WEBPACK_EXTERNAL_MODULE_vue__.computed)(()=>getFormRules(configData.value));
|
|
@@ -3572,7 +3579,11 @@ const WB_NO = "wbNo";
|
|
|
3572
3579
|
});
|
|
3573
3580
|
__expose({
|
|
3574
3581
|
ref: formRef,
|
|
3575
|
-
model: formModel
|
|
3582
|
+
model: formModel,
|
|
3583
|
+
getItemRef: (name)=>{
|
|
3584
|
+
const index = configData.value.findIndex((item)=>item.name === name);
|
|
3585
|
+
return itemRefs.value[index];
|
|
3586
|
+
}
|
|
3576
3587
|
});
|
|
3577
3588
|
return (_ctx, _cache)=>{
|
|
3578
3589
|
const _component_el_form_item = (0, __WEBPACK_EXTERNAL_MODULE_vue__.resolveComponent)("el-form-item");
|
|
@@ -3596,7 +3607,7 @@ const WB_NO = "wbNo";
|
|
|
3596
3607
|
}, item.formItemProps || {}), [
|
|
3597
3608
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)(_component_el_form_item, (0, __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps)({
|
|
3598
3609
|
"label-width": item.labelWidth || '',
|
|
3599
|
-
label: item.label,
|
|
3610
|
+
label: 'function' == typeof item.label ? '' : item.label,
|
|
3600
3611
|
prop: item.name,
|
|
3601
3612
|
class: item.className,
|
|
3602
3613
|
style: isInlineMode ? 'margin-right: 16px;' : '',
|
|
@@ -3614,6 +3625,9 @@ const WB_NO = "wbNo";
|
|
|
3614
3625
|
}, item.extraProps || {}, {
|
|
3615
3626
|
modelValue: formModel[item.name],
|
|
3616
3627
|
"onUpdate:modelValue": ($event)=>formModel[item.name] = $event,
|
|
3628
|
+
ref_for: true,
|
|
3629
|
+
ref_key: "itemRefs",
|
|
3630
|
+
ref: itemRefs,
|
|
3617
3631
|
onChange: (...args)=>{
|
|
3618
3632
|
if (item?.onModelChange) item.onModelChange(args, formModel);
|
|
3619
3633
|
if (item?.triggerModelChange) emit('model-change', formModel, item.name);
|
package/dist/index.js
CHANGED
|
@@ -2188,6 +2188,7 @@ function useColumnConfig(options) {
|
|
|
2188
2188
|
width: "70vw",
|
|
2189
2189
|
trigger: "hover",
|
|
2190
2190
|
placement: "bottom",
|
|
2191
|
+
spellcheck: "false",
|
|
2191
2192
|
"show-arrow": false
|
|
2192
2193
|
}, {
|
|
2193
2194
|
reference: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
|
|
@@ -4134,7 +4135,12 @@ const DICT_SELECT = 'dictSelect';
|
|
|
4134
4135
|
_: 2
|
|
4135
4136
|
}, 1032, [
|
|
4136
4137
|
"value"
|
|
4137
|
-
]))), 128)) : (0, __WEBPACK_EXTERNAL_MODULE_vue__.createCommentVNode)("", true)
|
|
4138
|
+
]))), 128)) : (0, __WEBPACK_EXTERNAL_MODULE_vue__.createCommentVNode)("", true),
|
|
4139
|
+
'checkbox' === (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).component ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)(__WEBPACK_EXTERNAL_MODULE_vue__.Fragment, {
|
|
4140
|
+
key: 1
|
|
4141
|
+
}, [
|
|
4142
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)((0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).label), 1)
|
|
4143
|
+
], 64)) : (0, __WEBPACK_EXTERNAL_MODULE_vue__.createCommentVNode)("", true)
|
|
4138
4144
|
]),
|
|
4139
4145
|
_: 1
|
|
4140
4146
|
}, 16));
|
|
@@ -4180,6 +4186,7 @@ const WB_NO = "wbNo";
|
|
|
4180
4186
|
// 是否为检索模式
|
|
4181
4187
|
const isInlineMode = "inline" === props.layoutMode;
|
|
4182
4188
|
const formRef = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)();
|
|
4189
|
+
const itemRefs = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)();
|
|
4183
4190
|
const formModel = (0, __WEBPACK_EXTERNAL_MODULE_vue__.reactive)(getFormModel(configData.value));
|
|
4184
4191
|
const model = (0, __WEBPACK_EXTERNAL_MODULE_vue__.useModel)(__props, "modelValue");
|
|
4185
4192
|
const rules = (0, __WEBPACK_EXTERNAL_MODULE_vue__.computed)(()=>getFormRules(configData.value));
|
|
@@ -4204,7 +4211,11 @@ const WB_NO = "wbNo";
|
|
|
4204
4211
|
});
|
|
4205
4212
|
__expose({
|
|
4206
4213
|
ref: formRef,
|
|
4207
|
-
model: formModel
|
|
4214
|
+
model: formModel,
|
|
4215
|
+
getItemRef: (name)=>{
|
|
4216
|
+
const index = configData.value.findIndex((item)=>item.name === name);
|
|
4217
|
+
return itemRefs.value[index];
|
|
4218
|
+
}
|
|
4208
4219
|
});
|
|
4209
4220
|
return (_ctx, _cache)=>{
|
|
4210
4221
|
const _component_el_form_item = (0, __WEBPACK_EXTERNAL_MODULE_vue__.resolveComponent)("el-form-item");
|
|
@@ -4228,7 +4239,7 @@ const WB_NO = "wbNo";
|
|
|
4228
4239
|
}, item.formItemProps || {}), [
|
|
4229
4240
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)(_component_el_form_item, (0, __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps)({
|
|
4230
4241
|
"label-width": item.labelWidth || '',
|
|
4231
|
-
label: item.label,
|
|
4242
|
+
label: 'function' == typeof item.label ? '' : item.label,
|
|
4232
4243
|
prop: item.name,
|
|
4233
4244
|
class: item.className,
|
|
4234
4245
|
style: isInlineMode ? 'margin-right: 16px;' : '',
|
|
@@ -4246,6 +4257,9 @@ const WB_NO = "wbNo";
|
|
|
4246
4257
|
}, item.extraProps || {}, {
|
|
4247
4258
|
modelValue: formModel[item.name],
|
|
4248
4259
|
"onUpdate:modelValue": ($event)=>formModel[item.name] = $event,
|
|
4260
|
+
ref_for: true,
|
|
4261
|
+
ref_key: "itemRefs",
|
|
4262
|
+
ref: itemRefs,
|
|
4249
4263
|
onChange: (...args)=>{
|
|
4250
4264
|
if (item?.onModelChange) item.onModelChange(args, formModel);
|
|
4251
4265
|
if (item?.triggerModelChange) emit('model-change', formModel, item.name);
|