dfish-widget 1.0.134 → 1.0.135

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/lib/index.esm.js CHANGED
@@ -7682,10 +7682,13 @@ const {leafSymbol: leafSymbol$1,changeSymbol} = $$1.symbol;
7682
7682
  if (!this.isNormal) return
7683
7683
  this.val(a);
7684
7684
  },
7685
+ siblingsContainer() {
7686
+ return this.ownerView.el()
7687
+ },
7685
7688
  // @a -> T/F 是否只获取所有选中项, b -> 是否只选择可用的
7686
7689
  siblings(a, b) {
7687
7690
  return $$1.lodash.map($$1.q(':input[name="' + this.input_name + '"]:not([w-form-ignore] :input)' + (b ? ':not(:disabled)' : '') +
7688
- (a === true ? ':checked' : a === false ? ':not(:checked)' : (a || '')), this.ownerView.el()), e => $$1(e))
7691
+ (a === true ? ':checked' : a === false ? ':not(:checked)' : (a || '')), this.siblingsContainer()), e => $$1(e))
7689
7692
  },
7690
7693
  relate() {
7691
7694
  // implement
@@ -7931,7 +7934,7 @@ const {leafSymbol} = $$1.symbol;
7931
7934
  this.x.modelValue = mv;
7932
7935
  this.$emit('update:modelValue', mv);
7933
7936
  if (!this.x.all) {
7934
- this.parentTrigger(event, mv);
7937
+ this.parentTrigger(event, this.groupFormVal());
7935
7938
  }
7936
7939
  },
7937
7940
  formVal() {
@@ -7939,9 +7942,16 @@ const {leafSymbol} = $$1.symbol;
7939
7942
  let s = this.checkstate();
7940
7943
  return s == 1 || (this.x.partialSubmit && s == 2) ? this.$refs.v.value : ''
7941
7944
  },
7945
+ siblingsContainer() {
7946
+ let c = this.provideTripleboxContainer;
7947
+ return (c && c.el()) || this.ownerView.el()
7948
+ },
7942
7949
  parentTrigger(e, v) {
7943
7950
  let c = this.provideTripleboxContainer;
7944
7951
  let d = c && c.el();
7952
+ if (v) {
7953
+ v = v.split(',').sort().join(',');
7954
+ }
7945
7955
  if (d && d.getAttribute('wTripleboxValue') != v) {
7946
7956
  d.setAttribute('wTripleboxValue', v);
7947
7957
  this.trigger(e, v);