<commit_before>import { Component } from 'rgui-ui-base';
import template from './index.rgl';

/**
 * @class ListView
 * @extend Component
 * @param {object}                  options.data                     =  绑定属性
 * @param {var}                     options.data.value              <=> 当前选择的值
 * @param {boolean=false}           options.data.multiple            => 是否可以多选
 * @param {boolean=false}           options.data.readonly            => 是否只读
 * @param {boolean=false}           options.data.disabled            => 是否禁用
 * @param {boolean=true}            options.data.visible             => 是否显示
 * @param {string=''}               options.data.class               => 补充class
 */
const ListView = Component.extend({
    name: 'listView',
    template,
    /**
     * @protected
     * @override
     */
    config() {
        this.data = Object.assign({
            _list: [],
            _selected: undefined,
            value: undefined,
            multiple: false,
        }, this.data);
        this.supr();
<commit_msg>[changed] seperate watchers from config<commit_after>import { Component } from 'rgui-ui-base';
import template from './index.rgl';

/**
 * @class ListView
 * @extend Component
 * @param {object}                  options.data                     =  绑定属性
 * @param {var}                     options.data.value              <=> 当前选择的值
 * @param {boolean=false}           options.data.multiple            => 是否可以多选
 * @param {boolean=false}           options.data.readonly            => 是否只读
 * @param {boolean=false}           options.data.disabled            => 是否禁用
 * @param {boolean=true}            options.data.visible             => 是否显示
 * @param {string=''}               options.data.class               => 补充class
 */
const ListView = Component.extend({
    name: 'listView',
    template,
    /**
     * @protected
     * @override
     */
    config() {
        this.data = Object.assign({
            _list: [],
            _selected: undefined,
            value: undefined,
            multiple: false,
        }, this.data);
        this.supr();
        this.watch();
    },
    watch() {
{'fraction_non_alphanumeric': 0.12874531835205993, 'fraction_numerical': 0.0, 'mean_word_length': 1.4994152046783626, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '719268', 'n_tokens_mistral': 611, 'n_tokens_neox': 622, 'n_words': 126}