#

activatedIndex

// src/app/piying/page/component/field-group/dock/example/activatedIndex/content.ts
import * as v from 'valibot';
import { actions } from '@piying/view-angular-core';
import { safeDefine } from '@@piying-define';
export default v.pipe(
  v.tuple([
    v.pipe(
      v.object({
        l1: v.pipe(v.string(), v.title('l1-title')),
        l2: v.pipe(v.number(), v.title('l2-title')),
      }),
      safeDefine.setComponent('dock', (actions) => {
        return [
          actions.inputs.patch({
            activatedIndex: 1,
          }),
        ];
      }),
    ),
  ]),
  actions.wrappers.patch(['div']),
  actions.class.top('flex gap-4 will-change-transform h-50'),
);
content_copy
#

size

// src/app/piying/page/component/field-group/dock/example/size/content.ts
import * as v from 'valibot';
import { actions } from '@piying/view-angular-core';
import { safeDefine } from '@@piying-define';
export default v.pipe(
  v.tuple([
    v.pipe(
      v.object({
        l1: v.pipe(v.string(), v.title('l1-title')),
        l2: v.pipe(v.number(), v.title('l2-title')),
      }),
      safeDefine.setComponent('dock', (actions) => {
        return [
          actions.inputs.patch({
            size: 'lg',
          }),
        ];
      }),
    ),
  ]),
  actions.wrappers.patch(['div']),
  actions.class.top('flex gap-4 will-change-transform h-50'),
);
content_copy