@piying-lib/angular-daisyui 1.3.19 → 1.3.21

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.
@@ -331,9 +331,9 @@ declare class PickerRefFCC extends BaseControl {
331
331
  templateRef: _angular_core.Signal<unknown>;
332
332
  readonly PiyingView: typeof PiyingView;
333
333
  /** 触发器内容 */
334
- trigger: _angular_core.InputSignal<unknown>;
334
+ trigger: _angular_core.InputSignal<v.BaseSchema<any, any, any> | undefined>;
335
335
  /** 弹窗内容 */
336
- content: _angular_core.InputSignal<unknown>;
336
+ content: _angular_core.InputSignal<v.BaseSchema<any, any, any> | undefined>;
337
337
  /** 选择后是否自动关闭 */
338
338
  changeClose: _angular_core.InputSignal<boolean | undefined>;
339
339
  isOpen$: _angular_core.WritableSignal<boolean>;
@@ -1252,7 +1252,17 @@ class PickerRefFCC extends BaseControl {
1252
1252
  contentInput$$ = computed(() => {
1253
1253
  return {
1254
1254
  schema: this.content,
1255
- options: this.parentPyOptions,
1255
+ options: computed(() => {
1256
+ return {
1257
+ ...this.parentPyOptions(),
1258
+ context: {
1259
+ ...this.parentPyOptions().context,
1260
+ close: () => {
1261
+ this.isOpen$.set(false);
1262
+ },
1263
+ },
1264
+ };
1265
+ }),
1256
1266
  selectorless: true,
1257
1267
  model: this.value$,
1258
1268
  };